/* The Retreat List — "Wild Atlantic" */

/* Fonts are hosted on this site (no Google requests). Both are SIL Open Font License. */
@font-face { font-family: "Fraunces"; font-style: normal; font-weight: 500; font-display: swap; src: url("../fonts/fraunces-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Fraunces"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/fraunces-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/inter-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 500; font-display: swap; src: url("../fonts/inter-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/inter-latin-600-normal.woff2") format("woff2"); }

:root {
  --sea: #1F4A40;
  --sea-dark: #123029;
  --sand: #F4EEE3;
  --sun: #E9C99A;
  --surface: #FFFFFF;
  --text: #1C2B27;
  --muted: #56645F;
  --line: #DCD3C3;
  --radius: 18px;
  --serif: "Fraunces", Georgia, serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }

body {
  margin: 0;
  font-family: var(--sans);
  background: var(--sand);
  color: var(--text);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--sea); }
a:hover { color: var(--sea-dark); }

.wrap { max-width: 1180px; margin: 0 auto; padding: 0 16px; }
@media (min-width: 720px) { .wrap { padding: 0 32px; } }

/* ---------- Header ---------- */
.hero {
  position: relative;
  overflow: hidden;
  background: #2E5E54;
  color: var(--sand);
  padding-bottom: 88px;
}
.hero-sm { padding-bottom: 64px; }
.hero .coast { position: absolute; inset: 0; width: 100%; height: 100%; }
.topbar, .hero-text { position: relative; }

.topbar {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
  justify-content: space-between;
  align-items: center;
  padding-top: 22px;
  padding-bottom: 22px;
}
.brand {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 1.4rem;
  letter-spacing: -0.01em;
  color: var(--sand);
  text-decoration: none;
}
.brand:hover { color: #fff; }
.nav { display: flex; align-items: center; gap: 20px; font-size: 0.95rem; }
.nav a { color: #D9E4DF; text-decoration: none; }
.nav a:hover, .nav a[aria-current="page"] { color: #fff; }
.nav a[aria-current="page"] { font-weight: 600; }
.nav a.cta {
  background: var(--sun);
  color: var(--sea-dark);
  font-weight: 600;
  padding: 9px 16px;
  border-radius: 999px;
}
.nav a.cta:hover { background: #F2D7AE; color: var(--sea-dark); }

.hero-text { padding-top: 28px; }
.hero h1 {
  margin: 0;
  max-width: 720px;
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(2.2rem, 6vw, 3.8rem);
  line-height: 1.05;
  letter-spacing: -0.02em;
}
.hero-sm h1 { font-size: clamp(1.9rem, 4.5vw, 2.8rem); }
.hero-text p { margin: 14px 0 0; font-size: 1.1rem; color: #D9E4DF; max-width: 560px; }

main.wrap { position: relative; }

/* ---------- Finder (search + dropdowns) ---------- */
.finder {
  margin-top: -44px;
  position: relative;
  z-index: 1;
  background: var(--surface);
  border-radius: var(--radius);
  padding: 12px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  box-shadow: 0 10px 30px rgba(20, 40, 35, 0.12);
}
.finder .q {
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0 14px;
  height: 52px;
  color: var(--muted);
}
.finder .q:focus-within { border-color: var(--sea); box-shadow: 0 0 0 2px rgba(31, 74, 64, 0.15); }
.finder input {
  border: 0;
  outline: 0;
  font: inherit;
  font-size: 1rem;
  width: 100%;
  background: transparent;
  color: var(--text);
}
.finder select {
  font: inherit;
  font-size: 1rem;
  height: 52px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  color: var(--text);
  width: 100%;
}
.finder select:focus { outline: 2px solid var(--sea); outline-offset: 1px; }
@media (min-width: 720px) {
  .finder { grid-template-columns: 2fr repeat(3, minmax(0, 1fr)); padding: 16px; }
  .finder-one { grid-template-columns: 1fr; }
}

/* ---------- Tap filters ---------- */
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 16px 0 0;
}
.chips .sep { width: 1px; background: var(--line); margin: 4px 6px; }
.chip {
  font: inherit;
  font-size: 0.9rem;
  min-height: 40px;
  padding: 0 16px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--text);
  cursor: pointer;
}
.chip:hover { border-color: var(--sea); }
.chip[aria-pressed="true"] { background: var(--sea); border-color: var(--sea); color: var(--sand); }
.chip:focus-visible { outline: 2px solid var(--sea); outline-offset: 2px; }

/* ---------- List ---------- */
.list-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: baseline;
  gap: 8px;
  margin: 36px 0 16px;
}
.list-head h2 { margin: 0; font-family: var(--serif); font-weight: 600; font-size: 1.7rem; }
.count { color: var(--muted); font-size: 0.95rem; margin: 0; min-height: 1.4em; }

.grid { display: grid; grid-template-columns: 1fr; gap: 24px; padding-bottom: 56px; }
@media (min-width: 640px) { .grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 980px) { .grid { grid-template-columns: repeat(3, 1fr); } }

/* ---------- Card ---------- */
.card {
  background: var(--surface);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 2px 8px rgba(20, 40, 35, 0.06);
  transition: transform .15s ease, box-shadow .15s ease;
}
.card:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(20, 40, 35, 0.10); }
.card .photo { position: relative; aspect-ratio: 2 / 1; background: #B7C3B2; }
.card .photo img, .card .photo svg { width: 100%; height: 100%; object-fit: cover; display: block; }
.badge {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 5px 10px;
  border-radius: 999px;
  background: var(--sand);
  color: var(--sea);
}
.card .photo .badge { position: absolute; top: 14px; left: 14px; }
.card .photo .badge.sold { left: auto; right: 14px; background: var(--text); color: #fff; }

.card .body { padding: 18px 20px 20px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.card .when {
  margin: 0;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--sea);
}
.card h2 { margin: 0; font-family: var(--serif); font-weight: 600; font-size: 1.3rem; line-height: 1.25; }
.card .venue { margin: 0; font-size: 0.95rem; color: var(--muted); }
.card .venue a { color: var(--muted); text-decoration: none; }
.card .venue a:hover { color: var(--sea); text-decoration: underline; }
.card .foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: auto; padding-top: 14px; }
.price { font-size: 0.95rem; color: var(--muted); }
.price strong { font-size: 1.35rem; color: var(--text); }
.card.sold-out { opacity: 0.65; }
.card.sold-out .photo { filter: grayscale(0.7); }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 44px;
  background: var(--sea);
  color: var(--sand);
  text-decoration: none;
  padding: 0 20px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  border: 0;
  cursor: pointer;
}
.btn:hover { background: var(--sea-dark); color: #fff; }
.btn[aria-disabled="true"] { background: #9AA39F; pointer-events: none; }

.empty {
  grid-column: 1 / -1;
  text-align: center;
  padding: 56px 16px;
  color: var(--muted);
  background: var(--surface);
  border-radius: var(--radius);
}
.empty strong { color: var(--text); }

/* ---------- Venues page ---------- */
.venues { display: grid; gap: 20px; padding: 24px 0 56px; }
@media (min-width: 640px) { .venues { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 980px) { .venues { grid-template-columns: repeat(3, 1fr); } }
.finder-one + .count { margin-top: 20px; }
.county { background: var(--surface); border-radius: var(--radius); padding: 18px 20px; box-shadow: 0 2px 8px rgba(20, 40, 35, 0.06); }
.county h2 { margin: 0 0 6px; font-family: var(--serif); font-weight: 600; font-size: 1.25rem; }
.county ul { list-style: none; margin: 0; padding: 0; }
.county li { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; padding: 10px 0; border-top: 1px solid #EEE7DA; }
.county li:first-child { border-top: 0; }
.county li a { text-decoration: none; font-weight: 600; }
.county li a:hover { text-decoration: underline; }
.county .town { color: var(--muted); font-size: 0.9rem; }
.county .badge { margin-left: auto; }

/* ---------- Venue page ---------- */
.venue-head {
  margin-top: -40px;
  position: relative;
  z-index: 1;
  background: var(--surface);
  border-radius: var(--radius);
  padding: 24px;
  margin-bottom: 28px;
  box-shadow: 0 10px 30px rgba(20, 40, 35, 0.12);
}
.venue-head h2 { margin: 0 0 4px; font-family: var(--serif); font-weight: 600; font-size: 1.9rem; }
.venue-head p { margin: 6px 0; color: var(--muted); }
.back { display: inline-block; margin: 0 0 14px; text-decoration: none; font-weight: 600; }

/* ---------- Submit form ---------- */
.form {
  margin-top: -40px;
  position: relative;
  z-index: 1;
  background: var(--surface);
  border-radius: var(--radius);
  padding: 24px 20px;
  margin-bottom: 56px;
  display: grid;
  gap: 16px;
  box-shadow: 0 10px 30px rgba(20, 40, 35, 0.12);
}
.form label { display: flex; flex-direction: column; gap: 6px; font-size: 0.9rem; font-weight: 500; color: var(--text); }
.form input, .form select, .form textarea {
  font: inherit;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  color: var(--text);
  width: 100%;
}
.form input:focus, .form select:focus, .form textarea:focus { outline: 2px solid var(--sea); outline-offset: 1px; }
.form textarea { min-height: 100px; }
.form .row { display: grid; gap: 16px; }
.form button { justify-self: start; }
.form .fine { font-size: 0.85rem; color: var(--muted); margin: 0; }
@media (min-width: 640px) { .form { padding: 32px; } .form .row { grid-template-columns: 1fr 1fr; } }

main > .empty:first-child { margin-top: -40px; position: relative; z-index: 1; margin-bottom: 56px; }

.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; }

/* ---------- Text pages (privacy) ---------- */
.prose { margin-top: -40px; position: relative; z-index: 1; background: var(--surface); border-radius: var(--radius); padding: 28px 22px; margin-bottom: 56px; box-shadow: 0 10px 30px rgba(20, 40, 35, 0.12); max-width: 780px; }
.prose h2 { font-family: var(--serif); font-weight: 600; font-size: 1.35rem; margin: 28px 0 8px; }
.prose h2:first-child { margin-top: 0; }
.prose p, .prose li { color: var(--text); }
.prose ul { padding-left: 1.2em; }
@media (min-width: 640px) { .prose { padding: 40px 44px; } }

/* ---------- Footer ---------- */
footer.site { background: var(--sea-dark); color: #C9D6D1; font-size: 0.9rem; padding: 32px 0 40px; }
footer.site .wrap { display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; align-items: center; }
footer.site a { color: #fff; }
footer.site .brand { font-size: 1.15rem; }

/* Photo credit on cards */
.card .photo .credit { position: absolute; right: 8px; bottom: 6px; font-size: 0.68rem; color: #fff; background: rgba(0,0,0,0.38); padding: 2px 7px; border-radius: 999px; }

/* ---------- List / Calendar switch ---------- */
.list-tools { display: flex; align-items: center; gap: 14px; }
.seg { display: inline-flex; background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: 3px; }
.seg button { font: inherit; font-size: 0.9rem; border: 0; background: transparent; color: var(--text); padding: 7px 14px; min-height: 36px; border-radius: 999px; cursor: pointer; }
.seg button[aria-pressed="true"] { background: var(--sea); color: var(--sand); }
.seg button:focus-visible { outline: 2px solid var(--sea); outline-offset: 2px; }

/* ---------- Calendar ---------- */
.cal-nav { display: flex; align-items: center; justify-content: center; gap: 16px; margin: 0 0 14px; }
.cal-nav[hidden] { display: none; }
.cal-nav span { font-family: var(--serif); font-weight: 600; font-size: 1.35rem; min-width: 11ch; text-align: center; }
.cal-arrow { font: inherit; font-size: 1.6rem; line-height: 1; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line); background: var(--surface); color: var(--sea); cursor: pointer; }
.cal-arrow:disabled { opacity: 0.35; cursor: default; }
.cal { padding-bottom: 56px; }

.cal-grid { display: none; grid-template-columns: repeat(7, minmax(0, 1fr)); background: var(--surface); border-radius: var(--radius); overflow: hidden; box-shadow: 0 2px 8px rgba(20, 40, 35, 0.06); }
.cal-h { padding: 10px 8px; font-size: 0.75rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); border-bottom: 1px solid #EEE7DA; }
.cal-d { min-height: 112px; padding: 6px 0 8px; border-right: 1px solid #F1EBDF; border-bottom: 1px solid #F1EBDF; display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.cal-d:nth-child(7n) { border-right: 0; }
.cal-d.blank { background: #FBF8F2; }
.cal-d .num { font-size: 0.85rem; color: var(--muted); padding: 0 8px; }
.cal-d.today .num { color: var(--sand); background: var(--sea); border-radius: 999px; align-self: flex-start; margin-left: 4px; padding: 0 7px; }
.cal-d.past { background: #FCFAF6; }
.cal-d.past .num { opacity: 0.5; }
.pill { display: block; font-size: 0.75rem; font-weight: 500; line-height: 1.3; padding: 3px 7px; margin: 0 4px; border-radius: 6px; color: #fff; text-decoration: none; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pill.cont { margin-left: -1px; border-top-left-radius: 0; border-bottom-left-radius: 0; }
.pill:hover { filter: brightness(1.08); color: #fff; }
.pill.sold { opacity: 0.45; text-decoration: line-through; }
.more { font-size: 0.72rem; color: var(--muted); padding: 0 8px; }

/* Type colours (shared by pills, agenda and legend) */
.t-yoga { background: #1F4A40; }
.t-med { background: #4F5D8A; }
.t-breath { background: #2F7E8C; }
.t-well { background: #9A5B3A; }
.t-surf { background: #2C6A9A; }
.t-other { background: #6B6F66; }

.cal-legend { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 14px; font-size: 0.85rem; color: var(--muted); }
.cal-legend i { display: inline-block; width: 12px; height: 12px; border-radius: 3px; margin-right: 6px; vertical-align: -1px; }

/* Phone agenda */
.agenda { display: flex; flex-direction: column; gap: 10px; }
.ag-day { display: flex; gap: 12px; background: var(--surface); border-radius: var(--radius); padding: 12px; box-shadow: 0 2px 8px rgba(20, 40, 35, 0.06); }
.ag-date { flex: 0 0 44px; text-align: center; display: flex; flex-direction: column; color: var(--muted); font-size: 0.8rem; }
.ag-date strong { font-family: var(--serif); font-size: 1.5rem; color: var(--text); line-height: 1.1; }
.ag-items { flex: 1; display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.ag-item { display: flex; flex-direction: column; gap: 2px; text-decoration: none; padding: 8px 10px 8px 12px; border-radius: 10px; background: #F7F3EC !important; border-left: 4px solid; color: var(--text); }
.ag-item.t-yoga { border-color: #1F4A40; } .ag-item.t-med { border-color: #4F5D8A; } .ag-item.t-breath { border-color: #2F7E8C; }
.ag-item.t-well { border-color: #9A5B3A; } .ag-item.t-surf { border-color: #2C6A9A; } .ag-item.t-other { border-color: #6B6F66; }
.ag-item strong { font-size: 0.95rem; }
.ag-item span { font-size: 0.85rem; color: var(--muted); }
.ag-item.sold { opacity: 0.55; }

@media (min-width: 820px) {
  .cal-grid { display: grid; }
  .agenda { display: none; }
}
.pill-gap { display: block; height: 21px; }
.pill.sold.cont { text-decoration: none; }

/* ---------- Generated pages (venue / county) ---------- */
.section-title { font-family: var(--serif); font-weight: 600; font-size: 1.5rem; margin: 8px 0 16px; }
.spacer-top { height: 8px; }
main.wrap > .spacer-top:first-child + .section-title, main.wrap > .spacer-top:first-child + .empty { margin-top: 0; }
.county-wide { margin-bottom: 40px; }
.county-wide ul.two-col { display: grid; grid-template-columns: 1fr; column-gap: 32px; }
@media (min-width: 720px) { .county-wide ul.two-col { grid-template-columns: 1fr 1fr; } .county-wide ul.two-col li:nth-child(2) { border-top: 0; } }
.venue-head .lead { color: var(--text); font-size: 1.05rem; margin: 0 0 14px; }
.venue-links { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; margin: 0; }
.venue-links a:not(.btn) { font-weight: 600; text-decoration: none; }
.venue-links a:not(.btn):hover { text-decoration: underline; }
main.wrap > .empty:first-child, main.wrap > .spacer-top:first-child + .empty { margin-top: -40px; position: relative; z-index: 1; margin-bottom: 32px; }
main.wrap > .spacer-top:first-child { display: none; }
.county-links { padding: 8px 0 48px; }
.county-links p { line-height: 2; color: var(--muted); }
.county-links a { font-weight: 600; text-decoration: none; }
.county-links a:hover { text-decoration: underline; }
.county h2 a { color: inherit; text-decoration: none; }
.county h2 a:hover { text-decoration: underline; }
main.wrap > .back:first-child { margin-top: 18px; }
