/* =====================================================================
   Darna | دارنا — دليل المطاعم (المرحلة 5)
   تُحمَّل بعد style.css وتستعمل نفس الألوان.
   ===================================================================== */

.restaurants-page {
    max-width: 1100px;
    margin: 0 auto;
    padding: 48px 5% 80px;
    color: var(--ink);
}

.rest-hero {
    text-align: center;
    margin-bottom: 32px;
}

.rest-kicker {
    color: var(--sand);
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 10px;
}

.rest-hero h1 {
    color: var(--navy);
    font-size: 40px;
    font-weight: 800;
    margin-bottom: 14px;
}

.rest-hero h1:focus { outline: none; }

.rest-lead {
    max-width: 680px;
    margin: 0 auto;
    font-size: 18px;
    line-height: 1.7;
    color: var(--muted);
}

.rest-filters {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin-bottom: 14px;
}

.rest-filters[hidden],
.rest-empty[hidden] { display: none; }

.rest-filter {
    min-height: 40px;
    padding: 8px 18px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: var(--bg);
    color: var(--ink);
    font-family: inherit;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
}

.rest-filter[aria-pressed="true"] {
    background: var(--navy);
    border-color: var(--navy);
    color: #ffffff;
}

.rest-count {
    text-align: center;
    color: var(--muted);
    font-size: 14px;
    margin-bottom: 20px;
}

.rest-count:empty { display: none; }

.rest-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 22px;
}

.rest-card {
    display: flex;
    flex-direction: column;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--bg);
    box-shadow: var(--shadow);
    overflow: hidden;
}

.rest-photo {
    width: 100%;
    height: 180px;
    object-fit: cover;
    display: block;
}

.rest-photo-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--sand-soft);
    font-size: 56px;
}

.rest-body {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 18px;
    flex: 1;
}

.rest-type {
    align-self: flex-start;
    padding: 3px 10px;
    border-radius: 999px;
    background: var(--sand-soft);
    border: 1px solid var(--sand-light);
    font-size: 12px;
    font-weight: 800;
    color: var(--navy);
}

.rest-name {
    color: var(--navy);
    font-size: 20px;
    font-weight: 800;
}

.rest-desc {
    font-size: 15px;
    line-height: 1.6;
    color: var(--muted);
}

.rest-facts {
    display: grid;
    gap: 6px;
    margin: 4px 0 8px;
    font-size: 14px;
}

.rest-facts div {
    display: flex;
    gap: 8px;
    align-items: baseline;
}

.rest-facts dt {
    flex: 0 0 auto;
    color: var(--muted);
    font-weight: 700;
}

.rest-facts dd {
    margin: 0;
    overflow-wrap: anywhere;
}

.rest-price {
    color: var(--sand);
    letter-spacing: 1px;
}

.rest-actions {
    display: grid;
    gap: 8px;
    margin-top: auto;
}

.rest-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-height: 44px;
    padding: 10px 14px;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 700;
    text-decoration: none;
}

.rest-btn-map {
    background: var(--navy);
    color: #ffffff;
}

.rest-btn-map:hover { background: var(--navy-dark); }

.rest-btn-call {
    border: 1px solid var(--line);
    color: var(--navy);
    background: var(--bg);
}

.rest-empty {
    text-align: center;
    padding: 40px 24px;
    border: 1px dashed var(--line);
    border-radius: var(--radius);
    background: var(--sand-soft);
}

.rest-empty-icon {
    font-size: 52px;
    margin-bottom: 10px;
}

.rest-empty h2 {
    color: var(--navy);
    font-size: 24px;
    font-weight: 800;
    margin-bottom: 8px;
}

.rest-empty p {
    max-width: 560px;
    margin: 0 auto;
    font-size: 16px;
    line-height: 1.7;
    color: var(--muted);
}

.rest-join {
    margin-top: 36px;
    padding: 28px;
    border-radius: var(--radius);
    background: var(--navy);
    color: #ffffff;
    text-align: center;
}

.rest-join h2 {
    font-size: 24px;
    font-weight: 800;
    margin-bottom: 8px;
}

.rest-join p {
    color: #e6edf2;
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 18px;
}

.rest-join-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
}

.rest-join-link {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    padding: 10px 20px;
    border-radius: 999px;
    background: var(--sand-light);
    color: var(--navy);
    font-weight: 800;
    text-decoration: none;
}

nav a[aria-current="page"] {
    color: var(--navy);
    font-weight: 800;
}

@media (max-width: 768px) {
    .restaurants-page { padding: 28px 16px 60px; }
    .rest-hero h1 { font-size: 30px; }
    .rest-lead { font-size: 16px; }
    .rest-grid { grid-template-columns: 1fr; }
    .rest-join { padding: 22px 18px; }
}
