/* =============================================
       DESIGN TOKENS
    ============================================= */
    :root {
      --deep-navy:    #060D1F;
      --navy-surface: #0F1C2E;
      --navy-card:    #122034;
      --navy-border:  rgba(255,255,255,0.08);
      --saffron:      #E8921A;
      --saffron-lt:   #F5A833;
      --gold:         #C8960C;
      --terracotta:   #B5451B;
      --emerald:      #1A7A4A;
      --unesco-blue:  #0284C7;
      --cream:        #FFF8EE;
      --text-main:    #EDE8E0;
      --text-muted:   #8A97A8;
      --max-w:        1280px;
      --serif:        'Cormorant Garamond', Georgia, serif;
      --sans:         'Plus Jakarta Sans', sans-serif;
    }

    *, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
    html { scroll-behavior: smooth; }
    body {
      font-family: var(--sans);
      background: var(--deep-navy);
      color: var(--text-main);
      overflow-x: hidden;
      line-height: 1.6;
    }
    img { max-width: 100%; display: block; }
    a { text-decoration: none; color: inherit; }
    button { font-family: var(--sans); cursor: pointer; }

    /* =============================================
       STICKY TOP NAVIGATION
    ============================================= */
    :root {
      --site-banner-height: 0px;
    }

    /* Site-wide Flash Announcement Bar */
    .site-flash-announcement-bar {
      position: fixed;
      top: 0;
      left: 0;
      right: 0;
      z-index: 1002;
      box-shadow: 0 2px 12px rgba(0,0,0,0.5);
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 0.75rem;
      padding: 0.55rem 2.5rem 0.55rem 1.25rem;
      font-size: 0.85rem;
      font-weight: 700;
      color: #fff;
      box-sizing: border-box;
      transition: all 0.25s ease;
    }

    .site-header {
      position: fixed;
      top: var(--site-banner-height, 0px);
      left: 0; right: 0;
      z-index: 1000;
      padding: 0 2rem;
      height: 70px;
      display: flex;
      align-items: center;
      justify-content: space-between;
      background: #060D1F;
      background: rgba(6, 13, 31, 0.98);
      backdrop-filter: blur(20px);
      -webkit-backdrop-filter: blur(20px);
      border-bottom: 1px solid var(--navy-border);
      box-shadow: 0 2px 16px rgba(0, 0, 0, 0.45);
      transition: top 0.25s ease, background 0.3s, box-shadow 0.3s, border-color 0.3s;
    }
    .site-header.scrolled {
      background: #060D1F;
      background: rgba(6, 13, 31, 0.99);
      border-bottom: 1px solid rgba(232, 146, 26, 0.25);
      box-shadow: 0 4px 24px rgba(0, 0, 0, 0.65);
    }
    .brand-logo {
      display: flex; align-items: center; gap: 0.75rem;
    }
    .logo-icon {
      width: 40px; height: 40px;
      background: transparent;
      display: flex; align-items: center; justify-content: center;
      flex-shrink: 0;
    }
    .logo-icon img { width: 100%; height: 100%; object-fit: contain; }
    .logo-text { display: flex; flex-direction: column; line-height: 1.2; }
    .logo-name { font-family: var(--serif); font-size: 1.25rem; font-weight: 700; color: #fff; letter-spacing: 0.02em; }
    .logo-tagline { font-size: 0.64rem; color: var(--saffron); font-weight: 600; text-transform: uppercase; letter-spacing: 0.1em; }

    .top-nav { display: flex; align-items: center; gap: 0.2rem; }
    .top-nav-link {
      padding: 0.45rem 0.85rem;
      border-radius: 8px;
      font-size: 0.84rem; font-weight: 600;
      color: rgba(255,255,255,0.65);
      background: transparent; border: none;
      transition: color 0.2s, background 0.2s;
      display: flex; align-items: center; gap: 0.4rem;
      white-space: nowrap;
    }
    .top-nav-link:hover { color: #fff; background: rgba(255,255,255,0.06); }
    .top-nav-link.active { color: var(--saffron); background: rgba(232,146,26,0.12); }

    .header-right { display: flex; align-items: center; gap: 0.75rem; }
    .xp-badge {
      background: rgba(232,146,26,0.12);
      border: 1px solid rgba(232,146,26,0.3);
      color: var(--saffron-lt);
      padding: 0.35rem 0.85rem;
      border-radius: 20px; font-size: 0.8rem; font-weight: 700;
      display: flex; align-items: center; gap: 0.4rem;
    }
    .btn-admin-sm {
      background: var(--saffron); color: #fff; border: none;
      padding: 0.45rem 1rem; border-radius: 8px;
      font-size: 0.84rem; font-weight: 700;
      transition: background 0.2s, transform 0.15s;
      display: flex; align-items: center; gap: 0.4rem;
    }
    .btn-admin-sm:hover { background: var(--saffron-lt); transform: translateY(-1px); }

    /* =============================================
       MULTILINGUAL LANGUAGE SELECTOR DROPDOWN & RTL
       ============================================= */
    .lang-selector-wrap {
      position: relative;
      z-index: 1000;
    }
    .lang-selector-btn {
      background: rgba(255, 255, 255, 0.06);
      border: 1px solid rgba(232, 146, 26, 0.35);
      color: #fff;
      padding: 0.4rem 0.85rem;
      border-radius: 20px;
      font-size: 0.82rem;
      font-weight: 600;
      cursor: pointer;
      display: flex;
      align-items: center;
      gap: 0.5rem;
      transition: all 0.2s ease;
      backdrop-filter: blur(10px);
    }
    .lang-selector-btn:hover {
      background: rgba(232, 146, 26, 0.15);
      border-color: var(--saffron);
      transform: translateY(-1px);
    }
    .lang-current-label {
      display: inline-flex;
      align-items: center;
      gap: 0.35rem;
    }
    .lang-dropdown-menu {
      display: none;
      position: absolute;
      top: calc(100% + 8px);
      right: 0;
      width: 380px;
      max-width: 90vw;
      background: #060D1F;
      border: 1px solid var(--saffron);
      border-radius: 16px;
      box-shadow: 0 16px 40px rgba(0, 0, 0, 0.7);
      padding: 1rem;
      z-index: 10000;
      backdrop-filter: blur(20px);
      animation: fadeInDropdown 0.2s ease-out forwards;
    }
    .lang-dropdown-menu.open {
      display: block;
    }
    @keyframes fadeInDropdown {
      from { opacity: 0; transform: translateY(-8px); }
      to { opacity: 1; transform: translateY(0); }
    }
    .lang-dropdown-header {
      display: flex;
      justify-content: space-between;
      align-items: center;
      padding-bottom: 0.75rem;
      margin-bottom: 0.75rem;
      border-bottom: 1px solid rgba(255, 255, 255, 0.08);
      font-size: 0.82rem;
      font-weight: 700;
      color: var(--saffron);
    }
    .lang-close-btn {
      background: transparent;
      border: none;
      color: var(--text-muted);
      font-size: 1.2rem;
      cursor: pointer;
    }
    .lang-close-btn:hover { color: #fff; }
    .lang-dropdown-grid {
      display: grid;
      grid-template-columns: repeat(2, 1fr);
      gap: 0.4rem;
      max-height: 380px;
      overflow-y: auto;
      padding-right: 0.25rem;
    }
    .lang-option-item {
      display: flex;
      align-items: center;
      gap: 0.6rem;
      padding: 0.55rem 0.7rem;
      background: rgba(255, 255, 255, 0.03);
      border: 1px solid rgba(255, 255, 255, 0.06);
      border-radius: 10px;
      color: #fff;
      cursor: pointer;
      text-align: left;
      transition: all 0.15s ease;
      width: 100%;
    }
    .lang-option-item:hover {
      background: rgba(232, 146, 26, 0.12);
      border-color: var(--saffron);
    }
    .lang-option-item.active {
      background: rgba(232, 146, 26, 0.2);
      border-color: var(--saffron);
      font-weight: 700;
    }
    .lang-flag { font-size: 1.1rem; }
    .lang-info {
      display: flex;
      flex-direction: column;
      flex: 1;
      overflow: hidden;
    }
    .lang-native { font-size: 0.84rem; font-weight: 600; color: #fff; white-space: nowrap; }
    .lang-english { font-size: 0.7rem; color: var(--text-muted); white-space: nowrap; }
    .lang-check { color: var(--emerald); font-size: 0.8rem; margin-left: auto; }

    /* RTL (Right to Left) for Arabic, Urdu, Persian */
    body.is-rtl {
      direction: rtl;
      text-align: right;
    }
    body.is-rtl .lang-dropdown-menu {
      right: auto;
      left: 0;
    }
    body.is-rtl .lang-option-item {
      text-align: right;
    }
    body.is-rtl .lang-check {
      margin-left: 0;
      margin-right: auto;
    }
    body.is-rtl .section-eyebrow::before {
      margin-left: 0.6rem;
      margin-right: 0;
    }
    body.is-rtl .stat-item {
      border-right: none;
      border-left: 1px solid rgba(255, 255, 255, 0.08);
    }
    body.is-rtl .stat-item:last-child {
      border-left: none;
    }

    
    /* =============================================
       HERO CAROUSEL & ROTATING SPOTLIGHT STYLES
       ============================================= */
    .hero {
      position: relative;
      margin-top: 0;
      height: 100svh;
      min-height: 640px;
      display: flex;
      flex-direction: column;
      justify-content: flex-end;
      align-items: center;
      padding-bottom: 7.2rem;
      overflow: hidden;
    }
    
    /* Cross-fade Background Container */
    .hero-slides-viewport {
      position: absolute;
      inset: 0;
      z-index: 1;
      overflow: hidden;
    }

    .hero-slide-bg {
      position: absolute;
      inset: 0;
      background-size: cover;
      background-position: center 20%;
      opacity: 0;
      transform: scale(1.04);
      transition: opacity 1.2s cubic-bezier(0.16, 1, 0.3, 1), transform 6s cubic-bezier(0.25, 1, 0.5, 1);
      z-index: 1;
    }

    .hero-slide-bg.active {
      opacity: 1;
      transform: scale(1);
      z-index: 2;
    }

    .hero-slide-overlay {
      position: absolute;
      inset: 0;
      z-index: 3;
      background: linear-gradient(to top, #060D1F 0%, rgba(6,13,31,0.68) 38%, rgba(6,13,31,0.12) 75%, transparent 100%);
      pointer-events: none;
      transition: background 0.6s ease;
    }

    /* Content Transitions */
    .hero-content {
      position: relative;
      z-index: 4;
      padding: 0 1.5rem;
      max-width: 820px;
      width: 100%;
      margin: 0 auto;
      transition: opacity 0.5s ease, transform 0.5s ease;
    }

    .hero-eyebrow {
      display: inline-flex;
      align-items: center;
      gap: 0.4rem;
      background: rgba(6, 13, 31, 0.72);
      backdrop-filter: blur(8px);
      border: 1px solid rgba(232, 146, 26, 0.35);
      color: var(--saffron-lt, #F59E0B);
      font-size: 0.78rem;
      font-weight: 700;
      padding: 0.28rem 0.85rem;
      border-radius: 20px;
      margin-bottom: 0.5rem;
    }

    .hero-headline {
      font-family: var(--serif);
      font-size: clamp(2rem, 3.8vw, 2.85rem);
      font-weight: 700;
      color: #fff;
      line-height: 1.18;
      margin: 0 0 0.5rem;
      text-shadow: 0 2px 20px rgba(0, 0, 0, 0.85), 0 4px 35px rgba(0, 0, 0, 0.7);
    }

    .hero-sub {
      color: rgba(237, 232, 224, 0.9);
      font-size: 0.92rem;
      line-height: 1.5;
      max-width: 660px;
      margin: 0 auto 1.25rem;
      text-shadow: 0 1px 12px rgba(0, 0, 0, 0.9);
    }

    .hero-ctas {
      display: flex;
      align-items: center;
      gap: 0.85rem;
    }

    .hero-content.fade-out {
      opacity: 0;
      transform: translateY(16px);
    }

    .hero-content.fade-in {
      opacity: 1;
      transform: translateY(0);
    }

    .hero-content.align-left {
      text-align: left;
      margin-left: max(2rem, calc((100vw - 1200px) / 2));
      margin-right: auto;
    }
    .hero-content.align-left .hero-ctas {
      justify-content: flex-start;
    }

    .hero-content.align-center {
      text-align: center;
      margin-left: auto;
      margin-right: auto;
    }
    .hero-content.align-center .hero-ctas {
      justify-content: center;
    }

    .hero-content.align-right {
      text-align: right;
      margin-right: max(2rem, calc((100vw - 1200px) / 2));
      margin-left: auto;
    }
    .hero-content.align-right .hero-ctas {
      justify-content: flex-end;
    }

    /* Navigation Arrows */
    .hero-nav-arrow {
      position: absolute;
      top: 50%;
      transform: translateY(-50%);
      z-index: 5;
      width: 48px;
      height: 48px;
      border-radius: 50%;
      background: rgba(18, 32, 52, 0.6);
      backdrop-filter: blur(12px);
      -webkit-backdrop-filter: blur(12px);
      border: 1px solid rgba(255, 255, 255, 0.15);
      color: #fff;
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 1.1rem;
      cursor: pointer;
      transition: all 0.25s ease;
      box-shadow: 0 4px 16px rgba(0,0,0,0.4);
    }
    .hero-nav-arrow:hover {
      background: rgba(232, 146, 26, 0.85);
      border-color: var(--saffron);
      color: #fff;
      transform: translateY(-50%) scale(1.1);
      box-shadow: 0 6px 22px rgba(232, 146, 26, 0.4);
    }
    .hero-nav-arrow.prev { left: 24px; }
    .hero-nav-arrow.next { right: 24px; }

    /* Indicator Dots Row ("image changing bar") */
    .hero-carousel-indicators {
      position: absolute;
      bottom: 5.4rem;
      left: 50%;
      transform: translateX(-50%);
      z-index: 12;
      display: flex;
      align-items: center;
      gap: 0.6rem;
      background: rgba(6, 13, 31, 0.75);
      padding: 0.45rem 0.9rem;
      border-radius: 30px;
      backdrop-filter: blur(10px);
      -webkit-backdrop-filter: blur(10px);
      border: 1px solid rgba(255, 255, 255, 0.15);
      box-shadow: 0 4px 18px rgba(0, 0, 0, 0.5);
    }

    .hero-indicator-dot {
      width: 10px;
      height: 10px;
      border-radius: 50%;
      background: rgba(255, 255, 255, 0.35);
      cursor: pointer;
      transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
      border: none;
      padding: 0;
    }

    .hero-indicator-dot.active {
      width: 28px;
      border-radius: 10px;
      background: var(--saffron, #E8921A);
      box-shadow: 0 0 10px rgba(232, 146, 26, 0.6);
    }

    /* Pause / Play badge indicator */
    .hero-autoplay-toggle {
      background: transparent;
      border: none;
      color: rgba(255, 255, 255, 0.6);
      font-size: 0.72rem;
      cursor: pointer;
      padding: 0 0.3rem;
      display: flex;
      align-items: center;
      justify-content: center;
      transition: color 0.2s;
    }
    .hero-autoplay-toggle:hover {
      color: #fff;
    }

    @media (max-width: 768px) {
      .hero {
        margin-top: 0 !important;
        height: auto !important;
        min-height: 100svh !important;
        padding-bottom: 6.8rem !important;
      }
      .hero-nav-arrow { display: none; }
      .hero-carousel-indicators { bottom: 4.8rem; }
    }


    /* =============================================
       STATS BAR (Floating Glassmorphic Container)
    ============================================= */
    .stats-bar-wrapper {
      position: relative;
      z-index: 10;
      max-width: var(--max-w);
      margin: -3.5rem auto 0;
      padding: 0 1.5rem;
    }
    .stats-bar {
      background: rgba(15, 28, 46, 0.85);
      backdrop-filter: blur(16px);
      border: 1px solid rgba(255, 255, 255, 0.12);
      border-radius: 20px;
      padding: 1.25rem 1.5rem;
      box-shadow: 0 20px 45px rgba(0, 0, 0, 0.5), 0 0 30px rgba(232, 146, 26, 0.05);
    }
    .stats-inner {
      display: grid;
      grid-template-columns: repeat(4, 1fr);
      gap: 1rem;
    }
    .stat-item {
      text-align: center;
      padding: 0.5rem 1rem;
      border-right: 1px solid rgba(255, 255, 255, 0.08);
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
    }
    .stat-item:last-child { border-right: none; }
    .stat-value-group {
      display: flex;
      align-items: center;
      gap: 0.4rem;
      margin-bottom: 0.2rem;
    }
    .stat-icon { font-size: 1.25rem; color: var(--saffron); }
    .stat-num {
      font-family: var(--serif);
      font-size: 2.2rem;
      font-weight: 700;
      color: #fff;
      line-height: 1;
    }
    .stat-unit { font-family: var(--serif); font-size: 1.6rem; color: var(--saffron-lt); font-weight: 700; }
    .stat-label {
      font-size: 0.73rem;
      color: var(--text-muted);
      font-weight: 600;
      text-transform: uppercase;
      letter-spacing: 0.07em;
    }
    .stat-subtext {
      font-size: 0.72rem;
      color: var(--saffron-lt);
      margin-top: 0.25rem;
      font-weight: 600;
      line-height: 1.3;
    }
    .stat-meta-group {
      display: flex;
      flex-direction: column;
      align-items: center;
      gap: 0.2rem;
      margin-top: 0.35rem;
    }
    .stat-verified-badge {
      display: inline-flex;
      align-items: center;
      gap: 0.35rem;
      font-size: 0.68rem;
      color: var(--emerald);
      background: rgba(46, 125, 50, 0.15);
      border: 1px solid rgba(46, 125, 50, 0.35);
      padding: 0.15rem 0.55rem;
      border-radius: 12px;
      font-weight: 600;
    }
    .stat-source-cite {
      font-size: 0.65rem;
      color: var(--text-muted);
      text-decoration: none;
      display: inline-flex;
      align-items: center;
      gap: 0.25rem;
      transition: color 0.2s;
    }
    .stat-source-cite:hover {
      color: var(--saffron-lt);
      text-decoration: underline;
    }
    .stat-item-interactive {
      cursor: pointer;
      border-radius: 12px;
      transition: background 0.2s;
    }
    .stat-item-interactive:hover {
      background: rgba(255, 255, 255, 0.03);
    }

    /* =============================================
       COMMON SECTION HEADERS
    ============================================= */
    .section-eyebrow {
      display: inline-flex; align-items: center; gap: 0.6rem;
      color: var(--saffron); font-size: 0.76rem; font-weight: 700;
      text-transform: uppercase; letter-spacing: 0.14em; margin-bottom: 1rem;
    }
    .section-eyebrow::before { content:''; width:24px; height:2px; background:var(--saffron); border-radius:2px; }
    .section-heading {
      font-family: var(--serif);
      font-size: clamp(2rem, 4vw, 3.2rem);
      font-weight: 700; line-height: 1.15; color: #fff; margin-bottom: 0.5rem;
    }
    .section-heading em { color: var(--saffron-lt); font-style: italic; }

    /* =============================================
       HERITAGE STORY
       HERITAGE STORY (Images Right, Text Under Images)
    ============================================= */
    .heritage-story {
      padding: 3.25rem 2rem 2.75rem; background: var(--deep-navy); position: relative; overflow: hidden;
    }
    .heritage-story::before {
      content: 'भारत'; position: absolute; top: -2rem; right: -1rem;
      font-size: 18rem; color: rgba(232,146,26,0.03); font-family: serif;
      line-height: 1; pointer-events: none;
    }
    .story-inner {
      max-width: var(--max-w); margin: 0 auto;
      display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: start;
    }
    .story-left-col, .story-right-col {
      display: flex;
      flex-direction: column;
    }
    .story-prose p {
      color: var(--text-muted); font-size: 1rem; line-height: 1.8; margin-bottom: 1.25rem;
    }
    .story-prose p strong { color: var(--saffron-lt); font-weight: 700; }
    .story-prose p:last-child { margin-bottom: 0; }

    .story-mosaic {
      display: grid; grid-template-columns: 1fr 1fr;
      grid-template-rows: 190px 150px; gap: 0.75rem;
      margin-bottom: 1.5rem;
    }
    .mosaic-img { border-radius: 14px; overflow: hidden; position: relative; }
    .mosaic-img.tall { grid-row: 1 / 3; }
    .mosaic-img img { width:100%; height:100%; object-fit:cover; transition: transform 0.5s; }
    .mosaic-img:hover img { transform: scale(1.04); }
    .mosaic-img::after {
      content:''; position:absolute; inset:0;
      background: linear-gradient(to top, rgba(6,13,31,0.4) 0%, transparent 60%);
      pointer-events: none;
    }
    .story-quote-card {
      background: var(--navy-card); border-left: 3px solid var(--saffron);
      border-radius: 0 16px 16px 0; padding: 1.25rem 1.5rem;
      margin-top: 1.5rem; border-top: 1px solid var(--navy-border);
      border-right: 1px solid var(--navy-border); border-bottom: 1px solid var(--navy-border);
      font-family: var(--serif); font-size: 1.15rem; color: #fff; font-style: italic;
    }
    .story-quote-author { font-family: var(--sans); font-size: 0.78rem; color: var(--saffron-lt); font-style: normal; margin-top: 0.4rem; font-weight: 600; }

    /* =============================================
       ERA TIMELINE
    ============================================= */
    .era-section {
      padding: 3rem 2rem 2.75rem; background: var(--navy-surface);
      border-top: 1px solid var(--navy-border);
    }
    .era-section-head { max-width: var(--max-w); margin: 0 auto 1.75rem; }
    .era-scroll-wrap {
      max-width: var(--max-w); margin: 0 auto; overflow-x: auto; padding-bottom: 0.75rem;
      scrollbar-width: thin; scrollbar-color: var(--saffron) transparent;
    }
    .era-scroll-wrap::-webkit-scrollbar { height: 4px; }
    .era-scroll-wrap::-webkit-scrollbar-thumb { background: var(--saffron); border-radius:4px; }
    .era-row { display: flex; gap: 1rem; width: max-content; }
    .era-card {
      width: 200px; flex-shrink: 0;
      background: var(--navy-card); border: 1px solid var(--navy-border);
      border-radius: 16px; padding: 1.25rem 1.1rem;
      cursor: pointer; transition: all 0.3s cubic-bezier(0.4,0,0.2,1);
      position: relative; overflow: hidden;
    }
    .era-card::before {
      content:''; position:absolute; top:0; left:0; right:0; height:3px;
      background: var(--era-color, var(--saffron));
      transform: scaleX(0); transform-origin: left; transition: transform 0.3s;
    }
    .era-card:hover { transform: translateY(-5px); border-color: var(--era-color, var(--saffron)); box-shadow: 0 14px 30px rgba(0,0,0,0.35); }
    .era-card:hover::before { transform: scaleX(1); }
    .era-icon { font-size: 2rem; margin-bottom: 0.75rem; display: block; }
    .era-name { font-family: var(--serif); font-size: 1.1rem; font-weight: 700; color: #fff; margin-bottom: 0.3rem; }
    .era-period { font-size: 0.76rem; color: var(--era-color, var(--saffron)); font-weight: 700; margin-bottom: 0.6rem; }
    .era-desc { font-size: 0.8rem; color: var(--text-muted); line-height: 1.45; }

    /* =============================================
       CATEGORY SECTION
    ============================================= */
    .category-section { padding: 3rem 2rem 2.75rem; background: var(--deep-navy); border-top: 1px solid var(--navy-border); }
    .category-head { max-width: var(--max-w); margin: 0 auto 1.75rem; }
    .category-grid {
      max-width: var(--max-w); margin: 0 auto;
      display: grid; grid-template-columns: repeat(3,1fr); gap: 1.25rem;
    }
    .cat-card {
      position: relative; border-radius: 18px; overflow: hidden;
      height: 230px; cursor: pointer;
      transition: transform 0.3s; border: 1px solid var(--navy-border);
    }
    .cat-card:hover { transform: translateY(-5px); }
    .cat-card:hover .cat-img { transform: scale(1.07); }
    .cat-img { width:100%; height:100%; object-fit:cover; transition: transform 0.55s; background: var(--navy-card); }
    .cat-overlay {
      position:absolute; inset:0;
      background: linear-gradient(to top, rgba(6,13,31,0.93) 0%, rgba(6,13,31,0.35) 60%, transparent 100%);
    }
    .cat-content { position:absolute; bottom:0; left:0; right:0; padding:1.25rem 1.5rem; }
    .cat-icon { font-size: 1.5rem; margin-bottom: 0.4rem; display: block; }
    .cat-title { font-family: var(--serif); font-size: 1.2rem; font-weight: 700; color: #fff; margin-bottom: 0.25rem; }
    .cat-count { font-size: 0.78rem; color: var(--saffron-lt); font-weight: 600; }

    /* =============================================
       MONUMENT EXPLORER
    ============================================= */
    .explorer-section {
      max-width: var(--max-w);
      margin: 2.25rem auto 3rem;
      padding: 0 1.5rem;
    }
    .explorer-head { max-width: var(--max-w); margin: 0 auto 1.5rem; text-align: center; }
    .filter-bar {
      max-width: var(--max-w); margin: 0 auto 1rem;
      display: flex; flex-wrap: wrap; gap: 0.75rem; align-items: center;
    }
    .search-input {
      flex: 1; min-width: 260px;
      background: var(--navy-card); border: 1px solid var(--navy-border);
      border-radius: 12px; padding: 0.85rem 1.2rem 0.85rem 2.8rem;
      color: var(--text-main); font-size: 0.95rem; outline: none; font-family: var(--sans);
      background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%238A97A8' viewBox='0 0 16 16'%3E%3Cpath d='M11.742 10.344a6.5 6.5 0 1 0-1.397 1.398h-.001c.03.04.062.078.098.115l3.85 3.85a1 1 0 0 0 1.415-1.414l-3.85-3.85a1.007 1.007 0 0 0-.115-.099zM12 6.5a5.5 5.5 0 1 1-11 0 5.5 5.5 0 0 1 11 0z'/%3E%3C/svg%3E");
      background-repeat: no-repeat; background-position: 0.9rem center;
      transition: border-color 0.2s;
    }
    .search-input:focus { border-color: var(--saffron); }
    .search-input::placeholder { color: var(--text-muted); }
    .filter-select {
      background: var(--navy-card); border: 1px solid var(--navy-border); color: var(--text-main);
      padding: 0.85rem 1rem; border-radius: 12px; font-size: 0.9rem; font-weight: 600;
      font-family: var(--sans); outline: none; cursor: pointer;
    }
    .pills-container {
      max-width: var(--max-w); margin: 0 auto 1.25rem;
      display: flex; gap: 0.5rem; flex-wrap: wrap;
    }
    .chip {
      background: var(--navy-card); border: 1px solid var(--navy-border); color: var(--text-muted);
      padding: 0.45rem 1.1rem; border-radius: 30px; font-size: 0.83rem; font-weight: 600;
      cursor: pointer; transition: all 0.2s; font-family: var(--sans);
    }
    .chip.active, .chip:hover { background: var(--saffron); color: #fff; border-color: var(--saffron); }
    #filter-status-bar {
      max-width: var(--max-w); margin: 0 auto 1.5rem;
      color: var(--saffron); font-size: 0.88rem; font-weight: 700;
      display: flex; align-items: center; justify-content: space-between;
      background: rgba(232,146,26,0.07); padding: 0.65rem 1.1rem;
      border-radius: 10px; border: 1px solid rgba(232,146,26,0.18);
    }

    /* =============================================
       MONUMENT CARDS & SEARCH CONTAINER (LUXURY ARCHIVE)
    ============================================= */
    .explorer-head {
      text-align: center;
      margin-bottom: 1.75rem;
    }
    .section-subheading {
      max-width: 650px;
      margin: 0.6rem auto 0;
      color: var(--text-muted);
      font-size: 0.95rem;
      line-height: 1.6;
    }

    /* Explorer Controls: Ultra-Compact 2-Liner */
    .explorer-controls-wrap {
      max-width: 980px;
      margin: 0 auto 1.25rem;
      width: 100%;
    }

    /* Line 1: Ultra-Slim Category Chips */
    .pills-container {
      display: flex;
      gap: 0.35rem;
      justify-content: center;
      align-items: center;
      overflow-x: auto;
      padding: 0 0 0.45rem;
      scrollbar-width: none;
      -webkit-overflow-scrolling: touch;
      margin-bottom: 0.45rem;
    }
    .pills-container::-webkit-scrollbar { display: none; }
    .pills-container .chip {
      background: rgba(255, 255, 255, 0.04);
      border: 1px solid rgba(255, 255, 255, 0.08);
      color: rgba(237, 232, 224, 0.85);
      padding: 0.25rem 0.75rem;
      border-radius: 20px;
      font-size: 0.76rem;
      font-weight: 600;
      cursor: pointer;
      transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
      display: inline-flex;
      align-items: center;
      gap: 0.35rem;
      white-space: nowrap;
      flex-shrink: 0;
      height: 28px;
      box-sizing: border-box;
    }
    .pills-container .chip:hover {
      background: rgba(255, 255, 255, 0.09);
      color: #fff;
      border-color: rgba(232, 146, 26, 0.35);
    }
    .pills-container .chip.active {
      background: linear-gradient(135deg, #E8921A 0%, #B8670A 100%);
      border-color: #E8921A;
      color: #fff;
      box-shadow: 0 2px 8px rgba(232, 146, 26, 0.35);
      font-weight: 700;
    }

    /* Line 2: Unified 1-Bar Search & Filter Pill */
    .search-bar-luxury {
      background: linear-gradient(90deg, rgba(14, 22, 42, 0.95) 0%, rgba(8, 14, 28, 0.98) 100%);
      backdrop-filter: blur(20px);
      -webkit-backdrop-filter: blur(20px);
      border: 1px solid rgba(232, 146, 26, 0.28);
      border-radius: 30px;
      padding: 4px 6px;
      box-shadow: 0 4px 20px rgba(0, 0, 0, 0.45);
      display: flex;
      flex-direction: row;
      align-items: center;
      gap: 0;
      margin-bottom: 0.4rem;
      box-sizing: border-box;
      height: 46px;
    }
    .search-input-wrap {
      position: relative;
      flex: 1.8;
      min-width: 170px;
      display: flex;
      align-items: center;
      height: 100%;
    }
    .search-input-wrap .search-icon {
      position: absolute;
      left: 0.9rem;
      color: var(--saffron);
      font-size: 0.85rem;
      pointer-events: none;
    }
    .search-input-wrap input {
      width: 100%;
      height: 38px;
      padding: 0 1.8rem 0 2.3rem;
      background: transparent;
      border: none;
      color: #fff;
      font-family: var(--sans);
      font-size: 0.84rem;
      outline: none;
      box-shadow: none;
      box-sizing: border-box;
    }
    .search-input-wrap input::placeholder {
      color: rgba(255, 255, 255, 0.45);
      font-size: 0.8rem;
    }
    #search-clear-btn {
      position: absolute;
      right: 0.5rem;
      background: rgba(255,255,255,0.1);
      border: none;
      color: var(--text-muted);
      width: 20px;
      height: 20px;
      border-radius: 50%;
      cursor: pointer;
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 0.68rem;
      transition: all 0.2s;
    }
    #search-clear-btn:hover {
      background: rgba(255,255,255,0.22);
      color: #fff;
    }

    .search-filters-row {
      display: flex;
      flex-direction: row;
      align-items: center;
      gap: 0;
      flex: 2.2;
      height: 100%;
    }
    .custom-select-wrap {
      position: relative;
      flex: 1;
      min-width: 95px;
      display: flex;
      align-items: center;
      border-left: 1px solid rgba(255, 255, 255, 0.08);
      height: 100%;
    }
    .select-lead-icon {
      position: absolute;
      left: 0.55rem;
      color: var(--saffron);
      font-size: 0.72rem;
      pointer-events: none;
      z-index: 2;
    }
    .select-chevron {
      position: absolute;
      right: 0.55rem;
      color: rgba(255, 255, 255, 0.4);
      font-size: 0.6rem;
      pointer-events: none;
      z-index: 2;
      transition: transform 0.2s;
    }
    .custom-select-wrap select {
      width: 100%;
      height: 38px;
      padding: 0 1.4rem 0 1.6rem;
      background: transparent;
      border: none;
      color: rgba(255, 255, 255, 0.9);
      font-family: var(--sans);
      font-size: 0.78rem;
      cursor: pointer;
      -webkit-appearance: none;
      appearance: none;
      outline: none;
      box-shadow: none;
    }
    .custom-select-wrap select option {
      background: #0D1628;
      color: #fff;
      padding: 0.5rem;
    }
    .btn-reset-filters {
      height: 32px;
      background: rgba(181, 69, 27, 0.15);
      border: 1px solid rgba(181, 69, 27, 0.35);
      color: #F87171;
      padding: 0 0.65rem;
      border-radius: 18px;
      font-weight: 600;
      font-size: 0.74rem;
      cursor: pointer;
      display: inline-flex;
      align-items: center;
      gap: 0.25rem;
      white-space: nowrap;
      transition: all 0.2s;
      margin: 0 4px 0 6px;
      flex-shrink: 0;
    }
    .btn-reset-filters:hover {
      background: #B5451B;
      border-color: #B5451B;
      color: #fff;
    }

    @media (max-width: 992px) and (min-width: 769px) {
      .btn-reset-filters span {
        display: none;
      }
      .btn-reset-filters {
        padding: 0 0.5rem;
      }
      .custom-select-wrap {
        min-width: 75px;
      }
      .custom-select-wrap select {
        padding: 0 1rem 0 1.4rem;
        font-size: 0.72rem;
      }
      .select-lead-icon {
        left: 0.4rem;
      }
      .select-chevron {
        right: 0.4rem;
      }
    }

    /* =============================================
       INSTANT ITINERARY & BUDGET BAR (ONE-LINER)
    ============================================= */
    .itinerary-bar-luxury {
      background: linear-gradient(90deg, rgba(14, 22, 42, 0.95) 0%, rgba(8, 14, 28, 0.98) 100%);
      backdrop-filter: blur(20px);
      -webkit-backdrop-filter: blur(20px);
      border: 1px solid rgba(232, 146, 26, 0.28);
      border-radius: 30px;
      padding: 4px 6px;
      box-shadow: 0 4px 20px rgba(0, 0, 0, 0.45);
      display: flex;
      flex-direction: row;
      align-items: center;
      gap: 0;
      box-sizing: border-box;
      height: 48px;
      width: 100%;
    }
    .itinerary-bar-head {
      display: inline-flex;
      align-items: center;
      gap: 0.45rem;
      padding: 0 1.1rem 0 0.9rem;
      font-family: var(--serif);
      font-size: 1.05rem;
      font-weight: 700;
      color: var(--saffron);
      white-space: nowrap;
      flex-shrink: 0;
      border-right: 1px solid rgba(255, 255, 255, 0.1);
      height: 100%;
    }
    .itinerary-bar-head i {
      font-size: 0.95rem;
      color: var(--saffron);
    }
    .itinerary-filters-row {
      display: flex;
      flex-direction: row;
      align-items: center;
      flex: 1;
      height: 100%;
      min-width: 0;
    }
    .itinerary-filters-row .custom-select-wrap {
      flex: 1;
      min-width: 0;
      border-left: none;
      border-right: 1px solid rgba(255, 255, 255, 0.08);
    }
    .btn-calculate-luxury {
      height: 38px;
      background: linear-gradient(135deg, var(--saffron), var(--terracotta));
      color: #fff;
      border: none;
      padding: 0 1.1rem;
      border-radius: 20px;
      font-weight: 700;
      font-size: 0.8rem;
      font-family: var(--sans);
      cursor: pointer;
      display: inline-flex;
      align-items: center;
      gap: 0.35rem;
      white-space: nowrap;
      flex-shrink: 0;
      margin: 0 2px 0 6px;
      box-shadow: 0 2px 10px rgba(232, 146, 26, 0.35);
      transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    }
    .btn-calculate-luxury:hover {
      transform: translateY(-1px);
      box-shadow: 0 4px 14px rgba(232, 146, 26, 0.5);
    }
    @media (max-width: 1100px) and (min-width: 769px) {
      .itinerary-bar-head span {
        display: none;
      }
      .itinerary-bar-head {
        padding: 0 0.75rem;
      }
      .itinerary-filters-row .custom-select-wrap select {
        padding: 0 1rem 0 1.4rem;
        font-size: 0.72rem;
      }
      .btn-calculate-luxury {
        padding: 0 0.8rem;
        font-size: 0.75rem;
      }
    }

    /* Empty Search State */
    .monuments-empty-state {
      grid-column: 1 / -1;
      padding: 4rem 1.5rem;
      text-align: center;
      background: var(--navy-card);
      border: 1px dashed rgba(232, 146, 26, 0.25);
      border-radius: 20px;
      color: var(--text-muted);
    }
    .empty-state-icon {
      font-size: 2.5rem;
      color: var(--saffron);
      margin-bottom: 0.75rem;
    }
    .monuments-empty-state h3 {
      font-family: var(--serif);
      font-size: 1.4rem;
      color: #fff;
      margin: 0 0 0.5rem;
    }

    /* =============================================
       MUSEUM-GRADE MONUMENT CARDS & HORIZONTAL SLIDER
    ============================================= */
    .monuments-slider-wrapper {
      position: relative;
      max-width: var(--max-w);
      margin: 0 auto;
      width: 100%;
      padding: 0.5rem 0;
    }

    #monuments-grid, .monument-grid.monument-slider-track {
      max-width: 100%;
      margin: 0;
      display: flex;
      flex-direction: row;
      flex-wrap: nowrap;
      overflow-x: auto;
      overflow-y: hidden;
      scroll-behavior: smooth;
      -webkit-overflow-scrolling: touch;
      gap: 1.5rem;
      padding: 1rem 0.5rem 1.5rem;
      scroll-snap-type: x mandatory;
      scrollbar-width: thin;
      scrollbar-color: var(--saffron) rgba(255, 255, 255, 0.05);
      cursor: grab;
      user-select: none;
    }

    #monuments-grid:active {
      cursor: grabbing;
    }

    /* Custom Modern Scrollbar */
    #monuments-grid::-webkit-scrollbar {
      height: 8px;
    }
    #monuments-grid::-webkit-scrollbar-track {
      background: rgba(255, 255, 255, 0.04);
      border-radius: 4px;
    }
    #monuments-grid::-webkit-scrollbar-thumb {
      background: linear-gradient(90deg, var(--saffron), var(--emerald));
      border-radius: 4px;
    }
    #monuments-grid::-webkit-scrollbar-thumb:hover {
      background: var(--saffron-lt);
    }

    /* Slider Prev/Next Navigation Floating Buttons */
    .monuments-slider-btn {
      position: absolute;
      top: 50%;
      transform: translateY(-50%);
      width: 48px;
      height: 48px;
      border-radius: 50%;
      background: rgba(10, 17, 32, 0.9);
      border: 1.5px solid rgba(232, 146, 26, 0.4);
      color: #fff;
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 1.1rem;
      cursor: pointer;
      z-index: 10;
      box-shadow: 0 8px 24px rgba(0, 0, 0, 0.6);
      transition: all 0.25s ease;
      backdrop-filter: blur(8px);
    }
    .monuments-slider-btn:hover {
      background: var(--saffron);
      color: #fff;
      border-color: var(--saffron);
      transform: translateY(-50%) scale(1.1);
      box-shadow: 0 12px 28px rgba(232, 146, 26, 0.4);
    }
    .monuments-slider-btn:active {
      transform: translateY(-50%) scale(0.95);
    }
    .monuments-slider-btn.prev {
      left: -20px;
    }
    .monuments-slider-btn.next {
      right: -20px;
    }

    /* Slider Footer & Drag Hint */
    .monuments-slider-footer {
      max-width: var(--max-w);
      margin: 0.5rem auto 0;
      display: flex;
      justify-content: space-between;
      align-items: center;
      padding: 0 0.5rem;
      color: var(--text-muted);
      font-size: 0.85rem;
    }
    .slider-drag-hint {
      display: inline-flex;
      align-items: center;
      gap: 0.5rem;
      color: var(--saffron-lt);
      font-weight: 600;
      font-size: 0.82rem;
      background: rgba(232, 146, 26, 0.08);
      padding: 0.35rem 0.85rem;
      border-radius: 20px;
      border: 1px solid rgba(232, 146, 26, 0.2);
    }
    .monuments-slider-counter {
      color: var(--text-muted);
      font-size: 0.82rem;
    }

    .card.monument-card-item {
      flex: 0 0 320px;
      width: 320px;
      min-width: 320px;
      height: 440px;
      max-height: 440px;
      scroll-snap-align: start;
      background: rgba(14, 22, 40, 0.72) !important;
      backdrop-filter: blur(20px) saturate(180%);
      -webkit-backdrop-filter: blur(20px) saturate(180%);
      border: 1px solid rgba(255, 255, 255, 0.12) !important;
      border-radius: 20px;
      overflow: hidden;
      cursor: pointer;
      transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1), 
                  box-shadow 0.4s cubic-bezier(0.2, 0.8, 0.2, 1), 
                  border-color 0.3s ease !important;
      display: flex;
      flex-direction: column;
      position: relative;
      transform-style: preserve-3d;
      will-change: transform, box-shadow;
      box-shadow: 0 14px 36px -6px rgba(0, 0, 0, 0.6), inset 0 1px 1px rgba(255, 255, 255, 0.14) !important;
    }

    /* Specular glass sheen highlight */
    .card.monument-card-item::before {
      content: '';
      position: absolute;
      inset: 0;
      border-radius: 20px;
      background: radial-gradient(
        500px circle at var(--mouse-x, 50%) var(--mouse-y, 0%),
        rgba(255, 255, 255, 0.14),
        transparent 50%
      );
      pointer-events: none;
      opacity: 0;
      transition: opacity 0.35s ease;
      z-index: 4;
    }

    .card.monument-card-item:hover {
      transform: translateY(-10px) scale(1.025);
      border-color: rgba(232, 146, 26, 0.65) !important;
      box-shadow: 0 24px 50px -10px rgba(0, 0, 0, 0.8), 
                  0 0 35px 3px rgba(232, 146, 26, 0.35), 
                  inset 0 1px 2px rgba(255, 255, 255, 0.25) !important;
    }

    .card.monument-card-item:hover::before {
      opacity: 1;
    }

    .card.monument-card-item:focus-visible {
      outline: 2px solid var(--saffron);
      outline-offset: 2px;
    }
    .card-img-wrapper {
      position: relative;
      height: 195px;
      min-height: 195px;
      overflow: hidden;
      background: #070C16;
      flex-shrink: 0;
    }
    .card-img {
      width: 100%;
      height: 100%;
      object-fit: cover;
      transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
      display: block;
    }
    .card.monument-card-item:hover .card-img {
      transform: scale(1.08);
    }
    .card-img-vignette {
      position: absolute;
      inset: 0;
      background: linear-gradient(180deg, rgba(5,10,20,0.55) 0%, transparent 40%, rgba(10,17,32,0.95) 100%);
      pointer-events: none;
    }
    .badge-unesco-luxury {
      position: absolute;
      top: 12px;
      left: 12px;
      z-index: 3;
      background: rgba(5, 10, 25, 0.88);
      backdrop-filter: blur(8px);
      border: 1px solid rgba(232, 146, 26, 0.5);
      color: #F59E0B;
      padding: 0.35rem 0.75rem;
      border-radius: 8px;
      font-size: 0.72rem;
      font-weight: 700;
      letter-spacing: 0.04em;
      display: inline-flex;
      align-items: center;
      gap: 0.4rem;
      box-shadow: 0 4px 12px rgba(0,0,0,0.4);
    }
    .badge-category-luxury {
      position: absolute;
      top: 12px;
      right: 12px;
      z-index: 3;
      background: rgba(10, 15, 30, 0.88);
      backdrop-filter: blur(8px);
      border: 1px solid rgba(255, 255, 255, 0.12);
      color: #E2E8F0;
      padding: 0.35rem 0.75rem;
      border-radius: 8px;
      font-size: 0.72rem;
      font-weight: 600;
      display: inline-flex;
      align-items: center;
      gap: 0.35rem;
    }
    .badge-era-luxury {
      position: absolute;
      bottom: 12px;
      left: 12px;
      z-index: 3;
      background: rgba(15, 23, 42, 0.9);
      backdrop-filter: blur(6px);
      border: 1px solid rgba(46, 125, 50, 0.4);
      color: #4ADE80;
      padding: 0.25rem 0.65rem;
      border-radius: 6px;
      font-size: 0.7rem;
      font-weight: 600;
      display: inline-flex;
      align-items: center;
      gap: 0.35rem;
    }
    .card-body {
      padding: 1rem 1.25rem 0.85rem;
      display: flex;
      flex-direction: column;
      flex: 1;
      min-height: 0;
    }
    .card-header-row {
      display: flex;
      justify-content: space-between;
      align-items: flex-start;
      margin-bottom: 0.2rem;
      gap: 0.5rem;
      flex-shrink: 0;
    }
    .card-location-tag {
      color: var(--saffron);
      font-size: 0.8rem;
      font-weight: 600;
      display: inline-flex;
      align-items: center;
      gap: 0.35rem;
      margin: 0.2rem 0 0.4rem;
      height: 1.2rem;
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
      flex-shrink: 0;
    }
    .card-rating-pill {
      background: rgba(232, 146, 26, 0.12);
      border: 1px solid rgba(232, 146, 26, 0.3);
      color: #F59E0B;
      padding: 0.2rem 0.6rem;
      border-radius: 12px;
      font-size: 0.78rem;
      font-weight: 700;
      display: inline-flex;
      align-items: center;
      gap: 0.3rem;
      flex-shrink: 0;
    }
    .card-title {
      font-family: var(--serif);
      font-size: 1.15rem;
      font-weight: 700;
      color: #fff;
      line-height: 1.25;
      margin: 0;
      min-height: 2.5em;
      max-height: 2.5em;
      display: -webkit-box;
      -webkit-line-clamp: 2;
      -webkit-box-orient: vertical;
      overflow: hidden;
      flex: 1;
      min-width: 0;
    }
    .card-title-hi {
      font-family: var(--sans);
      font-size: 0.82rem;
      color: var(--saffron-lt);
      font-weight: 500;
    }
    .card-snippet {
      color: rgba(237, 232, 224, 0.75);
      font-size: 0.82rem;
      line-height: 1.45;
      margin: 0 0 0.45rem;
      display: -webkit-box;
      -webkit-line-clamp: 3;
      -webkit-box-orient: vertical;
      overflow: hidden;
      height: 3.6rem;
      max-height: 3.6rem;
      flex-shrink: 0;
    }
    .card-meta-row {
      display: flex;
      flex-wrap: nowrap;
      gap: 0.35rem;
      margin-bottom: 0.35rem;
      height: 26px;
      overflow: hidden;
      flex-shrink: 0;
    }
    .card-meta-pill {
      background: rgba(255, 255, 255, 0.04);
      border: 1px solid rgba(255, 255, 255, 0.07);
      color: var(--text-muted);
      font-size: 0.73rem;
      padding: 0.2rem 0.55rem;
      border-radius: 6px;
      display: inline-flex;
      align-items: center;
      gap: 0.3rem;
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
      max-width: 145px;
    }
    .card-footer {
      margin-top: auto;
      display: flex;
      align-items: center;
      justify-content: space-between;
      border-top: 1px solid rgba(255, 255, 255, 0.08);
      padding-top: 0.65rem;
      font-size: 0.85rem;
      font-weight: 600;
      color: var(--saffron);
      flex-shrink: 0;
    }
    .card-cta-label {
      display: inline-flex;
      align-items: center;
      gap: 0.35rem;
      transition: color 0.2s;
    }
    .card-cta-arrow {
      width: 28px;
      height: 28px;
      border-radius: 50%;
      background: rgba(232, 146, 26, 0.12);
      border: 1px solid rgba(232, 146, 26, 0.25);
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 0.75rem;
      transition: all 0.25s ease;
    }
    .card.monument-card-item:hover .card-cta-arrow {
      background: var(--saffron);
      color: #fff;
      transform: translateX(3px);
    }
    .rating { color: var(--saffron-lt); font-weight: 700; font-size: 0.9rem; display: flex; align-items: center; gap: 0.3rem; }

    /* =============================================
       OTHER VIEWS
    ============================================= */
    .view-section {
      display: none; min-height: 100vh;
      background: var(--deep-navy);
      padding: calc(70px + 3rem) 2rem 4rem;
    }
    .view-wrap { max-width: var(--max-w); margin: 0 auto; }
    .view-section h2 {
      font-family: var(--serif); font-size: 2.2rem; font-weight: 700; color: #fff;
      margin-bottom: 1.5rem; display: flex; align-items: center; gap: 0.75rem;
    }
    .view-section h2 i { color: var(--saffron); }
    #map { height: 520px; border-radius: 18px; z-index: 1; }

    /* =============================================
       DRAWER MODAL
    ============================================= */
    .drawer-overlay {
      position: fixed; inset: 0; background: rgba(0,0,0,0.85);
      backdrop-filter: blur(10px); z-index: 9000;
      display: none; align-items: center; justify-content: center; padding: 1.5rem;
    }
    .drawer-overlay.active { display: flex; }
    .drawer-content {
      background: var(--navy-surface); border: 1px solid var(--navy-border);
      border-radius: 24px; width: 100%; max-width: 920px;
      max-height: 92vh; overflow-y: auto; position: relative;
      box-shadow: 0 24px 60px rgba(0,0,0,0.7);
    }
    .drawer-close {
      position: absolute; top: 1rem; right: 1rem;
      background: rgba(0,0,0,0.8); border: 2px solid var(--saffron); color: #fff;
      width: 42px; height: 42px; border-radius: 50%; font-size: 1.3rem;
      cursor: pointer; z-index: 999; display: flex; align-items: center; justify-content: center;
      transition: all 0.2s;
    }
    .drawer-close:hover { background: var(--terracotta); transform: scale(1.1); }
    .drawer-hero { position: relative; height: 340px; overflow: hidden; }
    .drawer-hero img { width:100%; height:100%; object-fit: cover; }
    .drawer-hero-overlay {
      position: absolute; inset: 0;
      background: linear-gradient(180deg, rgba(5,10,20,0.4) 0%, transparent 40%, rgba(10,16,30,0.95) 100%);
      pointer-events: none;
    }
    .hero-floating-actions {
      position: absolute; bottom: 1rem; right: 1.25rem;
      display: flex; gap: 0.75rem; z-index: 10;
      flex-wrap: wrap;
    }
    .hero-action-pill {
      background: rgba(10, 16, 30, 0.85);
      backdrop-filter: blur(10px);
      border: 1px solid rgba(255, 255, 255, 0.15);
      color: #fff;
      padding: 0.55rem 1.1rem;
      border-radius: 30px;
      font-size: 0.82rem;
      font-weight: 700;
      cursor: pointer;
      display: inline-flex;
      align-items: center;
      gap: 0.45rem;
      transition: all 0.25s ease;
      box-shadow: 0 4px 14px rgba(0,0,0,0.4);
    }
    .hero-action-pill.ai-pill {
      border-color: rgba(232, 146, 26, 0.5);
      color: var(--saffron);
    }
    .hero-action-pill.ai-pill:hover {
      background: var(--saffron);
      color: #fff;
      transform: translateY(-2px);
    }
    .hero-action-pill.cam-pill {
      border-color: rgba(46, 125, 50, 0.5);
      color: #4ADE80;
    }
    .hero-action-pill.cam-pill:hover {
      background: var(--emerald);
      color: #fff;
      transform: translateY(-2px);
    }

    /* Sub-Site Slider Controls in Drawer Hero */
    .drawer-slider-arrow {
      position: absolute;
      top: 45%;
      transform: translateY(-50%);
      width: 40px;
      height: 40px;
      border-radius: 50%;
      background: rgba(6, 13, 31, 0.78);
      backdrop-filter: blur(10px);
      -webkit-backdrop-filter: blur(10px);
      border: 1px solid rgba(255, 255, 255, 0.22);
      color: #fff;
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 1rem;
      cursor: pointer;
      z-index: 12;
      transition: all 0.2s ease;
      box-shadow: 0 4px 14px rgba(0,0,0,0.55);
    }
    .drawer-slider-arrow:hover {
      background: var(--saffron);
      border-color: var(--saffron);
      color: #fff;
      transform: translateY(-50%) scale(1.1);
      box-shadow: 0 6px 18px rgba(232, 146, 26, 0.4);
    }
    .drawer-slider-arrow.prev { left: 1.1rem; }
    .drawer-slider-arrow.next { right: 1.1rem; }

    .drawer-slider-counter {
      position: absolute;
      top: 1.1rem;
      left: 1.25rem;
      z-index: 10;
      background: rgba(6, 13, 31, 0.85);
      backdrop-filter: blur(8px);
      border: 1px solid rgba(255, 255, 255, 0.18);
      padding: 0.35rem 0.85rem;
      border-radius: 20px;
      font-size: 0.76rem;
      font-weight: 700;
      color: var(--saffron-lt);
      display: flex;
      align-items: center;
      gap: 0.45rem;
      box-shadow: 0 2px 12px rgba(0,0,0,0.5);
    }

    /* Sub-Site Info Card overlaid on drawer hero */
    .drawer-subsite-info-card {
      position: absolute;
      bottom: 0.85rem;
      left: 1.25rem;
      max-width: min(580px, calc(100% - 2.5rem));
      background: rgba(6, 13, 31, 0.92);
      backdrop-filter: blur(16px);
      -webkit-backdrop-filter: blur(16px);
      border: 1px solid rgba(232, 146, 26, 0.4);
      border-radius: 14px;
      padding: 0.85rem 1.15rem;
      z-index: 10;
      box-shadow: 0 10px 28px rgba(0, 0, 0, 0.7);
      transition: opacity 0.3s ease, transform 0.3s ease;
    }
    .drawer-subsite-header {
      display: flex;
      align-items: center;
      gap: 0.5rem;
      margin-bottom: 0.35rem;
      flex-wrap: wrap;
    }
    .drawer-subsite-badge {
      font-size: 0.68rem;
      font-weight: 800;
      text-transform: uppercase;
      letter-spacing: 0.05em;
      color: var(--saffron-lt);
      background: rgba(232, 146, 26, 0.18);
      border: 1px solid rgba(232, 146, 26, 0.3);
      padding: 0.15rem 0.55rem;
      border-radius: 8px;
      display: inline-flex;
      align-items: center;
      gap: 0.3rem;
    }
    .drawer-subsite-title {
      font-family: var(--serif);
      color: #fff;
      font-size: 1.12rem;
      font-weight: 700;
      margin: 0;
      line-height: 1.25;
    }
    .drawer-subsite-desc {
      color: rgba(237, 232, 224, 0.92);
      font-size: 0.84rem;
      line-height: 1.48;
      margin: 0;
      display: -webkit-box;
      -webkit-line-clamp: 3;
      -webkit-box-orient: vertical;
      overflow: hidden;
    }

    .drawer-subsite-audio-btn {
      background: rgba(232, 146, 26, 0.2);
      border: 1px solid var(--saffron);
      color: var(--saffron-lt);
      font-size: 0.72rem;
      font-weight: 700;
      padding: 0.2rem 0.6rem;
      border-radius: 12px;
      cursor: pointer;
      display: inline-flex;
      align-items: center;
      gap: 0.35rem;
      transition: all 0.2s ease;
    }
    .drawer-subsite-audio-btn:hover {
      background: var(--saffron);
      color: #fff;
      transform: scale(1.04);
    }
    .drawer-subsite-tag {
      background: rgba(16, 185, 129, 0.15);
      border: 1px solid var(--emerald);
      color: var(--emerald);
      font-size: 0.68rem;
      font-weight: 700;
      padding: 0.15rem 0.5rem;
      border-radius: 10px;
      text-transform: uppercase;
    }

    .logistics-stat-card {
      background: rgba(255, 255, 255, 0.03);
      border: 1px solid rgba(255, 255, 255, 0.07);
      border-radius: 10px;
      padding: 0.75rem 0.9rem;
    }
    .logistics-stat-lbl {
      font-size: 0.7rem;
      text-transform: uppercase;
      color: var(--text-muted);
      letter-spacing: 0.06em;
      margin-bottom: 0.25rem;
      display: flex;
      align-items: center;
      gap: 0.35rem;
    }
    .logistics-stat-val {
      font-size: 0.9rem;
      font-weight: 700;
      color: #fff;
    }

    .amenities-chip-wrap {
      display: flex;
      flex-wrap: wrap;
      gap: 0.5rem;
      margin-top: 0.5rem;
    }
    .amenity-chip {
      background: rgba(167, 139, 250, 0.1);
      border: 1px solid rgba(167, 139, 250, 0.3);
      color: #EDE8E0;
      font-size: 0.76rem;
      padding: 0.3rem 0.65rem;
      border-radius: 16px;
      display: inline-flex;
      align-items: center;
      gap: 0.4rem;
    }

    .drawer-gallery-thumb {
      width: 70px;
      height: 52px;
      object-fit: cover;
      border-radius: 8px;
      cursor: pointer;
      border: 2px solid var(--navy-border);
      transition: all 0.2s ease;
      flex-shrink: 0;
    }
    .drawer-gallery-thumb:hover {
      border-color: var(--saffron);
      transform: translateY(-2px);
    }
    .drawer-gallery-thumb.active {
      border-color: var(--saffron);
      box-shadow: 0 0 10px rgba(232, 146, 26, 0.5);
      transform: scale(1.04);
    }

    @media (max-width: 768px) {
      .drawer-hero { height: 290px; }
      .drawer-subsite-info-card {
        bottom: 0.6rem;
        left: 0.75rem;
        right: 0.75rem;
        max-width: none;
        padding: 0.65rem 0.85rem;
      }
      .drawer-subsite-title { font-size: 1rem; }
      .drawer-subsite-desc { font-size: 0.78rem; -webkit-line-clamp: 2; }
      .hero-floating-actions { top: 0.75rem; bottom: auto; right: 3.5rem; }
    }

    .drawer-body { padding: 1.75rem 2.25rem 2.5rem; }
    .drawer-header-row {
      display: flex; justify-content: space-between; align-items: flex-start;
      margin-bottom: 1.5rem; gap: 1rem; flex-wrap: wrap;
    }
    .drawer-title-group {
      display: flex; align-items: baseline; gap: 0.75rem; flex-wrap: wrap;
    }
    #d-title {
      font-family: var(--serif); font-size: 2.1rem; font-weight: 700;
      color: #fff; margin: 0; line-height: 1.2;
    }
    .drawer-title-hi {
      font-family: var(--sans); font-size: 1.05rem; color: var(--saffron-lt); font-weight: 600;
    }
    .drawer-location-tag {
      color: var(--saffron); font-size: 0.88rem; font-weight: 600;
      margin-top: 0.35rem; display: flex; align-items: center; gap: 0.4rem;
    }
    .btn-checkin-passport {
      background: linear-gradient(135deg, var(--emerald) 0%, #15803D 100%);
      color: #fff; border: none; padding: 0.75rem 1.35rem; border-radius: 14px;
      font-weight: 700; font-size: 0.88rem; cursor: pointer;
      display: inline-flex; align-items: center; gap: 0.5rem;
      transition: all 0.25s ease; box-shadow: 0 4px 16px rgba(46,125,50,0.35);
      white-space: nowrap;
    }
    .btn-checkin-passport:hover {
      transform: translateY(-2px);
      box-shadow: 0 8px 24px rgba(46,125,50,0.5);
    }

    /* Dossier Navigation Tabs */
    .dossier-nav-tabs {
      display: flex; gap: 0.5rem; overflow-x: auto;
      border-bottom: 1px solid rgba(255, 255, 255, 0.08);
      padding-bottom: 0.75rem; margin-bottom: 1.75rem;
      scrollbar-width: none;
    }
    .dossier-nav-tabs::-webkit-scrollbar { display: none; }
    .dossier-tab-btn {
      background: rgba(255, 255, 255, 0.03);
      border: 1px solid rgba(255, 255, 255, 0.08);
      color: var(--text-muted);
      padding: 0.65rem 1.15rem;
      border-radius: 12px;
      font-size: 0.85rem;
      font-weight: 600;
      cursor: pointer;
      display: inline-flex;
      align-items: center;
      gap: 0.45rem;
      white-space: nowrap;
      transition: all 0.2s ease;
    }
    .dossier-tab-btn:hover {
      color: #fff; border-color: rgba(232, 146, 26, 0.3); background: rgba(255, 255, 255, 0.06);
    }
    .dossier-tab-btn.active {
      background: rgba(232, 146, 26, 0.12);
      border-color: var(--saffron);
      color: var(--saffron);
      font-weight: 700;
    }

    /* Tab Panels & Sections */
    .dossier-panel { display: none; }
    .dossier-panel.active { display: block; animation: fadeIn 0.3s ease; }
    @keyframes fadeIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: translateY(0); } }

    .dossier-metrics-grid {
      display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
      gap: 1rem; margin-bottom: 1.5rem;
    }
    .dossier-metric-card {
      background: rgba(255, 255, 255, 0.03);
      border: 1px solid rgba(255, 255, 255, 0.08);
      border-radius: 14px; padding: 1rem 1.15rem;
    }
    .dossier-metric-label {
      font-size: 0.75rem; color: var(--text-muted); text-transform: uppercase;
      letter-spacing: 0.05em; margin-bottom: 0.35rem; display: flex; align-items: center; gap: 0.35rem;
    }
    .dossier-metric-val {
      font-size: 0.95rem; font-weight: 700; color: #fff;
    }

    .dossier-section-box {
      background: rgba(255, 255, 255, 0.02);
      border: 1px solid rgba(255, 255, 255, 0.06);
      border-radius: 16px; padding: 1.35rem 1.5rem; margin-bottom: 1.25rem;
    }
    .dossier-section-title {
      font-family: var(--serif); font-size: 1.2rem; color: var(--saffron);
      margin: 0 0 0.85rem 0; display: flex; align-items: center; gap: 0.5rem;
    }
    .dossier-narrative-text {
      color: rgba(237, 232, 224, 0.85); font-size: 0.92rem; line-height: 1.7;
    }
    .dossier-feats-grid {
      display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
      gap: 0.85rem; margin-top: 0.75rem;
    }
    .dossier-feat-item {
      background: rgba(255, 255, 255, 0.03); border: 1px solid rgba(255, 255, 255, 0.06);
      border-radius: 10px; padding: 0.85rem; font-size: 0.85rem; color: rgba(237, 232, 224, 0.8);
      line-height: 1.5;
    }
    .dossier-feat-item strong { color: var(--saffron); display: block; margin-bottom: 0.2rem; }

    /* Timeline Stepper */
    .timeline-stepper {
      position: relative; padding-left: 2rem; margin-top: 1rem;
    }
    .timeline-stepper::before {
      content: ''; position: absolute; left: 8px; top: 0; bottom: 0;
      width: 2px; background: linear-gradient(180deg, var(--saffron) 0%, rgba(232,146,26,0.1) 100%);
    }
    .timeline-milestone-item {
      position: relative; margin-bottom: 1.5rem;
    }
    .timeline-milestone-item::before {
      content: ''; position: absolute; left: -2rem; top: 4px;
      width: 14px; height: 14px; border-radius: 50%;
      background: var(--saffron); border: 3px solid #0D1628;
      box-shadow: 0 0 0 2px rgba(232, 146, 26, 0.5);
    }
    .milestone-year-badge {
      display: inline-block; background: rgba(232, 146, 26, 0.12);
      border: 1px solid rgba(232, 146, 26, 0.3); color: var(--saffron);
      padding: 0.2rem 0.6rem; border-radius: 6px; font-size: 0.78rem; font-weight: 700;
      margin-bottom: 0.4rem;
    }
    .milestone-title {
      font-size: 1rem; font-weight: 700; color: #fff; margin-bottom: 0.25rem;
    }
    .milestone-desc {
      font-size: 0.85rem; color: var(--text-muted); line-height: 1.55;
    }

    /* Inscriptions & Epigraphy Cards */
    .inscriptions-list, .sources-list {
      display: flex; flex-direction: column; gap: 0.85rem; margin-top: 0.75rem;
    }
    .epigraphy-card {
      background: rgba(255, 255, 255, 0.03); border: 1px solid rgba(232, 146, 26, 0.2);
      border-left: 3px solid var(--saffron); border-radius: 12px; padding: 1rem 1.25rem;
    }
    .epigraphy-header {
      display: flex; justify-content: space-between; align-items: center; margin-bottom: 0.4rem;
    }
    .epigraphy-script-tag {
      font-size: 0.75rem; color: var(--saffron); font-weight: 700; text-transform: uppercase;
    }
    .epigraphy-location {
      font-size: 0.78rem; color: var(--text-muted);
    }
    .epigraphy-original {
      font-family: var(--serif); font-size: 1.15rem; color: #F59E0B; margin: 0.35rem 0; line-height: 1.4;
    }
    .epigraphy-translation {
      font-size: 0.86rem; color: rgba(237, 232, 224, 0.85); line-height: 1.5; font-style: italic;
    }

    .source-card {
      background: rgba(255, 255, 255, 0.03); border: 1px solid rgba(255, 255, 255, 0.08);
      border-radius: 10px; padding: 0.85rem 1rem; font-size: 0.85rem; color: rgba(237, 232, 224, 0.8);
      display: flex; align-items: center; gap: 0.75rem;
    }
    .source-icon { color: var(--emerald); font-size: 1.1rem; flex-shrink: 0; }

    /* AI Camera & Visual Inspector Box */
    .ai-inspector-box {
      background: linear-gradient(180deg, rgba(17, 26, 46, 0.85) 0%, rgba(10, 16, 30, 0.95) 100%);
      border: 1px solid rgba(232, 146, 26, 0.3); border-radius: 20px;
      padding: 1.5rem; box-shadow: 0 12px 36px rgba(0,0,0,0.5);
    }
    .ai-inspector-header { margin-bottom: 1.25rem; }
    .ai-badge-chip {
      display: inline-flex; align-items: center; gap: 0.4rem;
      background: rgba(232, 146, 26, 0.12); border: 1px solid rgba(232, 146, 26, 0.3);
      color: var(--saffron); padding: 0.25rem 0.75rem; border-radius: 20px;
      font-size: 0.75rem; font-weight: 700; margin-bottom: 0.5rem;
    }
    .ai-inspector-title {
      font-family: var(--serif); font-size: 1.4rem; color: #fff; margin: 0 0 0.35rem 0;
    }
    .ai-inspector-desc {
      font-size: 0.85rem; color: var(--text-muted); line-height: 1.5; margin: 0;
    }

    .camera-actions-bar {
      margin: 1.25rem 0; padding: 1.25rem;
      background: rgba(255, 255, 255, 0.03); border: 1px dashed rgba(232, 146, 26, 0.3);
      border-radius: 14px; text-align: center;
    }
    .btn-snap-camera {
      background: linear-gradient(135deg, var(--saffron) 0%, var(--terracotta) 100%);
      color: #fff; border: none; padding: 0.85rem 1.75rem; border-radius: 14px;
      font-size: 0.95rem; font-weight: 700; cursor: pointer;
      display: inline-flex; align-items: center; gap: 0.6rem;
      box-shadow: 0 6px 20px rgba(232, 146, 26, 0.4);
      transition: all 0.25s ease;
    }
    .btn-snap-camera:hover {
      transform: translateY(-2px); box-shadow: 0 10px 28px rgba(232, 146, 26, 0.55);
    }
    .quick-samples-label {
      font-size: 0.78rem; color: var(--text-muted); margin: 1rem 0 0.5rem;
    }
    .quick-samples-chips {
      display: flex; gap: 0.5rem; justify-content: center; flex-wrap: wrap;
    }
    .sample-chip {
      background: rgba(255, 255, 255, 0.05); border: 1px solid rgba(255, 255, 255, 0.1);
      color: rgba(237, 232, 224, 0.85); padding: 0.35rem 0.8rem; border-radius: 20px;
      font-size: 0.78rem; cursor: pointer; transition: all 0.2s;
    }
    .sample-chip:hover {
      background: rgba(232, 146, 26, 0.15); border-color: var(--saffron); color: #fff;
    }

    /* Scanner Viewfinder with Laser Beam */
    .scanner-viewfinder {
      margin: 1.25rem 0; background: #000; border-radius: 14px;
      overflow: hidden; border: 1px solid var(--saffron); position: relative;
    }
    .scanner-img-wrap {
      position: relative; height: 260px; overflow: hidden; display: flex; align-items: center; justify-content: center;
    }
    #scanned-image-preview {
      width: 100%; height: 100%; object-fit: cover;
    }
    .scan-laser-beam {
      position: absolute; left: 0; right: 0; height: 3px;
      background: linear-gradient(90deg, transparent 0%, #F59E0B 50%, transparent 100%);
      box-shadow: 0 0 15px #F59E0B;
      animation: scanLaser 2s infinite ease-in-out;
      pointer-events: none;
    }
    @keyframes scanLaser {
      0% { top: 5%; opacity: 0.2; }
      50% { top: 90%; opacity: 1; }
      100% { top: 5%; opacity: 0.2; }
    }
    .scanner-status {
      padding: 0.75rem; text-align: center; font-size: 0.82rem;
      background: rgba(10, 16, 30, 0.9); color: var(--saffron); font-weight: 600;
    }

    /* Visual Result Card */
    .visual-result-card {
      background: rgba(255, 255, 255, 0.04); border: 1px solid var(--emerald);
      border-radius: 14px; padding: 1.25rem 1.5rem; margin: 1.25rem 0;
      animation: fadeIn 0.3s ease;
    }
    .visual-result-head {
      display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 0.75rem; flex-wrap: wrap; gap: 0.5rem;
    }
    .visual-feature-title {
      font-family: var(--serif); font-size: 1.3rem; color: #4ADE80; margin: 0;
    }
    .visual-dynasty-badge {
      background: rgba(46, 125, 50, 0.2); border: 1px solid var(--emerald);
      color: #4ADE80; font-size: 0.75rem; font-weight: 700; padding: 0.2rem 0.6rem; border-radius: 10px;
    }
    .visual-detail-row {
      font-size: 0.85rem; line-height: 1.6; color: rgba(237, 232, 224, 0.9); margin-bottom: 0.5rem;
    }
    .visual-detail-row strong { color: var(--saffron); }
    .visual-citation-tag {
      margin-top: 0.75rem; padding-top: 0.75rem; border-top: 1px solid rgba(255, 255, 255, 0.08);
      font-size: 0.78rem; color: var(--text-muted); font-style: italic; display: flex; align-items: center; gap: 0.4rem;
    }

    /* Custom Interactive Q&A Box */
    .ai-question-wrap {
      margin-top: 1.5rem; padding-top: 1.25rem; border-top: 1px solid rgba(255, 255, 255, 0.08);
    }
    .ai-q-label {
      display: block; font-size: 0.82rem; color: var(--text-muted); margin-bottom: 0.5rem; font-weight: 600;
    }
    .ai-q-input-row {
      display: flex; gap: 0.5rem;
    }
    .ai-q-input-row input {
      flex: 1; padding: 0.75rem 1rem; background: rgba(5, 10, 20, 0.7);
      border: 1px solid rgba(255, 255, 255, 0.1); border-radius: 10px;
      color: #fff; font-family: var(--sans); font-size: 0.88rem;
    }
    .ai-q-input-row input:focus {
      outline: none; border-color: var(--saffron);
    }
    .ai-q-input-row button {
      background: var(--saffron); color: #fff; border: none; padding: 0.75rem 1.25rem;
      border-radius: 10px; font-weight: 700; font-size: 0.88rem; cursor: pointer;
      display: inline-flex; align-items: center; gap: 0.4rem; white-space: nowrap;
      transition: all 0.2s;
    }
    .ai-q-input-row button:hover {
      background: #D97706;
    }
    .ai-answer-box {
      margin-top: 1rem; padding: 1rem 1.25rem; background: rgba(5, 10, 20, 0.85);
      border-left: 3px solid var(--saffron); border-radius: 10px;
      color: #fff; font-size: 0.88rem; line-height: 1.6;
    }


    /* =============================================
       SECURITY BANNER
    ============================================= */
    .sec-banner {
      background: rgba(26,122,74,0.1); border: 1px solid var(--emerald);
      color: #fff; padding: 0.75rem 1rem; border-radius: 12px; margin-bottom: 1.5rem;
      display: flex; align-items: center; gap: 0.75rem; font-size: 0.85rem;
    }

    /* =============================================
       FOOTER
    ============================================= */
    .site-footer { background: #030912; border-top: 1px solid var(--navy-border); padding: 4rem 2rem 2rem; }
    .footer-inner { max-width: var(--max-w); margin: 0 auto; }
    .footer-top {
      display: grid; grid-template-columns: 2fr 1fr 1fr 1fr;
      gap: 3rem; margin-bottom: 3rem;
    }
    .footer-brand .brand-name { font-family: var(--serif); font-size: 1.4rem; font-weight: 700; color: #fff; margin-bottom: 0.75rem; }
    .footer-brand p { color: var(--text-muted); font-size: 0.9rem; line-height: 1.7; margin-bottom: 1.25rem; }
    .footer-socials { display: flex; gap: 0.75rem; }
    .footer-social-btn {
      width: 38px; height: 38px; background: rgba(255,255,255,0.06);
      border: 1px solid var(--navy-border); border-radius: 8px;
      display: flex; align-items: center; justify-content: center;
      color: var(--text-muted); font-size: 0.95rem; transition: all 0.2s; text-decoration: none;
    }
    .footer-social-btn:hover { background: var(--saffron); color: #fff; border-color: var(--saffron); }
    .footer-col h4 { font-size: 0.78rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; color: var(--saffron); margin-bottom: 1rem; }
    .footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 0.6rem; }
    .footer-col ul li button { color: var(--text-muted); font-size: 0.88rem; background: none; border: none; text-align: left; padding: 0; transition: color 0.2s; cursor: pointer; font-family: var(--sans); }
    .footer-col ul li button:hover { color: var(--saffron-lt); }
    .footer-bottom {
      border-top: 1px solid var(--navy-border); padding-top: 1.5rem;
      display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 1rem;
    }
    .footer-bottom p { color: var(--text-muted); font-size: 0.8rem; }

    /* Admin form inputs */
    #admin-login-box input, #admin-crud-box input, #admin-crud-box textarea, #admin-crud-box select {
      background: var(--navy-surface); border: 1px solid var(--navy-border); color: #fff;
      padding: 0.8rem; border-radius: 8px; font-family: var(--sans); width: 100%; font-size: 0.9rem;
    }
    .grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px,1fr)); gap: 1.5rem; }

    /* =============================================
       RESPONSIVE
    ============================================= */
    @media (max-width:900px) {
      .story-inner { grid-template-columns:1fr; gap:3rem; }
      .category-grid { grid-template-columns: repeat(2,1fr); }
      .stats-inner { grid-template-columns: repeat(2,1fr); }
      .stat-item:nth-child(2) { border-right:none; }
      .footer-top { grid-template-columns:1fr 1fr; gap:2rem; }
    }
    @media (max-width:640px) {
      .top-nav { display:none; }
      .hero-headline { font-size:2.4rem; }
      .category-grid { grid-template-columns:1fr; }
      .footer-top { grid-template-columns:1fr; }
    }
  
    .adm-tab-btn {
      background: rgba(255, 255, 255, 0.05);
      border: 1px solid var(--navy-border);
      color: var(--text-muted);
      padding: 0.65rem 1.2rem;
      border-radius: 10px;
      font-weight: 600;
      font-size: 0.88rem;
      cursor: pointer;
      white-space: nowrap;
      transition: all 0.2s ease;
      display: inline-flex;
      align-items: center;
      gap: 0.5rem;
    }
    .adm-tab-btn:hover {
      background: rgba(232, 146, 26, 0.15);
      color: #fff;
      border-color: rgba(232, 146, 26, 0.3);
    }
    .adm-tab-btn.active {
      background: var(--saffron);
      color: #fff;
      border-color: var(--saffron);
      box-shadow: 0 4px 14px rgba(232, 146, 26, 0.35);
    }

  
    
    /* HIGH PERFORMANCE GPU ACCELERATED CAROUSEL STYLES */
    .wheel-wrapper {
      position: relative;
      width: 100%;
      margin-top: 1rem;
      contain: layout style;
    }
    .wheel-container {
      overflow: hidden;
      position: relative;
      width: 100%;
      padding: 0.5rem 0;
      mask-image: linear-gradient(to right, transparent, #000 5%, #000 95%, transparent);
      -webkit-mask-image: linear-gradient(to right, transparent, #000 5%, #000 95%, transparent);
      transform: translateZ(0);
    }
    .wheel-track {
      display: flex;
      gap: 1.25rem;
      width: max-content;
      will-change: transform;
      transform: translateZ(0);
      transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    }
    .wheel-track.rotate-left {
      animation: wheelScrollLeft 32s linear infinite;
    }
    .wheel-track.rotate-right {
      animation: wheelScrollRight 32s linear infinite;
    }
    .wheel-container:hover .wheel-track {
      animation-play-state: paused;
    }
    @keyframes wheelScrollLeft {
      0% { transform: translate3d(0, 0, 0); }
      100% { transform: translate3d(-50%, 0, 0); }
    }
    @keyframes wheelScrollRight {
      0% { transform: translate3d(-50%, 0, 0); }
      100% { transform: translate3d(0, 0, 0); }
    }
    .wheel-card {
      width: 280px;
      flex-shrink: 0;
      background: var(--navy-card);
      border: 1px solid rgba(232, 146, 26, 0.2);
      border-radius: 14px;
      overflow: hidden;
      box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35);
      transition: transform 0.25s ease, border-color 0.25s ease;
      cursor: pointer;
      contain: content;
      transform: translateZ(0);
    }
    .wheel-card:hover {
      transform: translate3d(0, -6px, 0) scale(1.02);
      border-color: var(--saffron);
      box-shadow: 0 8px 24px rgba(232, 146, 26, 0.25);
    }

    .wheel-ctrl-btn {
      background: rgba(10, 20, 40, 0.8);
      border: 1px solid var(--saffron);
      color: var(--saffron);
      width: 38px;
      height: 38px;
      border-radius: 50%;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      cursor: pointer;
      font-size: 0.9rem;
      transition: all 0.2s ease;
    }
    .wheel-ctrl-btn:hover {
      background: var(--saffron);
      color: #fff;
      transform: scale(1.1);
    }

/* TOAST NOTIFICATIONS & UTILITY CLASSES */
.toast-notification {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 999999;
  background: var(--navy-card);
  border: 1px solid var(--saffron);
  color: #ffffff;
  padding: 0.9rem 1.4rem;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
  font-family: var(--sans);
  font-size: 0.9rem;
  font-weight: 600;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  pointer-events: none;
}
.toast-notification.show {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
.toast-notification.toast-error {
  border-color: #ef4444;
  background: rgba(185, 28, 28, 0.95);
}
.toast-notification.toast-success {
  border-color: var(--emerald);
  background: rgba(46, 125, 50, 0.95);
}

.btn-primary-action {
  background: var(--saffron);
  color: #fff;
  padding: 0.7rem 1.4rem;
  border: none;
  border-radius: 8px;
  font-weight: bold;
  cursor: pointer;
  font-family: var(--sans);
  transition: transform 0.2s ease, background 0.2s ease;
}
.btn-primary-action:hover {
  background: #d97706;
  transform: translateY(-2px);
}
.btn-outline-action {
  background: transparent;
  color: var(--terracotta);
  border: 1px solid var(--terracotta);
  padding: 0.7rem 1.4rem;
  border-radius: 8px;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.2s ease;
}
.btn-outline-action:hover {
  background: var(--terracotta);
  color: #fff;
}


/* SKELETON LOADING ANIMATION STYLES */
.skeleton-card {
  height: 320px;
  background: linear-gradient(90deg, rgba(255,255,255,0.03) 25%, rgba(255,255,255,0.08) 50%, rgba(255,255,255,0.03) 75%);
  background-size: 200% 100%;
  animation: skeletonLoading 1.5s infinite;
  border-radius: 16px;
  border: 1px solid var(--navy-border);
}
@keyframes skeletonLoading {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* ============================================================
   MOBILE VIEW SYSTEM & RESPONSIVE DESIGN ENHANCEMENTS
   ============================================================ */

/* Global Mobile Fixes */
html, body {
  overflow-x: hidden;
  max-width: 100vw;
}

/* Mobile Hamburger Toggle in Header */
.mobile-menu-toggle {
  display: none;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  font-size: 1.2rem;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}
.mobile-menu-toggle:active {
  background: rgba(232, 146, 26, 0.2);
  color: var(--saffron);
}

/* Mobile Slide-Out Drawer Navigation */
.mobile-nav-drawer {
  position: fixed;
  top: 0;
  right: -320px;
  width: 290px;
  height: 100vh;
  height: 100dvh;
  background: rgba(6, 13, 31, 0.98);
  backdrop-filter: blur(25px);
  border-left: 1px solid var(--navy-border);
  z-index: 9999;
  display: flex;
  flex-direction: column;
  box-shadow: -10px 0 30px rgba(0,0,0,0.8);
  transition: right 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  padding: 1.25rem 1rem;
}
.mobile-nav-drawer.open {
  right: 0;
}
.mobile-nav-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.7);
  backdrop-filter: blur(4px);
  z-index: 9998;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}
.mobile-nav-backdrop.open {
  opacity: 1;
  pointer-events: auto;
}
.mobile-drawer-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--navy-border);
  margin-bottom: 1rem;
}
.mobile-drawer-links {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  overflow-y: auto;
  flex: 1;
}
.mobile-nav-item {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.85rem 1rem;
  border-radius: 12px;
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  background: transparent;
  border: 1px solid transparent;
  transition: all 0.2s ease;
}
.mobile-nav-item i {
  width: 22px;
  color: var(--saffron);
  font-size: 1.1rem;
}
.mobile-nav-item:active, .mobile-nav-item.active {
  background: rgba(232, 146, 26, 0.15);
  border-color: rgba(232, 146, 26, 0.3);
  color: var(--saffron);
}

/* App-Style Mobile Bottom Navigation Bar */
.mobile-bottom-nav {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 62px;
  background: rgba(6, 13, 31, 0.96);
  backdrop-filter: blur(20px);
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  z-index: 9500;
  padding: 0 0.5rem;
  align-items: center;
  justify-content: space-around;
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.6);
}
.mobile-tab-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: none;
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.68rem;
  font-weight: 600;
  padding: 0.3rem 0.6rem;
  border-radius: 8px;
  cursor: pointer;
  text-decoration: none;
  gap: 0.2rem;
  transition: all 0.2s ease;
}
.mobile-tab-btn i {
  font-size: 1.15rem;
  transition: transform 0.2s ease;
}
.mobile-tab-btn.active, .mobile-tab-btn:active {
  color: var(--saffron);
}
.mobile-tab-btn.active i {
  transform: translateY(-2px);
}

/* ============================================================
   RESPONSIVE MEDIA QUERIES (TABLETS & PHONES <= 768px)
   ============================================================ */
@media (max-width: 768px) {
  .site-header {
    padding: 0 1rem !important;
    height: 60px !important;
    background: #060D1F !important;
    border-bottom: 1px solid var(--navy-border) !important;
    box-shadow: 0 2px 14px rgba(0, 0, 0, 0.6) !important;
  }
  .top-nav {
    display: none !important;
  }
  .mobile-menu-toggle {
    display: flex !important;
  }
  .mobile-bottom-nav {
    display: flex !important;
  }
  .btn-admin-sm {
    display: none !important;
  }
  .header-right .xp-badge {
    padding: 0.3rem 0.6rem;
    font-size: 0.75rem;
  }

  /* View Sections Mobile Padding */
  .view-section {
    padding: calc(70px + 1rem) 1rem calc(75px + 2rem) !important;
    min-height: 100dvh;
  }
  .view-section h2 {
    font-size: 1.5rem !important;
    flex-wrap: wrap;
  }

  /* Hero Section */
  .hero {
    min-height: 500px !important;
    height: auto !important;
    padding: 6rem 1rem 3.5rem !important;
  }
  .hero-headline {
    font-size: clamp(2.1rem, 9vw, 2.9rem) !important;
  }
  .hero-sub {
    font-size: 0.95rem !important;
    margin-bottom: 1.5rem !important;
  }
  .hero-ctas {
    flex-direction: column !important;
    width: 100% !important;
    gap: 0.75rem !important;
  }
  .btn-hero-primary, .btn-hero-ghost {
    width: 100% !important;
    justify-content: center !important;
    padding: 0.85rem 1.5rem !important;
    font-size: 0.95rem !important;
  }

  /* Stats Bar */
  .stats-bar-wrapper {
    margin: 1rem auto 2rem !important;
    padding: 0 1rem !important;
  }
  .stats-inner {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 0.85rem !important;
  }
  .stat-num {
    font-size: 1.5rem !important;
  }

  /* Heritage Story Section Mobile Adaptation */
  .heritage-story {
    padding: 2rem 1rem 1.75rem !important;
  }
  .story-inner {
    grid-template-columns: 1fr !important;
    gap: 1.5rem !important;
  }
  .story-mosaic {
    grid-template-rows: 150px 110px !important;
  }

  /* Full Collection Explorer & Search Mobile Adaptation */
  .explorer-section {
    padding: 0 1rem !important;
    margin: 1.25rem auto 1.75rem !important;
  }
  .explorer-head {
    text-align: left !important;
    margin-bottom: 1.25rem !important;
  }
  .explorer-head .section-subheading {
    display: none !important;
  }
  #monument-search-container {
    flex-direction: column !important;
    padding: 0.85rem !important;
    gap: 0.65rem !important;
  }
  .search-bar-luxury {
    background: var(--navy-card) !important;
    border: 1px solid var(--navy-border) !important;
    border-radius: 16px !important;
    padding: 0.85rem !important;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.35) !important;
    gap: 0.65rem !important;
    margin-bottom: 1.25rem !important;
  }
  .search-input-wrap {
    width: 100% !important;
    min-width: 100% !important;
  }
  .search-input-wrap input {
    font-size: 0.9rem !important;
    padding: 0.75rem 2.4rem 0.75rem 2.6rem !important;
    border-radius: 10px !important;
    background: rgba(5, 10, 20, 0.6) !important;
  }
  .search-filters-row {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 0.5rem !important;
    width: 100% !important;
  }
  .custom-select-wrap {
    width: 100% !important;
    min-width: 0 !important;
  }
  .custom-select-wrap select {
    width: 100% !important;
    font-size: 0.82rem !important;
    padding: 0.75rem 1.6rem 0.75rem 2.2rem !important;
    border-radius: 10px !important;
    background: rgba(5, 10, 20, 0.6) !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
  }
  .select-lead-icon {
    left: 0.7rem !important;
    font-size: 0.78rem !important;
  }
  .select-chevron {
    right: 0.7rem !important;
    font-size: 0.68rem !important;
  }

  /* Mobile Itinerary Bar */
  .itinerary-bar-luxury {
    flex-direction: column !important;
    height: auto !important;
    padding: 0.85rem !important;
    border-radius: 16px !important;
    gap: 0.65rem !important;
    background: var(--navy-card) !important;
  }
  .itinerary-bar-head {
    border-right: none !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
    padding: 0 0 0.5rem 0 !important;
    width: 100% !important;
    justify-content: center !important;
  }
  .itinerary-filters-row {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 0.5rem !important;
    width: 100% !important;
  }
  .itinerary-filters-row .custom-select-wrap {
    border-right: none !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    border-radius: 10px !important;
    background: rgba(5, 10, 20, 0.6) !important;
  }
  .itinerary-filters-row .custom-select-wrap select {
    padding: 0.75rem 1.6rem 0.75rem 2.2rem !important;
    font-size: 0.82rem !important;
  }
  .btn-calculate-luxury {
    width: 100% !important;
    justify-content: center !important;
    margin: 0.25rem 0 0 0 !important;
    height: 42px !important;
    font-size: 0.9rem !important;
  }

  /* User Directive: On mobile view, HIDE category tabs & sort - ONLY search bar + State and City */
  .pills-container, #category-pills, .sort-filter-wrap, .btn-reset-filters {
    display: none !important;
  }
  .filter-status-luxury {
    display: none !important;
  }

  /* Clean App-Style Nearby Cards on Mobile */
  #nearby-grid {
    grid-template-columns: 1fr !important;
    gap: 1.25rem !important;
    width: 100% !important;
  }

  /* Single-line swipeable slider for monuments-grid on mobile */
  #monuments-grid.monument-slider-track {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    overflow-x: auto !important;
    gap: 1rem !important;
    padding: 0.5rem 0.25rem 1rem !important;
    -webkit-overflow-scrolling: touch !important;
  }
  #monuments-grid .card.monument-card-item {
    flex: 0 0 82vw !important;
    width: 82vw !important;
    min-width: 82vw !important;
    max-width: 320px !important;
    border-radius: 16px !important;
    background: var(--navy-card) !important;
    border: 1px solid var(--navy-border) !important;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.35) !important;
  }
  .monuments-slider-btn {
    display: none !important; /* On mobile touch, users swipe natively */
  }
  .card-img-wrapper {
    height: 205px !important;
  }
  .badge-era-luxury {
    display: none !important;
  }
  .card-body {
    padding: 1.1rem 1.15rem !important;
  }
  .card-title {
    font-size: 1.18rem !important;
    line-height: 1.3 !important;
    margin-bottom: 0.35rem !important;
  }
  .card-snippet {
    font-size: 0.82rem !important;
    line-height: 1.5 !important;
    margin-bottom: 0.65rem !important;
  }
  .card-meta-row {
    margin-bottom: 0.75rem !important;
  }
  .card-footer {
    padding-top: 0.75rem !important;
    font-size: 0.82rem !important;
  }

  /* Map Container */
  #leaflet-map {
    height: 380px !important;
  }

  /* Quizzes Grid */
  .view-section div[style*="grid-template-columns:1.5fr 1fr"],
  .view-section div[style*="grid-template-columns: 1.5fr 1fr"] {
    grid-template-columns: 1fr !important;
  }

  /* Modal Drawer Bottom Sheet */
  .drawer-overlay {
    padding: 0 !important;
    align-items: flex-end !important;
  }
  .drawer-content {
    border-radius: 20px 20px 0 0 !important;
    max-height: 88dvh !important;
    width: 100% !important;
  }
  .drawer-hero {
    height: 200px !important;
  }
  .drawer-body {
    padding: 1.25rem 1rem 2rem !important;
  }
  .hero-floating-actions {
    bottom: 0.65rem !important;
    right: 0.65rem !important;
    left: 0.65rem !important;
    justify-content: space-between !important;
  }
  .hero-action-pill {
    padding: 0.45rem 0.85rem !important;
    font-size: 0.75rem !important;
  }
  .drawer-title-group {
    flex-direction: column !important;
    gap: 0.2rem !important;
  }
  #d-title {
    font-size: 1.5rem !important;
  }
  .drawer-title-hi {
    font-size: 0.9rem !important;
  }
  .drawer-header-row {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 0.75rem !important;
  }
  .btn-checkin-passport {
    width: 100% !important;
    justify-content: center !important;
  }
  .dossier-metrics-grid {
    grid-template-columns: 1fr 1fr !important;
    gap: 0.6rem !important;
  }
  .dossier-section-box {
    padding: 1rem !important;
  }
  .dossier-nav-tabs {
    padding-bottom: 0.5rem !important;
    margin-bottom: 1.25rem !important;
  }
  .dossier-tab-btn {
    padding: 0.5rem 0.85rem !important;
    font-size: 0.78rem !important;
  }
  .ai-inspector-box {
    padding: 1rem !important;
  }
  .camera-actions-bar {
    padding: 1rem 0.75rem !important;
  }
  .btn-snap-camera {
    width: 100% !important;
    justify-content: center !important;
    font-size: 0.88rem !important;
  }
  .scanner-img-wrap {
    height: 200px !important;
  }
  .ai-q-input-row {
    flex-direction: column !important;
  }
  .ai-q-input-row button {
    width: 100% !important;
    justify-content: center !important;
  }

  /* Stats Bar Mobile Cards */
  .stat-item {
    padding: 0.85rem 0.5rem !important;
    text-align: center !important;
    border: none !important;
    background: rgba(255, 255, 255, 0.04) !important;
    border-radius: 14px !important;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2) !important;
  }
  .stat-value-group {
    justify-content: center !important;
  }

  /* Era Detail Modal Mobile Adaptation */
  #era-detail-modal {
    padding: 1rem 0.6rem !important;
  }
  .era-modal-card {
    margin: 0.5rem auto !important;
    padding: 1.25rem 1rem !important;
    border-radius: 16px !important;
    max-width: 100% !important;
  }
  .era-modal-grid-2 {
    grid-template-columns: 1fr !important;
    gap: 1rem !important;
  }
  .era-wiki-box {
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 0.75rem !important;
  }
  .era-wiki-box a {
    text-align: center !important;
    display: block !important;
    width: 100% !important;
  }
}

/* Extra Small Phones (<= 420px) */
@media (max-width: 420px) {
  .logo-tagline {
    display: none !important;
  }
  .hero-eyebrow {
    font-size: 0.72rem !important;
    padding: 0.35rem 0.8rem !important;
  }
  .stats-inner {
    grid-template-columns: 1fr !important;
  }
}

/* Era Modal Base Classes */
.era-modal-card {
  max-width: 850px;
  margin: 2rem auto;
  background: var(--navy-card);
  border: 1px solid var(--saffron);
  border-radius: 20px;
  padding: 2rem;
  box-shadow: 0 20px 60px rgba(0,0,0,0.8);
  position: relative;
}
.era-modal-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
  margin-bottom: 1.5rem;
}
.era-wiki-box {
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(232,146,26,0.08);
  padding: 1rem 1.25rem;
  border-radius: 12px;
  border: 1px solid rgba(232,146,26,0.25);
}

/* ==========================================================================
   AI "FEEL ALIVE" ENHANCEMENTS: TYPEWRITER, EXPANDABLE CITATIONS, VOICE INPUT
   ========================================================================== */

/* Typewriter Blinking Cursor */
.ai-typewriter-cursor {
  display: inline-block;
  width: 2px;
  height: 1.15em;
  background-color: var(--saffron, #E8921A);
  margin-left: 3px;
  vertical-align: -0.15em;
  animation: aiBlinkCursor 0.8s infinite cubic-bezier(0.4, 0, 0.6, 1);
  box-shadow: 0 0 6px var(--saffron, #E8921A);
}

@keyframes aiBlinkCursor {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

/* Expandable Source Citation Chips */
.ai-citations-container {
  margin-top: 0.85rem;
  padding-top: 0.75rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  animation: fadeInCitations 0.4s ease-out;
}

@keyframes fadeInCitations {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

.ai-citations-header {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted, #94A3B8);
  display: flex;
  align-items: center;
  gap: 0.35rem;
  margin-bottom: 0.2rem;
}

.ai-citation-pills-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.ai-citation-pill {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 18px;
  padding: 0.25rem 0.7rem;
  font-size: 0.75rem;
  color: #E2E8F0;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  text-align: left;
  user-select: none;
}

.ai-citation-pill:hover {
  background: rgba(232, 146, 26, 0.15);
  border-color: var(--saffron, #E8921A);
  color: #fff;
  transform: translateY(-1px);
}

.ai-citation-pill.active {
  background: rgba(232, 146, 26, 0.22);
  border-color: var(--saffron, #E8921A);
  color: #fff;
  box-shadow: 0 0 10px rgba(232, 146, 26, 0.3);
}

.ai-citation-pill .pill-badge {
  font-size: 0.7rem;
  font-weight: 700;
  padding: 0.15rem 0.4rem;
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.3);
  color: var(--saffron, #E8921A);
}

.ai-citation-pill.unesco .pill-badge { color: #60A5FA; }
.ai-citation-pill.epigraphy .pill-badge { color: #34D399; }
.ai-citation-pill.manuscript .pill-badge { color: #FBBF24; }

.ai-citation-pill .pill-arrow {
  font-size: 0.65rem;
  transition: transform 0.2s;
  color: var(--text-muted, #94A3B8);
}

.ai-citation-pill.active .pill-arrow {
  transform: rotate(180deg);
  color: var(--saffron, #E8921A);
}

.ai-citation-drawer {
  background: rgba(10, 20, 36, 0.85);
  border: 1px solid rgba(232, 146, 26, 0.35);
  border-radius: 10px;
  padding: 0.65rem 0.85rem;
  font-size: 0.78rem;
  color: #CBD5E1;
  line-height: 1.45;
  animation: expandDrawer 0.2s ease-out;
  margin-top: 0.2rem;
}

@keyframes expandDrawer {
  from { opacity: 0; max-height: 0; }
  to { opacity: 1; max-height: 200px; }
}

/* Voice Input Microphone Button & Pulsing States */
.ai-mic-btn {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: var(--text-muted, #94A3B8);
  border-radius: 10px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
}

.ai-mic-btn:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.3);
}

.ai-mic-btn.active-listening {
  background: rgba(239, 68, 68, 0.25) !important;
  border-color: #EF4444 !important;
  color: #EF4444 !important;
  animation: micPulseGlow 1.3s infinite cubic-bezier(0.4, 0, 0.6, 1);
}

@keyframes micPulseGlow {
  0% {
    box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.7);
    transform: scale(1);
  }
  50% {
    box-shadow: 0 0 0 8px rgba(239, 68, 68, 0);
    transform: scale(1.06);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(239, 68, 68, 0);
    transform: scale(1);
  }
}

.ai-mic-recording-indicator {
  display: none;
  font-size: 0.75rem;
  color: #EF4444;
  font-weight: 600;
  align-items: center;
  gap: 0.35rem;
  padding: 0.2rem 0.6rem;
  background: rgba(239, 68, 68, 0.1);
  border-radius: 12px;
  border: 1px solid rgba(239, 68, 68, 0.3);
}

.ai-mic-recording-indicator.active {
  display: inline-flex;
}

/* ==========================================================================
   INTERACTIVE MAP UPGRADES: CLUSTERING, HEATMAP DENSITY & FLIGHT PATHS
   ========================================================================== */

/* Map Layer & Mode Control Toolbar */
.map-toolbar-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem;
  background: var(--navy-card, #0F1C2E);
  border: 1px solid var(--navy-border, rgba(255,255,255,0.1));
  border-radius: 14px;
  padding: 0.85rem 1.25rem;
  margin-bottom: 1rem;
  box-shadow: 0 4px 16px rgba(0,0,0,0.3);
}

.map-mode-pills {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.map-mode-pill {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--text-muted, #94A3B8);
  padding: 0.4rem 0.9rem;
  border-radius: 20px;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.map-mode-pill:hover {
  background: rgba(232, 146, 26, 0.15);
  color: #fff;
  border-color: var(--saffron, #E8921A);
}

.map-mode-pill.active {
  background: var(--saffron, #E8921A);
  color: #fff;
  border-color: var(--saffron, #E8921A);
  box-shadow: 0 0 12px rgba(232, 146, 26, 0.4);
}

/* Custom Marker Cluster Pin Styles */
.custom-cluster-marker {
  background: transparent;
  border: none;
}

.cluster-circle {
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 800;
  font-family: var(--sans, 'Plus Jakarta Sans', sans-serif);
  box-shadow: 0 4px 14px rgba(0,0,0,0.6);
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.cluster-circle:hover {
  transform: scale(1.15);
}

.cluster-small {
  width: 36px;
  height: 36px;
  background: radial-gradient(circle, #E8921A, #B5451B);
  border: 2px solid rgba(255, 255, 255, 0.8);
  font-size: 0.82rem;
}

.cluster-medium {
  width: 44px;
  height: 44px;
  background: radial-gradient(circle, #F59E0B, #D97706);
  border: 2px solid rgba(255, 255, 255, 0.9);
  font-size: 0.9rem;
}

.cluster-large {
  width: 52px;
  height: 52px;
  background: radial-gradient(circle, #EF4444, #991B1B);
  border: 3px solid rgba(255, 255, 255, 0.95);
  font-size: 0.98rem;
  animation: clusterPulse 2s infinite ease-in-out;
}

@keyframes clusterPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.6); }
  50% { box-shadow: 0 0 0 10px rgba(239, 68, 68, 0); }
}

/* Custom Leaflet Monument Pin */
.leaflet-custom-monument-pin {
  background: none;
  border: none;
}

.monument-pin-inner {
  width: 34px;
  height: 34px;
  background: linear-gradient(135deg, var(--saffron, #E8921A), #B5451B);
  border: 2px solid #fff;
  border-radius: 50% 50% 50% 0;
  transform: rotate(-45deg);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.monument-pin-inner:hover {
  transform: rotate(-45deg) scale(1.2);
  background: linear-gradient(135deg, #10B981, #047857);
}

.monument-pin-inner i {
  transform: rotate(45deg);
  color: #fff;
  font-size: 0.82rem;
}

/* Animated Flight Path Flow Lines */
.flight-path-glow {
  stroke: #60A5FA;
  stroke-width: 3;
  stroke-linecap: round;
  stroke-dasharray: 8, 12;
  animation: flightFlowAnim 1.4s linear infinite;
  filter: drop-shadow(0 0 6px #3B82F6);
}

@keyframes flightFlowAnim {
  from {
    stroke-dashoffset: 40;
  }
  to {
    stroke-dashoffset: 0;
  }
}

.flight-marker-plane {
  font-size: 1.1rem;
  color: #F59E0B;
  filter: drop-shadow(0 0 8px rgba(245, 158, 11, 0.9));
  animation: planeFloat 1.2s infinite ease-in-out alternate;
}

@keyframes planeFloat {
  from { transform: translateY(0px) rotate(0deg); }
  to { transform: translateY(-3px) rotate(3deg); }
}

/* Heatmap Legend Overlay */
.heatmap-legend-card {
  position: absolute;
  bottom: 24px;
  left: 20px;
  z-index: 1000;
  background: rgba(10, 20, 36, 0.92);
  backdrop-filter: blur(10px);
  border: 1px solid var(--navy-border, rgba(255,255,255,0.12));
  border-radius: 12px;
  padding: 0.65rem 0.95rem;
  font-size: 0.75rem;
  color: #E2E8F0;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
  pointer-events: auto;
}

.heatmap-gradient-bar {
  height: 8px;
  width: 140px;
  border-radius: 4px;
  background: linear-gradient(to right, #3B82F6, #10B981, #F59E0B, #EF4444);
  margin: 0.35rem 0;
}

/* ============================================================
   GLASSMORPHISM & FROSTED GLASS FOR AI ANSWER BOXES
   ============================================================ */
.ai-glass-container,
#ai-chat-messages,
.ai-answer-box,
.ai-response-box,
.ai-universal-messages-area,
#monument-ai-answer-box {
  background: rgba(10, 18, 35, 0.72) !important;
  backdrop-filter: blur(24px) saturate(180%) !important;
  -webkit-backdrop-filter: blur(24px) saturate(180%) !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  border-radius: 18px !important;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.5), inset 0 1px 1px rgba(255, 255, 255, 0.12) !important;
}

/* AI Answer Bubble with Frosted Glass & Saffron/Emerald Accents */
.ai-bubble-frosted,
.ai-widget-msg.bot,
.ai-chat-bot-response {
  background: rgba(18, 30, 53, 0.68) !important;
  backdrop-filter: blur(16px) saturate(180%) !important;
  -webkit-backdrop-filter: blur(16px) saturate(180%) !important;
  border: 1px solid rgba(16, 185, 129, 0.32) !important;
  border-left: 4px solid var(--emerald, #10B981) !important;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.08) !important;
  border-radius: 16px !important;
  color: #F8FAFC !important;
}

.ai-bubble-user,
.ai-widget-msg.user {
  background: linear-gradient(135deg, rgba(232, 146, 26, 0.28), rgba(181, 69, 27, 0.35)) !important;
  backdrop-filter: blur(14px) !important;
  -webkit-backdrop-filter: blur(14px) !important;
  border: 1px solid rgba(232, 146, 26, 0.5) !important;
  box-shadow: 0 6px 20px rgba(232, 146, 26, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.15) !important;
  border-radius: 14px !important;
}

/* ============================================================
   SKELETON LOADERS (While /api/v1/monuments loads)
   ============================================================ */
.skeleton-card {
  flex: 0 0 320px;
  width: 320px;
  min-width: 320px;
  scroll-snap-align: start;
  background: rgba(13, 20, 36, 0.7) !important;
  backdrop-filter: blur(16px) !important;
  -webkit-backdrop-filter: blur(16px) !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  border-radius: 20px !important;
  overflow: hidden !important;
  position: relative;
  display: flex;
  flex-direction: column;
  box-shadow: 0 10px 30px -4px rgba(0, 0, 0, 0.45) !important;
  pointer-events: none;
  user-select: none;
}

.skeleton-shimmer {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(255, 255, 255, 0.04) 35%,
    rgba(255, 255, 255, 0.12) 50%,
    rgba(255, 255, 255, 0.04) 65%,
    transparent 100%
  );
  transform: translateX(-100%);
  animation: skeletonShimmerWave 1.8s cubic-bezier(0.4, 0, 0.2, 1) infinite;
  z-index: 6;
  pointer-events: none;
}

@keyframes skeletonShimmerWave {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

.skeleton-img-box {
  height: 230px;
  background: rgba(255, 255, 255, 0.04);
  position: relative;
  overflow: hidden;
}

.skeleton-badge-row {
  position: absolute;
  top: 14px;
  left: 14px;
  right: 14px;
  display: flex;
  justify-content: space-between;
  z-index: 2;
}

.skeleton-pill {
  background: rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  height: 24px;
}

.skeleton-pill-sm { width: 70px; }
.skeleton-pill-md { width: 95px; }
.skeleton-pill-lg { width: 110px; }

.skeleton-body {
  padding: 1.25rem 1.4rem;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  flex: 1;
}

.skeleton-header-line {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.skeleton-line {
  height: 14px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.07);
}

.skeleton-title {
  height: 22px;
  width: 78%;
  background: rgba(255, 255, 255, 0.1);
  margin-top: 0.2rem;
}

.skeleton-desc-1 { width: 100%; height: 12px; }
.skeleton-desc-2 { width: 85%; height: 12px; }

.skeleton-footer-line {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: auto;
  padding-top: 0.75rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.skeleton-circle {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
}

/* Card loaded entrance animation */
.monument-card-item.loaded {
  animation: monumentCardEntrance 0.45s cubic-bezier(0.16, 1, 0.3, 1) backwards;
}

@keyframes monumentCardEntrance {
  from {
    opacity: 0;
    transform: translateY(12px) scale(0.97);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* ============================================================
   PWA OFFLINE MODE & PUSH NOTIFICATIONS
   ============================================================ */
.offline-status-bar {
  background: linear-gradient(90deg, #1E3A8A 0%, #0F172A 50%, #78350F 100%);
  color: #F8FAFC;
  font-size: 0.82rem;
  padding: 0.45rem 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-bottom: 1px solid rgba(245, 158, 11, 0.4);
  position: relative;
  z-index: 10000;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
  animation: slideDownOffline 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes slideDownOffline {
  from { transform: translateY(-100%); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

.offline-dot-pulse {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #F59E0B;
  box-shadow: 0 0 8px #F59E0B;
  animation: dotPulse 1.2s infinite ease-in-out;
  flex-shrink: 0;
}

@keyframes dotPulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.4); opacity: 0.55; }
}

.pwa-offline-btn {
  background: rgba(232, 146, 26, 0.12);
  border: 1px solid rgba(232, 146, 26, 0.45);
  color: var(--saffron);
  padding: 0.4rem 0.8rem;
  border-radius: 20px;
  font-size: 0.76rem;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.pwa-offline-btn:hover {
  background: var(--saffron);
  color: #fff;
  border-color: var(--saffron);
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(232, 146, 26, 0.35);
}

@media (max-width: 640px) {
  .hide-mobile-sm {
    display: none !important;
  }
}





/* ==========================================================================
   HISTURICA DYNAMIC THEME SYSTEM & DESIGN PRESETS
   ========================================================================== */

/* 1. Midnight Luxury (Default: Obsidian Gold & Royal Indigo) */
:root, [data-theme="midnight_luxury"] {
  --deep-navy:    #060D1F;
  --navy-surface: #0F1C2E;
  --navy-card:    #122034;
  --navy-border:  rgba(255,255,255,0.08);
  --saffron:      #E8921A;
  --saffron-lt:   #F5A833;
  --gold:         #C8960C;
  --text-main:    #EDE8E0;
  --text-muted:   #8A97A8;
  --card-radius:  16px;
  --btn-radius:   8px;
}

/* 2. Sandstone Heritage (Warm Rajasthani Terracotta & Amber) */
[data-theme="sandstone_heritage"] {
  --deep-navy:    #1C120C;
  --navy-surface: #2A1B14;
  --navy-card:    #35241C;
  --navy-border:  rgba(224, 134, 76, 0.16);
  --saffron:      #E06D28;
  --saffron-lt:   #F08B48;
  --gold:         #D49B35;
  --text-main:    #F7ECE1;
  --text-muted:   #B8A294;
  --card-radius:  14px;
  --btn-radius:   8px;
}

/* 3. Archival Ivory (Crisp Editorial Parchment & Warm Stone) */
[data-theme="archival_ivory"] {
  --deep-navy:    #F8F5F0;
  --navy-surface: #EFE9DE;
  --navy-card:    #FFFFFF;
  --navy-border:  rgba(44, 34, 25, 0.12);
  --saffron:      #A85514;
  --saffron-lt:   #C46E28;
  --gold:         #8F6317;
  --text-main:    #211B15;
  --text-muted:   #5C534A;
  --card-radius:  12px;
  --btn-radius:   6px;
}
[data-theme="archival_ivory"] .site-header {
  background: rgba(248, 245, 240, 0.95);
  border-bottom: 1px solid rgba(44, 34, 25, 0.12);
}
[data-theme="archival_ivory"] .nav-link, 
[data-theme="archival_ivory"] .top-nav-link {
  color: #3B3026;
}
[data-theme="archival_ivory"] .site-header.scrolled {
  background: rgba(248, 245, 240, 0.98);
}
[data-theme="archival_ivory"] input, 
[data-theme="archival_ivory"] select, 
[data-theme="archival_ivory"] textarea {
  color: #211B15 !important;
  background: #FFFFFF !important;
  border-color: rgba(44, 34, 25, 0.2) !important;
}

/* 4. Vedic Emerald (Ancient Forest Jade & Temple Gold) */
[data-theme="vedic_emerald"] {
  --deep-navy:    #061712;
  --navy-surface: #0C231C;
  --navy-card:    #112E25;
  --navy-border:  rgba(46, 180, 110, 0.14);
  --saffron:      #10B981;
  --saffron-lt:   #34D399;
  --gold:         #D97706;
  --text-main:    #E6F4EA;
  --text-muted:   #8FAFA1;
  --card-radius:  16px;
  --btn-radius:   10px;
}

/* Typography Font Presets */
body.font-editorial {
  --serif: 'Playfair Display', Georgia, serif;
}
body.font-scholarly {
  --serif: 'Cinzel', 'Cormorant Garamond', serif;
}
body.font-modern {
  --serif: 'Plus Jakarta Sans', sans-serif;
  font-family: var(--sans);
}

/* Card Geometry Variants */
body.geom-luxury .monument-card,
body.geom-luxury .tour-card,
body.geom-luxury .admin-card {
  border-radius: 20px !important;
}
body.geom-sleek .monument-card,
body.geom-sleek .tour-card,
body.geom-sleek .admin-card {
  border-radius: 10px !important;
}
body.geom-sharp .monument-card,
body.geom-sharp .tour-card,
body.geom-sharp .admin-card {
  border-radius: 2px !important;
}

/* ==========================================================================
   TOURS & PACKAGES COMMERCIAL PORTAL STYLING
   ========================================================================== */
.tours-hero {
  position: relative;
  padding: 8rem 2rem 4rem;
  background: linear-gradient(180deg, rgba(6,13,31,0.92) 0%, var(--deep-navy) 100%), url('https://images.unsplash.com/photo-1548013146-72479768bada?w=1600&auto=format&fit=crop&q=80') center/cover no-repeat;
  text-align: center;
  border-bottom: 1px solid var(--navy-border);
}
.tours-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(232,146,26,0.15);
  border: 1px solid var(--saffron);
  color: var(--saffron);
  padding: 0.35rem 1rem;
  border-radius: 20px;
  font-size: 0.82rem;
  font-weight: 700;
  margin-bottom: 1.25rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}
.tours-title {
  font-family: var(--serif);
  font-size: clamp(2.2rem, 5vw, 3.8rem);
  line-height: 1.15;
  color: #fff;
  margin-bottom: 1rem;
}
.tours-title span {
  color: var(--saffron);
}
.tours-subtitle {
  color: var(--text-muted);
  max-width: 680px;
  margin: 0 auto 2.5rem;
  font-size: 1.05rem;
}

.tours-search-bar {
  max-width: 900px;
  margin: 0 auto;
  background: var(--navy-card);
  border: 1px solid var(--navy-border);
  border-radius: 16px;
  padding: 1rem 1.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: flex-end;
  box-shadow: 0 12px 36px rgba(0,0,0,0.4);
}
.search-field {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  text-align: left;
  flex: 1 1 160px;
  min-width: 160px;
}
.search-field label {
  font-size: 0.72rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-weight: 700;
}
.search-field select, .search-field input {
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--navy-border);
  color: var(--text-main);
  padding: 0.55rem 0.8rem;
  border-radius: 8px;
  font-size: 0.85rem;
}

.tours-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 2rem;
  max-width: var(--max-w);
  margin: 3rem auto;
  padding: 0 1.5rem;
}
.tour-card {
  background: var(--navy-card);
  border: 1px solid var(--navy-border);
  border-radius: var(--card-radius, 16px);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s ease, border-color 0.3s ease;
  position: relative;
}
.tour-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 36px rgba(0,0,0,0.5);
  border-color: var(--saffron);
}
.tour-card-badge {
  position: absolute;
  top: 1rem;
  left: 1rem;
  background: var(--saffron);
  color: #fff;
  padding: 0.3rem 0.75rem;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 700;
  z-index: 2;
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}
.tour-card-curator {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: rgba(6,13,31,0.85);
  backdrop-filter: blur(8px);
  color: #EDE8E0;
  border: 1px solid rgba(255,255,255,0.15);
  padding: 0.25rem 0.65rem;
  border-radius: 20px;
  font-size: 0.72rem;
  font-weight: 600;
  z-index: 2;
}
.tour-img-wrap {
  height: 170px;
  position: relative;
  overflow: hidden;
}
.tour-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}
.tour-card:hover .tour-img-wrap img {
  transform: scale(1.06);
}
.tour-card-body {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.tour-meta {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
}
.tour-meta span {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}
.tour-title {
  font-family: var(--serif);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 0.5rem;
  line-height: 1.3;
}
.tour-desc {
  font-size: 0.86rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: 1rem;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}
.tour-monuments-tagwrap {
  display: flex;
  flex-wrap: nowrap;
  overflow: hidden;
  gap: 0.4rem;
  margin-bottom: 1rem;
}
.tour-monument-tag {
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--navy-border);
  color: var(--saffron-lt);
  padding: 0.2rem 0.55rem;
  border-radius: 6px;
  font-size: 0.74rem;
  white-space: nowrap;
  flex-shrink: 0;
}
.tour-monument-tag-more {
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--navy-border);
  color: var(--text-muted);
  padding: 0.2rem 0.55rem;
  border-radius: 6px;
  font-size: 0.74rem;
  white-space: nowrap;
  flex-shrink: 0;
}
.tour-card-footer {
  border-top: 1px solid var(--navy-border);
  padding-top: 1rem;
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.tour-price-box {
  display: flex;
  flex-direction: column;
}
.tour-price-lbl {
  font-size: 0.7rem;
  text-transform: uppercase;
  color: var(--text-muted);
}
.tour-price-val {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--saffron);
}
.tour-price-sub {
  font-size: 0.76rem;
  color: var(--text-muted);
}

.btn-book-tour {
  background: var(--saffron);
  color: #fff;
  border: none;
  padding: 0.65rem 1.2rem;
  border-radius: 8px;
  font-weight: 700;
  font-size: 0.88rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: all 0.2s ease;
}
.btn-book-tour:hover {
  background: var(--saffron-lt);
  transform: translateY(-2px);
  box-shadow: 0 4px 14px rgba(232,146,26,0.4);
}

/* Tour Detail & Inquiry Modal */
.tour-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(6,13,31,0.85);
  backdrop-filter: blur(8px);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}
.tour-modal-backdrop.active {
  opacity: 1;
  pointer-events: auto;
}
.tour-modal-card {
  background: var(--navy-card);
  border: 1px solid var(--navy-border);
  border-radius: 20px;
  width: 100%;
  max-width: 820px;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  box-shadow: 0 24px 64px rgba(0,0,0,0.6);
  padding: 2.25rem;
  color: var(--text-main);
}
.tour-modal-close {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  background: rgba(255,255,255,0.06);
  border: 1px solid var(--navy-border);
  color: #fff;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

/* Bespoke Card Curation Badge */
.tour-curation-badge {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}
.tour-curation-tag {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--saffron);
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}
.tour-curation-sub {
  font-size: 0.74rem;
  color: var(--text-muted);
}

/* Bespoke Travel Planner Section (#plan-journey) */
.plan-journey-section {
  padding: 5rem 1.5rem;
  background: linear-gradient(180deg, rgba(10, 17, 32, 0.4) 0%, rgba(6, 11, 23, 0.95) 100%);
  border-top: 1px solid var(--navy-border);
  scroll-margin-top: 80px;
}
.plan-journey-container {
  max-width: var(--max-w);
  margin: 0 auto;
}
.plan-journey-header {
  text-align: center;
  max-width: 800px;
  margin: 0 auto 3rem;
}
.plan-journey-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(232, 146, 26, 0.12);
  border: 1px solid rgba(232, 146, 26, 0.3);
  color: var(--saffron);
  font-size: 0.8rem;
  font-weight: 700;
  padding: 0.35rem 0.9rem;
  border-radius: 30px;
  margin-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.plan-journey-title {
  font-family: var(--serif);
  font-size: clamp(2rem, 4vw, 2.75rem);
  color: #fff;
  line-height: 1.25;
  margin: 0 0 1rem;
}
.plan-journey-title span {
  color: var(--saffron);
  font-style: italic;
}
.plan-journey-desc {
  color: var(--text-muted);
  font-size: 0.98rem;
  line-height: 1.65;
  margin: 0;
}
.plan-journey-card {
  background: var(--navy-card);
  border: 1px solid rgba(232, 146, 26, 0.25);
  border-radius: 24px;
  padding: clamp(1.75rem, 3.5vw, 3rem);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
  position: relative;
  overflow: hidden;
}
.plan-journey-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--saffron), var(--emerald), var(--saffron));
}

.form-block {
  padding-bottom: 2.25rem;
  margin-bottom: 2.25rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}
.form-block:last-of-type {
  border-bottom: none;
  margin-bottom: 1.5rem;
  padding-bottom: 0;
}
.form-block-title {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
}
.form-block-title .step-num {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(232, 146, 26, 0.15);
  border: 1px solid var(--saffron);
  color: var(--saffron);
  font-weight: 800;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.form-block-title h3 {
  font-family: var(--serif);
  font-size: 1.35rem;
  color: #fff;
  margin: 0;
}
.form-block-title p {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin: 0.2rem 0 0;
}

.form-grid-2 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.25rem;
}
.form-grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.25rem;
}
.form-grid-4 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.25rem;
}

.form-group {
  display: flex;
  flex-direction: column;
}
.form-group label {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text-muted);
  margin-bottom: 0.45rem;
  display: flex;
  align-items: center;
  gap: 0.45rem;
}
.form-group label i {
  color: var(--saffron);
  font-size: 0.85rem;
}
.plan-input {
  width: 100%;
  padding: 0.75rem 1rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--navy-border);
  color: #fff;
  border-radius: 10px;
  font-family: var(--sans);
  font-size: 0.92rem;
  transition: all 0.2s ease;
  box-sizing: border-box;
}
.plan-input:focus {
  outline: none;
  border-color: var(--saffron);
  background: rgba(255, 255, 255, 0.07);
  box-shadow: 0 0 0 3px rgba(232, 146, 26, 0.15);
}
.plan-input option {
  background: #0d1728;
  color: #fff;
}

.checkbox-pill-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 0.75rem;
}
.check-pill {
  display: flex;
  align-items: center;
  padding: 0.75rem 1rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--navy-border);
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.2s ease;
  user-select: none;
}
.check-pill:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(232, 146, 26, 0.4);
}
.check-pill input[type="checkbox"] {
  accent-color: var(--saffron);
  margin-right: 0.75rem;
  width: 17px;
  height: 17px;
  cursor: pointer;
}
.check-pill span {
  font-size: 0.86rem;
  color: var(--text-main);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}
.check-pill span i {
  color: var(--saffron);
  font-size: 0.9rem;
}

.plan-journey-cta-box {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--navy-border);
  border-radius: 16px;
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  margin-top: 1.5rem;
}
.plan-guarantee-note {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}
.plan-guarantee-note strong {
  color: #fff;
  font-size: 0.95rem;
  display: block;
  margin-bottom: 0.2rem;
}
.plan-guarantee-note p {
  color: var(--text-muted);
  font-size: 0.84rem;
  margin: 0;
  line-height: 1.5;
}
.plan-submit-row {
  display: flex;
  justify-content: center;
}
.btn-submit-plan {
  background: linear-gradient(135deg, var(--saffron) 0%, #d47b0a 100%);
  color: #fff;
  border: none;
  padding: 1rem 2.5rem;
  border-radius: 12px;
  font-size: 1.05rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(232, 146, 26, 0.4);
  transition: all 0.25s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
}
.btn-submit-plan:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 32px rgba(232, 146, 26, 0.55);
}
.plan-status-message {
  margin-top: 1rem;
}

/* =========================================================================
   HOMEPAGE ENHANCEMENTS — added in the homepage redesign pass.
   Kept at the end of the file deliberately (per project decision to leave
   the rest of styles.css untouched rather than reorganize it) so these are
   easy to find, and easy to move into their own file later if/when the
   file finally does get split.
   ========================================================================= */

/* --- Collapsible heritage-story paragraphs --- */
.story-prose-collapsible {
  display: none;
}
.story-prose-collapsible.expanded {
  display: block;
  animation: storyFadeIn 0.4s ease;
}
@keyframes storyFadeIn {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: translateY(0); }
}
.story-expand-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: none;
  border: none;
  color: var(--saffron);
  font-weight: 700;
  font-size: 0.9rem;
  cursor: pointer;
  padding: 0.5rem 0;
  margin-top: 0.25rem;
}
.story-expand-toggle i { transition: transform 0.25s ease; font-size: 0.75rem; }
.story-expand-toggle.is-expanded i { transform: rotate(180deg); }

/* --- Time Compass: signature interactive hero feature --- */
.time-compass {
  max-width: 1200px;
  margin: -2.5rem auto 3rem;
  padding: 0 1.25rem;
  position: relative;
  z-index: 5;
}
.tc-panel {
  background: var(--navy-card, #122034);
  border: 1px solid var(--navy-border, rgba(255,255,255,0.1));
  border-radius: 20px;
  padding: 1.75rem 2rem 1.5rem;
  box-shadow: 0 20px 50px rgba(0,0,0,0.45);
  transition: background 0.6s ease, border-color 0.6s ease;
}
.tc-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
}
.tc-heading .section-eyebrow { margin-bottom: 0.15rem; }
.tc-hint {
  font-size: 0.78rem;
  color: var(--text-muted);
}
.tc-display {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  margin-bottom: 1.5rem;
  min-height: 74px;
}
.tc-display-icon {
  font-size: 2.4rem;
  flex-shrink: 0;
  width: 64px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 16px;
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--navy-border, rgba(255,255,255,0.1));
  transition: transform 0.3s ease;
}
.tc-display-text h3 {
  font-family: var(--serif, serif);
  color: #fff;
  font-size: 1.35rem;
  margin: 0 0 0.15rem;
}
.tc-display-text .tc-period {
  font-size: 0.78rem;
  color: var(--saffron);
  font-weight: 700;
  letter-spacing: 0.02em;
  margin-bottom: 0.35rem;
}
.tc-display-text p {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin: 0;
  max-width: 560px;
}
.tc-track-wrap {
  position: relative;
  padding: 0 6px;
}
.tc-track-line {
  position: absolute;
  left: 6px;
  right: 6px;
  top: 50%;
  height: 3px;
  background: rgba(255,255,255,0.1);
  border-radius: 2px;
  transform: translateY(-50%);
}
.tc-track-fill {
  position: absolute;
  left: 6px;
  top: 50%;
  height: 3px;
  border-radius: 2px;
  transform: translateY(-50%);
  transition: width 0.4s ease, background 0.4s ease;
}
.tc-nodes {
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.tc-node {
  position: relative;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,0.25);
  background: var(--deep-navy, #060D1F);
  cursor: pointer;
  transition: transform 0.25s ease, border-color 0.25s ease, background 0.25s ease;
  flex-shrink: 0;
}
.tc-node:hover { transform: scale(1.2); }
.tc-node.active {
  transform: scale(1.35);
  background: var(--tc-node-color, var(--saffron));
  border-color: var(--tc-node-color, var(--saffron));
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--tc-node-color, var(--saffron)) 25%, transparent);
}
.tc-node-label {
  position: absolute;
  top: 28px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.65rem;
  color: var(--text-muted);
  white-space: nowrap;
  display: none;
}
.tc-node.active .tc-node-label {
  display: block;
  color: #fff;
  font-weight: 700;
}
.tc-cta {
  margin-top: 2rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--tc-node-color, var(--saffron));
  color: #1a1206;
  font-weight: 700;
  padding: 0.6rem 1.3rem;
  border-radius: 8px;
  font-size: 0.85rem;
  border: none;
  cursor: pointer;
  transition: background 0.4s ease, transform 0.15s ease;
}
.tc-cta:hover { transform: translateY(-1px); }

@media (max-width: 720px) {
  .time-compass { margin-top: -1.5rem; }
  .tc-panel { padding: 1.25rem 1.25rem 1.5rem; }
  .tc-display { gap: 0.85rem; }
  .tc-display-icon { width: 48px; height: 48px; font-size: 1.8rem; border-radius: 12px; }
  .tc-display-text h3 { font-size: 1.1rem; }
  .tc-node-label { font-size: 0.58rem; top: 24px; }
}

/* --- Feature teaser strip (Trails / Passport / AI) --- */
.three-ways-section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1rem 1.25rem 3.5rem;
}
.three-ways-head {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 2rem;
}
.feature-teasers {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}
.feature-teaser-card {
  background: var(--navy-card, #122034);
  border: 1px solid var(--navy-border, rgba(255,255,255,0.1));
  border-radius: 18px;
  padding: 1.75rem;
  cursor: pointer;
  transition: transform 0.25s ease, border-color 0.25s ease;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  position: relative;
  overflow: hidden;
}
.feature-teaser-card:hover {
  transform: translateY(-4px);
  border-color: var(--ft-accent, var(--saffron));
}
.feature-teaser-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top right, color-mix(in srgb, var(--ft-accent, var(--saffron)) 12%, transparent), transparent 60%);
  pointer-events: none;
}
.ft-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: color-mix(in srgb, var(--ft-accent, var(--saffron)) 18%, transparent);
  border: 1px solid var(--ft-accent, var(--saffron));
  color: var(--ft-accent, var(--saffron));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
}
.feature-teaser-card h3 {
  font-family: var(--serif, serif);
  color: #fff;
  font-size: 1.2rem;
  margin: 0;
}
.feature-teaser-card p {
  color: var(--text-muted);
  font-size: 0.85rem;
  margin: 0;
  line-height: 1.5;
}
.ft-link {
  margin-top: auto;
  color: var(--ft-accent, var(--saffron));
  font-size: 0.82rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

@media (max-width: 900px) {
  .feature-teasers { grid-template-columns: 1fr; }
}

/* --- Explore toggle (merged Era / Category sections) --- */
.explore-toggle-head {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 2rem;
}
.explore-toggle-switch {
  display: inline-flex;
  gap: 0.4rem;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--navy-border, rgba(255,255,255,0.1));
  border-radius: 12px;
  padding: 0.3rem;
  margin-top: 1.1rem;
}
.etw-btn {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-weight: 700;
  font-size: 0.85rem;
  padding: 0.55rem 1.1rem;
  border-radius: 9px;
  cursor: pointer;
  transition: background 0.25s ease, color 0.25s ease;
}
.etw-btn.active {
  background: var(--saffron);
  color: #1a1206;
}
.etw-btn:not(.active):hover {
  color: #fff;
  background: rgba(255,255,255,0.06);
}

/* =========================================================================
   TOURS PAGE — bridge between packages grid and custom planner, added when
   the two nav entries ("Tours & Packages" / "Plan Your Journey") were
   consolidated into one, since they were always the same physical page.
   ========================================================================= */
.tours-path-selector {
  display: flex;
  gap: 0.75rem;
  justify-content: center;
  margin-top: 1.75rem;
  flex-wrap: wrap;
}
.path-chip {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.65rem 1.3rem;
  border-radius: 30px;
  border: 1px solid var(--navy-border);
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 600;
  background: rgba(255,255,255,0.03);
  transition: border-color 0.2s ease, color 0.2s ease, background 0.2s ease;
}
.path-chip:hover { border-color: var(--saffron); color: #fff; }
.path-chip.active {
  background: rgba(232,146,26,0.12);
  border-color: var(--saffron);
  color: var(--saffron-lt, var(--saffron));
}

.tours-bridge {
  max-width: var(--max-w);
  margin: 3.5rem auto 1.5rem;
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  gap: 1.5rem;
}
.tours-bridge-line {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--navy-border), transparent);
}
.tours-bridge-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  text-decoration: none;
  white-space: nowrap;
  flex-shrink: 0;
  transition: transform 0.2s ease;
}
.tours-bridge-content:hover { transform: translateY(2px); }
.tours-bridge-kicker {
  font-size: 0.72rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 0.3rem;
}
.tours-bridge-title {
  font-family: var(--serif);
  font-size: 1.15rem;
  color: var(--saffron);
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.tours-bridge-title i { font-size: 0.85rem; animation: bridgeBounce 1.8s ease-in-out infinite; }
@keyframes bridgeBounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(4px); }
}

@media (max-width: 640px) {
  .tours-bridge { flex-direction: column; gap: 0.5rem; }
  .tours-bridge-line { display: none; }
}

/* --- OTP login profile completion: interest checkboxes styled as chips --- */
.interest-check-chip {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--navy-border);
  padding: 0.4rem 0.8rem;
  border-radius: 20px;
  font-size: 0.8rem;
  color: var(--text-muted);
  cursor: pointer;
  user-select: none;
}
.interest-check-chip:has(input:checked) {
  border-color: var(--saffron);
  color: var(--saffron-lt, var(--saffron));
  background: rgba(232,146,26,0.1);
}
.interest-check-chip input { accent-color: var(--saffron); }

/* ============================================================
   HISTURICA REFINEMENT PASS — EXISTING LAYOUT PRESERVED
   Purpose: improve clarity, consistency and usability without
   introducing new homepage sections or changing page structure.
   ============================================================ */

:root {
  --ui-radius-sm: 8px;
  --ui-radius-md: 12px;
  --ui-radius-lg: 16px;
  --ui-border-soft: rgba(255,255,255,0.09);
  --ui-surface-soft: rgba(255,255,255,0.035);
  --ui-content-measure: 74ch;
}

/* Keyboard and touch usability */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
[tabindex]:focus-visible {
  outline: 2px solid var(--saffron-lt);
  outline-offset: 3px;
}

button,
a,
select,
input {
  -webkit-tap-highlight-color: transparent;
}

/* Keep headings readable without changing the existing hierarchy. */
.section-heading {
  max-width: 18ch;
  text-wrap: balance;
}

.section-subheading {
  max-width: 68ch;
  text-wrap: pretty;
}

/* Existing monument cards: calmer interaction, same dimensions/layout. */
.card.monument-card-item {
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  box-shadow: 0 10px 28px rgba(0,0,0,0.28) !important;
}

.card.monument-card-item::before {
  display: none;
}

.card.monument-card-item:hover {
  transform: translateY(-5px);
  border-color: rgba(232,146,26,0.45) !important;
  box-shadow: 0 16px 34px rgba(0,0,0,0.38) !important;
}

.card.monument-card-item:hover .card-img {
  transform: scale(1.035);
}

.card-cta-arrow {
  transition: background .2s ease, color .2s ease, transform .2s ease;
}

/* Existing content views: establish a comfortable reading rhythm. */
.view-section > h1,
.view-section > h2,
.view-section > h3,
.view-section .page-title {
  text-wrap: balance;
}

.view-section p {
  text-wrap: pretty;
}

/* Long-form reading areas on connected pages. */
.blog-card p,
.article-content p,
.story-prose p,
.content-prose p {
  max-width: var(--ui-content-measure);
}

/* Existing cards get consistent internal rhythm without changing their grid. */
.blog-card,
.hub-card,
.auth-card,
.plan-journey-card,
.tour-card,
.admin-card {
  border-color: var(--ui-border-soft);
}

.blog-card:hover,
.hub-card:hover,
.tour-card:hover {
  border-color: rgba(232,146,26,0.32);
}

/* Buttons: make actions easier to scan and tap while preserving existing styles. */
.btn-primary-action,
.btn-outline-action,
.btn-book-tour,
.btn-submit-plan,
.btn-checkin-passport,
.btn-hero-primary,
.btn-hero-ghost {
  min-height: 42px;
}

/* Form controls on planner/login/admin pages. */
input:not([type="checkbox"]):not([type="radio"]),
select,
textarea {
  min-height: 42px;
}

/* Keep status/badge text from becoming visually dominant. */
.badge,
.card-meta-pill,
.card-rating-pill,
.tours-hero-badge,
.tour-card-badge,
.tour-card-curator {
  line-height: 1.2;
}

/* Maps: keep toolbars readable over the map without oversized controls. */
.map-toolbar-container,
.floating-time-slider-card {
  border-color: var(--ui-border-soft);
}

.map-mode-pill {
  min-height: 38px;
}

/* AI: retain the existing assistant UI, but keep supporting controls quiet. */
.ai-question-wrap,
.ai-inspector-box,
.ai-answer-box,
.ai-response-box {
  border-color: var(--ui-border-soft);
}

.ai-q-input-row input,
.ai-q-input-row button {
  min-height: 42px;
}

/* Passport: prioritize the actual visit record over decorative treatment. */
.passport-card,
.passport-stamp-card,
.passport-summary-card {
  border-color: var(--ui-border-soft);
}

/* Mobile: preserve the existing breakpoints, improve spacing/tap targets only. */
@media (max-width: 768px) {
  .section-eyebrow {
    margin-bottom: .7rem;
    letter-spacing: .11em;
  }

  .section-heading {
    max-width: 100%;
    font-size: clamp(1.8rem, 7vw, 2.35rem);
  }

  .section-subheading {
    font-size: .92rem;
    line-height: 1.65;
  }

  .top-nav-link,
  .mobile-nav-item,
  .mobile-tab-btn {
    min-height: 42px;
  }

  .mobile-nav-item {
    display: flex;
    align-items: center;
  }

  .blog-card,
  .hub-card,
  .tour-card,
  .admin-card {
    box-shadow: 0 8px 22px rgba(0,0,0,0.2);
  }

  .card.monument-card-item:hover,
  .blog-card:hover,
  .hub-card:hover,
  .tour-card:hover {
    transform: none;
  }

  .card.monument-card-item:hover .card-img {
    transform: none;
  }

  .card-cta-arrow {
    width: 30px;
    height: 30px;
  }
}

/* Users who prefer reduced motion should not receive decorative movement. */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}
