/* FamilyResortMatch — warm family-travel directory */
:root {
  --ink: #162a38;
  --muted: #5a6d7c;
  --bg: #f6f3ee;
  --card: #ffffff;
  --accent: #0b6b6b;
  --accent-deep: #085555;
  --accent-soft: #e6f3f3;
  --coral: #c24e1f;
  --coral-deep: #a33f16;
  --border: #e0dbd2;
  --featured: #faf3ea;
  --featured-border: #e6c9a4;
  --radius: 14px;
  --shadow: 0 2px 10px rgba(22,42,56,.06);
  --shadow-hover: 0 8px 24px rgba(22,42,56,.10);
  --font: "DM Sans", system-ui, -apple-system, sans-serif;
  --display: "Fraunces", Georgia, "Times New Roman", serif;
  --header-h: 3.4rem;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
img { max-width: 100%; }
h1, h2, h3, .logo {
  font-family: var(--display);
  font-weight: 600;
  letter-spacing: -.02em;
  line-height: 1.2;
}

.site-header {
  background: var(--ink);
  color: #fff;
  padding: .75rem 1.25rem;
  position: sticky; top: 0; z-index: 50;
  box-shadow: 0 1px 0 rgba(0,0,0,.2);
}
.site-header .inner {
  max-width: 1100px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
}
.logo {
  font-weight: 700; font-size: 1.2rem; color: #fff;
  text-decoration: none; white-space: nowrap;
}
.logo span { color: #7ec8c8; font-weight: 600; }
.nav-toggle {
  display: none;
  background: transparent; border: 1px solid rgba(255,255,255,.35);
  color: #fff; border-radius: 8px; padding: .4rem .7rem;
  font: inherit; font-size: .85rem; cursor: pointer;
}
.nav { display: flex; gap: 1.1rem; flex-wrap: wrap; font-size: .92rem; align-items: center; }
.nav a { color: #d7e2ec; text-decoration: none; font-weight: 500; }
.nav a:hover { color: #fff; text-decoration: none; }
.nav a.nav-cta {
  background: var(--coral); color: #fff; padding: .4rem .75rem;
  border-radius: 8px; font-weight: 600;
}
.nav a.nav-cta:hover { background: var(--coral-deep); color: #fff; }

@media (max-width: 720px) {
  .nav-toggle { display: inline-block; }
  .nav {
    display: none; width: 100%; flex-direction: column; align-items: stretch;
    gap: .35rem; padding-top: .5rem;
  }
  .nav.open { display: flex; }
  .nav a { padding: .5rem .25rem; }
  .nav a.nav-cta { text-align: center; }
  .site-header .inner { flex-wrap: wrap; }
}

.hero {
  position: relative;
  background:
    linear-gradient(120deg, rgba(8,40,48,.82) 0%, rgba(11,107,107,.72) 55%, rgba(8,60,70,.68) 100%),
    url("images/hero-caribbean-beach.jpg") center / cover no-repeat;
  color: #fff;
  padding: 3.25rem 1.25rem 2.75rem;
  isolation: isolate;
}
.hero .inner { max-width: 1100px; margin: 0 auto; position: relative; z-index: 1; }
.hero-credit {
  margin: 1.1rem 0 0;
  font-size: .72rem;
  opacity: .78;
  font-weight: 400;
  letter-spacing: .01em;
}
.hero h1 {
  margin: 0 0 .75rem;
  font-size: clamp(1.7rem, 4.2vw, 2.55rem);
  font-weight: 700; max-width: 18ch;
}
.hero .lede {
  margin: 0; max-width: 38rem; opacity: .94;
  font-size: 1.08rem; font-weight: 400; line-height: 1.55;
}
.hero-actions {
  margin-top: 1.35rem; display: flex; flex-wrap: wrap; gap: .65rem;
}
.hero .btn-primary { background: #fff; color: var(--accent-deep); }
.hero .btn-primary:hover { background: #f0f7f7; filter: none; }
.hero .btn-ghost {
  background: transparent; color: #fff;
  border: 1px solid rgba(255,255,255,.45);
}
.hero .btn-ghost:hover { background: rgba(255,255,255,.1); text-decoration: none; }
.badge-row { margin-top: 1.25rem; display: flex; flex-wrap: wrap; gap: .5rem; }
.badge {
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.22);
  padding: .28rem .7rem; border-radius: 999px; font-size: .78rem; font-weight: 500;
}

.wrap { max-width: 1100px; margin: 0 auto; padding: 1.5rem 1.25rem 3rem; }

.filters {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem 1.1rem;
  box-shadow: var(--shadow);
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: .75rem 1rem;
  margin-bottom: 1.25rem;
  align-items: end;
}
.filters-checks {
  grid-column: 1 / -1;
  display: flex; flex-wrap: wrap; gap: .75rem 1.5rem;
  padding-top: .15rem; border-top: 1px solid var(--border); margin-top: .15rem;
}
@media (min-width: 900px) {
  .filters.sticky-filters {
    position: sticky;
    top: var(--header-h);
    z-index: 40;
  }
}
@media (max-width: 900px) {
  .filters { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 520px) {
  .filters { grid-template-columns: 1fr; }
}
.filters label {
  display: flex; flex-direction: column; gap: .3rem;
  font-size: .78rem; color: var(--muted); font-weight: 600; letter-spacing: .01em;
}
.filters input, .filters select {
  font: inherit; padding: .55rem .65rem; border: 1px solid var(--border);
  border-radius: 9px; color: var(--ink); background: #fff;
  transition: border-color .15s, box-shadow .15s;
}
.filters input:focus, .filters select:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(11,107,107,.15);
  outline: none;
}
.filters .check {
  flex-direction: row; align-items: center; gap: .5rem;
  font-weight: 500; color: var(--ink); font-size: .88rem; cursor: pointer;
}
.filters .check input { width: 1.05rem; height: 1.05rem; accent-color: var(--accent); }
.results-meta { color: var(--muted); font-size: .9rem; margin: 0 0 1rem; }

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
  gap: 1.1rem;
}
.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.15rem;
  box-shadow: var(--shadow);
  display: flex; flex-direction: column; gap: .55rem;
  transition: border-color .15s, box-shadow .15s, transform .15s;
  position: relative;
  overflow: hidden;
}
.card:hover {
  border-color: #b5d4d4;
  box-shadow: var(--shadow-hover);
  transform: translateY(-2px);
}
.card.featured {
  background: var(--featured);
  border-color: var(--featured-border);
}
.card-top {
  display: flex; flex-wrap: wrap; align-items: center; gap: .4rem;
  min-height: 1.4rem;
}
.ribbon {
  display: inline-block; font-size: .68rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .05em;
  background: var(--coral); color: #fff;
  padding: .2rem .5rem; border-radius: 5px;
}
.card h2 { margin: 0; font-size: 1.08rem; line-height: 1.3; font-family: var(--display); }
.card h2 a { color: var(--ink); text-decoration: none; }
.card h2 a:hover { color: var(--accent); text-decoration: none; }
.meta { font-size: .85rem; color: var(--muted); }
.pill {
  display: inline-block; font-size: .7rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .04em;
  background: var(--accent); color: #fff;
  padding: .18rem .48rem; border-radius: 5px;
}
.pill.soft { background: var(--accent-soft); color: var(--accent-deep); }
.rating-chip {
  display: inline-flex; align-items: center; gap: .35rem;
  background: #fff; border: 1px solid var(--border);
  border-radius: 999px; padding: .2rem .55rem .2rem .35rem;
  font-size: .82rem; width: fit-content;
}
.card.featured .rating-chip { background: #fff; }
.rating-chip .score {
  background: var(--coral); color: #fff; font-weight: 700;
  font-size: .78rem; border-radius: 999px; min-width: 2rem;
  text-align: center; padding: .12rem .35rem; line-height: 1.2;
}
.rating-chip .reviews { color: var(--muted); font-size: .78rem; }
.rating { font-weight: 700; color: var(--coral); }
.price { font-size: .95rem; }
.price strong { font-size: 1.05rem; }
.price small { display: block; color: var(--muted); font-size: .74rem; font-weight: 400; margin-top: .15rem; }
.amenity-chips { display: flex; flex-wrap: wrap; gap: .35rem; }
.chip {
  font-size: .72rem; background: #eef2f5; color: #3a4a5a;
  padding: .18rem .45rem; border-radius: 5px;
}
.card-actions { margin-top: auto; display: flex; flex-wrap: wrap; gap: .5rem; padding-top: .4rem; }
.btn {
  display: inline-block; padding: .55rem .95rem; border-radius: 9px;
  font-size: .88rem; font-weight: 600; border: none; cursor: pointer;
  text-decoration: none !important; font-family: var(--font);
  transition: filter .15s, background .15s, border-color .15s;
}
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-deep); filter: none; }
.btn-secondary { background: #fff; color: var(--ink); border: 1px solid var(--border); }
.btn-secondary:hover { border-color: #b5c4c4; background: #fafafa; }
.btn-cta { background: var(--coral); color: #fff; }
.btn-cta:hover { background: var(--coral-deep); filter: none; }
.btn-ghost { background: transparent; color: inherit; border: 1px solid currentColor; }

.prose { max-width: 680px; }
.prose h1 { margin-top: 0; font-size: clamp(1.6rem, 3vw, 2.1rem); }
.prose h2 { margin-top: 1.75rem; font-size: 1.25rem; }
.prose p { color: var(--ink); }
.prose .lede { font-size: 1.1rem; color: var(--muted); }
.page-intro { margin-bottom: 1.5rem; max-width: 40rem; }
.page-intro h1 { margin: 0 0 .5rem; font-size: clamp(1.6rem, 3vw, 2.1rem); }
.page-intro p { margin: 0; color: var(--muted); font-size: 1.02rem; }

.hubs { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 1rem; }
.hub {
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 0; box-shadow: var(--shadow); color: inherit; text-decoration: none;
  display: flex; flex-direction: column; overflow: hidden;
  transition: border-color .15s, box-shadow .15s, transform .15s;
}
.hub:hover {
  border-color: #b5d4d4; text-decoration: none;
  box-shadow: var(--shadow-hover); transform: translateY(-2px);
}
.hub-media {
  aspect-ratio: 16 / 10;
  width: 100%;
  overflow: hidden;
  background: #d7e4e4;
}
.hub-media img {
  width: 100%; height: 100%;
  object-fit: cover; display: block;
  transition: transform .35s ease;
}
.hub:hover .hub-media img { transform: scale(1.04); }
.hub-body { padding: .9rem 1rem 1.05rem; }
.hub h3 { margin: 0 0 .3rem; font-size: 1.02rem; color: var(--ink); font-family: var(--display); }
.hub p { margin: 0; font-size: .84rem; color: var(--muted); }
@media (max-width: 520px) {
  .hubs { grid-template-columns: 1fr 1fr; gap: .75rem; }
  .hub-body { padding: .7rem .75rem .85rem; }
  .hub h3 { font-size: .92rem; }
  .hub p { font-size: .75rem; }
}

.detail-header {
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 1.6rem; box-shadow: var(--shadow); margin-bottom: 1rem;
}
.detail-header h1 { margin: .5rem 0 .4rem; font-size: clamp(1.45rem, 3vw, 2rem); }
.detail-header .rating-chip { margin: .5rem 0; }
.dl {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: .75rem; margin: 1rem 0;
}
.dl div { background: #fff; border: 1px solid var(--border); border-radius: 10px; padding: .8rem; }
.dl dt { font-size: .72rem; color: var(--muted); font-weight: 700; text-transform: uppercase; letter-spacing: .03em; }
.dl dd { margin: .25rem 0 0; font-weight: 600; }
.note {
  background: #fff8e8; border: 1px solid #f0d9a0; border-radius: 10px;
  padding: .85rem 1.05rem; font-size: .88rem; color: #5a4a20; margin: 1rem 0;
}
.site-footer {
  border-top: 1px solid var(--border);
  background: #ebe6df;
  padding: 1.6rem 1.25rem 2rem;
  font-size: .84rem; color: var(--muted);
}
.site-footer .inner { max-width: 1100px; margin: 0 auto; }
.site-footer p { margin: 0 0 .5rem; }
.site-footer a { color: var(--ink); }
.site-footer .legal {
  margin-top: .75rem; padding-top: .75rem;
  border-top: 1px solid #d8d2c8; font-size: .78rem; line-height: 1.45;
}
#contact {
  scroll-margin-top: 5rem;
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 1.5rem 1.4rem; margin-top: 2.25rem; box-shadow: var(--shadow);
}
#contact h2 { margin-top: 0; font-size: 1.3rem; }
#contact .split {
  display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; margin: 1rem 0 1.25rem;
}
@media (max-width: 640px) {
  #contact .split { grid-template-columns: 1fr; }
}
#contact .split h3 {
  margin: 0 0 .4rem; font-size: .95rem; font-family: var(--font);
  text-transform: uppercase; letter-spacing: .04em; color: var(--muted); font-weight: 700;
}
#contact .split p { margin: 0; font-size: .92rem; }
.empty {
  text-align: center; padding: 2.5rem 1.5rem; color: var(--muted);
  background: var(--card); border: 1px dashed var(--border); border-radius: var(--radius);
}
.empty strong { display: block; color: var(--ink); font-size: 1.05rem; margin-bottom: .35rem; font-family: var(--display); }
