/* The destination website demo (Views/Destination): a made-up brand, "Discover Harrowmere". Big pictures, hand-lettered headings
   (Caveat Brush, SIL OFL, fonts/CaveatBrush-OFL.txt), brush-stroke bands, rounded pictures, round carousel arrows, outline buttons with
   a filled "Book now". Contrast checked for WCAG 2.2 AA: ink #14232b on white 15.6:1, teal #0f5257 on white 8.6:1, berry #b0164f on
   white 6.4:1 and white on berry 6.4:1, muted #4a5a63 on white 7:1. No inline styles anywhere (CSP style-src 'self'). */

@font-face { font-family: 'Caveat Brush'; font-style: normal; font-weight: 400; font-display: swap; src: url('fonts/caveat-brush-latin.woff2') format('woff2'); }

:root {
  --ink: #14232b;
  --muted: #4a5a63;
  --teal: #0f5257;
  --teal-dark: #0a3a3e;
  --berry: #b0164f;
  --berry-dark: #8c1140;
  --sand: #f8f1e4;
  --sea: #dff1f8;
  --card: #ffffff;
  --line: #d9dfe2;
  --radius: 18px;
  --display: 'Caveat Brush', 'Segoe Print', cursive;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; color: var(--ink); background: var(--sand); font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif; font-size: 1rem; line-height: 1.6; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--teal); text-underline-offset: 0.18em; }
a:hover { color: var(--berry-dark); }
:focus-visible { outline: 3px solid var(--berry); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3, h4 { line-height: 1.15; margin: 0 0 0.6rem; }
h3 { font-size: 1.15rem; }
h4 { font-size: 1rem; }
p { margin: 0 0 0.8rem; }
.wrap { max-width: 76rem; margin: 0 auto; padding: 0 1.25rem; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: -999px; top: 0.5rem; z-index: 50; background: #fff; padding: 0.6rem 1rem; border-radius: 8px; }
.skip:focus { left: 0.5rem; }
.icon { width: 1.25em; height: 1.25em; flex: none; vertical-align: -0.25em; }
.display { font-family: var(--display); font-weight: 400; letter-spacing: 0.01em; font-size: clamp(2.1rem, 5vw, 3.4rem); line-height: 1.05; }
h2.display { font-size: clamp(1.9rem, 4vw, 2.8rem); }
.lead { font-size: 1.15rem; color: var(--muted); max-width: 46rem; }
main { display: flex; flex-direction: column; gap: 3rem; padding-bottom: 4rem; }

/* Brush stroke under a heading */
.brush { display: inline-block; padding-bottom: 0.5rem; background: url('art/brush.svg') no-repeat left bottom / 100% 0.55rem; }

/* Buttons: outline, and filled for the one main action */
.button { display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem; min-height: 44px; padding: 0.55rem 1.25rem; border: 2px solid var(--teal); border-radius: 999px; background: #fff; color: var(--teal); font: inherit; font-weight: 700; text-decoration: none; cursor: pointer; }
.button:hover { background: var(--teal); color: #fff; }
.button-filled { background: var(--berry); border-color: var(--berry); color: #fff; }
.button-filled:hover { background: var(--berry-dark); border-color: var(--berry-dark); color: #fff; }
.button-small { min-height: 40px; padding: 0.35rem 1rem; }
.round { width: 48px; height: 48px; border-radius: 50%; border: 2px solid var(--teal); background: #fff; color: var(--teal); display: inline-flex; align-items: center; justify-content: center; cursor: pointer; }
.round:hover:not(:disabled) { background: var(--teal); color: #fff; }
.round:disabled { opacity: 0.4; cursor: default; }

/* Header and mobile drawer */
.site-header { background: #fff; border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 20; }
.header-row { display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem 1.5rem; padding-top: 0.6rem; padding-bottom: 0.6rem; }
.brand { display: inline-flex; align-items: center; gap: 0.6rem; text-decoration: none; color: var(--teal-dark); }
.brand-name { font-family: var(--display); font-size: 1.9rem; line-height: 1; }
.header-actions { margin-left: auto; display: flex; align-items: center; gap: 0.5rem; order: 2; }
.trip-link { display: inline-flex; align-items: center; gap: 0.4rem; min-height: 44px; padding: 0.3rem 0.9rem; border-radius: 999px; color: var(--berry); font-weight: 700; text-decoration: none; }
.trip-link:hover { background: #fbe9f0; color: var(--berry-dark); }
.trip-count { min-width: 1.5rem; height: 1.5rem; padding: 0 0.4rem; border-radius: 999px; background: var(--berry); color: #fff; font-size: 0.85rem; display: inline-flex; align-items: center; justify-content: center; }
.trip-count[hidden] { display: none; }
.menu-button { display: none; align-items: center; gap: 0.4rem; min-height: 44px; padding: 0.3rem 0.9rem; border: 2px solid var(--teal); border-radius: 999px; background: #fff; color: var(--teal); font: inherit; font-weight: 700; cursor: pointer; }
.site-menu { order: 1; }
.site-menu ul { list-style: none; display: flex; flex-wrap: wrap; gap: 0.15rem; margin: 0; padding: 0; }
.site-menu a { display: inline-flex; align-items: center; min-height: 44px; padding: 0.3rem 0.8rem; border-radius: 999px; color: var(--ink); font-weight: 600; text-decoration: none; }
.site-menu a:hover { background: var(--sea); }
.site-menu a[aria-current='page'] { background: var(--teal); color: #fff; }
@media (max-width: 960px) {
  .js .menu-button { display: inline-flex; }
  .js .site-menu { order: 3; flex-basis: 100%; display: none; }
  .js .site-menu[data-open] { display: block; }
  .js .site-menu ul { flex-direction: column; padding: 0.5rem 0 1rem; }
  .js .site-menu a { width: 100%; border-radius: 12px; }
  .trip-link span:not(.trip-count):not(.sr-only) { display: none; }
}

/* Hero slideshow */
.hero { position: relative; background: var(--teal-dark); color: #fff; }
.hero-slide { position: relative; min-height: clamp(26rem, 70vh, 40rem); display: flex; align-items: flex-end; }
.hero-slide[hidden] { display: none; }
.hero-image { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-slide::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10, 30, 35, 0) 30%, rgba(10, 30, 35, 0.78) 100%); }
.hero-text { position: relative; z-index: 1; padding-bottom: 6rem; max-width: 76rem; width: 100%; }
.hero-text h1, .hero-text h2 { font-size: clamp(2.6rem, 7vw, 5rem); max-width: 16ch; margin-bottom: 0.75rem; text-shadow: 0 2px 12px rgba(0, 0, 0, 0.35); }
.hero-text p { font-size: 1.2rem; max-width: 36rem; }
.hero-controls { position: absolute; left: 0; right: 0; bottom: 1.25rem; z-index: 2; display: flex; align-items: center; gap: 0.5rem; }
.hero-controls .round { border-color: #fff; }
.dot { width: 44px; height: 44px; border: 0; background: transparent; cursor: pointer; position: relative; }
.dot::before { content: ''; position: absolute; inset: 15px; border-radius: 50%; border: 2px solid #fff; }
.dot[aria-current='true']::before { background: #fff; }
.icon-play { display: none; }
[data-state='paused'] .icon-play { display: inline; }
[data-state='paused'] .icon-pause { display: none; }
@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto !important; } }

/* Bands */
.band { padding: 3rem 0; }
.band-quick { background: var(--teal); padding: 0; margin-top: -3rem; }
.quick-links { list-style: none; display: grid; grid-template-columns: repeat(auto-fit, minmax(9.5rem, 1fr)); gap: 0; margin: 0 auto; padding-top: 0; padding-bottom: 0; }
.quick-links a { display: flex; flex-direction: column; align-items: center; gap: 0.4rem; padding: 1.1rem 0.5rem; color: #fff; font-weight: 700; text-decoration: none; text-align: center; }
.quick-links a:hover { background: var(--teal-dark); color: #fff; }
.quick-links .icon { width: 2rem; height: 2rem; }
.band-map { background: var(--sea); }
.band-listings { background: #fff; }
.band-newsletter { background: var(--teal); color: #fff; }
.band-newsletter a { color: #fff; }
.welcome { text-align: center; max-width: 52rem; }
.welcome .lead { margin-left: auto; margin-right: auto; }

/* Region map + carousel */
.map-grid { display: grid; gap: 2rem; grid-template-columns: minmax(0, 1fr); align-items: center; }
@media (min-width: 900px) { .map-grid { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); } }
.region-map { width: 100%; height: auto; max-height: 28rem; }
.region-sea-outline { fill: none; stroke: var(--teal); stroke-width: 10; stroke-linejoin: round; opacity: 0.25; }
.region-map path { stroke: #fff; stroke-width: 3; stroke-linejoin: round; transition: filter 0.15s; }
.region-map a:hover path, .region-map a:focus path, .region-map a.is-active path { filter: brightness(0.85) saturate(1.4); stroke: var(--teal-dark); stroke-width: 4; }
.region-map a:focus { outline: none; }
.region-map a:focus-visible path { stroke: var(--berry); stroke-width: 6; }
.region-map text { font-family: var(--display); font-size: 22px; fill: var(--teal-dark); pointer-events: none; }
.map-label { font-family: var(--display); font-size: 1.6rem; color: var(--teal-dark); min-height: 2rem; }
.area-card.is-active { outline: 4px solid var(--berry); outline-offset: -4px; }

/* Carousels */
.carousel { position: relative; }
.carousel-track { list-style: none; display: grid; grid-auto-flow: column; grid-auto-columns: minmax(16rem, 1fr); gap: 1.25rem; overflow-x: auto; scroll-snap-type: x mandatory; padding: 0.25rem 0.25rem 1rem; margin: 0; scrollbar-width: thin; }
@media (min-width: 700px) { .carousel-track { grid-auto-columns: calc((100% - 2.5rem) / 3); } }
.map-grid .carousel-track { grid-auto-columns: minmax(16rem, 1fr); }
@media (min-width: 700px) { .map-grid .carousel-track { grid-auto-columns: calc((100% - 1.25rem) / 2); } }
.carousel-track > li { scroll-snap-align: start; }
.carousel-buttons { display: flex; gap: 0.5rem; justify-content: flex-end; }
.section-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 1rem; margin-bottom: 1rem; }

/* Cards */
.grid { list-style: none; display: grid; gap: 1.25rem; padding: 0; margin: 0; grid-template-columns: repeat(auto-fill, minmax(min(100%, 16rem), 1fr)); }
.grid-destinations { grid-template-columns: repeat(auto-fill, minmax(min(100%, 20rem), 1fr)); }
.card { position: relative; background: var(--card); border-radius: var(--radius); overflow: hidden; box-shadow: 0 2px 14px rgba(20, 35, 43, 0.1); display: flex; flex-direction: column; }
.card-image { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius) var(--radius) 0 0; }
.card-body { padding: 1rem 1.1rem 1.25rem; display: flex; flex-direction: column; gap: 0.2rem; flex: 1; }
.card h3 { margin: 0.1rem 0 0.25rem; }
.card h3 a { color: var(--ink); text-decoration: none; }
.card h3 a::after { content: ''; position: absolute; inset: 0; } /* the whole card is the link's target */
.card h3 a:hover { text-decoration: underline; }
.card:focus-within { outline: 3px solid var(--berry); outline-offset: 2px; }
.card-kicker { margin: 0; font-size: 0.85rem; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; color: var(--teal); }
.card-meta { margin: 0; font-size: 0.92rem; color: var(--muted); }
.card-summary { margin: 0.25rem 0 0; color: var(--muted); }
.card-label { margin: 0; align-self: flex-start; padding: 0.15rem 0.7rem; border-radius: 999px; background: var(--berry); color: #fff; font-weight: 700; font-size: 0.85rem; }
.card-more { margin-top: auto; font-weight: 700; color: var(--teal); }
.card-links { position: relative; z-index: 1; margin: 0.25rem 0 0; }
.tile { aspect-ratio: 1 / 1; justify-content: flex-end; }
.tile .card-image { position: absolute; inset: 0; height: 100%; aspect-ratio: auto; border-radius: var(--radius); }
.tile .card-body { position: relative; flex: none; background: linear-gradient(180deg, rgba(10, 30, 35, 0), rgba(10, 30, 35, 0.8)); padding-top: 3rem; }
.tile h3 { font-family: var(--display); font-weight: 400; font-size: 1.8rem; }
.tile h3 a { color: #fff; }
.grid-themes { grid-template-columns: repeat(auto-fill, minmax(min(100%, 13rem), 1fr)); }
.heart { position: absolute; top: 0.7rem; right: 0.7rem; z-index: 2; width: 44px; height: 44px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, 0.94); color: var(--berry); display: inline-flex; align-items: center; justify-content: center; cursor: pointer; box-shadow: 0 1px 6px rgba(0, 0, 0, 0.2); }
.heart .icon, .heart-button .icon { fill: none; }
.heart[aria-pressed='true'] .icon, .heart-button[aria-pressed='true'] .icon { fill: currentColor; }
.stars { display: inline-flex; gap: 0.1rem; margin: 0; color: #a15c00; }
.notice { background: #fff; border-left: 5px solid var(--berry); border-radius: 10px; padding: 0.8rem 1rem; }

/* Page head */
.page-head { background: var(--sea); padding: 2.5rem 0 2rem; }
.page-head .lead { margin-bottom: 0; }
.prose { max-width: 48rem; }
.prose h2 { font-family: var(--display); font-weight: 400; font-size: 2rem; margin-top: 1.5rem; }

/* Newsletter */
.newsletter { display: grid; gap: 1.5rem; align-items: end; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 800px) { .newsletter { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }
.newsletter-form label { display: block; font-weight: 700; margin-bottom: 0.3rem; }
.inline-field { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.inline-field input { flex: 1 1 14rem; min-height: 48px; padding: 0.5rem 0.9rem; border: 2px solid #fff; border-radius: 999px; font: inherit; }
.newsletter .button-filled { border-color: #fff; }
.form-status { margin-top: 0.75rem; }
.form-error { font-weight: 700; }

/* Listing page */
.listing-top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; padding-top: 1.5rem; }
.back { display: inline-flex; align-items: center; gap: 0.3rem; min-height: 44px; font-weight: 700; }
.listing { display: flex; flex-direction: column; gap: 2.5rem; }
.listing-head .display { margin-bottom: 0.3rem; }
.address { display: flex; flex-wrap: wrap; align-items: center; gap: 0.4rem 0.8rem; color: var(--muted); }
.gallery-main { position: relative; margin: 0; }
.gallery-main img { width: 100%; max-height: 38rem; aspect-ratio: 16 / 10; object-fit: cover; border-radius: var(--radius); background: var(--sea); }
.gallery-main figcaption { margin-top: 0.4rem; color: var(--muted); font-size: 0.9rem; }
.gallery-prev, .gallery-next { position: absolute; top: calc(50% - 1.5rem); }
.gallery-prev { left: 1rem; }
.gallery-next { right: 1rem; }
.gallery-thumbs { list-style: none; display: flex; gap: 0.5rem; overflow-x: auto; padding: 0.5rem 0.25rem; margin: 0; }
.gallery-thumbs button { padding: 0; border: 3px solid transparent; border-radius: 12px; background: none; cursor: pointer; }
.gallery-thumbs button[aria-current='true'] { border-color: var(--berry); }
.gallery-thumbs img { width: 6.5rem; height: 4.5rem; object-fit: cover; border-radius: 9px; }
.listing-body { display: grid; gap: 2rem; grid-template-columns: minmax(0, 1fr); align-items: start; }
@media (min-width: 900px) { .listing-body { grid-template-columns: minmax(0, 2fr) minmax(16rem, 1fr); } }
.side-box { position: sticky; top: 6rem; background: #fff; border-radius: var(--radius); padding: 1.5rem; box-shadow: 0 2px 14px rgba(20, 35, 43, 0.1); display: flex; flex-direction: column; gap: 0.75rem; }
.contact { list-style: none; padding: 0; margin: 0.5rem 0 0; display: flex; flex-direction: column; gap: 0.5rem; overflow-wrap: anywhere; }
.certified { margin: 0; font-size: 0.9rem; color: var(--muted); }
.facility-groups { display: grid; gap: 1rem 2rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 15rem), 1fr)); margin-bottom: 1.5rem; }
.facility-group ul { padding-left: 1.1rem; margin: 0; }
.facility-group .detail { display: block; color: var(--muted); font-size: 0.9rem; }
.tabs { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 1rem; }
.tabs [role='tab'] { min-height: 44px; padding: 0.4rem 1.1rem; border: 2px solid var(--teal); border-radius: 999px; background: #fff; color: var(--teal); font: inherit; font-weight: 700; cursor: pointer; }
.tabs [role='tab'][aria-selected='true'] { background: var(--teal); color: #fff; }
.no-js-only { display: none; }
html:not(.js) .no-js-only { display: block; }
html:not(.js) .tabs { display: none; }

/* Maps */
.tile-map-box { position: relative; height: 24rem; border-radius: var(--radius); overflow: hidden; background: var(--sea); }
.tile-map-large { height: 34rem; }
.tile-map-viewport { position: absolute; inset: 0; overflow: hidden; cursor: grab; touch-action: pan-y; }
.tile-map-tiles img, .tile-map-markers li { position: absolute; left: 0; top: 0; }
.tile-map-tiles img { width: 256px; height: 256px; max-width: none; user-select: none; }
.tile-map-markers { list-style: none; margin: 0; padding: 0; }
.tile-map-pin { position: absolute; left: -14px; top: -36px; width: 28px; height: 36px; display: block; background: url('art/pin.svg') no-repeat center / contain; }
a.tile-map-pin:focus-visible { outline: 3px solid var(--berry); }
.tile-map-controls { position: absolute; top: 0.75rem; right: 0.75rem; display: flex; flex-direction: column; gap: 0.35rem; }
.tile-map-controls button { width: 44px; height: 44px; border-radius: 10px; border: 2px solid var(--teal); background: #fff; color: var(--teal); font-size: 1.4rem; font-weight: 700; cursor: pointer; }
.tile-map-attribution { position: absolute; right: 0; bottom: 0; margin: 0; padding: 0.15rem 0.5rem; background: rgba(255, 255, 255, 0.9); font-size: 0.8rem; }
.map-list { columns: 2 14rem; margin-top: 1rem; }

/* Search */
.search-layout { display: grid; gap: 2rem; grid-template-columns: minmax(0, 1fr); align-items: start; }
@media (min-width: 960px) { .search-layout { grid-template-columns: 18rem minmax(0, 1fr); } }
.search-form { background: #fff; border-radius: var(--radius); padding: 1.25rem; display: flex; flex-direction: column; gap: 1rem; box-shadow: 0 2px 14px rgba(20, 35, 43, 0.08); }
.field label, .field legend { display: block; font-weight: 700; margin-bottom: 0.3rem; }
.field input:not([type='checkbox']), .field select { width: 100%; min-height: 44px; padding: 0.4rem 0.7rem; border: 2px solid #7b8a92; border-radius: 10px; font: inherit; background: #fff; }
.facilities-filter { border: 0; padding: 0; margin: 0; }
.facilities-filter summary { cursor: pointer; font-weight: 600; min-height: 36px; display: flex; align-items: center; }
.check { display: flex; align-items: center; gap: 0.5rem; min-height: 32px; }
.check input { width: 1.2rem; height: 1.2rem; }
.form-buttons { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.results-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 1rem; }
.results-count { font-size: 1.3rem; margin: 0; }
.view-switch { display: flex; gap: 0.25rem; margin: 0; }
.view-switch a { min-height: 44px; display: inline-flex; align-items: center; padding: 0.3rem 1rem; border: 2px solid var(--teal); border-radius: 999px; text-decoration: none; font-weight: 700; }
.view-switch a[aria-current='page'] { background: var(--teal); color: #fff; }
.pager { display: flex; align-items: center; justify-content: center; gap: 1rem; margin-top: 1.5rem; }

/* Footer */
.site-footer { background: var(--teal-dark); color: #fff; padding: 2.5rem 0; }
.site-footer a { color: #fff; }
.footer-grid { display: grid; gap: 1.5rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 16rem), 1fr)); }
.footer-brand { display: flex; align-items: center; gap: 0.5rem; font-family: var(--display); font-size: 1.7rem; margin: 0; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.25rem; }
.site-footer ul a { display: inline-block; min-height: 32px; padding: 0.2rem 0; }
.demo-note { grid-column: 1 / -1; border-top: 1px solid rgba(255, 255, 255, 0.3); padding-top: 1rem; margin: 0; }
