/* Return To You — Wellness Directory styles */
:root {
  --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);
}

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

body {
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}

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

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

/* 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%; }
.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; 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;
}
.hero__overlay { position: absolute; inset: 0; background: rgba(0,0,0,.35); }
.hero__content { position: relative; z-index: 1; max-width: 48rem; padding: 2rem 1rem; }
.hero h1 { font-size: clamp(2.5rem, 6vw, 4.5rem); font-weight: 700; 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; font-weight: 700; }

.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__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); }

/* Listings grid */
.listings-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 2rem;
}
.listing-item[hidden] { display: none; }

.listing-card {
  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: block; color: inherit; }
.listing-card__image-wrap {
  height: 12rem; 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 { 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; font-weight: 700; }
.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-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: 1.5rem 0; }
.detail-page__content { padding: 3rem 1rem; }
.detail-page__hero-image { width: 100%; height: 24rem; object-fit: cover; border-radius: var(--radius); margin-bottom: 1rem; box-shadow: var(--shadow); }
.detail-page__carousel { display: flex; gap: .75rem; overflow-x: auto; padding-bottom: 1rem; margin-bottom: 1rem; }
.detail-page__carousel-thumb { flex: 0 0 auto; width: 6rem; height: 4.5rem; padding: 0; border: 2px solid transparent; border-radius: var(--radius); overflow: hidden; cursor: pointer; background: none; }
.detail-page__carousel-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.detail-page__carousel-thumb:hover,
.detail-page__carousel-thumb.is-active { border-color: var(--color-primary); }
.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__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__actions { display: flex; flex-wrap: wrap; gap: 1rem; margin: 2rem 0; }
.detail-page__actions .btn--outline { border-color: var(--primary); color: var(--primary); }
.detail-page__actions .btn--outline:hover { background: var(--bg-warm); }

.share-dropdown { position: relative; }
.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: 12rem; z-index: 50; padding: .5rem;
}
.share-dropdown__menu a, .share-dropdown__menu button {
  display: block; width: 100%; text-align: left; padding: .625rem 1rem;
  border: none; background: none; cursor: pointer; border-radius: .5rem;
  font-size: .9375rem;
}
.share-dropdown__menu a:hover, .share-dropdown__menu button:hover { background: var(--bg-warm); }

.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: 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-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: 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: space-between; margin-top: 2rem; gap: 1rem; }
.quiz-nav .btn--outline { border-color: var(--primary); color: var(--primary); }

/* 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); padding: 2rem 1rem; text-align: center; margin-top: 3rem; }
.site-footer 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; }

/* 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); padding: 1.5rem;
  box-shadow: var(--shadow); transition: transform .2s;
}
.article-card:hover { transform: translateY(-2px); }
.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; }
.article-card__date { font-size: .8125rem; color: var(--text-light); }
.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: 1.5rem; }
.article-content__header h1 { font-size: clamp(2rem, 4vw, 2.75rem); margin-bottom: .5rem; }
.article-content__header time { color: var(--text-light); font-size: .9375rem; }
.article-content__excerpt { font-size: 1.125rem; color: var(--text-muted); margin-bottom: 2rem; font-style: italic; }
.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; }
