/* === 00-variables.css === */
/* ========================================
   BoyceAbroad — Global Stylesheet
   Design System: Muted green + off-white
   ======================================== */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* ===== ROOT / VARIABLES ===== */
/* === BoyceAbroad Global Stylesheet — Updated March 2026 === */
:root {
  --bg-primary: #f8f7f4;
  --bg-secondary: #ffffff;
  --text-primary: #1a1a1a;
  --text-muted: #666666;
  --text-on-dark: #f8f7f4;
  --accent: #4a7c59;
  --accent-hover: #3d6349;
  --accent-gold: #c9a84c;
  --accent-gold-hover: #b8941e;
  --bg-dark: #1a3a2a;
  --border: #e0ddd8;
  --overlay: rgba(0, 0, 0, 0.35);
  --overlay-gradient: linear-gradient(to bottom, rgba(0, 0, 0, 0.1) 0%, rgba(0, 0, 0, 0.5) 100%);

  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-heading: 'Playfair Display', Georgia, serif;
  --font-size-base: 1rem;
  --line-height-base: 1.7;
  --spacing-unit: 1rem;

  --transition: all 0.3s ease;
}

body {
  font-family: var(--font-sans);
  font-size: var(--font-size-base);
  line-height: var(--line-height-base);
  color: var(--text-primary);
  background-color: var(--bg-primary);
}


/* === 01-reset-typography.css === */
/* ===== TYPOGRAPHY ===== */
h1, h2, h3 {
  font-family: var(--font-heading);
  font-weight: 600;
}

h1 {
  font-size: 3rem;
  line-height: 1.1;
  margin-bottom: 1rem;
  letter-spacing: -1px;
}

h2 {
  font-size: 2rem;
  line-height: 1.2;
  margin-top: 2rem;
  margin-bottom: 1.5rem;
  border-top: 1px solid var(--border);
  padding-top: 1.5rem;
}

h3 {
  font-size: 1.35rem;
  margin-top: 1.5rem;
  margin-bottom: 0.75rem;
}

p {
  margin-bottom: 1.2rem;
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: var(--transition);
  border-bottom: 1px solid transparent;
}

a:hover {
  color: var(--accent-hover);
  border-bottom-color: var(--accent);
}


/* === 02-layout.css === */
/* ===== LAYOUT ===== */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 2rem;
}

.content {
  max-width: 750px;
  margin: 0 auto;
  padding: 0 2rem;
}

section {
  padding: 6rem 0;
}

section.full-bleed {
  padding: 6rem 0;
  width: 100%;
  margin-left: calc(-50vw + 50%);
  padding-left: calc(50vw - 50%);
  padding-right: calc(50vw - 50%);
}


/* === 03-navigation.css === */
/* ===== NAVIGATION ===== */
nav {
  background-color: transparent;
  border-bottom: 1px solid transparent;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: none;
  transition: background-color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

nav:not(.hero-page) {
  background-color: var(--bg-secondary);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

nav .container,
.nav-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.25rem 2rem;
  gap: 2rem;
}

.nav-logo {
  font-size: 1.3rem;
  font-weight: 700;
  color: white;
  text-decoration: none;
  letter-spacing: -1px;
}

nav:not(.hero-page) .nav-logo {
  color: var(--text-primary);
}

nav.nav-scrolled .nav-logo {
  color: var(--text-primary);
}

.nav-logo:hover {
  color: var(--accent-gold);
  border-bottom: none;
}

.nav-links {
  display: flex;
  gap: 2.5rem;
  list-style: none;
}

.nav-links a {
  font-size: 0.95rem;
  font-weight: 500;
  color: white;
  text-decoration: none;
}

nav:not(.hero-page) .nav-links a {
  color: var(--text-primary);
}

nav.nav-scrolled .nav-links a {
  color: white;
}

.nav-links a.active {
  color: var(--accent-gold);
  border-bottom: 2px solid var(--accent-gold);
}

nav.nav-scrolled .nav-links a.active {
  color: var(--accent);
  border-bottom: 2px solid var(--accent);
}

.nav-links a:hover {
  color: var(--accent);
  border-bottom: 2px solid var(--accent);
}

/* Hamburger (mobile) */
.hamburger {
  display: none;
  flex-direction: column;
  cursor: pointer;
  gap: 0.4rem;
}

.hamburger span {
  width: 25px;
  height: 3px;
  background-color: var(--text-primary);
  border-radius: 2px;
  transition: var(--transition);
}

@media (max-width: 768px) {
  .hamburger {
    display: flex;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: 60px;
    left: 0;
    right: 0;
    flex-direction: column;
    background-color: var(--bg-secondary);
    padding: 1rem 2rem;
    gap: 1rem;
    border-bottom: 1px solid var(--border);
  }

  .nav-links.active {
    display: flex;
  }
}


/* === 04-hero.css === */
/* ===== HERO SECTION ===== */
.hero {
  position: relative;
  height: 100vh;
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: white;
  margin-top: -60px;
  padding-top: 60px;
}

.hero-overlay {
  display: none;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--overlay-gradient);
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 600px;
  padding: 0 2rem;
}

.hero h1 {
  color: white;
  font-size: 3.5rem;
  margin-bottom: 1.5rem;
  font-family: var(--font-heading);
}

.hero p {
  font-size: 1.3rem;
  margin-bottom: 2rem;
  opacity: 0.95;
  max-width: 700px;
}

/* Stats bar — pinned to the bottom of the hero */
.hero-stats {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 1;
  display: flex;
  justify-content: center;
  gap: 0;
  background: rgba(15, 15, 15, 0.6);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.hero-stats .stat-item {
  flex: 1;
  max-width: 200px;
  padding: 1.25rem 2rem;
  text-align: center;
  border-right: 1px solid rgba(255, 255, 255, 0.1);
}

.hero-stats .stat-item:last-child {
  border-right: none;
}

.hero-stats .stat-number {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--accent-gold);
  display: block;
  line-height: 1;
  margin-bottom: 0.35rem;
}

.hero-stats .stat-label {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.8);
  text-transform: uppercase;
  letter-spacing: 1px;
}


/* === 05-buttons.css === */
/* ===== BUTTONS ===== */
.btn {
  display: inline-block;
  padding: 0.9rem 2rem;
  background-color: var(--accent);
  color: white;
  text-decoration: none;
  border-radius: 4px;
  font-weight: 600;
  font-size: 0.95rem;
  transition: var(--transition);
  border: none;
  cursor: pointer;
  letter-spacing: 0.01em;
}

.btn:hover {
  background-color: var(--accent-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 16px rgba(74, 124, 89, 0.3);
  border-bottom: none;
}

.btn-secondary {
  background-color: transparent;
  color: white;
  border: 2px solid white;
}

.btn-secondary:hover {
  background-color: white;
  color: var(--accent);
}

.btn-gold {
  background-color: var(--accent-gold);
  color: white;
}

.btn-gold:hover {
  background-color: var(--accent-gold-hover);
}


/* === 06-cards.css === */
/* ===== CARDS ===== */
a.card {
  display: block;
  text-decoration: none;
  color: inherit;
  border-bottom: none;
}

a.card:hover {
  border-bottom: none;
  color: inherit;
}

.card {
  background-color: var(--bg-secondary);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  border: 1px solid var(--border);
  cursor: pointer;
  position: relative;
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.14);
}

/* Image zoom on hover */
.card-image-wrapper {
  overflow: hidden;
  height: 220px;
}

.card-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

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

.card-content {
  padding: 1.5rem;
}

.card-title {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 0.6rem;
  color: var(--text-primary);
  line-height: 1.35;
  transition: color 0.2s ease;
}

.card:hover .card-title {
  color: var(--accent);
}

.card-excerpt {
  font-size: 0.92rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
  line-height: 1.65;
}

.card-meta {
  font-size: 0.82rem;
  color: var(--text-muted);
  font-style: italic;
  margin-bottom: 1rem;
}

.card-link {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  margin-top: 0.25rem;
  color: var(--accent);
  font-weight: 600;
  font-size: 0.9rem;
  transition: gap 0.2s ease;
}

.card:hover .card-link {
  gap: 0.6rem;
}


/* === 07-grid.css === */
/* ===== GRID LAYOUTS ===== */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 2rem;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  margin-top: 2rem;
}

@media (max-width: 1024px) {
  .grid-3 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .grid-3,
  .grid-2 {
    grid-template-columns: 1fr;
  }

  h1 {
    font-size: 2rem;
  }

  h2 {
    font-size: 1.4rem;
  }

  .hero h1 {
    font-size: 2.2rem;
  }

  .hero {
    height: 80vh;
    min-height: 320px;
    background-attachment: scroll;
  }

  .search-container {
    display: none;
  }

  .verdict-box {
    grid-template-columns: 1fr;
  }
}


/* === 08-footer.css === */
/* ===== FOOTER ===== */
footer {
  background-color: var(--bg-secondary);
  border-top: 1px solid var(--border);
  padding: 3rem 0;
  margin-top: 6rem;
}

footer .container {
  text-align: center;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin-bottom: 1.5rem;
  list-style: none;
}

.footer-links a {
  font-size: 0.95rem;
  color: var(--accent);
}

.footer-copy {
  font-size: 0.85rem;
  color: var(--text-muted);
}


/* === 09-article.css === */
/* ===== ARTICLE / BLOG POST ===== */
article {
  margin: 3rem 0;
}

article h1 {
  margin-top: 2rem;
}

/* Unsplash Photo Attribution */
.photo-credit {
  font-size: 0.72rem;
  color: var(--text-muted);
  text-align: right;
  margin-top: -0.75rem;
  margin-bottom: 2rem;
  opacity: 0.7;
}

.photo-credit a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* Budget Breakdown Callout */
.budget-breakdown {
  background-color: rgba(201, 168, 76, 0.08);
  border-left: 4px solid var(--accent-gold);
  padding: 1.5rem;
  border-radius: 6px;
  margin: 2rem 0;
}

.budget-breakdown h3 {
  margin-top: 0;
  color: var(--accent-gold);
  font-size: 1.15rem;
}

.budget-breakdown p {
  margin-bottom: 0.5rem;
  font-size: 0.95rem;
}

.budget-breakdown strong {
  color: var(--accent-gold);
  font-weight: 700;
}

/* Quick Tips Section */
.quick-tips {
  background-color: rgba(74, 124, 89, 0.05);
  border-left: 4px solid var(--accent);
  padding: 1.5rem;
  border-radius: 6px;
  margin: 2rem 0;
}

.quick-tips h3 {
  margin-top: 0;
  color: var(--accent);
  font-size: 1.15rem;
}

.quick-tips ul {
  margin-left: 1.5rem;
  margin-bottom: 0;
}

.quick-tips li {
  margin-bottom: 0.5rem;
  font-size: 0.95rem;
}

/* Read Next Section */
.read-next {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 2px solid var(--border);
}

.read-next h3 {
  margin-top: 0;
  border-top: none;
  padding-top: 0;
}

.post-meta {
  display: flex;
  gap: 1.5rem;
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border);
}

.post-meta span {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

article img {
  max-width: 100%;
  height: auto;
  margin: 2rem 0;
  border-radius: 8px;
}


/* === 10-pages.css === */
/* ===== CONTINENT CARDS (Start Here) ===== */
.continent-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.continent-card {
  position: relative;
  height: 300px;
  border-radius: 12px;
  overflow: hidden;
  text-decoration: none;
  color: white;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  background-size: cover;
  background-position: center;
  transition: transform 0.3s ease;
}

.continent-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.3);
  transition: background 0.3s ease;
  z-index: 1;
}

.continent-card:hover {
  transform: translateY(-8px);
}

.continent-card:hover::before {
  background: rgba(0, 0, 0, 0.45);
}

.continent-card-content {
  position: relative;
  z-index: 2;
}

.continent-name {
  font-size: 1.8rem;
  font-family: var(--font-heading);
  margin-bottom: 0.5rem;
}

.continent-badge {
  display: inline-block;
  background-color: var(--accent-gold);
  color: var(--text-primary);
  padding: 0.4rem 0.8rem;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
}

.continent-card.active {
  border: 3px solid var(--accent);
}

.continent-card.coming-soon {
  opacity: 0.6;
  cursor: default;
  filter: grayscale(30%);
  pointer-events: none;
}

.continent-card.coming-soon:hover {
  transform: none !important;
  box-shadow: none !important;
}

.coming-soon-label {
  color: var(--text-muted);
  font-size: 0.9rem;
  font-weight: 500;
  text-align: center;
  padding: 2rem 1rem;
}

/* ===== CHEAP GEMS SECTION ===== */
.gems-section {
  margin: 4rem auto;
  text-align: center;
}

.gems-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 2rem;
}

@media (max-width: 900px) {
  .gems-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 580px) {
  .gems-grid {
    grid-template-columns: 1fr;
  }
}

.gem-card {
  position: relative;
  background-color: var(--bg-secondary);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  width: 100%;
}

.gem-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.12);
}

.gem-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
}

.gem-content {
  padding: 1.5rem;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  text-align: center;
  align-items: center;
}

.gem-location {
  font-size: 0.85rem;
  color: var(--accent);
  font-weight: 600;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}

.gem-title {
  font-size: 1.1rem;
  font-weight: 600;
  margin-top: 0;
  margin-bottom: 0.5rem;
  color: var(--text-primary);
}

.gem-price {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--accent-gold);
  margin-bottom: 0.75rem;
}

.gem-description {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.5;
  flex-grow: 1;
}

/* ===== ABOUT TEASER SECTION ===== */
.about-teaser {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
  margin: 4rem auto;
}

.about-teaser-image {
  border-radius: 12px;
  overflow: hidden;
}

.about-teaser-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.about-teaser-content h3 {
  margin-top: 0;
}

.about-teaser-content p {
  color: var(--text-muted);
  line-height: 1.8;
}

@media (max-width: 768px) {
  .about-teaser {
    grid-template-columns: 1fr;
  }
}

/* ===== FEATURED POST (Homepage) ===== */
.featured-post {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: center;
  background-color: var(--bg-secondary);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

.featured-post-image {
  height: 300px;
  object-fit: cover;
}

.featured-post-content {
  padding: 2rem;
}

.featured-post-content h3 {
  margin-top: 0;
  font-size: 1.6rem;
}

@media (max-width: 768px) {
  .featured-post {
    grid-template-columns: 1fr;
  }

  .featured-post-image {
    height: 250px;
  }
}

/* ===== RELATED POSTS ===== */
.related-posts {
  margin-top: 4rem;
  padding-top: 2rem;
  border-top: 2px solid var(--border);
}

.related-posts h3 {
  margin-top: 0;
  border-top: none;
  padding-top: 0;
}

/* ===== PHILOSOPHY STRIP ===== */
.philosophy-strip {
  background: linear-gradient(135deg, var(--accent) 0%, #3d6349 100%);
  color: white;
  padding: 4rem 2rem;
  text-align: center;
  font-size: 1.4rem;
  font-style: italic;
  font-family: var(--font-heading);
  line-height: 1.8;
  margin: 4rem 0;
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(74, 124, 89, 0.2);
}

/* ===== FINAL CTA SECTION ===== */
.final-cta {
  background: linear-gradient(135deg, var(--bg-dark) 0%, #2a5340 100%);
  color: var(--text-on-dark);
  padding: 5rem 2rem;
  text-align: center;
  margin: 4rem 0 0 0;
}

.final-cta h2 {
  color: var(--text-on-dark);
  border-top: none;
  padding-top: 0;
  margin-top: 0;
  margin-bottom: 1rem;
}

.final-cta p {
  color: rgba(248, 247, 244, 0.85);
  font-size: 1.1rem;
  margin-bottom: 2rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* ===== INTRO BLURB ===== */
.intro-blurb {
  font-size: 1.1rem;
  color: var(--text-muted);
  text-align: center;
  max-width: 600px;
  margin: 2rem auto;
  line-height: 1.8;
}

/* ===== SECTION DIVIDER ===== */
.section-divider {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-top: 3rem;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 2px solid var(--border);
}

/* ===== UTILITY CLASSES ===== */
.text-center {
  text-align: center;
}

.text-muted {
  color: var(--text-muted);
}

.mt-4 {
  margin-top: 2rem;
}

.mt-6 {
  margin-top: 3rem;
}

.mb-4 {
  margin-bottom: 2rem;
}

.mb-6 {
  margin-bottom: 3rem;
}

/* ===== PAGE HEADER ===== */
.page-header {
  text-align: center;
  padding: 3rem 0 2rem;
}

.page-header h1 {
  margin-bottom: 0.5rem;
}

.page-intro {
  font-size: 1rem;
  color: var(--text-muted);
  max-width: 600px;
  margin: 1rem auto;
}

/* ===== RESOURCES / TOOLS ===== */
.tool-card {
  background-color: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  transition: var(--transition);
}

.tool-card:hover {
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
  border-color: var(--accent);
}

.tool-name {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.tool-description {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.tool-link {
  color: var(--accent);
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: var(--transition);
}

.tool-link:hover {
  border-bottom-color: var(--accent);
}

/* ===== READING PROGRESS BAR ===== */
.progress-bar {
  position: fixed;


/* === 11-search.css === */
  top: 0;
  left: 0;
  height: 3px;
  background: linear-gradient(to right, var(--accent), var(--accent-hover));
  width: 0%;
  z-index: 999;
  transition: width 0.1s ease;
}

/* ===== BACK-TO-TOP BUTTON ===== */
.back-to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 50px;
  height: 50px;
  background-color: var(--accent);
  color: white;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: none;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  transition: var(--transition);
  z-index: 998;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.back-to-top:hover {
  background-color: var(--accent-hover);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
  transform: translateY(-2px);
}

.back-to-top.visible {
  display: flex;
}

@media (max-width: 768px) {
  .back-to-top {
    width: 45px;
    height: 45px;
    bottom: 1.5rem;
    right: 1.5rem;
    font-size: 1rem;
  }
}

/* ===== BREADCRUMB STYLING ===== */
.breadcrumb {
  background-color: var(--bg-secondary);
  font-size: 0.95rem;
  color: var(--text-muted);
}

.breadcrumb a {
  color: var(--accent);
  margin: 0 0.25rem;
}

/* ===== HERO IMAGE FALLBACK COLORS ===== */
.hero {
  background-color: #3d6349;
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
}

.hero.budapest {
  background-color: #2d5239;
}

.hero.lisbon {
  background-color: #f39c12;
}

.hero.prague {
  background-color: #8b4513;
}

.hero.amsterdam {
  background-color: #16a085;
}

.hero.berlin {
  background-color: #34495e;
}

.hero.barcelona {
  background-color: #d9534f;
}

/* ===== DYNAMIC READ TIME ===== */
.dynamic-read-time {
  font-style: italic;
  color: var(--text-muted);
}

/* ===== SEARCH COMPONENT ===== */
.search-container {
  position: relative;
  flex: 0 0 auto;
  width: auto;
}

.search-input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  background-color: rgba(255, 255, 255, 0.95);
  border: 1px solid rgba(0, 0, 0, 0.15);
  border-radius: 6px;
  padding: 0.5rem 0.75rem;
  gap: 0.5rem;
}

nav.nav-scrolled .search-input-wrapper {
  background-color: var(--bg-primary);
  border: 1px solid var(--border);
}

.search-input-wrapper input {
  border: none;
  background: none;
  outline: none;
  font-size: 0.9rem;
  color: #1a1a1a;
  width: 200px;
  font-family: inherit;
}

nav.nav-scrolled .search-input-wrapper input {
  color: var(--text-primary);
}

.search-input-wrapper input::placeholder {
  color: rgba(0, 0, 0, 0.45);
}

nav.nav-scrolled .search-input-wrapper input::placeholder {
  color: var(--text-muted);
}

.search-input-wrapper input:focus {
  color: #1a1a1a;
}

nav.nav-scrolled .search-input-wrapper input:focus {
  color: var(--text-primary);
}

.search-icon {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.9rem;
  cursor: pointer;
  flex-shrink: 0;
}

nav.nav-scrolled .search-icon {
  color: var(--text-muted);
}

#search-dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 0.5rem);
  left: 0;
  right: 0;
  background-color: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
  z-index: 1000;
  max-height: 400px;
  overflow-y: auto;
}

.search-results-dropdown {
  display: flex;
  flex-direction: column;
}

.search-result-item {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--border);
  text-decoration: none;
  color: inherit;
  transition: background-color 0.2s ease;
  cursor: pointer;
}

.search-result-item:hover {
  background-color: var(--bg-primary);
  color: var(--accent);
}

.search-result-item:last-of-type {
  border-bottom: none;
}

.search-result-title {
  font-weight: 600;
  font-size: 0.95rem;
  margin-bottom: 0.25rem;
  color: var(--text-primary);
}

.search-result-city {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.search-result-footer {
  padding: 0.75rem 1rem;
  border-top: 1px solid var(--border);
  background-color: var(--bg-primary);
}

.search-view-all {
  display: block;
  text-align: center;
  color: var(--accent);
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none;
}

.search-view-all:hover {
  color: var(--accent-hover);
}

.search-no-results {
  padding: 1.5rem;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* Popular Searches */
#popular-searches {
  border-bottom: 1px solid var(--border);
}

.popular-searches-label {
  padding: 0.5rem 1rem;
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  font-weight: 600;
  letter-spacing: 0.05em;
}

.popular-search-item {
  display: block;
  padding: 0.65rem 1rem;
  font-size: 0.9rem;
  color: var(--text-primary);
  text-decoration: none;
  border-bottom: 1px solid var(--border);
  transition: background-color 0.2s ease;
  cursor: pointer;
}

.popular-search-item:hover {
  background-color: rgba(74, 124, 89, 0.05);
  color: var(--accent);
}

.popular-search-item:last-of-type {
  border-bottom: none;
}

/* Search Result Highlighting */
mark {
  background-color: var(--accent-gold);
  color: white;
  padding: 0 3px;
  border-radius: 2px;
  font-weight: 600;
}

/* Keyboard Navigation Active State */
.search-result-item.active {
  background-color: var(--bg-primary);
  color: var(--accent);
  border-left: 3px solid var(--accent);
  padding-left: calc(1rem - 3px);
}


/* === 12-components.css === */
/* ===== SEARCH RESULTS GRID ===== */
.search-results-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 2rem;
}

@media (max-width: 1024px) {
  .search-results-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .search-results-grid {
    grid-template-columns: 1fr;
  }

  .search-input-wrapper input {
    width: 150px;
  }
}

/* ========================================
   NEW COMPONENTS — March 2026 Update
   ======================================== */

/* ===== QUICK SUMMARY BOX ===== */
.quick-summary {
  background-color: var(--bg-secondary);
  border: 1px solid var(--border);
  border-top: 4px solid var(--accent);
  padding: 1.5rem 1.75rem;
  border-radius: 6px;
  margin: 0.5rem 0 2.5rem;
}

.quick-summary h4 {
  font-family: var(--font-heading);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--accent);
  margin-bottom: 0.75rem;
  margin-top: 0;
}

.quick-summary ul {
  margin-left: 1.25rem;
  margin-bottom: 0;
}

.quick-summary li {
  margin-bottom: 0.4rem;
  font-size: 0.95rem;
  color: var(--text-primary);
  line-height: 1.5;
}

/* ===== VERDICT BOX (Skip / Do Again) ===== */
.verdict-box {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin: 2.5rem 0;
}

.verdict-skip,
.verdict-do {
  padding: 1.25rem 1.5rem;
  border-radius: 6px;
}

.verdict-skip {
  background-color: rgba(192, 57, 43, 0.05);
  border-left: 4px solid #c0392b;
}

.verdict-do {
  background-color: rgba(74, 124, 89, 0.07);
  border-left: 4px solid var(--accent);
}

.verdict-skip h4,
.verdict-do h4 {
  margin-top: 0;
  font-family: var(--font-heading);
  font-size: 1rem;
  margin-bottom: 0.75rem;
}

.verdict-skip h4 { color: #c0392b; }
.verdict-do h4 { color: var(--accent); }

.verdict-skip ul,
.verdict-do ul {
  margin-left: 1.25rem;
  margin-bottom: 0;
}

.verdict-skip li,
.verdict-do li {
  margin-bottom: 0.4rem;
  font-size: 0.9rem;
  line-height: 1.5;
}

/* ===== ARTICLE PAGE IMPROVEMENTS ===== */
.article-header {
  margin-bottom: 2rem;
}

.article-hero-img {
  width: 100%;
  max-height: 480px;
  aspect-ratio: 2 / 1;
  object-fit: cover;
  border-radius: 10px;
  margin: 1.5rem 0 2.5rem;
  display: block;
}

/* Better related post cards inside articles */
.related-posts a.card,
.read-next a.card {
  display: block;
  text-decoration: none;
  color: inherit;
  border-bottom: none;
}

.related-posts a.card:hover,
.read-next a.card:hover {
  border-bottom: none;
}

/* Footer on article pages */
.article-footer-sep {
  margin-top: 4rem;
}

/* ===== RESOURCES PAGE ===== */


/* === 13-utilities.css === */
.resource-category-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-top: 3rem;
  margin-bottom: 0.5rem;
  padding-bottom: 0.75rem;
  border-bottom: 2px solid var(--border);
}

.resource-category-header h2 {
  margin: 0;
  border: none;
  padding: 0;
  font-size: 1.6rem;
}

.resource-icon {
  font-size: 1.5rem;
}

.resource-desc {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 1.5rem;
  margin-top: 0.25rem;
}

/* ===== ABOUT PAGE HERO ===== */
.about-hero {
  background: linear-gradient(135deg, var(--bg-dark) 0%, #2a5340 100%);
  color: var(--text-on-dark);
  padding: 5rem 2rem 4rem;
  text-align: center;
  margin-top: -1px;
}

.about-hero h1 {
  color: var(--text-on-dark);
  font-size: 3rem;
  margin-bottom: 1rem;
  text-align: center;
}

.about-hero p {
  color: rgba(248, 247, 244, 0.85);
  font-size: 1.1rem;
  max-width: 580px;
  margin: 0 auto;
}

/* ===== STAT STRIP (About Page) ===== */
.stat-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
  margin: 3rem 0;
  background: var(--bg-secondary);
}

.stat-strip .stat-item {
  padding: 2rem;
  text-align: center;
  border-right: 1px solid var(--border);
}

.stat-strip .stat-item:last-child {
  border-right: none;
}

.stat-strip .stat-number {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--accent);
  display: block;
  line-height: 1;
  margin-bottom: 0.5rem;
}

.stat-strip .stat-label {
  font-size: 0.85rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

@media (max-width: 600px) {
  .stat-strip {
    grid-template-columns: 1fr;
  }
  .stat-strip .stat-item {
    border-right: none;
    border-bottom: 1px solid var(--border);
  }
  .stat-strip .stat-item:last-child {
    border-bottom: none;
  }
  .about-hero h1 {
    font-size: 2.2rem;
  }
  .verdict-box {
    grid-template-columns: 1fr;
  }
}

/* ===== IMPROVED FOOTER ===== */
.footer-inner {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 2rem;
}

@media (max-width: 600px) {
  .footer-inner {
    grid-template-columns: 1fr;
    text-align: center;
  }
}

/* ===== NAV LOGO FONT UPGRADE ===== */
.nav-logo {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--text-primary);
  text-decoration: none;
  letter-spacing: -0.5px;
}

/* ===== ARTICLE SECTION DIVIDERS ===== */
article h2 {
  font-size: 1.7rem;
  border-top: 1px solid var(--border);
  padding-top: 1.5rem;
  margin-top: 2.5rem;
}

article h2:first-of-type {
  border-top: none;
  padding-top: 0;
  margin-top: 1.5rem;
}

/* ===== CARD IMAGE FALLBACK (fix read-next cards) ===== */
.card > img.card-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
}


/* === 14-animations.css === */
/* ===== KEYFRAME ANIMATIONS (NEW) ===== */

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

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

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-40px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(40px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes scaleIn {
  from {
    opacity: 0;
    transform: scale(0.95);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

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

@keyframes shimmer {
  0% {
    background-position: -1000px 0;
  }
  100% {
    background-position: 1000px 0;
  }
}

@keyframes glow {
  0% {
    box-shadow: 0 0 5px rgba(74, 124, 89, 0.3);
  }
  50% {
    box-shadow: 0 0 15px rgba(74, 124, 89, 0.5);
  }
  100% {
    box-shadow: 0 0 5px rgba(74, 124, 89, 0.3);
  }
}

/* Animation utility classes (for JS to apply) */
.animate-fade-in {
  animation: fadeIn 0.6s ease-out;
}

.animate-slide-up {
  animation: slideUp 0.6s ease-out;
}

.animate-slide-down {
  animation: slideDown 0.6s ease-out;
}

.animate-slide-left {
  animation: slideInLeft 0.6s ease-out;
}

.animate-slide-right {
  animation: slideInRight 0.6s ease-out;
}

.animate-scale-in {
  animation: scaleIn 0.6s ease-out;
}

.animate-pulse {
  animation: pulse 2s ease-in-out infinite;
}

.animate-glow {
  animation: glow 2s ease-in-out infinite;
}

/* Staggered card animations */
[data-index="0"] { animation-delay: 0ms; }
[data-index="1"] { animation-delay: 100ms; }
[data-index="2"] { animation-delay: 200ms; }
[data-index="3"] { animation-delay: 300ms; }
[data-index="4"] { animation-delay: 400ms; }
[data-index="5"] { animation-delay: 500ms; }
[data-index="6"] { animation-delay: 600ms; }
[data-index="7"] { animation-delay: 700ms; }
[data-index="8"] { animation-delay: 800ms; }
[data-index="9"] { animation-delay: 900ms; }

/* Author Bio Section */
.author-bio {
  margin: 3rem 0 2rem;
  padding: 2rem;
  background-color: var(--accent-cream, #f0ebe0);
  border-radius: 8px;
  border-left: 4px solid var(--accent);
}

.author-bio-content {
  display: flex;
  gap: 2rem;
  align-items: flex-start;
}

.author-image {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(26, 58, 42, 0.15);
}

.author-info h3 {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
  margin-top: 0;
}

.author-name {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.75rem;
}

.author-bio-text {
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--text-primary);
  margin-bottom: 1rem;
}

.author-link {
  color: var(--accent);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s;
}

.author-link:hover {
  color: var(--accent-hover);
  text-decoration: underline;
}

@media (max-width: 768px) {
  .author-bio-content {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .author-image {
    width: 100px;
    height: 100px;
  }
}


/* === 15-responsive.css === */
/* ===== EMAIL SIGNUP SECTION ===== */
.email-signup {
  background-color: var(--bg-secondary);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 5rem 0;
}

.signup-content {
  max-width: 600px;
  margin: 0 auto;
  text-align: center;
  padding: 0 2rem;
}

.email-signup h2 {
  border: none;
  margin-top: 0;
  margin-bottom: 1rem;
  font-size: 2rem;
}

.email-signup p {
  color: var(--text-muted);
  font-size: 1rem;
  margin-bottom: 2rem;
}

.signup-form {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
  justify-content: center;
}

.signup-form input {
  flex: 1;
  min-width: 220px;
  padding: 0.9rem 1.2rem;
  border: 1px solid var(--border);
  border-radius: 4px;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  transition: var(--transition);
}

.signup-form input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(74, 124, 89, 0.1);
}

.signup-form button {
  white-space: nowrap;
}

.signup-note {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin: 0;
  font-style: italic;
}

@media (max-width: 768px) {
  .email-signup {
    padding: 3rem 0;
  }

  .signup-form {
    flex-direction: column;
  }

  .signup-form input,
  .signup-form button {
    width: 100%;
  }

  .email-signup h2 {
    font-size: 1.5rem;
  }
}

/* ===== EXIT INTENT POPUP ===== */
.exit-popup {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: fadeIn 0.3s ease-out;
}

.exit-popup-overlay {
  position: absolute;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(2px);
}

.exit-popup-content {
  position: relative;
  z-index: 10000;
  background-color: var(--bg-secondary);
  border-radius: 10px;
  padding: 2.5rem;
  max-width: 420px;
  width: 90%;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  animation: slideUp 0.4s ease-out;
  text-align: center;
}

.exit-popup-content h3 {
  font-size: 1.5rem;
  margin-top: 0;
  margin-bottom: 1rem;
  color: var(--text-primary);
}

.exit-popup-content p {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

.exit-popup-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: none;
  border: none;
  font-size: 1.8rem;
  color: var(--text-muted);
  cursor: pointer;
  padding: 0;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.2s ease;
}

.exit-popup-close:hover {
  color: var(--text-primary);
}

#exit-popup-form {
  flex-direction: column;
  gap: 0.8rem;
  margin-bottom: 1rem;
}

#exit-popup-form input {
  width: 100%;
  padding: 0.9rem 1.2rem;
  border: 1px solid var(--border);
  border-radius: 4px;
  font-family: var(--font-sans);
  font-size: 0.95rem;
}

#exit-popup-form button {
  width: 100%;
}

.exit-popup-dismiss {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 0.9rem;
  cursor: pointer;
  padding: 0.5rem 0;
  transition: color 0.2s ease;
  font-style: italic;
}

.exit-popup-dismiss:hover {
  color: var(--text-primary);
}

/* ===== SHARE SECTION ===== */
.share-section {
  margin: 3rem 0;
  padding: 1.5rem;
  background-color: var(--bg-light, #fafafa);
  border-radius: 8px;
  border-top: 3px solid var(--accent);
}

.share-section h3 {
  margin-bottom: 1rem;
  font-size: 1rem;
  color: var(--text-primary);
  font-weight: 600;
  font-family: var(--font-heading);
}

.share-buttons {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.share-label {
  color: var(--text-primary);
}

.share-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1rem;
  background-color: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: 6px;
  cursor: pointer;
  text-decoration: none;
  color: var(--text-primary);
  font-size: 0.9rem;
  font-weight: 500;
  transition: all 0.2s ease;
}

.share-btn:hover {
  background-color: var(--accent);
  color: white;
  border-color: var(--accent);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(74, 124, 89, 0.2);
}

.share-btn span {
  font-size: 1.1rem;
  display: inline-block;
}

@media (max-width: 768px) {
  .share-buttons {
    gap: 0.25rem;
  }

  .share-btn {
    padding: 0.6rem 0.8rem;
    font-size: 0.85rem;
  }

  .share-btn span {
    font-size: 1rem;
  }
}

/* ===== UTILITY CLASSES ===== */

/* Text Alignment */
.text-center {
  text-align: center;
}

/* Flexbox Utilities */
.flex-center {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.flex-center-col {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  justify-content: center;
  align-items: center;
}

.flex-gap-1 {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

/* Spacing Margin Top */
.mt-0-5 { margin-top: 0.5rem; }
.mt-1 { margin-top: 1rem; }
.mt-1-5 { margin-top: 1.5rem; }
.mt-2 { margin-top: 2rem; }
.mt-2-5 { margin-top: 2.5rem; }
.mt-3 { margin-top: 3rem; }
.mt-4 { margin-top: 4rem; }

/* Spacing Margin Bottom */
.mb-0 { margin-bottom: 0; }
.mb-0-5 { margin-bottom: 0.5rem; }
.mb-1 { margin-bottom: 1rem; }
.mb-1-5 { margin-bottom: 1.5rem; }
.mb-2 { margin-bottom: 2rem; }
.mb-3 { margin-bottom: 3rem; }

/* Spacing Margin Left */
.ml-1-5 { margin-left: 1.5rem; }
.ml-2 { margin-left: 2rem; }

/* Spacing Margin Vertical */
.my-2 { margin-top: 1rem; margin-bottom: 1rem; }
.my-3 { margin-top: 2rem; margin-bottom: 2rem; }

/* Spacing Padding Vertical */
.py-4 { padding-top: 4rem; padding-bottom: 4rem; }

/* Spacing Padding */
.p-0 { padding: 0; }
.p-2 { padding: 2rem; }
.pt-0 { padding-top: 0; }
.pt-1-5 { padding-top: 1.5rem; }
.pb-0 { padding-bottom: 0; }

/* Text Color & Size */
.text-muted {
  color: var(--text-muted);
}

.text-sm {
  font-size: 0.875rem;
}

.text-0-95rem {
  font-size: 0.95rem;
}

.text-base {
  font-size: 1rem;
}

.text-lg {
  font-size: 1.05rem;
}

.text-1-125rem {
  font-size: 1.125rem;
}

.text-1-5 {
  font-size: 1.5rem;
}

/* Line Height Utilities */
.lh-2 {
  line-height: 2;
}

/* Typography & Display */
.font-weight-400 {
  font-weight: 400;
}

.border-none {
  border: none;
}

.border-top {
  border-top: 1px solid var(--border);
}

.border-bottom {
  border-bottom: 1px solid var(--border);
}

.border-bottom-light {
  border-bottom: 1px solid var(--border-light);
}

.rounded-lg {
  border-radius: 10px;
}

.rounded-md {
  border-radius: 8px;
}

/* Position & Transform */
.absolute-center {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
}

.absolute-center-x {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}

/* Opacity & Visibility */
.opacity-subtle {
  opacity: 0.7;
}

.opacity-0-8 {
  opacity: 0.8;
}

/* Cursor */
.cursor-default {
  cursor: default;
}

/* Max Width */
.max-w-600 {
  max-width: 600px;
}

.mx-auto {
  margin: 0 auto;
}

.mb-3 {
  margin-bottom: 3rem;
}

/* Image & Object Fit */
.img-cover {
  width: 100%;
  height: 380px;
  object-fit: cover;
  border-radius: 12px;
  display: block;
}

/* Button Styling */
.btn-style-gold {
  background-color: var(--accent-gold);
  border-color: var(--accent-gold);
}

.btn-style-transparent {
  background-color: transparent;
  color: var(--accent);
  border: 2px solid var(--accent);
}

/* Background & Layout */
.bg-secondary {
  background-color: var(--bg-secondary);
}

.section-padding {
  padding: 3rem 0;
}

/* Search Input */
.search-input-page {
  width: 100%;
  padding: 1rem;
  font-size: 1rem;
  border: 2px solid var(--border);
  border-radius: 8px;
  font-family: inherit;
}

@media (max-width: 600px) {
  .exit-popup-content {
    padding: 1.5rem;
    max-width: none;
  }

  .exit-popup-content h3 {
    font-size: 1.2rem;
  }
}

/* ===== NAV TRANSPARENCY (NEW) ===== */
nav {
  background-color: transparent;
  transition: background-color 0.3s ease;
  position: relative;
  z-index: 1000;
}

nav.nav-scrolled {
  background-color: rgba(26, 26, 26, 0.95);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

/* ===== UPDATED FOOTER (NEW) ===== */
footer {
  background-color: var(--bg-dark);
  color: white;
  margin-top: 4rem;
  padding: 2rem 0 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-col h4 {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  margin-bottom: 1rem;
  color: var(--accent-gold);
}

.footer-menu {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-menu li {
  margin-bottom: 0.5rem;
}

.footer-menu a {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  transition: color 0.2s;
  border-bottom: none;
}

.footer-menu a:hover {
  color: white;
  border-bottom: none;
}

.footer-desc {
  font-size: 0.95rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 1rem;
}

.latest-post {
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.latest-post a {
  color: var(--accent-gold);
  text-decoration: none;
  border-bottom: none;
}

.latest-post a:hover {
  text-decoration: underline;
  border-bottom: none;
}

.footer-email {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.footer-email input {
  flex: 1;
  padding: 0.75rem;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background-color: rgba(255, 255, 255, 0.05);
  color: white;
  border-radius: 4px;
  font-size: 0.9rem;
  font-family: var(--font-sans);
}

.footer-email input::placeholder {
  color: rgba(255, 255, 255, 0.4);
}

.footer-email input:focus {
  outline: none;
  border-color: var(--accent-gold);
  background-color: rgba(255, 255, 255, 0.1);
}

.btn-sm {
  padding: 0.75rem 1rem;
  font-size: 0.9rem;
}

.footer-social {
  display: flex;
  gap: 1rem;
  margin-top: 1rem;
}

.social-link {
  font-size: 1.5rem;
  opacity: 0.8;
  transition: opacity 0.2s, transform 0.2s;
  text-decoration: none;
  border-bottom: none;
}

.social-link:hover {
  opacity: 1;
  transform: scale(1.1);
  border-bottom: none;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 1rem;
  text-align: center;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.6);
}

.footer-bottom a {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  border-bottom: none;
}

.footer-bottom a:hover {
  color: white;
  border-bottom: none;
}

@media (max-width: 768px) {
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .footer-email {
    flex-direction: column;
  }

  .footer-email button {
    width: 100%;
  }

  .hero-stats .stat-item {
    padding: 1rem 1.25rem;
  }

  .hero-stats .stat-number {
    font-size: 1.4rem;
  }
}


/* === 16-dark-mode.css === */
/* ===== DARK MODE ===== */
:root.dark-mode {
  --bg-primary: #1a1a1a;
  --bg-secondary: #2a2a2a;
  --text-primary: #f8f7f4;
  --text-muted: #a0a0a0;
  --accent: #6aad7b;
  --accent-hover: #5d9a6e;
  --border: #3a3a3a;
  --bg-light: #242424;
}

/* ===== SUN / MOON TOGGLE ===== */
.dark-mode-btn {
  position: relative;
  width: 58px;
  height: 28px;
  padding: 0;
  border: none;
  border-radius: 14px;
  cursor: pointer;
  background: linear-gradient(135deg, #74b9e8 0%, #4da3d8 100%);
  box-shadow: 0 2px 8px rgba(74, 163, 216, 0.35), inset 0 1px 2px rgba(255,255,255,0.3);
  transition: background 0.4s ease, box-shadow 0.3s ease;
  flex-shrink: 0;
  overflow: hidden;
}

.dark-mode-btn:hover {
  transform: scale(1.06);
  box-shadow: 0 4px 14px rgba(74, 163, 216, 0.5), inset 0 1px 2px rgba(255,255,255,0.4);
}

.dark-mode-btn:active { transform: scale(0.97); }

.dm-track {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 6px;
  height: 100%;
  position: relative;
}

/* Sliding circle */
.dm-circle {
  position: absolute;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 2px 6px rgba(0,0,0,0.22);
  left: 3px;
  top: 50%;
  transform: translateY(-50%);
  transition: left 0.38s cubic-bezier(0.68, -0.3, 0.27, 1.3),
              background 0.4s ease,
              box-shadow 0.3s ease;
  z-index: 1;
}

/* Sun icon — visible in light mode */
.dm-sun {
  color: #fff;
  opacity: 1;
  position: relative;
  z-index: 2;
  transition: opacity 0.3s ease;
  flex-shrink: 0;
}

/* Moon icon — dimmed in light mode */
.dm-moon {
  color: rgba(255,255,255,0.45);
  position: relative;
  z-index: 2;
  transition: opacity 0.3s ease, color 0.3s ease;
  flex-shrink: 0;
}

/* ── Dark mode active state ── */
:root.dark-mode .dark-mode-btn {
  background: linear-gradient(135deg, #1c3358 0%, #2a4d7a 100%);
  box-shadow: 0 2px 8px rgba(28, 51, 88, 0.5), inset 0 1px 2px rgba(0,0,0,0.3);
}

:root.dark-mode .dark-mode-btn:hover {
  box-shadow: 0 4px 14px rgba(42, 77, 122, 0.7), inset 0 1px 2px rgba(0,0,0,0.4);
}

:root.dark-mode .dm-circle {
  left: 33px;
  background: #1a2e4a;
  box-shadow: 0 2px 6px rgba(0,0,0,0.4);
}

:root.dark-mode .dm-sun {
  opacity: 0.35;
}

:root.dark-mode .dm-moon {
  color: #c8dff5;
  opacity: 1;
}


/* === 17-accessibility.css === */
/* ===== TABLE OF CONTENTS ===== */
.table-of-contents {
  position: sticky;
  top: 120px;
  background-color: var(--bg-light, #f5f5f5);
  padding: 1rem;
  border-radius: 8px;
  margin: 2rem 0;
  border-left: 3px solid var(--accent);
  font-size: 0.9rem;
}

.toc-toggle {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 1rem;
  color: var(--accent);
  font-weight: 600;
  padding: 0;
  margin-bottom: 0.5rem;
  transition: color 0.2s;
}

.toc-toggle:hover {
  color: var(--accent-hover);
}

.toc-list {
  list-style-position: inside;
  margin: 0;
  padding: 0 0 0 1rem;
}

.toc-list li {
  margin-bottom: 0.5rem;
}

.toc-list a {
  color: var(--accent);
  text-decoration: none;
  transition: color 0.2s;
}

.toc-list a:hover {
  text-decoration: underline;
}

.toc-list li.active > a {
  font-weight: 600;
  color: var(--accent-hover);
}

@media (max-width: 768px) {
  .table-of-contents {
    position: static;
    margin: 1rem 0;
  }
}

/* ===== RESOURCE PAGE IMPROVEMENTS ===== */
.resource-category {
  margin-bottom: 3rem;
}

.category-intro {
  font-style: italic;
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.resource-category ul {
  list-style: none;
  padding: 0;
}

.resource-category li {
  margin-bottom: 1.5rem;
  padding-left: 1.5rem;
  border-left: 2px solid var(--accent);
}

.resource-category a {
  color: var(--accent);
  font-weight: 500;
}

/* ===== ACCESSIBILITY ===== */


/* === 18-interactive.css === */
/* ============================================================
   BoyceAbroad — Interactive & Page Components
   Covers: map, filter, calculator, quiz, about, resources
   ============================================================ */

/* ===== SHARED PAGE UTILITIES ===== */
.content-narrow { max-width: 760px; }
.bg-secondary-section { background-color: var(--bg-secondary); }

.page-hero-section {
  background-color: var(--bg-secondary);
  border-bottom: 1px solid var(--border);
  padding: 3rem 0 2.5rem;
}

.page-hero-inner {
  max-width: 760px;
}

.page-hero-sub {
  font-size: 1.1rem;
  color: var(--text-muted);
  line-height: 1.7;
  max-width: 620px;
  margin-top: 0.75rem;
}

.eyebrow {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 0.75rem;
}

.section-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 0.5rem;
  text-align: center;
}

.section-title-centered {
  text-align: center;
  margin-bottom: 0.75rem;
}

.section-subtitle-centered {
  text-align: center;
  color: var(--text-muted);
  margin-bottom: 2rem;
  font-size: 1rem;
}

.section-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 1.5rem;
}

.section-header-link {
  font-size: 0.9rem;
  color: var(--accent);
  font-weight: 600;
  text-decoration: none;
}

.section-header-link:hover { text-decoration: underline; }

.info-callout {
  background-color: rgba(74, 124, 89, 0.05);
  border-left: 4px solid var(--accent);
  padding: 1.5rem 1.75rem;
  border-radius: 6px;
}

.info-callout-title {
  font-family: var(--font-heading);
  color: var(--accent);
  margin-top: 0;
  margin-bottom: 1rem;
  font-size: 1rem;
}

.info-list {
  margin-left: 1.25rem;
  margin-bottom: 0;
}

.info-list li {
  margin-bottom: 0.4rem;
  font-size: 0.95rem;
  color: var(--text-muted);
}

.resource-tip {
  color: var(--text-muted);
  font-size: 0.9rem;
  font-style: italic;
}

/* ===== HERO IMPROVEMENTS ===== */
.hero-eyebrow {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 2.5px;
  color: rgba(255,255,255,0.7);
  font-weight: 600;
  margin-bottom: 1rem;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.btn-outline-white {
  background: transparent;
  border: 2px solid rgba(255,255,255,0.6);
  color: white;
  padding: 0.7rem 1.5rem;
  border-radius: 6px;
  font-weight: 600;
  text-decoration: none;
  transition: var(--transition);
  font-size: 0.95rem;
}

.btn-outline-white:hover {
  background: rgba(255,255,255,0.15);
  border-color: white;
}

.hero-photo-credit {
  font-size: 0.7rem;
  color: var(--text-muted);
  text-align: right;
  padding: 0.3rem 1rem 0;
  opacity: 0.6;
}

.hero-photo-credit a { color: inherit; text-decoration: underline; }

/* ===== CARD CITY BADGE ===== */
.card-city-badge {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--accent);
  margin-bottom: 0.4rem;
}

.card-city-tag {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--accent);
  margin-bottom: 0.4rem;
  margin-top: 0;
}

/* ===== RESOURCES PAGE ===== */
.resource-section-title {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  margin-top: 3rem;
  margin-bottom: 0.4rem;
}

.resource-section-intro {
  color: var(--text-muted);
  margin-bottom: 1.5rem;
  font-size: 0.95rem;
}

.resource-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 3rem;
}

.resource-item {
  background-color: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1.25rem 1.5rem;
  transition: var(--transition);
}

.resource-item:hover {
  border-color: var(--accent);
  box-shadow: 0 4px 12px rgba(74, 124, 89, 0.08);
}

.resource-name {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  margin: 0 0 0.4rem;
  color: var(--text-primary);
}

.resource-desc {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin: 0;
}

.packing-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 2rem;
}

@media (max-width: 600px) {
  .packing-grid { grid-template-columns: 1fr; }
}

.resource-cta {
  text-align: center;
  padding: 1rem 0 2rem;
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* ===== BLOG FILTER BAR ===== */
.blog-section-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.filter-btn {
  padding: 0.35rem 0.85rem;
  border: 1.5px solid var(--border);
  border-radius: 20px;
  background: var(--bg-secondary);
  color: var(--text-muted);
  font-size: 0.82rem;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition);
  font-family: var(--font-sans);
}

.filter-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.filter-btn.active {
  background: var(--accent);
  border-color: var(--accent);
  color: white;
}

.filter-empty {
  color: var(--text-muted);
  text-align: center;
  padding: 3rem 0;
  font-style: italic;
}

.stories-count { font-weight: 400; }

/* ===== INTERACTIVE MAP v2 — Leaflet + CartoDB ===== */

/* ── Section wrapper ── */
.map-section {
  background: #0a1628;
  padding: 0;
  position: relative;
  width: 100%;
}

/* ── Stats bar above map ── */
.map-stats-bar {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.65rem 1.25rem;
  background: rgba(255,255,255,0.03);
  border-bottom: 1px solid rgba(255,255,255,0.06);
  flex-wrap: wrap;
}

.map-stats-label {
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: rgba(255,255,255,0.3);
  font-family: var(--font-sans);
  font-weight: 600;
  white-space: nowrap;
}

.map-stats-badges {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.map-stat-badge {
  font-size: 0.7rem;
  padding: 0.18rem 0.65rem;
  border-radius: 20px;
  background: rgba(74, 124, 89, 0.12);
  color: #5a9e6e;
  font-weight: 700;
  font-family: var(--font-sans);
  border: 1px solid rgba(74, 124, 89, 0.22);
  white-space: nowrap;
}

.map-stat-badge strong {
  color: #7ec28a;
}

/* ── Map wrapper ── */
.map-wrapper {
  display: flex;
  position: relative;
  height: 560px;
  overflow: hidden;
}

/* ── Sidebar ── */
.map-sidebar {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 230px;
  background: rgba(8, 18, 30, 0.97);
  border-right: 1px solid rgba(255,255,255,0.06);
  z-index: 20;
  transform: translateX(-100%);
  transition: transform 0.28s cubic-bezier(0.4,0,0.2,1);
  display: flex;
  flex-direction: column;
  backdrop-filter: blur(12px);
}

.map-sidebar.open {
  transform: translateX(0);
}

.map-sidebar-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1rem 0.75rem;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  flex-shrink: 0;
}

.map-sidebar-title {
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 2.5px;
  color: rgba(255,255,255,0.35);
  font-weight: 700;
  font-family: var(--font-sans);
}

.map-sidebar-close {
  background: none;
  border: none;
  color: rgba(255,255,255,0.3);
  font-size: 1.2rem;
  cursor: pointer;
  padding: 0 2px;
  line-height: 1;
  transition: color 0.2s;
}
.map-sidebar-close:hover { color: rgba(255,255,255,0.6); }

.map-city-list {
  list-style: none;
  padding: 0.5rem 0;
  margin: 0;
  overflow-y: auto;
  flex: 1;
}

.map-city-item {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.6rem 1rem;
  cursor: pointer;
  transition: background 0.18s;
  border-left: 2px solid transparent;
}
.map-city-item:hover,
.map-city-item:focus {
  background: rgba(74, 124, 89, 0.08);
  border-left-color: #4a7c59;
  outline: none;
}

.map-city-emoji {
  font-size: 1rem;
  line-height: 1;
  flex-shrink: 0;
}

.map-city-item-info {
  flex: 1;
  min-width: 0;
}

.map-city-item-name {
  display: block;
  font-size: 0.85rem;
  color: #c8d6e5;
  font-weight: 600;
  font-family: var(--font-sans);
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.map-city-item-meta {
  display: block;
  font-size: 0.68rem;
  color: rgba(255,255,255,0.28);
  font-family: var(--font-sans);
  margin-top: 0.12rem;
}

.map-city-arrow {
  color: rgba(255,255,255,0.2);
  font-size: 1.1rem;
  line-height: 1;
  flex-shrink: 0;
  transition: color 0.18s, transform 0.18s;
}
.map-city-item:hover .map-city-arrow {
  color: #4a7c59;
  transform: translateX(2px);
}

/* ── Main map area ── */
.map-main {
  position: relative;
  flex: 1;
  overflow: hidden;
}

/* ── Leaflet map container ── */
#map-container {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  background: #0a1628;
}

/* Override Leaflet attribution to be subtle */
.leaflet-control-attribution {
  background: rgba(8, 18, 30, 0.6) !important;
  font-size: 0.58rem !important;
  color: rgba(255,255,255,0.25) !important;
  backdrop-filter: blur(4px);
  border-radius: 4px 0 0 0 !important;
}
.leaflet-control-attribution a {
  color: rgba(255,255,255,0.3) !important;
}

/* ── Custom Leaflet markers ── */
.map-pin-leaflet {
  background: transparent !important;
  border: none !important;
  cursor: pointer;
}

.mpl-outer {
  position: relative;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.mpl-ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 1.5px solid rgba(74, 124, 89, 0.45);
  animation: mpl-ring-pulse 2.8s ease-out infinite;
  pointer-events: none;
}

.mpl-ring-2 {
  animation-delay: 1.4s;
  border-color: rgba(201, 168, 76, 0.4);
}

@keyframes mpl-ring-pulse {
  0%   { transform: scale(0.5); opacity: 0.9; }
  100% { transform: scale(1.8); opacity: 0; }
}

.mpl-dot {
  width: 12px;
  height: 12px;
  background: #4a7c59;
  border: 2px solid rgba(10, 22, 42, 0.85);
  border-radius: 50%;
  position: relative;
  z-index: 2;
  cursor: pointer;
  transition: background 0.2s, transform 0.2s, box-shadow 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 8px rgba(74, 124, 89, 0.5);
}

.map-pin-leaflet:hover .mpl-dot {
  background: #c9a84c;
  transform: scale(1.35);
  box-shadow: 0 0 12px rgba(201, 168, 76, 0.6);
}

.mpl-active .mpl-dot {
  background: #c9a84c !important;
  transform: scale(1.5) !important;
  box-shadow: 0 0 0 3px rgba(201, 168, 76, 0.25), 0 0 16px rgba(201, 168, 76, 0.5) !important;
}

.mpl-active .mpl-ring {
  border-color: rgba(201, 168, 76, 0.5);
}

.mpl-count {
  font-size: 7px;
  color: white;
  font-weight: 800;
  font-family: var(--font-sans);
  line-height: 1;
  letter-spacing: -0.3px;
}

/* ── Filter bar ── */
.map-filter-bar {
  position: absolute;
  top: 14px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 5px;
  z-index: 10;
  flex-wrap: wrap;
  justify-content: center;
  padding: 0 14px;
  pointer-events: all;
}

.map-filter-btn {
  padding: 0.28rem 0.75rem;
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 20px;
  background: rgba(8, 18, 30, 0.88);
  color: rgba(255,255,255,0.45);
  font-size: 0.7rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.18s;
  font-family: var(--font-sans);
  backdrop-filter: blur(8px);
  white-space: nowrap;
  letter-spacing: 0.2px;
}
.map-filter-btn:hover {
  border-color: rgba(74,124,89,0.5);
  color: #5a9e6e;
  background: rgba(8, 18, 30, 0.95);
}
.map-filter-btn.active {
  background: #4a7c59;
  border-color: #4a7c59;
  color: white;
  box-shadow: 0 2px 8px rgba(74, 124, 89, 0.35);
}

/* ── Zoom controls ── */
.map-controls {
  position: absolute;
  bottom: 20px;
  right: 16px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  z-index: 10;
}

.map-ctrl {
  width: 32px;
  height: 32px;
  background: rgba(8, 18, 30, 0.92);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 8px;
  color: rgba(255,255,255,0.55);
  font-size: 1.1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.18s;
  line-height: 1;
  font-family: var(--font-sans);
  backdrop-filter: blur(8px);
}
.map-ctrl:hover {
  border-color: rgba(74,124,89,0.5);
  color: #5a9e6e;
  background: rgba(8, 18, 30, 0.99);
  transform: scale(1.06);
}

/* ── Sidebar toggle ── */
.map-sidebar-toggle {
  position: absolute;
  top: 14px;
  left: 14px;
  width: 32px;
  height: 32px;
  background: rgba(8, 18, 30, 0.92);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 8px;
  color: rgba(255,255,255,0.55);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 15;
  transition: all 0.18s;
  backdrop-filter: blur(8px);
}
.map-sidebar-toggle:hover {
  border-color: rgba(74,124,89,0.5);
  color: #5a9e6e;
}

/* ── Info card ── */
.map-info-card {
  position: absolute;
  top: 56px;
  right: 16px;
  width: 310px;
  max-width: calc(100% - 32px);
  background: rgba(8, 18, 30, 0.98);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 14px;
  overflow: hidden;
  z-index: 30;
  box-shadow: 0 12px 40px rgba(0,0,0,0.6), 0 0 0 1px rgba(74,124,89,0.12);
  flex-direction: column;
  display: none;
  opacity: 0;
  transform: translateY(-8px) scale(0.96);
  transition: opacity 0.22s ease, transform 0.22s ease;
  backdrop-filter: blur(16px);
}

.map-info-card.card-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

/* Close button */
#info-close {
  position: absolute;
  top: 0.65rem;
  right: 0.7rem;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.08);
  color: rgba(255,255,255,0.35);
  font-size: 1rem;
  cursor: pointer;
  line-height: 1;
  padding: 3px 7px;
  border-radius: 6px;
  transition: all 0.18s;
  z-index: 2;
}
#info-close:hover {
  background: rgba(255,255,255,0.1);
  color: rgba(255,255,255,0.7);
}

/* Info card header */
.map-info-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.9rem 2.8rem 0.75rem 1rem;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  gap: 0.75rem;
}

.map-info-header-left {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  flex: 1;
  min-width: 0;
}

.map-info-flag {
  font-size: 1.5rem;
  line-height: 1;
  flex-shrink: 0;
}

.map-info-city-name {
  display: block;
  font-family: var(--font-heading);
  font-size: 1.05rem;
  color: #e8d5a0;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.map-info-meta {
  display: block;
  font-size: 0.68rem;
  color: rgba(255,255,255,0.3);
  font-family: var(--font-sans);
  margin-top: 0.1rem;
  text-transform: uppercase;
  letter-spacing: 0.8px;
}

.map-info-badges {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.25rem;
  flex-shrink: 0;
}

.map-info-budget {
  font-size: 0.7rem;
  font-weight: 700;
  color: #5a9e6e;
  font-family: var(--font-sans);
  white-space: nowrap;
  background: rgba(74, 124, 89, 0.1);
  padding: 0.15rem 0.5rem;
  border-radius: 8px;
  border: 1px solid rgba(74, 124, 89, 0.2);
}

.map-info-count {
  font-size: 0.63rem;
  font-weight: 600;
  color: rgba(255,255,255,0.3);
  font-family: var(--font-sans);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  white-space: nowrap;
}

/* Info card articles — horizontal layout */
.map-info-article {
  display: flex;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  text-decoration: none;
  color: inherit;
  border-bottom: 1px solid rgba(255,255,255,0.04);
  transition: background 0.18s;
  align-items: flex-start;
}
.map-info-article:last-child { border-bottom: none; }
.map-info-article:hover { background: rgba(255,255,255,0.03); }

.map-info-thumb {
  width: 78px;
  height: 58px;
  object-fit: cover;
  border-radius: 7px;
  display: block;
  flex-shrink: 0;
  border: 1px solid rgba(255,255,255,0.06);
}

.map-info-text {
  flex: 1;
  min-width: 0;
}

.map-info-title {
  display: block;
  font-size: 0.83rem;
  font-weight: 600;
  color: #c8d6e5;
  font-family: var(--font-sans);
  line-height: 1.35;
}

.map-info-excerpt {
  display: block;
  font-size: 0.73rem;
  color: rgba(255,255,255,0.3);
  font-family: var(--font-sans);
  line-height: 1.45;
  margin-top: 0.25rem;
}

.map-info-cta {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  color: #4a7c59;
  font-family: var(--font-sans);
  margin-top: 0.4rem;
  letter-spacing: 0.2px;
  transition: color 0.18s;
}
.map-info-article:hover .map-info-cta { color: #c9a84c; }

/* ── Responsive ── */
@media (max-width: 640px) {
  .map-wrapper { height: 440px; }
  .map-stats-bar { padding: 0.5rem 1rem; gap: 0.6rem; }
  .map-stats-label { display: none; }

  .map-info-card {
    top: auto;
    bottom: 0;
    left: 0;
    right: 0;
    width: 100%;
    max-width: 100%;
    border-radius: 16px 16px 0 0;
    max-height: 58%;
    overflow-y: auto;
  }

  .map-filter-bar {
    top: 8px;
    left: 56px;
    transform: none;
    max-width: calc(100% - 70px);
  }
}

/* Dark mode: map section is always dark */

/* ===== BUDGET CALCULATOR ===== */
.budget-calc-widget {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
}

.calc-controls {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 0;
  border-bottom: 1px solid var(--border);
}

@media (max-width: 600px) {
  .calc-controls { grid-template-columns: 1fr; }
}

.calc-field {
  padding: 1.25rem 1.5rem;
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.calc-field:last-child { border-right: none; }

@media (max-width: 600px) {
  .calc-field { border-right: none; border-bottom: 1px solid var(--border); }
  .calc-field:last-child { border-bottom: none; }
}

.calc-field label {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-muted);
  font-weight: 600;
}

.calc-field select,
.calc-field input {
  border: none;
  background: transparent;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  color: var(--text-primary);
  padding: 0.2rem 1.5rem 0.2rem 0;
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
  outline: none;
  width: 100%;
  font-weight: 500;
}

.calc-field select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%234a7c59' stroke-width='1.5' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.1rem center;
  background-size: 11px 7px;
}

.calc-field select:hover {
  color: var(--accent);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%234a7c59' stroke-width='2' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}

.calc-field select:focus,
.calc-field input:focus { color: var(--accent); }

.calc-result {
  padding: 1.5rem;
}

.calc-breakdown { margin-bottom: 1rem; }

.calc-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.55rem 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.95rem;
}

.calc-row:last-child { border-bottom: none; }

.calc-total {
  font-weight: 700;
  font-size: 1.05rem;
  margin-top: 0.25rem;
}

.calc-total .calc-label { color: var(--text-primary); }
.calc-total .calc-value { color: var(--accent); font-size: 1.2rem; }

.calc-value { color: var(--text-primary); font-weight: 500; }

.calc-disclaimer {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
  font-style: italic;
}

.calc-read-more {
  display: inline-block;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--accent);
  text-decoration: none;
}
.calc-read-more:hover { text-decoration: underline; }

/* ===== QUIZ ===== */
.quiz-widget {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 2rem;
}

.quiz-step { display: none; }
.quiz-step.active { display: block; }

.quiz-question {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  color: var(--text-primary);
  margin-bottom: 1.25rem;
  margin-top: 0;
}

.quiz-options {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  margin-bottom: 1.5rem;
}

.quiz-opt {
  background: var(--bg-primary);
  border: 1.5px solid var(--border);
  border-radius: 8px;
  padding: 0.8rem 1.2rem;
  text-align: left;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  color: var(--text-primary);
  cursor: pointer;
  transition: var(--transition);
}

.quiz-opt:hover {
  border-color: var(--accent);
  background: rgba(74, 124, 89, 0.04);
}

.quiz-opt.selected {
  border-color: var(--accent);
  background: rgba(74, 124, 89, 0.08);
  color: var(--accent);
  font-weight: 600;
}

.quiz-progress {
  height: 3px;
  background: var(--border);
  border-radius: 2px;
  margin-top: 0.5rem;
  margin-bottom: 0.4rem;
}

.quiz-progress-bar {
  height: 100%;
  background: var(--accent);
  border-radius: 2px;
  transition: width 0.3s ease;
  width: 0%;
}

.quiz-progress-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-align: right;
  margin: 0;
}

.quiz-results { margin-top: 1rem; }

.quiz-results-title {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  margin-bottom: 1rem;
  color: var(--accent);
}

.quiz-result-cards {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.quiz-result-card {
  display: flex;
  gap: 1rem;
  align-items: center;
  text-decoration: none;
  color: inherit;
  background: var(--bg-primary);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.75rem;
  transition: var(--transition);
}

.quiz-result-card:hover {
  border-color: var(--accent);
  box-shadow: 0 4px 12px rgba(74, 124, 89, 0.1);
}

.quiz-result-img {
  width: 80px;
  height: 60px;
  object-fit: cover;
  border-radius: 6px;
  flex-shrink: 0;
}

.quiz-result-city {
  display: block;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--accent);
  font-weight: 700;
  margin-bottom: 0.2rem;
}

.quiz-result-title {
  display: block;
  font-size: 0.92rem;
  line-height: 1.35;
  margin-bottom: 0.2rem;
  color: var(--text-primary);
}

.quiz-result-excerpt {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin: 0;
  line-height: 1.4;
}

.quiz-restart {
  margin-top: 1.25rem;
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 0.85rem;
  cursor: pointer;
  text-decoration: underline;
  padding: 0;
  font-family: var(--font-sans);
}

.quiz-restart:hover { color: var(--accent); }

/* ===== COMING SOON SECTIONS ===== */
.coming-soon-section {
  margin-top: 3rem;
  padding-top: 2.5rem;
  border-top: 1px solid var(--border);
}

.coming-soon-badge {
  display: inline-flex;
  align-items: center;
  background: var(--bg-secondary);
  border: 1.5px solid var(--border);
  border-radius: 20px;
  padding: 0.2rem 0.7rem;
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--text-muted);
  vertical-align: middle;
  margin-left: 0.75rem;
  font-family: var(--font-sans);
}

.coming-soon-desc {
  color: var(--text-muted);
  font-size: 0.95rem;
  max-width: 560px;
  margin-bottom: 1.25rem;
  line-height: 1.65;
}

.coming-soon-cities {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.coming-soon-city {
  display: inline-block;
  background: var(--bg-secondary);
  border: 1.5px dashed var(--border);
  border-radius: 20px;
  padding: 0.3rem 0.9rem;
  font-size: 0.82rem;
  color: var(--text-muted);
  opacity: 0.7;
  font-family: var(--font-sans);
}

/* ===== RESOURCE LINKS ===== */
.resource-name a {
  color: var(--text-primary);
  text-decoration: none;
  transition: var(--transition);
}

.resource-name a:hover {
  color: var(--accent);
}

/* ===== BOYCE PROFILES (about page) ===== */
.boyce-profile {
  margin-bottom: 2.5rem;
}

.about-email-link {
  color: var(--accent);
  font-weight: 600;
  text-decoration: none;
  font-size: 1rem;
}

.about-email-link:hover {
  text-decoration: underline;
}

/* ===== FOOTER CONTACT ===== */
.footer-contact {
  margin-top: 0.6rem;
  font-size: 0.85rem;
}

.footer-contact a {
  color: var(--text-muted);
  text-decoration: none;
  transition: var(--transition);
}

.footer-contact a:hover {
  color: var(--accent);
}

/* ===== ABOUT PAGE ===== */
.about-hero {
  background-color: var(--bg-secondary);
  border-bottom: 1px solid var(--border);
}

.about-hero h1 {
  font-size: 2.8rem;
  line-height: 1.15;
}

.about-hero-sub {
  font-size: 1.1rem;
  color: var(--text-muted);
  max-width: 620px;
  margin: 1rem auto 0;
  line-height: 1.7;
}

.traveler-profile {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 3rem;
  align-items: start;
  margin-bottom: 3rem;
}

.traveler-profile-reverse {
  grid-template-columns: 1fr 220px;
}

.traveler-profile-reverse .traveler-image-wrap {
  order: 2;
}

.traveler-profile-reverse .traveler-content {
  order: 1;
}

@media (max-width: 700px) {
  .traveler-profile,
  .traveler-profile-reverse {
    grid-template-columns: 1fr;
  }
  .traveler-profile-reverse .traveler-image-wrap { order: 0; }
  .traveler-profile-reverse .traveler-content { order: 0; }
}

.traveler-image-wrap {
  position: relative;
}

.traveler-img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: 10px;
  display: block;
}

.traveler-img-placeholder {
  width: 100%;
  aspect-ratio: 3 / 4;
  background: linear-gradient(135deg, var(--accent) 0%, #3d6349 100%);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 5rem;
  color: white;
  font-family: var(--font-heading);
  font-weight: 700;
}

.traveler-name {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  margin-top: 0;
  margin-bottom: 0.2rem;
  color: var(--text-primary);
}

.traveler-tagline {
  font-size: 1rem;
  color: var(--accent);
  font-style: italic;
  margin-bottom: 1rem;
  line-height: 1.5;
}

.traveler-content p {
  color: var(--text-muted);
  margin-bottom: 0.75rem;
  line-height: 1.75;
  font-size: 0.96rem;
}

.traveler-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1rem;
}

.traveler-fact {
  background: var(--bg-primary);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 0.3rem 0.75rem;
  font-size: 0.82rem;
  color: var(--text-muted);
}

.traveler-divider {
  border: none;
  border-top: 1px dashed var(--border);
  margin: 2.5rem 0;
}

.about-quote {
  border-left: 4px solid var(--accent-gold);
  padding: 1rem 1.5rem;
  margin: 2.5rem 0 0;
  font-family: var(--font-heading);
  font-size: 1.1rem;
  color: var(--text-primary);
  font-style: italic;
  line-height: 1.7;
}

.how-we-travel-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin: 1.5rem 0 2rem;
}

@media (max-width: 600px) {
  .how-we-travel-grid { grid-template-columns: 1fr; }
}

.hwt-item {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1.25rem;
}

.hwt-icon { font-size: 1.5rem; margin-bottom: 0.5rem; }

.hwt-item h4 {
  font-family: var(--font-heading);
  margin: 0 0 0.5rem;
  font-size: 1rem;
}

.hwt-item p {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin: 0;
  line-height: 1.6;
}

/* ===== FOOTER IMPROVEMENTS ===== */
.footer-no-spam {
  margin-top: 0.75rem;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.footer-socials {
  display: flex;
  gap: 0.75rem;
  margin-top: 1rem;
}

.social-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  border: 1px solid var(--border);
  color: var(--text-muted);
  transition: var(--transition);
  text-decoration: none;
}

.social-icon:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: rgba(74, 124, 89, 0.06);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}
