/* ═══════════════════════════════════════════════════════════════════════════
   CRIPTANA 360 — Light-Mode Premium Directory Portal & Guide
   Traditional Whitewash White & Añil Indigo Blue Palette · Monocle Style
   ═══════════════════════════════════════════════════════════════════════════ */

:root {
  /* Elegant traditional colors of Campo de Criptana (Whitewashed walls & Añil baseboards) */
  --bg-deep: #FAF9F6;      /* High-end off-white canvas */
  --bg-cave: #FFFFFF;      /* Pure white for sections */
  --surface: #FFFFFF;      /* White for card elevation */
  --surface-2: #F1F4FA;    /* Soft añil-sky-blue for tags and badges */
  
  --cream: #0B1C33;        /* Deep midnight indigo for high-contrast typography */
  --cream-dim: #4E5E7A;    /* Slate-grey for description body copy */
  
  --gold: #D49D2A;         /* Sunlight gold for rating stars and borders */
  --gold-dim: rgba(212, 157, 42, 0.08);
  --gold-glow: rgba(212, 157, 42, 0.2);
  
  --anil-blue: #0B4FC8;    /* Vibrant traditional Campo de Criptana zócalo blue */
  --anil-blue-dim: rgba(11, 79, 200, 0.08);
  --anil-blue-glow: rgba(11, 79, 200, 0.15);
  
  --border: rgba(11, 79, 200, 0.09);
  --border-light: rgba(11, 79, 200, 0.16);
  
  /* Fonts */
  --font-display: 'Playfair Display', Georgia, serif;
  --font-body: 'DM Sans', system-ui, -apple-system, sans-serif;
  
  /* Layout dimensions */
  --max-width: 1200px;
  --gutter: 2rem;
  
  /* Smooth motion curve */
  --transition: 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
}

/* ── Reset & Base ──────────────────────────────────────────────────── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  background-color: var(--bg-deep);
  color: var(--cream);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
}

body {
  overflow-x: hidden;
  position: relative;
  background-color: var(--bg-deep);
  min-height: 100vh;
}

/* Elegant thin scrollbar */
::-webkit-scrollbar {
  width: 5px;
}
::-webkit-scrollbar-track {
  background: var(--bg-deep);
}
::-webkit-scrollbar-thumb {
  background: var(--border-light);
  border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--anil-blue);
}

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition);
}

.section-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--gutter);
  width: 100%;
}

.text-center {
  text-align: center;
}

/* Scroll Fade Animations */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.8s var(--ease-out-expo), transform 0.8s var(--ease-out-expo);
  will-change: opacity, transform;
}

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

/* Overlines & Display Titles */
.story-overline {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--anil-blue);
  margin-bottom: 1rem;
  display: inline-block;
  padding-bottom: 0.4rem;
  border-bottom: 1.5px solid var(--gold);
}

.story-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 3.5vw, 2.8rem);
  font-weight: 800;
  line-height: 1.2;
  color: var(--cream);
  margin-bottom: 3rem;
  letter-spacing: -0.01em;
}

/* ─── Header ───────────────────────────────────────────────────────── */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(250, 249, 246, 0.85);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  border-bottom: 1px solid var(--border);
  transition: background var(--transition), box-shadow var(--transition);
}

.site-header.scrolled {
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 4px 20px rgba(11, 79, 200, 0.03);
  border-bottom-color: rgba(11, 79, 200, 0.15);
}

.header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 1.15rem var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.site-logo {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 900;
  letter-spacing: -0.02em;
  color: var(--cream);
}

.logo-accent {
  color: var(--anil-blue);
  font-weight: 300;
  margin-left: 2px;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 2.2rem;
}

.site-nav a {
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--cream-dim);
}

.site-nav a:hover {
  color: var(--anil-blue);
}

.site-nav .nav-cta {
  padding: 0.5rem 1.25rem;
  background: var(--anil-blue);
  border: 1px solid var(--anil-blue);
  color: #FFFFFF !important;
  border-radius: 4px;
  transition: all var(--transition);
}

.site-nav .nav-cta:hover {
  background: #093FA0;
  border-color: #093FA0;
  transform: translateY(-1px);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 1.2rem;
}

.header-lang {
  display: flex;
  align-items: center;
  gap: 0.15rem;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--cream-dim);
}

.header-lang button {
  background: none;
  border: none;
  color: var(--cream-dim);
  padding: 0.2rem 0.4rem;
  cursor: pointer;
  border-radius: 3px;
  font-weight: 700;
  transition: color var(--transition), background var(--transition);
}

.header-lang button.active {
  background: var(--anil-blue-dim);
  color: var(--anil-blue);
}

.header-lang button:hover {
  color: var(--anil-blue);
}

.mobile-menu-btn {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 22px;
  background: none;
  border: none;
  cursor: pointer;
}

.mobile-menu-btn span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--cream);
  transition: transform var(--transition), opacity var(--transition);
}

/* ─── Hero ─────────────────────────────────────────────────────────── */
.hero {
  position: relative;
  width: 100%;
  height: 80vh;
  height: 80dvh;
  min-height: 550px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #FFFFFF;
  overflow: hidden;
  border-bottom: 1px solid var(--border);
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(
    circle at 50% 30%,
    rgba(11, 82, 214, 0.04) 0%,
    transparent 65%
  );
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 3;
  text-align: center;
  max-width: 840px;
  padding: 2rem var(--gutter) 0;
}

.hero-overline {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--anil-blue);
  margin-bottom: 1.5rem;
  padding: 0.4rem 1.2rem;
  border: 1px solid var(--border-light);
  background: var(--anil-blue-dim);
  border-radius: 4px;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 6.5vw, 4.8rem);
  font-weight: 900;
  line-height: 1.1;
  color: var(--cream);
  margin-bottom: 1.5rem;
  letter-spacing: -0.02em;
}

.hero-title em {
  font-style: italic;
  font-weight: 400;
  color: var(--anil-blue);
  position: relative;
}

.hero-title em::after {
  content: '';
  position: absolute;
  bottom: 0.15em;
  left: 0;
  width: 100%;
  height: 4px;
  background: var(--gold-glow);
  z-index: -1;
}

.hero-subtitle {
  font-size: clamp(0.95rem, 1.25vw, 1.08rem);
  color: var(--cream-dim);
  line-height: 1.75;
  max-width: 620px;
  margin: 0 auto 2.5rem;
}

.hero-cta-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.2rem;
  flex-wrap: wrap;
}

.btn-primary {
  padding: 0.85rem 2rem;
  background: var(--anil-blue);
  color: #FFFFFF;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  border: none;
  border-radius: 4px;
  transition: transform var(--transition), box-shadow var(--transition), background var(--transition);
  cursor: pointer;
}

.btn-primary:hover {
  background: #093FA0;
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(11, 79, 200, 0.18);
}

.btn-outline {
  padding: 0.85rem 2rem;
  background: transparent;
  color: var(--cream);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  border: 1.5px solid var(--border-light);
  border-radius: 4px;
  transition: transform var(--transition), background var(--transition), border-color var(--transition), color var(--transition);
  cursor: pointer;
}

.btn-outline:hover {
  background: var(--anil-blue-dim);
  border-color: var(--anil-blue);
  color: var(--anil-blue);
  transform: translateY(-2px);
}

.hero-scroll-hint {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  color: var(--cream-dim);
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  opacity: 0.7;
}

.hero-scroll-hint .scroll-line {
  width: 1.5px;
  height: 35px;
  background: linear-gradient(to bottom, var(--anil-blue), transparent);
  animation: scrollLineAnimation 2.2s cubic-bezier(0.16, 1, 0.3, 1) infinite;
}

@keyframes scrollLineAnimation {
  0% { transform: scaleY(0); transform-origin: top; }
  50% { transform: scaleY(1); transform-origin: top; }
  51% { transform: scaleY(1); transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; }
}

/* ─── Live Utility Bar ─────────────────────────────────────────────── */
.live-utility-bar {
  background: var(--bg-cave);
  border-bottom: 1px solid var(--border);
  padding: 1.25rem 0;
  position: sticky;
  top: 59px;
  z-index: 99;
  box-shadow: 0 4px 12px rgba(0,0,0,0.01);
}

.utility-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--gutter);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 3rem;
  flex-wrap: wrap;
}

.utility-item {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.utility-icon {
  font-size: 1.2rem;
}

.utility-text {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--cream);
}

.utility-divider {
  width: 1.5px;
  height: 20px;
  background: var(--border-light);
}

@media (max-width: 600px) {
  .utility-inner {
    gap: 1rem;
    flex-direction: column;
  }
  .utility-divider {
    display: none;
  }
}

/* ─── Directory Section ────────────────────────────────────────────── */
.directory-section {
  background-color: var(--bg-deep);
  padding: 7rem 0;
}

/* Tabs Container */
.explorer-tabs-container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.2rem;
  margin-bottom: 3.5rem;
  flex-wrap: wrap;
}

.explorer-tab {
  padding: 0.85rem 1.8rem;
  background: #FFFFFF;
  border: 1px solid rgba(11, 79, 200, 0.18);
  color: var(--cream-dim);
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 700;
  border-radius: 50px; /* Highly clickable pill shape */
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(11, 79, 200, 0.04);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  transform: translateY(0);
}

.explorer-tab:active {
  transform: translateY(1px);
  box-shadow: 0 2px 6px rgba(11, 79, 200, 0.08);
}

.explorer-tab.active {
  background: var(--anil-blue);
  color: #FFFFFF;
  border-color: var(--anil-blue);
  box-shadow: 0 8px 22px rgba(11, 79, 200, 0.28);
  transform: translateY(-2px);
}

.explorer-tab:hover:not(.active) {
  border-color: var(--anil-blue);
  color: var(--anil-blue);
  background: var(--anil-blue-dim);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(11, 79, 200, 0.08);
}

/* Directory Explorer layout */
.directory-explorer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 2.5rem;
  align-items: start;
}

.cards-list-column {
  display: flex;
  flex-direction: column;
  gap: 1.8rem;
}

/* Explorer Cards */
.explorer-card {
  display: none; /* Controlled via JS, showing only selected category */
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  transition: transform var(--transition), border-color var(--transition), box-shadow var(--transition);
  grid-template-columns: 200px 1fr;
  box-shadow: 0 6px 15px rgba(0,0,0,0.02);
}

.explorer-card.active-category {
  display: grid;
  animation: cardFadeIn 0.5s ease forwards;
}

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

.explorer-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-light);
  box-shadow: 0 12px 30px rgba(11, 79, 200, 0.05);
}

.card-visual {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 220px;
  overflow: hidden;
}

.card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1s var(--ease-out-expo);
}

.explorer-card:hover .card-img {
  transform: scale(1.05);
}

.card-category-badge {
  position: absolute;
  top: 1rem;
  left: 1rem;
  z-index: 2;
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 0.35rem 0.8rem;
  border-radius: 4px;
  border: 1px solid transparent;
}

.badge-monumento {
  background: var(--anil-blue-dim);
  color: var(--anil-blue);
  border-color: rgba(11, 79, 200, 0.2);
}

.badge-restaurante {
  background: rgba(140, 40, 72, 0.08);
  color: #8C2848;
  border-color: rgba(140, 40, 72, 0.15);
}

.badge-bodega {
  background: var(--gold-dim);
  color: #B58421;
  border-color: rgba(212, 157, 42, 0.2);
}

.card-info {
  padding: 2rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.card-spot-title {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--cream);
  margin-bottom: 0.65rem;
}

.card-spot-excerpt {
  font-size: 0.88rem;
  color: var(--cream-dim);
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.card-quick-meta {
  display: flex;
  gap: 1.5rem;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--cream-dim);
  margin-bottom: 1.5rem;
}

.meta-gold {
  color: var(--gold);
}

.btn-more-details {
  align-self: flex-start;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--anil-blue);
  background: none;
  border: none;
  cursor: pointer;
  transition: color var(--transition), transform var(--transition);
  padding: 0.3rem 0;
  border-bottom: 2px solid transparent;
}

.btn-more-details:hover {
  color: #093FA0;
  border-bottom-color: var(--anil-blue);
  transform: translateX(3px);
}

/* ─── Premium Ad Column (Monetization Engine) ───────────────────────── */
.ads-banner-column {
  display: flex;
  flex-direction: column;
  gap: 1.8rem;
}

.premium-ad-card {
  background: var(--bg-cave);
  border: 1px dashed var(--border-light);
  border-radius: 8px;
  padding: 2.2rem;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0,0,0,0.01);
  position: relative;
}

.ad-label {
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  color: var(--cream-dim);
  opacity: 0.6;
  display: block;
  margin-bottom: 1.25rem;
}

.ad-title {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--cream);
  margin-bottom: 0.75rem;
}

.ad-desc {
  font-size: 0.82rem;
  color: var(--cream-dim);
  line-height: 1.5;
  margin-bottom: 1.8rem;
}

.ad-dummy-slot {
  display: block;
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--anil-blue);
  background: var(--surface-2);
  padding: 0.8rem;
  border-radius: 4px;
  border: 1px solid var(--border);
  letter-spacing: 0.05em;
}

/* ─── Detail Drawer (Slide-out from Right Edge) ─────────────────────── */
.detail-drawer {
  position: fixed;
  top: 0;
  right: -550px; /* Hidden initially */
  width: 500px;
  height: 100vh;
  z-index: 1001;
  background: var(--bg-cave);
  box-shadow: -10px 0 40px rgba(11, 79, 200, 0.05);
  border-left: 1px solid var(--border-light);
  transition: right 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  overflow-y: auto;
  display: flex;
  flex-direction: column;
}

.detail-drawer.open {
  right: 0;
}

/* Back overlay background */
.drawer-backdrop {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(11, 28, 51, 0.25);
  backdrop-filter: blur(4px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s var(--ease-out-expo);
}

.drawer-backdrop.active {
  opacity: 1;
  pointer-events: auto;
}

.drawer-header {
  padding: 1.25rem 2rem;
  border-bottom: 1px solid var(--border);
  display: flex;
  justify-content: flex-end;
  background: var(--bg-cave);
  position: sticky;
  top: 0;
  z-index: 10;
}

.btn-close-drawer {
  background: var(--surface-2);
  border: 1px solid var(--border);
  font-family: inherit;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0.45rem 1rem;
  border-radius: 4px;
  cursor: pointer;
  color: var(--cream);
  transition: all var(--transition);
}

.btn-close-drawer:hover {
  background: var(--anil-blue);
  color: #FFFFFF;
  border-color: var(--anil-blue);
}

/* Inside Drawer Profile */
.drawer-content {
  flex: 1;
}

.drawer-hero-img {
  width: 100%;
  height: 280px;
  object-fit: cover;
  border-bottom: 1px solid var(--border);
}

.drawer-profile-body {
  padding: 2.2rem;
}

.drawer-spot-title {
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--cream);
  margin-bottom: 1.25rem;
}

.drawer-spot-full-desc {
  font-size: 0.92rem;
  color: var(--cream-dim);
  line-height: 1.7;
  margin-bottom: 2rem;
}

.drawer-info-grid {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
  margin-bottom: 2.2rem;
}

.drawer-info-item {
  display: flex;
  align-items: flex-start;
  gap: 0.8rem;
  font-size: 0.85rem;
  line-height: 1.5;
}

.drawer-info-label {
  font-weight: 700;
  color: var(--cream);
  margin-bottom: 0.15rem;
}

.drawer-info-val {
  color: var(--cream-dim);
}

.drawer-actions {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.drawer-btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem;
  background: var(--anil-blue);
  color: #FFFFFF;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  border-radius: 4px;
  text-align: center;
}

.drawer-btn-primary:hover {
  background: #093FA0;
}

.drawer-btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem;
  background: transparent;
  color: var(--cream);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  border: 1px solid var(--border-light);
  border-radius: 4px;
  text-align: center;
}

.drawer-btn-outline:hover {
  background: var(--anil-blue-dim);
  border-color: var(--anil-blue);
  color: var(--anil-blue);
}

/* ─── Featured Articles Section (SEO Booster) ───────────────────────── */
.guides-section {
  background: var(--bg-cave);
  border-top: 1px solid var(--border);
  padding: 7rem 0;
}

.guides-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
  width: 100%;
}

.guide-article-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 10px rgba(0,0,0,0.01);
  transition: transform var(--transition), border-color var(--transition);
}

.guide-article-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-light);
}

.article-visual {
  width: 100%;
  height: 200px;
  overflow: hidden;
  border-bottom: 1px solid var(--border);
}

.article-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.article-body {
  padding: 1.8rem;
}

.article-meta {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--anil-blue);
  display: block;
  margin-bottom: 0.75rem;
}

.article-title {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  line-height: 1.35;
  color: var(--cream);
  margin-bottom: 0.75rem;
}

.article-desc {
  font-size: 0.85rem;
  color: var(--cream-dim);
  line-height: 1.6;
}

/* ─── Footer ───────────────────────────────────────────────────────── */
.site-footer {
  background: #091526; /* Deep dark blue-black for high contrast footer */
  color: rgba(255, 255, 255, 0.7);
  padding: 5rem 0 4rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--gutter);
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 3rem;
  flex-wrap: wrap;
}

.footer-brand {
  flex: 1 1 300px;
}

.footer-logo {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 900;
  color: #FFFFFF;
  display: block;
  margin-bottom: 1rem;
}

.footer-copy {
  font-size: 0.82rem;
  line-height: 1.7;
}

.footer-agency {
  flex: 1 1 360px;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.agency-credit {
  font-size: 0.82rem;
}

.agency-link {
  color: var(--gold);
  font-weight: 700;
}

.agency-link:hover {
  text-decoration: underline;
}

.agency-audit {
  font-size: 0.78rem;
  line-height: 1.6;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.08);
  padding: 1.25rem;
  border-radius: 6px;
}

.audit-btn {
  display: inline-block;
  margin-top: 0.5rem;
  color: var(--gold);
  font-weight: 700;
  text-decoration: none;
}

.audit-btn:hover {
  text-decoration: underline;
}

/* Responsive breakdowns */
@media (max-width: 1024px) {
  .directory-explorer-grid {
    grid-template-columns: 1fr;
  }
  .ads-banner-column {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
  }
}

@media (max-width: 768px) {
  .site-header {
    background: rgba(255, 255, 255, 0.98);
  }
  .site-nav {
    position: fixed;
    top: 59px;
    left: 0;
    width: 100%;
    height: calc(100vh - 59px);
    background: #FFFFFF;
    flex-direction: column;
    padding: 3rem 2rem;
    gap: 2.2rem;
    align-items: flex-start;
    border-top: 1px solid var(--border);
    transform: translateX(100%);
    transition: transform var(--transition);
  }
  .site-nav.active {
    transform: translateX(0);
  }
  .mobile-menu-btn {
    display: flex;
  }
  .mobile-menu-btn.open span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }
  .mobile-menu-btn.open span:nth-child(2) {
    opacity: 0;
  }
  .mobile-menu-btn.open span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }
  
  /* Hero Proportions Overhaul */
  .hero {
    height: auto;
    min-height: auto;
    padding: 7.5rem 0 4.5rem;
  }
  .hero-inner {
    padding: 0 var(--gutter);
  }
  .hero-title {
    font-size: 2.6rem !important;
    line-height: 1.15;
    margin-bottom: 1.2rem;
  }
  .hero-subtitle {
    font-size: 0.92rem;
    line-height: 1.65;
    margin-bottom: 2rem;
  }
  .hero-cta-row {
    flex-direction: column;
    width: 100%;
    gap: 0.8rem;
  }
  .hero-cta-row .btn-primary,
  .hero-cta-row .btn-outline {
    width: 100%;
    text-align: center;
    padding: 0.95rem 1.5rem;
  }
  .hero-scroll-hint {
    display: none;
  }
  
  .explorer-card {
    grid-template-columns: 1fr;
  }
  .card-visual {
    height: 180px;
    min-height: auto;
  }
  
  .detail-drawer {
    width: 100%;
    right: -100%;
  }
  
  .ads-banner-column {
    grid-template-columns: 1fr;
  }
  
  /* Directory Tabs Mobile Margin Tuning */
  .explorer-tabs-container {
    gap: 0.8rem;
    margin-bottom: 2.5rem;
  }
  .explorer-tab {
    padding: 0.75rem 1.4rem;
    font-size: 0.8rem;
  }
}

/* ─── Sunset Mode Transitions & Overrides ────────────────────────────── */

/* Define transitions on components for a silky-smooth twilight fade */
body, 
.site-header, 
.hero, 
.live-utility-bar, 
.directory-section, 
.explorer-card, 
.premium-ad-card, 
.detail-drawer, 
.guides-section, 
.site-footer, 
.card-spot-title, 
.card-spot-excerpt, 
.card-quick-meta, 
.story-title, 
.explorer-tab, 
.ad-title, 
.ad-desc,
.site-logo,
.btn-outline,
.drawer-btn-outline,
.drawer-info-grid,
.drawer-spot-title,
.drawer-spot-full-desc {
  transition: background-color 0.6s cubic-bezier(0.16, 1, 0.3, 1), 
              color 0.6s cubic-bezier(0.16, 1, 0.3, 1), 
              border-color 0.6s cubic-bezier(0.16, 1, 0.3, 1), 
              box-shadow 0.6s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Sunset / After-Dark Variables (Twilight indigo & silver white palette) */
body.sunset-mode {
  --bg-deep: #090F1C;        /* Dark twilight space blue */
  --bg-cave: #0C1424;        /* Deep navy-indigo for cards */
  --surface: #0C1424;        /* Dark surface */
  --surface-2: #16243D;      /* Slate-navy for details/badges */
  
  --cream: #F6F9FD;          /* Pale silver-white for maximum legibility */
  --cream-dim: #A1B2CD;      /* Muted twilight grey for body text */
  
  --gold: #F1B83A;           /* Radiant golden sun stars */
  --gold-dim: rgba(241, 184, 58, 0.08);
  --gold-glow: rgba(241, 184, 58, 0.25);
  
  --anil-blue: #3E7CFC;      /* Vibrant glowing neon blue */
  --anil-blue-dim: rgba(62, 124, 252, 0.12);
  --anil-blue-glow: rgba(62, 124, 252, 0.25);
  
  --border: rgba(62, 124, 252, 0.15);
  --border-light: rgba(62, 124, 252, 0.3);
}

/* Adjust header background translucent blur on sunset mode */
body.sunset-mode .site-header {
  background: rgba(9, 15, 28, 0.85);
  border-bottom-color: var(--border);
}

body.sunset-mode .site-header.scrolled {
  background: #090F1C;
}

body.sunset-mode .mobile-menu-btn span {
  background: #F6F9FD;
}

/* ─── Header Toggle Button ────────────────────────────────────────── */
.sunset-toggle-btn {
  background: var(--surface-2);
  border: 1px solid var(--border);
  font-size: 1.1rem;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition);
}

.sunset-toggle-btn:hover {
  transform: scale(1.1) rotate(15deg);
  border-color: var(--anil-blue);
  box-shadow: 0 0 10px var(--anil-blue-glow);
}

body.sunset-mode .sunset-toggle-btn {
  background: #16243D;
  border-color: #3E7CFC;
}

/* ─── Hero Starry Sky Twinkling Stars ─────────────────────────────── */
.starry-sky {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: 0;
  transition: opacity 1.2s cubic-bezier(0.16, 1, 0.3, 1);
  background: radial-gradient(circle at 50% 30%, rgba(9, 21, 46, 0.9) 0%, #090F1C 100%);
}

body.sunset-mode .starry-sky {
  opacity: 1;
}

/* Twinkling star layout elements */
.star {
  position: absolute;
  width: 2px;
  height: 2px;
  background: #FFFFFF;
  border-radius: 50%;
  opacity: 0;
  animation: starTwinkle 3s ease-in-out infinite;
}

@keyframes starTwinkle {
  0%, 100% { opacity: 0; transform: scale(0.6); }
  50% { opacity: 0.8; transform: scale(1.2); box-shadow: 0 0 6px #FFFFFF; }
}

/* ─── B2B Lead Generation Form Modal ──────────────────────────────── */
.publicity-modal {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.publicity-modal.open {
  opacity: 1;
  pointer-events: auto;
}

.modal-overlay {
  position: absolute;
  inset: 0;
  background: rgba(9, 21, 46, 0.45);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.modal-card {
  position: relative;
  z-index: 2;
  width: 90%;
  max-width: 580px;
  background: var(--bg-cave);
  border: 1px solid var(--border-light);
  border-radius: 12px;
  padding: 3rem;
  box-shadow: 0 20px 50px rgba(11, 28, 51, 0.15);
  transform: translateY(30px);
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.publicity-modal.open .modal-card {
  transform: translateY(0);
}

.btn-close-modal {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  font-size: 2.2rem;
  font-weight: 300;
  color: var(--cream-dim);
  background: none;
  border: none;
  cursor: pointer;
  line-height: 0.5;
  transition: color var(--transition);
}

.btn-close-modal:hover {
  color: var(--anil-blue);
}

.modal-header {
  margin-bottom: 2rem;
  text-align: center;
}

.modal-title {
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--cream);
  margin-bottom: 0.5rem;
}

.modal-subtitle {
  font-size: 0.88rem;
  color: var(--cream-dim);
  line-height: 1.5;
}

.modal-form {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.modal-form.hidden {
  display: none;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}

@media (max-width: 520px) {
  .form-row {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }
}

.modal-form label {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--cream);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.modal-form input,
.modal-form textarea {
  font-family: inherit;
  font-size: 0.88rem;
  padding: 0.8rem 1rem;
  background: var(--bg-deep);
  border: 1px solid var(--border-light);
  color: var(--cream);
  border-radius: 6px;
  outline: none;
  transition: border-color var(--transition), box-shadow var(--transition);
}

.modal-form input:focus,
.modal-form textarea:focus {
  border-color: var(--anil-blue);
  box-shadow: 0 0 0 3px var(--anil-blue-glow);
}

.modal-submit-btn {
  margin-top: 1rem;
  padding: 0.95rem;
  background: var(--anil-blue);
  color: #FFFFFF;
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: background var(--transition), transform var(--transition);
}

.modal-submit-btn:hover {
  background: #093FA0;
  transform: translateY(-1px);
}

/* Success view within Modal */
.modal-success-msg {
  display: none;
  text-align: center;
  padding: 2rem 0;
}

.modal-success-msg.visible {
  display: flex;
  flex-direction: column;
  align-items: center;
  animation: cardFadeIn 0.5s ease forwards;
}

.success-icon {
  font-size: 3rem;
  margin-bottom: 1.5rem;
}

.modal-success-msg h4 {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--cream);
  margin-bottom: 0.75rem;
}

.modal-success-msg p {
  font-size: 0.9rem;
  color: var(--cream-dim);
  line-height: 1.6;
  max-width: 420px;
}

/* ─── Premium Ad Column B2B CTA button ──────────────────────────────── */
.ad-cta-btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  background: var(--anil-blue-dim);
  border: 1px solid var(--border-light);
  color: var(--anil-blue);
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  border-radius: 4px;
  cursor: pointer;
  transition: all var(--transition);
}

.ad-cta-btn:hover {
  background: var(--anil-blue);
  color: #FFFFFF;
  border-color: var(--anil-blue);
  transform: translateY(-1.5px);
  box-shadow: 0 4px 15px var(--anil-blue-glow);
}

body.sunset-mode .ad-cta-btn {
  background: var(--surface-2);
  color: #3E7CFC;
  border-color: var(--border);
}

body.sunset-mode .ad-cta-btn:hover {
  background: #3E7CFC;
  color: #FFFFFF;
  border-color: #3E7CFC;
}

/* ─── Clickable Article Cards Cursor & Drawer Link Buttons ──────────── */
.clickable-article-card {
  cursor: pointer;
}

.drawer-article-link-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem;
  background: var(--anil-blue);
  color: #FFFFFF;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  border-radius: 4px;
  text-align: center;
  border: none;
  cursor: pointer;
  transition: background var(--transition), transform var(--transition);
}

.drawer-article-link-btn:hover {
  background: #093FA0;
  transform: translateY(-1px);
}

body.sunset-mode .drawer-article-link-btn {
  background: #3E7CFC;
}

body.sunset-mode .drawer-article-link-btn:hover {
  background: #1A5EE6;
}


