@charset "UTF-8";
/* ============================================================
   COMPONENTS — Buttons, cards, social icons, stat strip,
                FAQ, sidebar, Instagram card, info cards,
                weather grid, pull quote, tip boxes,
                photo break, and all reusable UI pieces
   Source: All 6 HTML prototypes
   DO NOT add anything not present in the HTML source.
============================================================ */

/* ----------------------------------------------------------
   BUTTONS
---------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-xs);
  padding: 0 var(--space-lg);
  height: 44px;
  min-width: 44px;
  border-radius: var(--radius-full);
  font-family: var(--font-sans);
  font-size: var(--text-sm);
  font-weight: var(--fw-semibold);
  border: none;
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
  transition:
    transform var(--dur-base) var(--ease-out),
    background var(--dur-base),
    box-shadow var(--dur-base),
    border-color var(--dur-base);
  will-change: transform;
  -webkit-tap-highlight-color: transparent;
  background: transparent;
  color: var(--color-text-heading);
}

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

/* Base Hover */
.btn:hover {
  transform: translateY(-1px);
}

/* Modifiers */
/* .btn--outline {
  border: 1px solid var(--color-border-subtle);
  background: var(--color-white-100);
  color: var(--color-text-heading);
} */

.btn--white {
  background: var(--color-white-100);
  color: var(--color-brand-dark);
}

.btn--icon {
  padding: 0;
  width: 44px;
}

.btn .arrow {
  display: inline-block;
  transition: transform var(--dur-base) var(--ease-out);
}

.btn:hover .arrow {
  transform: translateX(4px);
}

/* Primary */
.btn-primary {
  background: var(--color-brand-primary);
  color: var(--color-white-100);
}

.btn-primary:hover {
  background: var(--color-brand-dark);
  color: var(--color-white-100);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(232, 112, 35, 0.35);
}

/* Ghost (on dark/image backgrounds) */
.btn-ghost {
  background: rgba(255, 255, 255, 0.15);
  border: 1.5px solid rgba(255, 255, 255, 0.5);
  color: var(--color-white-100);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.25);
  color: var(--color-white-100);
  transform: translateY(-2px);
}

/* Outline dark (about page) */
.btn-outline-dark {
  background: transparent;
  color: var(--color-brand-dark);
  border: 2px solid var(--color-brand-dark);
}

.btn-outline-dark:hover {
  background: var(--color-brand-dark);
  color: var(--color-white-100);
  transform: translateY(-2px);
}

/* Padding variant (about page) */
/* .btn--lg {
  padding: 0 var(--space-xl);
} */

/* ----------------------------------------------------------
   READ MORE LINK
---------------------------------------------------------- */
.read-more {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--color-brand-primary);
  font-weight: var(--fw-semibold);
  font-size: var(--text-sm);
  min-height: 44px;
  padding: var(--space-xs) 0;
  margin-top: var(--space-xs);
  align-self: flex-start;
  transition:
    color var(--dur-base),
    gap var(--dur-base);
  -webkit-tap-highlight-color: transparent;
}

.read-more::after {
  content: "\2192";
  transition: transform var(--dur-base) var(--ease-out);
}

.read-more:hover {
  color: var(--color-brand-dark);
  gap: 8px;
}

.read-more:hover::after {
  transform: translateX(4px);
}

/* ----------------------------------------------------------
   CARD TAG (category label above card titles)
---------------------------------------------------------- */
/* LEGACY: Consolidated into .label-caps 
.card-tag {
  display: inline-block;
  color: var(--color-brand-primary);
  font-size: var(--text-xs);
  font-weight: var(--fw-bold);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: var(--space-2xs);
  padding: 2px 0;
}
*/

/* ----------------------------------------------------------
   SOCIAL ROW + SOCIAL ICONS
---------------------------------------------------------- */
.social-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-md);
}

.social-icon {
  width: 42px;
  height: 42px;
  border-radius: var(--radius-full);
  background: var(--color-bg-base);
  border: 1px solid var(--color-border-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  transition:
    transform var(--dur-base) var(--ease-bounce),
    background var(--dur-base),
    border-color var(--dur-base);
  -webkit-tap-highlight-color: transparent;
}

.social-icon svg {
  width: 22px;
  height: 22px;
  fill: var(--color-text-muted);
  transition: fill var(--dur-base);
}

.social-icon.insta svg {
  fill: none;
  stroke: var(--color-text-muted);
  stroke-width: 2;
}

.social-icon:hover {
  transform: translateY(-3px) scale(1.1);
}

.social-icon:hover svg {
  fill: var(--color-white-100);
}

.social-icon.insta:hover svg {
  fill: none;
  stroke: var(--color-white-100);
}

.social-icon[aria-label="Facebook"]:hover {
  background: #3b5998;
  border-color: #3b5998;
}

.social-icon[aria-label="Instagram"]:hover {
  background: linear-gradient(45deg, #fcaf45, #fd5949, #d6249f);
  border-color: transparent;
}

.social-icon[aria-label="Twitter"]:hover {
  background: #000;
  border-color: #000;
}

.social-icon[aria-label="YouTube"]:hover {
  background: #c4302b;
  border-color: #c4302b;
}

/* ----------------------------------------------------------
   CARD BASE UTILITIES
   Standardizes inner content of all cards (Stories, Places, Hubs)
---------------------------------------------------------- */
/* ----------------------------------------------------------
   CARD COMPONENT (Unified System)
   Standardizes all post representations across the theme.
---------------------------------------------------------- */
.card {
  background: var(--color-white-100);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--color-border-subtle);
  display: flex;
  flex-direction: column;
  transition:
    transform var(--dur-base) var(--ease-out),
    box-shadow var(--dur-base);
  will-change: transform;
  text-decoration: none;
  color: inherit;
  height: 100%;
}

.card:hover {
  /* Removed translateY and shadow */
}

.card-img {
  overflow: hidden;
  position: relative;
  width: 100%;
}

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

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

.card-body {
  padding: var(--space-xl);
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  flex: 1;
}

.card-body--compact {
  padding: var(--space-md) !important;
}

.card-title {
  font-weight: var(--fw-bold);
  line-height: 1.25;
  color: var(--color-text-heading);
  margin: 0;
  transition: color var(--dur-base);
}

.card-title a {
  color: inherit;
  text-decoration: none;
}

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

.card-text {
  font-size: var(--text-base);
  line-height: 1.6;
  color: var(--color-text-muted);
  margin: 0;
}

/* MODIFIERS */

.card--horizontal {
  display: grid;
  grid-template-columns: 200px 1fr;
  align-items: stretch;
  gap: 0;
  max-height: 184px;
}

.card--horizontal .card-img {
  height: 100%;
}
/*
.card--story {
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-md);
}

.card--featured {
  border-radius: var(--radius-2xl);
}

.card--story:hover {
  
}*/

.card--overlay {
  position: relative;
  background: var(--color-brand-dark);
  color: var(--color-white-100);
  overflow: hidden;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.card--overlay .card-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

.card--overlay .card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--dur-slow) var(--ease-out);
}

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

.card--overlay::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.85) 0%,
    rgba(0, 0, 0, 0.2) 50%,
    transparent 100%
  );
  z-index: 1;
  pointer-events: none;
}

.card--overlay .card-body {
  position: relative;
  z-index: 2;
  height: 100%;
  justify-content: flex-end;
  background: none; /* Gradient is on card::after now */
}

.card--overlay .card-title,
.card--overlay .card-text,
.card--overlay .label-caps,
.card--overlay .read-more {
  color: var(--color-white-100);
}

.card--overlay .card-title {
  font-size: var(--text-xl);
  line-height: 1.2;
}

/* ----------------------------------------------------------
   QUOTE / BIO SECTION (home page)
---------------------------------------------------------- */
.quote-section {
  padding: var(--section-v) 0;
  background: var(--color-bg-base);
  overflow: hidden;
}

.quote-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--pad-h);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-4xl);
  align-items: center;
}

.quote-image-side {
  position: relative;
}

.quote-image-side::before {
  content: "\201C";
  position: absolute;
  top: -40px;
  left: -20px;
  font-family: Georgia, serif;
  font-size: 18rem;
  color: var(--color-brand-primary);
  opacity: 0.07;
  line-height: 1;
  pointer-events: none;
  z-index: 0;
}

.quote-img-frame {
  position: relative;
  z-index: 1;
  border-radius: var(--radius-2xl);
  overflow: hidden;
  aspect-ratio: 4 / 5;
  box-shadow: var(--shadow-lg);
}

.quote-img-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  transition: transform 0.8s var(--ease-out);
}

.quote-img-frame:hover img {
  transform: scale(1.03);
}

.quote-img-accent {
  position: absolute;
  bottom: var(--space-xl);
  left: 50%;
  transform: translateX(-50%);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: var(--radius-full);
  padding: var(--space-xs) var(--space-lg);
  white-space: nowrap;
  font-size: var(--text-xs);
  font-weight: var(--fw-bold);
  color: var(--color-brand-secondary);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  box-shadow: var(--shadow-md);
}

.quote-text-side {
  display: flex;
  flex-direction: column;
  gap: var(--space-xl);
}

.quote-label {
  font-size: var(--text-xs);
  font-weight: var(--fw-bold);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--color-brand-primary);
}

.quote-name {
  font-size: var(--text-2xl);
  line-height: 1.15;
}

.quote-body {
  font-family: var(--font-serif);
  font-size: var(--text-xl);
  line-height: 1.55;
  color: var(--color-text-main);
  font-style: italic;
  padding-left: var(--space-lg);
  border-left: 3px solid var(--color-brand-primary);
}

.quote-cta {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  font-size: var(--text-lg);
  font-weight: var(--fw-semibold);
  color: var(--color-brand-secondary);
  transition:
    gap var(--dur-base),
    color var(--dur-base);
}

.quote-cta .arrow {
  display: inline-block;
  transition: transform var(--dur-base) var(--ease-out);
}

.quote-cta:hover {
  color: var(--color-brand-primary);
  gap: var(--space-sm);
}

.quote-cta:hover .arrow {
  transform: translateX(6px);
}

/* ----------------------------------------------------------
   STAT STRIP (about page)
---------------------------------------------------------- */
.stat-strip {
  background: var(--color-brand-dark);
  padding: var(--space-3xl) var(--pad-h);
}

.stat-strip-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-4xl);
  text-align: center;
}

.stat-text {
  color: var(--color-text-inverse);
}

/* ----------------------------------------------------------
   PULL QUOTE (about page)
---------------------------------------------------------- */
.pull-quote {
  padding: var(--space-5xl) var(--pad-h);
  background: var(--color-bg-warm);
  position: relative;
  overflow: hidden;
  text-align: center;
}

.pull-quote::before {
  content: "\201C";
  position: absolute;
  top: -40px;
  left: 50%;
  transform: translateX(-50%);
  font-family: Georgia, serif;
  font-size: 20rem;
  color: var(--color-brand-primary);
  opacity: 0.06;
  line-height: 1;
  pointer-events: none;
}

.pull-quote-text {
  position: relative;
  font-family: var(--font-serif);
  font-size: clamp(1.5rem, 3.5vw, 2.4rem);
  font-weight: var(--fw-medium);
  color: var(--color-text-heading);
  line-height: 1.4;
  max-width: 780px;
  margin: 0 auto var(--space-lg);
  font-style: italic;
}

.pull-quote-attr {
  font-size: var(--text-sm);
  color: var(--color-brand-primary);
  font-weight: var(--fw-bold);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

/* ----------------------------------------------------------
   CONTENT SECTIONS — about page alternating layout
---------------------------------------------------------- */
.content-section {
  padding: var(--space-4xl) 0;
}

.content-section + .content-section {
  border-top: 1px solid var(--color-border-subtle);
}

.content-section-inner {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: var(--space-4xl);
  align-items: start;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--pad-h);
}

.section-number {
  font-family: var(--font-serif);
  font-size: clamp(3rem, 6vw, 5rem);
  color: var(--color-brand-primary);
  opacity: 0.15;
  line-height: 1;
  display: block;
  margin-bottom: var(--space-xs);
}

.section-label {
  font-family: var(--font-sans);
  font-size: var(--text-xs);
  font-weight: var(--fw-bold);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--color-brand-secondary);
}

.section-content-col h2 {
  font-size: var(--text-2xl);
  margin-bottom: var(--space-lg);
  line-height: 1.2;
}

.section-content-col p {
  font-size: var(--text-base);
  line-height: 1.85;
  color: var(--color-text-main);
  margin-bottom: var(--space-md);
}

.section-content-col p:last-child {
  margin-bottom: 0;
}

.section-content-col a {
  color: var(--color-brand-primary);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* Inline highlight (about page) */
.inline-highlight {
  border-left: 3px solid var(--color-brand-primary);
  padding: var(--space-md) var(--space-lg);
  background: var(--color-bg-warm);
  border-radius: 0 var(--radius-lg) var(--radius-lg) 0;
  margin: var(--space-xl) 0;
  font-family: var(--font-serif);
  font-size: var(--text-lg);
  font-style: italic;
  color: var(--color-text-heading);
  line-height: 1.5;
}

/* ----------------------------------------------------------
   PHOTO BREAK (about page)
---------------------------------------------------------- */

.photo-break img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 35%;
  filter: brightness(0.55);
}

.photo-break::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to right,
    rgba(0, 0, 0, 0.6) 0%,
    rgba(0, 0, 0, 0.1) 60%,
    transparent 100%
  );
}

.photo-break-quote {
  font-family: var(--font-serif);
  font-size: clamp(1.4rem, 3vw, 2rem);
  color: var(--color-white-100);
  line-height: 1.35;
  font-style: italic;
  margin-bottom: var(--space-lg);
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.3);
  max-width: var(--content-w);
}

/* ----------------------------------------------------------
   CTA SECTION (about page)
---------------------------------------------------------- */
.cta-section {
  padding: var(--space-5xl) var(--pad-h);
  text-align: center;
  background: var(--color-bg-base);
}
/*
.cta-inner {
  max-width: var(--cta-max-w);
  margin: 0 auto;
} */

.cta-eyebrow {
  display: block;
  font-size: var(--text-xs);
  font-weight: var(--fw-bold);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--color-brand-primary);
  margin-bottom: var(--space-md);
}

.cta-heading {
  font-size: var(--text-2xl);
  margin-bottom: var(--space-md);
}

.cta-body {
  color: var(--color-text-muted);
  font-size: var(--text-base);
  line-height: 1.7;
  margin-bottom: var(--space-xl);
}

.cta-buttons {
  display: flex;
  gap: var(--space-md);
  justify-content: center;
  flex-wrap: wrap;
}

/* ----------------------------------------------------------
   HUB GRID — 3-column (city page)
---------------------------------------------------------- */
/* .hub-section {
  padding: var(--space-xl) 0 var(--section-v);
} */

/* LEGACY: Consolidated into .h-section and .h-sub
.hub-heading {
  font-size: var(--text-2xl);
  margin-bottom: var(--space-xs);
}

.hub-subheading {
  color: var(--color-text-muted);
  font-size: var(--text-sm);
  margin-bottom: var(--space-xl);
  line-height: 1.5;
}
*/

.hub-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-md);
  align-items: start;
}

/* End of Card System Modifiers */

/* Elements */
/* Block removed */

.hub-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
  flex: 1;
}

.hub-list li {
  color: var(--color-text-main);
  padding: var(--space-2xs) 0;
}

.hub-list li strong {
  color: var(--color-brand-primary);
}

/* ----------------------------------------------------------
   POST CARDS GRID — 2-col (city page other posts)
---------------------------------------------------------- */
.other-posts-section {
  padding: 0 0 var(--section-v);
}

.posts-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-lg);
}

/* 3-col variant (country page travel plan) */
/* .posts-grid--3col {
  grid-template-columns: repeat(3, 1fr);
} */

/* ----------------------------------------------------------
   SIBLINGS CARD (city page — other cities in country)
---------------------------------------------------------- */
.siblings-section {
  padding: 0 0 var(--section-v);
}

.siblings-card {
  position: relative;
  border-radius: var(--radius-2xl);
  overflow: hidden;
  min-height: 280px;
  background: var(--color-brand-dark);
}

.siblings-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.45);
  transition: transform 0.8s var(--ease-out);
}

.siblings-card:hover img {
  transform: scale(1.03);
}

.siblings-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.85) 0%,
    rgba(0, 0, 0, 0.2) 60%,
    transparent 100%
  );
}

.siblings-body {
  position: relative;
  z-index: 1;
  padding: var(--space-xl);
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: var(--space-md);
}

.siblings-body h2 {
  color: var(--color-white-100);
  font-size: var(--text-2xl);
}

.siblings-body p {
  color: rgba(255, 255, 255, 0.7);
  font-size: var(--text-sm);
}

.city-tags {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-xs);
  margin-top: var(--space-sm);
}

.city-tag {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 var(--space-lg);
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: var(--color-white-100);
  font-size: var(--text-sm);
  font-weight: var(--fw-semibold);
  border-radius: var(--radius-full);
  transition:
    background var(--dur-base),
    border-color var(--dur-base);
  -webkit-tap-highlight-color: transparent;
}

.city-tag:hover {
  background: var(--color-brand-primary);
  border-color: var(--color-brand-primary);
  color: var(--color-white-100);
}

/* ----------------------------------------------------------
   FAQ SECTION
---------------------------------------------------------- */
.faq-layout {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: var(--space-4xl);
  align-items: start;
}

.faq-list {
  display: flex;
  flex-direction: column;
}

.faq-item {
  border-bottom: 1px solid var(--color-border-subtle);
}

.faq-question {
  font-family: var(--font-sans);
  font-size: var(--text-base);
  font-weight: var(--fw-semibold);
  color: var(--color-text-heading);
  cursor: pointer;
  padding: var(--space-lg) 0;
  position: relative;
  padding-right: var(--space-xl);
  display: block;
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  min-height: 44px;
  transition: color var(--dur-base);
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}

.faq-question::after {
  content: "+";
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.4rem;
  line-height: 1;
  color: var(--color-brand-primary);
}

.faq-item.open .faq-question {
  color: var(--color-brand-primary);
}

.faq-item.open .faq-question::after {
  content: "\2013";
}

/* Smooth grid animation — no max-height jump */
.faq-answer-wrap {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.35s var(--ease-out);
}

.faq-item.open .faq-answer-wrap {
  grid-template-rows: 1fr;
}

.faq-answer {
  overflow: hidden;
}

.faq-answer-inner {
  padding-bottom: var(--space-lg);
  font-size: var(--text-sm);
  line-height: 1.8;
  color: var(--color-text-main);
}

.faq-answer-inner p {
  margin-bottom: var(--space-sm);
}

.faq-answer-inner p:last-child {
  margin-bottom: 0;
}

/* FAQ side column */
.faq-side {
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
}

/* ----------------------------------------------------------
   INSTAGRAM CARD (FAQ sidebar)
---------------------------------------------------------- */
.insta-card {
  border-radius: var(--radius-xl);
  overflow: hidden;
  background: linear-gradient(135deg, #833ab4 0%, #fd5949 50%, #fcaf45 100%);
  padding: var(--space-xl);
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.insta-card-icon svg {
  width: 32px;
  height: 32px;
  stroke: var(--color-white-100);
  fill: none;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.insta-card-title {
  font-family: var(--font-serif);
  font-size: var(--text-xl);
  color: var(--color-white-100);
  line-height: 1.2;
}

.insta-card p {
  font-size: var(--text-sm);
  color: rgba(255, 255, 255, 0.85);
  line-height: 1.5;
}

.insta-card a {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--color-white-100);
  font-weight: var(--fw-semibold);
  font-size: var(--text-sm);
  min-height: 44px;
  transition: gap var(--dur-base);
  -webkit-tap-highlight-color: transparent;
}

.insta-card a::after {
  content: "\2192";
  transition: transform var(--dur-base) var(--ease-out);
}

.insta-card a:hover {
  gap: 8px;
}

.insta-card a:hover::after {
  transform: translateX(4px);
}

/* ----------------------------------------------------------
   COUNTRY CARDS GRID (destinations page)
---------------------------------------------------------- */
.country-card {
  background: var(--color-white-100);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-xs);
  border: 1px solid var(--color-border-subtle);
  display: flex;
  flex-direction: column;
  transition:
    transform var(--dur-base) var(--ease-out),
    box-shadow var(--dur-base);
  will-change: transform;
  text-decoration: none;
}

.country-card-img {
  height: 160px;
  overflow: hidden;
  flex-shrink: 0;
  background: var(--color-brand-dark);
  position: relative;
}

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

.country-card:hover .country-card-img img {
  transform: scale(1.08);
}

.country-story-badge {
  position: absolute;
  top: var(--space-sm);
  right: var(--space-sm);
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(4px);
  color: var(--color-white-100);
  padding: 4px 10px;
  border-radius: var(--radius-full);
  font-size: var(--text-xs);
  font-weight: var(--fw-bold);
  z-index: 2;
}

.country-card-body {
  padding: var(--space-md) var(--space-lg) var(--space-lg);
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
}

.country-card-title {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
  font-family: var(--font-serif);
  font-size: var(--text-xl);
  color: var(--color-text-heading);
  font-weight: var(--fw-medium);
  margin: 0;
}

.country-flag {
  font-size: 1.3rem;
  line-height: 1;
  flex-shrink: 0;
}

.country-story-count {
  font-size: var(--text-xs);
  color: var(--color-brand-secondary);
  font-weight: var(--fw-bold);
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.country-cities {
  font-size: var(--text-sm);
  line-height: 1.5;
  color: var(--color-text-muted);
  margin: var(--space-xs) 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.country-explore {
  margin-top: auto;
  font-size: var(--text-sm);
  font-weight: var(--fw-bold);
  color: var(--color-brand-primary);
  display: flex;
  align-items: center;
  gap: 4px;
}

.country-explore::after {
  content: "\2192";
  transition: transform var(--dur-base);
}

.country-card:hover .country-explore::after {
  transform: translateX(4px);
}

/* ----------------------------------------------------------
   COMING SOON GRID (destinations page)
---------------------------------------------------------- */
.coming-pill {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
  padding: 8px 16px;
  background: var(--color-bg-base);
  border: 1px solid var(--color-border-subtle);
  border-radius: var(--radius-full);
}

.coming-flag {
  font-size: 1.2rem;
}

.coming-name {
  font-size: var(--text-sm);
  font-weight: var(--fw-semibold);
  color: var(--color-text-muted);
}

/* ----------------------------------------------------------
   INFO CARDS (country page — weather, currency, transport)
---------------------------------------------------------- */
.info-section {
  padding: var(--section-v) 0;
  background: var(--color-bg-base);
}

.info-main-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  grid-template-rows: auto auto;
  grid-template-areas:
    "weather currency"
    "weather transport";
  gap: var(--space-lg);
  margin-bottom: var(--space-lg);
}

.info-extra-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: var(--space-lg);
}

.info-card {
  background: var(--color-white-100);
  border-radius: var(--radius-xl);
  padding: var(--space-xl);
  position: relative;
  overflow: hidden;
  border: 1px solid var(--color-border-subtle);
  border-top-width: 3px;
}

.info-card h3 {
  font-size: var(--text-xl);
  margin-bottom: var(--space-sm);
  position: relative;
  z-index: 1;
}

.info-card p {
  font-size: var(--text-sm);
  line-height: 1.75;
  color: var(--color-text-main);
  position: relative;
  z-index: 1;
}

.weather-card {
  grid-area: weather;
  border-top-color: var(--color-brand-secondary);
}

.currency-card {
  grid-area: currency;
  border-top-color: var(--color-brand-primary);
}

.transport-card {
  grid-area: transport;
  border-top-color: var(--color-highlight-blue-text);
}

.info-extra-grid .info-card {
  background: var(--color-bg-base);
  border-top-color: var(--color-brand-secondary);
}

.info-card-icon {
  position: absolute;
  bottom: -16px;
  right: -16px;
  width: 120px;
  height: 120px;
  opacity: 0.06;
  color: var(--color-brand-dark);
  pointer-events: none;
}

.info-card-icon svg {
  width: 100%;
  height: 100%;
}

/* ----------------------------------------------------------
   WEATHER GRID (inside weather card)
---------------------------------------------------------- */
.weather-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-sm);
  margin-top: var(--space-lg);
  position: relative;
  z-index: 1;
}

.weather-item {
  background: var(--color-bg-base);
  border-radius: var(--radius-lg);
  padding: var(--space-sm) var(--space-md);
  display: grid;
  grid-template-columns: 32px 1fr auto;
  gap: var(--space-sm);
  align-items: center;
  border: 1px solid var(--color-border-subtle);
}

.w-icon {
  display: flex;
  align-items: center;
  justify-content: center;
}

.w-icon svg {
  width: 24px;
  height: 24px;
}

.w-meta {
  display: flex;
  flex-direction: column;
  line-height: 1.25;
}

.w-meta strong {
  font-size: var(--text-sm);
  color: var(--color-text-heading);
}

.w-meta small {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
}

.w-temp {
  font-weight: var(--fw-bold);
  font-size: var(--text-sm);
  white-space: nowrap;
}

/* Weather colour themes */
.w-sun .w-icon svg,
.w-sun .w-temp {
  color: var(--w-sun);
}
.w-rain .w-icon svg,
.w-rain .w-temp {
  color: var(--w-rain);
}
.w-cloud .w-icon svg,
.w-cloud .w-temp {
  color: var(--w-cloud);
}
.w-snow .w-icon svg,
.w-snow .w-temp {
  color: var(--w-snow);
}
.w-storm .w-icon svg,
.w-storm .w-temp {
  color: var(--w-storm);
}

/* ----------------------------------------------------------
   LIVE WEATHER / CURRENCY BARS (country page)
---------------------------------------------------------- */
.live-weather-bar {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  background: var(--color-bg-base);
  border: 1px solid var(--color-border-subtle);
  border-radius: var(--radius-lg);
  padding: var(--space-sm) var(--space-md);
  margin-bottom: var(--space-md);
}

.live-temp {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: var(--fw-medium);
  color: var(--color-brand-primary);
  line-height: 1;
  min-width: 3ch;
}

.live-label {
  font-size: var(--text-base);
  font-weight: var(--fw-semibold);
  color: var(--color-text-heading);
}

.live-time {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  margin-top: 2px;
}

.live-currency-bar {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  background: var(--color-highlight-yellow-bg);
  border: 1px solid rgba(232, 112, 35, 0.15);
  border-radius: var(--radius-lg);
  padding: var(--space-sm) var(--space-md);
  margin-bottom: var(--space-md);
}

.live-currency-icon {
  font-size: 1.3rem;
  line-height: 1;
  flex-shrink: 0;
}

.live-currency-rate {
  font-size: var(--text-base);
  font-weight: var(--fw-bold);
  color: var(--color-brand-primary);
}

/* ----------------------------------------------------------
   MINI CARD (country page FAQ sidebar)
---------------------------------------------------------- */
.mini-card {
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--color-border-subtle);
  position: relative;
  min-height: 200px;
  background: var(--color-brand-dark);
  transition:
    transform var(--dur-base),
    box-shadow var(--dur-base);
}

.mini-card:hover {
  /* Removed translateY and shadow */
}

.mini-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.45;
  transition:
    opacity 0.4s,
    transform 0.7s var(--ease-out);
}

.mini-card:hover img {
  opacity: 0.35;
  transform: scale(1.04);
}

.mini-card-body {
  position: relative;
  z-index: 1;
  padding: var(--space-xl);
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  color: var(--color-white-100);
}

.mini-card-body .card-tag {
  color: var(--color-brand-primary);
}

.mini-card-body h3 {
  color: var(--color-white-100);
  font-size: var(--text-base);
  margin-bottom: var(--space-xs);
}

/* ----------------------------------------------------------
   BEFORE YOU TRAVEL (country page)
---------------------------------------------------------- */
.before-section {
  padding: var(--section-v) 0;
}

.before-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: var(--space-4xl);
  align-items: center;
}

.before-img {
  border-radius: var(--radius-2xl);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  aspect-ratio: 4 / 3;
}

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

.before-content {
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
}

.before-content h2 {
  font-size: var(--text-2xl);
  margin-bottom: 0;
}

.before-content > p {
  color: var(--color-text-muted);
  line-height: 1.75;
  margin-top: 0;
}

/* Action grid */
.action-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-sm);
}

.action-item a {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  min-height: 60px;
  padding: var(--space-sm) var(--space-md);
  border-radius: var(--radius-xl);
  border: none;
  transition:
    transform var(--dur-base) var(--ease-out),
    box-shadow var(--dur-base);
  -webkit-tap-highlight-color: transparent;
  text-decoration: none;
}

.action-item a:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.action-item:nth-child(1) a {
  background: var(--color-highlight-yellow-bg);
  border: 1px solid rgba(232, 112, 35, 0.2);
}

.action-item:nth-child(1) .action-icon {
  background: rgba(232, 112, 35, 0.12);
}

.action-item:nth-child(1) .action-icon svg {
  stroke: var(--color-brand-primary);
}

.action-item:nth-child(2) a {
  background: var(--color-highlight-green-bg);
  border: 1px solid rgba(63, 99, 95, 0.2);
}

.action-item:nth-child(2) .action-icon {
  background: rgba(63, 99, 95, 0.12);
}

.action-item:nth-child(2) .action-icon svg {
  stroke: var(--color-brand-secondary);
}

.action-item:nth-child(3) a {
  background: var(--color-highlight-blue-bg);
  border: 1px solid rgba(52, 152, 219, 0.2);
}

.action-item:nth-child(3) .action-icon {
  background: rgba(52, 152, 219, 0.12);
}

.action-item:nth-child(3) .action-icon svg {
  stroke: var(--color-highlight-blue-text);
}

.action-item:nth-child(4) a {
  background: var(--color-bg-warm);
  border: 1px solid rgba(192, 57, 43, 0.15);
}

.action-item:nth-child(4) .action-icon {
  background: rgba(192, 57, 43, 0.1);
}

.action-item:nth-child(4) .action-icon svg {
  stroke: var(--color-status-error);
}

.action-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.action-icon svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
}

.action-text {
  display: flex;
  flex-direction: column;
  line-height: 1.3;
}

.action-text strong {
  font-size: var(--text-sm);
  font-weight: var(--fw-semibold);
  color: var(--color-text-heading);
}

.action-text small {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
}

/* ----------------------------------------------------------
   RELATED POSTS (single post)
---------------------------------------------------------- */

.related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--space-lg);
}

.related-body {
  flex: 1;
  min-width: 0;
}

.related-body h3 {
  font-size: var(--text-sm);
  line-height: 1.35;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.related-body h3 a {
  color: var(--color-text-heading);
}

.related-body h3 a:hover {
  color: var(--color-brand-primary);
}

/* ----------------------------------------------------------
   CHAPTER WIDGET (single post sidebar)
---------------------------------------------------------- */

.chapter-widget {
  background: var(--color-bg-base);
  border: 1px solid var(--color-border-subtle);
  border-radius: var(--radius-xl);
  padding: var(--space-md);
}

.chapter-widget-title {
  font-family: var(--font-sans);
  font-size: var(--text-sm);
  font-weight: var(--fw-bold);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-text-muted);
  margin-bottom: var(--space-lg);
}

.chapter-list {
  list-style: none;
  padding: 0;
  margin: 0;
  position: relative;
}

.chapter-list::before {
  content: "";
  position: absolute;
  left: 8px;
  top: 12px;
  width: 2px;
  height: calc(100% - 24px);
  background: var(--color-border-subtle);
  border-radius: 2px;
}

.chapter-list li {
  padding-left: var(--space-xl);
  position: relative;
  margin-bottom: var(--space-2xs);
}

.chapter-list li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 50%;
  transform: translateY(-50%);
  width: 14px;
  height: 14px;
  border-radius: var(--radius-full);
  background: var(--color-bg-base);
  border: 2px solid var(--color-border-subtle);
  transition:
    background var(--dur-base),
    border-color var(--dur-base);
  z-index: 1;
}

.chapter-list li.active::before {
  background: var(--color-brand-primary);
  border-color: var(--color-brand-primary);
}

.chapter-list a {
  display: block;
  padding: var(--space-xs) var(--space-sm);

  font-size: var(--text-xs);

  line-height: 1.5;
  white-space: normal;
  word-break: break-word;
  transition:
    color var(--dur-base),
    background var(--dur-base);
}

.chapter-list li.active a {
  color: var(--color-brand-primary);
  background: rgba(232, 112, 35, 0.07);
  font-weight: var(--fw-semibold);
}

.chapter-list a:hover {
  color: var(--color-brand-secondary);
  background: var(--color-highlight-green-bg);
}

/* ----------------------------------------------------------
   MOBILE CHAPTER BUBBLE + OVERLAY (single post)
---------------------------------------------------------- */
.chapter-bubble {
  position: fixed;
  bottom: calc(var(--space-xl) + var(--safe-bottom));
  right: var(--space-lg);
  width: 52px;
  height: 52px;
  border-radius: var(--radius-full);
  background: var(--color-brand-dark);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(26, 50, 56, 0.4);
  z-index: var(--z-overlay);
  opacity: 0;
  transform: scale(0.6);
  pointer-events: none;
  transition:
    opacity 0.35s var(--ease-out),
    transform 0.35s var(--ease-bounce),
    background var(--dur-base);
  -webkit-tap-highlight-color: transparent;
}

.chapter-bubble.bubble-visible {
  opacity: 1;
  transform: scale(1);
  pointer-events: auto;
}

.chapter-bubble svg {
  width: 22px;
  height: 22px;
  stroke: var(--color-white-100);
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
}

.bubble-dot {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 8px;
  height: 8px;
  border-radius: var(--radius-full);
  background: var(--color-brand-primary);
  opacity: 0;
  transform: scale(0);
  transition:
    opacity var(--dur-base),
    transform var(--dur-base) var(--ease-bounce);
}

.chapter-bubble.dot-active .bubble-dot {
  opacity: 1;
  transform: scale(1);
}

.chapter-bubble.open {
  background: var(--color-status-error);
}

.chapter-overlay {
  position: fixed;
  inset: 0;
  background: var(--color-bg-base);
  z-index: var(--z-overlay);
  display: flex;
  flex-direction: column;
  opacity: 0;
  visibility: hidden;
  transform: translateY(100%);
  transition:
    opacity var(--dur-slow) var(--ease-out),
    visibility var(--dur-slow),
    transform var(--dur-slow) var(--ease-out);
  padding-bottom: var(--safe-bottom);
}

.chapter-overlay.open {
  opacity: 1;
  visibility: visible;
  transform: none;
}

.chapter-overlay-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-xl) var(--space-lg) var(--space-md);
  border-bottom: 1px solid var(--color-border-subtle);
  flex-shrink: 0;
}

.chapter-overlay-label {
  font-family: var(--font-sans);
  font-size: var(--text-sm);
  font-weight: var(--fw-bold);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-text-muted);
}

.chapter-overlay-close {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-full);
  background: var(--color-bg-base);
  border: 1px solid var(--color-border-subtle);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  -webkit-tap-highlight-color: transparent;
}

.chapter-overlay-close svg {
  width: 16px;
  height: 16px;
  stroke: var(--color-text-muted);
  fill: none;
}

.chapter-overlay-list {
  flex: 1;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: var(--space-md) var(--space-lg);
  list-style: none;
}

.chapter-overlay-list li {
  border-bottom: 1px solid var(--color-border-subtle);
}

.chapter-overlay-list a {
  display: block;
  padding: var(--space-md) 0;
  font-size: var(--text-base);
  color: var(--color-text-main);
  transition: color var(--dur-base);
}

.chapter-overlay-list a:hover {
  color: var(--color-brand-primary);
}

.chapter-overlay-list li.active a {
  color: var(--color-brand-primary);
  font-weight: var(--fw-semibold);
}

/* ----------------------------------------------------------
   TIP BOXES (single post content)
---------------------------------------------------------- */

.tip-box {
  border-radius: var(--radius-xl);
  padding: var(--space-xl);
  margin: var(--space-xl) 0;
  position: relative;
  background: var(--color-bg-warm);
  border-left: 5px solid var(--color-border-subtle);
}

.tip-box::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 5px;
  border-radius: var(--radius-xl) 0 0 var(--radius-xl);
}

.tip-box.orange {
  background: var(--color-highlight-yellow-bg);
}

.tip-box.orange::before {
  background: var(--color-brand-primary);
}

.tip-box.orange .tip-box-title {
  color: var(--color-brand-primary);
}

.tip-box.green {
  background: var(--color-highlight-green-bg);
}

.tip-box.green::before {
  background: var(--color-brand-secondary);
}

.tip-box.green .tip-box-title {
  color: var(--color-brand-secondary);
}

.tip-box.blue {
  background: var(--color-highlight-blue-bg);
}

.tip-box.blue::before {
  background: var(--color-highlight-blue-text);
}

.tip-box.blue .tip-box-title {
  color: var(--color-highlight-blue-text);
}

/* Photography variant */
.tip-box.photos {
  background: var(--color-highlight-green-bg);
  border-left-color: var(--color-brand-secondary);
}

.tip-box.photos::after {
  content: "\1F4F7  Photo Tip";
  position: absolute;
  top: var(--space-md);
  right: var(--space-md);
  font-size: var(--text-xs);
  font-weight: var(--fw-bold);
  color: var(--color-brand-secondary);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  opacity: 0.65;
}

/* ----------------------------------------------------------
   CATEGORY NAV PILLS (country page scroll nav)
---------------------------------------------------------- */
.category-nav {
  padding: var(--space-2xl) 0 0;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.category-nav::-webkit-scrollbar {
  display: none;
}

.category-nav ul {
  display: flex;
  gap: var(--space-sm);
  list-style: none;
  width: max-content;
}

.category-nav a {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  min-height: 44px;
  padding: var(--space-sm) var(--space-lg);
  border-radius: var(--radius-xl);
  background: var(--color-white-100);
  border: 1px solid var(--color-border-subtle);
  font-size: var(--text-sm);
  font-weight: var(--fw-semibold);
  color: var(--color-text-heading);
  white-space: nowrap;
  box-shadow: var(--shadow-xs);
  transition: all var(--dur-base);
  -webkit-tap-highlight-color: transparent;
  position: relative;
  overflow: hidden;
}

.category-nav a::before {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--color-brand-primary);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--dur-base) var(--ease-out);
}

.category-nav a:hover {
  background: var(--color-highlight-yellow-bg);
  border-color: var(--color-brand-primary);
  color: var(--color-brand-primary);
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

.category-nav a:hover::before {
  transform: scaleX(1);
}

.cat-nav-icon {
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* ----------------------------------------------------------
   RESPONSIVE — COMPONENTS
---------------------------------------------------------- */
@media (max-width: 1024px) {
}

@media (max-width: 768px) {
  .card--horizontal {
    grid-template-columns: 140px 1fr;
    min-height: 120px;
  }

  /* Stat strip */
  .stat-strip-inner {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-xl) var(--space-lg);
  }

  /* Photo break */
  .photo-break {
    height: clamp(300px, 60vw, 460px);
  }

  /* Sidebar */
  .post-sidebar {
    display: none;
  }

  /* Chapter bubble visible */
  .chapter-bubble {
    display: flex;
  }
}

@media (max-width: 480px) {
  .card--horizontal {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .card--horizontal .card-img {
    height: 180px;
  }
}

@media (min-width: 769px) {
  .chapter-bubble {
    display: none !important;
  }
}

/* ============================================================
   SEARCH PAGE COMPONENTS
   Ref: travelbits-search.html
============================================================ */

/* Search band — dark header below main nav on search/tag pages */
.search-band {
  background: var(--color-brand-dark);
  padding: var(--space-3xl) var(--pad-h) var(--space-2xl);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.search-band-inner {
  max-width: var(--max-w);
  margin: 0 auto;
}

/* Big search input row */
.search-form-main {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  background: rgba(255, 255, 255, 0.08);
  border: 1.5px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--radius-full);
  padding: var(--space-xs) var(--space-xs) var(--space-xs) var(--space-xl);
  transition:
    border-color var(--dur-base),
    background var(--dur-base);
  max-width: 680px;
  margin-bottom: var(--space-lg);
}

.search-form-main:focus-within {
  border-color: var(--color-brand-primary);
  background: rgba(255, 255, 255, 0.12);
}

.search-form-main input {
  flex: 1;
  background: none;
  border: none;
  outline: none;
  font-family: var(--font-serif);
  font-size: clamp(1.2rem, 3vw, 1.8rem);
  color: var(--color-white-100);
}

.search-form-main input::placeholder {
  color: rgba(255, 255, 255, 0.72);
}

.search-form-main button {
  background: var(--color-brand-primary);
  border: none;
  cursor: pointer;
  width: 48px;
  height: 48px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition:
    background var(--dur-base),
    transform var(--dur-base);
  -webkit-tap-highlight-color: transparent;
}

.search-form-main button:hover {
  background: var(--color-brand-secondary);
  transform: scale(1.05);
}

.search-form-main button svg {
  width: 20px;
  height: 20px;
  stroke: var(--color-white-100);
  fill: none;
}

.search-result-count {
  margin-top: var(--space-lg);
  font-size: var(--text-md);
}

.search-result-count strong {
  color: rgba(255, 255, 255, 0.9);
}

/* Cloud transition below dark band */
.band-cloud {
  line-height: 0;
  background: var(--color-brand-dark);
  margin-bottom: -2px;
}

.band-cloud img {
  width: 100%;
  display: block;
  transform: scaleY(-1);
}

/* Empty state */
.empty-state {
  text-align: center;
  padding: var(--space-5xl) var(--pad-h);
}

.empty-icon {
  font-size: 4rem;
  margin-bottom: var(--space-lg);
  display: block;
}

.empty-state h2 {
  font-size: var(--text-2xl);
  margin-bottom: var(--space-sm);
}

.empty-state p {
  color: var(--color-text-muted);
  max-width: 440px;
  margin: 0 auto var(--space-xl);
  line-height: 1.7;
}

/* Suggestion tag pill */
.suggestion-tag {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 var(--space-lg);
  border-radius: var(--radius-full);
  background: var(--color-bg-base);
  border: 1px solid var(--color-border-subtle);
  font-size: var(--text-sm);
  font-weight: var(--fw-semibold);
  color: var(--color-text-heading);
  transition: all var(--dur-base);
  -webkit-tap-highlight-color: transparent;
}

.suggestion-tag:hover {
  background: var(--color-brand-secondary);
  color: var(--color-white-100);
  border-color: var(--color-brand-secondary);
  transform: translateY(-2px);
}

/* Pagination */
.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-xs);
  padding: var(--space-3xl) 0 var(--space-xl);
}

/* ============================================================
   TAG PAGE COMPONENTS
   Ref: travelbits-tag.html
============================================================ */

/* Page band — dark teal with purple tint for tag/instagram page */
.page-band {
  background: linear-gradient(
    135deg,
    var(--color-brand-dark) 60%,
    #2d1f3d 100%
  );
  padding: var(--space-3xl) var(--pad-h) var(--space-2xl);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  position: relative;
  overflow: hidden;
}

/* Subtle grid pattern */
.page-band::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 40px 40px;
  pointer-events: none;
}

.page-band-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

/* Breadcrumb within dark band */
.page-breadcrumb {
  display: flex;
  align-items: center;
  list-style: none;
  margin-bottom: var(--space-lg);
}

.page-breadcrumb li {
  display: flex;
  align-items: center;
}

.page-breadcrumb li + li::before {
  content: "›";
  color: rgba(255, 255, 255, 0.3);
  padding: 0 var(--space-xs);
  font-size: var(--text-sm);
}

.page-breadcrumb a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: var(--space-xs) var(--space-2xs);
  color: rgba(255, 255, 255, 0.55);
  font-size: var(--text-sm);
  transition: color var(--dur-base);
}

.page-breadcrumb a:hover {
  color: var(--color-white-100);
}

.page-breadcrumb li:last-child span {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: var(--space-xs) var(--space-2xs);
  color: rgba(255, 255, 255, 0.85);
  font-size: var(--text-sm);
  font-weight: var(--fw-semibold);
}

/* Instagram icon badge */
.page-band-title-row {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  margin-bottom: var(--space-sm);
}

.insta-icon {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  background: linear-gradient(45deg, #fcaf45, #fd5949, #d6249f);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
}

.insta-icon svg {
  width: 22px;
  height: 22px;
  stroke: var(--color-white-100);
  fill: none;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.page-band h1 {
  font-size: var(--text-3xl);
  color: var(--color-white-100);
}

.page-band-sub {
  color: rgba(255, 255, 255, 0.55);
  margin-top: var(--space-xs);
}

/* Country filter pills */
.country-filters {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-xs);
  margin-top: var(--space-xl);
}

.filter-pill {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  min-height: 44px;
  padding: 0 var(--space-lg);
  border-radius: var(--radius-full);
  font-size: var(--text-sm);
  font-weight: var(--fw-semibold);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: rgba(255, 255, 255, 0.7);
  background: rgba(255, 255, 255, 0.08);
  transition: all var(--dur-base);
  -webkit-tap-highlight-color: transparent;
  text-decoration: none;
}

.filter-pill:hover {
  background: rgba(255, 255, 255, 0.18);
  color: var(--color-white-100);
}

.filter-pill.active {
  background: var(--color-brand-primary);
  border-color: var(--color-brand-primary);
  color: var(--color-white-100);
}

/* Photo masonry grid — CSS columns */
.photo-grid-section {
  padding: var(--space-3xl) 0;
}

.photo-masonry {
  columns: 3;
  column-gap: var(--space-md);
}

.photo-card:hover {
  /* Removed translateY and shadow */
}

.photo-card-img {
  overflow: hidden;
  position: relative;
}

.photo-card-img img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.8s var(--ease-out);
}

.photo-card:hover .photo-card-img img {
  transform: scale(1.04);
}

/* Hover overlay — title on dark gradient */
.photo-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.75) 0%, transparent 55%);
  opacity: 0;
  transition: opacity var(--dur-base);
  display: flex;
  align-items: flex-end;
  padding: var(--space-md);
}

.photo-card:hover .photo-card-overlay {
  opacity: 1;
}

.photo-card-overlay-text {
  color: var(--color-white-100);
  font-size: var(--text-sm);
  font-weight: var(--fw-semibold);
  line-height: 1.3;
}

.photo-card-body {
  padding: var(--space-md) var(--space-lg) var(--space-lg);
}

.photo-card-tag {
  display: inline-block;
  color: var(--color-brand-primary);
  font-size: var(--text-xs);
  font-weight: var(--fw-bold);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: var(--space-2xs);
  padding: 2px 0;
}

.photo-card-body h3 {
  font-size: var(--text-base);
  line-height: 1.3;
  margin-bottom: var(--space-xs);
}

/* Instagram CTA strip */
.insta-cta {
  background: linear-gradient(135deg, #833ab4 0%, #fd5949 50%, #fcaf45 100%);
  padding: var(--space-3xl) var(--pad-h);
  text-align: center;
}

.insta-cta-inner {
  max-width: 520px;
  margin: 0 auto;
}

.insta-cta h2 {
  color: var(--color-white-100);
  font-size: var(--text-2xl);
  margin-bottom: var(--space-sm);
}

.insta-cta p {
  color: rgba(255, 255, 255, 0.85);
  font-size: var(--text-base);
  margin-bottom: var(--space-xl);
  line-height: 1.6;
}

/* ============================================================
   404 PAGE COMPONENTS
   Ref: travelbits-404.html
============================================================ */

/* Full-screen 404 hero */
.error-hero {
  position: relative;
  height: 100svh;
  min-height: 600px;
  max-height: 960px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  overflow: hidden;
  text-align: center;
}

.error-hero-bg {
  position: absolute;
  inset: 0;
  will-change: transform;
}

.error-hero-bg img {
  position: absolute;
  top: -8%;
  left: 0;
  width: 100%;
  height: 116%;
  object-fit: cover;
  filter: brightness(0.38) saturate(0.7);
}

.error-hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(26, 50, 56, 0.4) 0%,
    rgba(26, 50, 56, 0.7) 100%
  );
}

/* Giant decorative 404 number */
.error-404-bg {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -55%);
  font-family: var(--font-serif);
  font-size: clamp(18rem, 40vw, 36rem);
  font-weight: var(--fw-medium);
  color: rgb(255 255 255 / 10%);
  line-height: 1;
  pointer-events: none;
  white-space: nowrap;
  letter-spacing: -8px;
  z-index: 1;
}

.error-content {
  position: relative;
  z-index: 2;
  text-align: center;
  margin: 0 auto;
}

.error-eyebrow {
  display: inline-block;
  font-size: var(--text-xs);
  font-weight: var(--fw-bold);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--color-brand-primary);
  background: rgba(232, 112, 35, 0.15);
  border: 1px solid rgba(232, 112, 35, 0.3);
  padding: var(--space-xs) var(--space-lg);
  border-radius: var(--radius-full);
  margin-bottom: var(--space-xl);
}

.error-title {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  color: var(--color-white-100);
  line-height: 1.2;
  margin-bottom: var(--space-md);
}

.error-body {
  font-size: var(--text-lg);
  color: rgba(255, 255, 255, 0.65);
  line-height: 1.7;
  margin-bottom: var(--space-2xl);
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
}

.error-actions {
  display: flex;
  gap: var(--space-md);
  justify-content: center;
  flex-wrap: wrap;
}

/* Cloud on error hero */
.error-cloud {
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 100%;
  z-index: 3;
  pointer-events: none;
  line-height: 0;
}

.error-cloud img {
  width: 100%;
  display: block;
  transform: scaleY(-1);
}

/* Suggestions section on 404 */
.suggestions-section {
  padding: var(--space-3xl) 0;
}

.suggestions-header {
  text-align: center;
  margin-bottom: var(--space-xl);
}

.suggestions-header h2 {
  font-size: var(--text-2xl);
}

/* Suggestions grid — 3 columns */
.suggestions-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-lg);
}

/* ============================================================
   BIOGRAPHY PAGE COMPONENTS
   Ref: travelbits-biography.html
============================================================ */

/* Related grid on biography — 4 columns */
.related-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  background: var(--color-white-100);
  border-radius: var(--radius-xl);
  overflow: hidden;
  border: 1px solid var(--color-border-subtle);
  transition:
    transform var(--dur-base),
    box-shadow var(--dur-base);
}

.related-card:hover {
  /* Removed translateY and shadow */
}

.related-card-body {
  padding: var(--space-md);
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: var(--space-2xs);
}

.related-card-tag {
  font-size: var(--text-xs);
  font-weight: var(--fw-bold);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-brand-primary);
}

.related-card-body h3 {
  font-size: var(--text-sm);
  line-height: 1.35;
  flex: 1;
}

/* ----------------------------------------------------------
   HORIZONTAL CARD — More Stories refinements
---------------------------------------------------------- */
.card--horizontal .card-title {
  font-size: var(--text-lg);
}

.card--horizontal .card-footer {
  padding-top: var(--space-2xs);
}

.card--horizontal .read-more {
  min-height: auto;
}

/* ----------------------------------------------------------
  biography page
---------------------------------------------------------- */

.font-italic {
  font-style: italic;
}
.font-bold {
  font-weight: var(--fw-bold);
}
.font-serif {
  font-family: var(--font-serif);
}

.bio-page h2 {
  font-size: var(--text-2xl);
}
.bio-page h3 {
  font-size: var(--text-xl);
  margin: var(--space-xl) 0;
}
.bio-page hr {
  margin-bottom: var(--space-xl);
}
.bio-page .quote-label {
  color: var(--color-white-100);
}
.photo-content.bio-page {
  grid-template-columns: 1fr;
}
.bio-support-img {
  position: relative;
  display: flex;
  justify-content: center;
}
.bio-support-img img {
  border-radius: var(--radius-xl);
}

.bio-support-img h4 {
  position: absolute;
  bottom: 20px;
  padding: var(--space-xs) var(--space-md);
  background-color: var(--color-white-100);
  border-radius: var(--radius-xl);
}
