/* ============ RAHALET - Main Styles ============ */

:root {
    --navy: #1e3a5f;
    --navy-dark: #152d4d;
    --navy-light: #2a4f82;
    --gold: #c8a84b;
    --gold-light: #e8c96a;
    --gold-dark: #a88a35;
    --cream: #faf8f3;
    --text-dark: #1a1a2e;
    --text-muted: #6c757d;
    --border-light: rgba(255,255,255,0.1);
    --shadow-sm: 0 2px 15px rgba(0,0,0,0.08);
    --shadow-md: 0 8px 30px rgba(0,0,0,0.12);
    --shadow-lg: 0 20px 60px rgba(0,0,0,0.15);
    --radius: 16px;
    --transition: all 0.3s cubic-bezier(0.4,0,0.2,1);
}

* { box-sizing: border-box; }

body {
    font-family: 'Poppins', sans-serif;
    background: #f8f9fc;
    color: var(--text-dark);
    padding-top: 76px;
}

/* ---- Utility ---- */
.fw-600 { font-weight: 600; }
.text-gold { color: var(--gold) !important; }
.bg-gold { background-color: var(--gold) !important; }
.bg-navy { background-color: var(--navy) !important; }
.hover-gold { transition: var(--transition); }
.hover-gold:hover { color: var(--gold) !important; text-decoration: none; }

/* ---- Brand ---- */
.brand-icon {
    width: 38px;
    height: 38px;
    background: linear-gradient(135deg, var(--gold), var(--gold-light));
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    color: var(--navy);
}

.brand-text {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    font-size: 1.4rem;
    background: linear-gradient(135deg, #fff 0%, var(--gold-light) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ---- Navbar ---- */
#mainNavbar {
    background: linear-gradient(135deg, var(--navy) 0%, var(--navy-dark) 100%);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-light);
    transition: var(--transition);
    padding: 12px 0;
}

#mainNavbar.scrolled {
    padding: 8px 0;
    box-shadow: var(--shadow-md);
}

.navbar-nav .nav-link {
    font-weight: 500;
    font-size: 0.9rem;
    padding: 8px 14px;
    border-radius: 8px;
    transition: var(--transition);
    color: rgba(255,255,255,0.85) !important;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
    color: var(--gold-light) !important;
    background: rgba(200,168,75,0.1);
}

.search-input {
    background: rgba(255,255,255,0.1) !important;
    border: 1px solid rgba(255,255,255,0.2) !important;
    color: white !important;
    border-radius: 8px !important;
    width: 200px;
    transition: var(--transition);
}

.search-input::placeholder { color: rgba(255,255,255,0.5); }
.search-input:focus {
    width: 260px;
    background: rgba(255,255,255,0.15) !important;
    box-shadow: 0 0 0 3px rgba(200,168,75,0.2);
    outline: none;
}

/* ---- Buttons ---- */
.btn-gold {
    background: linear-gradient(135deg, var(--gold), var(--gold-light));
    color: var(--navy-dark);
    border: none;
    font-weight: 600;
    border-radius: 10px;
    transition: var(--transition);
}

.btn-gold:hover {
    background: linear-gradient(135deg, var(--gold-light), var(--gold));
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(200,168,75,0.4);
    color: var(--navy-dark);
}

.btn-navy {
    background: linear-gradient(135deg, var(--navy), var(--navy-light));
    color: white;
    border: none;
    font-weight: 600;
    border-radius: 10px;
    transition: var(--transition);
}

.btn-navy:hover {
    background: linear-gradient(135deg, var(--navy-light), var(--navy));
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(30,58,95,0.4);
    color: white;
}

.btn-outline-gold {
    border: 2px solid var(--gold);
    color: var(--gold);
    background: transparent;
    font-weight: 600;
    border-radius: 10px;
    transition: var(--transition);
}

.btn-outline-gold:hover {
    background: var(--gold);
    color: var(--navy-dark);
    transform: translateY(-2px);
}

/* ---- Hero Section ---- */
.hero-section {
    background: linear-gradient(135deg, var(--navy-dark) 0%, var(--navy) 50%, #1a3d6e 100%);
    min-height: 88vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23c8a84b' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(200,168,75,0.15);
    border: 1px solid rgba(200,168,75,0.3);
    color: var(--gold-light);
    padding: 8px 18px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 500;
    margin-bottom: 20px;
}

.hero-title {
    font-family: 'Playfair Display', serif;
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 700;
    line-height: 1.15;
    color: white;
}

.hero-title .highlight {
    color: var(--gold-light);
}

.hero-subtitle {
    color: rgba(255,255,255,0.75);
    font-size: 1.1rem;
    line-height: 1.8;
    max-width: 520px;
}

.hero-search-box {
    background: white;
    border-radius: 20px;
    padding: 8px 8px 8px 20px;
    box-shadow: var(--shadow-lg);
    display: flex;
    align-items: center;
    gap: 10px;
    max-width: 620px;
}

.hero-search-box input {
    border: none;
    outline: none;
    flex: 1;
    font-size: 1rem;
    color: var(--text-dark);
}

.hero-search-box input::placeholder { color: var(--text-muted); }

.hero-stats {
    display: flex;
    gap: 40px;
    margin-top: 40px;
}

.stat-item .stat-num {
    font-size: 2rem;
    font-weight: 700;
    color: var(--gold-light);
    line-height: 1;
}

.stat-item .stat-label {
    font-size: 0.8rem;
    color: rgba(255,255,255,0.6);
    margin-top: 4px;
}

.hero-visual {
    position: relative;
    height: 500px;
}

.hero-card-float {
    position: absolute;
    background: white;
    border-radius: var(--radius);
    padding: 16px 20px;
    box-shadow: var(--shadow-lg);
    display: flex;
    align-items: center;
    gap: 12px;
    animation: floatAnim 4s ease-in-out infinite;
}

.hero-card-float.card-1 { top: 60px; right: 0; animation-delay: 0s; }
.hero-card-float.card-2 { bottom: 120px; right: 40px; animation-delay: 1.5s; }
.hero-card-float.card-3 { top: 200px; left: 0; animation-delay: 0.8s; }

@keyframes floatAnim {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-12px); }
}

/* ---- Categories Section ---- */
.section-title {
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    font-weight: 700;
    color: var(--navy);
}

.section-subtitle {
    color: var(--text-muted);
    font-size: 1rem;
}

.section-divider {
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, var(--gold), var(--gold-light));
    border-radius: 2px;
    margin: 16px auto;
}

.category-card {
    background: white;
    border-radius: var(--radius);
    padding: 28px 20px;
    text-align: center;
    transition: var(--transition);
    cursor: pointer;
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
}

.category-card::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--gold), var(--gold-light));
    transform: scaleX(0);
    transition: var(--transition);
}

.category-card:hover::before { transform: scaleX(1); }

.category-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-md);
    border-color: rgba(200,168,75,0.2);
}

.category-card.active {
    border-color: var(--gold);
    box-shadow: 0 0 0 3px rgba(200,168,75,0.15);
}

.category-icon {
    width: 64px;
    height: 64px;
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    margin: 0 auto 16px;
    transition: var(--transition);
}

.category-card:hover .category-icon {
    transform: scale(1.1) rotate(5deg);
}

/* ---- Package Cards ---- */
.package-card {
    background: white;
    border-radius: var(--radius);
    overflow: hidden;
    transition: var(--transition);
    border: 1px solid rgba(0,0,0,0.06);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.package-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-md);
    border-color: transparent;
}

.package-card-img {
    position: relative;
    height: 220px;
    overflow: hidden;
}

.package-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.package-card:hover .package-card-img img {
    transform: scale(1.08);
}

.package-card-img-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: rgba(255,255,255,0.3);
}

.package-badge {
    position: absolute;
    top: 14px;
    left: 14px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.badge-omra {
    background: linear-gradient(135deg, #6f42c1, #9969e0);
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
}

.badge-hajj {
    background: linear-gradient(135deg, #198754, #28a745);
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
}

.badge-discount {
    background: linear-gradient(135deg, #dc3545, #e85d70);
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
}

.badge-featured {
    position: absolute;
    top: 14px;
    right: 14px;
    background: linear-gradient(135deg, var(--gold), var(--gold-light));
    color: var(--navy-dark);
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.72rem;
    font-weight: 700;
}

.package-card-body {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.package-agency-tag {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
}

.package-agency-logo {
    width: 28px;
    height: 28px;
    border-radius: 6px;
    object-fit: cover;
}

.package-agency-name {
    font-size: 0.78rem;
    color: var(--text-muted);
    font-weight: 500;
}

.package-title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 10px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.package-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 14px;
    font-size: 0.8rem;
    color: var(--text-muted);
}

.package-meta span {
    display: flex;
    align-items: center;
    gap: 4px;
}

.package-price-section {
    margin-top: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.package-price {
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--navy);
}

.package-price .currency {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-muted);
}

.package-old-price {
    font-size: 0.85rem;
    text-decoration: line-through;
    color: var(--text-muted);
}

/* ---- Agency Cards ---- */
.agency-card {
    background: white;
    border-radius: var(--radius);
    overflow: hidden;
    transition: var(--transition);
    border: 1px solid rgba(0,0,0,0.06);
    height: 100%;
}

.agency-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-md);
}

.agency-cover {
    height: 140px;
    overflow: hidden;
    position: relative;
}

.agency-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.agency-cover-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--navy), var(--navy-light));
}

.agency-logo-wrap {
    position: relative;
    margin-top: -32px;
    padding: 0 20px;
}

.agency-logo {
    width: 64px;
    height: 64px;
    border-radius: 14px;
    object-fit: cover;
    border: 3px solid white;
    box-shadow: var(--shadow-sm);
}

.agency-logo-placeholder {
    width: 64px;
    height: 64px;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--gold), var(--gold-light));
    border: 3px solid white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    color: var(--navy-dark);
    font-weight: 700;
    box-shadow: var(--shadow-sm);
}

.agency-verified {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: rgba(25,135,84,0.1);
    color: #198754;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 0.72rem;
    font-weight: 600;
}

.star-rating {
    color: var(--gold);
    font-size: 0.85rem;
}

/* ---- Search Box ---- */
.search-section {
    background: white;
    border-radius: 24px;
    padding: 32px;
    box-shadow: var(--shadow-md);
    border: 1px solid rgba(0,0,0,0.06);
}

.filter-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 18px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 500;
    border: 2px solid transparent;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
}

.filter-chip-active,
.filter-chip:hover {
    border-color: var(--gold);
    color: var(--gold-dark);
    background: rgba(200,168,75,0.08);
}

/* ---- Boutique Page ---- */
.boutique-cover {
    height: 380px;
    position: relative;
    overflow: hidden;
}

.boutique-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.boutique-cover-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(30,58,95,0.05) 0%, rgba(30,58,95,0.55) 100%);
}

.boutique-info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 32px;
}

.boutique-agency-logo {
    width: 90px;
    height: 90px;
    border-radius: 20px;
    object-fit: cover;
    border: 4px solid white;
    box-shadow: var(--shadow-md);
}

.boutique-agency-logo-placeholder {
    width: 90px;
    height: 90px;
    border-radius: 20px;
    background: linear-gradient(135deg, var(--gold), var(--gold-light));
    border: 4px solid white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    color: var(--navy-dark);
    font-weight: 700;
    box-shadow: var(--shadow-md);
}

/* ---- Dashboard ---- */
.dashboard-sidebar {
    background: linear-gradient(180deg, var(--navy) 0%, var(--navy-dark) 100%);
    min-height: 100vh;
    padding: 24px 0;
}

.dashboard-sidebar .nav-link {
    color: rgba(255,255,255,0.75);
    padding: 12px 24px;
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 500;
    font-size: 0.9rem;
    border-radius: 0;
    transition: var(--transition);
    border-left: 3px solid transparent;
}

.dashboard-sidebar .nav-link:hover,
.dashboard-sidebar .nav-link.active {
    color: white;
    background: rgba(255,255,255,0.1);
    border-left-color: var(--gold);
}

.dashboard-sidebar .nav-link i {
    font-size: 1.1rem;
    width: 22px;
}

.stat-card {
    background: white;
    border-radius: var(--radius);
    padding: 24px;
    display: flex;
    align-items: center;
    gap: 20px;
    box-shadow: var(--shadow-sm);
    border: 1px solid rgba(0,0,0,0.06);
    transition: var(--transition);
}

.stat-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }

.stat-card-icon {
    width: 56px;
    height: 56px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.stat-card-value {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--navy);
    line-height: 1;
}

.stat-card-label {
    font-size: 0.82rem;
    color: var(--text-muted);
    margin-top: 4px;
}

/* ---- Status Badges ---- */
.status-active { background: rgba(25,135,84,0.1); color: #198754; }
.status-pending { background: rgba(255,193,7,0.15); color: #856404; }
.status-suspended { background: rgba(220,53,69,0.1); color: #dc3545; }
.status-confirmed { background: rgba(25,135,84,0.1); color: #198754; }
.status-cancelled { background: rgba(220,53,69,0.1); color: #dc3545; }

.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 5px 14px;
    border-radius: 20px;
    font-size: 0.78rem;
    font-weight: 600;
}

/* ---- Forms ---- */
.form-card {
    background: white;
    border-radius: var(--radius);
    padding: 32px;
    box-shadow: var(--shadow-sm);
    border: 1px solid rgba(0,0,0,0.06);
}

.form-label { font-weight: 600; color: var(--navy); font-size: 0.88rem; }

.form-control:focus, .form-select:focus {
    border-color: var(--gold);
    box-shadow: 0 0 0 3px rgba(200,168,75,0.15);
}

.section-divider-left {
    width: 50px;
    height: 4px;
    background: linear-gradient(90deg, var(--gold), var(--gold-light));
    border-radius: 2px;
    margin: 12px 0 20px;
}

/* ---- Footer ---- */
.footer-section {
    background: linear-gradient(135deg, #0f1c2d 0%, #1a2d45 100%);
    padding: 70px 0 0;
}

.footer-links { padding: 0; margin: 0; }
.footer-links li { margin-bottom: 10px; }
.footer-links a { color: rgba(255,255,255,0.55); text-decoration: none; font-size: 0.9rem; transition: var(--transition); }
.footer-links a:hover { color: var(--gold-light); }

/* ---- Messages ---- */
.messages-container {
    position: fixed;
    top: 76px;
    left: 0;
    right: 0;
    z-index: 1040;
}

.alert { border-radius: 0; border: none; padding: 14px 0; font-size: 0.9rem; }
.alert-success { background: linear-gradient(90deg, rgba(25,135,84,0.95), rgba(40,167,69,0.95)); color: white; }
.alert-info { background: linear-gradient(90deg, rgba(13,202,240,0.95), rgba(0,180,216,0.95)); color: white; }
.alert-warning { background: linear-gradient(90deg, rgba(255,193,7,0.95), rgba(255,145,0,0.95)); color: #212529; }
.alert-danger { background: linear-gradient(90deg, rgba(220,53,69,0.95), rgba(185,0,0,0.95)); color: white; }

/* ---- Skeleton / Animations ---- */
@keyframes shimmer {
    0% { background-position: -1000px 0; }
    100% { background-position: 1000px 0; }
}

.skeleton {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 1000px 100%;
    animation: shimmer 2s infinite;
    border-radius: 8px;
}

/* ---- Responsive ---- */
@media (max-width: 991px) {
    body { padding-top: 66px; }
    .hero-section { min-height: auto; padding: 60px 0; }
    .hero-visual { display: none; }
    .hero-stats { gap: 24px; }
    .dashboard-sidebar { min-height: auto; }
}

@media (max-width: 576px) {
    .hero-title { font-size: 2rem; }
    .hero-stats { flex-wrap: wrap; gap: 16px; }
    .stat-item .stat-num { font-size: 1.5rem; }
}

/* ============================================================
   RESPONSIVE OVERHAUL — mobile-first fixes
   Breakpoints: mobile < 768px | tablet 768–1024px
   ============================================================ */

/* ── Global overflow prevention ── */
html, body {
    overflow-x: hidden;
    max-width: 100%;
}
*, *::before, *::after {
    max-width: 100%;
}
img, video, iframe, embed, object {
    max-width: 100%;
    height: auto;
}

/* ── Navbar — mobile collapsed state ── */
@media (max-width: 991px) {
    #navbarNav .navbar-nav .nav-link {
        padding: 10px 4px;
        border-radius: 0;
        border-bottom: 1px solid rgba(255,255,255,.06);
    }
    #navbarNav .navbar-nav {
        padding-bottom: 8px;
    }
    /* Auth area: stack vertically inside the collapse */
    #navbarNav > .d-flex {
        flex-direction: column;
        align-items: flex-start !important;
        gap: 10px !important;
        padding: 12px 4px 16px;
        border-top: 1px solid rgba(255,255,255,.1);
        width: 100%;
    }
    #navbarNav > .d-flex .btn {
        width: 100%;
        text-align: left;
        justify-content: flex-start;
    }
    #navbarNav > .d-flex .dropdown {
        width: 100%;
    }
    #navbarNav > .d-flex .dropdown > a {
        width: 100%;
        justify-content: flex-start !important;
    }
    /* Dropdown menus inside collapsed navbar */
    #navbarNav .dropdown-menu {
        position: static !important;
        transform: none !important;
        background: rgba(255,255,255,.08);
        border: none;
        border-radius: 10px;
        margin-top: 4px;
        box-shadow: none;
    }
    #navbarNav .dropdown-menu .dropdown-item {
        color: rgba(255,255,255,.8);
        padding: 10px 16px;
    }
    #navbarNav .dropdown-menu .dropdown-item:hover {
        background: rgba(255,255,255,.1);
        color: var(--gold-light);
    }
    /* Notification bell tap target */
    .btn-outline-light.btn-sm {
        min-height: 44px;
        display: inline-flex;
        align-items: center;
    }
}

/* ── Navbar toggler — better tap target ── */
.navbar-toggler {
    padding: 8px 10px;
    min-width: 44px;
    min-height: 44px;
}

/* ── Body padding matches actual navbar height ── */
@media (max-width: 991px) {
    body { padding-top: 62px; }
    .messages-container { top: 62px; }
}

/* ── Dashboard mobile sidebar ── */
#mobileSidebar {
    background: linear-gradient(180deg, var(--navy) 0%, var(--navy-dark) 100%);
    padding: 0;
}
#mobileSidebar .nav-link {
    color: rgba(255,255,255,.75);
    padding: 12px 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 500;
    font-size: .9rem;
    border-left: 3px solid transparent;
    transition: var(--transition);
}
#mobileSidebar .nav-link:hover,
#mobileSidebar .nav-link.active {
    color: white;
    background: rgba(255,255,255,.08);
    border-left-color: var(--gold);
}
#mobileSidebar hr {
    border-color: rgba(255,255,255,.1);
    margin: 4px 0;
}
#mobileSidebar .sidebar-section-label {
    font-size: .65rem;
    color: rgba(255,255,255,.35);
    letter-spacing: 1px;
    font-weight: 600;
    text-transform: uppercase;
    padding: 8px 20px 4px;
}

/* ── Dashboard content area ── */
@media (max-width: 991px) {
    .dashboard-content-wrap {
        padding: 16px !important;
    }
}

/* ── Stat cards — responsive grid ── */
@media (max-width: 575px) {
    .stat-card {
        padding: 16px;
    }
    .stat-card-value {
        font-size: 1.5rem;
    }
    .stat-card-icon {
        width: 46px;
        height: 46px;
        font-size: 1.2rem;
    }
}

/* ── Form card padding ── */
@media (max-width: 767px) {
    .form-card {
        padding: 20px 16px;
        border-radius: 12px;
    }
    .search-section {
        padding: 20px 16px;
        border-radius: 16px;
    }
}

/* ── All form inputs — minimum 44px touch target ── */
.form-control, .form-select, .btn {
    min-height: 44px;
}
.form-control-sm, .btn-sm {
    min-height: 36px;
}
input[type="checkbox"],
input[type="radio"] {
    min-width: 20px;
    min-height: 20px;
}

/* ── Boutique cover ── */
@media (max-width: 767px) {
    .boutique-cover {
        height: 220px;
    }
    .boutique-info {
        padding: 16px;
    }
    .boutique-agency-logo,
    .boutique-agency-logo-placeholder {
        width: 68px;
        height: 68px;
        border-radius: 14px;
    }
}

/* ── Section titles — fluid sizing ── */
.section-title {
    font-size: clamp(1.4rem, 4vw, 2rem);
}

/* ── Category cards — 2 col on tablet ── */
@media (max-width: 767px) {
    .category-card {
        padding: 20px 14px;
    }
    .category-icon {
        width: 52px;
        height: 52px;
        font-size: 1.4rem;
    }
}

/* ── Package cards — minimum spacing on mobile ── */
@media (max-width: 575px) {
    .package-card-body {
        padding: 14px;
    }
    .package-price {
        font-size: 1.1rem;
    }
}

/* ── Hero search box — full width on mobile ── */
@media (max-width: 767px) {
    .hero-search-box {
        flex-direction: column;
        padding: 12px;
        border-radius: 14px;
        gap: 8px;
    }
    .hero-search-box input {
        width: 100%;
        padding: 8px 0;
    }
    .hero-search-box .btn {
        width: 100%;
    }
    .hero-badge {
        font-size: .75rem;
        padding: 6px 14px;
    }
    .hero-subtitle {
        font-size: .9rem;
    }
}

/* ── Agencies list — responsive grid ── */
@media (max-width: 767px) {
    .agency-cover {
        height: 110px;
    }
}

/* ── Footer ── */
@media (max-width: 767px) {
    .footer-section {
        padding: 40px 0 0;
    }
    .footer-section .row.g-5 {
        row-gap: 28px !important;
    }
    /* Stack newsletter input on tiny screens */
    .footer-section .input-group {
        flex-direction: column;
        gap: 8px;
    }
    .footer-section .input-group .form-control,
    .footer-section .input-group .btn {
        width: 100%;
        border-radius: 10px !important;
    }
}
@media (max-width: 575px) {
    .footer-section .col-6 {
        width: 100%;
    }
}

/* ── Error pages ── */
@media (max-width: 767px) {
    .error-code {
        font-size: 6rem;
    }
}

/* ── Modals — bottom sheet on mobile ── */
@media (max-width: 767px) {
    .modal-dialog {
        margin: 0;
        max-width: 100%;
        align-items: flex-end;
    }
    .modal.fade .modal-dialog {
        transform: translateY(100%);
    }
    .modal.show .modal-dialog {
        transform: translateY(0);
    }
    .modal-content {
        border-radius: 20px 20px 0 0;
        max-height: 90vh;
        overflow-y: auto;
    }
    .modal-dialog-centered.modal-dialog {
        align-items: center;
        margin: auto 8px;
        max-height: calc(100vh - 32px);
    }
    .modal-dialog-centered .modal-content {
        border-radius: 20px;
    }
}

/* ── Tables — horizontal scroll on small screens ── */
@media (max-width: 767px) {
    .table-responsive-sm {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    .table th, .table td {
        white-space: nowrap;
    }
}

/* ── Pagination — smaller on mobile ── */
@media (max-width: 575px) {
    .pagination .page-link {
        padding: 6px 10px;
        font-size: .8rem;
    }
}

/* ── Side padding guarantee on small screens ── */
@media (max-width: 575px) {
    .container {
        padding-left: 16px;
        padding-right: 16px;
    }
    section {
        padding-left: 0;
        padding-right: 0;
    }
}

/* ── Feed page — hero stats wrap on mobile ── */
@media (max-width: 767px) {
    .fd-stats {
        gap: 20px !important;
        flex-wrap: wrap;
        justify-content: center !important;
    }
    .fd-stat-val {
        font-size: 1.5rem !important;
    }
    .fd-search {
        flex-direction: column;
        padding: 10px !important;
        gap: 8px !important;
    }
    .fd-search input {
        width: 100%;
        padding: 8px 4px;
    }
    .fd-search-btn {
        width: 100%;
        justify-content: center;
        padding: 12px !important;
    }
}

/* ── Feed sidebar sticky — only on lg ── */
@media (max-width: 991px) {
    .fd-sidebar {
        position: static !important;
    }
}

/* ── Boutique tabs — scrollable on mobile ── */
@media (max-width: 767px) {
    .bq-tabs-inner {
        -webkit-overflow-scrolling: touch;
    }
}

/* ---- Swiper ---- */
.swiper-pagination-bullet-active { background: var(--gold); }
.swiper-button-next, .swiper-button-prev { color: var(--gold); }

/* ---- Scrollbar ---- */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: #f1f1f1; }
::-webkit-scrollbar-thumb { background: var(--navy); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--gold); }

/* ---- Review Stars ---- */
.rating-input { display: flex; flex-direction: row-reverse; gap: 4px; }
.rating-input input { display: none; }
.rating-input label { font-size: 1.5rem; color: #ddd; cursor: pointer; transition: var(--transition); }
.rating-input input:checked ~ label,
.rating-input label:hover,
.rating-input label:hover ~ label { color: var(--gold); }

/* ---- Map placeholder ---- */
.map-placeholder {
    background: linear-gradient(135deg, #e8eef5, #d1dce9);
    border-radius: var(--radius);
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
}

/* ---- Pagination ---- */
.pagination .page-link { color: var(--navy); border-color: rgba(0,0,0,0.1); }
.pagination .page-link:hover { background: var(--navy); color: white; border-color: var(--navy); }
.pagination .page-item.active .page-link { background: var(--navy); border-color: var(--navy); }

/* ============ IMPROVEMENTS — added styles ============ */

/* btn-navy utility */
.btn-navy {
    background: var(--navy);
    color: #fff;
    border: 2px solid var(--navy);
    font-weight: 600;
    border-radius: 10px;
    transition: var(--transition);
}
.btn-navy:hover {
    background: var(--navy-dark);
    border-color: var(--navy-dark);
    color: #fff;
    transform: translateY(-1px);
    box-shadow: var(--shadow-sm);
}
.btn-outline-navy {
    background: transparent;
    color: var(--navy);
    border: 2px solid var(--navy);
    font-weight: 600;
    border-radius: 10px;
    transition: var(--transition);
}
.btn-outline-navy:hover {
    background: var(--navy);
    color: #fff;
}
.text-navy { color: var(--navy) !important; }
.bg-navy   { background-color: var(--navy) !important; }

/* Pagination improvements */
.pagination .page-link {
    border-radius: 8px !important;
    margin: 0 2px;
    color: var(--navy);
    border-color: #dee2e6;
}
.pagination .page-item.active .page-link {
    background: var(--navy);
    border-color: var(--navy);
    color: #fff;
}

/* Save heart button */
.btn-save-package {
    background: rgba(255,255,255,0.9);
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
}
.btn-save-package:hover,
.btn-save-package.saved { color: #e53e3e; transform: scale(1.15); }

/* Dashboard stat cards */
.stat-card {
    border-radius: var(--radius);
    padding: 1.5rem;
    background: #fff;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}
.stat-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }

/* Superadmin sidebar accent */
.superadmin-badge {
    background: linear-gradient(135deg, #c8a84b, #e8c96a);
    color: var(--navy);
    font-weight: 700;
    font-size: 0.7rem;
    padding: 2px 8px;
    border-radius: 20px;
    letter-spacing: 0.5px;
}

/* Toast notifications */
.toast-container {
    position: fixed;
    top: 90px;
    right: 20px;
    z-index: 9999;
}

/* Empty state illustration */
.empty-state {
    padding: 4rem 2rem;
    text-align: center;
}
.empty-state .empty-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
    opacity: 0.6;
}

/* Loading skeleton */
.skeleton {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: skeleton-loading 1.5s infinite;
    border-radius: 8px;
}
@keyframes skeleton-loading {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}
