:root {
  --navy: #0e2a47;
  --teal: #12909c;
  --teal-deep: #0b6f7a;
  --gold: #f2a91e;
  --sand: #fbf1dc;
  --line: #ead9b8;
  --ink: #1d2b3a;
}

* { box-sizing: border-box; }

html { font-size: 112.5%; }

body {
  margin: 0;
  background: #fff;
  color: var(--ink);
  font-family: Nunito, "Segoe UI", system-ui, sans-serif;
  font-weight: 500;
  line-height: 1.5;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--teal-deep); }

main { max-width: 1240px; margin: 0 auto; padding: 0 20px 56px; }

/* ===== HOME ===== */
.hero { text-align: center; padding: 28px 0 20px; }
.hero-logo { width: min(340px, 72vw); margin: 0 auto; }
.hero h1 {
  margin: 4px auto 0;
  max-width: 22em;
  color: var(--navy);
  font-size: 1.3rem;
  font-weight: 800;
  line-height: 1.3;
}

.grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 6px;
  max-width: 420px;
  margin: 12px auto 0;
}
.tile { display: block; border-radius: 999px; transition: transform 0.15s ease; }
.tile:hover, .tile:focus-visible { transform: translateY(-3px); }
.tile:focus-visible { outline: 3px solid var(--teal); outline-offset: 2px; }

@media (min-width: 720px) {
  .grid { grid-template-columns: repeat(2, 1fr); max-width: 820px; gap: 8px 14px; }
}
@media (min-width: 1040px) {
  .grid { grid-template-columns: repeat(3, 1fr); max-width: none; }
  .hero h1 { font-size: 1.5rem; max-width: none; }
}
@media (min-width: 1400px) {
  main { max-width: 1560px; }
  .grid { grid-template-columns: repeat(4, 1fr); }
}

/* ===== TOP BAR ===== */
.top {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 20px;
  background: #fff;
  border-bottom: 1px solid var(--line);
  box-shadow: 0 2px 10px rgba(14, 42, 71, 0.08);
}
.top-home { display: flex; align-items: center; gap: 10px; color: var(--navy); font-weight: 800; line-height: 1.2; text-decoration: none; }
.top img { width: 48px; height: 48px; }
.top-menu summary {
  list-style: none;
  cursor: pointer;
  padding: 10px 20px;
  border-radius: 999px;
  background: var(--navy);
  color: #fff;
  font-weight: 800;
  white-space: nowrap;
}
.top-menu summary::-webkit-details-marker { display: none; }
.top-menu[open] summary { background: var(--teal-deep); }
.top-menu nav {
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  max-height: calc(100vh - 90px);
  overflow-y: auto;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  gap: 2px 16px;
  padding: 14px 20px 22px;
  background: #fff;
  border-bottom: 3px solid var(--teal);
  box-shadow: 0 16px 26px rgba(14, 42, 71, 0.2);
}
.top-menu nav a { padding: 10px 8px; border-radius: 10px; color: var(--navy); font-weight: 700; text-decoration: none; }
.top-menu nav a:hover, .top-menu nav a:focus-visible { background: var(--sand); }
@media (max-width: 560px) {
  .top { padding: 8px 14px; }
  .top-home span { max-width: 9em; font-size: 0.85rem; }
  .top-menu nav { grid-template-columns: 1fr 1fr; padding: 10px 12px 18px; }
}

/* ===== CATEGORY ===== */
.cat, .page { max-width: 980px; padding-top: 18px; text-align: center; }
.counties, .related nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.counties { margin: 0 0 26px; }
.counties a, .related a {
  padding: 9px 18px;
  border: 2px solid var(--navy);
  border-radius: 999px;
  background: #fff;
  color: var(--navy);
  font-weight: 800;
  text-decoration: none;
}
.counties a[aria-current] { background: var(--navy); color: #fff; }
.counties a:hover, .related a:hover, .counties a:focus-visible, .related a:focus-visible { background: var(--sand); color: var(--navy); }
.related { margin-top: 40px; }
.related h2 { margin: 0 0 14px; color: var(--navy); font-size: 1.25rem; font-weight: 800; }
.related a { border-color: var(--teal-deep); }
@media (max-width: 480px) {
  .counties, .related nav { flex-direction: column; }
}
.cat h1, .page h1 {
  margin: 10px 0 0;
  color: var(--navy);
  font-size: 2rem;
  font-weight: 900;
  line-height: 1.15;
}
.kind { margin: 6px 0 0; color: var(--navy); font-weight: 800; font-size: 1.1rem; }
.area { margin: 6px 0 26px; color: var(--teal-deep); font-weight: 700; }

.card {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: var(--sand);
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 22px 20px;
  box-shadow: 0 2px 0 #fff inset, 0 6px 14px rgba(14, 42, 71, 0.08);
}
.card h2 { margin: 0; color: var(--navy); font-size: 1.3rem; font-weight: 800; line-height: 1.25; }
.town { margin: 4px 0 0; font-weight: 700; color: #48586a; }
.stars { margin: 4px 0 0; font-weight: 800; color: var(--navy); }
.stars span[aria-hidden] { color: var(--gold); }
.count { font-weight: 500; color: #48586a; }

.blurb {
  margin: 10px 0 0;
  max-width: 34em;
  font-size: 0.92rem;
  line-height: 1.45;
  color: var(--ink);
}
@media (min-width: 760px) {
  .blurb { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 5; line-clamp: 5; overflow: hidden; min-height: 7.25em; }
}
.tags { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin: 10px 0 0; }
.tags span {
  padding: 2px 12px;
  border: 1px solid var(--teal);
  border-radius: 999px;
  background: #fff;
  color: var(--teal-deep);
  font-size: 0.78rem;
  font-weight: 800;
  white-space: nowrap;
}

.actions {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 1fr;
  gap: 10px;
  width: 100%;
  max-width: 460px;
  margin-top: auto;
  padding-top: 16px;
}
.btn {
  display: block;
  padding: 12px 14px;
  border-radius: 999px;
  font-weight: 800;
  text-align: center;
  text-decoration: none;
  white-space: nowrap;
}
.btn-call { background: var(--navy); color: #fff; }
.btn-site { background: #fff; color: var(--navy); border: 2px solid var(--navy); padding: 10px 14px; }
.btn-gold { background: var(--gold); color: var(--navy); }
.btn:hover, .btn:focus-visible { filter: brightness(1.08); }

.feat { margin-bottom: 20px; }
.featured { border: 2px solid var(--teal); background: #fff; padding: 26px 20px; }
.featured h2 { font-size: 1.6rem; }
.open { border: 2px dashed var(--teal); background: #fff; }
.spot-body { display: flex; flex-direction: column; align-items: center; width: 100%; }
.feat-link { margin: 10px 0 0; font-weight: 700; }
.tag {
  margin: 0 0 8px;
  padding: 3px 14px;
  border-radius: 999px;
  background: var(--teal);
  color: #fff;
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.list { display: grid; grid-template-columns: 1fr; gap: 16px; }
@media (min-width: 760px) { .list { grid-template-columns: 1fr 1fr; gap: 20px; } }
@media (max-width: 480px) {
  .actions { grid-auto-flow: row; }
}

.back { margin: 30px auto 0; max-width: 300px; }

/* ===== SIMPLE PAGES ===== */
.page { max-width: 720px; }
.page p { margin: 18px 0 0; }
.page h1 { margin-bottom: 8px; }
.page .back { margin: 30px auto 0; }

/* ===== FOOTER ===== */
.foot { background: var(--navy); color: #fff; text-align: center; padding: 28px 20px; }
.foot-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 28px; }
.foot a { color: #fff; font-weight: 700; text-decoration: none; }
.foot a:hover, .foot a:focus-visible { text-decoration: underline; }
.foot p { margin: 14px 0 0; font-size: 0.85rem; color: #c8d5e2; }

/* ===== FORM ===== */
.form { margin: 26px auto 0; text-align: left; display: grid; gap: 18px; }
.form label { display: block; color: var(--navy); font-weight: 700; font-size: 1rem; }
.form input[type="text"], .form input[type="email"], .form input[type="tel"], .form input[type="number"], .form select, .form textarea {
  display: block; width: 100%; margin-top: 6px; padding: 12px 14px;
  border: 2px solid var(--line); border-radius: 12px; background: #fff;
  color: var(--ink); font: inherit; font-weight: 500;
}
.form input:focus, .form select:focus, .form textarea:focus { outline: none; border-color: var(--teal); }
.form textarea { resize: vertical; }
.form fieldset { margin: 0; padding: 0; border: 0; }
.form legend { padding: 0; margin-bottom: 6px; color: var(--navy); font-weight: 700; }
.form .pick { display: inline-flex; align-items: center; gap: 8px; margin-right: 22px; font-weight: 600; min-height: 44px; }
.form .pick input { width: 22px; height: 22px; accent-color: var(--teal-deep); }
.form .row2 { display: grid; gap: 18px; }
.form .btn { width: 100%; border: 0; cursor: pointer; font: inherit; font-weight: 800; }
.form .btn[disabled] { opacity: 0.6; cursor: default; }
.form [hidden] { display: none; }
.form .hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-error { margin: 0; color: #a3261c; font-weight: 700; }
.modal { position: fixed; inset: 0; z-index: 50; display: flex; align-items: center; justify-content: center; padding: 20px; background: rgba(14, 42, 71, 0.6); }
.modal[hidden] { display: none; }
.modal-box { max-width: 460px; padding: 30px 26px; border-radius: 18px; background: #fff; text-align: center; box-shadow: 0 18px 50px rgba(0, 0, 0, 0.3); }
.modal-box p { margin: 0; color: var(--navy); font-size: 1.15rem; font-weight: 700; }
@media (min-width: 640px) { .form .row2 { grid-template-columns: 1fr 1fr; } }
