:root {
  --blue: #416bb4;
  --blue-dark: #12386f;
  --navy: #0f274d;
  --aqua: #0e9aae;
  --aqua-soft: #dff7fb;
  --green: #247a52;
  --gold: #b8872e;
  --ink: #102033;
  --muted: #61738c;
  --line: #d9e5f2;
  --soft: #f3f8fd;
  --surface: #fbfdff;
  --white: #ffffff;
  --danger: #b42318;
  --shadow: 0 16px 42px rgba(16, 32, 51, .09);
  --shadow-strong: 0 24px 70px rgba(16, 32, 51, .14);
}

* {
  box-sizing: border-box;
}

main,
.site-header,
.main-nav,
.mobile-menu,
.hero,
.page-hero,
.section,
.pool-detail {
  min-width: 0;
  max-width: 100%;
}

html {
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  line-height: 1.5;
  background: var(--surface);
}

body {
  margin: 0;
  overflow-x: hidden;
  background:
    linear-gradient(180deg, #ffffff 0, #f6fbff 420px, #ffffff 900px);
}

a {
  color: var(--blue-dark);
  text-decoration: none;
  text-underline-offset: 3px;
}

a:hover {
  text-decoration: underline;
}

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

.ui-icon {
  flex: 0 0 auto;
  width: 1.05em;
  height: 1.05em;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  fill: none;
}

.info-inline {
  display: inline-flex;
  align-items: flex-start;
  gap: 7px;
  min-width: 0;
  max-width: 100%;
}

.info-inline .ui-icon-info {
  margin-top: .18em;
  color: var(--aqua);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 12px clamp(16px, 4vw, 42px);
  border-bottom: 1px solid rgba(255, 255, 255, .18);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .08) 0, rgba(255, 255, 255, 0) 100%),
    var(--blue);
  backdrop-filter: blur(14px);
  box-shadow: 0 12px 34px rgba(18, 56, 111, .22);
}

.brand {
  display: inline-flex;
  align-items: center;
  width: 178px;
  min-width: 150px;
}

.brand img {
  filter: drop-shadow(0 8px 18px rgba(15, 39, 77, .18));
}

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

.main-nav,
.site-footer nav,
.admin-nav {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.main-nav a,
.site-footer a,
.admin-nav a {
  font-weight: 700;
  font-size: .94rem;
}

.main-nav a {
  color: #ffffff;
}

.admin-nav a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 7px 10px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #ffffff;
}

.admin-nav a:hover {
  border-color: rgba(65, 107, 180, .36);
  background: #f4f9ff;
  text-decoration: none;
}

.main-nav a[aria-current="page"] {
  border-color: rgba(255, 255, 255, .86);
  background: #ffffff;
  color: var(--blue-dark);
  box-shadow: 0 8px 22px rgba(15, 39, 77, .18);
}

.admin-nav a[aria-current="page"] {
  border-color: rgba(65, 107, 180, .42);
  background: #eaf4ff;
  color: var(--blue-dark);
  box-shadow: inset 0 -2px 0 var(--aqua);
}

.portal-nav {
  position: fixed;
  z-index: 12;
  top: 112px;
  bottom: 20px;
  left: 16px;
  width: 224px;
  overflow: auto;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: var(--shadow);
}

body:has(.portal-nav) main,
body:has(.portal-nav) .site-footer {
  padding-left: 248px;
}

.portal-nav-home {
  display: grid;
  gap: 2px;
  margin-bottom: 14px;
  padding: 4px 6px 12px;
  border-bottom: 1px solid var(--line);
}

.portal-nav-home span,
.portal-nav summary {
  color: var(--muted);
  font-size: .78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.portal-nav-menu > .portal-nav-section {
  display: block;
}

.portal-nav-toggle {
  display: none;
}

.portal-nav-section + .portal-nav-section {
  margin-top: 12px;
}

.portal-nav summary {
  padding: 4px 6px;
  cursor: pointer;
}

.portal-nav nav {
  display: grid;
  gap: 4px;
  margin-top: 4px;
}

.portal-nav nav a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-height: 38px;
  padding: 7px 9px;
  border-radius: 6px;
  font-size: .9rem;
  font-weight: 750;
}

.portal-nav nav a:hover,
.portal-nav nav a[aria-current="page"] {
  background: #eaf4ff;
  text-decoration: none;
}

.portal-nav nav a[aria-current="page"] {
  box-shadow: inset 3px 0 0 var(--aqua);
}

.portal-nav nav b {
  display: inline-grid;
  place-items: center;
  min-width: 24px;
  height: 24px;
  padding: 0 6px;
  border-radius: 12px;
  background: var(--blue-dark);
  color: #ffffff;
  font-size: .75rem;
}

.portal-nav-client nav {
  gap: 6px;
}

.client-pool-item {
  display: grid;
  align-content: start;
  gap: 10px;
}

.change-summary {
  display: grid;
  grid-template-columns: minmax(110px, 160px) minmax(0, 1fr);
  gap: 8px 16px;
}

.change-summary dt {
  color: var(--muted);
  font-weight: 800;
}

.change-summary dd {
  margin: 0;
  overflow-wrap: anywhere;
}

.inline-filter {
  display: flex;
  align-items: end;
  gap: 10px;
}

.inline-filter label {
  flex: 1;
}

.page-actions {
  display: flex;
  gap: 10px;
  margin-top: 18px;
}

.admin-filter-bar {
  display: grid;
  grid-template-columns: minmax(220px, 1.6fr) minmax(150px, .7fr) minmax(190px, .8fr) auto;
  align-items: end;
  gap: 12px;
  margin-top: 16px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fbff;
}

.admin-filter-bar label {
  min-width: 0;
}

.admin-filter-actions {
  display: flex;
  gap: 8px;
}

.admin-result-count {
  margin: 8px 2px 0;
  color: var(--muted);
  font-size: .88rem;
  font-weight: 700;
}

.form-split {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.structured-admin-list {
  display: grid;
  gap: 8px;
  margin-bottom: 22px;
}

.article-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  margin-bottom: 24px;
  padding: 12px 0 16px;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: .9rem;
  font-weight: 700;
}

.article-trust span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.article-map {
  margin-top: 34px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

.article-map iframe {
  display: block;
  width: 100%;
  max-width: 100%;
  aspect-ratio: 16 / 9;
  height: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #edf4fb;
}

.authority-page {
  max-width: 900px;
}

.search-results-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.search-result-group {
  min-width: 0;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
}

.search-result-group h2 {
  margin-top: 0;
}

.search-result-group a {
  display: grid;
  gap: 3px;
  padding: 10px 0;
  border-top: 1px solid var(--line);
}

.search-result-group a span {
  color: var(--muted);
  font-size: .88rem;
}

.pool-map-layout {
  display: grid;
  grid-template-columns: minmax(280px, 380px) minmax(0, 1fr);
  align-items: start;
  gap: 22px;
}

.pool-map-list {
  display: grid;
  gap: 10px;
  max-height: 680px;
  overflow: auto;
  padding-right: 5px;
}

.pool-map-option {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 6px 10px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
}

.pool-map-option.is-active {
  border-color: var(--blue);
  box-shadow: inset 3px 0 0 var(--aqua);
}

.pool-map-option button {
  display: grid;
  gap: 3px;
  min-width: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--ink);
  text-align: left;
  cursor: pointer;
}

.pool-map-option button span,
.pool-map-option button small {
  color: var(--muted);
}

.pool-map-option > a {
  align-self: center;
  font-size: .86rem;
  font-weight: 800;
}

.pool-map-canvas {
  position: sticky;
  top: 124px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #edf4fb;
  box-shadow: var(--shadow);
}

.pool-map-head {
  display: grid;
  gap: 2px;
  padding: 14px 16px;
  background: #ffffff;
}

.pool-map-head span {
  color: var(--muted);
  font-size: .8rem;
  font-weight: 800;
  text-transform: uppercase;
}

.pool-map-canvas iframe {
  display: block;
  width: 100%;
  height: min(620px, 68vh);
  border: 0;
}

.pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-top: 18px;
  color: var(--muted);
  font-size: .9rem;
  font-weight: 700;
}

.pagination div {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.pagination a {
  display: inline-grid;
  place-items: center;
  min-width: 36px;
  height: 36px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #ffffff;
}

.pagination a:hover,
.pagination a.is-current {
  border-color: var(--blue);
  background: var(--blue);
  color: #ffffff;
  text-decoration: none;
}

.main-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 6px 9px;
  border: 1px solid transparent;
  border-radius: 7px;
}

.main-nav a:hover {
  background: rgba(255, 255, 255, .16);
  color: #ffffff;
  text-decoration: none;
}

.main-nav a[aria-current="page"]:hover {
  background: #ffffff;
  color: var(--blue-dark);
}

.mobile-menu {
  display: none;
  position: relative;
  justify-self: end;
}

.mobile-menu summary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(255, 255, 255, .72);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 8px 20px rgba(15, 39, 77, .18);
  cursor: pointer;
  list-style: none;
}

.mobile-menu summary::-webkit-details-marker {
  display: none;
}

.menu-icon {
  display: grid;
  gap: 5px;
  width: 20px;
}

.menu-icon span {
  display: block;
  height: 2px;
  border-radius: 999px;
  background: var(--blue-dark);
}

.mobile-menu[open] summary {
  border-color: rgba(255, 255, 255, .92);
  background: var(--aqua-soft);
}

.mobile-menu-panel {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  z-index: 30;
  display: grid;
  gap: 8px;
  width: min(82vw, 320px);
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, .98);
  box-shadow: var(--shadow-strong);
}

.mobile-menu-panel a {
  display: flex;
  align-items: center;
  min-height: 42px;
  padding: 9px 11px;
  border: 1px solid transparent;
  border-radius: 7px;
  color: var(--blue-dark);
  font-weight: 800;
}

.mobile-menu-panel a[aria-current="page"] {
  border-color: rgba(65, 107, 180, .42);
  background: #eaf4ff;
  box-shadow: inset 3px 0 0 var(--aqua);
}

.mobile-menu-panel a:hover {
  background: #edf5ff;
  text-decoration: none;
}

.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 440px);
  gap: clamp(20px, 5vw, 64px);
  align-items: center;
  min-height: clamp(520px, 72vh, 720px);
  padding: clamp(42px, 7vw, 86px) clamp(16px, 4vw, 42px) 34px;
  border-bottom: 1px solid var(--line);
  background:
    linear-gradient(90deg, rgba(15, 39, 77, .95) 0, rgba(18, 56, 111, .88) 43%, rgba(15, 39, 77, .64) 72%, rgba(15, 39, 77, .52) 100%),
    url("/assets/uploads/ramada-bazin-inot.jpg");
  background-position: center;
  background-size: cover;
}

.hero::before {
  position: absolute;
  inset: auto -10% -58px -10%;
  z-index: -1;
  height: 130px;
  content: "";
  background:
    repeating-linear-gradient(135deg, rgba(65, 107, 180, .10) 0 1px, transparent 1px 18px);
  opacity: .65;
}

.hero-copy {
  min-width: 0;
  max-width: 760px;
}

.hero h1 {
  color: #ffffff;
  text-shadow: 0 3px 24px rgba(0, 0, 0, .24);
}

.hero .eyebrow {
  color: #9ee7f2;
}

.hero-copy > p:not(.eyebrow) {
  max-width: 64ch;
  color: rgba(255, 255, 255, .9);
}

.page-hero {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 390px);
  gap: clamp(22px, 4vw, 48px);
  align-items: center;
  padding: 44px clamp(16px, 4vw, 42px);
  border-bottom: 1px solid var(--line);
  background:
    linear-gradient(135deg, rgba(65, 107, 180, .11) 0, rgba(14, 154, 174, .08) 44%, rgba(255, 255, 255, .96) 74%),
    #f6fbff;
}

.page-hero-copy {
  min-width: 0;
  max-width: 760px;
}

.page-hero h1 {
  margin-bottom: 14px;
  max-width: 18ch;
  font-size: 3rem;
  line-height: 1.06;
}

.page-hero p {
  max-width: 66ch;
  color: var(--muted);
  font-size: 1.08rem;
}

.page-hero-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 20px;
}

.page-hero-highlights {
  margin-top: 18px;
}

.page-hero-media {
  position: relative;
  margin: 0;
  overflow: hidden;
  border: 1px solid rgba(65, 107, 180, .18);
  border-radius: 8px;
  background: #eef7ff;
  box-shadow: var(--shadow-strong);
}

.page-hero-media img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--aqua);
  font-weight: 800;
  text-transform: uppercase;
  font-size: .78rem;
  letter-spacing: 0;
}

h1,
h2,
h3,
p {
  margin-top: 0;
  overflow-wrap: break-word;
}

h1 {
  margin-bottom: 18px;
  font-size: 4.05rem;
  line-height: 1.02;
  letter-spacing: 0;
  color: var(--navy);
}

h2 {
  font-size: 1.55rem;
  line-height: 1.2;
}

h3 {
  font-size: 1.14rem;
  line-height: 1.25;
}

.hero p,
.page-hero p,
.intro-section p {
  color: var(--muted);
  font-size: 1.08rem;
}

.hero-highlights {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 26px;
}

.hero-highlights span {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 7px 11px;
  border: 1px solid rgba(65, 107, 180, .18);
  border-radius: 7px;
  background: rgba(255, 255, 255, .74);
  color: var(--blue-dark);
  font-weight: 800;
  box-shadow: 0 10px 28px rgba(16, 32, 51, .06);
}

.hero .hero-highlights span {
  border-color: rgba(255, 255, 255, .26);
  background: rgba(255, 255, 255, .14);
  color: #ffffff;
  box-shadow: 0 10px 28px rgba(0, 0, 0, .14);
  backdrop-filter: blur(8px);
}

.search-panel,
.form-card,
.detail-panel,
.pool-card,
.article-card,
.moderation-card {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: var(--shadow);
}

.pool-card a,
.article-card a,
.prose a,
td,
dd {
  overflow-wrap: anywhere;
}

.search-panel {
  display: grid;
  gap: 12px;
  padding: 18px;
  border-color: rgba(65, 107, 180, .22);
  background:
    linear-gradient(180deg, #ffffff 0, #f8fcff 100%);
  box-shadow: var(--shadow-strong);
}

.search-panel-head {
  display: grid;
  gap: 2px;
  padding-bottom: 4px;
}

.search-panel-head h2 {
  margin: 0;
  color: var(--navy);
  font-size: 1.28rem;
}

.search-more {
  border-top: 1px solid var(--line);
  padding-top: 10px;
}

.search-more summary {
  color: var(--blue-dark);
  font-weight: 800;
  cursor: pointer;
}

.search-more-fields {
  display: grid;
  gap: 12px;
  margin-top: 12px;
}

.search-feature-field {
  background: #f8fbff;
}

.search-feature-field .check-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

label,
fieldset {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-weight: 700;
  font-size: .9rem;
}

fieldset {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  background: var(--surface);
}

legend {
  color: var(--ink);
  font-weight: 800;
}

input[type="checkbox"],
input[type="radio"] {
  flex: 0 0 auto;
  width: 17px;
  height: 17px;
  min-width: 17px;
  min-height: 17px;
  margin: 0;
  padding: 0;
  accent-color: var(--blue);
  box-shadow: none;
  cursor: pointer;
}

.rating-fieldset {
  gap: 10px;
}

.rating-input {
  display: inline-flex;
  flex-direction: row-reverse;
  justify-content: flex-end;
  gap: 3px;
}

.rating-input input {
  position: absolute;
  width: 1px;
  height: 1px;
  min-height: 1px;
  padding: 0;
  opacity: 0;
}

.rating-input label {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border: 1px solid #d7e3f0;
  border-radius: 7px;
  background: #ffffff;
  color: #d4deec;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
}

.rating-input label:hover,
.rating-input label:hover ~ label,
.rating-input input:checked ~ label {
  border-color: rgba(245, 179, 1, .42);
  background: #fff8e6;
  color: #f5b301;
}

.rating-input input:focus-visible + label {
  outline: 3px solid rgba(65, 107, 180, .22);
}

input,
select,
textarea {
  width: 100%;
  min-width: 0;
  min-height: 44px;
  border: 1px solid #c7d5e8;
  border-radius: 7px;
  padding: 10px 12px;
  color: var(--ink);
  font: inherit;
  background: #ffffff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .7);
}

textarea {
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
  outline: 3px solid rgba(65, 107, 180, .18);
  border-color: var(--blue);
}

.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  min-height: 1px;
  opacity: 0;
  pointer-events: none;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 44px;
  padding: 10px 16px;
  border: 1px solid var(--blue);
  border-radius: 7px;
  background: var(--white);
  color: var(--blue-dark);
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 8px 18px rgba(18, 56, 111, .08);
}

.button:hover {
  text-decoration: none;
  background: var(--soft);
}

.button-primary {
  background: var(--blue);
  color: var(--white);
  box-shadow: 0 12px 26px rgba(65, 107, 180, .22);
}

.button-primary:hover {
  background: var(--blue-dark);
}

.button-reserve {
  border-color: var(--blue);
  background: var(--blue);
  color: var(--white);
  box-shadow: 0 10px 22px rgba(65, 107, 180, .25);
}

.button-reserve:hover {
  border-color: var(--blue-dark);
  background: var(--blue-dark);
  color: var(--white);
}

.button-ghost {
  border-color: var(--line);
  background: #fbfdff;
}

.button-small {
  min-height: 36px;
  padding: 7px 11px;
  font-size: .9rem;
}

.form-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.form-actions .button {
  flex: 1 1 140px;
}

.section {
  padding: 42px clamp(16px, 4vw, 42px);
}

.section-tight {
  padding-top: 8px;
  padding-bottom: 8px;
}

.section-heading,
.pool-card-top,
.card-actions,
.pool-title .hero-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
}

.section-heading .info-inline {
  color: var(--muted);
  font-weight: 650;
}

.metric-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.metric-row span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 42px;
  padding: 9px 13px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 8px 20px rgba(16, 32, 51, .05);
}

.quick-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.quick-card {
  position: relative;
  display: grid;
  gap: 6px;
  min-height: 112px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(180deg, #ffffff 0, #f8fcff 100%);
  box-shadow: var(--shadow);
}

.quick-card::before {
  position: absolute;
  inset: 0 0 auto;
  height: 3px;
  content: "";
  background: linear-gradient(90deg, var(--blue), var(--aqua));
}

.quick-card:hover {
  border-color: rgba(65, 107, 180, .42);
  transform: translateY(-1px);
  text-decoration: none;
}

.quick-card strong {
  color: var(--navy);
  font-size: 1rem;
}

.quick-card span {
  color: var(--muted);
  font-weight: 650;
  font-size: .92rem;
}

.quick-card-primary {
  border-color: rgba(14, 154, 174, .32);
  background:
    linear-gradient(180deg, #ffffff 0, #effbfe 100%);
}

.pool-grid,
.article-grid,
.feature-grid,
.photo-grid,
.category-section {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.pool-card,
.article-card {
  padding: 17px;
}

.article-card {
  overflow: hidden;
}

.article-card-media {
  display: block;
  aspect-ratio: 16 / 10;
  margin: -17px -17px 14px;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  background: #eef7ff;
}

.article-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .18s ease;
}

.article-card-media:hover img {
  transform: scale(1.025);
}

.article-card-full p {
  min-height: 0;
}

.article-card h2,
.article-card p,
.intro-section p {
  max-width: 100%;
  overflow-wrap: anywhere;
}

.article-detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 820px) minmax(280px, 360px);
  gap: 24px;
  align-items: start;
}

.article-detail-layout .article-prose {
  max-width: none;
}

.article-prose {
  display: grid;
  gap: 16px;
}

.article-prose h2,
.article-prose h3,
.article-prose p,
.article-prose ul {
  margin: 0;
}

.article-prose h2 {
  margin-top: 8px;
  color: var(--navy);
  font-size: clamp(1.35rem, 2vw, 1.8rem);
  line-height: 1.18;
}

.article-prose h3 {
  color: var(--blue-dark);
  font-size: 1.08rem;
  line-height: 1.28;
}

.article-prose p,
.article-prose li {
  color: var(--ink);
  line-height: 1.78;
}

.article-prose ul {
  display: grid;
  gap: 8px;
  padding-left: 20px;
}

.article-map-card {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  padding: 14px;
  border: 1px solid rgba(65, 107, 180, .22);
  border-radius: 8px;
  background:
    linear-gradient(180deg, #f7fbff 0, #eef7ff 100%);
  color: var(--blue-dark);
  font-weight: 850;
  text-decoration: none;
  box-shadow: 0 12px 30px rgba(16, 32, 51, .06);
}

.article-map-card:hover {
  border-color: rgba(65, 107, 180, .4);
  text-decoration: none;
}

.article-map-card .ui-icon {
  width: 1.35rem;
  height: 1.35rem;
  color: var(--blue);
}

.article-map-card span {
  display: grid;
  gap: 2px;
}

.article-map-card small {
  color: var(--muted);
  font-size: .9rem;
  font-weight: 700;
}

.article-faq {
  box-shadow: 0 8px 20px rgba(16, 32, 51, .04);
}

.article-faq p {
  margin-top: 10px;
  color: var(--muted);
}

.article-sidebar {
  position: sticky;
  top: 116px;
  display: grid;
  gap: 14px;
  min-width: 0;
}

.article-sidebar-head {
  display: grid;
  gap: 5px;
  padding: 15px;
  border: 1px solid rgba(65, 107, 180, .20);
  border-left: 4px solid var(--blue);
  border-radius: 8px;
  background:
    linear-gradient(180deg, #ffffff 0, #f4f9ff 100%);
  box-shadow: 0 14px 34px rgba(16, 32, 51, .07);
}

.article-sidebar-head span {
  color: var(--aqua);
  font-size: .78rem;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.article-sidebar-head h2 {
  margin: 0;
  color: var(--navy);
  font-size: 1.16rem;
  line-height: 1.2;
}

.article-sidebar-head p {
  margin: 0;
  color: var(--muted);
  font-size: .92rem;
}

.article-sidebar-list {
  display: grid;
  gap: 14px;
}

.article-sidebar .pool-card {
  padding: 14px;
}

.article-sidebar .pool-card-media {
  margin: -14px -14px 12px;
}

.article-sidebar .pool-card p {
  min-height: 0;
  font-size: .92rem;
}

.article-sidebar .pool-facts {
  grid-template-columns: 1fr;
}

.article-sidebar .card-actions {
  display: grid;
  grid-template-columns: 1fr;
}

.article-sidebar .card-actions .button {
  width: 100%;
}

.announcement-media {
  position: relative;
  margin: -17px -17px 14px;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  border-radius: 8px 8px 0 0;
  background: #eef7ff;
}

.announcement-track {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: thin;
}

.announcement-slide {
  flex: 0 0 100%;
  min-width: 100%;
  margin: 0;
  scroll-snap-align: start;
}

.announcement-slide a {
  display: block;
}

.announcement-slide img,
.announcement-media > img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.slider-hint {
  position: absolute;
  right: 10px;
  bottom: 10px;
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(15, 39, 77, .82);
  color: #ffffff;
  font-weight: 800;
  font-size: .74rem;
}

.pool-card {
  position: relative;
  overflow: hidden;
}

.pool-card-media {
  position: relative;
  display: block;
  margin: -17px -17px 14px;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  background: #eef7ff;
}

.pool-card-media:hover {
  text-decoration: none;
}

.pool-card-media img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  transition: transform .18s ease;
}

.pool-card:hover .pool-card-media img {
  transform: scale(1.025);
}

.pool-card-status {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 5px 10px;
  border: 1px solid rgba(255, 255, 255, .55);
  border-radius: 8px;
  color: #ffffff;
  font-size: .78rem;
  font-weight: 900;
  line-height: 1;
  box-shadow: 0 10px 24px rgba(15, 39, 77, .18);
  backdrop-filter: blur(8px);
}

.pool-card-status-open {
  background: rgba(22, 137, 76, .94);
}

.pool-card-status-renovation {
  background: rgba(180, 35, 24, .94);
}

.pool-card::before {
  position: absolute;
  inset: 0 0 auto;
  height: 4px;
  content: "";
  background: linear-gradient(90deg, var(--blue), var(--aqua));
}

.pool-card-premium {
  border-color: rgba(184, 135, 46, .35);
  box-shadow: 0 20px 52px rgba(184, 135, 46, .13), var(--shadow);
}

.pool-card-premium::before {
  background: linear-gradient(90deg, var(--gold), var(--blue));
}

.pool-card h3 {
  margin-top: 12px;
  margin-bottom: 9px;
}

.pool-card p {
  color: var(--muted);
  min-height: 54px;
}

.pool-card-rating {
  margin: 10px 0 2px;
}

.rating-line {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  flex-wrap: wrap;
  color: var(--navy);
  font-weight: 800;
}

.star-rating {
  display: inline-flex;
  align-items: center;
  gap: 1px;
  color: #d4deec;
  font-size: 1.05rem;
  line-height: 1;
}

.star-filled {
  color: #f5b301;
  text-shadow: 0 1px 0 rgba(131, 93, 23, .16);
}

.star-empty {
  color: #d4deec;
}

.rating-meta {
  color: var(--muted);
  font-size: .84rem;
  font-weight: 750;
}

.pool-facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin: 12px 0;
}

.pool-facts span {
  min-height: 36px;
  padding: 8px 9px;
  border: 1px solid #dcecf7;
  border-radius: 7px;
  background: #f8fcff;
  color: var(--blue-dark);
  font-size: .85rem;
  font-weight: 800;
}

.badge {
  display: inline-flex;
  align-items: center;
  min-height: 25px;
  padding: 3px 8px;
  border: 1px solid rgba(184, 135, 46, .28);
  border-radius: 7px;
  background: #fff8e9;
  color: #835d17;
  font-weight: 800;
  font-size: .78rem;
}

.badge-standard {
  border-color: rgba(65, 107, 180, .18);
  background: #eef7ff;
  color: var(--blue-dark);
}

.badge-renovation {
  border-color: rgba(180, 35, 24, .3);
  background: #fff0ed;
  color: #a8281f;
}

.area-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 25px;
  padding: 3px 8px;
  border: 1px solid rgba(255, 255, 255, .22);
  border-radius: 7px;
  background: var(--blue);
  color: #ffffff;
  font-size: .78rem;
  font-weight: 850;
  line-height: 1.15;
  text-decoration: none;
  box-shadow: 0 8px 18px rgba(65, 107, 180, .18);
  transition: background .16s ease, transform .16s ease, box-shadow .16s ease;
}

.area-badge:hover {
  background: var(--blue-dark);
  color: #ffffff;
  text-decoration: none;
  transform: translateY(-1px);
  box-shadow: 0 10px 22px rgba(18, 56, 111, .2);
}

.area-badge:focus-visible {
  outline: 3px solid rgba(0, 167, 187, .28);
  outline-offset: 2px;
}

.area-badge .ui-icon {
  width: .95em;
  height: .95em;
}

.contact-line,
.contact-badge-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.contact-line {
  margin: 12px 0;
}

.contact-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 32px;
  max-width: 100%;
  padding: 5px 9px;
  border: 1px solid rgba(65, 107, 180, .18);
  border-radius: 7px;
  background: #eef7ff;
  color: var(--blue-dark);
  font-weight: 800;
  font-size: .86rem;
  overflow-wrap: anywhere;
}

.contact-badge span {
  color: var(--muted);
  font-size: .74rem;
  text-transform: uppercase;
}

.contact-badge:hover {
  border-color: rgba(65, 107, 180, .4);
  background: #e4f1ff;
  text-decoration: none;
}

.contact-phone {
  border-color: rgba(14, 154, 174, .22);
  background: #e9fbfd;
  color: #075f6d;
}

.contact-phone:hover {
  border-color: rgba(14, 154, 174, .44);
  background: #dff7fb;
}

.price-block {
  display: grid;
  gap: 10px;
  margin-top: 18px;
}

.price-block h3 {
  margin: 0;
  color: var(--navy);
  font-size: 1.05rem;
}

.price-panel {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 14px;
  border: 1px solid rgba(65, 107, 180, .18);
  border-radius: 8px;
  background:
    linear-gradient(180deg, #ffffff 0, #f8fcff 100%);
  box-shadow: 0 12px 28px rgba(16, 32, 51, .06);
}

.price-panel-head {
  display: grid;
  gap: 2px;
}

.price-panel-head strong {
  color: var(--navy);
  font-size: 1rem;
}

.price-panel-head span,
.price-disclaimer,
.price-plain,
.price-notes {
  color: var(--muted);
  font-size: .9rem;
}

.price-list {
  display: grid;
  gap: 8px;
}

.price-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: start;
  min-width: 0;
  padding: 10px;
  border: 1px solid #dcecf7;
  border-radius: 7px;
  background: #ffffff;
}

.price-main {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.price-main strong {
  color: var(--blue-dark);
  line-height: 1.25;
}

.price-main span {
  color: var(--ink);
  font-size: .92rem;
}

.price-amount {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 30px;
  padding: 5px 9px;
  border: 1px solid rgba(184, 135, 46, .28);
  border-radius: 999px;
  background: #fff8e9;
  color: #835d17;
  font-size: .86rem;
  font-weight: 900;
  white-space: nowrap;
}

.price-more {
  padding: 10px;
  background: #f7fbff;
}

.price-more summary {
  color: var(--blue-dark);
}

.price-list-extra {
  margin-top: 10px;
}

.price-notes {
  margin: 10px 0 0;
  padding-left: 18px;
}

.price-notes li + li {
  margin-top: 4px;
}

.price-disclaimer,
.price-plain {
  margin: 0;
}

.schedule-panel {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 14px;
  border: 1px solid rgba(14, 154, 174, .22);
  border-radius: 8px;
  background:
    linear-gradient(180deg, #ffffff 0, #f6fdff 100%);
  box-shadow: 0 12px 28px rgba(16, 32, 51, .06);
}

.detail-panel .schedule-panel {
  padding: 12px;
  box-shadow: none;
}

.schedule-panel-head {
  display: grid;
  gap: 2px;
}

.schedule-panel-head strong {
  color: var(--navy);
  font-size: 1rem;
}

.schedule-panel-head span,
.schedule-disclaimer,
.schedule-plain,
.schedule-notes {
  color: var(--muted);
  font-size: .9rem;
}

.schedule-list {
  display: grid;
  gap: 8px;
}

.schedule-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: start;
  min-width: 0;
  padding: 10px;
  border: 1px solid #d7edf2;
  border-radius: 7px;
  background: #ffffff;
}

.schedule-main {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.schedule-main strong {
  color: var(--blue-dark);
  line-height: 1.25;
}

.schedule-section {
  width: fit-content;
  max-width: 100%;
  padding: 3px 7px;
  border: 1px solid rgba(14, 154, 174, .18);
  border-radius: 999px;
  background: #e9fbfd;
  color: #075f6d;
  font-size: .75rem;
  font-weight: 900;
}

.schedule-hours {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 30px;
  padding: 5px 9px;
  border: 1px solid rgba(65, 107, 180, .22);
  border-radius: 999px;
  background: #eef7ff;
  color: var(--blue-dark);
  font-size: .86rem;
  font-weight: 900;
  white-space: nowrap;
}

.schedule-more {
  padding: 10px;
  background: #f7fbff;
}

.schedule-more summary {
  color: var(--blue-dark);
}

.schedule-list-extra {
  margin-top: 10px;
}

.schedule-notes {
  margin: 10px 0 0;
  padding-left: 18px;
}

.schedule-notes li + li {
  margin-top: 4px;
}

.schedule-disclaimer,
.schedule-plain {
  margin: 0;
}

.announcement-body {
  display: grid;
  gap: 14px;
  margin-top: 12px;
}

.announcement-body p,
.announcement-section {
  margin: 0;
}

.announcement-section {
  display: grid;
  gap: 8px;
}

.announcement-section h4 {
  margin: 0;
  color: var(--navy);
  font-size: 1rem;
}

.announcement-section ul {
  display: grid;
  gap: 6px;
  margin: 0;
  padding-left: 18px;
  color: var(--ink);
}

.announcement-body .price-panel,
.announcement-body .schedule-panel {
  margin: 2px 0;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 4px 9px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-weight: 800;
  font-size: .8rem;
  line-height: 1.2;
}

.verification-date {
  display: block;
  margin-top: 0.35rem;
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.35;
}

.cookie-consent {
  position: fixed;
  z-index: 1000;
  right: 18px;
  bottom: 18px;
  left: 18px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 18px;
  max-width: 920px;
  margin-inline: auto;
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 18px 55px rgba(16, 32, 51, .2);
}

.cookie-consent[hidden] {
  display: none;
}

.cookie-consent p {
  margin: 4px 0 6px;
  color: var(--muted);
  line-height: 1.5;
}

.cookie-consent-actions {
  display: flex;
  gap: 8px;
}

@media (max-width: 680px) {
  .cookie-consent {
    grid-template-columns: 1fr;
    right: 10px;
    bottom: 10px;
    left: 10px;
    padding: 16px;
  }

  .cookie-consent-actions .button {
    flex: 1;
  }
}

.status-success {
  border-color: rgba(36, 122, 82, .24);
  background: #eaf8f0;
  color: #17603b;
}

.status-warning {
  border-color: rgba(184, 135, 46, .28);
  background: #fff8e9;
  color: #835d17;
}

.status-danger {
  border-color: rgba(180, 35, 24, .22);
  background: #fff0ed;
  color: var(--danger);
}

.status-neutral {
  border-color: rgba(97, 115, 140, .2);
  background: #f4f7fb;
  color: var(--muted);
}

.muted {
  color: var(--muted);
}

.tag-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin: 12px 0;
}

.tag-row span,
.tag-row a {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 4px 8px;
  border: 1px solid rgba(65, 107, 180, .12);
  border-radius: 7px;
  background: #eef7ff;
  color: var(--blue-dark);
  font-weight: 700;
  font-size: .82rem;
  text-decoration: none;
  transition: border-color .16s ease, background .16s ease, transform .16s ease;
}

.tag-row a:hover {
  border-color: rgba(65, 107, 180, .36);
  background: #e2f2ff;
  transform: translateY(-1px);
}

.tag-row a:focus-visible {
  outline: 3px solid rgba(0, 167, 187, .28);
  outline-offset: 2px;
}

.tag-row-large span,
.tag-row-large a {
  min-height: 34px;
  padding: 6px 10px;
}

.category-summary {
  padding-top: 18px;
}

.category-summary p {
  max-width: 880px;
  margin: 0;
  color: var(--muted);
  font-weight: 650;
  line-height: 1.7;
}

.photo-grid figure {
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: var(--shadow);
}

.photo-grid img,
.inline-admin-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.photo-grid img {
  aspect-ratio: 4 / 3;
}

.photo-admin-list {
  display: grid;
  gap: 10px;
}

.inline-admin-item {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
}

.inline-admin-item img {
  aspect-ratio: 3 / 2;
  border-radius: 7px;
}

.link-grid,
.check-grid {
  display: grid;
  gap: 8px;
}

.check-grid {
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 6px 10px;
}

.check-grid label {
  display: grid;
  grid-template-columns: 17px minmax(0, 1fr);
  align-items: center;
  gap: 8px;
  min-height: 38px;
  padding: 7px 8px;
  border: 1px solid transparent;
  border-radius: 6px;
  color: var(--ink);
  font-size: .88rem;
  line-height: 1.35;
  cursor: pointer;
}

.check-grid label:hover,
.check-grid label:has(input:focus-visible) {
  border-color: var(--line);
  background: #eef7ff;
}

.check-grid label:has(input:checked) {
  border-color: rgba(14, 154, 174, .28);
  background: var(--aqua-soft);
  color: var(--blue-dark);
}

.link-grid a {
  min-height: 46px;
  padding: 11px 12px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--white);
  font-weight: 700;
  box-shadow: 0 8px 20px rgba(16, 32, 51, .05);
}

.link-grid a:hover {
  border-color: rgba(65, 107, 180, .38);
  background: #f4f9ff;
  text-decoration: none;
}

.feature-band {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background:
    linear-gradient(180deg, #f6fbff 0, #ffffff 100%);
}

.feature-grid p {
  margin: 0;
  min-height: 92px;
  padding: 16px;
  border: 1px solid var(--line);
  border-left: 4px solid var(--aqua);
  border-radius: 8px;
  background: var(--white);
  box-shadow: var(--shadow);
}

.intro-section {
  max-width: 960px;
}

.pool-detail {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 420px);
  gap: 20px;
  align-items: start;
  padding: clamp(28px, 5vw, 64px) clamp(16px, 4vw, 42px);
  border-bottom: 1px solid var(--line);
  background:
    linear-gradient(135deg, rgba(65, 107, 180, .10), rgba(255, 255, 255, .90) 62%),
    var(--soft);
}

.pool-title {
  max-width: 780px;
}

.pool-title-rating {
  margin: 8px 0 12px;
}

.pool-title-rating .rating-line {
  gap: 9px;
}

.pool-title-rating .star-rating {
  font-size: 1.36rem;
}

.pool-title-rating .rating-line strong {
  font-size: 1.06rem;
}

.pool-title-rating .rating-meta {
  font-size: .92rem;
}

.pool-status-alert {
  display: inline-flex;
  align-items: flex-start;
  gap: 8px;
  max-width: 760px;
  margin: 2px 0 18px;
  padding: 11px 13px;
  border: 1px solid rgba(180, 35, 24, .18);
  border-radius: 8px;
  background: #fff4f1;
  color: #7d241d;
  font-weight: 800;
  line-height: 1.45;
}

.pool-status-alert .ui-icon {
  flex: 0 0 auto;
  margin-top: 2px;
}

.pool-offer-card {
  display: grid;
  grid-template-columns: minmax(190px, auto) minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  max-width: 760px;
  margin-top: 22px;
  padding: 15px 16px;
  border: 1px solid rgba(36, 122, 82, .26);
  border-left: 5px solid var(--green);
  border-radius: 8px;
  background:
    linear-gradient(135deg, #eaf8f0 0, #dff5e8 100%);
  box-shadow: 0 16px 38px rgba(36, 122, 82, .14);
}

.pool-offer-card-alert {
  border-color: rgba(180, 35, 24, .26);
  border-left-color: var(--danger);
  background:
    linear-gradient(135deg, #fff0ed 0, #ffe5df 100%);
  box-shadow: 0 16px 38px rgba(180, 35, 24, .10);
}

.pool-offer-main {
  display: grid;
  gap: 3px;
}

.pool-offer-main span {
  color: #17603b;
  font-size: .78rem;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.pool-offer-card-alert .pool-offer-main span {
  color: var(--danger);
}

.pool-offer-main strong {
  color: #0f5f3c;
  font-size: clamp(1.45rem, 3vw, 2.05rem);
  line-height: 1.05;
}

.pool-offer-card-alert .pool-offer-main strong {
  color: var(--danger);
}

.pool-offer-card p {
  margin: 0;
  color: var(--ink);
  font-weight: 700;
}

.pool-offer-card .info-inline .ui-icon-info {
  color: #17603b;
}

.pool-offer-card-alert .info-inline .ui-icon-info {
  color: var(--danger);
}

.pool-signup-form {
  display: grid;
  gap: 14px;
  max-width: 760px;
  margin-top: 24px;
  padding: 16px;
  border: 1px solid rgba(65, 107, 180, .20);
  border-left: 4px solid var(--aqua);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .94) 0, rgba(246, 253, 255, .94) 100%);
  box-shadow: 0 18px 44px rgba(16, 32, 51, .09);
}

.pool-signup-head {
  display: grid;
  gap: 4px;
}

.pool-signup-head span {
  color: var(--aqua);
  font-size: .78rem;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.pool-signup-head h2 {
  margin: 0;
  color: var(--navy);
  font-size: 1.25rem;
  line-height: 1.2;
}

.pool-signup-head p,
.pool-signup-footer p {
  margin: 0;
  color: var(--muted);
}

.pool-signup-fields {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.pool-signup-message {
  grid-column: 1 / -1;
}

.pool-signup-form textarea {
  min-height: 86px;
}

.pool-signup-consent {
  padding: 10px 12px;
  border: 1px solid rgba(65, 107, 180, .14);
  border-radius: 7px;
  background: rgba(255, 255, 255, .72);
  font-size: .84rem;
}

.pool-signup-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.pool-signup-footer .button {
  min-width: 190px;
}

.reservation-dialog {
  width: min(620px, calc(100% - 28px));
  max-width: 620px;
  max-height: min(88vh, 760px);
  max-height: min(88dvh, 760px);
  padding: 0;
  border: 1px solid rgba(65, 107, 180, .24);
  border-radius: 8px;
  background: var(--white);
  color: var(--ink);
  box-shadow: 0 28px 72px rgba(6, 24, 52, .32);
  overflow: auto;
}

.reservation-dialog:not([open]) {
  display: none;
}

.reservation-dialog::backdrop {
  background: rgba(6, 24, 52, .72);
}

.reservation-dialog-header {
  position: sticky;
  top: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 18px;
  border-bottom: 1px solid var(--line);
  background: #f5f9ff;
}

.reservation-dialog-location {
  display: flex;
  align-items: center;
  min-width: 0;
  gap: 12px;
}

.reservation-dialog-location > div {
  min-width: 0;
}

.reservation-dialog-thumb {
  flex: 0 0 72px;
  width: 72px;
  height: 72px;
  overflow: hidden;
  border: 2px solid var(--white);
  border-radius: 7px;
  background: var(--soft);
  box-shadow: 0 5px 14px rgba(18, 56, 111, .15);
}

.reservation-dialog-thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.reservation-dialog-location span:not(.reservation-dialog-thumb) {
  display: block;
  margin-bottom: 3px;
  color: var(--blue);
  font-size: .75rem;
  font-weight: 900;
  text-transform: uppercase;
}

.reservation-dialog-location h2 {
  margin: 0;
  color: var(--navy);
  font-size: 1.25rem;
  line-height: 1.2;
  overflow-wrap: anywhere;
}

.reservation-dialog-close {
  flex: 0 0 40px;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--white);
  color: var(--navy);
  font-size: 1.7rem;
  line-height: 1;
  cursor: pointer;
}

.reservation-dialog-close:hover {
  border-color: var(--blue);
  background: var(--soft);
}

.reservation-form {
  display: grid;
  gap: 14px;
  padding: 18px;
}

.reservation-dialog-intro {
  margin: 0;
  color: var(--muted);
}

.reservation-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.reservation-message {
  grid-column: 1 / -1;
}

.reservation-message textarea {
  min-height: 92px;
}

.reservation-consent {
  padding: 10px 12px;
  border: 1px solid rgba(65, 107, 180, .16);
  border-radius: 7px;
  background: #f8fbff;
  font-size: .84rem;
}

.reservation-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.reservation-footer .info-inline {
  margin: 0;
}

.reservation-footer .button {
  flex: 0 0 auto;
  min-width: 176px;
}

.detail-panel {
  padding: 18px;
  background:
    linear-gradient(180deg, #ffffff 0, #f8fcff 100%);
}

.detail-schedule-block {
  display: grid;
  gap: 10px;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.detail-schedule-block h2 {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  color: var(--navy);
  font-size: 1.05rem;
  line-height: 1.2;
}

.detail-schedule-block h2 .ui-icon {
  color: var(--aqua);
}

.detail-schedule-block .schedule-panel {
  padding: 12px;
  box-shadow: none;
}

.detail-schedule-block .schedule-item {
  grid-template-columns: 1fr;
}

.detail-schedule-block .schedule-hours {
  justify-self: start;
  white-space: normal;
  text-align: left;
}

dl {
  display: grid;
  grid-template-columns: minmax(95px, 140px) minmax(0, 1fr);
  gap: 10px 12px;
  margin: 0;
}

dt {
  display: inline-flex;
  align-items: flex-start;
  gap: 7px;
  color: var(--muted);
  font-weight: 800;
  line-height: 1.25;
}

dt .ui-icon {
  margin-top: .12em;
  color: var(--blue);
}

dd {
  margin: 0;
}

.two-col {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.faq-list {
  display: grid;
  gap: 10px;
  margin-bottom: 16px;
}

details {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  background: #ffffff;
  box-shadow: 0 8px 20px rgba(16, 32, 51, .04);
}

details.mobile-menu {
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

summary {
  cursor: pointer;
  font-weight: 800;
}

.auth-wrap {
  display: grid;
  place-items: start center;
  padding: 44px 16px;
  background:
    linear-gradient(180deg, #f6fbff 0, #ffffff 100%);
}

.auth-wrap-after-hero {
  padding-top: 30px;
}

.form-card {
  width: min(100%, 460px);
  display: grid;
  gap: 14px;
  padding: 20px;
  background:
    linear-gradient(180deg, #ffffff 0, #f9fcff 100%);
}

.form-wide {
  width: min(100%, 760px);
}

.admin-pool-form {
  width: min(100%, 1080px);
}

@media (min-width: 900px) {
  .admin-pool-form {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: start;
  }

  .admin-pool-form > h1,
  .admin-pool-form > fieldset,
  .admin-pool-form > .button {
    grid-column: 1 / -1;
  }

  .admin-pool-form > fieldset {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
  }

  .admin-pool-form > fieldset > legend,
  .admin-pool-form > fieldset > .check-grid {
    grid-column: 1 / -1;
  }
}

.check-line {
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 8px;
  min-height: 36px;
  color: var(--ink);
  font-weight: 600;
  line-height: 1.4;
  cursor: pointer;
}

.check-line input {
  margin: 0;
}

.flash-stack {
  display: grid;
  gap: 8px;
  padding: 12px clamp(16px, 4vw, 42px) 0;
}

.flash {
  border-radius: 8px;
  padding: 12px 14px;
  font-weight: 700;
}

.flash-success {
  background: #e8f7ef;
  color: #17603b;
}

.flash-error {
  background: #fff0ed;
  color: var(--danger);
}

.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: var(--shadow);
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 680px;
}

th,
td {
  padding: 11px 12px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

th {
  background: #f4f9ff;
  color: var(--navy);
}

.admin-list {
  display: grid;
  gap: 16px;
}

.moderation-card {
  display: grid;
  gap: 12px;
  padding: 17px;
  background:
    linear-gradient(180deg, #ffffff 0, #fbfdff 100%);
}

.moderation-meta {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  color: var(--muted);
}

.prose {
  max-width: 820px;
}

.legal-doc {
  min-width: 0;
  max-width: 980px;
  overflow-x: hidden;
}

.legal-doc h1 {
  max-width: 12ch;
}

.legal-lead {
  min-width: 0;
  max-width: 720px;
  color: var(--muted);
  font-size: 1.08rem;
}

.legal-updated {
  margin-bottom: 12px;
  color: var(--muted);
  font-weight: 800;
}

.legal-note,
.legal-card {
  min-width: 0;
  max-width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: var(--shadow);
}

.legal-note {
  display: grid;
  gap: 6px;
  margin: 22px 0;
  padding: 15px;
  border-left: 4px solid var(--aqua);
}

.legal-note strong,
.legal-card h2 {
  color: var(--navy);
}

.legal-stack {
  display: grid;
  gap: 14px;
}

.legal-card {
  padding: 18px;
}

.legal-card h2 {
  margin-bottom: 10px;
  font-size: 1.2rem;
}

.legal-card p {
  margin-bottom: 10px;
  color: var(--ink);
}

.legal-doc p,
.legal-doc span,
.legal-doc a {
  overflow-wrap: anywhere;
}

.legal-card p:last-child {
  margin-bottom: 0;
}

.empty {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--muted);
  background: #f7fbff;
}

.empty-action {
  display: grid;
  gap: 10px;
  align-items: start;
}

.empty-action strong {
  color: var(--navy);
}

.empty-action .button {
  width: fit-content;
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
  padding: 24px clamp(16px, 4vw, 42px);
  border-top: 1px solid var(--line);
  color: var(--muted);
  background:
    linear-gradient(180deg, #ffffff 0, #f4f9ff 100%);
}

.site-footer div {
  display: grid;
  gap: 2px;
}

@media (max-width: 980px) {
  .pool-map-layout {
    grid-template-columns: 1fr;
  }

  .pool-map-list {
    max-height: 420px;
  }

  .pool-map-canvas {
    position: static;
  }

  .admin-filter-bar {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .portal-nav {
    position: static;
    width: auto;
    margin: 16px;
    max-height: none;
  }

  body:has(.portal-nav) main,
  body:has(.portal-nav) .site-footer {
    padding-left: 0;
  }

  .portal-nav-section {
    display: inline-block;
    width: min(100%, 280px);
    margin: 4px;
    vertical-align: top;
  }

  .portal-nav-home {
    margin-bottom: 8px;
  }

  .hero,
  .page-hero,
  .pool-detail,
  .article-detail-layout,
  .two-col,
  .category-section {
    grid-template-columns: 1fr;
  }

  .article-sidebar {
    position: static;
  }

  .article-sidebar-list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .pool-grid,
  .article-grid,
  .feature-grid,
  .photo-grid,
  .quick-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  h1 {
    font-size: 2.55rem;
  }

  .hero-highlights {
    margin-top: 18px;
  }

  .page-hero-media {
    max-height: 300px;
  }
}

@media (max-width: 680px) {
  .hero .hero-highlights {
    display: none;
  }

  .search-feature-field .check-grid {
    grid-template-columns: 1fr;
  }

  .portal-nav {
    margin: 12px;
    padding: 10px;
  }

  .portal-nav-section {
    display: block;
    width: 100%;
    margin: 4px 0;
  }

  .portal-nav-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 44px;
    padding: 9px 12px;
    border: 1px solid var(--line);
    border-radius: 6px;
    background: #f4f9ff;
    color: var(--blue-dark);
    font-size: .88rem;
  }

  .portal-nav-toggle::after {
    content: "+";
    font-size: 1.25rem;
    line-height: 1;
  }

  .portal-nav-menu[open] > .portal-nav-toggle::after {
    content: "-";
  }

  .portal-nav-menu:not([open]) > .portal-nav-section {
    display: none;
  }

  .inline-filter,
  .change-summary,
  .admin-filter-bar,
  .form-split {
    display: grid;
    grid-template-columns: 1fr;
  }

  .admin-filter-actions,
  .page-actions,
  .pagination {
    align-items: stretch;
    flex-direction: column;
  }

  .admin-filter-actions .button,
  .page-actions .button {
    width: 100%;
  }
  .site-header {
    display: flex;
    align-items: center;
    min-height: 88px;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 16px;
  }

  .brand {
    width: 140px;
    min-width: 0;
    flex: 0 1 140px;
  }

  .main-nav-desktop {
    display: none !important;
  }

  .mobile-menu {
    display: block !important;
    position: absolute;
    top: 22px;
    left: min(calc(100vw - 60px), 300px);
    z-index: 40;
    flex: 0 0 auto;
    width: 44px;
    height: 44px;
    margin-left: auto;
    opacity: 1;
    transform: none;
    visibility: visible;
  }

  .mobile-menu summary {
    display: inline-flex !important;
  }

  .mobile-menu-panel {
    position: fixed;
    top: 88px;
    right: 12px;
    left: 12px;
    width: auto;
    max-height: calc(100vh - 100px);
    overflow: auto;
  }

  .hero {
    grid-template-columns: minmax(0, 1fr);
    gap: 14px;
    min-height: auto;
    padding: 26px 16px 10px;
    background-position: center top;
  }

  .page-hero {
    gap: 12px;
    padding: 24px 16px 22px;
  }

  .hero-copy,
  .page-hero-copy,
  .search-panel {
    width: 100%;
    max-width: 100%;
  }

  .hero-copy p {
    max-width: 32ch;
    font-size: 1rem;
    line-height: 1.45;
  }

  .hero .search-panel {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 9px 10px;
    padding: 14px;
  }

  .hero .search-panel-head,
  .hero .search-panel > label:first-of-type,
  .hero .search-more,
  .hero .form-actions {
    grid-column: 1 / -1;
  }

  .hero .search-panel input:not([type="checkbox"]):not([type="radio"]),
  .hero .search-panel select {
    min-height: 42px;
    padding: 8px 10px;
  }

  .page-hero h1 {
    font-size: 2.05rem;
    max-width: 14ch;
  }

  .page-hero p {
    max-width: 34ch;
    font-size: 1rem;
  }

  .page-hero-actions {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 8px;
    align-items: stretch;
    width: 100%;
    margin-top: 14px;
  }

  .page-hero-actions .button {
    width: 100%;
  }

  .page-hero-highlights {
    width: 100%;
    margin-top: 12px;
  }

  .page-hero-media {
    max-height: 160px;
  }

  .section {
    padding: 24px 16px;
  }

  .section-tight {
    padding-top: 10px;
    padding-bottom: 10px;
  }

  .main-nav {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    justify-content: flex-start;
    width: 100%;
    min-width: 0;
    gap: 6px;
  }

  .main-nav a {
    justify-content: center;
    min-width: 0;
    text-align: center;
    font-size: .86rem;
    min-height: 32px;
    padding: 4px 7px;
  }

  .site-header .main-nav-desktop {
    display: none !important;
  }

  .admin-nav {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: 100%;
    gap: 8px;
  }

  .admin-nav a {
    min-width: 0;
    text-align: center;
  }

  .pool-grid,
  .article-grid,
  .article-sidebar-list,
  .feature-grid,
  .photo-grid,
  .quick-grid,
  .search-results-grid {
    grid-template-columns: 1fr;
  }

  .metric-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  .metric-row span {
    min-height: 38px;
    padding: 7px 9px;
    font-size: .82rem;
  }

  .hero-highlights {
    display: flex;
    gap: 6px;
    margin-top: 12px;
  }

  .hero-highlights span {
    width: auto;
    min-height: 30px;
    padding: 5px 8px;
    font-size: .78rem;
  }

  .section-heading,
  .card-actions,
  .pool-title .hero-actions {
    display: grid;
    align-items: stretch;
  }

  .pool-title .hero-actions {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    width: 100%;
    justify-content: stretch;
  }

  .pool-title .hero-actions .inline-action {
    width: 100%;
  }

  .pool-title .hero-actions .button {
    min-height: 44px;
    padding-right: 8px;
    padding-left: 8px;
    font-size: .9rem;
  }

  .card-actions {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    width: 100%;
  }

  .card-actions > .button:first-child {
    grid-column: 1 / -1;
  }

  .card-actions .inline-action {
    width: 100%;
  }

  .pool-signup-fields,
  .pool-signup-footer,
  .pool-offer-card {
    display: grid;
    grid-template-columns: 1fr;
    align-items: stretch;
  }

  .card-actions .button,
  .pool-title .button,
  .search-panel .button,
  .form-actions .button {
    width: 100%;
  }

  .card-actions .button {
    min-height: 44px;
  }

  .pool-facts {
    gap: 6px;
    margin: 10px 0;
  }

  .pool-facts span {
    min-height: 34px;
    padding: 7px 8px;
  }

  .pool-card-media,
  .article-card-media {
    margin: -16px -16px 12px;
  }

  .pool-card-media img,
  .article-card-media {
    aspect-ratio: 16 / 9;
  }

  .pool-card p {
    min-height: 0;
  }

  .price-panel {
    padding: 12px;
  }

  .schedule-panel {
    padding: 12px;
  }

  .price-item,
  .schedule-item {
    grid-template-columns: 1fr;
    gap: 7px;
  }

  .price-amount,
  .schedule-hours {
    justify-self: start;
    white-space: normal;
    text-align: left;
  }

  .announcement-body {
    gap: 12px;
  }

  .search-panel,
  .form-card,
  .detail-panel,
  .pool-card,
  .article-card,
  .moderation-card {
    padding: 16px;
  }

  .quick-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  .quick-card {
    min-height: 96px;
    padding: 12px;
  }

  .inline-admin-item {
    grid-template-columns: 72px minmax(0, 1fr);
  }

  .inline-admin-item .button {
    grid-column: 1 / -1;
    width: 100%;
  }

  .table-wrap {
    overflow: visible;
    border: 0;
    background: transparent;
    box-shadow: none;
  }

  table,
  thead,
  tbody,
  tr,
  th,
  td {
    display: block;
  }

  table {
    min-width: 0;
  }

  thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
  }

  tr {
    margin-bottom: 12px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #ffffff;
    box-shadow: var(--shadow);
  }

  td {
    display: grid;
    grid-template-columns: minmax(96px, 38%) minmax(0, 1fr);
    gap: 10px;
    border-bottom: 1px solid var(--line);
  }

  td:last-child {
    border-bottom: 0;
  }

  td::before {
    content: attr(data-label);
    color: var(--muted);
    font-weight: 800;
  }

  .site-footer {
    align-items: flex-start;
  }

  .empty-action .button {
    width: 100%;
  }

  dl {
    grid-template-columns: 1fr;
  }

  h1 {
    font-size: 2.05rem;
    max-width: 14ch;
  }
}

.inline-action {
  display: inline-flex;
  margin: 0;
}

.card-actions {
  align-items: center;
  flex-wrap: wrap;
}

.card-actions .button .ui-icon,
.save-search-prompt .ui-icon {
  width: 17px;
  height: 17px;
}

.verification-badge,
.verification-confirmed,
.spots-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 28px;
  padding: 5px 9px;
  border: 1px solid #b8dfca;
  border-radius: 7px;
  background: #eaf8f0;
  color: #17603b;
  font-size: .82rem;
  font-weight: 850;
}

.verification-badge.is-due {
  border-color: #edcf92;
  background: #fff8e9;
  color: #835d17;
}

.verification-badge .ui-icon,
.verification-confirmed .ui-icon {
  width: 15px;
  height: 15px;
}

.verification-date {
  display: block;
  margin-top: 6px;
}

.client-pool-tools,
.verification-confirm {
  display: grid;
  gap: 10px;
  margin-top: 10px;
}

.verification-confirm {
  padding: 12px;
  border: 1px solid #edcf92;
  border-radius: 8px;
  background: #fffaf0;
}

.save-search-prompt {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 15px 17px;
  border: 1px solid #bcd9f4;
  border-radius: 8px;
  background: #f3f9ff;
}

.save-search-prompt > div {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 2px 10px;
}

.save-search-prompt > div .ui-icon {
  grid-row: 1 / 3;
  align-self: center;
  color: var(--blue);
}

.save-search-prompt span {
  color: var(--muted);
}

.account-split {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(320px, .65fr);
  align-items: start;
  gap: 24px;
}

.group-grid,
.plan-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.group-card,
.plan-card,
.lead-match-card {
  min-width: 0;
  padding: 17px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: var(--shadow);
}

.group-card h3,
.plan-card h3 {
  margin: 12px 0 8px;
  font-size: 1.2rem;
}

.group-interest {
  margin-top: 14px;
  border-top: 1px solid var(--line);
  padding-top: 12px;
}

.group-interest summary {
  cursor: pointer;
  color: var(--blue-dark);
  font-weight: 850;
}

.group-interest form {
  display: grid;
  gap: 12px;
  margin-top: 14px;
}

.spots-badge {
  border-color: #bcd9f4;
  background: #eef7ff;
  color: var(--blue-dark);
}

.plan-price {
  color: var(--navy);
  font-size: 1.65rem;
  font-weight: 900;
}

.plan-price small {
  display: block;
  color: var(--muted);
  font-size: .8rem;
}

.lead-match-list {
  display: grid;
  gap: 12px;
}

.lead-match-card {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) auto minmax(100px, .35fr) minmax(110px, .4fr) auto;
  align-items: end;
  gap: 12px;
}

.lead-match-card > div {
  display: grid;
  gap: 3px;
}

.lead-match-card small,
.lead-match-card span {
  color: var(--muted);
}

.match-score {
  align-self: center;
  color: #17603b !important;
  font-size: 1.15rem;
  font-weight: 900;
}

.metric-row-wide {
  grid-template-columns: repeat(6, minmax(0, 1fr));
}

@media (max-width: 980px) {
  .account-split {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .group-grid,
  .plan-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .lead-match-card {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 680px) {
  .reservation-dialog {
    width: calc(100% - 16px);
    max-height: calc(100vh - 16px);
    max-height: calc(100dvh - 16px);
  }

  .reservation-dialog-header {
    gap: 10px;
    padding: 12px;
  }

  .reservation-dialog-thumb {
    flex-basis: 56px;
    width: 56px;
    height: 56px;
  }

  .reservation-dialog-location {
    gap: 9px;
  }

  .reservation-dialog-location h2 {
    font-size: 1.05rem;
  }

  .reservation-form {
    padding: 14px 12px;
  }

  .reservation-fields {
    grid-template-columns: 1fr;
  }

  .reservation-message {
    grid-column: auto;
  }

  .reservation-footer {
    display: grid;
    align-items: stretch;
  }

  .reservation-footer .button {
    width: 100%;
  }

  .account-split,
  .group-grid,
  .plan-grid,
  .lead-match-card {
    grid-template-columns: 1fr;
  }

  .save-search-prompt {
    align-items: stretch;
    flex-direction: column;
  }

  .save-search-prompt .button,
  .lead-match-card .button {
    width: 100%;
  }

  .metric-row-wide {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 360px) {
  .site-header {
    padding: 10px 12px;
  }

  .mobile-menu {
    top: 20px;
    left: min(calc(100vw - 56px), 300px);
  }

  .brand {
    width: 132px;
    flex-basis: 132px;
  }

  .main-nav {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hero {
    padding: 26px 12px 24px;
  }

  .page-hero {
    padding: 26px 12px 24px;
  }

  .section {
    padding-right: 12px;
    padding-left: 12px;
  }

  h1 {
    font-size: 1.86rem;
  }

  .page-hero h1 {
    font-size: 1.86rem;
  }

  h2 {
    font-size: 1.32rem;
  }
}
