:root {
  color-scheme: light;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: #f6f8fc;
  color: #0f172a;
  --ink: #0f172a;
  --muted: #667085;
  --line: #e8eef6;
  --paper: #ffffff;
  --paper-2: #ffffff;
  --brand: #0f3c6e;
  --brand-2: #12457f;
  --gold: #f6a136;
  --coral: #dc2626;
  --blue: #0d4fb9;
  --green: #059669;
  --shadow: 0 8px 24px rgba(15, 23, 42, 0.08), 0 2px 8px rgba(15, 23, 42, 0.06);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: #f6f8fc;
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  border: 0;
  cursor: pointer;
}

.app-shell {
  min-height: 100vh;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 16px 28px;
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid #eef1f6;
  backdrop-filter: blur(18px);
}

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

.brand-mark {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  color: #fff;
  background: var(--brand);
  border-radius: 10px;
  font-weight: 800;
}

.brand h1 {
  margin: 0;
  font-size: 18px;
  line-height: 1.1;
}

.brand span {
  display: block;
  color: var(--muted);
  font-size: 13px;
  margin-top: 3px;
}

.tabs {
  display: flex;
  gap: 6px;
  padding: 4px;
  background: #edf2fb;
  border: 1px solid #d6e0f5;
  border-radius: 10px;
}

.tab {
  min-height: 38px;
  padding: 0 14px;
  color: var(--muted);
  background: transparent;
  border-radius: 8px;
  font-weight: 700;
}

.tab.active {
  color: #fff;
  background: var(--brand);
}

.book-tab {
  min-height: 46px;
  padding: 0 22px;
  color: #fff;
  background: var(--gold);
  border: 1px solid #f6a136;
  box-shadow: 0 8px 20px rgba(246, 161, 54, 0.25);
}

.book-tab.active,
.book-tab:hover {
  color: #fff;
  background: var(--brand);
  border-color: var(--brand);
}

.segmented {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
  padding: 4px;
  background: #edf2fb;
  border: 1px solid #d6e0f5;
  border-radius: 10px;
}

.seg-btn {
  min-height: 42px;
  color: var(--muted);
  background: transparent;
  border-radius: 6px;
  font-weight: 900;
}

.seg-btn.active {
  color: #fff;
  background: var(--brand);
}

.page {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 28px 0 48px;
}

.site-hero {
  min-height: 34vh;
  display: flex;
  align-items: flex-end;
  color: #fff;
  background-position: center;
  background-size: cover;
  border-bottom: 1px solid #eef1f6;
}

.site-hero .page {
  padding-bottom: 30px;
}

.site-hero h1 {
  margin: 0;
  font-size: 34px;
}

.site-hero p {
  max-width: 620px;
  margin: 8px 0 0;
  color: rgba(255, 255, 255, 0.9);
}

.public-stay-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.public-stay-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: var(--shadow);
}

.public-carousel {
  position: relative;
  overflow: hidden;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #eef2ff;
}

.carousel-track {
  position: absolute;
  inset: 0;
  display: flex;
  gap: 8px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: thin;
}

.carousel-slide {
  flex: 0 0 100%;
  min-width: 100%;
  background-position: center;
  background-size: cover;
  scroll-snap-align: center;
}

.carousel-btn {
  position: absolute;
  top: 50%;
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  color: #0f172a;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid #e5e7eb;
  border-radius: 999px;
  transform: translateY(-50%);
  font-size: 22px;
  font-weight: 900;
}

.carousel-btn.prev {
  left: 10px;
}

.carousel-btn.next {
  right: 10px;
}

.detail-carousel {
  border-radius: 14px;
  box-shadow: var(--shadow);
}

.public-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 14px;
  padding: 18px;
}

.public-body,
.carousel-slide {
  cursor: pointer;
}

.public-body h3 {
  margin: 0;
  color: #23324d;
  font-size: 22px;
}

.public-body p {
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
}

.public-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.details-box {
  padding: 14px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
}

.details-box summary {
  cursor: pointer;
  color: #23324d;
  font-weight: 800;
}

.details-box p {
  margin: 10px 0;
}

.map-card {
  overflow: hidden;
  margin-top: auto;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
}

.map-card iframe {
  display: block;
  width: 100%;
  height: 240px;
  border: 0;
}

.cta-row.right {
  justify-content: flex-end;
}

.login-page {
  display: grid;
  min-height: 70vh;
  place-items: center;
}

.login-card {
  width: min(460px, 100%);
}

.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(360px, 0.9fr);
  gap: 24px;
  align-items: start;
  margin-top: 18px;
}

.detail-summary h1 {
  margin: 0;
  color: #23324d;
  font-size: 34px;
  line-height: 1.08;
}

.detail-summary p {
  color: var(--muted);
  line-height: 1.55;
}

.detail-info-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: 24px;
  margin-top: 24px;
  align-items: stretch;
}

.booking-detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(320px, 0.7fr);
  gap: 22px;
  align-items: start;
}

.booking-detail-grid .panel:nth-child(3) {
  grid-column: 1 / -1;
}

.ad-hoc-message {
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

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

.detail-list p {
  margin: 0;
  color: var(--muted);
}

.detail-info-grid > .panel {
  display: flex;
  flex-direction: column;
}

.detail-info-grid .map-card {
  flex: 1;
  min-height: 520px;
}

.detail-info-grid .map-card iframe {
  height: 100%;
  min-height: 520px;
}

.booking-unit-stack {
  position: relative;
  min-height: 330px;
  margin-bottom: 18px;
}

.booking-stack-card {
  position: absolute;
  display: grid;
  grid-template-columns: minmax(260px, 42%) minmax(0, 1fr) auto;
  gap: 20px;
  align-items: center;
  min-height: 230px;
  padding: 18px;
  color: inherit;
  text-align: left;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: var(--shadow);
}

.booking-stack-card.active {
  z-index: 2;
  width: 82%;
}

.booking-stack-card.behind {
  z-index: 1;
  width: 82%;
  opacity: 0.78;
  transform: scale(0.985);
}

.booking-stack-card.sandkorrel {
  left: 0;
}

.booking-stack-card.maranatha {
  right: 0;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 42%) auto;
}

.booking-stack-card.active {
  top: 0;
}

.booking-stack-card.behind {
  top: 42px;
}

.booking-stack-card.maranatha {
  grid-template-columns: minmax(0, 1fr) minmax(260px, 42%) auto;
}

.booking-stack-card.maranatha .booking-stack-photo {
  order: 2;
}

.booking-stack-card.maranatha .booking-stack-copy {
  order: 1;
}

.booking-stack-card.maranatha .pill {
  order: 3;
}

.booking-stack-card h3 {
  margin: 0;
  color: #23324d;
  font-size: 22px;
}

.booking-stack-card p {
  margin: 6px 0 0;
  color: var(--muted);
}

.booking-stack-photo {
  width: 100%;
  min-height: 190px;
  background-position: center;
  background-size: cover;
  border-radius: 12px;
}

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

.review-form {
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.review-form h3 {
  margin: 0 0 12px;
  color: #23324d;
}

.contact-pills a {
  text-decoration: none;
}

.contact-pills a:hover {
  color: #fff;
  background: var(--brand);
}

.hero {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 22px;
  align-items: stretch;
  margin-bottom: 24px;
}

.slim-hero .hero-copy {
  min-height: 220px;
}

.hero-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 320px;
  padding: 32px;
  color: #fff;
  background:
    linear-gradient(120deg, rgba(10, 61, 98, 0.88), rgba(15, 60, 110, 0.78)),
    url("/images/sandkorrel15.jpg");
  background-position: center;
  background-size: cover;
  border-radius: 14px;
  box-shadow: var(--shadow);
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--brand);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero h2,
.section-head h2,
.panel h2 {
  margin: 0;
  font-size: 34px;
  line-height: 1.08;
  letter-spacing: 0;
}

.hero p {
  max-width: 620px;
  margin: 16px 0 0;
  color: rgba(255, 255, 255, 0.9);
  font-size: 17px;
  line-height: 1.55;
}

.hero-panel,
.panel,
.unit-card,
.booking-card,
.mini-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: var(--shadow);
}

.hero-panel {
  padding: 22px;
}

.soft-guide,
.admin-guide {
  display: grid;
  gap: 16px;
  align-items: center;
  margin-bottom: 18px;
  padding: 18px;
  background: #fff;
  border: 1px solid var(--line);
  border-top: 4px solid var(--gold);
  border-radius: 14px;
  box-shadow: var(--shadow);
}

.admin-compact-bar {
  display: grid;
  grid-template-columns: minmax(0, 0.75fr) minmax(520px, 1.25fr);
  gap: 18px;
  align-items: center;
  margin-bottom: 18px;
  padding: 14px 18px;
  background: #fff;
  border: 1px solid var(--line);
  border-top: 4px solid var(--gold);
  border-radius: 14px;
  box-shadow: var(--shadow);
}

.admin-compact-bar h2 {
  margin: 0;
  color: #0f172a;
  font-size: 24px;
}

.admin-compact-bar p {
  margin: 6px 0 0;
  color: var(--muted);
}

.admin-filter-tabs {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.admin-filter-tabs button {
  min-height: 42px;
  padding: 0 10px;
  color: var(--muted);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  font-weight: 800;
}

.admin-filter-tabs button.active {
  color: #0f172a;
  border-color: #f6d392;
  box-shadow: inset 0 -2px 0 var(--gold);
}

.admin-top-tabs {
  align-items: center;
}

.rates-unit-select {
  max-width: 360px;
  justify-self: end;
}

.soft-guide {
  grid-template-columns: minmax(0, 1fr) auto;
}

.admin-guide {
  grid-template-columns: minmax(0, 0.85fr) minmax(430px, 1.15fr);
}

.soft-guide h2,
.admin-guide h2 {
  margin: 0;
  font-size: 28px;
  line-height: 1.1;
}

.soft-guide p,
.admin-guide p {
  margin: 6px 0 0;
  color: var(--muted);
  line-height: 1.4;
}

.soft-guide .eyebrow,
.admin-guide .eyebrow {
  margin: 0 0 8px;
}

.hero-green-card {
  display: grid;
  gap: 10px;
  padding: 18px;
  color: #fff;
  background: var(--brand);
  border-radius: 12px;
}

.hero-green-card strong {
  font-size: 46px;
  line-height: 1;
}

.hero-green-card span {
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.45;
}

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

.metric {
  min-height: 92px;
  padding: 16px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
}

.compact-metrics .metric {
  min-height: 74px;
  padding: 12px;
}

.compact-metrics .metric strong {
  font-size: 24px;
}

.metric strong {
  display: block;
  font-size: 28px;
}

.metric span {
  color: var(--muted);
  font-size: 13px;
}

.metric-button {
  width: 100%;
  color: inherit;
  text-align: left;
}

.metric-button.active {
  outline: 3px solid rgba(215, 155, 53, 0.38);
}

.guest-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.guest-steps div {
  display: grid;
  grid-template-columns: 24px 1fr;
  gap: 8px;
  align-items: center;
  padding: 8px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
}

.guest-steps strong {
  display: grid;
  width: 24px;
  height: 24px;
  place-items: center;
  color: #fff;
  background: var(--brand);
  border-radius: 999px;
  font-size: 12px;
}

.guest-steps span {
  font-size: 13px;
  color: var(--ink);
  line-height: 1.35;
}

.grid-2 {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(360px, 1.05fr);
  gap: 22px;
  align-items: start;
}

.compact-how,
.portal-flow {
  margin-bottom: 16px;
}

.compact-how h2 {
  margin-bottom: 10px;
  font-size: 22px;
}

.compact-how {
  padding: 14px;
}

.unit-list-horizontal {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.portal-booking-grid {
  grid-template-columns: minmax(0, 1fr) minmax(380px, 0.82fr);
}

.panel {
  padding: 22px;
}

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 16px;
}

.section-head p,
.panel-sub {
  margin: 8px 0 0;
  color: var(--muted);
  line-height: 1.45;
}

.unit-list,
.booking-list,
.automation-list {
  display: grid;
  gap: 12px;
}

.unit-card,
.booking-card,
.mini-card {
  padding: 16px;
}

.portal-calendar {
  margin-top: 18px;
}

.unit-card {
  width: 100%;
  overflow: hidden;
  color: inherit;
  text-align: left;
}

.unit-photo {
  height: 180px;
  margin: -16px -16px 14px;
  background-position: center;
  background-size: cover;
}

.unit-card h3 {
  color: #23324d;
}

.unit-card.selected {
  outline: 3px solid rgba(15, 60, 110, 0.22);
}

.unit-top {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 12px;
}

.unit-card h3,
.booking-card h3,
.mini-card h3 {
  margin: 0;
  font-size: 18px;
}

.unit-card p,
.booking-card p,
.mini-card p {
  margin: 8px 0 0;
  color: var(--muted);
  line-height: 1.45;
}

.pill {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 3px 9px;
  color: #0f1d35;
  background: #edf2fb;
  border: 1px solid #d6e0f5;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
}

.pill.warn {
  color: #7d3b10;
  background: #fff7e8;
  border-color: #f6d392;
}

.pill.danger {
  color: #8d211a;
  background: #fef2f2;
  border-color: #fecaca;
}

.pill.blue {
  color: #1e4f73;
  background: #edf2fb;
  border-color: #d6e0f5;
}

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

.field {
  display: grid;
  gap: 7px;
}

.field.full {
  grid-column: 1 / -1;
}

.field label {
  color: #31433f;
  font-size: 13px;
  font-weight: 800;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 44px;
  padding: 10px 12px;
  color: var(--ink);
  background: #fff;
  border: 1px solid #d6dee9;
  border-radius: 10px;
}

.field textarea {
  min-height: 94px;
  resize: vertical;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 42px;
  padding: 0 15px;
  color: #fff;
  background: var(--brand);
  border-radius: 10px;
  font-weight: 800;
}

.btn.secondary {
  color: var(--brand);
  background: #edf2fb;
  border: 1px solid #d6e0f5;
}

.btn.ghost {
  color: var(--ink);
  background: transparent;
  border: 1px solid var(--line);
}

.btn.warn {
  color: #fff;
  background: var(--coral);
}

.quote {
  display: grid;
  gap: 9px;
  margin-top: 16px;
  padding: 14px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
}

.quote-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.quote-row.total {
  padding-top: 10px;
  border-top: 1px solid var(--line);
  font-size: 18px;
  font-weight: 900;
}

.rate-pending-note {
  display: grid;
  gap: 4px;
  padding: 12px;
  color: #5b3b00;
  background: #fff8e8;
  border: 1px solid #e5b75f;
  border-radius: 10px;
  line-height: 1.4;
}

.form-section-title {
  margin: 20px 0 12px;
  font-size: 22px;
}

.calendar-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 5px;
}

.day-name,
.day {
  min-height: 42px;
  padding: 7px;
  border-radius: 6px;
}

.day-name {
  display: grid;
  place-items: center;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.day {
  position: relative;
  width: 100%;
  color: inherit;
  text-align: left;
  background: #fff;
  border: 1px solid var(--line);
  font-size: 12px;
}

.day:disabled {
  cursor: default;
}

.day-empty,
.day-empty:disabled {
  visibility: hidden;
  background: transparent;
  border-color: transparent;
}

.day.selectable {
  cursor: pointer;
}

.day.selectable:hover {
  border-color: var(--brand);
  box-shadow: inset 0 0 0 2px rgba(15, 60, 110, 0.16);
}

.day.picked-start,
.day.picked-range,
.day.focused-booking {
  color: #fff;
  background: var(--brand);
  border-color: var(--brand);
}

.day.picked-end {
  color: var(--brand);
  background: #fff;
  border-color: var(--brand);
  box-shadow: inset 0 0 0 2px rgba(15, 60, 110, 0.18);
}

.picked-key {
  color: #0f1d35;
  background: #edf2fb;
  border-color: var(--brand);
}

.day span {
  font-weight: 800;
}

.day em {
  display: block;
  margin-top: 4px;
  font-size: 9px;
  font-style: normal;
  font-weight: 500;
  line-height: 1.15;
  white-space: nowrap;
}

.two-month-calendar .day em {
  font-size: 8px;
}

.admin-grid .day em {
  font-size: 8px;
  font-weight: 500;
}

.day.muted {
  opacity: 0.35;
}

.day.busy {
  color: #fff;
  background: #0a3d62;
  border-color: #0a3d62;
}

.day.pending {
  color: #442c02;
  background: #fff7e8;
  border-color: #f6d392;
}

.day.conflict {
  color: #fff;
  background: #dc2626;
  border-color: #dc2626;
}

.day.owner {
  color: #fff;
  background: #0d4fb9;
  border-color: #0d4fb9;
}

.day.past-date {
  opacity: 0.35;
  color: var(--muted);
  pointer-events: none;
  cursor: default;
}

.day.past-date em {
  display: none;
}

.day.historical {
  background: #c8ddf5 !important;
  color: #4a6d94 !important;
  border-color: #c8ddf5 !important;
  opacity: 0.65;
}

.day.historical em {
  color: #6b8db5;
}

.admin-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(340px, 0.9fr);
  gap: 22px;
  align-items: start;
}

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

.two-month-calendar h3 {
  margin: 0 0 10px;
  font-size: 18px;
}

.focused-card {
  outline: 3px solid rgba(215, 155, 53, 0.38);
}

.rate-card {
  overflow: hidden;
}

.rate-calendar-wrap {
  margin-top: 14px;
  padding: 12px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
}

.compact-calendar .day {
  min-height: 48px;
}

.rate-day em {
  color: inherit;
}

.rate-calendar-toolbar {
  margin-bottom: 18px;
  text-align: center;
}

.rate-calendar-toolbar h3 {
  margin: 2px 0 0;
}

.rates-workspace {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 360px);
  gap: 22px;
  align-items: start;
}

.rate-calendar-panel {
  min-width: 0;
}

.rate-two-month-calendar {
  padding: 16px;
  background: #f8fafc;
  border: 1px solid var(--line);
  border-radius: 16px;
}

.rate-calendar-grid .day {
  min-height: 76px;
  padding: 7px;
}

.rate-day:not(:disabled) {
  cursor: pointer;
}

.rate-day:not(:disabled):hover {
  border-color: var(--brand);
  box-shadow: inset 0 0 0 2px rgba(15, 60, 110, 0.12);
}

.rate-day em {
  overflow: hidden;
  font-size: 9px !important;
  font-weight: 700;
  text-overflow: ellipsis;
}

.rate-day small,
.rate-day b {
  display: block;
  margin-top: 3px;
  font-size: 8px;
  line-height: 1.1;
}

.rate-day small {
  color: var(--muted);
}

.rate-day b {
  color: #7a4e00;
  font-weight: 800;
}

.rate-day.rate-override {
  background: #fff8e8;
  border-color: #e5b75f;
}

.rate-day.rate-unpriced {
  background: #f3f4f6;
  border-color: #94a3b8;
  border-style: dashed;
}

.rate-day.rate-unpriced b {
  color: #475569;
}

.rate-day.rate-locked {
  color: #fff;
  background: #526173;
  border-color: #526173;
  opacity: 0.9;
}

.rate-day.rate-locked small,
.rate-day.rate-locked b {
  color: #fff;
}

.rate-day.past-date small,
.rate-day.past-date b {
  display: none;
}

.rate-day.picked-start,
.rate-day.picked-range,
.rate-day.picked-end {
  color: #fff;
  background: var(--brand);
  border-color: var(--brand);
}

.rate-day.picked-start {
  box-shadow: inset 4px 0 0 var(--accent);
}

.rate-day.picked-end {
  box-shadow: inset -4px 0 0 var(--accent);
}

.rate-day.picked-start small,
.rate-day.picked-start b,
.rate-day.picked-range small,
.rate-day.picked-range b,
.rate-day.picked-end small,
.rate-day.picked-end b {
  color: #fff;
}

.rate-calendar-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  margin-top: 12px;
  color: var(--muted);
  font-size: 12px;
}

.rate-calendar-legend span {
  display: inline-flex;
  gap: 6px;
  align-items: center;
}

.legend-swatch {
  width: 12px;
  height: 12px;
  border: 1px solid var(--line);
  border-radius: 3px;
  background: #fff;
}

.legend-swatch.override {
  background: #fff8e8;
  border-color: #e5b75f;
}

.legend-swatch.no-rate {
  background: #f3f4f6;
  border-color: #94a3b8;
  border-style: dashed;
}

.legend-swatch.locked {
  background: #526173;
  border-color: #526173;
}

.legend-swatch.past {
  opacity: 0.35;
}

.rate-editor-panel {
  position: sticky;
  top: 16px;
  display: grid;
  gap: 16px;
  padding: 18px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: var(--shadow);
}

.rate-editor-panel h3,
.rate-editor-panel p {
  margin-top: 0;
}

.rate-editor-panel hr {
  width: 100%;
  margin: 0;
  border: 0;
  border-top: 1px solid var(--line);
}

.selection-hint {
  padding: 9px 11px;
  color: #614000;
  background: #fff8e8;
  border-radius: 9px;
  font-size: 12px;
}

.rate-range-form,
.cleaning-fee-form,
.property-rate-form {
  display: grid;
  gap: 11px;
}

.rate-field-toggle {
  display: flex;
  gap: 9px;
  align-items: center;
  font-weight: 800;
}

.rate-field-toggle input {
  width: 18px;
  height: 18px;
}

.rate-safety-note {
  display: grid;
  gap: 3px;
  padding: 10px 12px;
  color: #334155;
  background: #eef4f8;
  border-radius: 10px;
  font-size: 12px;
}

.latest-rate-change {
  display: grid;
  gap: 8px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

.latest-rate-change .btn {
  justify-self: start;
}

.btn:disabled {
  cursor: not-allowed;
  opacity: 0.45;
}

.rate-periods {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

@media (max-width: 1100px) {
  .rates-workspace {
    grid-template-columns: 1fr;
  }

  .rate-editor-panel {
    position: static;
  }
}

.booking-card {
  display: grid;
  gap: 12px;
}

.booking-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.booking-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.status-line {
  display: grid;
  gap: 7px;
}

.progress {
  height: 8px;
  overflow: hidden;
  background: #edf2fb;
  border-radius: 999px;
}

.progress span {
  display: block;
  height: 100%;
  background: #059669;
}

.toast {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 40;
  max-width: min(440px, calc(100% - 36px));
  padding: 14px 16px;
  color: #fff;
  background: var(--brand);
  border-radius: 12px;
  box-shadow: var(--shadow);
}

.admin-float {
  position: fixed;
  right: 14px;
  bottom: 14px;
  z-index: 32;
  min-height: 30px;
  padding: 0 10px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid var(--line);
  border-radius: 999px;
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.08);
  font-size: 12px;
  font-weight: 800;
}

.admin-float:hover {
  color: #fff;
  background: var(--brand);
}

.hidden {
  display: none;
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 35;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(23, 33, 31, 0.42);
}

.modal {
  width: min(620px, 100%);
  max-height: min(760px, calc(100vh - 36px));
  overflow: auto;
  padding: 20px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: var(--shadow);
}

.modal h2 {
  margin: 0 0 14px;
  font-size: 24px;
}

@media (max-width: 860px) {
  .topbar {
    position: static;
    flex-direction: column;
    align-items: stretch;
    padding: 14px 16px;
  }

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

  .page {
    width: min(100% - 20px, 720px);
    padding-top: 16px;
  }

  .hero,
  .grid-2,
  .admin-grid,
  .booking-detail-grid,
  .soft-guide,
  .admin-guide,
  .admin-compact-bar,
  .public-stay-grid,
  .detail-layout,
  .detail-info-grid,
  .booking-stack-card,
  .review-grid {
    grid-template-columns: 1fr;
  }

  .booking-unit-stack {
    min-height: 420px;
  }

  .booking-stack-card,
  .booking-stack-card.active,
  .booking-stack-card.behind {
    position: absolute;
    grid-template-columns: 1fr;
    width: 88%;
    min-height: 260px;
    margin: 0;
    opacity: 1;
  }

  .booking-stack-card.sandkorrel {
    left: 0;
    right: auto;
  }

  .booking-stack-card.maranatha {
    right: 0;
    left: auto;
    grid-template-columns: 1fr;
  }

  .booking-stack-card.active {
    top: 0;
    z-index: 2;
  }

  .booking-stack-card.behind {
    top: 64px;
    z-index: 1;
    opacity: 0.72;
    transform: scale(0.97);
  }

  .booking-stack-card.maranatha .booking-stack-photo,
  .booking-stack-card.maranatha .booking-stack-copy,
  .booking-stack-card.maranatha .pill {
    order: initial;
  }

  .booking-stack-photo {
    min-height: 130px;
  }

  .booking-stack-card h3 {
    font-size: 18px;
  }

  .booking-stack-card p {
    font-size: 13px;
  }

  .booking-detail-grid .panel:nth-child(3) {
    grid-column: auto;
  }

  .hero-copy {
    min-height: auto;
    padding: 24px;
  }

  .hero h2,
  .section-head h2,
  .panel h2 {
    font-size: 27px;
  }

  .form-grid,
  .metric-grid,
  .guest-steps,
  .unit-list-horizontal,
  .two-month-calendar {
    grid-template-columns: 1fr;
  }

  .portal-booking-grid {
    grid-template-columns: 1fr;
  }

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

  .rates-unit-select {
    max-width: none;
    justify-self: stretch;
  }

  .calendar-grid {
    gap: 3px;
  }

  .day {
    min-height: 38px;
    padding: 5px;
  }
}

/* ---- Footer ------------------------------------------------ */

.site-footer {
  margin-top: 48px;
  padding: 32px 0;
  border-top: 1px solid var(--line);
  text-align: center;
  font-size: 13px;
  color: var(--muted);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 20px;
  margin-top: 10px;
}

.footer-links a {
  color: var(--brand);
  text-decoration: none;
  font-size: 13px;
}

.footer-links a:hover {
  text-decoration: underline;
}

/* ---- Policy pages ------------------------------------------ */

.policy-page h1 {
  font-size: 24px;
  margin: 0 0 4px;
}

.policy-content h3 {
  font-size: 16px;
  margin: 24px 0 8px;
  color: var(--ink);
}

.policy-content p,
.policy-content li {
  font-size: 14px;
  line-height: 1.7;
  color: #374151;
}

.policy-content ul {
  padding-left: 20px;
  margin: 8px 0;
}

.policy-content li {
  margin-bottom: 4px;
}

.policy-table {
  width: 100%;
  border-collapse: collapse;
  margin: 12px 0;
  font-size: 14px;
}

.policy-table th,
.policy-table td {
  text-align: left;
  padding: 10px 14px;
  border-bottom: 1px solid var(--line);
}

.policy-table th {
  background: #f8f9fa;
  font-weight: 600;
  color: var(--ink);
}

.policy-table td {
  color: #374151;
}
