/* Sense & Restore — Wellness Directory styles */
@font-face {
  font-family: 'Overused Grotesk';
  src: url('/fonts/OverusedGrotesk-VF.woff2') format('woff2');
  font-weight: 300 900;
  font-style: normal;
  font-display: optional;
}

@font-face {
  font-family: 'Overused Grotesk Fallback';
  src: local('Segoe UI'), local('Helvetica Neue'), local('Arial');
  size-adjust: 97%;
  ascent-override: 88%;
  descent-override: 22%;
  line-gap-override: 0%;
}

@font-face {
  font-family: 'Instrument Serif';
  src: url('/fonts/InstrumentSerif-Regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: optional;
}

@font-face {
  font-family: 'Instrument Serif';
  src: url('/fonts/InstrumentSerif-Italic.woff2') format('woff2');
  font-weight: 400;
  font-style: italic;
  font-display: optional;
}

@font-face {
  font-family: 'Instrument Serif Fallback';
  src: local('Georgia'), local('Times New Roman');
  size-adjust: 108%;
  ascent-override: 92%;
  descent-override: 24%;
  line-gap-override: 0%;
}

:root {
  --font-heading: 'Instrument Serif', 'Instrument Serif Fallback', Georgia, 'Times New Roman', serif;
  --font-body: 'Overused Grotesk', 'Overused Grotesk Fallback', system-ui, -apple-system, sans-serif;
  --bg: #FBF8F3;
  --bg-warm: #F5F1ED;
  --bg-accent: #E8D5C4;
  --primary: #4A6741;
  --primary-dark: #3D5632;
  --accent: #C9956B;
  --text: #3D3D3D;
  --text-muted: #6B7A5E;
  --text-light: #A89F94;
  --white: #ffffff;
  --footer-bg: #3D3D3D;
  --radius: 1.5rem;
  --shadow: 0 10px 25px rgba(0,0,0,.08);
  --listing-grid-min: 17.5rem;
  --listing-grid-gap: 2rem;
  --site-nav-height: 4rem;
}

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

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}

.hero h1,
.section__title,
.detail-page__main h1,
.quiz-card h1,
.quiz-question h2,
.results-page h1,
.compare-page__topbar h1,
.legal-container h1,
.not-found h1,
.article-content__header h1,
.step-card h3,
.editorial-review h2,
.article-linked h2,
.legal-section h2,
.article-card h2,
.article-content__body h2,
.article-content__body h3,
.article-ranked-list__header h3,
.listing-card__header h3,
.detail-page__themes h3,
.detail-page__articles h3,
.site-footer h2 {
  font-family: var(--font-heading);
  font-weight: 400;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

.container { container-type: inline-size; max-width: 72rem; margin: 0 auto; padding: 0 1rem; }

/* Site navigation */
.site-nav-group {
  position: relative;
  z-index: 1000;
}
.site-nav {
  position: sticky; top: 0; z-index: 1002;
  background: var(--primary);
  border-bottom: 1px solid rgba(0,0,0,.1);
  box-shadow: 0 1px 8px rgba(0,0,0,.12);
}
.site-nav__inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; min-height: var(--site-nav-height);
  padding-top: .875rem; padding-bottom: .875rem;
}
.site-nav__inner.container {
  container-type: normal;
}
.site-nav__brand {
  display: inline-flex; align-items: center;
  white-space: nowrap;
}
.site-nav__brand img {
  height: 2.25rem; width: auto;
}
.site-nav__brand:hover { opacity: .85; }
.site-nav__links { display: flex; flex-wrap: wrap; gap: .25rem 1.25rem; }
.site-nav__link {
  font-size: .9375rem; font-weight: 500; color: rgba(255,255,255,.8);
  padding: .25rem 0; border-bottom: 2px solid transparent;
  transition: color .2s, border-color .2s;
}
.site-nav__link:hover { color: var(--white); }
.site-nav__link--active {
  color: var(--white); border-bottom-color: var(--white);
}
.site-nav__toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: .3rem;
  width: 2.5rem;
  height: 2.5rem;
  padding: .5rem;
  background: transparent;
  border: none;
  cursor: pointer;
  border-radius: .25rem;
}
.site-nav__toggle:hover { background: rgba(255,255,255,.1); }
.site-nav__toggle-bar {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--white);
  border-radius: 1px;
  transition: transform .2s, opacity .2s;
}
.site-nav__backdrop {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(0,0,0,.4);
}
body.site-nav-open { overflow: hidden; }

@media (max-width: 48rem) {
  .site-nav-group {
    height: var(--site-nav-height);
  }
  .site-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
  }
  .site-nav__toggle {
    display: flex;
    position: relative;
  }
  .site-nav__links {
    display: none;
    position: fixed;
    top: 0;
    right: 0;
    width: min(16rem, 80vw);
    height: 100vh;
    height: 100dvh;
    z-index: 1001;
    flex-direction: column;
    flex-wrap: nowrap;
    gap: 0;
    padding: calc(var(--site-nav-height) + 1rem) 1.25rem 1.5rem;
    background: var(--primary);
    box-shadow: -4px 0 24px rgba(0,0,0,.15);
    transform: translateX(100%);
    transition: transform .2s ease;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }
  .site-nav-group.site-nav--open .site-nav__links {
    display: flex;
    transform: translateX(0);
  }
  .site-nav-group.site-nav--open .site-nav__backdrop { display: block; }
  .site-nav__link {
    font-size: 1rem;
    padding: .875rem 0;
    border-bottom: none;
    border-left: 3px solid transparent;
    padding-left: .75rem;
  }
  .site-nav__link--active {
    border-left-color: var(--white);
    border-bottom-color: transparent;
  }
  .site-nav-group.site-nav--open .site-nav__toggle-bar:nth-child(1) {
    transform: translateY(.45rem) rotate(45deg);
  }
  .site-nav-group.site-nav--open .site-nav__toggle-bar:nth-child(2) { opacity: 0; }
  .site-nav-group.site-nav--open .site-nav__toggle-bar:nth-child(3) {
    transform: translateY(-.45rem) rotate(-45deg);
  }
}

@media (min-width: 48.0625rem) {
  .site-nav-group {
    display: contents;
  }
}

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: .875rem 2rem; border-radius: 9999px; font-weight: 600;
  font-size: 1rem; cursor: pointer; border: 2px solid transparent;
  transition: all .2s;
}
.btn--primary { background: var(--primary); color: var(--white); }
.btn--primary:hover { background: var(--primary-dark); }
.btn--outline { background: transparent; border-color: var(--white); color: var(--white); }
.btn--outline:hover { background: rgba(255,255,255,.1); }
.btn--full { width: 100%; }
.btn--compact {
  padding: 0.3125rem 0.75rem;
  font-size: 0.75rem;
  font-weight: 600;
  border-width: 1.5px;
  white-space: nowrap;
}
.back-link { display: inline-flex; align-items: center; gap: .5rem; margin-bottom: 1rem; color: var(--white); }
.back-link--green { color: var(--primary); }
.back-link--green:hover { color: var(--primary-dark); }

/* Hero */
.hero {
  position: relative; z-index: 0; min-height: 100vh; display: flex; align-items: center;
  justify-content: center; text-align: center; color: var(--white);
  background: linear-gradient(135deg, #3D5632 0%, #4A6741 50%, #6B7A5E 100%);
  overflow: hidden;
  isolation: isolate;
}
.hero__video {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: center center; z-index: -1;
  pointer-events: none;
}
@media (prefers-reduced-motion: reduce) {
  .hero__video { display: none; }
}
.hero__overlay { position: absolute; inset: 0; background: rgba(0,0,0,.45); z-index: 0; }
.hero__content {
  position: relative; z-index: 1; max-width: 48rem; padding: 2rem 1rem;
  display: flex; flex-direction: column; align-items: center;
}
.hero__logo {
  height: clamp(3rem, 8vw, 5rem);
  width: auto;
  max-width: 100%;
  margin-bottom: 1.5rem;
}
.hero__content > p,
.hero__content > .hero__actions { width: 100%; }
.hero h1 { font-size: clamp(2.5rem, 6vw, 4.5rem); margin-bottom: 1.5rem; line-height: 1.1; }
.hero p { font-size: clamp(1.1rem, 2.5vw, 1.5rem); opacity: .9; margin-bottom: 2.5rem; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 1rem; justify-content: center; }
.hero__actions .btn--outline { border-color: var(--white); }

/* Sections */
.section { padding: 4rem 1rem; }
.section--white { background: var(--white); }
.section--warm { background: linear-gradient(135deg, var(--bg) 0%, var(--bg-warm) 100%); }
.section__title { font-size: clamp(2rem, 4vw, 3rem); text-align: center; margin-bottom: 3rem; }
.section-header {
  display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between;
  gap: 1rem; margin-bottom: 2rem;
}
.section-header .section__title { margin-bottom: 0; text-align: left; }
.section-header__link { font-weight: 600; color: var(--primary); white-space: nowrap; }
.section-header__link:hover { color: var(--primary-dark); }
.retreats-see-more { text-align: center; margin-top: 2rem; }

.steps-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 2rem; }
.step-card {
  padding: 2rem; border-radius: var(--radius);
  background: linear-gradient(135deg, var(--bg-warm), var(--bg-accent));
  box-shadow: var(--shadow);
}
.step-card h3 { font-size: 1.5rem; margin-bottom: 1rem; }
.step-card p { color: var(--text-muted); }

/* Filters */
.filters { margin-bottom: 2rem; }
.filters__search {
  width: 100%; padding: .875rem 1.25rem; border-radius: 9999px;
  border: 2px solid var(--bg-accent); font-size: 1rem; margin-bottom: 1.5rem;
  background: var(--white);
}
.filters__search:focus { outline: none; border-color: var(--primary); }
.filters__search-wrap { position: relative; margin-bottom: 1rem; }
.filters__search-wrap .filters__search { margin-bottom: 0; }
.filter-chips {
  display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 1rem;
}
.filter-chip {
  display: inline-flex; align-items: center; gap: .375rem;
  padding: .375rem .75rem; border-radius: 9999px;
  background: var(--primary); color: var(--white);
  font-size: .8125rem; font-weight: 500;
}
.filter-chip__remove {
  display: inline-flex; align-items: center; justify-content: center;
  width: 1.25rem; height: 1.25rem; padding: 0; border: none; border-radius: 50%;
  background: rgba(255,255,255,.2); color: var(--white); font-size: 1rem; line-height: 1;
  cursor: pointer; transition: background .2s;
}
.filter-chip__remove:hover { background: rgba(255,255,255,.35); }
.search-suggestions {
  position: absolute; top: calc(100% + .25rem); left: 0; right: 0; z-index: 20;
  list-style: none; margin: 0; padding: .5rem 0;
  background: var(--white); border: 2px solid var(--bg-accent); border-radius: 1rem;
  box-shadow: var(--shadow); max-height: 16rem; overflow-y: auto;
}
.search-suggestions__item {
  padding: .625rem 1.25rem; font-size: .9375rem; cursor: pointer;
  color: var(--text);
}
.search-suggestions__item:hover,
.search-suggestions__item--active { background: var(--bg-warm); color: var(--primary); }
.countries-carousel {
  position: relative;
}
.countries-carousel__viewport {
  overflow-x: auto;
  overflow-y: hidden;
  width: 100%;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scrollbar-width: none;
  outline: none;
  -webkit-tap-highlight-color: transparent;
  mask-image: linear-gradient(to right, transparent, #000 2rem, #000 calc(100% - 2rem), transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, #000 2rem, #000 calc(100% - 2rem), transparent);
}
.countries-carousel__viewport--instant {
  scroll-behavior: auto;
}
.countries-carousel__viewport::-webkit-scrollbar { display: none; }
.countries-carousel__nav {
  position: absolute;
  top: 50%;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, .92);
  color: var(--primary);
  box-shadow: 0 4px 16px rgba(0, 0, 0, .12);
  cursor: pointer;
  transform: translateY(-50%);
  opacity: 0;
  transition: opacity .2s, background .2s, box-shadow .2s;
}
.countries-carousel:hover .countries-carousel__nav:not([hidden]),
.countries-carousel__nav:focus-visible {
  opacity: 1;
}
.countries-carousel__nav:hover {
  background: var(--white);
  box-shadow: 0 6px 20px rgba(0, 0, 0, .16);
}
.countries-carousel__nav[hidden] {
  display: none;
}
.countries-carousel__nav--prev { left: .5rem; }
.countries-carousel__nav--next { right: .5rem; }
.countries-carousel__dots {
  display: flex;
  justify-content: center;
  gap: .5rem;
  margin-top: 1.25rem;
}
.countries-carousel__dots[hidden] { display: none; }
.countries-carousel__dot {
  width: .5rem;
  height: .5rem;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: var(--bg-accent);
  cursor: pointer;
  transition: background .2s, transform .2s;
}
.countries-carousel__dot.is-active {
  background: var(--primary);
  transform: scale(1.25);
}
.countries-carousel__dot:hover:not(.is-active) { background: var(--accent); }
.countries-grid {
  display: flex;
  gap: var(--listing-grid-gap);
  flex-wrap: nowrap;
  width: max-content;
  padding: .25rem 2.5rem 1rem;
}
.country-card {
  flex: 0 0 auto;
  width: max(var(--listing-grid-min), calc((100cqw - 2 * var(--listing-grid-gap)) / 3));
  height: var(--country-card-height, auto);
  scroll-snap-align: start;
  display: flex;
  flex-direction: column;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--white);
  box-shadow: var(--shadow);
  -webkit-tap-highlight-color: transparent;
  -webkit-touch-callout: none;
  transition: transform .2s, box-shadow .2s;
}
.country-card:hover { transform: translateY(-4px); box-shadow: 0 16px 32px rgba(0,0,0,.12); }
.country-card__image-wrap {
  flex: 1 1 auto;
  min-height: 0;
  overflow: hidden;
  background: var(--bg-accent);
}
.country-card__image { width: 100%; height: 100%; object-fit: cover; }
.country-card[data-country="India"] .country-card__image,
.country-card[data-country="Malaysia"] .country-card__image,
.country-card[data-country="Philippines"] .country-card__image,
.country-card[data-country="Singapore"] .country-card__image,
.country-card[data-country="South Korea"] .country-card__image,
.country-card[data-country="Thailand"] .country-card__image,
.country-card[data-country="Vietnam"] .country-card__image { object-position: top; }
.country-card__name {
  flex-shrink: 0;
  display: block; padding: 1rem; text-align: center;
  font-weight: 600; font-size: 1rem; color: var(--primary);
  user-select: none;
  -webkit-user-select: none;
}
@media (max-width: 48rem) {
  .countries-carousel__viewport {
    mask-image: none;
    -webkit-mask-image: none;
    scroll-padding-inline: 1rem;
  }
  .countries-carousel__nav {
    display: none;
  }
  .countries-grid {
    padding: .25rem 1rem 1rem;
  }
  .country-card {
    scroll-snap-align: center;
  }
}
.filters__group { margin-bottom: 1.5rem; }
.filters__label { font-size: .875rem; font-weight: 600; margin-bottom: .75rem; color: var(--accent); }
.filters__chips { display: flex; flex-wrap: wrap; gap: .75rem; }
.chip {
  padding: .5rem 1rem; border-radius: 9999px; border: 2px solid var(--bg-accent);
  background: var(--white); color: var(--primary); font-size: .875rem; font-weight: 500;
  cursor: pointer; transition: all .2s;
}
.chip:hover { border-color: var(--primary); }
.chip--active { background: var(--primary); color: var(--white); border-color: var(--primary); }
.filters__count { font-size: .875rem; color: var(--text-muted); }
.filters__row {
  display: flex; flex-wrap: wrap; gap: .75rem; align-items: center; margin-bottom: 1rem;
}
.filters__row .filters__search { flex: 1 1 16rem; margin-bottom: 0; }
.filters__select {
  padding: .75rem 1rem; border-radius: 9999px; border: 2px solid var(--bg-accent);
  font-size: .875rem; background: var(--white); color: var(--text);
}
.filters__select:focus { outline: none; border-color: var(--primary); }
.filters__submit { flex-shrink: 0; }
.filters__empty { grid-column: 1 / -1; color: var(--text-muted); padding: 2rem 0; text-align: center; }

.retreats-pagination {
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center;
  gap: 1rem; margin-top: 2rem; padding-top: 1.5rem; border-top: 1px solid var(--bg-accent);
}
.retreats-pagination__summary { font-size: .875rem; color: var(--text-muted); margin: 0; }
.retreats-pagination__actions { display: flex; gap: .75rem; }
.btn--disabled { opacity: .5; pointer-events: none; }

/* Listings grid */
.listings-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(var(--listing-grid-min), 1fr));
  gap: var(--listing-grid-gap);
  align-items: stretch;
}
.listing-item { display: flex; }
.listing-item[hidden] { display: none; }

.listing-card {
  height: 100%; width: 100%; display: flex; flex-direction: column;
  border-radius: var(--radius); overflow: hidden; background: var(--white);
  box-shadow: var(--shadow); transition: transform .3s, box-shadow .3s;
}
.listing-card:hover { transform: scale(1.02); box-shadow: 0 20px 40px rgba(0,0,0,.12); }
.listing-card__link { display: flex; flex-direction: column; flex: 1; height: 100%; color: inherit; }
.listing-card__image-wrap {
  height: 12rem; aspect-ratio: 25 / 12; overflow: hidden;
  background: linear-gradient(135deg, var(--bg-accent), var(--accent));
}
.listing-card__image { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.listing-card:hover .listing-card__image { transform: scale(1.1); }
.listing-card__body { flex: 1; display: flex; flex-direction: column; padding: 1.5rem; }
.listing-card__header { display: flex; justify-content: space-between; align-items: flex-start; gap: .5rem; margin-bottom: .75rem; }
.listing-card__header h3 { font-size: 1.125rem; }
.listing-card__type {
  background: var(--bg-accent); color: var(--primary); padding: .25rem .75rem;
  border-radius: 9999px; font-size: .75rem; font-weight: 600; white-space: nowrap;
}
.listing-card__location { color: var(--text-muted); font-size: .875rem; margin-bottom: .75rem; }
.listing-card__desc {
  color: var(--text-muted); font-size: .875rem; margin-bottom: 1rem;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.listing-card__tags { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: auto; margin-bottom: .75rem; }
.listing-card__price { color: var(--primary); font-weight: 600; font-size: .875rem; }
.tag {
  background: var(--bg-warm); color: var(--primary); padding: .25rem .625rem;
  border-radius: 9999px; font-size: .75rem; font-weight: 500;
}
.tag-list { display: flex; flex-wrap: wrap; gap: .75rem; }

/* Detail page */
.detail-page__topbar { background: linear-gradient(90deg, var(--primary), var(--primary-dark)); color: var(--white); padding: 1rem 0; }
.detail-page__topbar .back-link { margin-bottom: 0; }
.detail-page__content { padding: 1.5rem 1rem 3rem; }
.detail-page__media-banner {
  position: relative;
  width: 100%;
  margin-bottom: 1.5rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.detail-page__media-viewport {
  position: relative;
  width: 100%;
  height: 24rem;
  border-radius: inherit;
  overflow: hidden;
  isolation: isolate;
}
.detail-page__media-slide {
  position: absolute;
  inset: 0;
}
.detail-page__media-slide[hidden] { display: none; }
.detail-page__media-image,
.detail-page__media-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.detail-page__media-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  width: 2.75rem;
  height: 2.75rem;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  color: var(--primary);
  font-size: 1.75rem;
  line-height: 1;
  cursor: pointer;
  box-shadow: var(--shadow);
  display: flex;
  align-items: center;
  justify-content: center;
}
.detail-page__media-nav:hover { background: var(--white); }
.detail-page__media-nav:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }
.detail-page__media-nav--prev { left: 1rem; }
.detail-page__media-nav--next { right: 1rem; }
.detail-page__media-dots {
  position: absolute;
  bottom: 1rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  gap: 0.5rem;
  padding: 0.375rem 0.625rem;
  border-radius: 9999px;
  background: rgba(0, 0, 0, 0.35);
}
.detail-page__media-dot {
  width: 0.625rem;
  height: 0.625rem;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.55);
  cursor: pointer;
}
.detail-page__media-dot.is-active { background: var(--white); }
.detail-page__media-dot:hover:not(.is-active) { background: rgba(255, 255, 255, 0.85); }
.detail-page__media-dot:focus-visible { outline: 2px solid var(--white); outline-offset: 2px; }
.detail-page__grid { display: grid; grid-template-columns: 1fr; gap: 2rem; }
@media (min-width: 768px) { .detail-page__grid { grid-template-columns: 2fr 1fr; } }
.detail-page__main h1 { font-size: clamp(2rem, 4vw, 3rem); margin-bottom: .75rem; }
.detail-page__header { margin-bottom: 0; }
.detail-page__header h1 { margin-bottom: 0.5rem; }
.detail-page__subheader {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  margin-bottom: 0.75rem;
}
.detail-page__subheader .detail-page__location {
  margin-bottom: 0;
  flex: 1;
  min-width: 0;
}
.detail-page__subheader .share-btn {
  min-height: 2rem;
  padding: 0.375rem 0.875rem;
  font-size: 0.75rem;
  border-width: 1.5px;
  line-height: 1.2;
}
.detail-page__subheader .share-btn__icon {
  width: 14px;
  height: 14px;
}
.detail-page__website-cta {
  margin: 0 0 2rem;
}
@media (max-width: 479px) {
  .detail-page__subheader {
    flex-wrap: wrap;
    row-gap: 0.75rem;
  }
  .detail-page__subheader .share-dropdown {
    margin-left: auto;
  }
  .detail-page__subheader .share-btn__label { display: none; }
  .detail-page__subheader .share-btn { padding: 0.375rem 0.625rem; }
}
.detail-page__location { color: var(--text-muted); font-size: 1.125rem; margin-bottom: 1rem; }
.detail-page__description { color: var(--text-muted); font-size: 1.125rem; margin: 1.5rem 0; line-height: 1.7; }
.detail-page__themes { margin: 2rem 0; }
.detail-page__themes h3 { font-size: 1.25rem; margin-bottom: 1rem; }
.detail-page__articles { margin: 2rem 0; }
.detail-page__articles h3 { font-size: 1.25rem; margin-bottom: 1rem; }
.detail-page__article-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 1rem; }
.detail-page__article-list a { color: var(--primary); font-weight: 600; text-decoration: none; }
.detail-page__article-list a:hover { text-decoration: underline; }
.detail-page__article-list p { margin: .375rem 0 0; color: var(--text-muted); font-size: .9375rem; line-height: 1.5; }
.detail-page__google-reviews { margin: 2.5rem 0; }
.detail-page__google-reviews h3 { font-size: 1.25rem; margin: 0 0 0.75rem; }
.detail-page__google-summary { color: var(--text-muted); margin: 0 0 1.5rem; line-height: 1.5; }
.detail-page__google-rating { font-weight: 600; color: var(--text); }
.detail-page__google-review-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 1rem; }
.detail-page__google-review {
  border: 1px solid var(--border, #e8e4df);
  border-radius: var(--radius);
  padding: 1.25rem;
  background: var(--bg-warm, #faf8f5);
}
.detail-page__google-review-header {
  display: flex;
  gap: 0.875rem;
  align-items: flex-start;
}
.detail-page__google-review-avatar { border-radius: 50%; flex-shrink: 0; object-fit: cover; }
.detail-page__google-review-meta { min-width: 0; flex: 1; }
.detail-page__google-review-author {
  display: block;
  font-weight: 600;
  color: var(--primary);
  text-decoration: none;
  line-height: 1.35;
  margin-bottom: 0.25rem;
}
.detail-page__google-review-author:hover { text-decoration: underline; }
.detail-page__google-review-rating-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.375rem 0.5rem;
}
.detail-page__google-review-stars { color: #e6a700; font-size: 0.875rem; letter-spacing: 0.05em; line-height: 1.4; }
.detail-page__google-review-time { font-size: 0.8125rem; color: var(--text-muted); line-height: 1.4; }
.detail-page__google-review-time::before { content: '·'; margin-right: 0.5rem; color: var(--border, #d8d4cf); }
.detail-page__google-review-body { margin-top: 0.875rem; }
.detail-page__google-review-text {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.9375rem;
  line-height: 1.65;
}
.detail-page__google-review-text.is-clamped {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.detail-page__google-review-more {
  margin: 0.5rem 0 0;
  padding: 0;
  border: 0;
  background: none;
  color: var(--primary);
  font: inherit;
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.detail-page__google-review-more:hover { color: var(--primary-dark, var(--primary)); }
.detail-page__google-disclaimer { margin: 1.25rem 0 0; font-size: 0.8125rem; color: var(--text-muted); line-height: 1.5; }

.share-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  flex-shrink: 0;
  padding: 0.5rem 1rem;
  border: 2px solid var(--bg-accent);
  border-radius: 9999px;
  background: var(--white);
  color: var(--primary);
  font-size: 0.9375rem;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: background .2s, border-color .2s, color .2s;
}
.share-btn:hover { background: var(--bg-warm); border-color: var(--primary); }
.share-btn__icon { flex-shrink: 0; }

.share-dropdown { position: relative; }
.share-dropdown--header .share-dropdown__menu { left: auto; right: 0; }
.share-dropdown__menu {
  position: absolute; top: 100%; right: 0; margin-top: .5rem;
  background: var(--white); border: 2px solid var(--bg-accent); border-radius: 1rem;
  box-shadow: var(--shadow); min-width: 14rem; z-index: 50; padding: .5rem;
  opacity: 0; transform: translateY(-0.25rem);
  transition: opacity .15s ease, transform .15s ease;
}
.share-dropdown__menu:not([hidden]) {
  opacity: 1;
  transform: translateY(0);
}
.share-dropdown__item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  width: 100%;
  text-align: left;
  padding: .625rem 1rem;
  border: none;
  background: none;
  cursor: pointer;
  border-radius: .5rem;
  font-size: .9375rem;
  font-family: inherit;
  color: inherit;
  text-decoration: none;
}
.share-dropdown__item:hover { background: var(--bg-warm); }
.share-dropdown__icon { flex-shrink: 0; color: var(--text-muted); }
.share-dropdown__icon--check { display: none; color: var(--primary); }
.share-dropdown__item.is-copied .share-dropdown__icon--copy { display: none; }
.share-dropdown__item.is-copied .share-dropdown__icon--check { display: block; }
.share-dropdown__divider {
  height: 1px;
  margin: .375rem .5rem;
  background: var(--bg-accent);
}

.sidebar-card {
  padding: 2rem; border-radius: var(--radius);
  background: linear-gradient(135deg, var(--bg-warm), var(--bg-accent));
  box-shadow: var(--shadow);
}
.price-badge__label { font-size: .875rem; color: var(--text-muted); margin-bottom: .5rem; }
.price-badge__amount { font-size: 1.75rem; font-weight: 700; color: var(--primary); }
.price-badge__from { font-size: .875rem; color: var(--text-muted); margin-top: .5rem; }

/* Editorial review */
.editorial-review {
  margin-top: 3rem; padding: 2rem; background: var(--white);
  border-radius: var(--radius); box-shadow: var(--shadow);
  border-left: 4px solid var(--primary);
}
.editorial-review__header { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem; margin-bottom: 1rem; }
.editorial-review h2 { font-size: 1.75rem; color: var(--primary); }
.editorial-review__rating { display: flex; align-items: center; gap: .25rem; }
.star { color: #D4C5B0; font-size: 1.25rem; }
.star--filled { color: var(--accent); }
.editorial-review__score { margin-left: .5rem; font-weight: 700; color: var(--primary); }
.editorial-review__content { color: var(--text-muted); font-size: 1.0625rem; line-height: 1.7; }
.editorial-review__date { margin-top: 1rem; font-size: .875rem; color: var(--text-light); }

/* Quiz */
.quiz-page {
  min-height: 100vh; padding: 3rem 1rem;
  background: linear-gradient(135deg, var(--bg) 0%, var(--bg-warm) 50%, var(--bg-accent) 100%);
}
.quiz-container { max-width: 42rem; margin: 0 auto; }
.quiz-card {
  background: var(--white); border-radius: var(--radius); padding: 3rem;
  box-shadow: var(--shadow);
}
.quiz-card h1 { font-size: clamp(1.5rem, 4vw, 2rem); margin-bottom: .5rem; }
.quiz-subtitle { color: var(--text-muted); margin-bottom: 2rem; font-size: 1.125rem; }
.quiz-form { display: flex; flex-direction: column; gap: 1.25rem; }
.form-group label { display: block; font-size: .875rem; font-weight: 600; margin-bottom: .5rem; }
.form-group input, .form-group select, .form-group textarea {
  width: 100%; padding: .75rem 1rem; border: 2px solid var(--bg-accent);
  border-radius: .5rem; font-size: 1rem;
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
  outline: none; border-color: var(--primary);
}
.form-error { color: #c0392b; font-size: .875rem; }
.form-message { font-size: .875rem; margin-top: .5rem; }
.form-message--error { color: #c0392b; }
.form-message--success { color: var(--primary); }
.visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
.newsletter-form { display: flex; flex-direction: column; gap: 1rem; text-align: left; }
.newsletter-form__row { display: flex; flex-wrap: wrap; gap: .75rem; }
.newsletter-form__email { flex: 1 1 14rem; margin: 0; }
.newsletter-form .btn { flex-shrink: 0; }
.form-group--honeypot { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.collection-notice { font-size: .875rem; color: var(--text-muted); line-height: 1.5; margin: 0; }
.collection-notice a { color: var(--primary); }
.consent-group { margin: 0; }
.consent-label { display: flex; gap: .75rem; align-items: flex-start; font-size: .875rem; color: var(--text-muted); line-height: 1.5; cursor: pointer; }
.consent-label input[type="checkbox"] { margin-top: .2rem; flex-shrink: 0; width: 1rem; height: 1rem; accent-color: var(--primary); }
.consent-label a { color: var(--primary); }
.quiz-progress { margin-bottom: 2rem; }
.quiz-progress__header { display: flex; justify-content: space-between; margin-bottom: .75rem; }
.quiz-progress__header h3 { font-size: .875rem; color: var(--text-muted); }
.quiz-progress__header p { font-size: .875rem; color: var(--text-light); }
.quiz-progress__bar { height: .5rem; background: var(--bg-accent); border-radius: 9999px; overflow: hidden; }
.quiz-progress__fill { height: 100%; background: var(--primary); transition: width .3s; border-radius: 9999px; }
.quiz-question h2 { font-size: clamp(1.25rem, 3.5vw, 1.5rem); margin-bottom: 1.5rem; }
.mood-chips { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1rem; }
.mood-chip {
  padding: .375rem .875rem; border-radius: 9999px; border: 1px solid var(--bg-accent);
  background: var(--bg-warm); font-size: .8125rem; cursor: pointer;
}
.mood-chip:hover { border-color: var(--primary); background: var(--bg-accent); }
.quiz-options { display: flex; flex-direction: column; gap: .75rem; }
.quiz-option {
  padding: 1rem 1.25rem; border: 2px solid var(--bg-accent); border-radius: .75rem;
  background: var(--white); cursor: pointer; text-align: left; font-size: 1rem;
  transition: all .2s;
}
.quiz-option:hover { border-color: var(--primary); }
.quiz-option--selected { border-color: var(--primary); background: var(--bg-warm); }
.quiz-nav { display: flex; justify-content: flex-end; margin-top: 2rem; gap: 1rem; }
.quiz-nav #quiz-prev:not([hidden]) { margin-right: auto; }
.quiz-nav .btn--outline { border-color: var(--primary); color: var(--primary); }

@media (max-width: 540px) {
  .quiz-page { padding: 2rem 1rem; }
  .quiz-card { padding: 1.5rem; }
  .quiz-progress__header { flex-direction: column; gap: .25rem; }
  .quiz-nav { flex-direction: column; align-items: stretch; }
  .quiz-nav #quiz-prev:not([hidden]) { margin-right: 0; }
  .quiz-nav .btn { width: 100%; }
}

/* Results */
.results-page { min-height: 80vh; padding: 3rem 1rem; background: linear-gradient(135deg, var(--bg), var(--bg-warm)); }
.results-page h1 { font-size: clamp(1.75rem, 4vw, 2.5rem); margin-bottom: .75rem; }
.results-subtitle { color: var(--text-muted); margin-bottom: 2rem; }
.results-actions { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 2rem; justify-content: center; }
.results-actions .btn--outline { border-color: var(--primary); color: var(--primary); }
.results-loading { text-align: center; padding: 3rem; }
.spinner {
  width: 3rem; height: 3rem; border: 3px solid var(--bg-accent);
  border-top-color: var(--primary); border-radius: 50%;
  animation: spin .8s linear infinite; margin: 0 auto 1rem;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* Compare */
.compare-page__topbar {
  background: linear-gradient(90deg, var(--primary), var(--primary-dark));
  color: var(--white); padding: 1.5rem 0 2rem;
}
.compare-page__topbar h1 { font-size: 2.25rem; margin-top: .5rem; }
.compare-page__topbar p { opacity: .8; margin-top: .5rem; }
.compare-page__content { padding: 3rem 1rem; }
.compare-select-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1rem; margin: 1.5rem 0;
}
.compare-select-item {
  display: flex; justify-content: space-between; align-items: flex-start;
  padding: 1rem; border: 2px solid var(--bg-accent); border-radius: .75rem;
  background: var(--white); cursor: pointer; text-align: left; transition: all .2s;
}
.compare-select-item:hover:not(:disabled) { border-color: var(--primary); }
.compare-select-item--selected { border-color: var(--primary); background: var(--bg-warm); }
.compare-select-item:disabled { opacity: .5; cursor: not-allowed; }
.compare-select-item h4 { font-size: .9375rem; margin-bottom: .25rem; }
.compare-select-item p { font-size: .8125rem; color: var(--text-muted); }
.compare-check {
  width: 1.5rem; height: 1.5rem; border-radius: 50%; background: var(--primary);
  color: var(--white); display: none; align-items: center; justify-content: center;
  font-size: .75rem; flex-shrink: 0;
}
.compare-select-item--selected .compare-check { display: flex; }
.compare-count { font-size: .875rem; color: var(--text-muted); margin-bottom: 1.5rem; }
.compare-table-wrap { overflow-x: auto; }
.compare-table {
  width: 100%; background: var(--white); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 2rem; min-width: 600px;
}
.compare-table__grid { display: grid; gap: 1.5rem; }
.compare-table__label { font-weight: 600; padding: .75rem 0; border-bottom: 1px solid var(--bg-accent); }
.compare-table__cell { padding: .75rem 0 .75rem 1.5rem; border-bottom: 1px solid var(--bg-accent); color: var(--text-muted); font-size: .875rem; }
.compare-table__header { font-weight: 700; color: var(--text); }
.compare-table__remove { color: var(--accent); background: none; border: none; cursor: pointer; font-size: .8125rem; margin-bottom: .5rem; }

/* Footer */
.site-footer { background: var(--footer-bg); color: var(--white); margin-top: 3rem; }
.site-footer__inner {
  display: grid; grid-template-columns: 1fr 1fr; gap: 3rem;
  padding: 3rem 1rem; text-align: left;
}
.site-footer h2 { font-size: 1.5rem; margin-bottom: 1rem; color: var(--white); }
.site-footer__about p {
  color: var(--text-light); font-size: .9375rem; line-height: 1.7;
}
.site-footer__subscribe-desc {
  color: var(--text-light); font-size: .9375rem; margin-bottom: 1.25rem; line-height: 1.6;
}
.site-footer .form-group input {
  background: var(--white); border-color: rgba(255,255,255,.25); color: var(--text);
}
.site-footer .form-group input:focus { border-color: var(--accent); }
.site-footer .consent-label { color: var(--text-light); }
.site-footer .consent-label a { color: var(--accent); }
.site-footer .form-message--error { color: #f5a9a9; }
.site-footer .form-message--success { color: #a8d5a2; }
.site-footer__bottom {
  border-top: 1px solid rgba(255,255,255,.12);
  padding: 1.5rem 1rem; text-align: center;
}
.site-footer__bottom p { color: var(--text-light); font-size: .9375rem; }
.site-footer__links { margin-top: .75rem; }
.site-footer__links a { color: var(--white); text-decoration: underline; font-size: .875rem; }

@media (max-width: 48rem) {
  .site-footer__inner { grid-template-columns: 1fr; gap: 2.5rem; }
}

/* Legal pages */
.legal-page { padding: 3rem 1rem; }
.legal-container { max-width: 42rem; margin: 0 auto; }
.legal-container h1 { font-size: 2rem; margin-bottom: .5rem; }
.legal-updated { color: var(--text-muted); margin-bottom: 2rem; font-size: .9375rem; }
.legal-section { margin-bottom: 2rem; }
.legal-section h2 { font-size: 1.25rem; margin-bottom: .75rem; color: var(--primary); }
.legal-section p, .legal-section li { color: var(--text-muted); line-height: 1.6; margin-bottom: .75rem; }
.legal-section ul { padding-left: 1.25rem; }
.legal-section a { color: var(--primary); }
.legal-placeholder { color: #922b21; text-transform: uppercase; font-weight: 600; }
.unsubscribe-form { margin-top: 1rem; }

/* Results */
.results-marketing-note { color: var(--text-muted); margin-bottom: 1.5rem; font-size: 1rem; }
.results-privacy { margin-top: 2rem; font-size: .875rem; }
.results-privacy a { color: var(--primary); }

/* Not found */
.not-found { min-height: 60vh; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 2rem; }
.not-found h1 { font-size: 2rem; margin-bottom: 1rem; }
.not-found p { color: var(--text-muted); margin-bottom: 2rem; }
.not-found .btn--primary { color: var(--white); }

/* Articles (public) */
.articles-grid { display: grid; gap: 2rem; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.article-card {
  background: var(--white); border-radius: var(--radius);
  box-shadow: var(--shadow); transition: transform .2s; overflow: hidden;
}
.article-card__link { display: flex; flex-direction: column; height: 100%; color: inherit; text-decoration: none; }
.article-card:hover { transform: translateY(-2px); }
.article-card__image-wrap {
  height: 12rem; overflow: hidden; background: var(--bg-accent);
}
.article-card__image {
  width: 100%; height: 100%; object-fit: cover; transition: transform .3s;
}
.article-card:hover .article-card__image { transform: scale(1.05); }
.article-card__body { padding: 1.5rem; flex: 1; display: flex; flex-direction: column; }
.article-card h2 { font-size: 1.25rem; margin-bottom: .75rem; color: var(--primary); }
.article-card p { color: var(--text-muted); font-size: .9375rem; margin-bottom: .75rem; flex: 1; }
.article-card__date { font-size: .8125rem; color: var(--text-light); margin-top: auto; }
.empty-state { text-align: center; color: var(--text-muted); padding: 3rem; }
.article-page { padding: 3rem 1rem; }
.article-content { max-width: 48rem; margin: 0 auto 3rem; }
.article-content__header { margin-bottom: 1rem; }
.article-content__header h1 { font-size: clamp(2rem, 4vw, 2.75rem); margin: 0 0 .5rem; }
.article-content__header time { color: var(--text-light); font-size: .9375rem; }
.article-content__excerpt { font-size: 1.125rem; color: var(--text-muted); margin: 0 0 .75rem; font-style: italic; }
.article-content__share { margin-bottom: 2rem; }
.share-dropdown--compact .share-btn {
  padding: 0.3125rem 0.625rem;
  font-size: 0.8125rem;
  gap: 0.25rem;
}
.share-dropdown--compact .share-dropdown__menu { left: 0; right: auto; }
.article-content__body p { margin-bottom: 1.25rem; line-height: 1.8; color: var(--text); }
.article-content__body h2,
.article-content__body h3 { margin: 2rem 0 1rem; color: var(--primary); }
.article-quote { margin: 1.5rem 0; padding: 1rem 1.5rem; border-left: 4px solid var(--accent); background: var(--bg-warm); font-style: italic; }
.article-quote cite { display: block; margin-top: .75rem; font-size: .875rem; font-style: normal; color: var(--text-muted); }
.article-figure { margin: 1.5rem 0; }
.article-figure img { width: 100%; border-radius: .5rem; }
.article-figure figcaption { margin-top: .5rem; font-size: .875rem; color: var(--text-muted); }
.article-block-card { margin: 1.5rem 0; }
.article-block-grid { margin: 1.5rem 0; }
.article-compare { margin: 2rem 0; }
.article-ranked-list { list-style: none; padding: 0; margin: 1.5rem 0; counter-reset: rank; }
.article-ranked-list__item { padding: 1rem 0; border-bottom: 1px solid var(--bg-accent); }
.article-ranked-list__header { display: flex; flex-wrap: wrap; align-items: baseline; gap: .5rem 1rem; }
.article-ranked-list__rank {
  display: inline-flex; align-items: center; justify-content: center;
  width: 2rem; height: 2rem; border-radius: 50%; background: var(--primary); color: #fff;
  font-weight: 700; font-size: .875rem; flex-shrink: 0;
}
.article-ranked-list__header h3 { margin: 0; font-size: 1.125rem; }
.article-ranked-list__header h3 a { color: var(--primary); text-decoration: none; }
.article-ranked-list__location { color: var(--text-muted); font-size: .875rem; }
.article-ranked-list__note { margin: .75rem 0 0 3rem; color: var(--text); line-height: 1.6; }
.article-ranked-list--plain { counter-reset: none; }
.article-linked { margin-top: 3rem; padding-top: 2rem; border-top: 2px solid var(--bg-accent); }
.article-linked h2 { font-size: 1.75rem; margin-bottom: 1.5rem; }
