/* ==========================================================================
   GoLUXIGO - LUXURY TRAVEL SITE MOBILE DESIGN SYSTEM (mobile.css)
   Brand Colors: Navy #0C1421, Gold #C8A45C, Cream #F4EFE6
   Target Pages: index.html (Destinations) & exp.html (Experiences)
   All rules enforced with !important to guarantee overrides.
   ========================================================================== */

/* --- ROOT & GLOBAL VARIABLE FALLBACKS --- */
:root {
  --navy: #0C1421 !important;
  --cream: #F4EFE6 !important;
  --gold: #C8A45C !important;
  --navy-mid: #1a2332 !important;
  --navy-dark: #060A10 !important;
  --font-serif: 'Playfair Display', Georgia, serif !important;
  --font-sans: 'Plus Jakarta Sans', 'Satoshi', -apple-system, sans-serif !important;
}

/* ==========================================================================
   1. TABLET VIEWPORT (max-width: 1024px)
   ========================================================================== */
@media screen and (max-width: 1024px) {
  
  /* --- Reset & Overflow Prevention --- */
  html, body {
    overflow-x: hidden !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    box-sizing: border-box !important;
  }
  
  body {
    background-color: #0C1421 !important;
    color: #F4EFE6 !important;
    padding-bottom: 100px !important; /* Spacing for the bottom tab bar */
  }
  
  * {
    max-width: 100% !important;
    box-sizing: border-box !important;
  }
  
  /* --- Shared Font Adjustments --- */
  h1, h2, h3, h4, h5, h6 {
    font-family: 'Playfair Display', Georgia, serif !important;
  }
  
  p, span, a, li, input, button {
    font-family: 'Plus Jakarta Sans', 'Satoshi', -apple-system, sans-serif !important;
  }

  /* --- Glassmorphism Fixed Top Header --- */
  /* Target both index.html (nav) and exp.html (.header-nav) */
  nav:not(.mobile-bottom-nav),
  .header-nav {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 70px !important;
    z-index: 9999 !important;
    background: rgba(12, 20, 33, 0.85) !important;
    backdrop-filter: blur(20px) saturate(180%) !important;
    -webkit-backdrop-filter: blur(20px) saturate(180%) !important;
    border-bottom: 1px solid rgba(200, 164, 92, 0.15) !important;
    padding: 0 20px !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
  }

  /* Hide duplicate/unwanted navigation elements on exp.html */
  .header-nav ~ nav:not(.mobile-bottom-nav) {
    display: none !important;
  }
  
  nav:not(.mobile-bottom-nav) {
    display: flex !important;
  }

  .nav-container {
    width: 100% !important;
    max-width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
  }
  
  /* Logo centering for ultra-premium look */
  .logo, .nav-logo {
    font-family: 'Playfair Display', Georgia, serif !important;
    font-size: 20px !important;
    color: #C8A45C !important;
    text-decoration: none !important;
    letter-spacing: 2px !important;
    margin: 0 auto !important;
    display: inline-block !important;
    text-align: center !important;
  }
  
  .logo span {
    color: #F4EFE6 !important;
    font-weight: 400 !important;
  }
  
  .nav-logo-img {
    height: 36px !important;
    width: auto !important;
    margin: 0 auto !important;
    display: block !important;
  }
  
  /* Hide desktop menu items and CTAs */
  .nav-links, .nav-cta, nav div {
    display: none !important;
  }
  
  /* Ensure the active header-nav doesn't overflow */
  .header-nav.scrolled {
    padding: 0 20px !important;
    background: rgba(12, 20, 33, 0.9) !important;
  }

  /* --- iOS-Style Glass Bottom Tab Bar --- */
  .mobile-bottom-nav {
    display: flex !important;
    position: fixed !important;
    bottom: 24px !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    width: 90% !important;
    max-width: 480px !important;
    height: 64px !important;
    background: rgba(12, 20, 33, 0.8) !important;
    backdrop-filter: blur(25px) saturate(190%) !important;
    -webkit-backdrop-filter: blur(25px) saturate(190%) !important;
    border: 1px solid rgba(200, 164, 92, 0.2) !important;
    border-radius: 32px !important;
    z-index: 9998 !important;
    justify-content: space-around !important;
    align-items: center !important;
    padding: 0 10px !important;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.08) !important;
  }
  
  .nav-backdrop {
    position: absolute !important;
    height: 80% !important;
    background: rgba(200, 164, 92, 0.14) !important;
    border: 1px solid rgba(200, 164, 92, 0.2) !important;
    border-radius: 24px !important;
    pointer-events: none !important;
    z-index: 10 !important;
    transition: all 0.35s cubic-bezier(0.25, 1, 0.5, 1) !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15) !important;
  }
  
  .bottom-nav-item {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 2px !important;
    flex: 1 !important;
    height: 100% !important;
    min-height: 48px !important; /* Exceeds 44px touch target requirement */
    padding: 8px 4px !important;
    color: rgba(244, 239, 230, 0.45) !important;
    text-decoration: none !important;
    -webkit-tap-highlight-color: transparent !important;
    position: relative !important;
    z-index: 20 !important;
    transition: color 0.3s ease, transform 0.3s ease !important;
  }
  
  .bottom-nav-item svg {
    display: block !important;
    width: 24px !important;
    height: 24px !important;
    fill: currentColor !important;
    transition: transform 0.3s cubic-bezier(0.25, 0.8, 0.25, 1) !important;
  }
  
  .bottom-nav-item span {
    font-size: 10px !important;
    font-weight: 600 !important;
    letter-spacing: -0.01em !important;
    color: inherit !important;
    margin-top: 3px !important;
    text-transform: none !important;
  }
  
  .bottom-nav-item.active {
    color: #C8A45C !important;
  }
  
  .bottom-nav-item.active svg {
    transform: scale(1.1) !important;
  }

  /* --- Hero Section Spacing & Typography --- */
  .hero {
    height: 55vh !important;
    min-height: 380px !important;
    padding-top: 100px !important; /* Offset for fixed top header */
    padding-left: 24px !important;
    padding-right: 24px !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
    background: linear-gradient(rgba(12, 20, 33, 0.4), rgba(12, 20, 33, 0.95)), 
                linear-gradient(135deg, #060A10, #0C1421) !important;
  }

  body > .hero {
    background-size: cover !important;
    background-position: center !important;
  }
  
  .hero h1 {
    font-size: clamp(2rem, 5.5vw, 3.8rem) !important;
    font-weight: 300 !important;
    line-height: 1.2 !important;
    letter-spacing: 0.5px !important;
    color: #F4EFE6 !important;
  }
  
  .hero h1 em, .hero h1 span {
    color: #C8A45C !important;
    font-style: italic !important;
  }
  
  .hero p {
    color: rgba(244, 239, 230, 0.6) !important;
    font-size: 12px !important;
    letter-spacing: 3px !important;
    text-transform: uppercase !important;
  }
  
  .hero-line {
    width: 50px !important;
    height: 1px !important;
    background: #C8A45C !important;
    margin: 16px auto !important;
  }

  /* --- Grid System & Containers --- */
  .dest-grid {
    max-width: 100% !important;
    width: 100% !important;
    margin: -30px auto 60px !important;
    padding: 0 24px !important;
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 20px !important;
    z-index: 2 !important;
  }
  
  .container {
    max-width: 100% !important;
    width: 100% !important;
    padding: 60px 24px !important;
    margin: 0 auto !important;
  }
  
  .card-grid {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 24px !important;
    width: 100% !important;
  }

  /* --- Card Design --- */
  .dest-card {
    height: 440px !important;
    border-radius: 12px !important;
    border: 1px solid rgba(200, 164, 92, 0.1) !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15) !important;
  }
  
  .dest-overlay {
    height: 65% !important;
    background: linear-gradient(transparent, rgba(12, 20, 33, 0.98)) !important;
  }
  
  .dest-info {
    padding: 24px !important;
  }
  
  .dest-name {
    font-size: 24px !important;
    margin-bottom: 4px !important;
  }
  
  .dest-price {
    font-size: 13px !important;
    letter-spacing: 1.5px !important;
  }
  
  .dest-desc {
    font-size: 12.5px !important;
    line-height: 1.5 !important;
    margin-top: 8px !important;
    max-width: 100% !important;
  }
  
  .dest-btn {
    margin-top: 16px !important;
    padding: 12px 24px !important;
    font-size: 11px !important;
    letter-spacing: 1.5px !important;
    min-height: 44px !important; /* Touch target standard */
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    border-radius: 4px !important;
    transition: all 0.3s ease !important;
  }
  
  .card {
    border-radius: 12px !important;
    border: 1px solid rgba(200, 164, 92, 0.1) !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2) !important;
    background: #1a2332 !important;
  }
  
  .card img {
    height: 220px !important;
    width: 100% !important;
    object-fit: cover !important;
  }
  
  .card-content {
    padding: 24px !important;
  }
  
  .card h3 {
    font-size: 1.3rem !important;
    margin-bottom: 6px !important;
  }
  
  .card .tag {
    font-size: 0.8rem !important;
    letter-spacing: 1.5px !important;
    margin-bottom: 12px !important;
    font-weight: 600 !important;
  }
  
  .card p {
    font-size: 0.95rem !important;
    line-height: 1.6 !important;
  }

  /* --- Call To Action (CTA) & Buttons --- */
  .section-title {
    font-size: 1.8rem !important;
    margin-bottom: 30px !important;
  }
  
  .cta {
    padding: 60px 24px !important;
  }
  
  .cta h2 {
    font-size: 1.8rem !important;
    margin-bottom: 16px !important;
  }
  
  .cta p {
    font-size: 0.95rem !important;
    margin-bottom: 24px !important;
    max-width: 550px !important;
  }
  
  .btn-gold {
    padding: 12px 36px !important;
    min-height: 44px !important; /* Touch target standard */
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    border-radius: 4px !important;
    font-size: 0.85rem !important;
    letter-spacing: 1.5px !important;
    transition: all 0.3s ease !important;
  }

  /* --- Footer --- */
  footer {
    padding: 40px 24px 100px !important; /* Generous bottom spacing for tab bar */
  }
  
  .footer-content {
    flex-direction: row !important;
    justify-content: space-between !important;
    align-items: center !important;
    width: 100% !important;
  }
  
  .footer-content p, footer p {
    font-size: 11px !important;
    color: rgba(244, 239, 230, 0.4) !important;
  }
  
  .footer-links {
    gap: 16px !important;
  }
  
  .footer-links a {
    font-size: 12px !important;
    padding: 10px 12px !important;
    min-height: 44px !important; /* Touch target standard */
    display: inline-flex !important;
    align-items: center !important;
    transition: color 0.3s ease !important;
  }
}

/* ==========================================================================
   2. PHONE VIEWPORT (max-width: 768px)
   ========================================================================== */
@media screen and (max-width: 768px) {
  
  /* --- Layout & Single-Column Enforcement --- */
  .dest-grid {
    grid-template-columns: 1fr !important; /* Strict Single-Column */
    margin: -20px auto 50px !important;
    padding: 0 20px !important;
    gap: 24px !important;
  }
  
  .card-grid {
    grid-template-columns: 1fr !important; /* Strict Single-Column */
    gap: 24px !important;
  }
  
  .container {
    padding: 40px 20px !important;
  }

  /* --- Hero Adjustments --- */
  .hero {
    height: 50vh !important;
    min-height: 320px !important;
    padding-top: 80px !important;
  }
  
  .hero h1 {
    font-size: 2.2rem !important;
  }
  
  .hero p {
    letter-spacing: 2px !important;
    font-size: 11px !important;
  }
  
  /* --- Card Height & Spacing Optimization --- */
  .dest-card {
    height: 380px !important;
  }
  
  .dest-info {
    padding: 20px !important;
  }
  
  .dest-name {
    font-size: 22px !important;
  }
  
  .card img {
    height: 200px !important;
  }
  
  .card-content {
    padding: 20px !important;
  }
  
  .card h3 {
    font-size: 1.25rem !important;
  }

  /* --- Navigation & Bottom Bar --- */
  .mobile-bottom-nav {
    width: 92% !important;
    bottom: 16px !important;
  }

  /* --- Section Spacing --- */
  .section-title {
    font-size: 1.6rem !important;
    margin-bottom: 24px !important;
  }
  
  .cta {
    padding: 50px 20px !important;
  }
  
  .cta h2 {
    font-size: 1.6rem !important;
  }

  /* --- Footer Column Restructure --- */
  footer {
    padding: 40px 20px 96px !important;
  }
  
  .footer-content {
    flex-direction: column !important;
    gap: 16px !important;
    text-align: center !important;
  }
}

/* ==========================================================================
   3. SMALL PHONE VIEWPORT (max-width: 480px)
   ========================================================================== */
@media screen and (max-width: 480px) {
  
  /* --- Margins & Paddings Reduction --- */
  .dest-grid {
    padding: 0 16px !important;
    gap: 20px !important;
    margin-top: -15px !important;
  }
  
  .container {
    padding: 30px 16px !important;
  }
  
  .card-grid {
    gap: 20px !important;
  }

  /* --- Hero Adjustments --- */
  .hero {
    height: 45vh !important;
    min-height: 280px !important;
  }
  
  .hero h1 {
    font-size: 1.8rem !important;
  }
  
  .hero-line {
    margin: 12px auto !important;
  }

  /* --- Card Compress Details --- */
  .dest-card {
    height: 340px !important;
  }
  
  .dest-info {
    padding: 16px !important;
  }
  
  .dest-name {
    font-size: 20px !important;
  }
  
  .dest-desc {
    font-size: 12px !important;
    margin-top: 6px !important;
  }
  
  .card img {
    height: 180px !important;
  }
  
  .card-content {
    padding: 16px !important;
  }
  
  .card h3 {
    font-size: 1.15rem !important;
  }
  
  .card p {
    font-size: 0.9rem !important;
  }

  /* --- iOS-Style Glass Bottom Tab Bar (Optimized for Small Screens) --- */
  .mobile-bottom-nav {
    width: 94% !important;
    bottom: 12px !important;
    height: 56px !important;
    padding: 0 6px !important;
    border-radius: 28px !important;
  }
  
  .nav-backdrop {
    border-radius: 20px !important;
  }
  
  .bottom-nav-item {
    min-height: 44px !important;
    padding: 6px 2px !important;
  }
  
  .bottom-nav-item svg {
    width: 20px !important;
    height: 20px !important;
  }
  
  .bottom-nav-item span {
    font-size: 8.5px !important;
    margin-top: 2px !important;
    letter-spacing: -0.03em !important;
  }

  /* --- Section Typography & Spacing --- */
  .section-title {
    font-size: 1.4rem !important;
    margin-bottom: 20px !important;
  }
  
  .cta {
    padding: 40px 16px !important;
  }
  
  .cta h2 {
    font-size: 1.4rem !important;
  }
  
  .cta p {
    font-size: 0.9rem !important;
    margin-bottom: 20px !important;
  }
  
  .btn-gold {
    padding: 10px 28px !important;
    font-size: 0.8rem !important;
  }

  /* --- Footer --- */
  footer {
    padding: 30px 16px 88px !important;
  }
  
  .footer-links {
    gap: 8px !important;
  }
  
  .footer-links a {
    font-size: 11px !important;
    padding: 8px 8px !important;
  }
}
