/*
 * Places by the sea: cards, the beach-page section, beach notices, place
 * pages and section pages (October 2026). Tokens from conditions.css and
 * guides.css (--wb-purple, --wb-teal, --wb-line, --guide-ink, --guide-soft).
 */

:root {
  --place-radius: 14px;
  --place-resting: #6b6680;
}

/* Compact rows: name, one line of facts, a note on the right. Two
   columns on wider screens, divided by hairlines. */
.place-rows {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  list-style: none;
  margin: 0;
  padding: 0;
}

@media (min-width: 48em) {
  .place-rows { column-gap: 48px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* Three columns only where names still fit on one line. */
@media (min-width: 100em) {
  .place-rows--wide { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

.place-row {
  align-items: center;
  border-bottom: 1px solid var(--wb-line);
  display: flex;
  gap: 12px;
  min-height: 72px;
  min-width: 0;
  padding: 14px 0;
}

.place-row[hidden] { display: none; }

.place-row__icon {
  align-self: center;
  flex-shrink: 0;
  height: 34px;
  width: 34px;
}

.place-row__icon .icon { display: block; height: 34px; width: 34px; }

.place-row__main { display: flex; flex: 1; flex-direction: column; gap: 2px; min-width: 0; }

.place-row__name {
  align-items: center;
  color: var(--wb-purple);
  display: flex;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.35;
  min-width: 0;
}

/* One line each, so every row is the same height; the full name is the link's title. */
.place-row__label,
.place-row__meta {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.place-row__external { flex-shrink: 0; }

a.place-row__name { text-decoration: none; }

a.place-row__name:hover,
a.place-row__name:focus-visible { text-decoration: underline; text-decoration-color: var(--wb-teal); text-decoration-thickness: 2px; text-underline-offset: 3px; }

a.place-row__name:focus-visible { outline: 2px solid var(--wb-teal); outline-offset: 2px; }

.place-row__external { color: #9a96aa; margin-left: 6px; vertical-align: -1px; }

.place-row__meta { color: #6f6c80; font-size: 14px; line-height: 1.4; }

.place-row__aside {
  color: #6f6c80;
  flex-shrink: 0;
  font-size: 13px;
  font-weight: 600;
  max-width: 8.5em;
  text-align: right;
}

.place-row__aside--here { color: #1d7a63; }

.place-row--resting .place-row__name { color: #5d5772; }

.place-row__status {
  background: #eceaf2;
  border-radius: 999px;
  color: var(--place-resting);
  flex-shrink: 0;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.01em;
  line-height: 16px;
  padding: 4px 10px;
  white-space: nowrap;
}

/* Section pages: what the icons mean */
.places-hub__legend {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  list-style: none;
  margin: 0 0 20px;
  padding: 0;
}

.places-hub__legend li { align-items: center; color: #5d5a6e; display: flex; font-size: 14px; font-weight: 600; gap: 8px; }

.places-hub__legend .icon { height: 28px; width: 28px; }

.place-rows__more {
  background: none;
  border: 0;
  color: var(--wb-purple);
  cursor: pointer;
  font: inherit;
  font-size: 15px;
  font-weight: 700;
  margin: 12px 0 0;
  padding: 0;
  text-decoration: underline;
  text-decoration-color: var(--wb-teal);
  text-underline-offset: 3px;
}

.place-rows__more:focus-visible { outline: 2px solid var(--wb-teal); outline-offset: 2px; }

/* A small label (facilities on a place's page) */
.place-chip {
  background: var(--guide-soft);
  border-radius: 999px;
  color: var(--wb-purple);
  font-size: 13px;
  font-weight: 600;
  line-height: 16px;
  padding: 5px 11px;
}

/* "See all beach & pool clubs and eat & drink": text links */
.place-sections { color: var(--guide-ink); font-size: 16px; line-height: 1.6; margin: 20px 0 0; }

.place-sections a {
  color: var(--wb-purple);
  font-weight: 700;
  text-decoration: underline;
  text-decoration-color: var(--wb-teal);
  text-decoration-skip-ink: none;
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}

.place-sections a:hover,
.place-sections a:focus-visible { color: #24104a; }

.place-sections a:focus-visible { outline: 2px solid var(--wb-teal); outline-offset: 2px; }

/* Beach page section */
.beach-places { margin-bottom: 48px; }

.beach-places > h2 { margin: 0 0 8px; }

.beach-places__summary { color: var(--guide-ink); font-size: 16px; line-height: 1.5; margin: 0 0 18px; max-width: var(--guide-measure); }

/* A notice that applies to everyone at a beach */
.beach-notice {
  background: #fff7e6;
  border-left: 4px solid var(--wb-choppy);
  border-radius: 0 10px 10px 0;
  color: #5a4a1f;
  font-size: 16px;
  line-height: 1.5;
  margin: 24px auto 0;
  max-width: 60rem;
  padding: 14px 18px;
}

.beach-notice strong { color: #3f330f; }

/* Place page */
.place-page { color: var(--guide-ink); padding-bottom: 56px; padding-top: 8px; }

.place-page__external { margin-left: 6px; vertical-align: -1px; }





.place-page__header { border-bottom: 1px solid var(--wb-line); margin: 0 0 32px; padding-bottom: 28px; }

.place-page__eyebrow { margin: 0 0 10px; }

.place-page__title {
  color: var(--wb-purple);
  font-size: clamp(28px, 2.4vw + 16px, 44px);
  line-height: 1.1;
  margin: 0 0 14px;
  text-wrap: balance;
}

.place-page__lede { font-size: 18px; line-height: 1.6; margin: 0 0 18px; max-width: var(--guide-measure); }

.place-page__actions { display: flex; flex-wrap: wrap; gap: 10px; list-style: none; margin: 0; padding: 0; }

.place-page__action {
  border: 1.5px solid var(--wb-purple);
  border-radius: 999px;
  color: var(--wb-purple);
  display: inline-block;
  font-size: 15px;
  font-weight: 700;
  padding: 9px 18px;
  text-decoration: none;
  transition: background-color 0.15s ease, color 0.15s ease;
}

.place-page__action:hover,
.place-page__action:focus-visible { background: var(--wb-purple); color: #fff; }

.place-page__action--primary { background: var(--wb-purple); color: #fff; }

.place-page__action--primary:hover,
.place-page__action--primary:focus-visible { background: #24104a; }

.place-page__more { margin: 0 0 40px; }

.place-page__more > h2 { margin: 0 0 16px; }

/* Section pages */
.places-hub__filters { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 0 0 22px; padding: 0; }

.places-hub__filter {
  background: #fff;
  border: 1.5px solid var(--wb-line);
  border-radius: 999px;
  color: var(--wb-purple);
  cursor: pointer;
  font: inherit;
  font-size: 14px;
  font-weight: 700;
  padding: 7px 14px;
  transition: border-color 0.15s ease, background-color 0.15s ease, color 0.15s ease;
}

.places-hub__filter:hover { border-color: var(--wb-teal); }

.places-hub__filter[aria-pressed='true'] { background: var(--wb-purple); border-color: var(--wb-purple); color: #fff; }

.places-hub__filter:focus-visible { outline: 2px solid var(--wb-teal); outline-offset: 2px; }

.places-hub__count { color: #6f6c80; font-size: 14px; margin: 0 0 16px; }

.places-hub__region { margin: 0 0 36px; }

.places-hub__region[hidden] { display: none; }

.places-hub__region > h2 { margin: 0 0 14px; }

@media (prefers-reduced-motion: reduce) {
  .place-page__action,
  .places-hub__filter { transition: none; }
}

/* Place page: key facts, facilities and where it is */
/* Highlights: the few things that decide a visit */
.place-highlights { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 0 0 22px; padding: 0; }

.place-highlight {
  background: var(--guide-soft);
  border-radius: 8px;
  color: var(--wb-purple);
  font-size: 14px;
  font-weight: 700;
  line-height: 18px;
  padding: 6px 14px;
}

.place-highlight--resting { background: #eceaf2; color: var(--place-resting); }

/* The top: what it is and how to reach them, with its beach beside it */
@media (min-width: 60em) {
  .place-page__header--with-beach {
    align-items: start;
    column-gap: 56px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 23rem);
  }
}

.place-page__header--with-beach .place-beach { margin-top: 28px; }

@media (min-width: 60em) {
  .place-page__header--with-beach .place-beach { margin-top: 4px; }
}

.place-facilities { margin: 0 0 48px; }

.place-facilities > h2 { margin: 0 0 18px; }

.place-facilities__list {
  display: grid;
  gap: 18px 16px;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 140px), 1fr));
  list-style: none;
  margin: 0;
  padding: 0;
}

.place-facility {
  align-items: center;
  color: #676668;
  display: flex;
  font-size: 14px;
  font-weight: 700;
  gap: 12px;
  line-height: 1.25;
}

.place-facility .icon { flex-shrink: 0; height: 40px; width: 40px; }

.place-beach__sentence { color: var(--guide-ink); font-size: 14px; line-height: 1.5; margin: 10px 0 0; }

.place-beach__sentence a {
  color: var(--wb-purple);
  font-weight: 700;
  text-decoration: underline;
  text-decoration-color: var(--wb-teal);
  text-underline-offset: 3px;
}

.place-beach__sentence a:hover { color: var(--wb-teal); }

.place-beach .nearby-card { height: auto; }

.place-beach .nearby-card__media { aspect-ratio: 16 / 9; }


/* Section pages end with room before the partners strip, like place pages. */
.places-hub { padding-bottom: var(--band-space, 72px); }

.places-hub .place-sections { margin-top: 28px; }

/* Place page with its beach's photo as the hero */
.place-hero__credit {
  bottom: 12px;
  color: rgba(255, 255, 255, 0.85);
  font-size: 12px;
  margin: 0;
  position: absolute;
  right: 16px;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
  z-index: 3;
}

.place-hero__eyebrow {
  color: var(--wb-teal);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  margin: 0 0 6px;
  text-transform: uppercase;
}

.place-hero__highlights { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; margin: 14px 0 0; padding: 0; }

.place-hero__highlight {
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: 8px;
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  line-height: 16px;
  padding: 5px 10px;
}

.place-hero__highlight--resting { background: rgba(255, 255, 255, 0.18); }

.place-hero__beach {
  align-items: center;
  border-top: 1px solid rgba(255, 255, 255, 0.25);
  color: #fff;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 10px;
  margin-top: 18px;
  padding-top: 16px;
  text-decoration: none;
}

.place-hero__beach-label { font-size: 15px; font-weight: 600; }

.place-hero__verdict { margin: 0; padding: 2px 10px; }

.place-hero__beach-more {
  color: rgba(255, 255, 255, 0.85);
  flex-basis: 100%;
  font-size: 14px;
  text-decoration: underline;
  text-decoration-color: var(--wb-teal);
  text-underline-offset: 3px;
}

.place-hero__beach:hover .place-hero__beach-more,
.place-hero__beach:focus-visible .place-hero__beach-more { color: #fff; }

.place-page--hero { padding-top: 40px; }

.place-hero__intro { border-bottom: 1px solid var(--wb-line); margin: 0 0 36px; padding-bottom: 32px; }
