@import url("https://fonts.googleapis.com/css2?family=Instrument+Sans:wght@400;500;600;700&family=Fraunces:opsz,wght@9..144,500;9..144,700&display=swap");

:root {
  --ink: #102033;
  --ink-soft: #334155;
  --muted: #64748b;
  --line: #dbe3ee;
  --line-soft: #e8eef6;
  --bg: #f3f6fb;
  --panel: #ffffff;
  --accent: #0e7c86;
  --accent-2: #f97316;
  --accent-hover: #0a5f67;
  --accent-soft: #d9f3f5;
  --navy: #0b1c2c;
  --navy-2: #14324a;
  --danger: #be123c;
  --danger-bg: #ffe4e6;
  --ok: #047857;
  --ok-bg: #d1fae5;
  --warn: #b45309;
  --warn-bg: #ffedd5;
  --shadow: 0 10px 30px rgba(16, 32, 51, 0.08);
  --shadow-lg: 0 24px 60px rgba(16, 32, 51, 0.18);
  --radius: 18px;
  --radius-sm: 12px;
  --font: "Instrument Sans", "Segoe UI", sans-serif;
  --display: "Fraunces", Georgia, serif;
  --max: 1180px;
  --header-h: 72px;
}

*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
}

@supports (view-transition-name: none) {
  @view-transition { navigation: auto; }
  ::view-transition-old(root) {
    animation: vt-out 0.22s ease both;
  }
  ::view-transition-new(root) {
    animation: vt-in 0.28s ease both;
  }
}

@keyframes vt-out {
  to { opacity: 0; filter: blur(4px); transform: scale(0.985); }
}
@keyframes vt-in {
  from { opacity: 0; filter: blur(4px); transform: translateY(8px); }
}
@keyframes rise {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: none; }
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font);
  font-size: 1.05rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
}

body.public-body {
  display: flex;
  flex-direction: column;
  background:
    radial-gradient(900px 420px at 0% 0%, rgba(14, 124, 134, 0.12), transparent 60%),
    radial-gradient(700px 380px at 100% 10%, rgba(249, 115, 22, 0.10), transparent 55%),
    linear-gradient(180deg, #eef4f8 0%, #f7f9fc 40%, #f3f6fb 100%);
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-hover); }

h1, h2, h3 {
  font-family: var(--display);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.15;
  color: var(--ink);
  margin: 0 0 0.75rem;
}
h1 { font-size: clamp(2rem, 4vw, 3rem); }
h2 { font-size: clamp(1.4rem, 2.4vw, 1.85rem); }
p { margin: 0 0 0.9rem; }
.muted { color: var(--muted); }

.container {
  width: min(var(--max), calc(100% - 2.5rem));
  margin-inline: auto;
}

.page-shell {
  flex: 1;
  animation: rise 0.45s ease both;
}

.page-header {
  padding: 1.5rem 0 0.5rem;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  align-items: center;
  color: var(--muted);
  font-size: 0.92rem;
  margin-bottom: 0.75rem;
}
.breadcrumb a { color: var(--ink-soft); font-weight: 500; }
.breadcrumb a:hover { color: var(--accent); }
.breadcrumb .sep { opacity: 0.5; }

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-weight: 600;
  color: var(--ink-soft);
  margin-bottom: 0.85rem;
}
.back-link:hover { color: var(--accent); }

/* Header / nav */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--header-h);
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(219, 227, 238, 0.8);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  display: inline-flex;
  align-items: baseline;
  gap: 0.45rem;
  font-family: var(--display);
  font-size: 1.45rem;
  font-weight: 700;
  color: var(--navy);
  text-decoration: none;
}
.brand span {
  color: var(--accent);
}
.brand:hover { color: var(--navy); }

.site-nav {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.site-nav a {
  position: relative;
  padding: 0.55rem 0.9rem;
  border-radius: 999px;
  color: var(--ink-soft);
  font-weight: 600;
  text-decoration: none;
  transition: background 0.15s ease, color 0.15s ease;
}
.site-nav a:hover {
  background: var(--accent-soft);
  color: var(--accent-hover);
}
.site-nav a.is-active {
  background: var(--navy);
  color: #fff;
}
.site-nav .nav-cta {
  margin-left: 0.35rem;
  background: var(--accent);
  color: #fff !important;
}
.site-nav .nav-cta:hover {
  background: var(--accent-hover);
  color: #fff !important;
}

/* Hero */
.hero {
  position: relative;
  min-height: min(78vh, 720px);
  display: grid;
  align-items: end;
  color: #fff;
  overflow: hidden;
  isolation: isolate;
}
.hero-media {
  position: absolute;
  inset: 0;
  z-index: -2;
}
.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.04);
}
.hero-shade {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(100deg, rgba(11, 28, 44, 0.88) 8%, rgba(11, 28, 44, 0.55) 48%, rgba(14, 124, 134, 0.35) 100%),
    linear-gradient(0deg, rgba(11, 28, 44, 0.55), transparent 45%);
}
.hero-content {
  width: min(var(--max), calc(100% - 2.5rem));
  margin: 0 auto;
  padding: 5rem 0 3.5rem;
  max-width: 40rem;
  animation: rise 0.55s ease both;
}
.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.22);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}
.hero h1 {
  color: #fff;
  font-size: clamp(2.6rem, 6vw, 4.2rem);
  margin-bottom: 0.85rem;
}
.hero p {
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.15rem;
  max-width: 34rem;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.6rem;
}

.section {
  padding: 3.25rem 0;
}
.section-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 1.5rem;
}
.section-head p { margin: 0.25rem 0 0; }

.card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
}

.card {
  background: var(--panel);
  border: 1px solid rgba(219, 227, 238, 0.9);
  border-radius: calc(var(--radius) + 2px);
  overflow: hidden;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  text-decoration: none;
  color: inherit;
}
.card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  color: inherit;
}
.card-media {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: #cbd5e1;
}
.card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s ease;
}
.card:hover .card-media img { transform: scale(1.06); }
.card-chip {
  position: absolute;
  left: 0.85rem;
  bottom: 0.85rem;
  background: rgba(255, 255, 255, 0.92);
  color: var(--navy);
  font-weight: 700;
  font-size: 0.85rem;
  padding: 0.35rem 0.65rem;
  border-radius: 999px;
}
.card-body {
  padding: 1.1rem 1.15rem 1.25rem;
  display: grid;
  gap: 0.35rem;
}
.card-body h3 {
  font-size: 1.25rem;
  margin: 0;
}
.price {
  font-weight: 700;
  color: var(--accent);
}

.band {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-2) 55%, #0e7c86 140%);
  color: #fff;
  border-radius: calc(var(--radius) + 6px);
  padding: 2rem;
  box-shadow: var(--shadow-lg);
}
.band h2 { color: #fff; }
.band p { color: rgba(255, 255, 255, 0.88); }
.band .btn-secondary {
  background: rgba(255,255,255,0.12);
  border-color: rgba(255,255,255,0.3);
  color: #fff !important;
}
.band .btn-secondary:hover {
  background: rgba(255,255,255,0.2);
  color: #fff !important;
}

.site-footer {
  margin-top: auto;
  background: var(--navy);
  color: rgba(255, 255, 255, 0.78);
  padding: 2.5rem 0 1.75rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}
.site-footer h3 {
  color: #fff;
  font-size: 1.05rem;
  margin-bottom: 0.75rem;
}
.site-footer a {
  color: rgba(255, 255, 255, 0.82);
  display: inline-block;
  margin-bottom: 0.35rem;
}
.site-footer a:hover { color: #fff; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.12);
  padding-top: 1rem;
  font-size: 0.92rem;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  min-height: 2.75rem;
  padding: 0.65rem 1.2rem;
  border-radius: 999px;
  border: 1px solid transparent;
  background: var(--accent);
  color: #fff !important;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none !important;
  transition: transform 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
  box-shadow: 0 8px 18px rgba(14, 124, 134, 0.25);
}
.btn:hover {
  background: var(--accent-hover);
  transform: translateY(-1px);
}
.btn-secondary, .btn-outline {
  background: #fff;
  color: var(--ink) !important;
  border-color: var(--line);
  box-shadow: none;
}
.btn-secondary:hover, .btn-outline:hover {
  background: #f8fafc;
  color: var(--ink) !important;
}
.btn-accent {
  background: var(--accent-2);
  box-shadow: 0 8px 18px rgba(249, 115, 22, 0.28);
}
.btn-accent:hover { background: #ea580c; }
.btn-danger { background: var(--danger); box-shadow: none; }
.btn-danger:hover { background: #9f1239; }
.btn-sm { min-height: 2.15rem; padding: 0.35rem 0.85rem; font-size: 0.92rem; }
.btn-block { width: 100%; border-radius: var(--radius-sm); }
.actions { display: flex; flex-wrap: wrap; gap: 0.65rem; align-items: center; }

/* Panels / forms / tables */
.panel {
  background: var(--panel);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.35rem 1.4rem;
  margin-bottom: 1.15rem;
}
.form-grid { display: grid; gap: 1rem; }
.form-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.form-row-4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; }
.field { display: grid; gap: 0.4rem; min-width: 0; }
.field label, .field > span { font-size: 0.92rem; font-weight: 600; color: var(--ink-soft); }
.field input, .field select, .field textarea, .control {
  width: 100%;
  min-width: 0;
  appearance: none;
  font: inherit;
  font-size: 16px;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 0.7rem 0.85rem;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: 2px solid rgba(14, 124, 134, 0.25);
  border-color: var(--accent);
}
.field textarea { min-height: 8rem; resize: vertical; }
.field-check { display: flex; gap: 0.55rem; align-items: flex-start; font-weight: 500; color: var(--ink-soft); }
.field-check input { width: 1.1rem; height: 1.1rem; margin-top: 0.2rem; accent-color: var(--accent); }
.check-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 0.55rem 1rem; }
.fieldset { border: 1px solid var(--line-soft); border-radius: var(--radius-sm); padding: 1rem; margin: 0; }
.fieldset legend { padding: 0 0.35rem; font-weight: 600; color: var(--ink-soft); }

.table-wrap { overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; }
.table th, .table td {
  padding: 0.8rem 0.65rem;
  border-bottom: 1px solid var(--line-soft);
  text-align: left;
  vertical-align: top;
}
.table th {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted);
}

.alert { padding: 0.9rem 1rem; border-radius: var(--radius-sm); margin-bottom: 1rem; border: 1px solid transparent; }
.alert-error { background: var(--danger-bg); color: var(--danger); border-color: #fecdd3; }
.alert-success { background: var(--ok-bg); color: var(--ok); border-color: #a7f3d0; }

.badge {
  display: inline-flex;
  align-items: center;
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  background: #e2e8f0;
  color: var(--ink-soft);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: capitalize;
}
.badge-new, .badge-hold { background: var(--warn-bg); color: var(--warn); }
.badge-accepted, .badge-active, .badge-booked { background: var(--ok-bg); color: var(--ok); }
.badge-declined, .badge-cancelled, .badge-archived, .badge-spam { background: var(--danger-bg); color: var(--danger); }

.kpi-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 0.9rem; margin-bottom: 1.15rem; }
.kpi {
  background: var(--panel);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.1rem;
}
.kpi .n { font-family: var(--display); font-size: 1.9rem; font-weight: 700; }

.filter-bar { display: flex; flex-wrap: wrap; gap: 0.45rem; margin-bottom: 1rem; }
.filter-bar a {
  color: var(--ink-soft);
  font-weight: 600;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  text-decoration: none;
  background: #fff;
  border: 1px solid var(--line-soft);
}
.filter-bar a.is-active, .filter-bar a:hover {
  background: var(--navy);
  border-color: var(--navy);
  color: #fff;
}

.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 0.85rem; }
.gallery-item { background: #fff; border: 1px solid var(--line-soft); border-radius: var(--radius-sm); padding: 0.5rem; }
.gallery-item img { width: 100%; height: 120px; object-fit: cover; border-radius: 8px; }
.drag-handle { font-size: 0.8rem; color: var(--muted); cursor: grab; margin-bottom: 0.35rem; }
.file-line { display: flex; align-items: center; gap: 0.65rem; flex-wrap: wrap; }
.file-choose {
  font: inherit;
  font-size: 0.85rem;
  padding: 0.28rem 0.7rem;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  cursor: pointer;
}
.file-line span { color: var(--muted); font-size: 0.92rem; }

.property-hero-gallery {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 0.75rem;
  margin: 1rem 0 1.5rem;
}
.property-hero-gallery img {
  width: 100%;
  height: 100%;
  min-height: 240px;
  max-height: 460px;
  object-fit: cover;
  border-radius: var(--radius);
  background: #cbd5e1;
}
.property-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 0.85rem;
  margin-bottom: 1rem;
}
.property-meta span {
  background: #fff;
  border: 1px solid var(--line-soft);
  border-radius: 999px;
  padding: 0.35rem 0.75rem;
  color: var(--ink-soft);
  font-weight: 600;
  font-size: 0.92rem;
}
.facility-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 0.5rem;
  list-style: none;
  padding: 0;
  margin: 0;
}
.facility-list li {
  padding: 0.55rem 0.75rem;
  background: var(--accent-soft);
  color: var(--accent-hover);
  border-radius: var(--radius-sm);
  font-weight: 600;
}
.split { display: grid; grid-template-columns: 1.25fr 0.85fr; gap: 1.15rem; }

/* Admin */
.admin-shell {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  min-height: 100vh;
  background: var(--bg);
}
.admin-nav {
  background: linear-gradient(185deg, #0b1c2c 0%, #14324a 55%, #0e5d66 140%);
  color: #e7f4f5;
  padding: 0.85rem 0.75rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.05rem;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
  overscroll-behavior: contain;
}
.admin-nav .brand {
  color: #fff;
  margin: 0 0.35rem 0.55rem;
  padding: 0.35rem 0.55rem;
  font-size: 1rem;
}
.admin-nav a {
  color: rgba(231, 244, 245, 0.9);
  text-decoration: none;
  padding: 0.38rem 0.65rem;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.92rem;
  line-height: 1.25;
}
.admin-nav a:hover, .admin-nav a.is-active {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}
.admin-nav .section {
  margin: 0.55rem 0.65rem 0.1rem;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(231, 244, 245, 0.5);
}
.admin-nav .user-chip {
  margin: 0.15rem 0.65rem;
  color: rgba(231,244,245,0.8);
  font-size: 0.88rem;
}
.admin-nav .btn-outline {
  margin-top: 0.25rem;
  padding: 0.4rem 0.75rem;
  background: transparent;
  color: #fff !important;
  border-color: rgba(255,255,255,0.35);
  box-shadow: none;
}
.admin-nav a[href="/"] { margin-top: 0.35rem; }
.admin-main { padding: 1.5rem clamp(1rem, 2vw, 2rem) 2.5rem; min-width: 0; }
.admin-topbar {
  display: flex;
  justify-content: space-between;
  align-items: start;
  gap: 1rem;
  margin-bottom: 1.25rem;
}
.admin-topbar h1 { margin: 0.2rem 0 0; }
.title-row { display: flex; align-items: center; flex-wrap: wrap; gap: 0.45rem; }
.title-row h1 { margin: 0.2rem 0 0; }
.help-open {
  font: inherit;
  font-size: 0.85rem;
  font-weight: 700;
  margin-top: 0.35rem;
  padding: 0.15rem 0.6rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--accent);
  cursor: pointer;
}
.help-open:hover { background: var(--accent-soft); }
.help-dialog {
  width: min(880px, calc(100vw - 2rem));
  border: none;
  border-radius: var(--radius);
  padding: 0;
  box-shadow: var(--shadow-lg);
}
.help-dialog::backdrop { background: rgba(11, 28, 44, 0.45); }
.help-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 0.9rem 1.1rem;
  border-bottom: 1px solid var(--line-soft);
}
.help-head h2 { margin: 0; font-size: 1.25rem; }
.help-body { display: grid; grid-template-columns: 210px 1fr; }
.help-nav {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  padding: 0.65rem;
  border-right: 1px solid var(--line-soft);
}
.help-nav button {
  text-align: left;
  font: inherit;
  background: transparent;
  border: none;
  border-radius: 8px;
  padding: 0.45rem 0.6rem;
  cursor: pointer;
  color: var(--ink-soft);
}
.help-nav button.is-active,
.help-nav button:hover { background: var(--accent-soft); color: var(--navy); }
.help-article { padding: 0.4rem 1.2rem 1.3rem; overflow: auto; max-height: min(62vh, 560px); }
.help-article h3 { margin: 1rem 0 0.35rem; font-size: 1.05rem; }
.help-article p,
.help-article li { color: var(--ink-soft); line-height: 1.5; }
@media (max-width: 720px) {
  .help-body { grid-template-columns: 1fr; }
  .help-nav {
    flex-direction: row;
    flex-wrap: wrap;
    border-right: none;
    border-bottom: 1px solid var(--line-soft);
  }
}

body.auth-body {
  display: grid;
  place-items: center;
  min-height: 100vh;
  min-height: 100dvh;
  padding: max(1rem, env(safe-area-inset-top)) 1rem max(1rem, env(safe-area-inset-bottom));
  overflow-x: clip;
  background:
    linear-gradient(135deg, rgba(11,28,44,0.92), rgba(14,124,134,0.75)),
    linear-gradient(160deg, #0b1c2c, #0e7c86);
}
.auth-box {
  width: min(440px, 100%);
  background: #fff;
  border-radius: 22px;
  box-shadow: var(--shadow-lg);
  padding: 1.9rem 1.7rem 1.6rem;
}
.auth-box .lede { color: var(--muted); margin-bottom: 1.2rem; }
.hp, .sr-only {
  position: absolute !important;
  width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

/* Calendar */
.cal {
  margin-top: 0.5rem;
}
.cal.is-loading {
  opacity: 0.55;
  pointer-events: none;
}
.cal-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.85rem;
  flex-wrap: wrap;
}
.cal-nav-spacer {
  width: 6.75rem;
  flex: 0 0 auto;
}
.cal-toolbar-center {
  flex: 1;
  text-align: center;
  min-width: 12rem;
}
.cal-title {
  margin: 0;
  font-family: var(--display);
  font-size: 1.25rem;
}
.cal-today {
  display: inline-block;
  margin-top: 0.15rem;
  font-size: 0.85rem;
  font-weight: 600;
}
.cal-months {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr));
  gap: 1rem 1.15rem;
}
.cal-month {
  min-width: 0;
  padding: 0.65rem;
  border-radius: 14px;
  container-type: inline-size;
}
.cal-month.is-current {
  background: rgba(14, 124, 134, 0.06);
  box-shadow: inset 0 0 0 1px rgba(14, 124, 134, 0.28);
}
.cal-month-title {
  margin: 0 0 0.45rem;
  font-size: 1.05rem;
  text-align: center;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.45rem;
  flex-wrap: wrap;
}
.cal-month.is-current .cal-month-title {
  color: var(--accent-hover);
}
.cal-now {
  font-family: var(--font);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--accent-soft);
  border-radius: 999px;
  padding: 0.12rem 0.45rem;
}
.cal-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 0.35rem;
}
.cal-dow {
  text-align: center;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
  padding: 0.35rem 0;
}
.cal-cell {
  min-height: 2.55rem;
  border-radius: 10px;
  border: 1px solid var(--line-soft);
  background: #fff;
  padding: 0.28rem 0.3rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
}
.cal-cell.is-empty {
  border: 0;
  background: transparent;
  min-height: 0;
}
.cal-day {
  font-weight: 700;
  font-size: 0.92rem;
}
.cal-tag {
  display: none;
  font-size: 0.62rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  opacity: 0.9;
  line-height: 1.15;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
@container (min-width: 34rem) {
  .cal-tag { display: block; }
}
.cal-cell.is-available {
  background: #22c55e;
  border-color: #15803d;
  color: #052e16;
}
.cal-cell.is-booked {
  background: #be123c;
  border-color: #881337;
  color: #fff;
}
.cal-cell.is-blocked {
  background: #1e293b;
  border-color: #0f172a;
  color: #fff;
}
.cal-cell.is-hold {
  background: #fbbf24;
  border-color: #b45309;
  color: #1c1917;
}
.cal-cell.is-past {
  background: #cbd5e1;
  border-color: #64748b;
  color: #1e293b;
}
.cal-cell.is-outside.is-available,
.cal-cell.is-outside.is-past {
  background: transparent;
  border-color: transparent;
  color: #64748b;
}
.cal-cell.is-today {
  box-shadow: inset 0 0 0 2px #fff, inset 0 0 0 4px #0f172a;
}
.cal-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem 1rem;
  margin-top: 0.9rem;
  font-size: 0.88rem;
  color: var(--ink-soft);
}
.cal-legend span {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}
.swatch {
  width: 0.85rem;
  height: 0.85rem;
  border-radius: 4px;
  display: inline-block;
  border: 1px solid transparent;
}
.swatch.is-available { background: #22c55e; border-color: #15803d; }
.swatch.is-booked { background: #be123c; border-color: #881337; }
.swatch.is-blocked { background: #1e293b; border-color: #0f172a; }
.swatch.is-hold { background: #fbbf24; border-color: #b45309; }
.swatch.is-past { background: #cbd5e1; border-color: #64748b; }

@media (max-width: 980px) {
  .card-grid, .footer-grid, .split, .property-hero-gallery, .form-row, .form-row-4 {
    grid-template-columns: 1fr;
  }
  .admin-shell { grid-template-columns: 1fr; }
  .admin-nav {
    position: static;
    height: auto;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 0.25rem;
    padding: 0.85rem;
  }
  .admin-nav .brand, .admin-nav .section, .admin-nav .user-chip { width: 100%; }
  .site-header {
    height: auto;
  }
  .site-header .container {
    flex-wrap: wrap;
    align-items: flex-start;
    padding-block: 0.7rem;
  }
  .brand {
    font-size: 1.2rem;
    line-height: 1.2;
  }
  .site-nav {
    flex: 1 1 100%;
    flex-wrap: wrap;
  }
  .site-nav a {
    padding: 0.4rem 0.7rem;
    font-size: 0.92rem;
    white-space: nowrap;
  }
  .hero { min-height: 62vh; }
  .hero-content { padding: 2.25rem 0 2rem; }
  .hero h1 { font-size: clamp(2.1rem, 8vw, 3rem); }
  .container,
  .hero-content { width: min(var(--max), calc(100% - 1.5rem)); }
  body.public-body { overflow-x: clip; }
  .auth-box { padding: 1.35rem 1.1rem 1.2rem; }
  body.auth-body { place-items: start center; }
}
