/* =============================================
       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: linear-gradient(135deg, var(--saffron), var(--terracotta));
      border-radius: 10px;
      display: flex; align-items: center; justify-content: center;
      font-size: 1.2rem; color: #fff; flex-shrink: 0;
    }
    .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); }

    /* =============================================
       HERO SECTION
    ============================================= */
    .hero {
      position: relative;
      height: 100svh; min-height: 600px;
      display: flex; align-items: center; justify-content: center;
      overflow: hidden;
    }
    .hero-bg {
      position: absolute; inset: 0;
      background: url('https://upload.wikimedia.org/wikipedia/commons/1/1d/Taj_Mahal_%28Edited%29.jpeg') center/cover no-repeat;
    }
    .hero-bg-local {
      position: absolute; inset: 0; z-index: 1;
      background: url('/img/cache/taj-mahal.jpg') center/cover no-repeat;
    }
    .hero-gradient {
      position: absolute; inset: 0; z-index: 2;
      background: linear-gradient(to top, #060D1F 0%, rgba(6,13,31,0.6) 45%, rgba(6,13,31,0.2) 100%);
    }
    .hero-content {
      position: relative; z-index: 3;
      text-align: center; padding: 0 1.5rem; max-width: 860px;
      animation: heroFadeUp 1.2s ease both;
    }
    @keyframes heroFadeUp {
      from { opacity:0; transform: translateY(30px); }
      to   { opacity:1; transform: translateY(0); }
    }
    .hero-eyebrow {
      display: inline-flex; align-items: center; gap: 0.5rem;
      background: rgba(232,146,26,0.12); border: 1px solid rgba(232,146,26,0.4);
      color: var(--saffron-lt); padding: 0.4rem 1.1rem;
      border-radius: 30px; font-size: 0.8rem; font-weight: 700;
      text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 1.5rem;
    }
    .hero-headline {
      font-family: var(--serif);
      font-size: clamp(2.8rem, 6vw, 5.5rem);
      font-weight: 700; line-height: 1.08; color: #fff;
      margin-bottom: 1.25rem; letter-spacing: -0.01em;
    }
    .hero-headline span { color: var(--saffron-lt); font-style: italic; }
    .hero-sub {
      font-size: clamp(1rem, 1.8vw, 1.2rem); color: rgba(255,255,255,0.68);
      max-width: 600px; margin: 0 auto 2.5rem; line-height: 1.7;
    }
    .hero-ctas { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }
    .btn-hero-primary {
      background: linear-gradient(135deg, var(--saffron), var(--terracotta));
      color: #fff; border: none; padding: 0.95rem 2.2rem; border-radius: 50px;
      font-size: 1rem; font-weight: 700; letter-spacing: 0.02em;
      transition: transform 0.2s, box-shadow 0.2s;
      box-shadow: 0 8px 24px rgba(232,146,26,0.35);
      display: flex; align-items: center; gap: 0.5rem;
    }
    .btn-hero-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 32px rgba(232,146,26,0.5); }
    .btn-hero-ghost {
      background: rgba(255,255,255,0.08); color: #fff;
      border: 1px solid rgba(255,255,255,0.25); padding: 0.95rem 2.2rem;
      border-radius: 50px; font-size: 1rem; font-weight: 600;
      transition: background 0.2s, border-color 0.2s;
      display: flex; align-items: center; gap: 0.5rem;
      backdrop-filter: blur(8px);
    }
    .btn-hero-ghost:hover { background: rgba(255,255,255,0.15); border-color: rgba(255,255,255,0.4); }
    .hero-scroll {
      position: absolute; bottom: 2.5rem; left: 50%; transform: translateX(-50%);
      z-index: 3; display: flex; flex-direction: column; align-items: center; gap: 0.4rem;
      opacity: 0.55; animation: scrollBounce 2.2s ease-in-out infinite;
    }
    .hero-scroll span { font-size: 0.7rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.14em; }
    @keyframes scrollBounce {
      0%,100% { transform: translateX(-50%) translateY(0); }
      50%      { transform: translateX(-50%) translateY(8px); }
    }

    /* =============================================
       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;
    }

    /* =============================================
       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: 5rem 2rem; 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: 4rem; align-items: start;
    }
    .story-left-col, .story-right-col {
      display: flex;
      flex-direction: column;
    }
    .story-prose p {
      color: rgba(237,232,224,0.78);
      font-size: 1rem;
      line-height: 1.88;
      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;
    }

    /* =============================================
       ERA TIMELINE
    ============================================= */
    .era-section {
      padding: 5rem 2rem; background: var(--navy-surface);
      border-top: 1px solid var(--navy-border);
    }
    .era-section-head { max-width: var(--max-w); margin: 0 auto 2.5rem; }
    .era-scroll-wrap {
      max-width: var(--max-w); margin: 0 auto; overflow-x: auto; padding-bottom: 1rem;
      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.4rem 1.2rem;
      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: 5rem 2rem; background: var(--deep-navy); }
    .category-head { max-width: var(--max-w); margin: 0 auto 2.5rem; }
    .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 {
      padding: 5rem 2rem; background: var(--navy-surface); border-top: 1px solid var(--navy-border);
    }
    .explorer-head { max-width: var(--max-w); margin: 0 auto 2rem; }
    .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-section {
      max-width: var(--max-w);
      margin: 3.5rem auto;
      padding: 0 1.5rem;
    }
    .explorer-head {
      text-align: center;
      margin-bottom: 2.25rem;
    }
    .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
    ============================================= */
    #monuments-grid, .monument-grid {
      max-width: var(--max-w);
      margin: 0 auto;
      display: grid;
      grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
      gap: 1.75rem;
      width: 100%;
    }
    .card.monument-card-item {
      background: linear-gradient(180deg, #121c32 0%, #0a1120 100%);
      border: 1px solid rgba(255, 255, 255, 0.08);
      border-radius: 20px;
      overflow: hidden;
      cursor: pointer;
      transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
      display: flex;
      flex-direction: column;
      position: relative;
      box-shadow: 0 10px 30px -4px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.06);
    }
    .card.monument-card-item:hover {
      transform: translateY(-8px);
      border-color: rgba(232, 146, 26, 0.45);
      box-shadow: 0 22px 48px -8px rgba(0, 0, 0, 0.7), 0 0 0 1px rgba(232, 146, 26, 0.3);
    }
    .card.monument-card-item:focus-visible {
      outline: 2px solid var(--saffron);
      outline-offset: 2px;
    }
    .card-img-wrapper {
      position: relative;
      height: 230px;
      overflow: hidden;
      background: #070C16;
    }
    .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: 1.35rem 1.4rem;
      display: flex;
      flex-direction: column;
      flex: 1;
    }
    .card-header-row {
      display: flex;
      justify-content: space-between;
      align-items: center;
      margin-bottom: 0.5rem;
      gap: 0.5rem;
    }
    .card-location-tag {
      color: var(--saffron);
      font-size: 0.82rem;
      font-weight: 600;
      display: inline-flex;
      align-items: center;
      gap: 0.35rem;
    }
    .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;
    }
    .card-title {
      font-family: var(--serif);
      font-size: 1.25rem;
      font-weight: 700;
      color: #fff;
      line-height: 1.3;
      margin: 0 0 0.4rem;
      display: flex;
      align-items: baseline;
      gap: 0.5rem;
      flex-wrap: wrap;
    }
    .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.7);
      font-size: 0.84rem;
      line-height: 1.55;
      margin: 0 0 0.85rem;
      display: -webkit-box;
      -webkit-line-clamp: 2;
      -webkit-box-orient: vertical;
      overflow: hidden;
    }
    .card-meta-row {
      display: flex;
      flex-wrap: wrap;
      gap: 0.4rem;
      margin-bottom: 1rem;
    }
    .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.74rem;
      padding: 0.2rem 0.55rem;
      border-radius: 6px;
      display: inline-flex;
      align-items: center;
      gap: 0.3rem;
    }
    .card-footer {
      margin-top: auto;
      display: flex;
      align-items: center;
      justify-content: space-between;
      border-top: 1px solid rgba(255, 255, 255, 0.06);
      padding-top: 0.95rem;
      font-size: 0.85rem;
      font-weight: 600;
      color: var(--saffron);
    }
    .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);
    }

    .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; }
    .footer-badges { display: flex; gap: 0.6rem; align-items: center; }
    .footer-badge {
      background: rgba(26,122,74,0.15); border: 1px solid rgba(26,122,74,0.3);
      color: #4ADE80; padding: 0.25rem 0.65rem; border-radius: 6px; font-size: 0.7rem; font-weight: 700;
    }

    /* 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: 3rem 1rem 2.5rem !important;
  }
  .story-inner {
    grid-template-columns: 1fr !important;
    gap: 2rem !important;
  }
  .story-mosaic {
    grid-template-rows: 150px 110px !important;
  }

  /* Full Collection Explorer & Search Mobile Adaptation */
  .explorer-section {
    padding: 0 1rem !important;
    margin: 1.5rem auto 2.5rem !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 Monument Cards on Mobile */
  #monuments-grid, .monument-grid, #nearby-grid {
    grid-template-columns: 1fr !important;
    gap: 1.25rem !important;
    width: 100% !important;
  }
  .card.monument-card-item {
    width: 100% !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;
  }
  .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);
}
