/* 07-components.css */
/* ============================================================
   7b. HERO SECTION (kept for backwards compatibility)
   ============================================================ */
.hero {
  background: var(--primary);
  padding-block: clamp(var(--sp-16), 10vh, var(--sp-28));
  overflow: hidden;
  position: relative;
}

/* subtle radial glow in corner */
.hero::after {
  content: '';
  position: absolute;
  top: -120px;
  right: -120px;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,255,255,0.07) 0%, transparent 70%);
  pointer-events: none;
}









/* Category cards inside hero */


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

















/* ============================================================
   8. STATS BAR
   ============================================================ */












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

/* ============================================================
   9. PAGE HERO (interior pages)
   ============================================================ */
.page-hero {
  background: var(--primary);
  padding-block: var(--sp-12) var(--sp-16);
  position: relative;
  overflow: hidden;
}

.page-hero--gradient {
  background: linear-gradient(to bottom,
    var(--primary-dark) 0%,
    var(--primary) 65%,
    var(--primary-light) 100%);
}

html.dark .page-hero--gradient {
  background: linear-gradient(to bottom,
    #08291a 0%,
    #15532f 60%,
    #1f7548 100%);
}

/* Diagonal stripes removed — page-hero now uses a clean gradient like the
   home welcome banner. The ::before pseudo-element is intentionally empty. */



.page-hero__bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
}

.page-hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,.2) 0%, rgba(0,0,0,.6) 100%);
}

.page-hero__inner {
  position: relative;
  z-index: var(--z-above);
  padding-block: var(--sp-8);
}

.page-hero__title {
  font-size: clamp(var(--fs-3xl), 5vw, var(--fs-5xl));
  font-weight: var(--fw-extrabold);
  color: #ffffff;
  margin-top: var(--sp-4);
  line-height: var(--lh-tight);
}

.page-hero__subtitle {
  color: rgba(255,255,255,.85);
  font-size: var(--fs-lg);
  font-weight: var(--fw-regular);
  margin-top: var(--sp-3);
}

/* ============================================================
   10. BREADCRUMB
   ============================================================ */
.breadcrumb__list {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--sp-1);
}

.breadcrumb__item {
  display: flex;
  align-items: center;
  font-size: var(--fs-sm);
  color: rgba(255,255,255,.65);
}

.breadcrumb__item:not(:last-child)::after {
  content: '/';
  margin-left: var(--sp-1);
  color: rgba(255,255,255,.4);
}

.breadcrumb__link {
  color: rgba(255,255,255,.75);
  text-decoration: none;
  transition: color var(--transition-fast);
}

.breadcrumb__link:hover { color: var(--surface); }

.breadcrumb__item--active {
  color: rgba(255,255,255,.95);
  font-weight: var(--fw-medium);
}

/* Dark breadcrumb (on white bg) */
.breadcrumb:not(.breadcrumb--light) .breadcrumb__item { color: var(--text-muted); }
.breadcrumb:not(.breadcrumb--light) .breadcrumb__item::after { color: var(--border); }
.breadcrumb:not(.breadcrumb--light) .breadcrumb__link { color: var(--text-muted); }
.breadcrumb:not(.breadcrumb--light) .breadcrumb__link:hover { color: var(--primary); }
.breadcrumb:not(.breadcrumb--light) .breadcrumb__item--active { color: var(--text); }

/* Breadcrumb inside a page-hero: always render as light (white-ish) so the
   list page (/places/) matches the detail page (/places/X) regardless of
   whether the template author remembered the `breadcrumb--light` modifier. */
.page-hero .breadcrumb .breadcrumb__item { color: rgba(255,255,255,.65); }
.page-hero .breadcrumb .breadcrumb__item::after { color: rgba(255,255,255,.4); }
.page-hero .breadcrumb .breadcrumb__link,
.page-hero .breadcrumb .breadcrumb__link:visited { color: rgba(255,255,255,.75); }
.page-hero .breadcrumb .breadcrumb__link:hover { color: var(--surface); }
.page-hero .breadcrumb .breadcrumb__item--active,
.page-hero .breadcrumb .breadcrumb__item--active a { color: rgba(255,255,255,.95); }

/* ============================================================
   11. CATEGORY CARDS
   ============================================================ */




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















/* ============================================================
   12. PLACE CARDS
   ============================================================ */
.places-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--sp-6);
}

@media (min-width: 640px) {
  .places-grid { grid-template-columns: repeat(2, 1fr); }
}

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

.place-card {
  background: var(--surface);
  border: none;
  border-radius: var(--radius-xl);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform var(--transition-spring), box-shadow var(--transition-base);
  box-shadow: var(--shadow-sm);
}

.place-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-xl);
}

.place-card__image-wrap {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4 / 3;
}

.place-card__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.place-card:hover .place-card__image { transform: scale(1.06); }

.place-card__image-placeholder {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  background: var(--surface-2);
  color: var(--border);
}



.place-card__body {
  padding: var(--sp-5);
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
  flex: 1;
}

.place-card__title {
  font-size: var(--fs-lg);
  font-weight: var(--fw-bold);
  line-height: var(--lh-snug);
}

.place-card__title-link {
  color: var(--text);
  text-decoration: none;
  transition: color var(--transition-fast);
}

.place-card__title-link:hover { color: var(--primary); }

.place-card__meta,
.place-card__address {
  display: flex;
  align-items: center;
  gap: var(--sp-1);
  font-size: var(--fs-xs);
  color: var(--text-muted);
}

.place-card__meta svg,
.place-card__address svg { flex-shrink: 0; color: var(--primary); }







.place-card__cta {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-1);
  font-size: var(--fs-sm);
  font-weight: var(--fw-semibold);
  color: var(--primary);
  text-decoration: none;
  transition: gap var(--transition-fast), color var(--transition-fast);
}

.place-card__cta:hover {
  gap: var(--sp-2);
  color: var(--primary-light);
}

/* ============================================================
   13. EVENT CARDS
   ============================================================ */
.events-grid {
  display: grid;
  gap: var(--sp-6);
  grid-template-columns: 1fr;
}

@media (min-width: 640px) {
  .events-grid { grid-template-columns: repeat(2, 1fr); }
}

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

.event-card {
  background: var(--surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-xl);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: transform var(--transition-spring), box-shadow var(--transition-base);
}

.event-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-xl);
}





.event-card__image-wrap {
  overflow: hidden;
  aspect-ratio: 16 / 9;
}



.event-card__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.event-card:hover .event-card__image { transform: scale(1.06); }

.event-card__body {
  padding: var(--sp-5);
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
  flex: 1;
}



.event-card__date-badge {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: var(--primary);
  color: var(--text-on-primary);
  border-radius: var(--radius-md);
  padding: var(--sp-2) var(--sp-3);
  min-width: 52px;
  line-height: 1;
  gap: 2px;
  flex-shrink: 0;
}









.event-card__title {
  font-size: var(--fs-lg);
  font-weight: var(--fw-bold);
  line-height: var(--lh-snug);
  color: var(--text);
}



.event-card__meta,
.event-card__venue,
.event-card__location {
  display: flex;
  align-items: center;
  gap: var(--sp-1);
  font-size: var(--fs-xs);
  color: var(--text-muted);
}

.event-card__meta svg,
.event-card__venue svg,
.event-card__location svg { flex-shrink: 0; color: var(--primary); }





.event-card__desc {
  font-size: var(--fs-sm);
  color: var(--text-muted);
  line-height: var(--lh-relaxed);
  flex: 1;
}

/* ============================================================
   17. EMPTY STATE
   ============================================================ */
.empty-state {
  text-align: center;
  padding: var(--sp-20) var(--sp-4);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--sp-4);
}







/* ============================================================
   18. CTA BAND
   ============================================================ */






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









/* ============================================================
   CANTONS STRIP
   ============================================================ */
.cantons-section { background: var(--surface-2); }











/* ============================================================================
   CANTONS — image-icon grid (replaces the old text-only chips on home)
   ============================================================================ */
.cantons-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--sp-4);
}
.canton-card { width: clamp(120px, 14%, 160px); }
.canton-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: var(--sp-3);
  padding: var(--sp-4) var(--sp-3);
  border-radius: var(--radius-lg);
  background: transparent;
  border: none;
  color: var(--text);
  transition: transform var(--transition-fast), color var(--transition-fast);
}
.canton-card:hover,
.canton-card:visited:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: var(--primary);
  color: var(--primary);
}
.canton-card__icon-wrap {
  width: 72px;
  height: 72px;
  border-radius: var(--radius-full);
  background: var(--primary-50);
  display: grid;
  place-items: center;
  overflow: hidden;
  color: var(--primary);
}
.canton-card__icon-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.canton-card__name {
  font-weight: var(--fw-semibold);
  font-size: var(--fs-sm);
}


/* ============================================================================
   FEATURED PLACES — compact variant (6 smaller cards on home)
   ============================================================================ */

.place-card--compact .place-card__image-wrap {
  aspect-ratio: 4 / 3;
  max-height: 200px;
  overflow: hidden;
}
.place-card--compact .place-card__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.place-card--compact .place-card__body {
  padding: var(--sp-3) var(--sp-4);
}
.place-card--compact .place-card__title {
  font-size: var(--fs-base);
}



/* ============================================================================
   REUSABLE SHARE MENU — used on place detail (favorites + itinerary + share
   toolbar) and on the itinerary page. The button styling rides on the
   existing `.place-action` system; this block defines the popover styling.
   ============================================================================ */
.vms-share-menu {
  position: fixed;
  z-index: 10001;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: 0 16px 40px rgba(0,0,0,0.18);
  padding: 6px;
  min-width: 220px;
}
.vms-share-menu[hidden] { display: none; }
.vms-share-menu__item {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 10px 12px;
  background: none;
  border: none;
  color: var(--text);
  font-size: var(--fs-sm);
  text-align: left;
  cursor: pointer;
  border-radius: var(--radius-md);
}
.vms-share-menu__item:hover { background: var(--surface-2); }

/* Share button spans both columns in the 1fr 1fr grid */
.place-action--share { grid-column: 1 / -1; }


/* ============================================================================
   NEWS SWIPER — /conoce/ page news slider with pagination dots
   ============================================================================ */
.news-swiper-wrap {
  position: relative;
  padding-bottom: var(--sp-8);
}
.news-swiper { overflow: hidden; }
/* Equal-height slides: Swiper must stretch slides to the tallest */
.news-swiper .swiper-wrapper { align-items: stretch; }
.news-swiper .swiper-slide { height: auto; display: flex; }
.news-swiper-pagination {
  text-align: center;
  margin-top: var(--sp-5);
}
.news-swiper-pagination .swiper-pagination-bullet {
  background: var(--text-muted);
  opacity: 0.5;
  width: 10px;
  height: 10px;
  margin: 0 4px;
  border-radius: 50%;
  display: inline-block;
  cursor: pointer;
  transition: opacity var(--transition-fast), background var(--transition-fast);
}
.news-swiper-pagination .swiper-pagination-bullet-active {
  background: var(--primary);
  opacity: 1;
}
.news-card__image-placeholder {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  color: var(--text-muted);
  background: var(--surface-2);
}


/* -----------------------------------------------------------------------------
   3. TYPOGRAPHY
   --------------------------------------------------------------------------- */
.ds-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  text-transform: uppercase;
  letter-spacing: .14em;
  font-size: var(--fs-xs);
  font-weight: var(--fw-semibold);
  color: var(--primary);
}
.ds-eyebrow::before {
  content: "";
  display: inline-block;
  width: 24px;
  height: 1px;
  background: currentColor;
  opacity: .8;
}
.ds-eyebrow--bare::before { display: none; }

.ds-display {
  font-family: var(--display-font);
  font-weight: var(--fw-bold);
  line-height: var(--lh-tight);
  color: var(--text);
  letter-spacing: -.01em;
  font-size: clamp(2rem, 4.5vw, var(--fs-5xl));
  margin: 0;
}
.ds-display--xl { font-size: clamp(2.5rem, 6vw, var(--fs-6xl)); }
.ds-display--sm { font-size: clamp(1.5rem, 3vw, var(--fs-3xl)); }

.ds-lede {
  font-size: var(--fs-lg);
  line-height: var(--lh-relaxed);
  color: var(--text-muted);
  max-width: 60ch;
  margin: 0;
}

.ds-heading {
  font-family: var(--display-font);
  font-size: var(--fs-2xl);
  font-weight: var(--fw-semibold);
  line-height: var(--lh-snug);
  color: var(--text);
  margin: 0;
}

/* -----------------------------------------------------------------------------
   6. HERO — full-bleed photo + slow Ken-Burns zoom
   --------------------------------------------------------------------------- */
.ds-hero {
  position: relative;
  min-height: clamp(420px, 70vh, 720px);
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  isolation: isolate;
  color: #ffffff;
}
.ds-hero__bg {
  position: absolute;
  inset: 0;
  z-index: -2;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  animation: heroZoom 24s ease-out infinite alternate;
}
.ds-hero__scrim {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(180deg, rgba(0,0,0,.10) 0%, rgba(0,0,0,.55) 100%),
    linear-gradient(90deg, rgba(0,0,0,.45) 0%, rgba(0,0,0,0) 60%);
}
.ds-hero__content {
  position: relative;
  width: 100%;
  padding-block: clamp(3rem, 8vw, 6rem);
  display: flex;
  flex-direction: column;
  gap: var(--sp-4);
  max-width: 720px;
}
.ds-hero__eyebrow { color: rgba(255,255,255,.85); }
.ds-hero__eyebrow::before { background: rgba(255,255,255,.85); }
.ds-hero__display {
  font-family: var(--display-font);
  font-size: clamp(2.5rem, 6vw, var(--fs-6xl));
  font-weight: var(--fw-bold);
  line-height: var(--lh-tight);
  color: #ffffff;
  margin: 0;
  text-wrap: balance;
}
.ds-hero__lede {
  color: rgba(255,255,255,.92);
  font-size: var(--fs-lg);
  line-height: var(--lh-relaxed);
  max-width: 56ch;
  margin: 0;
}
.ds-hero__cta {
  display: flex;
  align-items: center;
  gap: var(--sp-4);
  flex-wrap: wrap;
  margin-top: var(--sp-2);
}

@keyframes heroZoom {
  from { transform: scale(1.02); }
  to   { transform: scale(1.10); }
}

@media (prefers-reduced-motion: reduce) {
  .ds-hero__bg { animation: none; }
}

/* -----------------------------------------------------------------------------
   7. PLACE CARD
   --------------------------------------------------------------------------- */
.ds-card-place {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border-radius: var(--card-radius);
  overflow: hidden;
  color: var(--text);
  text-decoration: none;
  transition: transform var(--transition-base), box-shadow var(--transition-base);
  border: 1px solid var(--border-light);
}
.ds-card-place:hover {
  transform: var(--hover-lift);
  box-shadow: var(--shadow-lg);
}
.ds-card-place:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 3px;
}
.ds-card-place__media {
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: var(--surface-3);
}
.ds-card-place__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}
.ds-card-place:hover .ds-card-place__img { transform: scale(1.04); }
.ds-card-place__chip {
  position: absolute;
  top: var(--sp-3);
  left: var(--sp-3);
  z-index: 1;
}
.ds-card-place__body {
  padding: var(--sp-5) var(--sp-5) var(--sp-6);
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
  flex: 1;
}
.ds-card-place__eyebrow {
  font-size: var(--fs-xs);
  text-transform: uppercase;
  letter-spacing: .12em;
  color: var(--text-muted);
  font-weight: var(--fw-semibold);
}
.ds-card-place__title {
  font-family: var(--display-font);
  font-size: var(--fs-xl);
  font-weight: var(--fw-semibold);
  line-height: var(--lh-snug);
  color: var(--text);
  margin: 0;
}
.ds-card-place__excerpt {
  font-size: var(--fs-sm);
  color: var(--text-muted);
  line-height: var(--lh-normal);
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.ds-card-place--horizontal {
  flex-direction: row;
  aspect-ratio: auto;
}
.ds-card-place--horizontal .ds-card-place__media { aspect-ratio: 1 / 1; width: 40%; flex-shrink: 0; }

/* -----------------------------------------------------------------------------
   8. EVENT CARD
   --------------------------------------------------------------------------- */
.ds-card-event {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border-radius: var(--card-radius);
  overflow: hidden;
  text-decoration: none;
  color: var(--text);
  border: 1px solid var(--border-light);
  transition: transform var(--transition-base), box-shadow var(--transition-base);
}
.ds-card-event:hover {
  transform: var(--hover-lift);
  box-shadow: var(--shadow-lg);
}
.ds-card-event__media {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--surface-3);
}
.ds-card-event__img {
  width: 100%; height: 100%;
  object-fit: cover;
}
.ds-card-event__date {
  position: absolute;
  top: var(--sp-3);
  left: var(--sp-3);
  background: var(--surface);
  color: var(--text);
  border-radius: var(--radius-md);
  padding: var(--sp-2) var(--sp-3);
  text-align: center;
  box-shadow: var(--shadow-sm);
  z-index: 1;
}
.ds-card-event__day   { display: block; font-size: var(--fs-xl); font-weight: var(--fw-bold); line-height: 1; font-family: var(--display-font); }
.ds-card-event__month { display: block; font-size: var(--fs-xs); text-transform: uppercase; letter-spacing: .12em; color: var(--text-muted); margin-top: 2px; }
.ds-card-event__body {
  padding: var(--sp-5);
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
}
.ds-card-event__title {
  font-family: var(--display-font);
  font-size: var(--fs-xl);
  font-weight: var(--fw-semibold);
  line-height: var(--lh-snug);
  margin: 0;
}
.ds-card-event__meta {
  font-size: var(--fs-xs);
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: .1em;
  font-weight: var(--fw-medium);
}
.ds-card-event__excerpt {
  font-size: var(--fs-sm);
  color: var(--text-muted);
  line-height: var(--lh-normal);
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* -----------------------------------------------------------------------------
   9. ITINERARY CARD — Discover-PR-style cover with duration chip
   --------------------------------------------------------------------------- */
.ds-card-itinerary {
  position: relative;
  display: block;
  border-radius: var(--card-radius);
  overflow: hidden;
  aspect-ratio: 4 / 3;
  text-decoration: none;
  color: #ffffff;
  isolation: isolate;
  transition: transform var(--transition-base), box-shadow var(--transition-base);
  background: var(--surface-3);
}
.ds-card-itinerary:hover {
  transform: var(--hover-lift);
  box-shadow: var(--shadow-xl);
}
.ds-card-itinerary__bg {
  position: absolute;
  inset: 0;
  z-index: -2;
  background-size: cover;
  background-position: center;
  transition: transform var(--transition-slow);
}
.ds-card-itinerary:hover .ds-card-itinerary__bg { transform: scale(1.05); }
.ds-card-itinerary__scrim {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--photo-overlay);
}
.ds-card-itinerary__body {
  position: absolute;
  inset: 0;
  padding: var(--sp-5);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.ds-card-itinerary__top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}
.ds-card-itinerary__title {
  font-family: var(--display-font);
  font-size: var(--fs-2xl);
  font-weight: var(--fw-semibold);
  line-height: var(--lh-tight);
  color: #ffffff;
  margin: 0;
  text-wrap: balance;
}
.ds-card-itinerary__eyebrow {
  font-size: var(--fs-xs);
  text-transform: uppercase;
  letter-spacing: .12em;
  color: rgba(255,255,255,.85);
  font-weight: var(--fw-semibold);
  margin-bottom: var(--sp-2);
}
.ds-card-itinerary__bottom {
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
}

/* -----------------------------------------------------------------------------
   11. ZONE — "Where to…" horizontally-scrolling card row
   --------------------------------------------------------------------------- */
.ds-zone {
  padding-block: var(--section-pad-y-tight);
}
.ds-zone__head {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: end;
  gap: var(--sp-6);
  margin-bottom: var(--sp-8);
}
.ds-zone__intro { display: flex; flex-direction: column; gap: var(--sp-2); }
.ds-zone__title {
  font-family: var(--display-font);
  font-size: clamp(1.75rem, 3.5vw, var(--fs-4xl));
  font-weight: var(--fw-bold);
  line-height: var(--lh-tight);
  margin: 0;
}
.ds-zone__rail {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(220px, 1fr);
  gap: var(--grid-gap-md);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: thin;
  padding-bottom: var(--sp-3);
}
.ds-zone__rail > * { scroll-snap-align: start; }

@media (max-width: 700px) {
  .ds-zone__head { grid-template-columns: 1fr; }
  .ds-zone__rail { grid-auto-columns: minmax(75%, 1fr); }
}

/* -----------------------------------------------------------------------------
   12. TAB SHOWCASE — Finland-style "Discover" section
   --------------------------------------------------------------------------- */
.ds-tab-showcase {
  display: grid;
  grid-template-columns: minmax(220px, 320px) 1fr;
  gap: clamp(1.5rem, 3vw, 3rem);
  align-items: stretch;
}
.ds-tab-list {
  display: flex;
  flex-direction: column;
  list-style: none;
  margin: 0;
  padding: 0;
  border-left: 1px solid var(--border);
}
.ds-tab {
  position: relative;
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  padding: var(--sp-4) var(--sp-5);
  background: transparent;
  border: none;
  text-align: left;
  font-family: var(--font-base);
  color: var(--text-muted);
  cursor: pointer;
  width: 100%;
  transition: color var(--transition-base);
  font-size: var(--fs-md);
  font-weight: var(--fw-medium);
}
.ds-tab::before {
  content: "";
  position: absolute;
  left: -1px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: transparent;
  transition: background var(--transition-base);
}
.ds-tab:hover { color: var(--text); }
.ds-tab[aria-selected="true"] {
  color: var(--text);
  font-weight: var(--fw-semibold);
}
.ds-tab[aria-selected="true"]::before { background: var(--primary); }
.ds-tab__thumb {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  object-fit: cover;
  flex-shrink: 0;
  background: var(--surface-3);
}
.ds-tab__thumb--icon {
  display: grid;
  place-items: center;
  background: var(--primary-50);
  color: var(--primary);
}
.ds-tab__thumb--icon svg { width: 22px; height: 22px; }
.ds-tab-panels {
  position: relative;
  min-height: 380px;
  border-radius: var(--card-radius);
  overflow: hidden;
  background: var(--surface-3);
}
.ds-tab-panel {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: var(--sp-8);
  color: #ffffff;
  isolation: isolate;
  opacity: 0;
  pointer-events: none;
  transition: opacity 300ms ease;
}
.ds-tab-panel[aria-hidden="false"] {
  opacity: 1;
  pointer-events: auto;
}
.ds-tab-panel__bg {
  position: absolute;
  inset: 0;
  z-index: -2;
  background-size: cover;
  background-position: center;
}
.ds-tab-panel__scrim {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgba(0,0,0,.15) 30%, rgba(0,0,0,.65) 100%);
}
.ds-tab-panel__title {
  font-family: var(--display-font);
  font-size: clamp(1.5rem, 3vw, var(--fs-3xl));
  font-weight: var(--fw-bold);
  line-height: var(--lh-tight);
  margin: 0 0 var(--sp-3);
  color: #ffffff;
}
.ds-tab-panel__copy {
  color: rgba(255,255,255,.92);
  font-size: var(--fs-md);
  max-width: 50ch;
  line-height: var(--lh-relaxed);
  margin: 0 0 var(--sp-5);
}

@media (max-width: 760px) {
  .ds-tab-showcase {
    grid-template-columns: 1fr;
    gap: var(--sp-5);
  }
  .ds-tab-list {
    flex-direction: row;
    overflow-x: auto;
    border-left: none;
    border-bottom: 1px solid var(--border);
  }
  .ds-tab {
    flex-shrink: 0;
    padding: var(--sp-3) var(--sp-4);
  }
  .ds-tab::before { left: 0; right: 0; top: auto; bottom: -1px; width: auto; height: 2px; }
  .ds-tab__thumb { width: 32px; height: 32px; }
  .ds-tab-panels { min-height: 320px; }
  .ds-tab-panel { padding: var(--sp-5); }
}

@media (prefers-reduced-motion: reduce) {
  .ds-tab-panel { transition: none; }
}

/* -----------------------------------------------------------------------------
   13. MAP PREVIEW
   --------------------------------------------------------------------------- */
.ds-map-preview {
  position: relative;
  border-radius: var(--card-radius);
  overflow: hidden;
  aspect-ratio: 21 / 9;
  display: flex;
  align-items: flex-end;
  isolation: isolate;
  color: #ffffff;
  text-decoration: none;
}
.ds-map-preview__bg {
  position: absolute;
  inset: 0;
  z-index: -2;
  background-size: cover;
  background-position: center;
  background-color: var(--surface-3);
}
.ds-map-preview__scrim {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgba(0,0,0,0) 40%, rgba(0,0,0,.7) 100%);
}
.ds-map-preview__body {
  padding: var(--sp-8);
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
  max-width: 560px;
}
.ds-map-preview__title {
  font-family: var(--display-font);
  font-size: clamp(1.5rem, 3vw, var(--fs-3xl));
  font-weight: var(--fw-bold);
  color: #ffffff;
  margin: 0;
}
.ds-map-preview__copy {
  color: rgba(255,255,255,.92);
  font-size: var(--fs-md);
  margin: 0;
}

@media (max-width: 700px) {
  .ds-map-preview { aspect-ratio: 4 / 3; }
  .ds-map-preview__body { padding: var(--sp-5); }
}

/* -----------------------------------------------------------------------------
   25. FAVORITES & ITINERARY pages (design-system page hero on top, polished states)
   --------------------------------------------------------------------------- */
html.site .page-hero {
  background: var(--surface);
  border-bottom: 1px solid var(--border-light);
  position: relative;
  isolation: isolate;
}
html.site .page-hero--gradient {
  background: var(--text);
  color: #ffffff;
  border-bottom: none;
}
html.site .page-hero--gradient .page-hero__title,
html.site .page-hero--gradient .page-hero__subtitle,
html.site .page-hero--gradient .breadcrumb,
html.site .page-hero--gradient .breadcrumb a {
  color: #ffffff;
}
html.site .page-hero--gradient .page-hero__overlay { background: rgba(0,0,0,.40); }
html.site .page-hero__title {
  font-family: var(--display-font);
  font-weight: var(--fw-bold);
  letter-spacing: -.01em;
}

html.site .favorites-filters {
  display: flex;
  gap: var(--sp-2);
  flex-wrap: wrap;
  margin-bottom: var(--sp-6);
}
html.site .favorites-filter {
  padding: var(--sp-2) var(--sp-4);
  border-radius: var(--radius-full);
  background: var(--surface);
  border: 1px solid var(--border);
  font: inherit;
  font-size: var(--fs-sm);
  font-weight: var(--fw-medium);
  cursor: pointer;
  transition: background var(--transition-base), border-color var(--transition-base), color var(--transition-base);
}
html.site .favorites-filter:hover { background: var(--surface-2); }
html.site .favorites-filter.is-active {
  background: var(--primary);
  color: var(--text-on-primary);
  border-color: transparent;
}

html.site .itinerary-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-2);
  align-items: center;
  margin-bottom: var(--sp-6);
}
html.site .itinerary-toolbar__btn {
  border-radius: var(--radius-full);
  padding: var(--sp-2) var(--sp-4);
  border: 1px solid var(--border);
  background: var(--surface);
  font-size: var(--fs-sm);
  font-weight: var(--fw-medium);
}
html.site .itinerary-toolbar__btn:hover { background: var(--surface-2); }

html.site .itinerary-list { display: flex; flex-direction: column; gap: var(--sp-3); }
html.site .itinerary-item {
  /* 3 columns: image | body (flex) | remove btn.
     The index badge is position:absolute so it is out of flow. */
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr) auto;
  align-items: center;
  gap: var(--sp-4);
  padding: var(--sp-4);
  background: var(--surface);
  border: 1px solid var(--border-light);
  border-radius: var(--card-radius);
  transition: border-color var(--transition-base), box-shadow var(--transition-base);
}
html.site .itinerary-item:hover { box-shadow: var(--shadow-md); border-color: var(--border); }
html.site .itinerary-item__index {
  /* keep as absolute badge (set by the page inline style) */
  font-family: var(--display-font);
  font-size: var(--fs-xl);
  font-weight: var(--fw-bold);
  color: var(--primary);
}
html.site .itinerary-item__img {
  width: 64px; height: 64px;
  border-radius: var(--radius-md);
  object-fit: cover;
  flex-shrink: 0;
}
html.site .itinerary-item__body {
  /* override the inline flex:1/width:0 shorthand to work correctly in grid */
  flex: unset;
  width: auto;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
}
html.site .itinerary-item__name {
  font-family: var(--display-font);
  font-size: var(--fs-md);
  font-weight: var(--fw-semibold);
  margin: 0;
  line-height: var(--lh-snug);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
html.site .itinerary-item__meta {
  font-size: var(--fs-xs);
  color: var(--text-muted);
  margin: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
html.site .itinerary-item__remove {
  flex: none;
  align-self: center;
}
html.site .itinerary-empty,
html.site .favorites-empty {
  text-align: center;
  padding: var(--sp-12) var(--sp-4);
  color: var(--text-muted);
}
html.site .itinerary-empty__title {
  font-family: var(--display-font);
  font-size: var(--fs-2xl);
  font-weight: var(--fw-semibold);
  margin: 0 0 var(--sp-2);
  color: var(--text);
}

/* ============================================================================
   UNIFIED ZONE SECTION — Swiper carousel, one slide per zone
   ============================================================================ */
.ds-zone--unified { padding-block: var(--sp-8) var(--sp-10); }

.zones-swiper { overflow: hidden; border-radius: var(--card-radius); }
.zones-swiper__slide { display: flex; flex-direction: column; }

/* Full-width zone hero image (same 21/9 ratio as the map preview block) */
.zones-slide-hero {
  position: relative;
  width: 100%;
  aspect-ratio: 21 / 9;
  overflow: hidden;
  flex-shrink: 0;
}
.zones-slide-hero__bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transition: transform var(--transition-slow);
}
.zones-swiper .swiper-slide-active .zones-slide-hero__bg { transform: scale(1.03); }
.zones-slide-hero__scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,.10) 30%, rgba(0,0,0,.55) 100%);
}
.zones-slide-hero__content {
  position: absolute;
  inset: auto 0 0 0;
  padding: var(--sp-6) var(--sp-8);
  color: #fff;
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
}
.zones-slide-hero__title {
  font-family: var(--display-font);
  font-size: clamp(1.5rem, 3vw, var(--fs-3xl));
  font-weight: var(--fw-bold);
  color: #fff;
  margin: 0;
}
.zones-slide-hero__intro {
  color: rgba(255,255,255,.88);
  font-size: var(--fs-md);
  max-width: 60ch;
  margin: 0;
  line-height: 1.55;
}

/* Swiper pagination dots for zone section */
.zones-swiper-pagination {
  margin-top: var(--sp-4);
  text-align: center;
}
.zones-swiper-pagination .swiper-pagination-bullet {
  background: var(--text-muted);
  opacity: .5;
  width: 10px; height: 10px;
  margin: 0 4px;
  border-radius: 50%;
  display: inline-block;
  cursor: pointer;
  transition: opacity var(--transition-fast), background var(--transition-fast);
}
.zones-swiper-pagination .swiper-pagination-bullet-active {
  background: var(--primary);
  opacity: 1;
}

/* Subcategory chip rail below each zone hero */
.zones-rail {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-2);
  padding: var(--sp-4) var(--sp-2) var(--sp-3);
  background: var(--surface);
  overflow-x: auto;
}

/* Zone chip: small thumbnail + label */
.zone-chip {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  padding: var(--sp-1) var(--sp-3) var(--sp-1) var(--sp-1);
  border-radius: var(--radius-full);
  border: 1px solid var(--border);
  background: var(--surface-2);
  color: var(--text);
  text-decoration: none;
  font-size: var(--fs-sm);
  font-weight: var(--fw-medium);
  white-space: nowrap;
  transition: background var(--transition-fast), border-color var(--transition-fast), color var(--transition-fast);
}
.zone-chip:hover {
  background: var(--primary-50);
  border-color: var(--primary);
  color: var(--primary);
}
.zone-chip__img {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}
.zone-chip__icon {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--primary-50);
  color: var(--primary);
  display: grid;
  place-items: center;
  flex-shrink: 0;
}
.zone-chip__icon svg { width: 16px; height: 16px; }
.zone-chip__name { line-height: 1; }

@media (max-width: 700px) {
  .zones-slide-hero { aspect-ratio: 4 / 3; }
  .zones-slide-hero__content { padding: var(--sp-4) var(--sp-5); }
  .zones-slide-hero__intro { font-size: var(--fs-sm); }
}

/* ============================================================
   HOME HERO — polish for slider + single-hero fallback.
   NOTE: base layout lives in 08-pages.css (loads AFTER this file).
   These rules use higher specificity (html.site / .hero-full--slider
   prefixes) so they intentionally win the cascade over 08-pages.css.
   ============================================================ */

/* ---- Anchored copy column (asymmetric, bottom-left) ----
   Both hero variants share this editorial layout: the copy sits in a
   constrained column anchored to the lower-left, leaving the photo's
   focal subject (often bottom-right) visible. */
html.site .hero-full { align-items: stretch; }
html.site .hero-full__content {
  display: flex;
  flex-direction: column;
  justify-content: center;   /* vertical center */
  align-items: flex-start;   /* keep copy on the left */
  text-align: left;
  padding-block: clamp(var(--sp-8), 5vh, var(--sp-14));
}
html.site .hero-full__copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--sp-5);
  width: 100%;
  max-width: 38rem;          /* keeps lines from sprawling */
  margin-inline-end: auto;   /* pin column to the left */
}

/* ---- Eyebrow / kicker ---- */
html.site .hero-full__eyebrow {
  letter-spacing: 0.22em;
  color: rgba(255, 255, 255, 0.95);
  text-shadow: 0 1px 8px rgba(0, 12, 6, 0.6);
}

/* ---- Display headline + subtitle ---- */
html.site .hero-full__title {
  font-family: var(--display-font);
  font-size: clamp(2.1rem, 2.8vw + 0.9rem, 3.8rem);
  line-height: 1.06;
  letter-spacing: -0.02em;
  text-wrap: balance;
  max-width: 16ch;
}
html.site .hero-full__subtitle {
  font-size: clamp(1.05rem, 1vw + 0.85rem, 1.4rem);
  line-height: 1.55;
  max-width: 46ch;
  color: rgba(255, 255, 255, 0.94);
  text-wrap: pretty;
}

/* Text-shadow safety net — guarantees legibility even where the directional
   scrim is at its lightest over a bright/busy photo. */
html.site .hero-slide__content .hero-full__title,
html.site .hero-full__content .hero-full__title {
  text-shadow: 0 2px 22px rgba(0, 12, 6, 0.55), 0 1px 3px rgba(0, 12, 6, 0.45);
}
html.site .hero-slide__content .hero-full__subtitle,
html.site .hero-full__content .hero-full__subtitle {
  text-shadow: 0 1px 10px rgba(0, 12, 6, 0.55);
}

/* ============================================================
   DIRECTIONAL SCRIM — dark at the bottom-left text anchor, fading to
   nearly transparent toward the top-right so the photo stays vivid.
   Layered with a bottom-up gradient so body copy clears WCAG AA
   (>= 4.5:1) and the large display clears AA-large (>= 3:1) over ANY
   admin-uploaded photo, including bright/busy whitewater shots.
   ============================================================ */
html.site .hero-full__scrim,
html.site .hero-slide__scrim {
  background:
    linear-gradient(
      105deg,
      rgba(0, 12, 6, 0.72) 0%,
      rgba(0, 12, 6, 0.55) 28%,
      rgba(0, 12, 6, 0.20) 58%,
      rgba(0, 12, 6, 0.00) 82%
    ),
    linear-gradient(
      to top,
      rgba(0, 12, 6, 0.68) 0%,
      rgba(0, 12, 6, 0.22) 32%,
      rgba(0, 12, 6, 0.00) 60%
    );
}

/* High-contrast: flatten to a strong uniform veil for maximum legibility */
html.high-contrast.site .hero-full__scrim,
html.high-contrast.site .hero-slide__scrim {
  background: rgba(0, 0, 0, 0.72);
}

/* ---- Ken Burns on the ACTIVE slide background (slider variant) ---- */
.hero-full--slider .hero-swiper .swiper-slide-active .hero-slide__bg {
  animation: hero-kenburns 16s ease-out forwards;
}
@keyframes hero-kenburns {
  from { transform: scale(1.04); }
  to   { transform: scale(1.14); }
}
@media (prefers-reduced-motion: reduce) {
  .hero-full--slider .hero-swiper .swiper-slide-active .hero-slide__bg {
    animation: none;
    transform: scale(1.04);
  }
}

/* CTA polish: generous tap targets + visible focus on dark photos */
html.site .hero-full__actions .btn {
  min-height: 48px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.22);
}
html.site .hero-full__actions .btn--primary {
  box-shadow: 0 8px 24px rgba(13, 61, 37, 0.45);
}
html.site .hero-full__actions .btn:focus-visible {
  outline: 3px solid #fff;
  outline-offset: 3px;
}

/* ---- Slider hero content sizing (shares the anchored layout) ---- */
.hero-full--slider .hero-slide__content {
  display: flex;
  flex-direction: column;
  justify-content: center;   /* vertical center within the full-height slide */
  align-items: flex-start;   /* keep copy on the left */
  height: 100%;
}

/* ============================================================
   SWIPER controls — pagination dots (bottom-left, aligned to copy)
   + intentional, on-brand prev/next arrows paired bottom-right.
   Owns arrow visibility (08-pages.css no longer hides them).
   ============================================================ */

/* Pagination dots: aligned to the left content edge */
.hero-full--slider .hero-swiper .swiper-pagination {
  bottom: clamp(var(--sp-5), 5vh, var(--sp-8));
  left: clamp(var(--sp-5), 6vw, var(--sp-16));
  width: auto;
  text-align: left;
  z-index: 4;
}
.hero-full--slider .hero-swiper .swiper-pagination-bullet {
  width: 10px;
  height: 10px;
  margin: 0 6px 0 0 !important;
  background: rgba(255, 255, 255, 0.5);
  opacity: 1;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.45);
  transition: background var(--transition-base), transform var(--transition-base), width var(--transition-base);
}
.hero-full--slider .hero-swiper .swiper-pagination-bullet:hover {
  background: rgba(255, 255, 255, 0.85);
  transform: scale(1.1);
}
.hero-full--slider .hero-swiper .swiper-pagination-bullet-active {
  background: #fff;
  width: 30px;
  border-radius: var(--radius-full);
}
.hero-full--slider .hero-swiper .swiper-pagination-bullet:focus-visible {
  outline: 3px solid #fff;
  outline-offset: 3px;
}

/* Arrow cluster: paired bottom-right, refined glass with brand-accent hover */
.hero-full--slider .hero-full__controls {
  position: absolute;
  right: clamp(var(--sp-5), 6vw, var(--sp-16));
  bottom: clamp(var(--sp-4), 5vh, var(--sp-8));
  display: flex;
  gap: var(--sp-3);
  z-index: 4;
}
.hero-full--slider .hero-swiper .swiper-button-prev,
.hero-full--slider .hero-swiper .swiper-button-next {
  position: static;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  margin: 0;
  border-radius: var(--radius-full);
  background: rgba(0, 12, 6, 0.34);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.5);
  color: #fff;
  transition: background var(--transition-base), transform var(--transition-base), border-color var(--transition-base);
}
.hero-full--slider .hero-swiper .swiper-button-prev:hover,
.hero-full--slider .hero-swiper .swiper-button-next:hover {
  background: var(--primary);
  border-color: #fff;
  transform: translateY(-2px);
}
.hero-full--slider .hero-swiper .swiper-button-prev:focus-visible,
.hero-full--slider .hero-swiper .swiper-button-next:focus-visible {
  outline: 3px solid #fff;
  outline-offset: 3px;
}
.hero-full--slider .hero-swiper .swiper-button-prev::after,
.hero-full--slider .hero-swiper .swiper-button-next::after {
  font-size: 18px;
  font-weight: 700;
}
.hero-full--slider .hero-swiper .swiper-button-disabled { opacity: 0.45; }

/* Touch: hide arrow cluster — dots + swipe gesture are enough */
@media (max-width: 640px) {
  .hero-full--slider .hero-full__controls { display: none; }
  .hero-full--slider .hero-swiper .swiper-pagination {
    left: 0;
    right: 0;
    width: 100%;
    text-align: center;
  }
  .hero-full--slider .hero-swiper .swiper-pagination-bullet { margin: 0 5px !important; }
}

/* High-contrast: solid arrow fills for clarity */
html.high-contrast .hero-full--slider .hero-swiper .swiper-button-prev,
html.high-contrast .hero-full--slider .hero-swiper .swiper-button-next {
  background: rgba(0, 0, 0, 0.85);
  border-color: #fff;
}
html.high-contrast .hero-full--slider .hero-swiper .swiper-button-prev:hover,
html.high-contrast .hero-full--slider .hero-swiper .swiper-button-next:hover {
  background: var(--primary);
}

/* ---- Centered section CTA (Ver todos / Ver todas) ---- */
.ds-section__cta {
  margin-top: var(--sp-8);
  display: flex;
  justify-content: center;
}
