/* ============================================================
   Khotta Theme - Main Stylesheet
   شركة الخطة الأولى - نظام حجز اللوحات الإعلانية

   Layout:
   - Desktop: Logo | Filters | Contact button (header)
              List | Map | Cart (main, RTL)
              Footer (copyright)
   - Mobile:  Logo | compact filters | Contact button (header)
              Full-width Map (main)
              Floating "اللوحات" button (left side) → opens drawer with list
              Floating "السلة" button (right side) → uses plugin's existing FAB
              Footer
   ============================================================ */

:root {
    --khotta-primary: #1E52E8;
    --khotta-primary-dark: #1740BE;
    --khotta-primary-light: #4F7BFF;
    --khotta-accent: #22D3B5;
    --khotta-accent-dark: #17B89C;
    --khotta-dark: #0B1E52;
    --khotta-gray-900: #0f172a;
    --khotta-gray-800: #1e293b;
    --khotta-gray-700: #334155;
    --khotta-gray-600: #475569;
    --khotta-gray-500: #64748b;
    --khotta-gray-400: #94a3b8;
    --khotta-gray-300: #cbd5e1;
    --khotta-gray-200: #e2e8f0;
    --khotta-gray-100: #f1f5f9;
    --khotta-gray-50: #f8fafc;
    --khotta-white: #ffffff;
    --khotta-danger: #ef4444;
    --khotta-warning: #f59e0b;
    --khotta-success: #22c55e;

    --khotta-header-h: 72px;
    --khotta-footer-h: 56px;
    --khotta-radius: 12px;
    --khotta-radius-sm: 8px;
    --khotta-shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.05);
    --khotta-shadow: 0 1px 3px rgba(15, 23, 42, 0.08), 0 1px 2px rgba(15, 23, 42, 0.04);
    --khotta-shadow-md: 0 4px 12px rgba(15, 23, 42, 0.08);
    --khotta-shadow-lg: 0 10px 25px rgba(15, 23, 42, 0.10);
    --khotta-transition: all 0.2s ease;
}

/* ============================================================
   1. Base & Reset
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; }

html, body {
    margin: 0;
    padding: 0;
    font-family: 'IBM Plex Sans Arabic', 'Tahoma', sans-serif !important;
    color: var(--khotta-gray-900);
    background: var(--khotta-gray-50);
    direction: rtl;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body { min-height: 100vh; font-family: 'IBM Plex Sans Arabic', 'Tahoma', sans-serif !important; }

button { font-family: inherit; cursor: pointer; }
input, select, textarea { font-family: inherit; }

img { max-width: 100%; height: auto; }
a { color: var(--khotta-primary); text-decoration: none; }
a:hover { color: var(--khotta-primary-dark); }

.skip-link {
    position: absolute;
    top: -100px;
    right: 10px;
    background: var(--khotta-dark);
    color: white;
    padding: 8px 16px;
    z-index: 99999;
    border-radius: var(--khotta-radius-sm);
}
.skip-link:focus { top: 10px; color: white; }

.screen-reader-text {
    border: 0; clip: rect(1px,1px,1px,1px); clip-path: inset(50%);
    height: 1px; margin: -1px; overflow: hidden; padding: 0;
    position: absolute !important; width: 1px; word-wrap: normal !important;
}

/* Booking page = full-screen layout (no scroll on desktop) */
body.khotta-booking-page {
    height: 100vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}
body.khotta-booking-page #page {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    min-height: 0;
}
body.khotta-booking-page .khotta-main {
    flex: 1;
    display: flex;
    overflow: hidden;
    min-height: 0;
    padding: 12px;
}

/* ============================================================
   2. Header
   ============================================================ */
.khotta-site-header {
    height: var(--khotta-header-h);
    background: var(--khotta-white);
    border-bottom: 1px solid var(--khotta-gray-200);
    box-shadow: var(--khotta-shadow-sm);
    position: sticky;
    top: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.khotta-header-inner {
    width: 100%;
    padding: 0 24px;
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 20px;
    align-items: center;
}

/* On non-booking pages, center area becomes nav menu */
body:not(.khotta-booking-page) .khotta-header-inner {
    grid-template-columns: auto 1fr auto;
}

/* Header action area: holds 2 circular icon buttons on booking page */
.khotta-header-action {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

/* Circular icon buttons (contact + cart) */
.khotta-icon-btn {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    position: relative;
    flex-shrink: 0;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
    font-family: inherit;
    padding: 0;
}
.khotta-icon-btn:hover {
    transform: translateY(-2px);
}
.khotta-icon-btn:active {
    transform: translateY(0);
}
.khotta-icon-btn:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(30, 82, 232, 0.15);
}
.khotta-icon-btn svg {
    width: 20px;
    height: 20px;
    pointer-events: none;
}

/* Contact button - green/teal gradient (matches brand accent) */
.khotta-icon-btn-contact {
    background: linear-gradient(135deg, var(--khotta-accent) 0%, var(--khotta-accent-dark) 100%);
    color: white;
    box-shadow: 0 3px 10px rgba(34, 211, 181, 0.30);
}
.khotta-icon-btn-contact:hover {
    box-shadow: 0 5px 14px rgba(34, 211, 181, 0.45);
}

/* Cart button - blue (matches brand primary) */
.khotta-icon-btn-cart {
    background: var(--khotta-primary);
    color: white;
    box-shadow: 0 3px 10px rgba(30, 82, 232, 0.28);
}
.khotta-icon-btn-cart:hover {
    background: var(--khotta-primary-dark);
    box-shadow: 0 5px 14px rgba(30, 82, 232, 0.40);
}

/* Active state when cart drawer is open */
body.khotta-cart-open .khotta-icon-btn-cart {
    background: var(--khotta-primary-dark);
    box-shadow: 0 0 0 3px rgba(30, 82, 232, 0.20), 0 3px 10px rgba(30, 82, 232, 0.40);
}

/* Cart badge - small red bubble at top-right corner of cart icon button */
.khotta-icon-btn-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    background: var(--khotta-danger);
    color: white;
    min-width: 20px;
    height: 20px;
    border-radius: 10px;
    padding: 0 5px;
    font-size: 11px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    border: 2px solid var(--khotta-white);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
    pointer-events: none;
}

/* Logo */
.khotta-header-logo { min-width: 0; }
.khotta-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: var(--khotta-dark);
}
.khotta-logo:hover { color: var(--khotta-dark); }
.khotta-logo-img {
    max-height: 50px;
    width: auto;
    display: block;
}
.khotta-logo-mark {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    background: linear-gradient(135deg, var(--khotta-primary) 0%, var(--khotta-primary-dark) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    box-shadow: 0 2px 8px rgba(30, 82, 232, 0.25);
    flex-shrink: 0;
}
.khotta-logo-mark svg { width: 24px; height: 24px; }
.khotta-logo-text {
    display: flex;
    flex-direction: column;
    line-height: 1.15;
    min-width: 0;
}
.khotta-logo-text strong {
    font-size: 15px;
    font-weight: 700;
    color: var(--khotta-dark);
    white-space: nowrap;
}
.khotta-logo-text span {
    font-size: 11px;
    color: var(--khotta-gray-500);
    font-weight: 400;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Header Center */
.khotta-header-center {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 0;
}

/* Filters slot in header center - holds teleported filter groups in horizontal row. */
.khotta-filters-slot {
    display: flex !important;
    gap: 8px !important;
    align-items: center !important;
    flex-wrap: nowrap !important;
    justify-content: center !important;
    overflow: visible !important;
    min-width: 0 !important;
}

/* Every direct child of the slot must be exactly 40px tall, no margin, inline.
   We DON'T reset padding here because some children (status filter) need internal padding. */
.khotta-filters-slot > * {
    flex: 0 0 auto !important;
    margin: 0 !important;
    box-sizing: border-box !important;
    height: 40px !important;
    align-self: center !important;
}

/* Main Nav (non-booking pages) */
.khotta-main-nav .khotta-menu {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 24px;
}
.khotta-main-nav .khotta-menu li { margin: 0; }
.khotta-main-nav .khotta-menu a {
    color: var(--khotta-gray-700);
    font-size: 14px;
    font-weight: 500;
    padding: 8px 0;
    transition: var(--khotta-transition);
    text-decoration: none;
}
.khotta-main-nav .khotta-menu a:hover { color: var(--khotta-primary); }
.khotta-main-nav .current-menu-item > a { color: var(--khotta-primary); }

/* Contact Button */
.khotta-contact-btn {
    background: linear-gradient(135deg, var(--khotta-accent) 0%, var(--khotta-accent-dark) 100%);
    color: white !important;
    border: none;
    padding: 0 18px;
    border-radius: var(--khotta-radius-sm);
    font-size: 14px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none !important;
    transition: var(--khotta-transition);
    box-shadow: 0 2px 8px rgba(34, 211, 181, 0.25);
    white-space: nowrap;
    height: 40px !important;
    line-height: 1 !important;
    box-sizing: border-box !important;
    cursor: pointer;
    font-family: inherit;
}
.khotta-contact-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(34, 211, 181, 0.35);
    color: white !important;
}
.khotta-contact-btn svg { width: 16px; height: 16px; flex-shrink: 0; }

/* ============================================================
   3. Footer
   ============================================================ */
.khotta-site-footer {
    height: var(--khotta-footer-h);
    background: var(--khotta-dark);
    color: var(--khotta-gray-300);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    padding: 0 24px;
    flex-shrink: 0;
}
.khotta-footer-inner {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: center;
    text-align: center;
}
.khotta-footer-inner strong {
    color: var(--khotta-accent);
    font-weight: 600;
}
.khotta-footer-sep { color: var(--khotta-gray-600); }

/* ============================================================
   4. Plugin missing notice (when plugin is deactivated)
   ============================================================ */
.khotta-plugin-missing {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    background: var(--khotta-gray-100);
}
.khotta-plugin-missing-inner {
    background: white;
    padding: 40px;
    border-radius: var(--khotta-radius);
    box-shadow: var(--khotta-shadow-md);
    max-width: 500px;
    text-align: center;
    border-right: 4px solid var(--khotta-warning);
}
.khotta-plugin-missing h2 { margin: 0 0 12px; color: var(--khotta-gray-900); }
.khotta-plugin-missing p { color: var(--khotta-gray-600); line-height: 1.7; margin: 0 0 20px; }

/* ============================================================
   5. General content pages
   ============================================================ */
.khotta-content {
    padding: 40px 0;
    min-height: calc(100vh - var(--khotta-header-h) - var(--khotta-footer-h));
}
.khotta-container { max-width: 800px; margin: 0 auto; padding: 0 20px; }
.khotta-article {
    background: white;
    padding: 32px;
    border-radius: var(--khotta-radius);
    box-shadow: var(--khotta-shadow);
    margin-bottom: 24px;
}
.khotta-article-title { margin: 0 0 16px; color: var(--khotta-gray-900); }
.khotta-article-content { line-height: 1.8; color: var(--khotta-gray-700); }

.khotta-404 { text-align: center; padding: 60px 20px; }
.khotta-404 h1 { font-size: 96px; margin: 0; color: var(--khotta-primary); font-weight: 700; }
.khotta-404 h2 { margin: 0 0 12px; color: var(--khotta-gray-900); }

.khotta-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 11px 20px;
    border-radius: var(--khotta-radius-sm);
    font-weight: 600;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: var(--khotta-transition);
    font-family: inherit;
    font-size: 14px;
}
.khotta-btn-primary { background: var(--khotta-primary); color: white !important; }
.khotta-btn-primary:hover { background: var(--khotta-primary-dark); transform: translateY(-1px); }

/* ============================================================
   6. Plugin Layout Overrides - Force IBM Plex font
   ============================================================ */
body.khotta-booking-page .bb-wrapper,
body.khotta-booking-page .bb-wrapper *,
body.khotta-booking-page .leaflet-popup,
body.khotta-booking-page .leaflet-popup *,
body.khotta-booking-page .bb-modal,
body.khotta-booking-page .bb-modal * {
    font-family: 'IBM Plex Sans Arabic', 'Tahoma', sans-serif !important;
}

body.khotta-booking-page .bb-wrapper {
    margin: 0 !important;
    padding: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    min-height: 0;
    direction: rtl !important;
}

/* Hide the plugin's filters bar - filters are teleported to the header center */
.bb-wrapper .bb-filters-bar,
body .bb-filters-bar {
    position: absolute !important;
    left: -9999px !important;
    top: -9999px !important;
    visibility: hidden !important;
    pointer-events: none !important;
    height: 0 !important;
    overflow: hidden !important;
    opacity: 0 !important;
}

/* === Filters in header center slot - horizontal compact layout ===
   Maximum specificity to override plugin's `.bb-filter-group { flex-direction: column }` */

/* Each filter group: select-only, label hidden, ROW direction forced */
html body .khotta-filters-slot .bb-filter-group,
.khotta-filters-slot .bb-filter-group {
    position: relative !important;
    display: inline-flex !important;
    align-items: center !important;
    flex-direction: row !important;
    height: 40px !important;
    margin: 0 !important;
    padding: 0 !important;
    flex: 0 0 auto !important;
    box-sizing: border-box !important;
    width: auto !important;
    gap: 0 !important;
}

html body .khotta-filters-slot .bb-filter-group label,
.khotta-filters-slot .bb-filter-group label {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
    clip: rect(0 0 0 0) !important;
    white-space: nowrap !important;
    margin: 0 !important;
    padding: 0 !important;
}

.khotta-filters-slot .bb-filter-group select {
    appearance: none !important;
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    background-color: var(--khotta-gray-100) !important;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath fill='%23687792' d='M6 8L2 4h8z'/%3E%3C/svg%3E") !important;
    background-repeat: no-repeat !important;
    background-position: 12px center !important;
    background-size: 12px !important;
    border: 1px solid transparent !important;
    border-radius: var(--khotta-radius-sm) !important;
    padding: 0 32px 0 14px !important;
    font-size: 13px !important;
    font-weight: 500 !important;
    color: var(--khotta-gray-800) !important;
    height: 40px !important;
    cursor: pointer !important;
    min-width: 145px !important;
    max-width: 200px !important;
    font-family: inherit !important;
    box-sizing: border-box !important;
    line-height: 38px !important;
    text-align: right !important;
}
.khotta-filters-slot .bb-filter-group select:hover {
    background-color: var(--khotta-gray-200) !important;
}
.khotta-filters-slot .bb-filter-group select:focus {
    outline: none !important;
    border-color: var(--khotta-primary) !important;
    background-color: var(--khotta-white) !important;
    box-shadow: 0 0 0 3px rgba(30, 82, 232, 0.1) !important;
}

/* Count pill - same height */
.khotta-filters-slot .bb-filter-count {
    background: var(--khotta-primary) !important;
    color: white !important;
    padding: 0 14px !important;
    border-radius: var(--khotta-radius-sm) !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    height: 40px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    white-space: nowrap !important;
    margin: 0 !important;
    box-sizing: border-box !important;
}
.khotta-filters-slot .bb-filter-count strong {
    font-size: 15px !important;
    margin-left: 4px !important;
    color: white !important;
    font-weight: 700 !important;
}

/* Reset button */
.khotta-filters-slot .bb-filter-reset {
    background: var(--khotta-white) !important;
    border: 1px solid var(--khotta-gray-300) !important;
    color: var(--khotta-gray-700) !important;
    padding: 0 14px !important;
    border-radius: var(--khotta-radius-sm) !important;
    font-size: 12px !important;
    font-weight: 500 !important;
    cursor: pointer !important;
    height: 40px !important;
    display: inline-flex !important;
    align-items: center !important;
    font-family: inherit !important;
    box-sizing: border-box !important;
    transition: var(--khotta-transition);
}
.khotta-filters-slot .bb-filter-reset:hover {
    border-color: var(--khotta-danger) !important;
    color: var(--khotta-danger) !important;
}

/* Hide the plugin's grid section below the map */
.bb-wrapper .bb-billboards-grid-section,
body .bb-billboards-grid-section {
    display: none !important;
}

/* Hide the plugin's floating cart on desktop (we have side cart) */
body.khotta-booking-page .bb-floating-cart {
    display: none !important;
}

/* ============================================================
   7. Main 3-column Layout (DESKTOP)
   Uses grid-template-areas for guaranteed positioning regardless of DOM order.
   In RTL, areas flow right-to-left visually.
   ============================================================ */
body.khotta-booking-page .bb-layout {
    display: grid !important;
    grid-template-columns: 300px 1fr 290px !important;
    grid-template-areas: "list map cart" !important;
    gap: 12px !important;
    flex: 1 !important;
    margin: 0 !important;
    padding: 0 !important;
    min-height: 0 !important;
    height: 100% !important;
    overflow: hidden !important;
    width: 100% !important;
    transition: grid-template-columns 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* Initial state: cart hidden by default to prevent FOUC.
   Applies regardless of viewport — the @media queries below override for desktop. */
body.khotta-booking-page .bb-cart-panel {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}
body.khotta-booking-page.khotta-cart-has-items .bb-cart-panel,
body.khotta-booking-page.khotta-cart-open .bb-cart-panel,
body.khotta-booking-page.bb-mobile-cart-open .bb-cart-panel {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

/* Cart panel show/hide logic - DESKTOP ONLY (mobile uses dedicated drawer rules) */
@media (min-width: 901px) {
    /* Cart panel itself - smooth transitions when appearing/disappearing */
    body.khotta-booking-page .bb-cart-panel {
        transition:
            opacity 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94),
            transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94) !important;
    }

    /* DEFAULT: cart is HIDDEN (no items, not manually opened).
       This is the initial state on page load to prevent FOUC. */
    body.khotta-booking-page .bb-layout {
        grid-template-columns: 300px 1fr 0fr !important;
        grid-template-areas: "list map cart" !important;
    }
    body.khotta-booking-page .bb-cart-panel {
        opacity: 0 !important;
        transform: translateX(-30px) !important;
        pointer-events: none !important;
        visibility: hidden !important;
    }

    /* When cart HAS items OR was manually opened, expand layout and show cart */
    body.khotta-booking-page.khotta-cart-has-items .bb-layout,
    body.khotta-booking-page.khotta-cart-open .bb-layout {
        grid-template-columns: 300px 1fr 320px !important;
        grid-template-areas: "list map cart" !important;
    }
    body.khotta-booking-page.khotta-cart-has-items .bb-cart-panel,
    body.khotta-booking-page.khotta-cart-open .bb-cart-panel {
        opacity: 1 !important;
        transform: translateX(0) !important;
        visibility: visible !important;
        pointer-events: auto !important;
    }
}

/* List = RIGHT (under logo) */
body.khotta-booking-page .khotta-list-panel {
    grid-area: list !important;
    background: var(--khotta-white);
    border-radius: var(--khotta-radius);
    box-shadow: var(--khotta-shadow);
    border: 1px solid var(--khotta-gray-200);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    min-height: 0;
    height: 100%;
}

/* Map = CENTER */
body.khotta-booking-page .bb-map-container {
    grid-area: map !important;
    background: var(--khotta-white);
    border-radius: var(--khotta-radius);
    box-shadow: var(--khotta-shadow);
    border: 1px solid var(--khotta-gray-200);
    overflow: hidden;
    position: relative;
    margin: 0 !important;
    padding: 0 !important;
    height: 100% !important;
    min-height: 0;
    width: auto !important;
}
body.khotta-booking-page #bb-map {
    width: 100% !important;
    height: 100% !important;
    min-height: 100% !important;
}

/* Cart panel - DESKTOP layout only (mobile uses fixed drawer) */
@media (min-width: 901px) {
    /* Cart = LEFT (under contact button) */
    body.khotta-booking-page .bb-cart-panel {
        grid-area: cart !important;
        background: var(--khotta-white) !important;
        border-radius: var(--khotta-radius) !important;
        box-shadow: var(--khotta-shadow) !important;
        border: 1px solid var(--khotta-gray-200) !important;
        margin: 0 !important;
        padding: 0 !important;
        max-height: none !important;
        height: 100% !important;
        overflow: hidden !important;
        display: flex !important;
        flex-direction: column !important;
        min-height: 0;
        position: static !important;
        top: auto !important;
        width: auto !important;
    }
}

/* === Cart panel inner === */
body.khotta-booking-page .bb-cart-panel .bb-cart-title {
    padding: 16px 18px !important;
    margin: 0 !important;
    background: linear-gradient(135deg, var(--khotta-primary) 0%, var(--khotta-primary-dark) 100%) !important;
    color: white !important;
    border-bottom: 1px solid var(--khotta-gray-200);
    display: flex !important;
    align-items: center !important;
    gap: 10px;
    font-size: 15px !important;
    font-weight: 700 !important;
    flex-shrink: 0;
}
body.khotta-booking-page .bb-cart-panel .bb-cart-title svg {
    width: 20px !important;
    height: 20px !important;
    fill: white !important;
}
body.khotta-booking-page .bb-cart-count {
    background: white !important;
    color: var(--khotta-primary) !important;
    border-radius: 999px !important;
    padding: 2px 10px !important;
    font-size: 13px !important;
    font-weight: 700 !important;
    min-width: 24px !important;
    text-align: center !important;
    margin-right: auto !important;
}
body.khotta-booking-page .bb-cart-items {
    flex: 1 !important;
    overflow-y: auto !important;
    padding: 12px !important;
    margin: 0 !important;
    min-height: 0 !important;
}
body.khotta-booking-page .bb-cart-empty {
    text-align: center;
    padding: 40px 20px;
    color: var(--khotta-gray-500);
    font-size: 13px;
}
body.khotta-booking-page .bb-cart-item {
    background: var(--khotta-gray-50) !important;
    border: 1px solid var(--khotta-gray-200) !important;
    border-radius: var(--khotta-radius-sm) !important;
    padding: 12px 14px !important;
    margin-bottom: 10px !important;
    position: relative;
    transition: var(--khotta-transition);
}
body.khotta-booking-page .bb-cart-item:hover {
    border-color: var(--khotta-primary-light) !important;
}
body.khotta-booking-page .bb-cart-footer {
    padding: 14px 16px !important;
    border-top: 1px solid var(--khotta-gray-200) !important;
    background: var(--khotta-gray-50) !important;
    flex-shrink: 0;
    margin: 0 !important;
}

/* Map legend - inline-flex so it ONLY takes the width of its content,
   NOT the full width of the map. Sits above the map at bottom-right. */
body.khotta-booking-page .bb-map-legend {
    position: absolute !important;
    bottom: 16px !important;
    right: 16px !important;
    left: auto !important;
    background: rgba(255, 255, 255, 0.96) !important;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: var(--khotta-radius-sm) !important;
    padding: 8px 12px !important;
    box-shadow: var(--khotta-shadow-md) !important;
    border: 1px solid var(--khotta-gray-200) !important;
    z-index: 500 !important;
    /* Critical: inline-flex makes it shrink to fit content */
    display: inline-flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    align-items: center !important;
    gap: 14px !important;
    width: auto !important;
    max-width: max-content !important;
    font-size: 12px !important;
    font-weight: 600 !important;
}

/* Each label item inside legend stays on one line */
body.khotta-booking-page .bb-map-legend > span {
    display: inline-flex !important;
    align-items: center !important;
    white-space: nowrap !important;
    gap: 6px !important;
    margin: 0 !important;
}

/* ============================================================
   8. Header Filters Slot - Plugin filters teleported here
   STRICT 40px height for every direct child for visual consistency.
   ============================================================ */
.khotta-filters-slot {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: nowrap;
    justify-content: center;
}

/* Every direct child of slot is forced to 40px tall, centered vertically */
.khotta-filters-slot > *,
.khotta-filters-slot > * > * {
    box-sizing: border-box;
}

/* Filter group container - just a wrapper, no extra height */
.khotta-filters-slot .bb-filter-group {
    position: relative;
    flex: 0 0 auto !important;
    margin: 0 !important;
    padding: 0 !important;
    display: inline-flex !important;
    flex-direction: row !important;
    align-items: center !important;
    height: 40px !important;
    box-sizing: border-box !important;
}

/* Hide labels - placeholder option in select acts as label */
.khotta-filters-slot .bb-filter-group label,
.khotta-filters-slot .bb-filter-group > label {
    display: none !important;
    visibility: hidden !important;
    height: 0 !important;
    width: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    font-size: 0 !important;
    overflow: hidden !important;
    position: absolute !important;
}

.khotta-filters-slot .bb-filter-group select {
    appearance: none !important;
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    background-color: var(--khotta-gray-100) !important;
    background-image: none !important;
    border: 1px solid transparent !important;
    border-radius: var(--khotta-radius-sm) !important;
    padding: 0 32px 0 14px !important;
    font-size: 13px !important;
    color: var(--khotta-gray-800) !important;
    font-weight: 500 !important;
    cursor: pointer !important;
    transition: var(--khotta-transition);
    min-width: 145px !important;
    max-width: 200px !important;
    height: 40px !important;
    line-height: 38px !important;
    box-shadow: none !important;
    text-align: right !important;
    margin: 0 !important;
    box-sizing: border-box !important;
    vertical-align: middle !important;
}
.khotta-filters-slot .bb-filter-group select::-ms-expand {
    display: none !important;
}
.khotta-filters-slot .bb-filter-group select:hover {
    background-color: var(--khotta-gray-200) !important;
}
.khotta-filters-slot .bb-filter-group select:focus {
    outline: none !important;
    border-color: var(--khotta-primary) !important;
    background-color: var(--khotta-white) !important;
    box-shadow: 0 0 0 3px rgba(30, 82, 232, 0.1) !important;
}

/* Custom dropdown arrow */
.khotta-filters-slot .bb-filter-group::after {
    content: "";
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    height: 0;
    border-left: 4px solid transparent;
    border-right: 4px solid transparent;
    border-top: 5px solid var(--khotta-gray-500);
    pointer-events: none;
    z-index: 1;
}

/* Filter count pill - direct child of slot */
.khotta-filters-slot .bb-filter-count {
    background: var(--khotta-primary) !important;
    color: white !important;
    padding: 0 14px !important;
    border-radius: var(--khotta-radius-sm) !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    white-space: nowrap !important;
    margin: 0 !important;
    border: none !important;
    line-height: 38px !important;
    height: 40px !important;
    display: inline-flex !important;
    align-items: center !important;
    box-sizing: border-box !important;
    box-shadow: none !important;
}
.khotta-filters-slot .bb-filter-count strong {
    font-size: 15px !important;
    margin-left: 4px !important;
    color: white !important;
    font-weight: 700 !important;
    line-height: inherit !important;
}

/* Filter group with count pill - no arrow, fits the count pill exactly */
.khotta-filters-slot .khotta-filter-group-count {
    height: 40px !important;
    padding: 0 !important;
}
.khotta-filters-slot .khotta-filter-group-count::after {
    display: none !important;
}
.khotta-filters-slot .bb-filter-group:has(.bb-filter-count)::after {
    display: none;
}

/* Reset button - same 40px height */
.khotta-filters-slot .bb-filter-reset {
    background: var(--khotta-white) !important;
    border: 1px solid var(--khotta-gray-300) !important;
    color: var(--khotta-gray-700) !important;
    padding: 0 16px !important;
    border-radius: var(--khotta-radius-sm) !important;
    font-size: 13px !important;
    font-weight: 500 !important;
    transition: var(--khotta-transition);
    cursor: pointer;
    margin: 0 !important;
    height: 40px !important;
    line-height: 38px !important;
    box-sizing: border-box !important;
    display: inline-flex !important;
    align-items: center !important;
    font-family: inherit !important;
}
.khotta-filters-slot .bb-filter-reset:hover {
    border-color: var(--khotta-danger) !important;
    color: var(--khotta-danger) !important;
}

/* ============================================================
   8.5 Status Filter (متاح / محجوز جزئياً / في السلة)
   STRICT 40px container, 32px inner buttons.
   ============================================================ */
.khotta-status-filter {
    display: inline-flex;
    align-items: center;
    gap: 2px;
    background: var(--khotta-gray-100);
    padding: 19px;
    border-radius: var(--khotta-radius-sm);
    border: 1px solid transparent;
    flex-shrink: 0;
    box-sizing: border-box !important;
    margin: 0 !important;
}

.khotta-status-btn {
    background: transparent;
    border: none;
    color: var(--khotta-gray-700);
    cursor: pointer;
    padding: 0 10px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 500;
    font-family: inherit;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    transition: var(--khotta-transition);
    white-space: nowrap;
    line-height: 1;
    height: 32px !important;
    box-sizing: border-box !important;
    margin: 0 !important;
}
.khotta-status-btn:hover {
    background: var(--khotta-white);
    color: var(--khotta-gray-900);
}

/* Indicator dot in front of label */
.khotta-status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    flex-shrink: 0;
    transition: var(--khotta-transition);
}
.khotta-status-all       .khotta-status-dot { background: var(--khotta-gray-400); }
.khotta-status-available .khotta-status-dot { background: var(--khotta-success); }
.khotta-status-partial   .khotta-status-dot { background: var(--khotta-warning); }
.khotta-status-incart    .khotta-status-dot { background: var(--khotta-primary); }

/* Active state - colored background based on which option */
.khotta-status-btn.active {
    color: white;
    font-weight: 600;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.15);
}
.khotta-status-btn.active .khotta-status-dot {
    background: white !important;
    box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.4);
}
.khotta-status-all.active       { background: var(--khotta-gray-700); }
.khotta-status-available.active { background: var(--khotta-success); }
.khotta-status-partial.active   { background: var(--khotta-warning); }
.khotta-status-incart.active    { background: var(--khotta-primary); }

/* In the mobile filter drawer, status filter shows each button full-width on its own row */
.khotta-filter-drawer-body .khotta-status-filter {
    display: flex !important;
    flex-direction: column !important;
    gap: 8px !important;
    padding: 0 !important;
    background: transparent !important;
    border: none !important;
    width: 100% !important;
    height: auto !important;
    margin-bottom: 16px !important;
}
.khotta-filter-drawer-body .khotta-status-filter::before {
    content: "حالة اللوحة";
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--khotta-gray-800);
    margin-bottom: 4px;
    text-align: right;
}

/* Each status option becomes a full-width row in the drawer */
.khotta-filter-drawer-body .khotta-status-btn {
    width: 100% !important;
    height: 48px !important;
    min-height: 48px !important;
    padding: 0 16px !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    background: var(--khotta-white) !important;
    border: 1.5px solid var(--khotta-gray-200) !important;
    border-radius: 10px !important;
    /* RTL: dot on the right, label after it */
    flex-direction: row-reverse !important;
    justify-content: flex-start !important;
    align-items: center !important;
    gap: 10px !important;
    text-align: right !important;
    margin: 0 !important;
    color: var(--khotta-gray-800) !important;
    transition: all 0.2s ease !important;
}
.khotta-filter-drawer-body .khotta-status-btn:hover {
    border-color: var(--khotta-primary) !important;
    background: var(--khotta-gray-50) !important;
}
.khotta-filter-drawer-body .khotta-status-btn.active {
    background: rgba(30, 82, 232, 0.08) !important;
    border-color: var(--khotta-primary) !important;
    color: var(--khotta-primary) !important;
    font-weight: 700 !important;
}
.khotta-filter-drawer-body .khotta-status-btn .khotta-status-dot {
    flex-shrink: 0 !important;
    width: 10px !important;
    height: 10px !important;
}
.khotta-filter-drawer-body .khotta-status-btn .khotta-status-label {
    flex: 1 !important;
    text-align: right !important;
}

/* On smaller screens (but still desktop layout), hide the labels and show only dots */
@media (min-width: 901px) and (max-width: 1300px) {
    .khotta-status-btn .khotta-status-label {
        display: none;
    }
    .khotta-status-btn {
        padding: 8px 10px;
    }
    .khotta-status-btn[title]::before {
        /* Use title for tooltip on hover */
    }
}

/* ============================================================
   9. Custom List Panel
   ============================================================ */
.khotta-list-header {
    padding: 14px 18px;
    border-bottom: 1px solid var(--khotta-gray-200);
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: var(--khotta-gray-50);
    flex-shrink: 0;
}
.khotta-list-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 700;
    font-size: 14px;
    color: var(--khotta-gray-900);
    margin: 0;
}
.khotta-list-title svg {
    width: 18px;
    height: 18px;
    color: var(--khotta-primary);
    fill: none;
    stroke: currentColor;
}

/* Small count badge next to "اللوحات المتاحة" - shows visible billboards count */
.khotta-list-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--khotta-primary);
    color: white;
    font-size: 11px;
    font-weight: 700;
    min-width: 22px;
    height: 22px;
    padding: 0 7px;
    border-radius: 11px;
    line-height: 1;
    margin-right: 4px;
}

/* Close button (visible only on mobile drawer) */
.khotta-list-close {
    display: none;
    background: var(--khotta-gray-100);
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    color: var(--khotta-gray-700);
    cursor: pointer;
    transition: var(--khotta-transition);
    align-items: center;
    justify-content: center;
    padding: 0;
}
.khotta-list-close svg {
    width: 18px;
    height: 18px;
    pointer-events: none;
}
.khotta-list-close:hover {
    background: var(--khotta-danger);
    color: white;
}

.khotta-list-items {
    flex: 1;
    overflow-y: auto;
    padding: 12px;
    min-height: 0;
}

.khotta-list-empty,
.khotta-list-loading {
    text-align: center;
    padding: 40px 20px;
    color: var(--khotta-gray-500);
    font-size: 13px;
}
.khotta-list-empty svg {
    width: 48px;
    height: 48px;
    color: var(--khotta-gray-300);
    margin-bottom: 12px;
    fill: none;
    stroke: currentColor;
}
.khotta-list-empty h3 {
    font-size: 14px;
    margin: 0 0 6px 0;
    color: var(--khotta-gray-700);
}
.khotta-list-empty p {
    font-size: 12px;
    margin: 0;
}

/* Billboard list item card - VERTICAL stacked layout (matches popup style) */
.khotta-billboard-card {
    display: flex;
    flex-direction: column;
    gap: 0;
    background: var(--khotta-white);
    border: 1px solid var(--khotta-gray-200);
    border-radius: var(--khotta-radius);
    padding: 0;
    margin-bottom: 14px;
    cursor: pointer;
    transition: var(--khotta-transition);
    position: relative;
    overflow: hidden;
}
.khotta-billboard-card:hover {
    border-color: var(--khotta-primary);
    box-shadow: var(--khotta-shadow-md);
    transform: translateY(-2px);
}
.khotta-billboard-card.in-cart {
    background: linear-gradient(135deg, rgba(34, 211, 181, 0.05), rgba(34, 211, 181, 0.02));
    border-color: var(--khotta-accent);
}

/* Image at the TOP - full width, fixed height. Now wraps a carousel. */
.khotta-card-image-wrap {
    flex-shrink: 0;
    width: 100%;
    height: 140px;
    border-radius: 0;
    overflow: hidden;
    background: var(--khotta-gray-100);
    position: relative;
}

/* When the wrap contains a carousel, the carousel fills it */
.khotta-card-image-wrap > .khotta-carousel {
    width: 100%;
    height: 100%;
    aspect-ratio: auto;
}

.khotta-card-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.khotta-card-image-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--khotta-gray-400);
    background: linear-gradient(135deg, var(--khotta-gray-100), var(--khotta-gray-200));
}
.khotta-card-image-placeholder svg {
    width: 40px;
    height: 40px;
    fill: none;
    stroke: currentColor;
}
.khotta-card-badge-incart {
    position: absolute;
    top: 8px;
    right: 8px;
    background: var(--khotta-accent);
    color: white;
    font-size: 11px;
    padding: 4px 10px;
    border-radius: 4px;
    font-weight: 700;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

/* Body section - all info stacked vertically */
.khotta-card-body {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    padding: 14px;
    gap: 8px;
}
.khotta-card-title {
    font-size: 15px;
    font-weight: 700;
    color: var(--khotta-gray-900);
    margin: 0;
    line-height: 1.4;
    /* Allow wrapping if title is long */
    white-space: normal;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}
.khotta-card-code {
    display: inline-block;
    background: var(--khotta-gray-100);
    color: var(--khotta-gray-700);
    font-size: 11px;
    padding: 3px 10px;
    border-radius: 4px;
    margin: 0;
    font-weight: 600;
    align-self: flex-start;
}
.khotta-card-location {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: var(--khotta-gray-600);
    margin: 0;
}
.khotta-card-location svg {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
    color: var(--khotta-primary);
    fill: currentColor;
}
.khotta-card-location span {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.khotta-card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin: 0;
}
.khotta-card-meta-item {
    font-size: 11px;
    background: var(--khotta-gray-100);
    color: var(--khotta-gray-700);
    padding: 3px 8px;
    border-radius: 4px;
    font-weight: 500;
}

/* Bottom section - price + button STACKED vertically full-width */
.khotta-card-bottom {
    margin: 8px 0 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
    width: 100%;
}

/* Price as a green button-like element matching popup style */
.khotta-card-price {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    width: 100%;
    background: linear-gradient(135deg, var(--khotta-accent) 0%, var(--khotta-accent-dark) 100%);
    color: white;
    padding: 11px 14px;
    border-radius: var(--khotta-radius-sm);
    font-size: 14px;
    font-weight: 700;
    text-align: center;
    box-shadow: 0 2px 6px rgba(34, 211, 181, 0.25);
}
.khotta-card-price small {
    font-weight: 500;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.92);
}

/* Reserve button - full width, primary blue with gradient */
.khotta-card-add-btn {
    width: 100%;
    background: linear-gradient(135deg, var(--khotta-primary) 0%, var(--khotta-primary-dark) 100%);
    color: white;
    border: none;
    padding: 12px 14px;
    border-radius: var(--khotta-radius-sm);
    font-size: 14px;
    font-weight: 700;
    transition: var(--khotta-transition);
    cursor: pointer;
    font-family: inherit;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    box-shadow: 0 2px 6px rgba(30, 82, 232, 0.25);
}
.khotta-card-add-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(30, 82, 232, 0.35);
}
.khotta-card-add-btn.in-cart-btn {
    background: var(--khotta-gray-200);
    color: var(--khotta-gray-600);
    cursor: default;
    box-shadow: none;
}
.khotta-card-add-btn.in-cart-btn:hover {
    transform: none;
    box-shadow: none;
}

/* Scrollbars */
.bb-cart-items::-webkit-scrollbar,
.khotta-list-items::-webkit-scrollbar { width: 6px; }
.bb-cart-items::-webkit-scrollbar-track,
.khotta-list-items::-webkit-scrollbar-track { background: var(--khotta-gray-50); }
.bb-cart-items::-webkit-scrollbar-thumb,
.khotta-list-items::-webkit-scrollbar-thumb {
    background: var(--khotta-gray-300);
    border-radius: 3px;
}
.bb-cart-items::-webkit-scrollbar-thumb:hover,
.khotta-list-items::-webkit-scrollbar-thumb:hover {
    background: var(--khotta-gray-400);
}

/* ============================================================
   10. Mobile Bottom Navigation & Drawers
   ============================================================ */

/* Mobile bottom navigation bar - Woodmart style: 3 flat equal buttons */
.khotta-mobile-nav {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--khotta-white);
    border-top: 1px solid var(--khotta-gray-200);
    box-shadow: 0 -2px 8px rgba(15, 23, 42, 0.06);
    z-index: 998;
    height: 64px;
    padding: 0;
    align-items: stretch;
    justify-content: stretch;
    flex-direction: row;
}

.khotta-mnav-btn {
    background: none;
    border: none;
    color: var(--khotta-gray-700);
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 8px 4px;
    flex: 1 1 33.333%;
    transition: var(--khotta-transition);
    font-family: inherit;
    border-radius: 0;
    position: relative;
    min-width: 0;
    height: 100%;
}
.khotta-mnav-btn:hover,
.khotta-mnav-btn:focus,
.khotta-mnav-btn.active {
    color: var(--khotta-primary);
    background: var(--khotta-gray-50);
    outline: none;
}
.khotta-mnav-btn:active {
    background: var(--khotta-gray-100);
}

.khotta-mnav-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    position: relative;
    width: 26px;
    height: 26px;
    transition: var(--khotta-transition);
}
.khotta-mnav-icon svg {
    width: 100%;
    height: 100%;
}

.khotta-mnav-label {
    font-size: 12px;
    font-weight: 500;
    line-height: 1;
    white-space: nowrap;
    margin: 0;
    text-align: center;
    color: inherit;
}

/* Cart badge on bottom nav */
.khotta-mnav-badge {
    position: absolute;
    top: -4px;
    left: -8px;
    background: var(--khotta-accent);
    color: white;
    font-size: 10px;
    font-weight: 700;
    min-width: 18px;
    height: 18px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
    border: 2px solid var(--khotta-white);
    line-height: 1;
}

/* Drawer backdrop - z-index above EVERYTHING (Google Maps controls reach into thousands) */
.khotta-drawer-backdrop {
    display: block;
    position: fixed;
    inset: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(15, 23, 42, 0.55);
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
    z-index: 99000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94), visibility 0.35s;
    pointer-events: none;
    cursor: pointer;
}
body.khotta-list-open .khotta-drawer-backdrop,
body.bb-mobile-cart-open .khotta-drawer-backdrop,
body.khotta-filter-open .khotta-drawer-backdrop {
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
}
body.khotta-list-open .khotta-drawer-backdrop,
body.bb-mobile-cart-open .khotta-drawer-backdrop,
body.khotta-filter-open .khotta-drawer-backdrop {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

/* Filter drawer (slides up from bottom on mobile, ABOVE the bottom nav) */
.khotta-filter-drawer {
    display: none;
    position: fixed;
    bottom: 64px; /* leave room for the bottom nav */
    left: 0;
    right: 0;
    background: var(--khotta-white);
    z-index: 99100;
    border-radius: 16px 16px 0 0;
    box-shadow: 0 -8px 24px rgba(15, 23, 42, 0.15);
    transform: translateY(calc(100% + 64px));
    transition: transform 0.4s cubic-bezier(0.32, 0.72, 0, 1), opacity 0.3s ease;
    max-height: calc(80vh - 64px);
    display: flex;
    flex-direction: column;
}
body.khotta-filter-open .khotta-filter-drawer {
    transform: translateY(0);
}

.khotta-filter-drawer-header {
    padding: 16px 20px;
    border-bottom: 1px solid var(--khotta-gray-200);
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: var(--khotta-gray-50);
    flex-shrink: 0;
}
.khotta-filter-drawer-header::before {
    content: "";
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 4px;
    background: var(--khotta-gray-300);
    border-radius: 2px;
}
.khotta-filter-drawer-header h3 {
    margin: 0;
    font-size: 16px;
    font-weight: 700;
    color: var(--khotta-gray-900);
}
.khotta-filter-drawer-close {
    background: var(--khotta-gray-100);
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    color: var(--khotta-gray-700);
    cursor: pointer;
    transition: var(--khotta-transition);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    flex-shrink: 0;
}
.khotta-filter-drawer-close svg {
    pointer-events: none;
}
.khotta-filter-drawer-close:hover {
    background: var(--khotta-danger);
    color: white;
}

.khotta-filter-drawer-body {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* Filter drawer footer with Apply button */
.khotta-filter-drawer-footer {
    padding: 14px 20px 20px;
    border-top: 1px solid var(--khotta-gray-200);
    background: var(--khotta-white);
    flex-shrink: 0;
}
.khotta-btn-apply-filter {
    width: 100%;
    background: linear-gradient(135deg, var(--khotta-primary) 0%, var(--khotta-primary-dark) 100%);
    color: white;
    border: none;
    padding: 14px 20px;
    border-radius: var(--khotta-radius-sm);
    font-size: 15px;
    font-weight: 700;
    font-family: inherit;
    cursor: pointer;
    transition: var(--khotta-transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-shadow: 0 2px 8px rgba(30, 82, 232, 0.25);
}
.khotta-btn-apply-filter:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(30, 82, 232, 0.35);
}
.khotta-btn-apply-filter:active {
    transform: translateY(0);
}
.khotta-btn-apply-filter svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

/* When filters are inside the drawer, stack them vertically with full width */
.khotta-filter-drawer-body .bb-filter-group {
    width: 100% !important;
    max-width: none !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    position: relative !important;
    margin-bottom: 16px !important;
    height: auto !important;
    min-height: 0 !important;
}

.khotta-filter-drawer-body .bb-filter-group label {
    display: block !important;
    visibility: visible !important;
    height: auto !important;
    width: auto !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    color: var(--khotta-gray-800) !important;
    margin: 0 0 8px 0 !important;
    padding: 0 !important;
    position: static !important;
    clip: auto !important;
    overflow: visible !important;
    text-align: right !important;
}

.khotta-filter-drawer-body .bb-filter-group select {
    appearance: none !important;
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    width: 100% !important;
    min-width: 0 !important;
    max-width: none !important;
    height: 52px !important;
    min-height: 52px !important;
    line-height: 50px !important;
    /* In RTL: text right-aligned, arrow on LEFT side. Padding gives room for the arrow. */
    padding: 0 18px 0 40px !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    color: var(--khotta-gray-800) !important;
    background-color: var(--khotta-white) !important;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath fill='%231E52E8' d='M6 8L2 4h8z'/%3E%3C/svg%3E") !important;
    background-repeat: no-repeat !important;
    background-position: 14px center !important;
    background-size: 14px !important;
    border: 1.5px solid var(--khotta-primary) !important;
    border-radius: 10px !important;
    transition: var(--khotta-transition);
    direction: rtl !important;
    text-align: right !important;
    text-align-last: right !important;
    cursor: pointer !important;
    box-sizing: border-box !important;
    font-family: inherit !important;
}

.khotta-filter-drawer-body .bb-filter-group select::-ms-expand {
    display: none !important;
}

/* Highlighted state when a value is selected */
.khotta-filter-drawer-body .bb-filter-group.has-value select {
    background-color: rgba(30, 82, 232, 0.06) !important;
    color: var(--khotta-primary) !important;
    font-weight: 600 !important;
}
/* Checkmark indicator on label when filter is active */
.khotta-filter-drawer-body .bb-filter-group.has-value label::after {
    content: " ✓";
    color: var(--khotta-success);
    font-weight: 700;
}
.khotta-filter-drawer-body .bb-filter-group::after {
    top: auto !important;
    bottom: 18px !important;
    left: 14px !important;
    right: auto !important;
    transform: none !important;
    border-top-width: 6px !important;
    border-left-width: 5px !important;
    border-right-width: 5px !important;
    z-index: 2;
}
.khotta-filter-drawer-body .bb-filter-count {
    background: var(--khotta-gray-100) !important;
    color: var(--khotta-gray-700) !important;
    text-align: center;
    padding: 12px !important;
    font-size: 14px !important;
}
.khotta-filter-drawer-body .bb-filter-count strong {
    color: var(--khotta-primary) !important;
    font-size: 16px !important;
}
.khotta-filter-drawer-body .bb-filter-reset {
    width: 100%;
    padding: 12px !important;
    font-size: 14px !important;
}

/* Hide group label sibling (previously hidden in header) - show again in drawer */

/* ============================================================
   11. RESPONSIVE - 1200px (smaller desktops)
   ============================================================ */
@media (max-width: 1200px) {
    body.khotta-booking-page .bb-layout {
        grid-template-columns: 270px 1fr 260px !important;
        gap: 10px !important;
    }
    .khotta-header-inner {
        grid-template-columns: 220px 1fr auto;
        gap: 16px;
    }
    .khotta-filters-slot .bb-filter-group select {
        min-width: 130px !important;
    }
}

/* ============================================================
   12. RESPONSIVE - 1024px (tablets)
   On tablet, drop to 2 columns: map full-width + list/cart below
   ============================================================ */
@media (max-width: 1024px) {
    body.khotta-booking-page .bb-layout {
        grid-template-columns: 1fr 1fr !important;
        grid-template-areas:
            "map map"
            "list cart" !important;
        grid-template-rows: 60vh auto !important;
        height: auto !important;
        overflow: visible !important;
    }
    body.khotta-booking-page {
        height: auto;
        overflow: auto;
    }
    body.khotta-booking-page #page,
    body.khotta-booking-page .khotta-main {
        overflow: visible;
        height: auto;
    }
    body.khotta-booking-page .bb-wrapper {
        overflow: visible;
        height: auto;
    }
    body.khotta-booking-page .bb-map-container {
        min-height: 60vh;
        height: 60vh !important;
    }
    body.khotta-booking-page .khotta-list-panel,
    body.khotta-booking-page .bb-cart-panel {
        max-height: 70vh;
        height: auto !important;
    }
    .khotta-header-inner {
        grid-template-columns: auto 1fr auto;
    }
    .khotta-logo-text { display: none; }
    .khotta-filters-slot .bb-filter-group select {
        min-width: 110px !important;
        font-size: 12px !important;
    }
}

/* ============================================================
   12.5 Mobile safety net - hide non-drawer elements
   These apply WITHOUT requiring body.khotta-booking-page class so
   the layout stays correct even if class injection fails.
   ============================================================ */
@media (max-width: 900px) {
    /* Hide plugin's default elements (off-screen so JS can still teleport from them) */
    .bb-billboards-grid-section,
    .bb-floating-cart {
        display: none !important;
    }
    .bb-filters-bar {
        position: absolute !important;
        left: -9999px !important;
        top: -9999px !important;
        visibility: hidden !important;
        pointer-events: none !important;
        height: 0 !important;
        overflow: hidden !important;
        opacity: 0 !important;
    }

    /* Hide the site footer on the booking page - bottom nav takes its place */
    body.khotta-booking-page .khotta-site-footer,
    body.khotta-booking-page footer.khotta-site-footer {
        display: none !important;
    }

    /* Hide the contact/messaging icon next to logo (the orange/blue boxes shown empty) */
    .khotta-header-logo:empty,
    .khotta-header-action:empty {
        display: none !important;
    }

    /* Bottom nav must be ABOVE everything except drawers */
    .khotta-mobile-nav {
        display: flex !important;
        position: fixed !important;
        bottom: 0 !important;
        left: 0 !important;
        right: 0 !important;
        width: 100% !important;
        height: 64px !important;
        z-index: 99200 !important;
        background: var(--khotta-white) !important;
        border-top: 1px solid var(--khotta-gray-200) !important;
        box-shadow: 0 -4px 12px rgba(15, 23, 42, 0.08) !important;
        align-items: center !important;
        justify-content: space-around !important;
        padding: 0 8px !important;
        margin: 0 !important;
        flex-direction: row !important;
    }
    .khotta-mobile-nav .khotta-mnav-btn {
        flex: 1 1 33.333% !important;
        max-width: 33.333% !important;
        overflow: hidden !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 2px !important;
        padding: 4px 6px !important;
        height: 100% !important;
    }
    .khotta-mobile-nav .khotta-mnav-icon {
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
    }
    .khotta-mobile-nav .khotta-mnav-icon svg {
        width: 22px !important;
        height: 22px !important;
    }
    .khotta-mobile-nav .khotta-mnav-label {
        font-size: 11px !important;
        line-height: 1.1 !important;
        max-width: 100% !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
        white-space: nowrap !important;
        margin-top: 1px !important;
        text-align: center !important;
    }
}

/* ============================================================
   13. RESPONSIVE - 900px and below (Mobile)
   Mobile-first redesign:
   - Header: compact logo + filters scrollable + contact button
   - Body: ONLY the map (full screen)
   - Two FABs: list (right side, above) + cart (right side, below - plugin's own)
   - Tap "اللوحات" → drawer slides from right with billboard list
   - Tap cart → existing plugin behavior
   ============================================================ */
@media (max-width: 900px) {

    /* Body fills viewport height; main wrap takes everything between header and bottom nav */
    body.khotta-booking-page {
        height: 100vh !important;
        overflow: hidden !important;
    }
    body.khotta-booking-page #page,
    body.khotta-booking-page .khotta-main {
        height: calc(100vh - var(--khotta-header-h, 64px) - 64px) !important;
        min-height: calc(100vh - var(--khotta-header-h, 64px) - 64px) !important;
        overflow: hidden !important;
        padding: 0 !important;
        margin: 0 !important;
    }
    body.khotta-booking-page .bb-wrapper {
        height: 100% !important;
        min-height: 100% !important;
        overflow: hidden !important;
        padding: 0 !important;
        margin: 0 !important;
    }

    /* Layout fills the wrap */
    body .bb-wrapper .bb-layout,
    body.khotta-booking-page .bb-layout,
    body .bb-layout {
        display: block !important;
        grid-template-columns: none !important;
        grid-template-areas: none !important;
        grid-template-rows: none !important;
        height: 100% !important;
        min-height: 100% !important;
        flex: 1 !important;
        gap: 0 !important;
        position: relative !important;
        overflow: hidden !important;
        margin: 0 !important;
        padding: 0 !important;
    }

    /* Map container fills layout (override tablet rules with stronger specificity) */
    html body.khotta-booking-page .bb-map-container,
    body.khotta-booking-page .bb-map-container,
    body .bb-map-container {
        grid-area: unset !important;
        width: 100% !important;
        height: 100% !important;
        min-height: 100% !important;
        max-height: none !important;
        position: relative !important;
        background: var(--khotta-white);
        border-radius: 0 !important;
        box-shadow: none !important;
        overflow: hidden !important;
        margin: 0 !important;
    }
    .bb-wrapper #bb-map,
    body #bb-map {
        width: 100% !important;
        height: 100% !important;
        min-height: 100% !important;
    }

    /* When ANY drawer is open, prevent map interaction underneath */
    body.khotta-list-open #bb-map,
    body.bb-mobile-cart-open #bb-map,
    body.khotta-filter-open #bb-map,
    body.khotta-list-open .bb-map-container,
    body.bb-mobile-cart-open .bb-map-container,
    body.khotta-filter-open .bb-map-container {
        pointer-events: none !important;
        touch-action: none !important;
    }
    /* Lock body scroll when a drawer is open */
    body.khotta-list-open,
    body.bb-mobile-cart-open,
    body.khotta-filter-open {
        overflow: hidden !important;
        touch-action: none !important;
    }

    /* List panel = drawer from RIGHT, 90% width, ends above bottom nav */
    .bb-wrapper .khotta-list-panel,
    body .khotta-list-panel {
        position: fixed !important;
        top: 0 !important;
        bottom: 64px !important; /* leave room for bottom nav */
        right: 0 !important;
        left: auto !important;
        width: 90% !important;
        max-width: 420px !important;
        height: auto !important;
        max-height: calc(100vh - 64px) !important;
        z-index: 99100;
        transform: translateX(100%);
        transition: transform 0.4s cubic-bezier(0.32, 0.72, 0, 1), opacity 0.3s ease;
        border-radius: 0 !important;
        box-shadow: -8px 0 24px rgba(0, 0, 0, 0.18) !important;
        border: none !important;
        background: var(--khotta-white) !important;
        display: flex !important;
        flex-direction: column !important;
        overflow: hidden !important;
    }
    body.khotta-list-open .khotta-list-panel {
        transform: translateX(0) !important;
    }
    .khotta-list-close {
        display: flex !important;
    }

    /* Cart panel = drawer from LEFT, 90% width, ends above bottom nav */
    body .bb-wrapper .bb-cart-panel,
    body .bb-cart-panel,
    html body .bb-cart-panel {
        position: fixed !important;
        top: 0 !important;
        bottom: 64px !important; /* leave room for bottom nav */
        left: 0 !important;
        right: auto !important;
        width: 90% !important;
        max-width: 420px !important;
        height: auto !important;
        max-height: calc(100vh - 64px) !important;
        z-index: 99100 !important;
        transform: translateX(-100%);
        transition: transform 0.4s cubic-bezier(0.32, 0.72, 0, 1), opacity 0.3s ease !important;
        border-radius: 0 !important;
        box-shadow: 8px 0 24px rgba(0, 0, 0, 0.18) !important;
        border: none !important;
        background: var(--khotta-white) !important;
        display: flex !important;
        flex-direction: column !important;
        overflow: hidden !important;
        /* Reset properties the plugin may set */
        animation: none !important;
        margin: 0 !important;
    }
    html body.bb-mobile-cart-open .bb-cart-panel,
    body.bb-mobile-cart-open .bb-cart-panel {
        transform: translateX(0) !important;
    }

    /* Show backdrop with dark overlay when any drawer is open */
    body.khotta-list-open .khotta-drawer-backdrop,
    body.bb-mobile-cart-open .khotta-drawer-backdrop,
    body.khotta-filter-open .khotta-drawer-backdrop {
        display: block !important;
        position: fixed !important;
        inset: 0 !important;
        background: rgba(15, 23, 42, 0.5) !important;
        backdrop-filter: blur(2px) !important;
        -webkit-backdrop-filter: blur(2px) !important;
        z-index: 9050 !important;
        opacity: 1 !important;
        pointer-events: auto !important;
    }

    /* Plugin's cart close button (when present) */
    .bb-mobile-cart-close {
        display: flex !important;
        position: absolute !important;
        top: 12px !important;
        left: 12px !important;
        right: auto !important;
        background: rgba(255, 255, 255, 0.2) !important;
        border: none !important;
        width: 30px !important;
        height: 30px !important;
        border-radius: 50% !important;
        font-size: 20px !important;
        line-height: 1 !important;
        color: white !important;
        cursor: pointer !important;
        align-items: center !important;
        justify-content: center !important;
        z-index: 1 !important;
    }
    body.khotta-booking-page .bb-mobile-cart-close:hover {
        background: rgba(255, 255, 255, 0.35) !important;
    }

    /* Backdrop hidden on mobile because drawers fill the screen */
    body.khotta-list-open .khotta-drawer-backdrop,
    body.bb-mobile-cart-open .khotta-drawer-backdrop {
        display: none !important;
    }
    /* But still show backdrop for filter drawer (since it's a bottom sheet) */
    body.khotta-filter-open .khotta-drawer-backdrop {
        display: block !important;
        opacity: 1 !important;
        pointer-events: auto !important;
    }

    /* Map legend → MIDDLE of left side, vertical stack, compact */
    body .bb-map-legend,
    body.khotta-booking-page .bb-map-legend {
        position: absolute !important;
        top: 50% !important;
        bottom: auto !important;
        right: auto !important;
        left: 8px !important;
        transform: translateY(-50%) !important;
        display: inline-flex !important;
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 6px !important;
        padding: 8px 10px !important;
        font-size: 10px !important;
        background: rgba(255, 255, 255, 0.96) !important;
        width: auto !important;
        max-width: max-content !important;
        line-height: 1.2 !important;
        border-radius: var(--khotta-radius-sm) !important;
        box-shadow: 0 2px 8px rgba(15, 23, 42, 0.15) !important;
        z-index: 500 !important;
    }
    body .bb-map-legend > span,
    body.khotta-booking-page .bb-map-legend > span {
        white-space: nowrap !important;
        font-size: 10px !important;
        display: inline-flex !important;
        align-items: center !important;
        gap: 5px !important;
    }
    body .bb-map-legend .bb-dot,
    body.khotta-booking-page .bb-map-legend .bb-dot {
        width: 8px !important;
        height: 8px !important;
    }

    /* Hide plugin's floating cart - we use bottom nav instead */
    body.khotta-booking-page .bb-floating-cart {
        display: none !important;
    }

    /* Show bottom navigation bar */
    .khotta-mobile-nav {
        display: flex !important;
    }

    /* Header on mobile - hide filters, keep logo + contact */
    .khotta-header-inner {
        padding: 0 12px;
        gap: 8px;
        grid-template-columns: auto 1fr auto;
    }
    .khotta-logo-text { display: none !important; }
    .khotta-logo-mark { width: 38px; height: 38px; }
    .khotta-logo-mark svg { width: 20px; height: 20px; }

    /* Hide filter slot in header on mobile - filters go to drawer instead */
    .khotta-header-center,
    .khotta-filters-slot {
        display: none !important;
    }

    /* Contact button - icon only on mobile */
    .khotta-contact-btn {
        padding: 9px 11px;
        margin-right: auto;
    }
    .khotta-contact-btn span {
        display: none;
    }

    /* Show filter drawer container */
    .khotta-filter-drawer {
        display: flex !important;
    }

    /* ========== Booking modal fixes on mobile ========== */
    /* Force date input + select to have matching look + balanced height */
    body .bb-modal input[type="date"],
    body .bb-modal input[type="text"],
    body .bb-modal input[type="number"],
    body .bb-modal select,
    body .bb-modal textarea {
        width: 100% !important;
        height: 48px !important;
        padding: 0 14px !important;
        font-size: 15px !important;
        border: 1.5px solid var(--khotta-gray-300, #d1d5db) !important;
        border-radius: 8px !important;
        background-color: var(--khotta-white, #fff) !important;
        font-family: inherit !important;
        box-sizing: border-box !important;
        appearance: none !important;
        -webkit-appearance: none !important;
        line-height: 48px !important;
        color: var(--khotta-gray-900, #0f172a) !important;
    }
    body .bb-modal textarea {
        height: auto !important;
        min-height: 80px !important;
        line-height: 1.5 !important;
        padding: 12px 14px !important;
    }
    body .bb-modal input[type="date"] {
        position: relative;
        text-align: right !important;
        direction: rtl !important;
    }
    body .bb-modal input[type="date"]::-webkit-date-and-time-value {
        text-align: right;
    }
    body .bb-modal select {
        background-image: url("data:image/svg+xml;charset=UTF-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%23475569' d='M6 8L0 0h12z'/%3E%3C/svg%3E") !important;
        background-repeat: no-repeat !important;
        background-position: left 14px center !important;
        background-size: 12px 8px !important;
        padding-left: 38px !important;
    }
    body .bb-modal label {
        display: block !important;
        font-size: 13px !important;
        font-weight: 600 !important;
        color: var(--khotta-gray-700, #475569) !important;
        margin-bottom: 6px !important;
    }

    /* Make sure the "Add to cart" / submit button is fully visible at the bottom */
    body .bb-modal {
        align-items: flex-start !important;
        padding-bottom: 80px !important;
    }
    body .bb-modal .bb-modal-content,
    body .bb-modal .bb-modal-body,
    body .bb-modal .bb-modal-form,
    body .bb-modal form {
        padding-bottom: 24px !important;
    }
    body .bb-modal .bb-btn,
    body .bb-modal button[type="submit"],
    body .bb-modal .bb-btn-primary,
    body .bb-modal .bb-btn-accent {
        width: 100% !important;
        min-height: 50px !important;
        font-size: 15px !important;
        font-weight: 700 !important;
        margin-top: 8px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
    }
}

/* ============================================================
   15. Google Maps Customizations
   ============================================================ */

/* Loading indicator while Google Maps loads */
.bb-map-loading {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--khotta-gray-50);
    color: var(--khotta-gray-600);
    font-size: 14px;
    z-index: 10;
}

/* Map type toggle (Map / Satellite buttons on top-left of map).
   Now an HTML overlay positioned absolutely instead of using Google's controls API,
   so it works consistently across all browsers and mobile sizes. */
.bb-maptype-toggle {
    background: var(--khotta-white);
    border-radius: var(--khotta-radius-sm);
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.15);
    margin: 12px;
    overflow: hidden;
    display: flex;
    border: 1px solid var(--khotta-gray-200);
    font-family: 'IBM Plex Sans Arabic', sans-serif;
}

/* Overlay variant: absolutely positioned on the map container.
   Top-LEFT in RTL = visually right side, but for map controls we want top-left
   regardless of text direction (matches Google Maps convention). */
.bb-maptype-toggle.bb-maptype-toggle-overlay {
    position: absolute;
    top: 12px;
    left: 12px;
    right: auto;
    z-index: 100;
    margin: 0;
    direction: ltr; /* keep buttons in [Map | Satellite] order regardless of page dir */
}
.bb-maptype-btn {
    background: var(--khotta-white);
    border: none;
    padding: 8px 14px;
    font-size: 13px;
    font-weight: 500;
    color: var(--khotta-gray-700);
    cursor: pointer;
    transition: var(--khotta-transition);
    font-family: inherit;
    border-radius: 0;
    line-height: 1.3;
}
.bb-maptype-btn:not(:last-child) {
    border-left: 1px solid var(--khotta-gray-200);
}
.bb-maptype-btn:hover {
    background: var(--khotta-gray-100);
}
.bb-maptype-btn.bb-maptype-active {
    background: var(--khotta-primary);
    color: white;
    font-weight: 600;
}

/* Google Maps InfoWindow customization */
.gm-style .gm-style-iw-c {
    border-radius: var(--khotta-radius-sm) !important;
    padding: 0 !important;
    box-shadow: 0 12px 32px rgba(11, 30, 82, 0.3) !important;
    font-family: 'IBM Plex Sans Arabic', sans-serif !important;
}
.gm-style .gm-style-iw-d {
    overflow: hidden !important;
    padding: 0 !important;
    max-height: none !important;
}
.gm-style .gm-style-iw-d > div {
    padding: 0 !important;
}
/* InfoWindow close button - blue circle with centered X (matches design system) */
.gm-style .gm-ui-hover-effect {
    top: 8px !important;
    left: 8px !important;
    right: auto !important;
    background: var(--khotta-primary) !important;
    border-radius: 50% !important;
    width: 32px !important;
    height: 32px !important;
    opacity: 1 !important;
    transition: background 0.2s ease !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    box-shadow: 0 2px 6px rgba(30, 82, 232, 0.3) !important;
}
.gm-style .gm-ui-hover-effect:hover {
    background: var(--khotta-primary-dark) !important;
}
.gm-style .gm-ui-hover-effect > span {
    background-color: white !important;
    margin: 0 !important;
    width: 14px !important;
    height: 14px !important;
}
/* The X icon is two divs/imgs inside .gm-ui-hover-effect - center them */
.gm-style .gm-ui-hover-effect img {
    margin: auto !important;
}

/* InfoWindow inner content */
.bb-popup-image {
    width: 100%;
    height: 130px;
    object-fit: cover;
    display: block;
}
.bb-popup-body {
    padding: 14px 16px;
    direction: rtl;
    text-align: right;
    width: 260px;
    max-width: 100%;
}
.bb-popup-title {
    font-size: 15px;
    font-weight: 700;
    color: var(--khotta-gray-900);
    margin-bottom: 10px;
    line-height: 1.4;
}
.bb-popup-row {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    margin: 4px 0;
}
.bb-popup-label {
    color: var(--khotta-gray-500);
}
.bb-popup-value {
    color: var(--khotta-gray-800);
    font-weight: 500;
}
.bb-popup-facilities {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    margin: 8px 0;
}
.bb-popup-facility {
    font-size: 10px;
    background: var(--khotta-gray-100);
    color: var(--khotta-gray-700);
    padding: 2px 6px;
    border-radius: 4px;
}
.bb-popup-price {
    font-weight: 700;
    color: var(--khotta-primary);
    font-size: 14px;
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px solid var(--khotta-gray-200);
}
.bb-popup-btn {
    margin-top: 10px;
    width: 100%;
    background: var(--khotta-primary);
    color: white;
    border: none;
    padding: 9px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    font-family: inherit;
    transition: var(--khotta-transition);
}
.bb-popup-btn:hover {
    background: var(--khotta-primary-dark);
}

/* On mobile, position map type toggle as overlay on the map container.
   It's an HTML element now (not a Google Maps control) so it's always visible. */
@media (max-width: 900px) {
    .bb-maptype-toggle.bb-maptype-toggle-overlay {
        position: absolute !important;
        top: 8px !important;
        left: 8px !important;
        right: auto !important;
        z-index: 100 !important;
        display: flex !important;
        visibility: visible !important;
        opacity: 1 !important;
        pointer-events: auto !important;
        background: var(--khotta-white) !important;
        box-shadow: 0 2px 8px rgba(15, 23, 42, 0.2) !important;
        border-radius: 8px !important;
        overflow: hidden !important;
        margin: 0 !important;
    }
    .bb-maptype-btn {
        padding: 7px 12px !important;
        font-size: 11px !important;
        min-height: 32px !important;
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        white-space: nowrap !important;
    }
}

/* On very narrow screens, keep both buttons readable */
@media (max-width: 480px) {
    .bb-maptype-toggle.bb-maptype-toggle-overlay {
        top: 6px !important;
        left: 6px !important;
    }
    .bb-maptype-btn {
        padding: 6px 9px !important;
        font-size: 10px !important;
        min-height: 30px !important;
    }
}

/* Extremely narrow screens */
@media (max-width: 360px) {
    .bb-maptype-toggle.bb-maptype-toggle-overlay {
        top: 4px !important;
        left: 4px !important;
    }
    .bb-maptype-btn {
        padding: 5px 7px !important;
        font-size: 10px !important;
    }
}

/* ============================================================
   16. Contact Modal (نموذج التواصل)
   ============================================================ */
.khotta-modal {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}
.khotta-modal.active,
body.khotta-modal-open .khotta-modal {
    display: flex;
}
.khotta-modal-overlay {
    position: absolute;
    inset: 0;
    background: rgba(11, 30, 82, 0.55);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}
.khotta-modal-content {
    position: relative;
    background: var(--khotta-white);
    border-radius: var(--khotta-radius);
    width: 100%;
    max-width: 560px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(11, 30, 82, 0.4);
    animation: khottaModalIn 0.25s ease;
}
@keyframes khottaModalIn {
    from { opacity: 0; transform: translateY(20px) scale(0.96); }
    to   { opacity: 1; transform: translateY(0) scale(1); }
}

/* Modal close button - blue circle with centered X */
.khotta-modal-close {
    position: absolute;
    top: 12px;
    left: 12px;
    background: var(--khotta-primary);
    color: white;
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
    transition: var(--khotta-transition);
    z-index: 2;
    display: flex !important;
    align-items: center;
    justify-content: center;
    padding: 0;
    box-shadow: 0 2px 8px rgba(30, 82, 232, 0.3);
}
.khotta-modal-close svg {
    width: 18px;
    height: 18px;
    display: block;
}
.khotta-modal-close:hover {
    background: var(--khotta-primary-dark);
    transform: scale(1.05);
}

.khotta-modal-body {
    padding: 32px 28px 24px;
}

.khotta-modal-header {
    text-align: center;
    margin-bottom: 24px;
    padding-bottom: 18px;
    border-bottom: 1px solid var(--khotta-gray-200);
}
.khotta-modal-header h2 {
    margin: 0 0 8px;
    font-size: 22px;
    font-weight: 700;
    color: var(--khotta-dark);
}
.khotta-modal-header p {
    margin: 0;
    color: var(--khotta-gray-600);
    font-size: 14px;
    line-height: 1.6;
}

/* Contact info block (phone + email cards) */
.khotta-contact-info {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-bottom: 24px;
}
.khotta-contact-info-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 14px;
    background: var(--khotta-gray-50);
    border: 1px solid var(--khotta-gray-200);
    border-radius: var(--khotta-radius-sm);
    text-decoration: none !important;
    color: var(--khotta-gray-700);
    transition: var(--khotta-transition);
}
.khotta-contact-info-item:hover {
    border-color: var(--khotta-primary);
    background: var(--khotta-white);
    color: var(--khotta-primary);
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(30, 82, 232, 0.1);
}
.khotta-contact-info-icon {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    background: linear-gradient(135deg, var(--khotta-primary) 0%, var(--khotta-primary-dark) 100%);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.khotta-contact-info-icon svg {
    width: 18px;
    height: 18px;
}
.khotta-contact-info-text {
    flex: 1;
    min-width: 0;
}
.khotta-contact-info-text small {
    display: block;
    font-size: 11px;
    color: var(--khotta-gray-500);
    margin-bottom: 2px;
}
.khotta-contact-info-text strong {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: inherit;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    direction: ltr;
    text-align: right;
}

/* Contact form */
.khotta-contact-form {
    display: flex;
    flex-direction: column;
    gap: 14px;
}
.khotta-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}
.khotta-form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.khotta-form-group label {
    font-size: 13px;
    font-weight: 600;
    color: var(--khotta-gray-700);
}
.khotta-required {
    color: var(--khotta-danger);
}
.khotta-form-group input,
.khotta-form-group textarea {
    padding: 10px 12px;
    border: 1px solid var(--khotta-gray-300);
    border-radius: var(--khotta-radius-sm);
    font-size: 14px;
    color: var(--khotta-gray-900);
    background: var(--khotta-white);
    font-family: inherit;
    transition: var(--khotta-transition);
}
.khotta-form-group input:focus,
.khotta-form-group textarea:focus {
    outline: none;
    border-color: var(--khotta-primary);
    box-shadow: 0 0 0 3px rgba(30, 82, 232, 0.1);
}
.khotta-form-group textarea {
    resize: vertical;
    min-height: 100px;
    font-family: inherit;
    line-height: 1.5;
}

/* Form actions */
.khotta-form-actions {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    margin-top: 8px;
}
.khotta-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 11px 22px;
    border-radius: var(--khotta-radius-sm);
    font-weight: 600;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: var(--khotta-transition);
    font-family: inherit;
    font-size: 14px;
}
.khotta-btn-primary {
    background: linear-gradient(135deg, var(--khotta-primary) 0%, var(--khotta-primary-dark) 100%);
    color: white !important;
    box-shadow: 0 2px 8px rgba(30, 82, 232, 0.25);
}
.khotta-btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(30, 82, 232, 0.35);
}
.khotta-btn-primary:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none !important;
}
.khotta-btn-secondary {
    background: var(--khotta-gray-100);
    color: var(--khotta-gray-700) !important;
}
.khotta-btn-secondary:hover {
    background: var(--khotta-gray-200);
}

/* Form result message */
.khotta-form-message {
    padding: 12px 14px;
    border-radius: var(--khotta-radius-sm);
    font-size: 13px;
    line-height: 1.5;
}
.khotta-form-message-success {
    background: #d1fae5;
    color: #065f46;
    border: 1px solid #a7f3d0;
}
.khotta-form-message-error {
    background: #fee2e2;
    color: #991b1b;
    border: 1px solid #fecaca;
}

/* Mobile contact modal adjustments */
@media (max-width: 640px) {
    .khotta-modal {
        padding: 12px;
        align-items: flex-end;
    }
    .khotta-modal-content {
        max-height: 95vh;
        max-width: 100%;
        border-radius: 16px 16px 0 0;
    }
    .khotta-modal-body {
        padding: 24px 16px 16px;
    }
    .khotta-modal-header {
        margin-bottom: 14px;
    }
    .khotta-modal-header h2 {
        font-size: 18px;
        margin-bottom: 6px;
    }
    .khotta-modal-header p {
        font-size: 13px;
        line-height: 1.4;
    }
    /* Compact contact info cards */
    .khotta-contact-info {
        grid-template-columns: 1fr;
        gap: 8px;
        margin-bottom: 14px;
    }
    .khotta-contact-info-item {
        padding: 10px 12px !important;
        gap: 10px;
    }
    .khotta-contact-info-icon {
        width: 36px !important;
        height: 36px !important;
    }
    .khotta-contact-info-icon svg {
        width: 18px !important;
        height: 18px !important;
    }
    .khotta-contact-info-text small {
        font-size: 11px;
    }
    .khotta-contact-info-text strong {
        font-size: 13px;
    }
    /* Compact form */
    .khotta-form-row {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    .khotta-form-group {
        margin-bottom: 10px;
    }
    .khotta-form-group label {
        font-size: 13px;
        margin-bottom: 4px;
    }
    .khotta-form-group input,
    .khotta-form-group textarea {
        padding: 9px 12px !important;
        font-size: 14px !important;
        border-radius: 8px;
    }
    .khotta-form-group textarea {
        min-height: 80px !important;
    }
    .khotta-form-actions {
        flex-direction: column-reverse;
        gap: 8px;
        margin-top: 4px;
    }
    .khotta-form-actions .khotta-btn {
        width: 100%;
        padding: 11px 20px !important;
        font-size: 14px;
    }
    /* Modal close button — smaller */
    .khotta-modal-close {
        width: 32px !important;
        height: 32px !important;
        top: 10px !important;
        left: 10px !important;
    }
    .khotta-modal-close svg {
        width: 16px !important;
        height: 16px !important;
    }
}
@media (max-width: 900px) {
    /* On mobile: filter slot hidden in header, action buttons stay on the LEFT */
    body.khotta-booking-page #khotta-filters-slot {
        display: none !important;
    }
    /* Header layout becomes 2 columns: logo (right) + actions (left) */
    body.khotta-booking-page .khotta-header-inner {
        grid-template-columns: auto 1fr auto !important;
        gap: 8px !important;
    }
    /* Action area = the two circular buttons, always visible */
    body.khotta-booking-page .khotta-header-action {
        display: flex !important;
        gap: 8px !important;
        flex-shrink: 0 !important;
        justify-content: flex-end !important;
        align-items: center !important;
    }
    /* Buttons stay 40px on mobile to save space */
    .khotta-icon-btn {
        width: 40px !important;
        height: 40px !important;
    }
    .khotta-icon-btn svg {
        width: 18px !important;
        height: 18px !important;
    }
}
@media (max-width: 480px) {
    .khotta-header-inner {
        grid-template-columns: auto 1fr auto;
        gap: 6px;
        padding: 0 8px;
    }

    .khotta-filters-slot .bb-filter-group select {
        min-width: 100px !important;
        max-width: 130px !important;
        font-size: 11px !important;
    }

    /* List/cart drawers slightly narrower */
    body.khotta-booking-page .khotta-list-panel,
    body.khotta-booking-page .bb-cart-panel {
        width: 280px !important;
        max-width: 90vw !important;
    }
}

/* ============================================================
   16. User-requested override: select min-height 41px
   ============================================================ */
.bb-filter-group select,
.bb-wrapper select,
.bb-wrapper .bb-filter-group select {
    min-height: 41px !important;
}

/* ============================================================
   17. Force Latin (Western) numerals everywhere on the booking page
   Override any font features that might render Arabic-Indic digits.
   ============================================================ */
body.khotta-booking-page,
body.khotta-booking-page * {
    font-variant-numeric: lining-nums tabular-nums !important;
    font-feature-settings: "lnum" 1, "tnum" 1 !important;
}

/* Specifically for prices, numbers, and badges */
.bb-popup-price,
.bb-cart-item-price,
.bb-summary-total,
.khotta-billboard-card *,
.khotta-list-count,
.khotta-icon-btn-badge,
.bb-filter-count,
.khotta-mnav-cart-badge,
.khotta-header-cart-badge {
    font-feature-settings: "lnum" 1, "tnum" 1 !important;
    font-variant-numeric: lining-nums tabular-nums !important;
    unicode-bidi: plaintext;
}

/* ============================================================
   18. Popup gallery (carousel + thumbnails) and lightbox
   ============================================================ */
.bb-popup-gallery {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 10px;
    background: var(--khotta-gray-100);
}

.bb-gallery-main-wrap {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    border-radius: 8px;
}

.bb-popup-gallery .bb-gallery-main {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    cursor: zoom-in;
    transition: transform 0.3s ease;
}
.bb-popup-gallery .bb-gallery-main:hover {
    transform: scale(1.03);
}

.bb-gallery-zoom-hint {
    position: absolute;
    top: 10px;
    left: 10px;
    width: 32px;
    height: 32px;
    background: rgba(15, 23, 42, 0.7);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
    opacity: 0.85;
    transition: opacity 0.2s ease;
}
.bb-gallery-zoom-hint svg {
    width: 16px;
    height: 16px;
}
.bb-popup-gallery:hover .bb-gallery-zoom-hint {
    opacity: 1;
}

.bb-gallery-single .bb-gallery-main {
    aspect-ratio: 16 / 10;
}

.bb-gallery-thumbs {
    display: flex;
    gap: 6px;
    padding: 8px 4px 4px;
    overflow-x: auto;
    scrollbar-width: thin;
    -webkit-overflow-scrolling: touch;
}
.bb-gallery-thumbs::-webkit-scrollbar {
    height: 4px;
}
.bb-gallery-thumbs::-webkit-scrollbar-thumb {
    background: var(--khotta-gray-300);
    border-radius: 4px;
}

.bb-gallery-thumb {
    flex: 0 0 auto;
    width: 56px;
    height: 56px;
    border: 2px solid transparent;
    border-radius: 6px;
    overflow: hidden;
    padding: 0;
    background: var(--khotta-white);
    cursor: pointer;
    transition: border-color 0.2s ease, transform 0.15s ease;
}
.bb-gallery-thumb:hover {
    border-color: var(--khotta-gray-300);
    transform: translateY(-2px);
}
.bb-gallery-thumb.active {
    border-color: var(--khotta-primary);
    box-shadow: 0 2px 6px rgba(30, 82, 232, 0.25);
}
.bb-gallery-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* === Lightbox === */
.bb-lightbox {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.92);
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 30px;
    opacity: 0;
    transition: opacity 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    cursor: zoom-out;
}
.bb-lightbox.open {
    opacity: 1;
}

.bb-lightbox-stage {
    max-width: 95vw;
    max-height: 95vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.bb-lightbox-img {
    max-width: 100%;
    max-height: 95vh;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    transform: scale(0.92);
    transition: transform 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.bb-lightbox.open .bb-lightbox-img {
    transform: scale(1);
}

.bb-lightbox-close {
    position: fixed;
    top: 20px;
    left: 20px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    color: white;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease, transform 0.2s ease;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 100000;
}
.bb-lightbox-close:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: scale(1.1);
}
.bb-lightbox-close svg {
    width: 22px;
    height: 22px;
}

body.bb-lightbox-open {
    overflow: hidden !important;
}

/* On mobile, the lightbox has less padding */
@media (max-width: 600px) {
    .bb-lightbox {
        padding: 12px;
    }
    .bb-gallery-thumb {
        width: 48px;
        height: 48px;
    }
}

/* ============================================================
   19. Unified Carousel (Khotta) - used in card / popup / modal
   ============================================================ */
.khotta-carousel {
    position: relative;
    background: var(--khotta-gray-100);
    overflow: hidden;
    user-select: none;
    -webkit-user-select: none;
}

.khotta-carousel-stage {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

/* All slides stacked - we fade between them */
.khotta-carousel-slide {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.khotta-carousel-slide.active {
    opacity: 1;
    pointer-events: auto;
    z-index: 1;
}
.khotta-carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Empty state placeholder */
.khotta-carousel.is-empty {
    background: linear-gradient(135deg, var(--khotta-gray-100), var(--khotta-gray-200));
    display: flex;
    align-items: center;
    justify-content: center;
}
.khotta-carousel-placeholder svg {
    width: 48px;
    height: 48px;
    color: var(--khotta-gray-400);
}

/* === Navigation arrows (prev / next) === */
.khotta-carousel-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 5;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(15, 23, 42, 0.6);
    color: white;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    transition: background 0.2s ease, transform 0.2s ease, opacity 0.2s ease;
    opacity: 0.85;
}
.khotta-carousel-nav:hover {
    background: rgba(15, 23, 42, 0.85);
    opacity: 1;
    transform: translateY(-50%) scale(1.05);
}
.khotta-carousel-nav svg {
    width: 18px;
    height: 18px;
}
/* In RTL, prev visually goes on the right (showing "back" makes sense) */
.khotta-carousel-prev { right: 8px; }
.khotta-carousel-next { left: 8px; }

/* === Dots indicator === */
.khotta-carousel-dots {
    position: absolute;
    bottom: 8px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 5px;
    z-index: 5;
    padding: 4px 8px;
    border-radius: 12px;
    background: rgba(15, 23, 42, 0.35);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}
.khotta-carousel-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    border: none;
    padding: 0;
    cursor: pointer;
    transition: width 0.25s ease, background 0.2s ease;
}
.khotta-carousel-dot:hover {
    background: rgba(255, 255, 255, 0.8);
}
.khotta-carousel-dot.active {
    background: white;
    width: 18px;
    border-radius: 4px;
}

/* === Count badge "3 صور" (top-right in RTL) === */
.khotta-carousel-count {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 5;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 5px 10px;
    border-radius: 14px;
    background: rgba(15, 23, 42, 0.7);
    color: white;
    font-size: 11px;
    font-weight: 600;
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    pointer-events: none;
}
.khotta-carousel-count svg {
    width: 12px;
    height: 12px;
}

/* === Zoom button (top-left in RTL) === */
.khotta-carousel-zoom {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 5;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 5px 10px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.9);
    color: var(--khotta-gray-800);
    font-size: 11px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    transition: background 0.2s ease, transform 0.2s ease;
    font-family: inherit;
}
.khotta-carousel-zoom:hover {
    background: white;
    transform: scale(1.05);
}
.khotta-carousel-zoom svg {
    width: 12px;
    height: 12px;
}

/* ============================================================
   Variant: card (in the available billboards list panel)
   ============================================================ */
.khotta-carousel-card {
    aspect-ratio: 16 / 10;
    border-radius: 0;
}
.khotta-carousel-card .khotta-carousel-nav {
    width: 30px;
    height: 30px;
}
.khotta-carousel-card .khotta-carousel-nav svg {
    width: 14px;
    height: 14px;
}
.khotta-carousel-card .khotta-carousel-count,
.khotta-carousel-card .khotta-carousel-zoom {
    font-size: 10px;
    padding: 4px 8px;
}
/* On hover/focus only show nav buttons in card variant (less clutter) */
.khotta-carousel-card .khotta-carousel-nav,
.khotta-carousel-card .khotta-carousel-zoom {
    opacity: 0;
    transition: opacity 0.25s ease, background 0.2s ease, transform 0.2s ease;
}
.khotta-billboard-card:hover .khotta-carousel-nav,
.khotta-billboard-card:hover .khotta-carousel-zoom,
.khotta-carousel-card:focus-within .khotta-carousel-nav,
.khotta-carousel-card:focus-within .khotta-carousel-zoom {
    opacity: 0.95;
}

/* ============================================================
   Variant: popup (Google Maps info window)
   ============================================================ */
.khotta-carousel-popup {
    aspect-ratio: 16 / 10;
    border-radius: 12px 12px 0 0;
    margin-bottom: 0;
}
.khotta-carousel-popup .khotta-carousel-nav {
    width: 34px;
    height: 34px;
}

/* ============================================================
   Variant: modal (booking details modal)
   ============================================================ */
.khotta-carousel-modal {
    aspect-ratio: 16 / 9;
    border-radius: 12px;
    margin-bottom: 16px;
}
.khotta-carousel-modal .khotta-carousel-nav {
    width: 42px;
    height: 42px;
}
.khotta-carousel-modal .khotta-carousel-nav svg {
    width: 22px;
    height: 22px;
}
.khotta-carousel-modal .khotta-carousel-count,
.khotta-carousel-modal .khotta-carousel-zoom {
    font-size: 12px;
    padding: 6px 12px;
}

/* ============================================================
   Lightbox (Khotta) — fullscreen image viewer
   ============================================================ */
.khotta-lightbox {
    position: fixed;
    inset: 0;
    z-index: 99999;
    background: rgba(0, 0, 0, 0.92);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 30px;
    opacity: 0;
    transition: opacity 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    cursor: zoom-out;
}
.khotta-lightbox.open {
    opacity: 1;
}
.khotta-lightbox-stage {
    max-width: 95vw;
    max-height: 95vh;
    display: flex;
    align-items: center;
    justify-content: center;
}
.khotta-lightbox-img {
    max-width: 100%;
    max-height: 95vh;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    transform: scale(0.94);
    transition: transform 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.khotta-lightbox.open .khotta-lightbox-img {
    transform: scale(1);
}
.khotta-lightbox-close {
    position: fixed;
    top: 20px;
    left: 20px;
    z-index: 100000;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    color: white;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease, transform 0.2s ease;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}
.khotta-lightbox-close:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: scale(1.08);
}
.khotta-lightbox-close svg {
    width: 22px;
    height: 22px;
}
body.khotta-lightbox-open {
    overflow: hidden !important;
}

@media (max-width: 600px) {
    .khotta-lightbox {
        padding: 12px;
    }
    .khotta-carousel-card .khotta-carousel-nav {
        opacity: 0.85;
    }
}

/* ============================================================
   20. CRITICAL FIX: Filter drawer body - prevent overlapping filter groups
   Maximum specificity to defeat any plugin or other rules.
   ============================================================ */
@media (max-width: 900px) {
    /* Ensure the drawer body itself stacks children vertically */
    body #khotta-filter-drawer-body,
    body .khotta-filter-drawer-body,
    html body .khotta-filter-drawer-body {
        display: block !important;
        width: 100% !important;
        flex-direction: column !important;
    }

    /* Force every filter group to be a full-width vertical block */
    body #khotta-filter-drawer-body .bb-filter-group,
    body .khotta-filter-drawer-body .bb-filter-group,
    html body .khotta-filter-drawer-body .bb-filter-group {
        display: block !important;
        position: static !important;
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        height: auto !important;
        min-height: 0 !important;
        max-height: none !important;
        margin: 0 0 18px 0 !important;
        padding: 0 !important;
        flex: none !important;
        float: none !important;
        clear: both !important;
        top: auto !important;
        left: auto !important;
        right: auto !important;
        bottom: auto !important;
        transform: none !important;
        opacity: 1 !important;
        visibility: visible !important;
        overflow: visible !important;
    }

    /* Force label to always be visible above its select */
    body #khotta-filter-drawer-body .bb-filter-group label,
    body .khotta-filter-drawer-body .bb-filter-group label,
    body .khotta-filter-drawer-body .bb-filter-group > label,
    html body .khotta-filter-drawer-body .bb-filter-group label {
        display: block !important;
        position: static !important;
        width: 100% !important;
        height: auto !important;
        font-size: 14px !important;
        font-weight: 600 !important;
        color: #1F2937 !important;
        margin: 0 0 8px 0 !important;
        padding: 0 !important;
        line-height: 1.4 !important;
        text-align: right !important;
        clip: auto !important;
        clip-path: none !important;
        overflow: visible !important;
        opacity: 1 !important;
        visibility: visible !important;
        font-family: inherit !important;
        white-space: normal !important;
    }

    /* Force select to be a clean full-width element below its label */
    body #khotta-filter-drawer-body .bb-filter-group select,
    body .khotta-filter-drawer-body .bb-filter-group select,
    html body .khotta-filter-drawer-body .bb-filter-group select {
        display: block !important;
        position: static !important;
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        height: 52px !important;
        min-height: 52px !important;
        max-height: 52px !important;
        margin: 0 !important;
        padding: 0 18px 0 40px !important;
        line-height: 1 !important;
        font-size: 15px !important;
        font-weight: 500 !important;
        color: #1F2937 !important;
        background-color: #FFFFFF !important;
        background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath fill='%231E52E8' d='M6 8L2 4h8z'/%3E%3C/svg%3E") !important;
        background-repeat: no-repeat !important;
        background-position: 14px center !important;
        background-size: 14px !important;
        border: 1.5px solid #1E52E8 !important;
        border-radius: 10px !important;
        appearance: none !important;
        -webkit-appearance: none !important;
        -moz-appearance: none !important;
        text-align: right !important;
        text-align-last: right !important;
        direction: rtl !important;
        cursor: pointer !important;
        box-sizing: border-box !important;
        font-family: inherit !important;
    }

    /* Status filter must also stack with proper spacing */
    body #khotta-filter-drawer-body .khotta-status-filter,
    body .khotta-filter-drawer-body .khotta-status-filter {
        display: block !important;
        width: 100% !important;
        height: auto !important;
        position: static !important;
        margin: 0 0 18px 0 !important;
    }

    body .khotta-filter-drawer-body .khotta-status-btn {
        display: flex !important;
        position: static !important;
        width: 100% !important;
        margin: 0 0 8px 0 !important;
    }
}

/* ============================================================
   20. Custom mobile filter dropdowns + option sheet picker
   ============================================================ */

/* Mobile filter group inside drawer (custom dropdown UI) */
.khotta-mobile-filter-group {
    width: 100%;
    margin-bottom: 16px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.khotta-mobile-filter-label {
    font-size: 13px !important;
    font-weight: 600 !important;
    color: var(--khotta-gray-800) !important;
    margin: 0 !important;
    padding: 0 !important;
    text-align: right !important;
    display: block !important;
    width: 100% !important;
    position: static !important;
    visibility: visible !important;
    height: auto !important;
    line-height: 1.4 !important;
    clip: auto !important;
    overflow: visible !important;
}

.khotta-mobile-filter-trigger {
    width: 100%;
    height: 52px;
    background: var(--khotta-white);
    border: 1.5px solid var(--khotta-primary);
    border-radius: 10px;
    padding: 0 18px 0 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    font-size: 14px;
    font-weight: 500;
    color: var(--khotta-gray-800);
    font-family: inherit;
    cursor: pointer;
    transition: all 0.2s ease;
    direction: rtl;
}
.khotta-mobile-filter-trigger:hover {
    background: var(--khotta-gray-50);
    border-color: var(--khotta-primary-dark);
}
.khotta-mobile-filter-trigger:active {
    transform: scale(0.99);
}
.khotta-mobile-filter-trigger.has-value {
    background: rgba(30, 82, 232, 0.08);
    color: var(--khotta-primary);
    font-weight: 700;
}
.khotta-mobile-filter-arrow {
    color: var(--khotta-primary);
    flex-shrink: 0;
    transition: transform 0.25s ease;
}
.khotta-mobile-filter-value {
    flex: 1;
    text-align: right;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* === Bottom sheet option picker === */
.khotta-option-sheet {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--khotta-white);
    z-index: 99300; /* above bottom nav */
    border-radius: 18px 18px 0 0;
    box-shadow: 0 -10px 40px rgba(15, 23, 42, 0.25);
    transform: translateY(100%);
    transition: transform 0.4s cubic-bezier(0.32, 0.72, 0, 1);
    max-height: 70vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}
.khotta-option-sheet.open {
    transform: translateY(0);
}

/* Pull-handle at the top */
.khotta-option-sheet-handle {
    width: 40px;
    height: 4px;
    background: var(--khotta-gray-300);
    border-radius: 2px;
    margin: 8px auto 0;
    flex-shrink: 0;
}

.khotta-option-sheet-header {
    padding: 12px 18px 10px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid var(--khotta-gray-100);
    flex-shrink: 0;
}
.khotta-option-sheet-title {
    font-size: 15px;
    font-weight: 700;
    color: var(--khotta-gray-900);
}
.khotta-option-sheet-close {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--khotta-gray-100);
    border: none;
    color: var(--khotta-gray-700);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    transition: background 0.2s ease;
}
.khotta-option-sheet-close:hover {
    background: var(--khotta-gray-200);
}

.khotta-option-sheet-body {
    flex: 1;
    overflow-y: auto;
    padding: 8px 0 16px;
    -webkit-overflow-scrolling: touch;
}

.khotta-option-item {
    width: 100%;
    background: transparent;
    border: none;
    padding: 14px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    font-size: 15px;
    color: var(--khotta-gray-800);
    font-family: inherit;
    cursor: pointer;
    text-align: right;
    transition: background 0.15s ease;
    border-radius: 0;
    direction: rtl;
}
.khotta-option-item:hover,
.khotta-option-item:focus {
    background: var(--khotta-gray-50);
    outline: none;
}
.khotta-option-item:active {
    background: var(--khotta-gray-100);
}
.khotta-option-item.active {
    background: rgba(30, 82, 232, 0.08);
    color: var(--khotta-primary);
    font-weight: 700;
}
.khotta-option-item.active svg {
    color: var(--khotta-primary);
    flex-shrink: 0;
}
.khotta-option-label {
    flex: 1;
    text-align: right;
}

/* Option-sheet has its own backdrop feel - we darken the existing drawer-backdrop */
body.khotta-option-sheet-open .khotta-drawer-backdrop {
    background: rgba(15, 23, 42, 0.7);
}

/* Hide the original .bb-filter-group rules inside drawer body since we use custom dropdowns now */
.khotta-filter-drawer-body .bb-filter-group {
    display: none !important;
}

/* Hide #bb-filter-reset (reset button) in drawer too - use the apply button instead */
.khotta-filter-drawer-body #bb-filter-reset {
    display: none !important;
}

/* ============================================================
   21. Social media icons in header
   ============================================================ */
.khotta-social-icons {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin: 0;
    padding: 0;
}

.khotta-social-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--khotta-gray-100);
    color: var(--khotta-gray-700);
    text-decoration: none !important;
    transition: all 0.25s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    border: none;
    cursor: pointer;
    flex-shrink: 0;
}
.khotta-social-icon svg {
    width: 20px;
    height: 20px;
    transition: transform 0.25s ease;
}

.khotta-social-icon:hover {
    transform: translateY(-2px);
    color: white;
}
.khotta-social-icon:hover svg {
    transform: scale(1.1);
}
.khotta-social-icon:active {
    transform: translateY(0);
}

/* Brand colors on hover */
.khotta-social-facebook:hover {
    background: #1877F2;
}
.khotta-social-instagram:hover {
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
}
.khotta-social-tiktok:hover {
    background: linear-gradient(135deg, #000000 0%, #25F4EE 50%, #FE2C55 100%);
}
.khotta-social-whatsapp:hover {
    background: #25D366;
}

/* === Mobile: hide social icons from header (they appear inside contact modal instead) === */
@media (max-width: 900px) {
    .khotta-header-action .khotta-social-icons {
        display: none !important;
    }
}

/* ============================================================
   22. Map loader overlay (shown when switching to satellite/hybrid)
   ============================================================ */
.bb-map-loader {
    position: absolute;
    inset: 0;
    z-index: 450;
    background: rgba(15, 23, 42, 0.4);
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                visibility 0.25s;
}
.bb-map-loader.show {
    opacity: 1;
    visibility: visible;
}

.bb-map-loader-inner {
    background: white;
    padding: 18px 26px;
    border-radius: 14px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
    display: flex;
    align-items: center;
    gap: 14px;
    direction: rtl;
}

.bb-map-loader-spinner {
    width: 26px;
    height: 26px;
    border: 3px solid var(--khotta-gray-200);
    border-top-color: var(--khotta-primary);
    border-radius: 50%;
    animation: khotta-spin 0.7s linear infinite;
    flex-shrink: 0;
}

@keyframes khotta-spin {
    to { transform: rotate(360deg); }
}

.bb-map-loader-text {
    font-size: 14px;
    font-weight: 600;
    color: var(--khotta-gray-800);
    white-space: nowrap;
}

/* On mobile keep it visible but smaller */
@media (max-width: 600px) {
    .bb-map-loader-inner {
        padding: 14px 18px;
        gap: 10px;
    }
    .bb-map-loader-text {
        font-size: 13px;
    }
    .bb-map-loader-spinner {
        width: 22px;
        height: 22px;
        border-width: 2.5px;
    }
}

/* ============================================================
   23. Remove ALL box-shadows from the design (user request)
   ============================================================ */
*,
*::before,
*::after {
    box-shadow: none !important;
}

/* Some specific elements may have inset shadows we want to keep — list none for now */

/* ============================================================
   24. Header maptype toggle button (mobile only) +
       Hide cart icon in header on mobile (use bottom nav instead) +
       Hide overlay map type toggle on mobile (we have header button)
   ============================================================ */

/* Default desktop state: hide the map-type header button (overlay on map is used) */
.khotta-icon-btn-maptype {
    display: none !important;
}

/* On MOBILE: */
@media (max-width: 900px) {
    /* Show the map-type toggle in the header */
    .khotta-icon-btn-maptype {
        display: inline-flex !important;
        background: var(--khotta-gray-100);
        color: var(--khotta-gray-800);
    }
    .khotta-icon-btn-maptype:hover {
        background: var(--khotta-gray-200);
    }

    /* Hide the cart icon button in header — bottom nav has the cart access */
    .khotta-icon-btn-cart {
        display: none !important;
    }

    /* Hide the on-map overlay toggle since we now have it in the header */
    .bb-maptype-toggle.bb-maptype-toggle-overlay {
        display: none !important;
    }
}

/* ============================================================
   25. Social media icons inside the contact modal
   ============================================================ */
.khotta-modal-social {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 14px 0;
    margin: 8px 0 14px;
    border-top: 1px solid var(--khotta-gray-100);
    border-bottom: 1px solid var(--khotta-gray-100);
}
.khotta-modal-social-label {
    font-size: 13px;
    font-weight: 600;
    color: var(--khotta-gray-700);
}
.khotta-modal-social-icons {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    direction: ltr;
}
.khotta-modal-social-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--khotta-gray-100);
    color: var(--khotta-gray-700);
    text-decoration: none !important;
    transition: all 0.25s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    flex-shrink: 0;
}
.khotta-modal-social-icon svg {
    width: 20px;
    height: 20px;
    transition: transform 0.25s ease;
}
.khotta-modal-social-icon:hover {
    transform: translateY(-2px);
    color: white;
}
.khotta-modal-social-icon:hover svg {
    transform: scale(1.1);
}
/* Brand colors on hover (same as header social icons) */
.khotta-modal-social-icon.khotta-social-facebook:hover {
    background: #1877F2;
}
.khotta-modal-social-icon.khotta-social-instagram:hover {
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
}
.khotta-modal-social-icon.khotta-social-tiktok:hover {
    background: linear-gradient(135deg, #000000 0%, #25F4EE 50%, #FE2C55 100%);
}
.khotta-modal-social-icon.khotta-social-whatsapp:hover {
    background: #25D366;
}

/* On mobile: smaller icons in modal */
@media (max-width: 900px) {
    .khotta-modal-social {
        padding: 12px 0;
        margin: 4px 0 12px;
    }
    .khotta-modal-social-label {
        font-size: 12px;
    }
    .khotta-modal-social-icons {
        gap: 8px;
    }
    .khotta-modal-social-icon {
        width: 40px;
        height: 40px;
    }
    .khotta-modal-social-icon svg {
        width: 18px;
        height: 18px;
    }
}
