/* 08-pages.css */
/* ============================================================
   14. FILTERS SECTION
   ============================================================ */








.search-input-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.search-input-wrap__icon {
  position: absolute;
  left: var(--sp-4);
  color: var(--text-muted);
  pointer-events: none;
  flex-shrink: 0;
}

.filters-form__input {
  width: 100%;
  padding: var(--sp-3) var(--sp-4) var(--sp-3) calc(var(--sp-4) + 18px + var(--sp-3));
  border: 1.5px solid var(--border);
  border-radius: var(--radius-full);
  font-family: var(--font-base);
  font-size: var(--fs-sm);
  color: var(--text);
  background: var(--surface);
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
  outline: none;
}

.filters-form__input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(27,94,59,.15);
}

.filters-form__input::placeholder { color: var(--text-light); }

.filters-form__select {
  width: 100%;
  padding: var(--sp-3) var(--sp-4);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-full);
  font-family: var(--font-base);
  font-size: var(--fs-sm);
  color: var(--text);
  background: var(--surface);
  cursor: pointer;
  outline: none;
  transition: border-color var(--transition-fast);
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%235C6B62' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right var(--sp-4) center;
  padding-right: calc(var(--sp-4) + 20px);
}

.filters-form__select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(27,94,59,.15);
}

/* Dependent (nested) selects — clearly look disabled until the parent
   (category / canton) is chosen. */
.filters-form__select:disabled,
.filters-form__select[aria-disabled="true"] {
  opacity: 0.55;
  background-color: var(--surface-2);
  color: var(--text-muted);
  border-color: var(--border);
  border-style: dashed;
  cursor: not-allowed;
  box-shadow: none;
}









/* ============================================================
   15. PLACE DETAIL LAYOUT
   ============================================================ */












@media (min-width: 1024px) {
  
}







/* Prose */
.prose {
  font-size: var(--fs-md);
  line-height: var(--lh-relaxed);
  color: var(--text-muted);
}

.prose p { margin-bottom: var(--sp-4); }
.prose p:last-child { margin-bottom: 0; }

/* Photo gallery */










/* Services */






/* Video & 3D frame */
.video-wrap,
.frame-wrap {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--surface-3);
}

.video-wrap--horizontal { aspect-ratio: 16 / 9; }
.video-wrap--vertical   { aspect-ratio: 9 / 16; max-width: 360px; }

.frame-wrap { aspect-ratio: 4 / 3; }

.video-wrap__iframe,
.frame-wrap__iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: none;
}

/* ============================================================
   APP DOWNLOAD SECTION
   ============================================================ */
.app-download {
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 60%, var(--primary-light) 100%);
  color: #fff;
  overflow: hidden;
  position: relative;
}

.app-download::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.04'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E") repeat;
  pointer-events: none;
}

.app-download__inner {
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--sp-12);
  padding-block: var(--sp-20);
}

@media (min-width: 900px) {
  .app-download__inner {
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: var(--sp-16);
  }
}

.app-download__eyebrow {
  display: inline-block;
  font-size: var(--fs-xs);
  font-weight: var(--fw-semibold);
  letter-spacing: .15em;
  text-transform: uppercase;
  color: rgba(255,255,255,.7);
  margin-bottom: var(--sp-3);
}

.app-download__title {
  font-size: clamp(var(--fs-2xl), 4vw, var(--fs-4xl));
  font-weight: var(--fw-extrabold);
  line-height: var(--lh-tight);
  color: #fff;
  margin-bottom: var(--sp-4);
}

.app-download__subtitle {
  font-size: var(--fs-lg);
  color: rgba(255,255,255,.85);
  margin-bottom: var(--sp-8);
  line-height: var(--lh-relaxed);
  max-width: 520px;
}

.app-download__features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
  margin-bottom: var(--sp-10);
}

.app-download__features li {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  font-size: var(--fs-sm);
  color: rgba(255,255,255,.9);
}

.app-download__features svg {
  flex-shrink: 0;
  color: var(--secondary);
}

.app-download__badges {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-4);
  margin-bottom: var(--sp-6);
}

.store-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-3);
  padding: var(--sp-3) var(--sp-5);
  background: rgba(0,0,0,.35);
  border: 1.5px solid rgba(255,255,255,.3);
  border-radius: var(--radius-lg);
  text-decoration: none;
  color: #fff;
  transition:
    background var(--transition-base),
    border-color var(--transition-base),
    transform var(--transition-spring);
  min-width: 160px;
}

.store-badge:hover {
  background: rgba(0,0,0,.55);
  border-color: rgba(255,255,255,.6);
  transform: translateY(-2px);
}

.store-badge--coming-soon {
  opacity: .6;
  cursor: default;
  pointer-events: none;
}

.store-badge span {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.store-badge small {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: .05em;
  opacity: .8;
}

.store-badge span > :last-child {
  font-size: var(--fs-base);
  font-weight: var(--fw-semibold);
}







/* Phone mockup placeholder */


@media (min-width: 900px) {
  
}













/* Keep old classes functional (unused fallback) */






/* ============================================================
   Reviews  (Wave 2 / Agent C2 — comments + ratings on place detail)
   ============================================================ */
.reviews {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--sp-6);
  margin-top: var(--sp-8);
}

/* Header row: summary + distribution side by side on desktop, stacked on mobile */
.reviews-header {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--sp-6);
  align-items: start;
  padding-bottom: var(--sp-5);
  border-bottom: 1px solid var(--border);
  margin-bottom: var(--sp-5);
}

@media (min-width: 720px) {
  .reviews-header {
    grid-template-columns: minmax(220px, 280px) 1fr;
  }
}

.reviews-summary {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--sp-2);
  text-align: center;
}

.reviews-average {
  font-size: var(--fs-5xl);
  font-weight: var(--fw-bold);
  color: var(--text);
  line-height: 1;
  display: inline-flex;
  align-items: baseline;
  gap: var(--sp-2);
}

.reviews-average__max {
  font-size: var(--fs-lg);
  font-weight: var(--fw-regular);
  color: var(--text-muted);
}

.reviews-stars {
  display: inline-flex;
  gap: 2px;
  color: var(--secondary);
}

.reviews-star {
  display: inline-flex;
  color: var(--border);
}

.reviews-star.is-filled {
  color: var(--secondary);
}

.reviews-count {
  color: var(--text-muted);
  font-size: var(--fs-sm);
}

/* Distribution: 5 rows of [label] [bar] [count] */
.reviews-distribution {
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
}

.reviews-dist__row {
  display: grid;
  grid-template-columns: 24px 1fr 32px;
  gap: var(--sp-3);
  align-items: center;
  font-size: var(--fs-sm);
  color: var(--text-muted);
}

.reviews-dist__label {
  text-align: right;
  font-weight: var(--fw-medium);
  color: var(--text);
}

.reviews-dist__bar {
  position: relative;
  height: 8px;
  background: var(--surface-2);
  border-radius: var(--radius-full);
  overflow: hidden;
}

.reviews-dist__fill {
  display: block;
  height: 100%;
  background: var(--secondary);
  border-radius: var(--radius-full);
  transition: width var(--transition-base);
}

.reviews-dist__count {
  text-align: left;
  font-variant-numeric: tabular-nums;
}

/* Axes pills (only shown if axes_avg has values) */
.reviews-axes {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-2);
  margin-bottom: var(--sp-5);
}

.reviews-axis-pill {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  padding: var(--sp-2) var(--sp-3);
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  font-size: var(--fs-sm);
}

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

.reviews-axis-pill__value {
  font-weight: var(--fw-semibold);
  color: var(--text);
}

/* CTA row */
.reviews-cta {
  margin-bottom: var(--sp-5);
}

/* Form (collapsed by default) */
.reviews-form {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: var(--sp-5);
  margin-bottom: var(--sp-5);
  display: flex;
  flex-direction: column;
  gap: var(--sp-4);
  animation: reviewsSlideDown var(--transition-base);
}
/* [hidden] must beat the display:flex above — otherwise the form is always
   visible on page load and clicking "Escribe una reseña" does nothing. */
.reviews-form[hidden] {
  display: none !important;
  animation: none;
}


@keyframes reviewsSlideDown {
  from { opacity: 0; transform: scaleY(.9); }
  to   { opacity: 1; transform: scaleY(1); }
}

.reviews-form__field {
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
}

.reviews-form__label {
  font-weight: var(--fw-medium);
  color: var(--text);
  font-size: var(--fs-sm);
}

.reviews-form__textarea {
  width: 100%;
  min-height: 120px;
  padding: var(--sp-3);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--surface);
  color: var(--text);
  font-family: var(--font-base);
  font-size: var(--fs-md);
  resize: vertical;
}

.reviews-form__textarea:focus {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
  border-color: var(--primary);
}

.reviews-form__counter {
  align-self: flex-end;
  font-size: var(--fs-xs);
  color: var(--text-muted);
  font-variant-numeric: tabular-nums;
}

.reviews-form__toggle {
  background: transparent;
  border: 1px dashed var(--border);
  border-radius: var(--radius-md);
  padding: var(--sp-2) var(--sp-3);
  color: var(--text-muted);
  font-size: var(--fs-sm);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  align-self: flex-start;
  min-height: 44px;
}

.reviews-form__toggle:hover {
  color: var(--primary);
  border-color: var(--primary);
}

.reviews-form__toggle-icon {
  display: inline-flex;
  width: 18px;
  height: 18px;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-full);
  background: var(--surface-3);
  font-weight: var(--fw-bold);
  transition: transform var(--transition-base);
}

.reviews-form__toggle.is-open .reviews-form__toggle-icon {
  transform: rotate(45deg);
}

.reviews-form__axes {
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
  padding-left: var(--sp-3);
  border-left: 2px solid var(--border);
}

/* The detailed-axis panel starts collapsed; the `[hidden]` attribute must
   beat the `display: flex` rule above so the toggle actually conceals the
   four axis rows. */
.reviews-form__axes[hidden] {
  display: none;
}

.reviews-form__error {
  background: var(--surface);
  border: 1px solid var(--error);
  color: var(--error);
  border-radius: var(--radius-md);
  padding: var(--sp-2) var(--sp-3);
  font-size: var(--fs-sm);
}

.reviews-form__actions {
  display: flex;
  gap: var(--sp-3);
  justify-content: flex-end;
  flex-wrap: wrap;
}

/* Split rating / comment panels (mirrors the mobile app's separation) */
.reviews-form__panel {
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: var(--sp-4);
  margin: 0 0 var(--sp-3);
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
  background: var(--surface);
}
.reviews-form__legend {
  font-weight: 600;
  font-size: var(--fs-md);
  color: var(--text);
  padding: 0 var(--sp-2);
}

/* "Verify your email" inline banner shown to logged-but-unverified users */
.reviews-form__verify-banner {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  padding: var(--sp-3) var(--sp-4);
  background: color-mix(in srgb, var(--warning, #d97706) 12%, transparent);
  border: 1px solid color-mix(in srgb, var(--warning, #d97706) 35%, transparent);
  border-radius: var(--radius-md);
  margin-bottom: var(--sp-3);
}
.reviews-form__verify-banner[hidden] { display: none !important; }
.reviews-form__verify-text {
  flex: 1;
  margin: 0;
  font-size: var(--fs-sm);
  color: var(--text);
}
.btn.btn--sm { padding: var(--sp-1) var(--sp-3); font-size: var(--fs-sm); }

/* Star input */
.star-input {
  display: inline-flex;
  gap: var(--sp-1);
}

.star-input__btn {
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: none;
  cursor: pointer;
  color: var(--border);
  padding: 0;
  border-radius: var(--radius-sm);
  transition: transform var(--transition-fast);
}

.star-input__btn.is-on {
  color: var(--secondary);
}

.star-input__btn:hover {
  transform: scale(1.1);
  color: var(--secondary-light);
}

.star-input__btn:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

/* Empty state */
.reviews-empty {
  text-align: center;
  padding: var(--sp-6) var(--sp-4);
  color: var(--text-muted);
  font-size: var(--fs-sm);
  background: var(--surface-2);
  border-radius: var(--radius-md);
}

/* Comment list */
.comment-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: var(--sp-4);
}

.comment-card {
  position: relative;
  display: grid;
  grid-template-columns: 40px 1fr 36px;
  gap: var(--sp-3);
  padding: var(--sp-4);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
}

.comment-card__avatar {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-full);
  object-fit: cover;
  display: block;
  background: var(--surface-3);
}

.comment-card__avatar--placeholder {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: var(--fw-semibold);
  color: var(--text-on-primary);
  background: var(--primary);
  font-size: var(--fs-sm);
}

.comment-card__body {
  min-width: 0;
}

.comment-card__head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: var(--sp-2);
  margin-bottom: var(--sp-1);
}

.comment-card__name {
  font-weight: var(--fw-semibold);
  color: var(--text);
}

.comment-card__time {
  color: var(--text-muted);
  font-size: var(--fs-xs);
}

.comment-card__text {
  color: var(--text);
  font-size: var(--fs-md);
  line-height: var(--lh-relaxed);
  margin: 0;
  white-space: pre-wrap;
  word-wrap: break-word;
}

.comment-card__kebab {
  width: 36px;
  height: 36px;
  border: none;
  background: transparent;
  cursor: pointer;
  border-radius: var(--radius-full);
  color: var(--text-muted);
  font-size: var(--fs-xl);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  align-self: flex-start;
}

.comment-card__kebab:hover {
  background: var(--surface-2);
  color: var(--text);
}

.comment-card__kebab:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

/* Floating menu (single instance, positioned by JS).
   The `display: flex` rule overrides the `[hidden]` attribute, so we add an
   explicit `[hidden]` selector to keep the menu collapsed until JS opens it
   — otherwise the "Reportar" / "Editar" / "Eliminar" buttons render
   statically below the comment list as orphans. */
.comment-menu {
  position: absolute;
  z-index: var(--z-modal);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  min-width: 160px;
  padding: var(--sp-1);
  display: flex;
  flex-direction: column;
}

.comment-menu[hidden] {
  display: none;
}

.comment-menu__item {
  background: transparent;
  border: none;
  text-align: left;
  padding: var(--sp-3);
  min-height: 44px;
  cursor: pointer;
  font-size: var(--fs-sm);
  color: var(--text);
  border-radius: var(--radius-sm);
}

.comment-menu__item:hover {
  background: var(--surface-2);
}

.comment-menu__item--danger {
  color: var(--error);
}

/* Load-more button */
.comment-load-more {
  margin-top: var(--sp-5);
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text);
  padding: var(--sp-3) var(--sp-5);
  border-radius: var(--radius-md);
  font-weight: var(--fw-medium);
  min-height: 44px;
  cursor: pointer;
  align-self: center;
  display: block;
  margin-left: auto;
  margin-right: auto;
}
.comment-load-more[hidden] { display: none !important; }

.comment-load-more:hover {
  background: var(--surface-2);
  border-color: var(--primary);
  color: var(--primary);
}

/* Auth gate modal */
.reviews-modal {
  position: fixed;
  inset: 0;
  z-index: var(--z-modal);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--sp-4);
}

.reviews-modal[hidden] { display: none; }

.reviews-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
}

.reviews-modal__card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--sp-6);
  max-width: 420px;
  width: 100%;
  box-shadow: var(--shadow-2xl);
  display: flex;
  flex-direction: column;
  gap: var(--sp-4);
}

.reviews-modal__title {
  font-size: var(--fs-xl);
  font-weight: var(--fw-bold);
  color: var(--text);
  margin: 0;
}

.reviews-modal__text {
  color: var(--text-muted);
  font-size: var(--fs-sm);
  margin: 0;
  line-height: var(--lh-relaxed);
}

.reviews-modal__actions {
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
}

.reviews-modal__actions .btn {
  width: 100%;
  min-height: 44px;
}

/* Row variant for Cancel + Submit pairs in confirmation/report modals */
.reviews-modal__actions--row {
  flex-direction: row;
  justify-content: flex-end;
  flex-wrap: wrap;
}

.reviews-modal__actions--row .btn {
  width: auto;
  flex: 1 1 auto;
  min-width: 120px;
}

/* Report modal: list of reasons (radio rows) */
.report-modal__reasons {
  border: 0;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
}

.report-modal__reason {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  padding: var(--sp-2) var(--sp-3);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  cursor: pointer;
  color: var(--text);
  font-size: var(--fs-sm);
  transition: border-color var(--transition-fast), background var(--transition-fast);
}

.report-modal__reason:hover {
  border-color: var(--primary);
}

.report-modal__reason input[type="radio"] {
  accent-color: var(--primary);
  margin: 0;
}

.report-modal__reason input[type="radio"]:checked + span {
  font-weight: var(--fw-semibold);
  color: var(--primary);
}

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

/* Toast (small ephemeral message — confirmation of report sent, etc.) */
.reviews-toast {
  position: fixed;
  bottom: var(--sp-6);
  left: 50%;
  transform: translateX(-50%);
  z-index: var(--z-modal);
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  padding: var(--sp-3) var(--sp-4);
  font-size: var(--fs-sm);
  max-width: 90vw;
}

.reviews-toast[hidden] { display: none; }

/* Inline-edit form (replaces native prompt) */
.comment-card__edit {
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
  margin-top: var(--sp-2);
}

.comment-card__edit textarea {
  width: 100%;
  min-height: 80px;
  resize: vertical;
  padding: var(--sp-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--surface);
  color: var(--text);
  font: inherit;
}

.comment-card__edit-actions {
  display: flex;
  gap: var(--sp-2);
  justify-content: flex-end;
}


/* ============================================================
   AUTH PAGES (Wave 2 / Agent C1)
   Login, register, forgot, reset, verify, profile, edit.
   All colors come from existing CSS variables — no new hex codes.
   ============================================================ */

.auth-page {
  background: var(--bg);
  padding: var(--sp-10) 0 var(--sp-16);
  min-height: calc(100vh - 200px);
  display: flex;
  align-items: flex-start;
  justify-content: center;
}

.auth-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  padding: var(--sp-8) var(--sp-6);
  width: 100%;
  max-width: 420px;
  margin: 0 var(--sp-4);
}

.auth-page--wide .auth-card { max-width: 560px; }

@media (min-width: 640px) {
  .auth-card { padding: var(--sp-10) var(--sp-8); }
}

.auth-card__head {
  text-align: center;
  margin-bottom: var(--sp-6);
}

.auth-card__title {
  font-size: var(--fs-2xl);
  font-weight: var(--fw-bold);
  color: var(--text);
  margin: 0 0 var(--sp-2) 0;
}

.auth-card__subtitle {
  color: var(--text-muted);
  font-size: var(--fs-sm);
  margin: 0;
  line-height: var(--lh-relaxed);
}

/* ── Form layout ────────────────────────────────────────────── */
.auth-form {
  display: flex;
  flex-direction: column;
  gap: var(--sp-4);
}

.auth-form__row {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
}

.auth-form__row--between {
  justify-content: space-between;
  margin-top: calc(-1 * var(--sp-2));
}

.auth-form__row--actions {
  justify-content: flex-end;
  gap: var(--sp-3);
  margin-top: var(--sp-2);
}

.auth-form__footer {
  text-align: center;
  color: var(--text-muted);
  font-size: var(--fs-sm);
  margin: var(--sp-4) 0 0 0;
}

/* ── Fields ─────────────────────────────────────────────────── */
.field {
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
}

.field > label {
  font-size: var(--fs-sm);
  font-weight: var(--fw-medium);
  color: var(--text);
  line-height: 1.2;
}

.field__hint {
  font-size: var(--fs-xs);
  color: var(--text-muted);
  margin: 0;
}

.input-wrap {
  position: relative;
  display: flex;
  align-items: stretch;
}

.input-wrap > input,
.input-wrap > select,
.input-wrap > textarea {
  width: 100%;
  min-height: 44px;
  padding: var(--sp-3) var(--sp-4);
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
  font-family: var(--font-base);
  font-size: var(--fs-md);
  color: var(--text);
  line-height: 1.3;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.input-wrap > select { padding-right: var(--sp-8); appearance: auto; }

.input-wrap > input:focus,
.input-wrap > select:focus,
.input-wrap > textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-50);
}

.input-wrap--password > input { padding-right: 44px; }

.password-toggle {
  position: absolute;
  top: 0;
  right: 0;
  height: 100%;
  width: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  border-radius: var(--radius-md);
}

.password-toggle:hover { color: var(--text); }
.password-toggle:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: -2px;
}

/* Toggle eye visibility — driven by the `data-visible` attribute on the
   wrapping button. `false` (default) means the password is hidden, so we
   show the "eye" (click to reveal); `true` means the password is shown, so
   we display the "eye-slash" (click to hide). Using `display: none !important`
   overrides the global `svg { display: block }` rule. */
.password-toggle .eye-hide { display: none !important; }
.password-toggle[data-visible="true"] .eye-show { display: none !important; }
.password-toggle[data-visible="true"] .eye-hide { display: inline-block !important; }

/* ── Errors / banners ───────────────────────────────────────── */
.error-msg {
  font-size: var(--fs-xs);
  color: var(--error);
  margin: 0;
  line-height: 1.3;
}

.auth-banner {
  padding: var(--sp-3) var(--sp-4);
  border-radius: var(--radius-md);
  font-size: var(--fs-sm);
  margin-bottom: var(--sp-4);
  line-height: var(--lh-relaxed);
}

.auth-banner--error {
  background: rgba(198, 40, 40, 0.08);
  color: var(--error);
  border: 1px solid rgba(198, 40, 40, 0.2);
}

.auth-banner--success {
  background: var(--primary-50);
  color: var(--primary-dark);
  border: 1px solid var(--primary-100);
}

/* ── Primary CTA + spinner ──────────────────────────────────── */
.auth-submit {
  min-height: 44px;
}

.auth-submit:disabled {
  opacity: 0.65;
  cursor: wait;
}

.auth-submit__spinner {
  display: inline-block;
  width: 16px;
  height: 16px;
  border: 2px solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
  margin-right: var(--sp-2);
  vertical-align: middle;
}

.spinner--lg {
  width: 32px;
  height: 32px;
  border-width: 3px;
}

.auth-link {
  color: var(--primary);
  font-weight: var(--fw-medium);
  text-decoration: none;
}

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

/* ── Success / status states ────────────────────────────────── */
.auth-success,
.auth-status {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: var(--sp-3);
  padding: var(--sp-4) 0;
  color: var(--primary);
}

/* [hidden] must win over the display:flex on these classes. */
.auth-success[hidden],
.auth-status[hidden],
.auth-banner[hidden] { display: none !important; }

.auth-status--error { color: var(--error); }

.auth-success__title {
  font-size: var(--fs-xl);
  font-weight: var(--fw-bold);
  color: var(--text);
  margin: 0;
}

.auth-success__text,
.auth-status__text {
  color: var(--text-muted);
  font-size: var(--fs-sm);
  margin: 0;
  max-width: 320px;
  line-height: var(--lh-relaxed);
}

/* ============================================================
   PROFILE / ACCOUNT
   ============================================================ */
.profile-head {
  display: flex;
  align-items: center;
  gap: var(--sp-4);
  padding-bottom: var(--sp-6);
  margin-bottom: var(--sp-4);
  border-bottom: 1px solid var(--border-light);
}

.profile-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  background: var(--surface-2);
  border: 2px solid var(--border-light);
  flex-shrink: 0;
}

.profile-avatar--placeholder {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--text-light);
}

.profile-head__info { min-width: 0; flex: 1; }

.profile-head__name {
  font-size: var(--fs-lg);
  font-weight: var(--fw-bold);
  color: var(--text);
  margin: 0 0 var(--sp-1) 0;
  overflow: hidden;
  text-overflow: ellipsis;
}

.profile-head__email {
  font-size: var(--fs-sm);
  color: var(--text-muted);
  margin: 0;
  word-break: break-all;
}

.profile-head__warning {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  margin: var(--sp-2) 0 0 0;
  font-size: var(--fs-xs);
  color: var(--warning);
}

/* ── Tappable rows ──────────────────────────────────────────── */
.profile-rows {
  display: flex;
  flex-direction: column;
  gap: var(--sp-1);
}

.profile-row {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  padding: var(--sp-3) var(--sp-2);
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--border-light);
  font-family: var(--font-base);
  font-size: var(--fs-md);
  color: var(--text);
  text-decoration: none;
  text-align: left;
  cursor: pointer;
  min-height: 44px;
  width: 100%;
}

.profile-row:hover {
  background: var(--surface-2);
}

.profile-row--form {
  padding: 0;
  border-bottom: none;
}

.profile-row__btn {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  width: 100%;
  background: transparent;
  border: none;
  padding: var(--sp-3) var(--sp-2);
  font-family: var(--font-base);
  font-size: var(--fs-md);
  color: var(--error);
  cursor: pointer;
  min-height: 44px;
  text-align: left;
}

.profile-row__btn:hover { background: var(--surface-2); }

.profile-row__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  color: var(--text-muted);
}

.profile-row--danger .profile-row__icon,
.profile-row__btn .profile-row__icon { color: var(--error); }

.profile-row__label { flex: 1; }

.profile-row__chevron {
  display: inline-flex;
  color: var(--text-light);
}

/* ── Avatar picker on the edit-profile page ─────────────────── */
.field--avatar {
  align-items: stretch;
}

.avatar-picker {
  display: flex;
  align-items: center;
  gap: var(--sp-4);
}

.avatar-picker__preview {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  overflow: hidden;
  background: var(--surface-2);
  border: 2px solid var(--border-light);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

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

.avatar-picker__placeholder {
  color: var(--text-light);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.avatar-picker__btn { cursor: pointer; }

/* ── Empty state shared with reviews placeholder ────────────── */
.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: var(--sp-3);
  padding: var(--sp-8) var(--sp-4);
  color: var(--text-light);
}

.empty-state__text {
  color: var(--text-muted);
  font-size: var(--fs-sm);
  margin: 0;
  max-width: 320px;
}

/* ============================================================
   AUDUBON-INSPIRED REDESIGN — Home & Places
   ============================================================ */



/* ── Hero full-bleed ─────────────────────────────────────────── */
.hero-full {
  position: relative;
  min-height: calc(100vh - var(--navbar-h));
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}

.hero-full__bg {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(160deg, #001F12 0%, #1B5E3B 55%, #2e7d52 100%);
  background-size: cover;
  background-position: center;
  transform: scale(1.05);
  transition: transform 8s ease;
}

/* Ken Burns — slow zoom on the single hero. Disabled under reduced motion. */
body.page--home .hero-full__bg {
  animation: hero-zoom 18s ease-out forwards;
}
@keyframes hero-zoom {
  from { transform: scale(1.10); }
  to   { transform: scale(1.00); }
}
@media (prefers-reduced-motion: reduce) {
  body.page--home .hero-full__bg { animation: none; transform: scale(1.0); }
}

.hero-full__scrim {
  position: absolute;
  inset: 0;
}

.hero-full__content {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: flex-end;
  text-align: left;
}

.hero-full__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  font-size: var(--fs-xs);
  font-weight: var(--fw-semibold);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.92);
}

.hero-full__title {
  font-family: var(--display-font);
  font-size: clamp(2.6rem, 7vw, 5.2rem);
  font-weight: 800;
  line-height: 1.05;
  color: #ffffff;
  letter-spacing: -0.02em;
  max-width: 16ch;
}

html[data-font="large"] .hero-full__title { font-size: clamp(2.8rem, 7.5vw, 5.6rem); }
html[data-font="small"] .hero-full__title { font-size: clamp(2.2rem, 6vw, 4.4rem); }

.hero-full__subtitle {
  font-size: clamp(var(--fs-md), 1.8vw, var(--fs-xl));
  color: rgba(255,255,255,0.92);
  line-height: var(--lh-relaxed);
  max-width: 44ch;
}

.hero-full__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-4);
  justify-content: flex-start;
}

/* Wave divider removed for a cleaner, modern edge. */
.hero-full__wave { display: none; }

/* ── Impact stats section ────────────────────────────────────── */


















@media (max-width: 560px) {
  
  
}

/* ── Category strip (dark green, Audubon-style) ──────────────── */














@media (min-width: 768px) {
  
}

















/* ── Place card image gradient overlay ──────────────────────── */
.place-card__image-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(0,0,0,0.35) 0%,
    transparent 50%
  );
  pointer-events: none;
}

/* ── Places layout (sidebar + content) ──────────────────────── */
.places-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--sp-8);
  padding-block: var(--sp-8) var(--sp-16);
  align-items: start;
}

@media (min-width: 900px) {
  .places-layout {
    grid-template-columns: 280px 1fr;
    gap: var(--sp-10);
  }
}

/* Sidebar */
.places-sidebar {}

.places-sidebar__inner {
  background: var(--surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-xl);
  overflow: hidden;
  position: sticky;
  top: calc(var(--navbar-h) + var(--sp-4));
}

html.dark .places-sidebar__inner { background: var(--surface-2); }

.sidebar-header {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  padding: var(--sp-4) var(--sp-5);
  background: var(--primary);
  color: white;
}

.sidebar-header__title {
  font-size: var(--fs-md);
  font-weight: var(--fw-semibold);
  flex: 1;
  color: white;
}

.sidebar-header__clear {
  font-size: var(--fs-xs);
  font-weight: var(--fw-medium);
  color: rgba(255,255,255,0.75);
  text-decoration: none;
  padding: 2px var(--sp-2);
  border: 1px solid rgba(255,255,255,0.30);
  border-radius: var(--radius-full);
  transition: all var(--transition-fast);
  white-space: nowrap;
}
.sidebar-header__clear:hover { background: rgba(255,255,255,0.15); color: white; }

.sidebar-form {
  display: flex;
  flex-direction: column;
  gap: var(--sp-4);
  padding: var(--sp-5);
}

.sidebar-form__group {
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
}

.sidebar-form__label {
  font-size: var(--fs-xs);
  font-weight: var(--fw-semibold);
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.07em;
}

/* Active filter chips */








/* Places main (right column) */






/* Sidebar variant grid (2 cols since sidebar takes space) */


@media (min-width: 600px) {
  
}

@media (min-width: 900px) {
  
}

@media (min-width: 1200px) {
  
}

/* ── Mobile: collapsible sidebar ─────────────────────────────── */
@media (max-width: 899px) {
  .places-sidebar__inner {
    position: static;
  }
}

/* ── Navbar scroll effect JS hook ────────────────────────────── */
/* applied by main.js on scroll */


/* ── Contact section (homepage) ────────────────────────────── */
.section--contact { background: var(--bg); }
.contact-card {
  max-width: 680px;
  margin: 0 auto;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  box-shadow: 0 4px 24px rgba(0,0,0,0.08);
  padding: var(--sp-8);
}
.contact-form__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-4);
}
@media (max-width: 600px) {
  .contact-card { padding: var(--sp-5); }
  .contact-form__row { grid-template-columns: 1fr; }
}
.contact-form__group { margin-bottom: var(--sp-4); }
.contact-form__label {
  display: block;
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--text);
  margin-bottom: var(--sp-2);
}
.contact-form__required { color: var(--accent, #e53e3e); }
.contact-form__input,
.contact-form__textarea {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface-2);
  color: var(--text);
  font-size: var(--fs-sm);
  font-family: inherit;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
  box-sizing: border-box;
}
.contact-form__input:focus,
.contact-form__textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--primary) 15%, transparent);
}
.contact-form__textarea { resize: vertical; min-height: 120px; line-height: 1.6; }
.contact-form__footer { display: flex; justify-content: flex-end; margin-top: var(--sp-2); }
.contact-success {
  text-align: center;
  padding: var(--sp-6) var(--sp-4);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--sp-3);
  color: var(--primary);
}
.contact-success__title { font-size: var(--fs-xl); font-weight: 700; color: var(--text); margin: 0; }
.contact-success__text { font-size: var(--fs-sm); color: var(--text-2); margin: 0; max-width: 380px; }
.contact-error {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  background: color-mix(in srgb, #e53e3e 10%, var(--surface));
  border: 1px solid color-mix(in srgb, #e53e3e 30%, transparent);
  color: #c53030;
  border-radius: var(--radius-lg);
  padding: var(--sp-3) var(--sp-4);
  margin-bottom: var(--sp-4);
  font-size: var(--fs-sm);
}

/* ── Generic confirmation modal (language switch, etc.) ─────── */
.vms-modal { position: fixed; inset: 0; z-index: 9999; display: grid; place-items: center; }
.vms-modal[hidden] { display: none; }
.vms-modal__backdrop { position: absolute; inset: 0; background: rgba(0,0,0,0.55); }
.vms-modal__card {
  position: relative;
  background: var(--surface);
  color: var(--text);
  border-radius: var(--radius-xl);
  padding: var(--sp-6);
  max-width: 440px;
  width: calc(100% - 32px);
  box-shadow: 0 16px 40px rgba(0,0,0,0.3);
}
.vms-modal__title { margin: 0 0 var(--sp-2); font-size: var(--fs-lg); font-weight: 700; }
.vms-modal__text  { margin: 0 0 var(--sp-5); font-size: var(--fs-sm); color: var(--text-2); line-height: 1.55; }
.vms-modal__actions { display: flex; justify-content: flex-end; gap: var(--sp-2); flex-wrap: wrap; }

/* ── Comment paginator ─────────────────────────────────────── */
.comment-paginator {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  align-items: center;
  justify-content: center;
  margin-top: var(--sp-4);
}
.comment-paginator__btn {
  min-width: 36px;
  height: 36px;
  padding: 0 10px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  border-radius: var(--radius-md);
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}
.comment-paginator__btn:hover:not(:disabled) {
  background: var(--surface-2);
  border-color: var(--primary);
}
.comment-paginator__btn.is-current {
  background: var(--primary);
  color: var(--text-on-primary, #fff);
  border-color: var(--primary);
}
.comment-paginator__btn:disabled { opacity: 0.4; cursor: not-allowed; }
.comment-paginator__ellipsis { color: var(--text-2); padding: 0 4px; }

/* ── Place-detail user actions (Add to Favorites / Itinerary) ─ */
.place-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-2);
  margin-bottom: var(--sp-4);
}
@media (max-width: 480px) {
  .place-actions { grid-template-columns: 1fr; }
}
.place-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 10px 14px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  font-weight: 600;
  font-size: var(--fs-sm);
  cursor: pointer;
  transition: background 0.15s, color 0.15s, border-color 0.15s, transform 0.15s;
}
.place-action:hover { background: var(--surface-2); }
.place-action__icon { transition: transform 0.2s ease, fill 0.2s ease; }
.place-action--fav.is-active {
  background: color-mix(in srgb, #e53e3e 12%, var(--surface));
  border-color: #e53e3e;
  color: #c53030;
}
.place-action--fav.is-active .place-action__icon { transform: scale(1.1); }
.place-action--itin.is-active {
  background: color-mix(in srgb, var(--primary) 12%, var(--surface));
  border-color: var(--primary);
  color: var(--primary);
}

/* ── Global toast (favorites/itinerary feedback, etc.) ──────── */
.vms-toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  z-index: 10000;
  background: rgba(20, 20, 20, 0.94);
  color: #fff;
  border-radius: 999px;
  padding: 10px 20px;
  font-size: var(--fs-sm);
  font-weight: 500;
  box-shadow: 0 10px 30px rgba(0,0,0,0.25);
  max-width: calc(100vw - 32px);
  text-align: center;
  opacity: 0;
  transition: opacity 0.2s ease, transform 0.2s ease;
}
.vms-toast.is-visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}
.vms-toast[hidden] { display: none; }
html.dark .vms-toast { background: rgba(245, 245, 245, 0.95); color: #111; }

/* Global guard — display rules on .empty-state, .favorites-loading,
   .favorites-empty, etc. were stronger than the UA [hidden] rule, causing
   the spinner AND the empty state AND the list to appear at once on the
   reviews/favorites pages. This rule restores the expected behavior of
   the [hidden] attribute everywhere. */
[hidden] { display: none !important; }


/* ============================================================================
   HOME HERO SWIPER — full-bleed slider replacing the static hero on home
   ============================================================================ */
.hero-full--slider {
  position: relative;
  padding: 0;
}
.hero-full--slider .hero-swiper {
  width: 100%;
  height: calc(100vh - var(--navbar-h));
  min-height: 400px;
  position: relative;
}
.hero-slide {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  overflow: hidden;
}
.hero-slide {
  align-items: stretch;
}
.hero-slide__bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  filter: saturate(1.06);
  transform: scale(1.04);
}
.hero-slide__scrim {
  position: absolute;
  inset: 0;
}
.hero-slide__content {
  position: relative;
  z-index: 1;
  color: #fff;
}
.hero-slide__content .hero-full__title,
.hero-slide__content .hero-full__subtitle {
  color: #fff;
}

/* Swiper UI tokens — keep dots themable in dark + high-contrast modes.
   Arrow visibility + styling is owned by 07-components.css. */
.hero-swiper .swiper-pagination-bullet {
  background: rgba(255,255,255,0.7);
  opacity: 1;
}
.hero-swiper .swiper-pagination-bullet-active { background: #fff; }
html.high-contrast .hero-swiper .swiper-pagination-bullet { background: rgba(255,255,255,0.4); }
html.high-contrast .hero-swiper .swiper-pagination-bullet-active { background: var(--primary); }


/* ============================================================================
   CONOCE MORONA SANTIAGO — /conoce/ page layout
   ============================================================================ */
.container--narrow {
  max-width: 820px;
  margin-inline: auto;
}
.page-hero--standard {
  min-height: clamp(220px, 28vh, 360px);
}
.about-section { padding-block: var(--sp-10); }
.about-section--intro .about-prose { font-size: var(--fs-lg); color: var(--text); }
.about-prose p { margin-block: var(--sp-3); line-height: 1.7; }

/* ===== Saludo del Prefecto ===== */
.about-prefect {
  margin: 0;
  display: grid;
  grid-template-columns: minmax(200px, 300px) 1fr;
  gap: var(--sp-8);
  align-items: center;
  background:
    radial-gradient(120% 120% at 0% 0%, var(--primary-50) 0%, transparent 55%),
    var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: var(--sp-8);
  box-shadow: var(--shadow-md);
  position: relative;
  overflow: hidden;
}
/* slim accent rail on the left edge */
.about-prefect::after {
  content: "";
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 5px;
  background: linear-gradient(180deg, var(--primary), var(--accent, var(--primary)));
}
.about-prefect__portrait { display: flex; justify-content: center; }
.about-prefect__photo {
  width: 100%;
  max-width: 260px;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: var(--radius-lg);
  display: block;
  box-shadow: var(--shadow-lg);
  border: 4px solid var(--surface);
  outline: 2px solid var(--primary);
  outline-offset: -2px;
}
.about-prefect__photo--placeholder {
  display: grid;
  place-items: center;
  background: var(--primary-50);
  color: var(--primary);
  outline-color: var(--border);
}
.about-prefect__content { display: flex; flex-direction: column; gap: var(--sp-4); }
.about-prefect__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  color: var(--primary);
  font-weight: var(--fw-semibold);
  letter-spacing: .04em;
}
.about-prefect__eyebrow::before {
  content: "";
  width: 28px;
  height: 2px;
  border-radius: var(--radius-full);
  background: var(--primary);
}
.about-prefect__quote {
  margin: 0;
  font-family: var(--display-font);
  font-size: var(--fs-xl);
  font-style: italic;
  line-height: 1.55;
  color: var(--text);
  position: relative;
  padding-left: var(--sp-6);
}
.about-prefect__quote::before {
  content: "\201C";
  position: absolute;
  left: -0.02em;
  top: -0.12em;
  font-family: var(--display-font);
  font-size: 4rem;
  line-height: 1;
  color: var(--primary);
  opacity: .35;
}
.about-prefect__quote p { margin-block: var(--sp-2); }
.about-prefect__signature {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-top: var(--sp-3);
  padding-top: var(--sp-4);
  border-top: 1px solid var(--border);
}
.about-prefect__name {
  font-weight: var(--fw-bold);
  font-size: var(--fs-lg);
  color: var(--text);
}
.about-prefect__title { font-size: var(--fs-sm); color: var(--primary); font-weight: var(--fw-medium); }

@media (max-width: 720px) {
  .about-prefect {
    grid-template-columns: 1fr;
    gap: var(--sp-6);
    padding: var(--sp-6);
    text-align: center;
  }
  .about-prefect__portrait { max-width: 220px; margin-inline: auto; }
  .about-prefect__eyebrow { justify-content: center; }
  .about-prefect__quote { padding-left: 0; font-size: var(--fs-lg); }
  .about-prefect__quote::before { position: static; display: block; }
  .about-prefect__signature { align-items: center; }
}

/* ===== Alternating image/text rows (history / mission / vision / values) ===== */
.about-section--rows { display: flex; flex-direction: column; gap: var(--sp-10); }
.about-section--rows .container { display: flex; flex-direction: column; gap: var(--sp-10); }
.about-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-8);
  align-items: center;
}
.about-row--reverse .about-row__media { order: 2; }
.about-row--reverse .about-row__text { order: 1; }
.about-row__media { min-width: 0; }
.about-row__img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius-lg);
  display: block;
  box-shadow: var(--shadow-sm);
}
.about-row__text { min-width: 0; display: flex; flex-direction: column; gap: var(--sp-3); }
.about-row__title {
  font-size: var(--fs-2xl);
  font-family: var(--display-font);
  margin: 0;
  color: var(--text);
  position: relative;
  padding-bottom: var(--sp-3);
}
.about-row__title::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 56px;
  height: 3px;
  border-radius: var(--radius-full);
  background: var(--primary);
}
.about-row__body { color: var(--text); line-height: 1.7; }
.about-row__body p { margin-block: var(--sp-3); }

@media (max-width: 820px) {
  .about-row { grid-template-columns: 1fr; gap: var(--sp-5); }
  .about-row--reverse .about-row__media,
  .about-row--reverse .about-row__text { order: initial; }
  .about-row__media { order: -1; }
}


.news-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  text-decoration: none;
  color: var(--text);
  transition: box-shadow var(--transition-fast), border-color var(--transition-fast);
}
.news-card:hover { border-color: var(--primary); box-shadow: var(--shadow-md); }
.news-card__image-wrap { aspect-ratio: 16 / 9; background: var(--surface-2); flex-shrink: 0; }
.news-card__image { width: 100%; height: 100%; object-fit: cover; display: block; }
.news-card__body {
  padding: var(--sp-4) var(--sp-5) var(--sp-5);
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
  flex: 1;
  min-height: 0;
}
.news-card__date { font-size: var(--fs-xs); color: var(--text-muted); }
.news-card__title {
  font-size: var(--fs-md);
  font-weight: var(--fw-semibold);
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.news-card__excerpt {
  color: var(--text-muted);
  font-size: var(--fs-sm);
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex: 1;
}
.news-card__read-more {
  font-size: var(--fs-sm);
  font-weight: var(--fw-semibold);
  color: var(--primary);
  margin-top: auto;
  padding-top: var(--sp-2);
}

/* Single horizontal row — scrolls sideways when there are many postcards. */
.postcards-grid {
  display: flex;
  flex-wrap: nowrap;
  gap: var(--sp-4);
  overflow-x: auto;
  padding-bottom: var(--sp-3);
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
}
.postcard {
  /* now a <button> that opens a lightbox — reset native button styles */
  appearance: none;
  border: 0;
  padding: 0;
  margin: 0;
  font: inherit;
  text-align: left;
  cursor: pointer;
  position: relative;
  flex: 0 0 clamp(220px, 70vw, 300px);
  scroll-snap-align: start;
  border-radius: var(--radius-md);
  overflow: hidden;
  aspect-ratio: 3 / 2;
  background: var(--surface-2);
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}
.postcard:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.postcard:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }
.postcard__image { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform var(--transition-fast); }
.postcard:hover .postcard__image { transform: scale(1.04); }
.postcard__caption {
  position: absolute;
  inset: auto 0 0 0;
  background: linear-gradient(180deg, transparent, rgba(0,0,0,0.55));
  color: #fff;
  font-size: var(--fs-xs);
  padding: var(--sp-2) var(--sp-3);
}
/* hint that a postcard opens a popup */
.postcard__zoom {
  position: absolute;
  top: var(--sp-2);
  right: var(--sp-2);
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: var(--radius-full);
  background: rgba(0,0,0,0.45);
  color: #fff;
  opacity: 0;
  transition: opacity var(--transition-fast);
}
.postcard:hover .postcard__zoom,
.postcard:focus-visible .postcard__zoom { opacity: 1; }

/* ===== Postcard lightbox (popup) ===== */
.postcard-lightbox {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--sp-5);
  background: rgba(0,0,0,0.82);
  opacity: 0;
  animation: postcardFade .18s ease forwards;
}
.postcard-lightbox[hidden] { display: none; }
@keyframes postcardFade { to { opacity: 1; } }
.postcard-lightbox__figure {
  margin: 0;
  max-width: min(900px, 92vw);
  max-height: 88vh;
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
}
.postcard-lightbox__img {
  max-width: 100%;
  max-height: 78vh;
  object-fit: contain;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
}
.postcard-lightbox__caption {
  color: #fff;
  text-align: center;
  font-size: var(--fs-sm);
}
.postcard-lightbox__caption:empty { display: none; }
.postcard-lightbox__close {
  position: absolute;
  top: var(--sp-4);
  right: var(--sp-4);
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: var(--radius-full);
  background: rgba(255,255,255,0.14);
  color: #fff;
  cursor: pointer;
  transition: background var(--transition-fast);
}
.postcard-lightbox__close:hover { background: rgba(255,255,255,0.28); }
.postcard-lightbox__close:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }

.brochures-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--sp-5);
}
.brochure-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.brochure-card__cover {
  aspect-ratio: 16 / 9;
  background: var(--primary-50);
  display: grid;
  place-items: center;
  color: var(--primary);
}
.brochure-card__cover img { width: 100%; height: 100%; object-fit: cover; }
.brochure-card__body { padding: var(--sp-4) var(--sp-5) var(--sp-5); display: flex; flex-direction: column; gap: var(--sp-3); flex: 1; }
.brochure-card__title { font-size: var(--fs-lg); margin: 0; }
.brochure-card__desc { color: var(--text-muted); font-size: var(--fs-sm); line-height: 1.55; }
.brochure-card__cta { align-self: flex-start; margin-top: auto; }

.about-empty {
  text-align: center;
  color: var(--text-muted);
  padding: var(--sp-6);
  font-style: italic;
}


/* ============================================================================
   PLACES LIST — parroquia nested filter element
   ============================================================================ */
.sidebar-form__group[data-parroquia-group] select option[hidden] { display: none; }


/* Places page (design-system) — results column meta strip above the cards grid */
.places-results__meta {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: var(--sp-3);
  margin-bottom: var(--sp-6);
}

/* Friendly location welcome shown when a canton/parroquia filter is active.
   Stacks a prominent greeting over a supporting results line. Takes the full
   row so the flex parent's space-between doesn't split the two lines apart. */
/* Welcome banner — shown when the visitor narrows down to a canton/parroquia.
   A warm, on-brand card instead of a plain line of text. */
.places-results__welcome {
  flex: 1 1 100%;
  display: flex;
  align-items: center;
  gap: var(--sp-4);
  padding: var(--sp-5) var(--sp-6);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(27, 94, 59, 0.14);
  background:
    linear-gradient(120deg, rgba(27, 94, 59, 0.09) 0%, rgba(27, 94, 59, 0.025) 55%, transparent 100%),
    var(--surface);
  position: relative;
  overflow: hidden;
}
/* Left accent bar */
.places-results__welcome::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  background: var(--primary);
}
.places-welcome__icon {
  flex: 0 0 auto;
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(27, 94, 59, 0.12);
  color: var(--primary);
}
.places-welcome__text {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}
.places-welcome__title {
  margin: 0;
  font-family: var(--display-font);
  font-size: var(--fs-xl);
  font-weight: var(--fw-semibold);
  line-height: 1.18;
  color: var(--text);
}
.places-welcome__title strong {
  color: var(--primary);
  font-weight: var(--fw-bold);
}
.places-welcome__parroquia {
  display: inline-flex;
  align-items: center;
  margin-left: var(--sp-2);
  padding: 2px 10px;
  border-radius: var(--radius-full);
  background: rgba(27, 94, 59, 0.10);
  color: var(--primary);
  font-family: var(--font-base);
  font-size: var(--fs-xs);
  font-weight: var(--fw-semibold);
  letter-spacing: 0.01em;
  vertical-align: middle;
  white-space: nowrap;
}
.places-welcome__sub {
  margin: 0;
  font-size: var(--fs-sm);
  color: var(--text-muted);
}
.places-welcome__count {
  font-weight: var(--fw-bold);
  color: var(--primary);
}
@media (max-width: 600px) {
  .places-results__welcome { padding: var(--sp-4); gap: var(--sp-3); }
  .places-welcome__icon { width: 40px; height: 40px; }
}

/* Parroquia option hidden state — required because select option `hidden` is
   inconsistently respected; pair with JS that also clears the value. */
.filters-form__select option[hidden] { display: none; }
.filters-form__select[hidden] { display: none; }
.sidebar-form__group[data-tertiary-hidden] .filters-form__select[hidden] { display: none; }

/* Standardized page hero — applied across destinations, events, itineraries,
   submit-place so heights match. */
.page-hero--standard {
  min-height: clamp(220px, 28vh, 360px);
}


/* ============================================================================
   NEWS ARTICLE DETAIL — /about/news/<pk>/
   ============================================================================ */
.news-article { display: flex; flex-direction: column; gap: var(--sp-6); padding-block: var(--sp-8); }
.news-article__cover { border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 16/9; }
.news-article__img { width: 100%; height: 100%; object-fit: cover; display: block; }
.news-article__body p { margin-block: var(--sp-3); line-height: 1.75; }
.news-article__footer { padding-top: var(--sp-6); border-top: 1px solid var(--border); }


/* -----------------------------------------------------------------------------
   18. PLACES — sticky filter bar
   --------------------------------------------------------------------------- */
html.site .ds-places-filter-bar {
  position: sticky;
  top: var(--navbar-h);
  z-index: var(--z-sticky);
  background: rgba(255, 255, 255, .92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-light);
  padding-block: var(--sp-3);
}
html.dark.site .ds-places-filter-bar { background: rgba(10,22,16,.92); border-color: var(--border); }
html.site .ds-places-filter-form {
  display: grid;
  grid-template-columns: 2fr repeat(3, 1fr) auto auto;
  gap: var(--sp-3);
  align-items: center;
}
html.site .ds-places-filter-search {
  position: relative;
  display: flex;
  align-items: center;
}
html.site .ds-places-filter-search svg {
  position: absolute;
  left: var(--sp-3);
  color: var(--text-muted);
  pointer-events: none;
}
html.site .ds-places-filter-search input {
  width: 100%;
  padding: .65rem var(--sp-4) .65rem 2.5rem;
  border-radius: var(--radius-full);
  border: 1px solid var(--border);
  background: var(--surface);
  font: inherit;
  color: var(--text);
}
html.site .ds-places-filter-search input:focus {
  outline: 2px solid var(--primary);
  outline-offset: 1px;
}
html.site .ds-places-filter-select {
  padding: .65rem var(--sp-4);
  border-radius: var(--radius-full);
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  font: inherit;
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%235c4e3c' stroke-width='2'><path d='M6 9l6 6 6-6'/></svg>");
  background-repeat: no-repeat;
  background-position: right var(--sp-3) center;
  padding-right: var(--sp-8);
}
html.site .ds-places-filter-select:focus { outline: 2px solid var(--primary); outline-offset: 1px; }
html.site .ds-places-filter-select[hidden] { display: none !important; }

@media (max-width: 900px) {
  html.site .ds-places-filter-form { grid-template-columns: 1fr 1fr; }
  html.site .ds-places-filter-search { grid-column: 1 / -1; }
}
@media (max-width: 560px) {
  html.site .ds-places-filter-form { grid-template-columns: 1fr; }
}

/* -----------------------------------------------------------------------------
   19. PLACE DETAIL — editorial hero + 2-col body + sticky info rail
   --------------------------------------------------------------------------- */
html.site .ds-place-hero {
  position: relative;
  min-height: clamp(360px, 55vh, 580px);
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  isolation: isolate;
  color: #ffffff;
}
html.site .ds-place-hero__bg {
  position: absolute;
  inset: 0;
  z-index: -2;
  background-size: cover;
  background-position: center;
  background-color: var(--surface-3);
}
html.site .ds-place-hero__scrim {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(180deg, rgba(0,0,0,.10) 30%, rgba(0,0,0,.70) 100%),
    linear-gradient(90deg, rgba(0,0,0,.35) 0%, rgba(0,0,0,0) 60%);
}
html.site .ds-place-hero__content {
  position: relative;
  padding-block: clamp(2.5rem, 6vw, 5rem);
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
  max-width: 720px;
}
html.site .ds-place-hero__title {
  font-family: var(--display-font);
  font-size: clamp(2rem, 5vw, var(--fs-5xl));
  font-weight: var(--fw-bold);
  line-height: var(--lh-tight);
  color: #ffffff;
  margin: 0;
}
html.site .ds-place-hero__meta {
  display: flex;
  gap: var(--sp-3);
  align-items: center;
  color: rgba(255,255,255,.92);
  font-size: var(--fs-md);
}
html.site .ds-place-hero__breadcrumb {
  list-style: none;
  display: flex;
  gap: var(--sp-2);
  align-items: center;
  padding: 0;
  margin: 0;
  font-size: var(--fs-sm);
  color: rgba(255,255,255,.85);
}
html.site .ds-place-hero__breadcrumb a { color: inherit; text-decoration: none; }
html.site .ds-place-hero__breadcrumb a:hover { color: #fff; text-decoration: underline; }

html.site .ds-detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
  gap: clamp(2rem, 4vw, 4rem);
  padding-block: var(--section-pad-y);
}
@media (max-width: 900px) {
  html.site .ds-detail-layout { grid-template-columns: 1fr; }
}

html.site .ds-detail-main { min-width: 0; }
html.site .ds-detail-section {
  padding-block: var(--sp-8);
  border-top: 1px solid var(--border-light);
}
html.site .ds-detail-section:first-child { border-top: none; padding-top: 0; }
html.site .ds-detail-section__title {
  font-family: var(--display-font);
  font-size: var(--fs-2xl);
  font-weight: var(--fw-semibold);
  line-height: var(--lh-snug);
  margin: 0 0 var(--sp-5);
  color: var(--text);
}
html.site .ds-detail-prose {
  font-size: var(--fs-md);
  line-height: var(--lh-relaxed);
  color: var(--text);
  max-width: 70ch;
}
html.site .ds-detail-prose p { margin: 0 0 var(--sp-4); }
html.site .ds-services-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-2);
}
html.site .ds-services-list__item {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  padding: var(--sp-2) var(--sp-4);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  font-size: var(--fs-sm);
}

html.site .ds-detail-gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: 180px;
  gap: var(--sp-3);
}
html.site .ds-detail-gallery > a {
  display: block;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: var(--surface-3);
}
html.site .ds-detail-gallery > a:first-child {
  grid-column: span 2;
  grid-row: span 2;
}
html.site .ds-detail-gallery img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  transition: transform var(--transition-slow);
}
html.site .ds-detail-gallery > a:hover img { transform: scale(1.05); }
@media (max-width: 600px) {
  html.site .ds-detail-gallery { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 140px; }
  html.site .ds-detail-gallery > a:first-child { grid-column: span 2; grid-row: span 2; }
}

html.site .ds-info-rail {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: var(--sp-4);
}
@media (min-width: 901px) {
  html.site .ds-info-rail {
    position: sticky;
    top: calc(var(--navbar-h) + 24px);
    align-self: start;
  }
}
html.site .ds-info-card {
  background: var(--surface);
  border: 1px solid var(--border-light);
  border-radius: var(--card-radius);
  padding: var(--sp-6);
  display: flex;
  flex-direction: column;
  gap: var(--sp-5);
}
html.site .ds-info-card__list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: var(--sp-4); }
html.site .ds-info-card__item { display: grid; grid-template-columns: 20px 1fr; gap: var(--sp-3); align-items: start; }
html.site .ds-info-card__item svg { color: var(--primary); margin-top: 2px; }
html.site .ds-info-card__item dt {
  font-size: var(--fs-xs);
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--text-muted);
  font-weight: var(--fw-semibold);
  grid-column: 2;
  grid-row: 1;
  margin: 0;
}
html.site .ds-info-card__item dd {
  grid-column: 2;
  grid-row: 2;
  margin: 0;
  font-size: var(--fs-sm);
  color: var(--text);
}
html.site .ds-info-card__item dd a { color: var(--primary); text-decoration: none; }
html.site .ds-info-card__item dd a:hover { text-decoration: underline; }

html.site .ds-place-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-3);
  margin-bottom: var(--sp-4);
}
/* Share button always spans both columns */
html.site .ds-place-actions .place-action--share {
  grid-column: 1 / -1;
}
html.site .ds-place-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-2);
  padding: var(--sp-3) var(--sp-3);
  border-radius: var(--radius-lg);
  background: var(--surface);
  border: 1px solid var(--border);
  font: inherit;
  font-size: var(--fs-sm);
  font-weight: var(--fw-medium);
  color: var(--text);
  cursor: pointer;
  transition: background var(--transition-base), border-color var(--transition-base);
}
html.site .ds-place-action:hover { background: var(--surface-2); border-color: var(--text); }
html.site .ds-place-action.is-active { background: var(--primary); color: var(--text-on-primary); border-color: transparent; }
html.site .ds-place-action.is-active svg path { fill: currentColor; }

html.site .ds-detail-map {
  border-radius: var(--card-radius);
  overflow: hidden;
  background: var(--surface-3);
  border: 1px solid var(--border-light);
}
html.site .ds-detail-map__iframe { width: 100%; height: 260px; border: 0; display: block; }

/* -----------------------------------------------------------------------------
   20. EVENTS — status chip + past events treatment
   --------------------------------------------------------------------------- */
html.site .ds-event-status {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: var(--sp-1);
  font-weight: var(--fw-semibold);
}
html.site .ds-event-status--upcoming { color: #0e5491; background: #e3f0fa; }
html.site .ds-event-status--ongoing  { color: #2c7a3f; background: #e8f5ec; }
html.site .ds-event-status--ended    { color: var(--text-muted); background: var(--surface-2); }
html.site.dark .ds-event-status { background: rgba(255,255,255,.10); color: #fff; }
html.site.high-contrast .ds-event-status { border: 2px solid currentColor; background: var(--surface); }

html.site .ds-card-event--past {
  background: transparent;
  border-color: var(--border-light);
}
html.site .ds-card-event--past .ds-card-event__media { aspect-ratio: 16 / 9; }
html.site .ds-events-cta {
  margin-top: var(--sp-12);
  padding: clamp(2rem, 4vw, 3rem);
  border-radius: var(--card-radius);
  background: var(--primary-dark);
  color: var(--text-on-primary);
  display: grid;
  grid-template-columns: 1fr auto;
  gap: var(--sp-4);
  align-items: center;
}
/* Default (light, no-HC): subtitle and ghost button use white-on-dark colours from the dark band */
html.site .ds-events-cta .ds-events-cta__subtitle {
  color: rgba(255, 255, 255, .85);
}
html.site .ds-events-cta .ds-events-cta__ghost-btn {
  color: #fff;
  border-color: rgba(255, 255, 255, .4);
}
html.site .ds-events-cta .ds-events-cta__ghost-btn:hover {
  background: rgba(255, 255, 255, .12);
  border-color: #fff;
}
html.site.dark .ds-events-cta {
  background: var(--surface-3);
  color: var(--text);
  border: 1px solid var(--border-light);
}
html.site.dark:not(.high-contrast) .ds-events-cta .ds-events-cta__subtitle {
  color: var(--text-muted);
}
html.site.dark:not(.high-contrast) .ds-events-cta .ds-events-cta__ghost-btn {
  color: var(--text);
  border-color: var(--border);
}
html.site.dark:not(.high-contrast) .ds-events-cta .ds-events-cta__ghost-btn:hover {
  background: var(--surface-2);
  border-color: var(--text);
}

/* HC-light: flat white band, dark readable text, primary-accented buttons */
html.site.high-contrast:not(.dark) .ds-events-cta {
  background: var(--bg);
  color: var(--text);
  border: 3px solid var(--primary);
}
html.site.high-contrast:not(.dark) .ds-events-cta .ds-events-cta__subtitle {
  color: var(--text-muted);
}
html.site.high-contrast:not(.dark) .ds-events-cta .ds-btn--invert {
  background: var(--primary);
  color: var(--text-on-primary);
  border: 2px solid var(--primary);
}
html.site.high-contrast:not(.dark) .ds-events-cta .ds-btn--invert:hover {
  background: var(--primary-dark);
  border-color: var(--primary-dark);
}
html.site.high-contrast:not(.dark) .ds-events-cta .ds-events-cta__ghost-btn {
  color: var(--primary);
  border-color: var(--primary);
  background: transparent;
}
html.site.high-contrast:not(.dark) .ds-events-cta .ds-events-cta__ghost-btn:hover {
  background: var(--primary);
  color: var(--text-on-primary);
  border-color: var(--primary);
}

/* HC-dark: deep surface, primary-coloured title accent, legible buttons */
html.site.dark.high-contrast .ds-events-cta {
  background: var(--surface);
  color: var(--text);
  border: 2px solid var(--text);
}
html.site.dark.high-contrast .ds-events-cta .ds-events-cta__subtitle {
  color: var(--text-muted);
}
html.site.dark.high-contrast .ds-events-cta .ds-btn--invert {
  background: var(--primary);
  color: var(--text-on-primary);
  border: 2px solid var(--primary);
}
html.site.dark.high-contrast .ds-events-cta .ds-events-cta__ghost-btn {
  color: var(--text);
  border-color: var(--text);
  background: transparent;
}
html.site.dark.high-contrast .ds-events-cta .ds-events-cta__ghost-btn:hover {
  background: var(--primary);
  color: var(--text-on-primary);
  border-color: var(--primary);
}

html.site .ds-events-cta .ds-btn--invert {
  background: var(--surface);
  color: var(--text);
}
@media (max-width: 700px) {
  html.site .ds-events-cta { grid-template-columns: 1fr; text-align: center; }
}

/* -----------------------------------------------------------------------------
   22. CURATED ITINERARY DETAIL — Discover-PR-style day-by-day plan
   --------------------------------------------------------------------------- */
html.site .ds-itin-hero {
  position: relative;
  min-height: clamp(360px, 55vh, 580px);
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  isolation: isolate;
  color: #ffffff;
}
html.site .ds-itin-hero__bg {
  position: absolute;
  inset: 0;
  z-index: -2;
  background-size: cover;
  background-position: center;
  background-color: var(--surface-3);
}
html.site .ds-itin-hero__scrim {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgba(0,0,0,.10) 30%, rgba(0,0,0,.75) 100%);
}
html.site .ds-itin-hero__content {
  position: relative;
  padding-block: clamp(2.5rem, 6vw, 5rem);
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
  max-width: 760px;
}
html.site .ds-itin-hero__title {
  font-family: var(--display-font);
  font-size: clamp(2.25rem, 5.5vw, var(--fs-6xl));
  font-weight: var(--fw-bold);
  line-height: var(--lh-tight);
  color: #ffffff;
  margin: 0;
  text-wrap: balance;
}
html.site .ds-itin-hero__intro {
  font-size: var(--fs-lg);
  line-height: var(--lh-relaxed);
  color: rgba(255,255,255,.92);
  margin: 0;
  max-width: 60ch;
}
html.site .ds-itin-day {
  padding-block: var(--sp-10);
  border-top: 1px solid var(--border-light);
}
html.site .ds-itin-day:first-of-type { border-top: none; padding-top: var(--sp-6); }
html.site .ds-itin-day__head {
  display: flex;
  align-items: baseline;
  gap: var(--sp-4);
  margin-bottom: var(--sp-6);
}
html.site .ds-itin-day__num {
  font-family: var(--display-font);
  font-size: clamp(2rem, 4vw, var(--fs-4xl));
  font-weight: var(--fw-bold);
  color: var(--primary);
  line-height: 1;
}
html.site .ds-itin-day__label {
  font-size: var(--fs-xs);
  text-transform: uppercase;
  letter-spacing: .14em;
  color: var(--text-muted);
  font-weight: var(--fw-semibold);
}
html.site .ds-itin-stop {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: var(--sp-6);
  padding: var(--sp-5) 0;
  border-bottom: 1px solid var(--border-light);
}
html.site .ds-itin-stop:last-of-type { border-bottom: none; }
html.site .ds-itin-stop__media {
  aspect-ratio: 4 / 3;
  background: var(--surface-3);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
html.site .ds-itin-stop__media img { width: 100%; height: 100%; object-fit: cover; }
html.site .ds-itin-stop__body { display: flex; flex-direction: column; gap: var(--sp-2); justify-content: center; }
html.site .ds-itin-stop__order {
  font-size: var(--fs-xs);
  text-transform: uppercase;
  letter-spacing: .12em;
  color: var(--text-muted);
  font-weight: var(--fw-semibold);
}
html.site .ds-itin-stop__title {
  font-family: var(--display-font);
  font-size: var(--fs-2xl);
  font-weight: var(--fw-semibold);
  line-height: var(--lh-snug);
  margin: 0;
}
html.site .ds-itin-stop__title a { color: inherit; text-decoration: none; }
html.site .ds-itin-stop__title a:hover { color: var(--primary); }
html.site .ds-itin-stop__notes { font-size: var(--fs-sm); color: var(--text-muted); line-height: var(--lh-relaxed); margin: 0; }
@media (max-width: 700px) {
  html.site .ds-itin-stop { grid-template-columns: 1fr; }
  html.site .ds-itin-stop__media { aspect-ratio: 16 / 10; }
}

/* High-contrast: ensure itinerary hero scrim flattens for readability */
html.site.high-contrast .ds-place-hero__scrim,
html.site.high-contrast .ds-itin-hero__scrim { background: rgba(0,0,0,.80); }

/* -----------------------------------------------------------------------------
   23. AUTH PAGES — split layout (photo left, form right on wide screens)
   ----------------------------------------------------------------------------
   The v1 templates already use semantic class names (.auth-page, .auth-card,
   .auth-form, etc.) so we layer design-system polish on top instead of forking.
   --------------------------------------------------------------------------- */
html.site .auth-page {
  min-height: calc(100vh - var(--navbar-h));
  position: relative;
  background: var(--bg);
  padding: 0;
  display: grid;
  place-items: stretch;
}
html.site .auth-page::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(180deg, rgba(0,0,0,.40), rgba(0,0,0,.60)), url('/static/website/img/heroes/hero_home.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  z-index: 0;
  opacity: 0;
  pointer-events: none;
}
@media (min-width: 900px) {
  html.site .auth-page {
    grid-template-columns: 1fr 1fr;
    align-items: stretch;
  }
  html.site .auth-page::before { opacity: 1; grid-column: 1; grid-row: 1; position: relative; }
}
html.site .auth-card {
  position: relative;
  z-index: 1;
  background: var(--surface);
  border-radius: var(--card-radius);
  box-shadow: var(--shadow-xl);
  padding: clamp(2rem, 4vw, 3.5rem);
  max-width: 480px;
  margin: clamp(2rem, 6vw, 5rem) auto;
  align-self: center;
}
@media (min-width: 900px) {
  html.site .auth-card {
    box-shadow: none;
    border-radius: 0;
    max-width: none;
    margin: 0;
    padding: clamp(3rem, 6vw, 5rem);
    display: flex;
    flex-direction: column;
    justify-content: center;
  }
  html.site .auth-page--wide .auth-card { max-width: none; }
}
html.site .auth-card__title {
  font-family: var(--display-font);
  font-size: clamp(1.75rem, 3vw, var(--fs-3xl));
  font-weight: var(--fw-bold);
  line-height: var(--lh-tight);
  margin: 0 0 var(--sp-2);
  color: var(--text);
}
html.site .auth-card__subtitle {
  font-size: var(--fs-md);
  color: var(--text-muted);
  margin: 0 0 var(--sp-6);
  line-height: var(--lh-relaxed);
}
html.site .auth-form { display: grid; gap: var(--sp-4); }
html.site .auth-form input[type="text"],
html.site .auth-form input[type="email"],
html.site .auth-form input[type="password"],
html.site .auth-form input[type="tel"],
html.site .auth-form select,
html.site .auth-form textarea {
  padding: var(--sp-3) var(--sp-4);
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  background: var(--surface);
  font: inherit;
  color: var(--text);
  transition: border-color var(--transition-base), box-shadow var(--transition-base);
}
html.site .auth-form input:focus,
html.site .auth-form select:focus,
html.site .auth-form textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--primary) 15%, transparent);
}
html.site .auth-form label,
html.site .auth-form__label {
  font-size: var(--fs-xs);
  font-weight: var(--fw-semibold);
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--text-muted);
}
html.site .auth-form .btn,
html.site .auth-card .btn {
  border-radius: var(--radius-full);
  padding: .85rem 1.6rem;
  font-weight: var(--fw-semibold);
}
html.site .auth-link {
  color: var(--primary);
  font-weight: var(--fw-medium);
  text-decoration: none;
}
html.site .auth-link:hover { text-decoration: underline; }
html.site .auth-banner {
  border-radius: var(--radius-md);
  padding: var(--sp-3) var(--sp-4);
  font-size: var(--fs-sm);
  line-height: var(--lh-relaxed);
}
html.site .auth-banner--error   { background: #fde8e6; border:1px solid #f4b6b1; color:#8a2418; }
html.site .auth-banner--success { background: var(--primary-50); border:1px solid var(--primary-100); color: var(--primary-dark); }

/* High contrast: solid bordered banners */
html.site.high-contrast .auth-banner { border-width: 2px; }

/* High contrast — keep the auth-page hero photo VISIBLE.
   The previous rule set opacity:0 + flat var(--text) background, which made
   the profile / edit-profile / my-reviews / achievements hero area appear
   completely blank in HC mode. Instead: keep the image, drop the dark
   gradient overlay (so it doesn't render artificially darker than other
   images on the page), and ensure the form side has a solid contrast bar. */
html.site.high-contrast .auth-page::before {
  background-image: url('/static/website/img/heroes/hero_home.jpg') !important;
}
@media (min-width: 900px) {
  html.site.high-contrast .auth-page::before {
    opacity: 1 !important;
    /* Strong border on the dividing edge so the seam reads clearly in HC */
    border-right: 4px solid var(--text);
  }
}
/* Dark + HC: keep a darker overlay so white text on the image remains
   readable but the photo is still discernible. */
html.site.dark.high-contrast .auth-page::before {
  background-image: linear-gradient(rgba(0,0,0,.55), rgba(0,0,0,.55)),
                    url('/static/website/img/heroes/hero_home.jpg') !important;
}

/* -----------------------------------------------------------------------------
   24. ACCOUNT PAGES — profile / edit / reviews / achievements
   --------------------------------------------------------------------------- */
html.site .profile-head {
  display: flex;
  align-items: center;
  gap: var(--sp-5);
  padding-bottom: var(--sp-6);
  border-bottom: 1px solid var(--border-light);
  margin-bottom: var(--sp-6);
}
html.site .profile-avatar,
html.site .profile-avatar--placeholder {
  width: 88px; height: 88px;
  border-radius: var(--radius-full);
  object-fit: cover;
  background: var(--surface-3);
  flex-shrink: 0;
  border: 3px solid var(--surface);
  box-shadow: var(--shadow-md);
}
html.site .profile-head__name {
  font-family: var(--display-font);
  font-size: var(--fs-2xl);
  font-weight: var(--fw-semibold);
  line-height: var(--lh-tight);
  margin: 0;
}
html.site .profile-head__email {
  color: var(--text-muted);
  font-size: var(--fs-sm);
  margin: var(--sp-1) 0 0;
}

/* -----------------------------------------------------------------------------
   26. SUBMIT-PLACE — restyle existing form-scoped tokens to design-system vocabulary
   --------------------------------------------------------------------------- */
html.site .submit-section {
  --f-radius: var(--radius-md);
}
html.site .submit-header-blob {
  border: 2px solid rgba(255,255,255,0.25);
  backdrop-filter: blur(6px);
}
html.site .submit-section input,
html.site .submit-section textarea,
html.site .submit-section select {
  border-radius: var(--radius-md);
}

/* -----------------------------------------------------------------------------
   27. TERMS — long-read prose styling
   ----------------------------------------------------------------------------
   The terms template extends base.html and wraps content in .ds-terms-prose
   when design-system is on. The block keeps narrow line length for legibility.
   --------------------------------------------------------------------------- */
html.site .ds-terms-prose {
  max-width: 68ch;
  margin-inline: auto;
  padding-block: var(--section-pad-y);
  font-size: var(--fs-md);
  line-height: var(--lh-relaxed);
  color: var(--text);
}
html.site .ds-terms-prose h1 {
  font-family: var(--display-font);
  font-size: clamp(2rem, 4vw, var(--fs-4xl));
  font-weight: var(--fw-bold);
  line-height: var(--lh-tight);
  margin: 0 0 var(--sp-2);
}
html.site .ds-terms-prose h2,
html.site .ds-terms-prose h3,
html.site .ds-terms-prose h4 {
  font-family: var(--display-font);
  font-weight: var(--fw-semibold);
  margin: var(--sp-8) 0 var(--sp-3);
  color: var(--text);
}
html.site .ds-terms-prose h2 { font-size: var(--fs-2xl); }
html.site .ds-terms-prose h3 { font-size: var(--fs-xl); }
html.site .ds-terms-prose h4 { font-size: var(--fs-lg); text-transform: uppercase; letter-spacing: .08em; color: var(--text-muted); }
html.site .ds-terms-prose p { margin: 0 0 var(--sp-4); }
html.site .ds-terms-prose strong { color: var(--text); }
html.site .ds-terms-prose hr { border: none; border-top: 1px solid var(--border-light); margin: var(--sp-6) 0; }
html.site .ds-terms-prose a { color: var(--primary); }
html.site .ds-terms-prose .ds-terms-eyebrow {
  display: inline-block;
  text-transform: uppercase;
  letter-spacing: .14em;
  font-size: var(--fs-xs);
  font-weight: var(--fw-semibold);
  color: var(--primary);
  margin-bottom: var(--sp-3);
}

/* -----------------------------------------------------------------------------
   28. DIRECTORIO — business directory page (/directorio/)
   ----------------------------------------------------------------------------
   Categories rendered as stacked sections, each with a responsive card grid.
   Cards show an image (with a shimmer skeleton until it loads) or a
   placeholder icon when no image is set, plus name/location/phone and a
   full-width contact button (WhatsApp green vs. primary "call" variant).
   --------------------------------------------------------------------------- */
html.site .directory-category {
  margin-bottom: var(--sp-10);
}
html.site .directory-category:last-child {
  margin-bottom: 0;
}
html.site .directory-category__title {
  font-family: var(--display-font);
  font-size: var(--fs-2xl);
  font-weight: var(--fw-semibold);
  color: var(--text);
  margin: 0 0 var(--sp-5);
  padding-bottom: var(--sp-3);
  border-bottom: 1px solid var(--border-light);
}

html.site .directory-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: var(--sp-5);
}

html.site .directory-card {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition-base), box-shadow var(--transition-base);
}
html.site .directory-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

/* ---- Media: image + skeleton, or icon placeholder ---- */
html.site .directory-card__media {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--surface-2);
}
html.site .directory-card__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
html.site .directory-card__skeleton {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, var(--surface-2) 25%, var(--surface-3) 50%, var(--surface-2) 75%);
  background-size: 200% 100%;
  animation: directorySkeletonShimmer 1.4s ease-in-out infinite;
  transition: opacity var(--transition-base);
}
/* JS adds `.loaded` to the <img> once it has actually finished loading
   (see initDirectorySkeletons() in main.js) — the skeleton fades out. */
html.site .directory-card__img.loaded + .directory-card__skeleton {
  opacity: 0;
  visibility: hidden;
}
@keyframes directorySkeletonShimmer {
  0%   { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

html.site .directory-card__placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--surface-2);
  color: var(--text-light);
}

/* ---- Body ---- */
html.site .directory-card__body {
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
  padding: var(--sp-4) var(--sp-5) var(--sp-5);
  flex: 1;
}
html.site .directory-card__name {
  font-size: var(--fs-lg);
  font-weight: var(--fw-semibold);
  color: var(--text);
  margin: 0;
  line-height: var(--lh-snug);
}
html.site .directory-card__location {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  color: var(--text-muted);
  font-size: var(--fs-sm);
  margin: 0;
}
html.site .directory-card__location svg {
  flex-shrink: 0;
  color: var(--text-light);
}
html.site .directory-card__phone {
  color: var(--text-muted);
  font-size: var(--fs-sm);
  margin: 0;
}

/* ---- Contact CTA button ---- */
html.site .directory-card__cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-2);
  width: 100%;
  margin-top: auto;
  padding: var(--sp-3) var(--sp-4);
  border-radius: var(--radius-full);
  border: 2px solid transparent;
  font-size: var(--fs-sm);
  font-weight: var(--fw-semibold);
  text-decoration: none;
  cursor: pointer;
  transition: background var(--transition-fast), box-shadow var(--transition-fast), transform var(--transition-spring);
}
html.site .directory-card__cta:active { transform: scale(.97); }
html.site .directory-card__cta:focus-visible {
  outline: 3px solid var(--primary);
  outline-offset: 2px;
}

/* WhatsApp — brand green, kept constant across light/dark themes */
html.site .directory-card__cta--whatsapp {
  background: #25D366;
  color: #ffffff;
}
html.site .directory-card__cta--whatsapp:hover {
  background: #1fb959;
  box-shadow: var(--shadow-md);
}

/* Landline / call — primary brand token, theme-aware */
html.site .directory-card__cta--call {
  background: var(--primary);
  color: var(--text-on-primary);
}
html.site .directory-card__cta--call:hover {
  background: var(--primary-light);
  box-shadow: var(--shadow-md);
}

html.site .directory-empty {
  text-align: center;
  color: var(--text-muted);
  padding: var(--sp-6);
  font-style: italic;
}

html.site .directory-source {
  text-align: center;
  color: var(--text-light);
  font-size: var(--fs-xs);
  margin-top: var(--sp-10);
  padding-top: var(--sp-5);
  border-top: 1px solid var(--border-light);
}

