/* ==========================================================================
   Beaches listing (/beaches/)
   Hero + search bar, intro, filter chips / date summary / legend,
   alternating beach rows with in-image photo carousels, features band.
   Shared components (.page-hero, .search-bar, .carousel, .access-badge, .btn,
   .link-more, .beach-tags, .price-tag) come from base.css; only page tweaks here.
   ========================================================================== */

/* ----- Hero ----- */
.beaches-hero { min-height: 610px; }
.beaches-hero .media-cover { --overlay: 0.55; } /* as on the live page */
.beaches-hero .page-hero__inner { max-width: 1500px; gap: 20px; }
.beaches-hero .h-hero { font-size: clamp(36px, 5.6vw, 80px); } /* inner-hero size (live: 80px); smaller floor so each phrase fits on phones */
.beaches-hero .h-hero span { white-space: nowrap; } /* wrap between phrases only, never before a "." */

/* ----- Intro ----- */
.beaches-main { padding: clamp(64px, 6.6vw, 95px) 0 clamp(90px, 9vw, 130px); }
.beaches-intro { max-width: 820px; margin-inline: auto; gap: 18px; }
.beaches-intro__title { max-width: 640px; text-wrap: balance; }
.beaches-intro__text { font-size: 18px; line-height: 1.66; color: var(--c-text); }

/* ----- Filters, date summary and legend ----- */
.beach-filters {
  display: flex; flex-direction: column; align-items: center; gap: 18px;
  margin: clamp(34px, 3.4vw, 46px) auto clamp(56px, 5.6vw, 84px);
  text-align: center; scroll-margin-top: 110px;
}
.filter-chips ul { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; list-style: none; margin: 0; padding: 0; }
.filter-chip {
  display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 22px;
  border: 1px solid var(--c-line-strong); background: var(--c-white); color: var(--c-ink);
  font-family: var(--ff-heading); font-size: 15px; line-height: 1; white-space: nowrap;
  transition: background-color var(--t) var(--ease), border-color var(--t) var(--ease), color var(--t) var(--ease);
}
.filter-chip:hover { border-color: var(--c-lagoon); color: var(--c-lagoon); }
.filter-chip.is-active { background: var(--c-lagoon); border-color: var(--c-lagoon); color: var(--c-white); }

.beach-results {
  display: inline-flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 6px 10px;
  font-size: 15px; line-height: 1.5; color: var(--c-text);
}
.beach-results strong { font-weight: 500; color: var(--c-ink); }
.beach-results__sep { margin: 0 4px; color: var(--c-driftwood); }
.beach-results__icon { width: 18px; height: 18px; color: var(--c-lagoon); }
.beach-results--hint { color: var(--c-muted); }
.beach-results__clear {
  display: inline-flex; align-items: center; min-height: 32px; padding: 0 4px;
  color: var(--c-lagoon); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px;
}
.beach-results__clear:hover { color: var(--c-lagoon-dark); text-decoration-thickness: 2px; }

.beach-legend { justify-content: center; list-style: none; margin: 0; padding: 0; color: var(--c-muted); }
.beach-legend .access-legend__item { color: var(--c-text); }
.beach-legend__icon { width: 16px; height: 16px; color: var(--a, var(--access-family)); stroke-width: 1.5; }

/* ----- Beach rows (image half / text half, alternating) ----- */
.beach-rows { display: flex; flex-direction: column; gap: clamp(48px, 4.6vw, 66px); }
.beach-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; }
.beach-row--flip .beach-row__media { order: 2; }

.beach-row__media { position: relative; }
.beach-row__media::after { /* soft shade so the white dots stay legible on bright photos */
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; z-index: 1; height: 90px; pointer-events: none;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.22) 100%);
}
.beach-row .carousel { --per-view: 1; --gap: 0px; }
.beach-row__photo { display: block; aspect-ratio: 3 / 2; }
.beach-row__photo picture { width: 100%; height: 100%; }
.beach-row__photo img { transition: transform 1.1s var(--ease-out), filter 0.6s var(--ease); }
.beach-row__media:hover .beach-row__photo img { transform: scale(1.03); }
.beach-row .price-tag { z-index: 3; }

/* In-image arrows: hidden until hover/focus on desktop, swipe on touch screens */
.beach-row .carousel__btn--prev { left: 18px; }
.beach-row .carousel__btn--next { right: 18px; }
@media (hover: hover) and (pointer: fine) {
  .beach-row .carousel__btn { opacity: 0; transform: scale(0.9); }
  .beach-row__media:hover .carousel__btn:not([disabled]),
  .beach-row__media:focus-within .carousel__btn:not([disabled]) { opacity: 1; transform: none; }
}
@media (hover: none), (pointer: coarse) {
  .beach-row .carousel__btn { display: none; }
}

/* Dots sit inside the photo */
.beach-row .carousel__dots {
  position: absolute; left: 0; right: 0; bottom: 18px; z-index: 4; margin: 0; padding: 0 16px;
  flex-wrap: wrap; gap: 0; pointer-events: none;
}
.beach-row .carousel__dot { width: 13px; height: 16px; pointer-events: auto; }
.beach-row .carousel__dot::before { box-shadow: 0 0 3px rgba(0, 0, 0, 0.25); }

/* Text column */
.beach-row__body {
  display: flex; flex-direction: column; align-items: center; text-align: center;
  padding: 24px clamp(24px, 4.2vw, 64px);
}
.beach-row__title { margin-top: 12px; font-size: var(--fs-h5); line-height: 1.25; text-wrap: balance; }
.beach-row__title a { transition: color var(--t) var(--ease); }
.beach-row__title a:hover { color: var(--c-lagoon); }
.beach-row__summary { max-width: 560px; margin-top: 16px; font-size: 17px; line-height: 1.7; color: var(--c-text); }
.beach-row__access { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: 22px 0 0; padding: 0; list-style: none; }
.beach-row__day { margin-top: 14px; }
.beach-row__day-badge {
  padding: 9px 18px 9px 14px; gap: 9px; border-radius: 0;
  font-size: 14px; letter-spacing: 0.02em; box-shadow: inset 0 0 0 1px var(--a);
}
.beach-row__day-badge .icon { width: 18px; height: 18px; }
.beach-row__actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 14px 32px; margin-top: 28px; }
.beach-row__note { max-width: 420px; margin-top: 14px; font-size: 14px; line-height: 1.55; color: var(--c-muted); }
.beach-row__note a { color: var(--c-lagoon); text-decoration: underline; text-underline-offset: 2px; }

/* Closed on the searched date: muted photo, Book Now disabled (explained under the button) */
.beach-row.is-closed .beach-row__photo img { filter: grayscale(0.75) brightness(0.97); }
.beach-row.is-closed .beach-row__title a { color: var(--c-muted); }
.beach-row.is-closed .beach-row__title a:hover { color: var(--c-lagoon); }

/* ----- Empty state ----- */
.beach-empty {
  display: flex; flex-direction: column; align-items: center; gap: 14px; max-width: 620px; margin: 0 auto;
  padding: clamp(40px, 5vw, 64px) 24px; background: var(--c-mist); text-align: center;
}
.beach-empty__icon { width: 40px; height: 40px; color: var(--c-lagoon); stroke-width: 1.2; }
.beach-empty__title { font-size: clamp(24px, 2.2vw, 30px); line-height: 1.3; }
.beach-empty__text { max-width: 460px; font-size: 16px; line-height: 1.6; }
.beach-empty .btn { margin-top: 8px; }

/* ----- Features band ----- */
.beach-features { padding: clamp(72px, 7.7vw, 111px) 0; background: var(--c-paper-alt); }
.beach-features__grid {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(40px, 4.3vw, 62px) clamp(32px, 5vw, 74px);
  list-style: none; margin: 0; padding: 0;
}
.beach-features__item {
  display: flex; align-items: flex-start; gap: 24px; padding: 2px 0 2px 21px;
  border-left: 1px solid rgba(26, 27, 26, 0.5);
}
.beach-features__icon { width: 44px; height: 44px; margin-top: 4px; color: var(--c-ink); stroke-width: 1.1; }
.beach-features__text { font-size: 16px; line-height: 1.45; color: var(--c-ink); }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1024px) {
  .beach-features__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .beach-row { grid-template-columns: minmax(0, 1fr); }
  .beach-row--flip .beach-row__media { order: 0; }
  .beach-row__body { padding: 28px 8px 0; }
}
@media (max-width: 767px) {
  .beaches-hero { min-height: 500px; }
  .beaches-hero .page-hero__inner { gap: 16px; }
  .beaches-intro__text { font-size: 16px; }
  .beach-filters { gap: 16px; }
  .filter-chips ul { gap: 8px; }
  .filter-chip { padding: 0 16px; font-size: 14px; }
  .beach-rows { gap: 56px; }
  .beach-row__photo { aspect-ratio: 4 / 3; }
  .beach-row .carousel__dots { bottom: 12px; }
  .beach-row .carousel__dot { width: 11px; }
  .beach-row__summary { font-size: 16px; }
  .beach-row__actions { gap: 14px 24px; }
  .beach-features__grid { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .beach-features__icon { width: 40px; height: 40px; }
}
