/* ============================================
   HOOYGA MOBILE-FIRST APP EXPERIENCE
   Designed for Somali Users on Mobile Devices
   "Hoteelka Kasta, Halkan"
   ============================================ */

/* ============================================
   MOBILE DETECTION & BASE SETUP
============================================ */

/* iOS Safe Areas */
:root {
    --safe-top: env(safe-area-inset-top, 0px);
    --safe-bottom: env(safe-area-inset-bottom, 0px);
    --safe-left: env(safe-area-inset-left, 0px);
    --safe-right: env(safe-area-inset-right, 0px);
    
    /* Mobile-specific variables */
    --mobile-header-height: 60px;
    --mobile-nav-height: 56px;
    --touch-target-min: 44px;
}

/* Smooth scrolling for iOS */
html {
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
}

/* Prevent pull-to-refresh interference */
body {
    overscroll-behavior-y: contain;
}

/* ============================================
   MOBILE-ONLY STYLES (max-width: 768px)
============================================ */
@media (max-width: 768px) {
    /* ===========================================
       GLOBAL MOBILE RESETS
    =========================================== */
    * {
        -webkit-tap-highlight-color: transparent;
    }
    
    body {
        font-size: 16px; /* Prevent iOS zoom on input focus */
        -webkit-text-size-adjust: 100%;
    }
    
    /* Larger touch targets */
    button, 
    a, 
    input, 
    select, 
    textarea {
        min-height: var(--touch-target-min);
    }
    
    /* ===========================================
       NAVIGATION - App-like Header
    =========================================== */
    .nav {
        position: fixed !important;
        top: 0;
        left: 0;
        right: 0;
        height: var(--mobile-header-height);
        padding: 0 16px;
        padding-top: var(--safe-top);
        background: rgba(8, 8, 10, 0.95);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        z-index: 1000;
        display: flex;
        align-items: center;
        justify-content: space-between;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }
    
    .nav-container {
        width: 100%;
        display: flex;
        align-items: center;
        justify-content: space-between;
    }
    
    .nav-logo {
        font-size: 1.25rem;
    }
    
    .nav-logo-text {
        font-size: 1.5rem;
    }
    
    /* Hide desktop nav links */
    .nav-links {
        display: none !important;
    }
    
    /* Show hamburger menu */
    .mobile-menu-btn {
        display: flex !important;
        width: 44px;
        height: 44px;
        align-items: center;
        justify-content: center;
        background: transparent;
        border: none;
        cursor: pointer;
    }
    
    .mobile-menu-btn span {
        display: block;
        width: 24px;
        height: 2px;
        background: var(--accent-gold);
        position: relative;
        transition: all 0.3s ease;
    }
    
    .mobile-menu-btn span::before,
    .mobile-menu-btn span::after {
        content: '';
        position: absolute;
        width: 24px;
        height: 2px;
        background: var(--accent-gold);
        left: 0;
        transition: all 0.3s ease;
    }
    
    .mobile-menu-btn span::before { top: -7px; }
    .mobile-menu-btn span::after { bottom: -7px; }
    
    /* ===========================================
       HERO SECTION - Mobile Optimized
    =========================================== */
    .dark-hero {
        padding-top: calc(var(--mobile-header-height) + var(--safe-top)) !important;
        min-height: auto !important;
    }
    
    .hero-search {
        padding: 24px 16px 32px !important;
        min-height: auto !important;
    }
    
    .hero-search-inner {
        padding: 0 !important;
    }
    
    /* Logo sizing for mobile */
    .logo-6d-hero {
        width: 100px !important;
        height: 100px !important;
        margin-bottom: 16px !important;
    }
    
    .logo-svg {
        width: 70px !important;
        height: 70px !important;
    }
    
    .brand-title {
        font-size: 2.5rem !important;
        letter-spacing: 0.02em !important;
    }
    
    .brand-subtitle {
        font-size: 0.65rem !important;
        letter-spacing: 0.3em !important;
        margin-bottom: 8px !important;
    }
    
    .tagline-somali {
        font-size: 1.5rem !important;
        margin-bottom: 4px !important;
    }
    
    .tagline-english {
        font-size: 0.75rem !important;
        letter-spacing: 0.15em !important;
    }
    
    /* ===========================================
       SEARCH PANEL - App-like Card
    =========================================== */
    .search-container {
        margin-top: 20px;
        border-radius: 20px;
        overflow: hidden;
        background: rgba(20, 20, 24, 0.9);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        border: 1px solid rgba(255, 255, 255, 0.1);
    }
    
    .search-tabs {
        display: flex;
        background: rgba(0, 0, 0, 0.3);
        padding: 8px;
        gap: 4px;
        border-radius: 16px 16px 0 0;
    }
    
    .search-tab {
        flex: 1;
        padding: 12px 8px;
        font-size: 0.85rem;
        font-weight: 500;
        background: transparent;
        border: none;
        border-radius: 12px;
        color: rgba(255, 255, 255, 0.6);
        transition: all 0.2s ease;
        cursor: pointer;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 6px;
    }
    
    .search-tab.active {
        background: var(--accent-gold);
        color: #1a1a1a;
    }
    
    .search-tab svg {
        width: 18px;
        height: 18px;
    }
    
    .search-form {
        padding: 16px;
    }
    
    .search-fields {
        display: flex;
        flex-direction: column;
        gap: 12px;
    }
    
    .search-field {
        background: rgba(255, 255, 255, 0.05);
        border: 1px solid rgba(255, 255, 255, 0.1);
        border-radius: 14px;
        padding: 14px 16px;
        transition: all 0.2s ease;
    }
    
    .search-field:focus-within {
        border-color: var(--accent-gold);
        background: rgba(201, 169, 98, 0.05);
    }
    
    .search-field label {
        display: block;
        font-size: 0.7rem;
        text-transform: uppercase;
        letter-spacing: 0.5px;
        color: rgba(255, 255, 255, 0.5);
        margin-bottom: 4px;
    }
    
    .search-field input {
        width: 100%;
        background: transparent;
        border: none;
        color: #fff;
        font-size: 1rem;
        padding: 0;
        outline: none;
    }
    
    .search-field input::placeholder {
        color: rgba(255, 255, 255, 0.4);
    }
    
    /* Date fields side by side */
    .search-dates {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 12px;
    }
    
    /* Guests field */
    .guests-selector {
        display: flex;
        align-items: center;
        justify-content: space-between;
    }
    
    .guests-controls {
        display: flex;
        align-items: center;
        gap: 16px;
    }
    
    .guests-btn {
        width: 40px;
        height: 40px;
        border-radius: 50%;
        background: rgba(255, 255, 255, 0.1);
        border: 1px solid rgba(255, 255, 255, 0.2);
        color: #fff;
        font-size: 1.25rem;
        display: flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        transition: all 0.2s ease;
    }
    
    .guests-btn:active {
        transform: scale(0.95);
        background: var(--accent-gold);
        color: #1a1a1a;
    }
    
    .guests-count {
        font-size: 1.25rem;
        font-weight: 600;
        min-width: 30px;
        text-align: center;
    }
    
    /* Search Button */
    .search-btn {
        width: 100%;
        padding: 16px;
        margin-top: 8px;
        font-size: 1rem;
        font-weight: 600;
        background: linear-gradient(135deg, var(--accent-gold), #a68521);
        color: #1a1a1a;
        border: none;
        border-radius: 14px;
        cursor: pointer;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 10px;
        transition: all 0.2s ease;
        box-shadow: 0 4px 15px rgba(201, 169, 98, 0.3);
    }
    
    .search-btn:active {
        transform: scale(0.98);
    }
    
    .search-btn svg {
        width: 20px;
        height: 20px;
    }
    
    /* ===========================================
       CALENDAR POPUP - Bottom Sheet Modal on Mobile
    =========================================== */
    /* Calendar backdrop overlay */
    .calendar-backdrop {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0, 0, 0, 0.6);
        backdrop-filter: blur(4px);
        -webkit-backdrop-filter: blur(4px);
        z-index: 99999;
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
    }
    
    .calendar-backdrop.active {
        opacity: 1;
        visibility: visible;
    }
    
    .calendar-popup {
        position: fixed !important;
        top: auto !important;
        bottom: 0 !important;
        left: 0 !important;
        right: 0 !important;
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 !important;
        transform: translateY(100%) !important;
        border-radius: 24px 24px 0 0 !important;
        max-height: 75vh !important;
        z-index: 100000 !important;
        display: flex !important;
        flex-direction: column;
        background: #0a0a0a !important;
        box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.5) !important;
        transition: transform 0.3s ease !important;
        overflow: hidden !important;
    }
    
    .calendar-popup.active {
        transform: translateY(0) !important;
    }
    
    /* Drag handle for bottom sheet */
    .calendar-popup::before {
        content: '';
        display: block;
        width: 40px;
        height: 4px;
        background: rgba(255, 255, 255, 0.3);
        border-radius: 2px;
        margin: 12px auto 0;
        flex-shrink: 0;
    }
    
    .calendar-header {
        padding: 12px 16px 16px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        display: flex;
        align-items: center;
        justify-content: space-between;
        flex-shrink: 0;
    }
    
    .calendar-close-btn {
        width: 44px;
        height: 44px;
        border-radius: 50%;
        background: rgba(255, 255, 255, 0.1);
        border: none;
        color: #fff;
        display: flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
    }
    
    .calendar-body {
        flex: 1;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        padding: 16px;
        padding-bottom: 16px;
    }
    
    .calendar-months-header {
        display: flex;
        flex-direction: column;
        gap: 4px;
        margin-bottom: 16px;
    }
    
    .calendar-month {
        width: 100%;
    }
    
    .calendar-grid {
        display: grid;
        grid-template-columns: repeat(7, 1fr);
        gap: 4px;
    }
    
    .calendar-day {
        aspect-ratio: 1;
        min-height: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
        border-radius: 50%;
        font-size: 0.95rem;
        cursor: pointer;
        transition: all 0.15s ease;
        color: #fff;
    }
    
    .calendar-day:active {
        transform: scale(0.9);
    }
    
    .calendar-day.selected,
    .calendar-day.in-range {
        background: var(--accent-gold);
        color: #1a1a1a;
        font-weight: 600;
    }
    
    .calendar-day.in-range:not(.selected) {
        background: rgba(201, 169, 98, 0.2);
        border-radius: 0;
    }
    
    /* Calendar footer with Apply button */
    .calendar-footer {
        padding: 16px;
        padding-bottom: calc(16px + env(safe-area-inset-bottom, 0px));
        border-top: 1px solid rgba(255, 255, 255, 0.1);
        display: flex;
        gap: 12px;
        flex-shrink: 0;
        background: #0a0a0a;
    }
    
    .calendar-btn-clear,
    .calendar-btn-today {
        flex: 1;
        padding: 14px;
        border-radius: 12px;
        font-size: 1rem;
        font-weight: 500;
        border: none;
        cursor: pointer;
        background: rgba(255, 255, 255, 0.1);
        color: #fff;
    }
    
    .calendar-btn-apply {
        flex: 2;
        padding: 14px;
        border-radius: 12px;
        font-size: 1rem;
        font-weight: 600;
        border: none;
        cursor: pointer;
        background: var(--accent-gold);
        color: #1a1a1a;
    }
    
    .calendar-footer {
        padding: 16px;
        padding-bottom: calc(16px + var(--safe-bottom));
        border-top: 1px solid rgba(255, 255, 255, 0.1);
        display: flex;
        gap: 12px;
        flex-shrink: 0;
    }
    
    .calendar-btn {
        flex: 1;
        padding: 14px;
        border-radius: 12px;
        font-size: 1rem;
        font-weight: 600;
        border: none;
        cursor: pointer;
    }
    
    .calendar-btn-clear {
        background: rgba(255, 255, 255, 0.1);
        color: #fff;
    }
    
    .calendar-btn-apply {
        background: var(--accent-gold);
        color: #1a1a1a;
    }
    
    /* ===========================================
       BOOKING SIDEBAR - Full Screen on Mobile
    =========================================== */
    .booking-overlay {
        background: rgba(0, 0, 0, 0.6);
        backdrop-filter: blur(4px);
        -webkit-backdrop-filter: blur(4px);
    }
    
    .booking-sidebar {
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        right: 0 !important;
        bottom: 0 !important;
        width: 100% !important;
        max-width: 100% !important;
        height: 100% !important;
        height: 100dvh !important;
        transform: translateY(100%);
        transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        border-radius: 0;
        box-shadow: none;
    }
    
    .booking-sidebar.active {
        transform: translateY(0);
        right: 0;
    }
    
    [dir="rtl"] .booking-sidebar {
        left: 0 !important;
        right: 0 !important;
    }
    
    .booking-sidebar-header {
        padding: 16px;
        padding-top: calc(16px + var(--safe-top));
        flex-shrink: 0;
    }
    
    .booking-sidebar-close {
        width: 44px;
        height: 44px;
    }
    
    .booking-hotel-info h2 {
        font-size: 1.35rem;
    }
    
    .booking-form {
        flex: 1;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        padding: 16px;
        padding-bottom: calc(100px + var(--safe-bottom));
    }
    
    .booking-section h3 {
        font-size: 0.9rem;
    }
    
    .booking-row {
        grid-template-columns: 1fr 1fr;
        gap: 12px;
    }
    
    .booking-input {
        padding: 14px 16px;
        font-size: 16px !important; /* Prevent iOS zoom */
        border-radius: 12px;
        min-height: 52px;
    }
    
    .booking-input:focus {
        border-color: var(--accent-gold);
        box-shadow: 0 0 0 3px rgba(201, 169, 98, 0.2);
    }
    
    /* Fixed submit button at bottom */
    .booking-submit-btn {
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        margin: 0;
        padding: 18px;
        padding-bottom: calc(18px + var(--safe-bottom));
        border-radius: 0;
        font-size: 1.1rem;
        z-index: 10;
    }
    
    /* ID Upload for mobile */
    .id-upload-container {
        flex-direction: column;
        align-items: stretch;
    }
    
    .id-upload-btn {
        width: 100%;
        justify-content: center;
        padding: 14px;
    }
    
    .id-file-name {
        text-align: center;
        padding: 8px 0;
    }
    
    /* ===========================================
       HOTEL CARDS - Mobile Grid
    =========================================== */
    .hotels-section {
        padding: 24px 16px;
    }
    
    .section-header {
        margin-bottom: 16px;
    }
    
    .section-title {
        font-size: 1.75rem;
    }
    
    .hotels-grid {
        display: flex;
        flex-direction: column;
        gap: 16px;
    }
    
    .hotel-card {
        border-radius: 16px;
        overflow: hidden;
    }
    
    .hotel-card-image {
        aspect-ratio: 16/10;
    }
    
    .hotel-card-content {
        padding: 14px;
    }
    
    .hotel-card-title {
        font-size: 1.1rem;
    }
    
    .hotel-card-location {
        font-size: 0.85rem;
    }
    
    .hotel-card-price {
        font-size: 1.1rem;
    }
    
    /* Favorite button - larger touch target */
    .hotel-favorite-btn {
        width: 44px;
        height: 44px;
    }
    
    /* Book Now button */
    .hotel-book-btn {
        padding: 12px 20px;
        font-size: 0.9rem;
        border-radius: 10px;
    }
    
    /* ===========================================
       FOOTER - Mobile Optimized
    =========================================== */
    .footer {
        padding: 32px 16px;
        padding-bottom: calc(32px + var(--safe-bottom));
    }
    
    .footer-grid {
        display: flex;
        flex-direction: column;
        gap: 24px;
    }
    
    .footer-column {
        text-align: center;
    }
    
    .footer-logo {
        margin-bottom: 12px;
    }
    
    .footer-links {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 16px;
    }
    
    .footer-bottom {
        margin-top: 24px;
        padding-top: 16px;
        text-align: center;
    }
    
    /* ===========================================
       TOAST NOTIFICATIONS - Mobile Position
    =========================================== */
    .toast-notification {
        bottom: auto !important;
        top: calc(var(--mobile-header-height) + var(--safe-top) + 16px) !important;
        left: 16px !important;
        right: 16px !important;
        transform: translateY(-120%) !important;
        max-width: none !important;
        min-width: 0 !important;
    }
    
    .toast-notification.visible {
        transform: translateY(0) !important;
    }
    
    /* ===========================================
       STATS SECTION - Mobile Layout
    =========================================== */
    .stats-bar {
        padding: 24px 16px;
    }
    
    .stats-container {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 12px;
    }
    
    .stat-item {
        text-align: center;
    }
    
    .stat-number {
        font-size: 1.5rem;
    }
    
    .stat-label {
        font-size: 0.7rem;
    }
    
    /* ===========================================
       MOBILE MENU OVERLAY
    =========================================== */
    .mobile-menu-overlay {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(8, 8, 10, 0.98);
        z-index: 999;
        display: flex;
        flex-direction: column;
        padding: calc(var(--mobile-header-height) + var(--safe-top) + 20px) 24px;
        padding-bottom: calc(24px + var(--safe-bottom));
        transform: translateX(100%);
        transition: transform 0.3s ease;
    }
    
    .mobile-menu-overlay.active {
        transform: translateX(0);
    }
    
    .mobile-menu-links {
        display: flex;
        flex-direction: column;
        gap: 8px;
    }
    
    .mobile-menu-link {
        padding: 16px 20px;
        font-size: 1.1rem;
        font-weight: 500;
        color: #fff;
        text-decoration: none;
        border-radius: 12px;
        background: rgba(255, 255, 255, 0.05);
        transition: all 0.2s ease;
    }
    
    .mobile-menu-link:active {
        background: rgba(201, 169, 98, 0.2);
        color: var(--accent-gold);
    }
    
    .mobile-menu-footer {
        margin-top: auto;
        padding-top: 24px;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
    }
    
    .mobile-lang-selector {
        display: flex;
        gap: 8px;
    }
    
    .mobile-lang-btn {
        flex: 1;
        padding: 12px;
        background: rgba(255, 255, 255, 0.05);
        border: 1px solid rgba(255, 255, 255, 0.1);
        border-radius: 10px;
        color: #fff;
        font-size: 0.9rem;
        cursor: pointer;
        transition: all 0.2s ease;
    }
    
    .mobile-lang-btn.active {
        background: var(--accent-gold);
        color: #1a1a1a;
        border-color: var(--accent-gold);
    }
}

/* ============================================
   SMALL PHONES (max-width: 380px)
============================================ */
@media (max-width: 380px) {
    .brand-title {
        font-size: 2rem !important;
    }
    
    .tagline-somali {
        font-size: 1.25rem !important;
    }
    
    .search-tab span {
        display: none;
    }
    
    .search-tab svg {
        width: 24px;
        height: 24px;
    }
    
    .booking-row {
        grid-template-columns: 1fr;
    }
    
    .stats-container {
        grid-template-columns: 1fr;
        gap: 16px;
    }
}

/* ============================================
   iOS SPECIFIC FIXES
============================================ */
@supports (-webkit-touch-callout: none) {
    /* iOS-only styles */
    
    /* Fix for iOS input zoom */
    input[type="text"],
    input[type="email"],
    input[type="tel"],
    input[type="number"],
    input[type="date"],
    select,
    textarea {
        font-size: 16px !important;
    }
    
    /* iOS date input styling */
    input[type="date"] {
        -webkit-appearance: none;
        appearance: none;
    }
    
    /* Momentum scrolling */
    .booking-form,
    .calendar-body,
    .mobile-menu-overlay {
        -webkit-overflow-scrolling: touch;
    }
    
    /* Fix 100vh on iOS */
    .booking-sidebar,
    .calendar-popup {
        height: 100vh;
        height: -webkit-fill-available;
    }
}

/* ============================================
   ANDROID SPECIFIC FIXES
============================================ */
@supports not (-webkit-touch-callout: none) {
    /* Android-only styles */
    
    /* Android ripple effect simulation */
    @media (max-width: 768px) {
        button:active,
        a:active,
        .hotel-card:active {
            opacity: 0.8;
            transition: opacity 0.1s ease;
        }
    }
}

/* ============================================
   PWA STANDALONE MODE
============================================ */
@media (display-mode: standalone) {
    /* Remove browser UI hints */
    .nav {
        padding-top: var(--safe-top);
    }
    
    /* Hide install prompts */
    .pwa-install-btn {
        display: none !important;
    }
}

/* ============================================
   LANDSCAPE ORIENTATION
============================================ */
@media (max-width: 768px) and (orientation: landscape) {
    .hero-search {
        padding: 16px !important;
    }
    
    .logo-6d-hero {
        width: 60px !important;
        height: 60px !important;
    }
    
    .brand-title {
        font-size: 1.75rem !important;
    }
    
    .calendar-popup {
        flex-direction: row;
    }
    
    .calendar-body {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 16px;
    }
}

/* ============================================
   DARK/LIGHT MODE MOBILE ADJUSTMENTS
============================================ */
@media (max-width: 768px) {
    [data-theme="light"] .nav {
        background: rgba(255, 255, 255, 0.95);
        border-bottom-color: rgba(0, 0, 0, 0.1);
    }
    
    [data-theme="light"] .mobile-menu-btn span,
    [data-theme="light"] .mobile-menu-btn span::before,
    [data-theme="light"] .mobile-menu-btn span::after {
        background: var(--accent-gold);
    }
    
    [data-theme="light"] .search-container {
        background: rgba(255, 255, 255, 0.95);
        border-color: rgba(0, 0, 0, 0.1);
    }
    
    [data-theme="light"] .search-field {
        background: rgba(0, 0, 0, 0.03);
        border-color: rgba(0, 0, 0, 0.1);
    }
    
    [data-theme="light"] .search-field label {
        color: rgba(0, 0, 0, 0.5);
    }
    
    [data-theme="light"] .search-field input {
        color: #1a1a1a;
    }
    
    [data-theme="light"] .calendar-popup {
        background: #fff;
    }
    
    [data-theme="light"] .mobile-menu-overlay {
        background: rgba(255, 255, 255, 0.98);
    }
    
    [data-theme="light"] .mobile-menu-link {
        color: #1a1a1a;
        background: rgba(0, 0, 0, 0.03);
    }
}

/* ============================================
   REDUCED MOTION
============================================ */
@media (prefers-reduced-motion: reduce) {
    * {
        animation: none !important;
        transition-duration: 0.01ms !important;
    }
}

/* ============================================
   TOUCH FEEDBACK ANIMATIONS
============================================ */
@media (max-width: 768px) {
    @keyframes touchPulse {
        0% { transform: scale(1); }
        50% { transform: scale(0.97); }
        100% { transform: scale(1); }
    }
    
    .hotel-card:active,
    .search-btn:active,
    .booking-submit-btn:active {
        animation: touchPulse 0.2s ease;
    }
}

/* ============================================
   TABLET PORTRAIT MODE (768px - 1024px portrait)
============================================ */
@media (min-width: 768px) and (max-width: 1024px) and (orientation: portrait) {
    /* Ensure content is visible */
    .dark-hero {
        min-height: auto !important;
        height: auto !important;
    }
    
    .hero-search {
        padding: 40px 24px 60px !important;
    }
    
    .hero-search-inner {
        max-width: 600px !important;
    }
    
    /* Logo sizing */
    .logo-6d-hero {
        width: 120px !important;
        height: 120px !important;
    }
    
    .brand-title {
        font-size: 2.75rem !important;
    }
    
    .tagline-somali {
        font-size: 1.5rem !important;
    }
    
    /* Search container - vertical stack */
    .search-container {
        max-width: 100%;
    }
    
    .search-fields {
        flex-direction: column !important;
        gap: 12px;
    }
    
    .search-dates {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 12px;
    }
    
    /* Hotels grid - 2 columns */
    .hotels-grid {
        display: grid !important;
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 20px;
    }
    
    .hotel-card {
        margin-bottom: 0;
    }
    
    /* Calendar popup - centered modal */
    .calendar-popup {
        position: fixed !important;
        top: 50% !important;
        left: 50% !important;
        right: auto !important;
        bottom: auto !important;
        transform: translate(-50%, -50%) !important;
        width: 90% !important;
        max-width: 500px !important;
        max-height: 80vh !important;
        border-radius: 20px !important;
        margin: 0 !important;
    }
    
    .calendar-popup.active {
        transform: translate(-50%, -50%) !important;
    }
    
    /* Booking sidebar - wider on tablet */
    .booking-sidebar {
        max-width: 450px !important;
    }
    
    /* Stats section */
    .stats-container {
        grid-template-columns: repeat(3, 1fr);
    }
    
    /* Footer - 2 columns */
    .footer-grid {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 32px;
    }
    
    /* Ensure map/content visibility */
    .map-container,
    .hotel-map,
    .results-map {
        display: block !important;
        height: 300px !important;
        min-height: 300px !important;
    }
}

/* ============================================
   TABLET LANDSCAPE MODE (1024px+ landscape)
============================================ */
@media (min-width: 1024px) and (orientation: landscape) {
    /* Full desktop experience in landscape */
    .calendar-popup {
        position: absolute !important;
        top: 100% !important;
        left: 50% !important;
        transform: translateX(-50%) !important;
        bottom: auto !important;
        right: auto !important;
        margin-top: 4px !important;
        width: 600px !important;
        max-width: 95vw !important;
        border-radius: 12px !important;
    }
}

/* ============================================
   ID UPLOAD SUCCESS STATE - MOBILE SPECIFIC
============================================ */
@media (max-width: 768px) {
    .id-upload-container {
        flex-direction: column;
        align-items: stretch;
    }
    
    .id-upload-btn {
        width: 100%;
        justify-content: center;
        padding: 16px;
        font-size: 1rem;
    }
    
    .id-file-name {
        display: none; /* Hide on mobile, use success state instead */
    }
    
    .id-upload-success {
        padding: 16px;
        border-radius: 14px;
    }
    
    .id-preview-thumbnail {
        width: 70px;
        height: 50px;
    }
    
    .id-upload-success-text .filename {
        font-size: 1rem;
    }
    
    .id-upload-success-text .status {
        font-size: 0.85rem;
    }
    
    .id-upload-remove {
        width: 36px;
        height: 36px;
    }
}
