/* ==============================
   الأساس
   ============================== */

.content-layout {
    display: flex;
    gap: 16px;
    padding: 0 16px 40px;
    max-width: 1200px;
    margin: 0 auto;
}

/* الصفحة كاملة */
.page {
    padding: 10px;
}

/* الهيدر */
.top-bar.big-header {
    flex-direction: column;
    text-align: center;
    padding: 15px;
}

.brand {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.brand-logo img {
    width: 70px;
    height: auto;
}

/* ==============================
   السايدبار
   ============================== */

.sidebar {
    width: 220px;
    background: rgba(0, 0, 0, 0.25);
    border-radius: 18px;
    padding: 16px 14px 18px;
    border: 1px solid rgba(255,255,255,0.15);
    box-shadow: 0 6px 18px rgba(0,0,0,0.45);
    height: fit-content;
    position: sticky;
    top: 16px;
}

.sidebar-title {
    margin: 0 0 4px;
    font-size: 17px;
    color: var(--gold);
}

.sidebar-hint {
    margin: 0 0 12px;
    font-size: 13px;
    color: #fbeee2;
}

.city-filter {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.city-filter button {
    border: none;
    border-radius: 999px;
    padding: 9px 11px;
    background: rgba(255,255,255,0.06);
    color: #fff;
    font-size: 14px;
    text-align: right;
    cursor: pointer;
    transition: 0.18s ease;
}

.city-filter button:hover {
    background: rgba(255,255,255,0.12);
}

.city-filter button.active {
    background: linear-gradient(135deg, var(--gold), var(--gold-dark));
    color: #4a2f26;
    font-weight: 600;
}

/* ==============================
   البطاقات
   ============================== */

.branches-section {
    flex: 1;
}

.title {
    margin: 4px 0 6px;
    font-size: 26px;
    color: var(--gold);
}

.subtitle {
    margin: 0 0 18px;
    font-size: 15px;
    color: var(--text-soft);
}

.branches-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 16px;
}

.branch-card {
    background: rgba(255,255,255,0.08);
    border-radius: 16px;
    padding: 16px 14px 14px;
    border: 1px solid rgba(255,255,255,0.18);
    box-shadow: 0 6px 18px rgba(0,0,0,0.45);
    backdrop-filter: blur(5px);
    transition: 0.2s ease;
}

.branch-card:hover {
    transform: translateY(-3px);
    border-color: var(--gold-dark);
    box-shadow: 0 10px 26px rgba(0,0,0,0.6);
}

.branch-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 6px;
    margin-bottom: 8px;
}

.branch-header h2 {
    margin: 0;
    font-size: 17px;
    color: var(--gold);
}

.branch-tag {
    font-size: 12px;
    padding: 4px 9px;
    border-radius: 999px;
    background: rgba(245, 215, 161, 0.15);
    border: 1px solid rgba(245,215,161,0.5);
    color: var(--gold);
}

.branch-info {
    margin-bottom: 10px;
}

.info-row {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    color: var(--text-soft);
    margin-bottom: 4px;
}

.map-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: linear-gradient(135deg, var(--gold), var(--gold-dark));
    color: #4a2f26;
    padding: 8px 13px;
    border-radius: 999px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(0,0,0,0.45);
    transition: 0.15s ease;
}

.map-link:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(0,0,0,0.6);
}

/* ==============================
   واتساب + الفوتر
   ============================== */

.whatsapp-btn {
    position: fixed;
    bottom: 20px;
    left: 20px;
    width: 55px;
    height: 55px;
    border-radius: 50%;
    background: #25D366;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-size: 30px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.5);
    z-index: 999;
    transition: 0.2s ease;
}

.whatsapp-btn:hover {
    transform: scale(1.05);
}

.footer {
    text-align: center;
    padding: 14px 12px 18px;
    font-size: 14px;
    color: var(--gold);
    background: rgba(0,0,0,0.3);
    border-top: 1px solid rgba(255,255,255,0.2);
}

/* ==============================
   ريسبونسف — شاشة 900px
   ============================== */

@media (max-width: 900px) {
    .content-layout {
        flex-direction: column;
    }

    .sidebar {
        width: 100%;
        display: flex;
        flex-direction: column;
        position: static;
    }

    .city-filter {
        flex-direction: row;
        overflow-x: auto;
        gap: 10px;
        white-space: nowrap;
    }

    .city-filter button {
        flex-shrink: 0;
        width: auto;
    }
}

/* ==============================
   ريسبونسف — شاشة 600px
   ============================== */

@media (max-width: 600px) {
    .content-layout {
        padding: 0 10px 28px;
    }

    .title {
        font-size: 22px;
    }

    .subtitle {
        font-size: 14px;
    }

    .branches-grid {
        grid-template-columns: 1fr;
    }
}
