:root {
  --ink: #102027;
  --muted: #64727d;
  --line: #dfe7ef;
  --bg: #f6f8fb;
  --primary: #0f766e;
  --primary-dark: #115e59;
  --accent: #f59e0b;
  --card: #ffffff;
}

/* Step 102: compact dark bill header for booking success */
.success-bill-page {
  min-height: 100vh;
  background:
    linear-gradient(180deg, #edf7f2 0, #f8fbfa 40%, #eef6f2 100%);
}

.success-bill-wrap {
  max-width: 1040px;
  margin: 0 auto;
  padding: 22px 16px 72px;
}

.success-bill-card {
  overflow: hidden;
  border: 1px solid rgba(15, 35, 29, .12);
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 24px 70px rgba(15, 35, 29, .12);
}

.success-bill-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(240px, .38fr);
  gap: 18px;
  align-items: end;
  background:
    linear-gradient(135deg, #071411 0, #0f332b 58%, #123f35 100%);
  color: #fff;
  padding: 24px;
}

.success-bill-head p,
.success-bill-head small,
.success-bill-head span {
  margin: 0;
  color: rgba(255, 255, 255, .72);
  font-weight: 800;
}

.success-bill-head p {
  font-size: 12px;
  letter-spacing: .08em;
}

.success-bill-head h1 {
  margin: 8px 0 7px;
  color: #fff;
  font-size: 34px;
  line-height: 1.14;
}

.success-bill-head aside {
  display: grid;
  gap: 8px;
  justify-items: end;
  text-align: right;
}

.success-bill-head aside strong {
  color: #fff;
  font-size: 27px;
  line-height: 1.1;
  overflow-wrap: anywhere;
}

.success-bill-status {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: rgba(255, 255, 255, .14);
  color: #fff;
  padding: 6px 10px;
  font-size: 12px;
  font-style: normal;
  font-weight: 900;
}

.success-bill-status.pending {
  background: #fff7ed;
  color: #c2410c;
}

.success-bill-status.confirmed {
  background: #ecfdf3;
  color: #047857;
}

.success-bill-status.rejected,
.success-bill-status.refunded {
  background: #fef2f2;
  color: #b91c1c;
}

.success-bill-body {
  display: grid;
  gap: 16px;
  padding: 18px;
}

.success-bill-topline,
.success-bill-money {
  display: grid;
  overflow: hidden;
  border: 1px solid #dce9e2;
  border-radius: 12px;
  background: #fff;
}

.success-bill-topline {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.success-bill-money {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  background: #f8fbfa;
}

.success-bill-topline > div,
.success-bill-money > div {
  display: grid;
  gap: 4px;
  min-width: 0;
  border-right: 1px solid #dce9e2;
  padding: 13px 14px;
}

.success-bill-topline > div:last-child,
.success-bill-money > div:last-child {
  border-right: 0;
}

.success-bill-topline span,
.success-bill-money span,
.success-bill-bank span,
.success-bill-payment-form label span,
.success-bill-section-head span {
  color: #66756d;
  font-size: 12px;
  font-weight: 900;
}

.success-bill-topline strong,
.success-bill-money strong,
.success-bill-bank strong {
  color: #10231d;
  font-size: 18px;
  line-height: 1.2;
  overflow-wrap: anywhere;
}

.success-bill-topline small {
  color: #66756d;
  font-size: 12px;
}

.success-bill-money strong {
  font-size: 25px;
}

.success-bill-section {
  min-width: 0;
  border: 1px solid #dce9e2;
  border-radius: 12px;
  background: #fff;
  padding: 14px;
}

.success-bill-section-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
  margin-bottom: 12px;
}

.success-bill-section-head h2 {
  margin: 0;
  color: #10231d;
  font-size: 20px;
  line-height: 1.24;
}

.success-bill-table {
  max-width: 100%;
  overflow-x: auto;
}

.success-bill-table table {
  width: 100%;
  min-width: 620px;
  border-collapse: collapse;
}

.success-bill-table th,
.success-bill-table td {
  border-bottom: 1px solid #e6f0eb;
  padding: 10px 12px;
  text-align: left;
}

.success-bill-table th {
  background: #f7fbf9;
  color: #66756d;
  font-size: 12px;
  font-weight: 900;
}

.success-bill-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(290px, .45fr);
  gap: 16px;
}

.success-bill-bank {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 12px;
}

.success-bill-bank > div {
  display: grid;
  gap: 4px;
  min-width: 0;
  border: 1px solid #dce9e2;
  border-radius: 10px;
  background: #f8fbfa;
  padding: 10px 12px;
}

.success-bill-note {
  margin: 0 0 12px;
  border: 1px solid #dbeafe;
  border-radius: 10px;
  background: #eff6ff;
  color: #1e3a8a;
  padding: 10px 12px;
  font-size: 14px;
  line-height: 1.55;
}

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

.success-bill-payment-form label {
  display: grid;
  gap: 6px;
  min-width: 0;
}

.success-bill-payment-form .span-2 {
  grid-column: 1 / -1;
}

.success-bill-payment-form input,
.success-bill-payment-form textarea {
  width: 100%;
  min-width: 0;
  border: 1px solid #c9d8d0;
  border-radius: 10px;
  background: #fff;
  color: #10231d;
  font-family: Tahoma, Arial, sans-serif;
  font-size: 15px;
  padding: 10px 12px;
}

.success-bill-payment-list {
  display: grid;
  gap: 10px;
}

.success-bill-payment-list > div {
  display: grid;
  gap: 6px;
  border: 1px solid #dce9e2;
  border-radius: 10px;
  background: #f8fbfa;
  padding: 10px 12px;
}

.success-bill-payment-list strong {
  color: #10231d;
}

.success-bill-payment-list span {
  color: #66756d;
  font-size: 13px;
  font-weight: 800;
}

.success-bill-payment-list a {
  color: #0f766e;
  font-weight: 900;
}

.success-bill-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
  border-top: 1px solid #dce9e2;
  padding-top: 16px;
}

.success-bill-btn {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 12px;
  cursor: pointer;
  font-family: Tahoma, Arial, sans-serif;
  font-size: 15px;
  font-weight: 900;
  padding: 0 16px;
  text-decoration: none;
}

.success-bill-btn.primary {
  background: linear-gradient(135deg, var(--primary), #0f9b7b);
  color: #fff;
}

.success-bill-btn.ghost {
  border: 1px solid #dce9e2;
  background: #fff;
  color: #10231d;
}

.success-bill-btn.dark {
  background: #10231d;
  color: #fff;
}

.success-bill-btn.line {
  background: #06c755;
  color: #fff;
}

.success-bill-error {
  margin: 18px;
  border: 1px solid #fecaca;
  border-radius: 12px;
  background: #fef2f2;
  color: #991b1b;
  padding: 14px;
  font-weight: 800;
}

@media (max-width: 900px) {
  .success-bill-head,
  .success-bill-grid {
    grid-template-columns: 1fr;
  }

  .success-bill-head aside {
    justify-items: start;
    text-align: left;
  }

  .success-bill-topline {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 620px) {
  .success-bill-wrap {
    padding: 12px 10px 48px;
  }

  .success-bill-head {
    padding: 18px;
  }

  .success-bill-head h1 {
    font-size: 27px;
  }

  .success-bill-topline,
  .success-bill-money,
  .success-bill-bank,
  .success-bill-payment-form {
    grid-template-columns: 1fr;
  }

  .success-bill-topline > div,
  .success-bill-money > div {
    border-right: 0;
    border-bottom: 1px solid #dce9e2;
  }

  .success-bill-topline > div:last-child,
  .success-bill-money > div:last-child {
    border-bottom: 0;
  }

  .success-bill-actions,
  .success-bill-btn {
    width: 100%;
  }
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: Arial, Tahoma, sans-serif;
}

a {
  color: inherit;
}

.container {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  border-bottom: 1px solid rgba(255, 255, 255, .18);
  background: rgba(15, 47, 45, .96);
  color: #fff;
}

.nav {
  display: flex;
  min-height: 66px;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand {
  display: grid;
  gap: 3px;
  text-decoration: none;
}

.brand strong {
  font-size: 20px;
}

.brand span {
  color: #9ee7dc;
  font-size: 13px;
}

.nav-actions {
  display: flex;
  gap: 10px;
  align-items: center;
}

.nav-toggle {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.nav-menu-button {
  display: none;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, .35);
  border-radius: 8px;
  color: #fff;
  padding: 0 14px;
  font-weight: 800;
  cursor: pointer;
}

.button {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 8px;
  background: var(--primary);
  color: #fff;
  padding: 0 16px;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
}

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

.button.accent {
  background: var(--accent);
  color: #241400;
}

.button.light {
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
}

.hero {
  background: linear-gradient(135deg, #0f2f2d 0%, #0f766e 58%, #0b4a45 100%);
  color: #fff;
  padding: 70px 0 34px;
}

.hero.has-cover {
  background-image:
    linear-gradient(90deg, rgba(8, 26, 25, .86), rgba(8, 26, 25, .56)),
    var(--hero-image);
  background-position: center;
  background-size: cover;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, .9fr);
  gap: 34px;
  align-items: center;
}

.eyebrow {
  margin: 0 0 10px;
  color: #9ee7dc;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  margin: 0;
  letter-spacing: 0;
}

h1 {
  max-width: 760px;
  font-size: 48px;
  line-height: 1.08;
}

.lead {
  max-width: 720px;
  margin: 18px 0 0;
  color: #d8fffa;
  font-size: 18px;
  line-height: 1.8;
}

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

.hero-copy {
  min-width: 0;
}

.resort-map-card {
  overflow: hidden;
  margin-top: 24px;
  border: 1px solid rgba(255, 255, 255, .24);
  border-radius: 8px;
  background: rgba(255, 255, 255, .96);
  color: var(--ink);
  box-shadow: 0 20px 42px rgba(0, 0, 0, .18);
}

.resort-map-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px;
}

.resort-map-head div {
  display: grid;
  gap: 3px;
}

.resort-map-head span,
.resort-map-head small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.resort-map-head strong {
  color: var(--ink);
}

.resort-map-stage {
  position: relative;
  overflow: hidden;
  background: #e2e8f0;
}

.resort-map-stage img {
  display: block;
  width: 100%;
  height: auto;
}

.resort-map-pin {
  position: absolute;
  display: inline-flex;
  width: 30px;
  height: 30px;
  align-items: center;
  justify-content: center;
  transform: translate(-50%, -50%);
  border: 3px solid #fff;
  border-radius: 999px;
  background: #0f766e;
  color: #fff;
  font: 900 12px/1 Arial, Tahoma, sans-serif;
  box-shadow: 0 8px 18px rgba(15, 23, 42, .35);
  cursor: pointer;
}

.resort-map-pin.low {
  background: #f59e0b;
  color: #241400;
}

.resort-map-pin.full {
  background: #dc2626;
}

.resort-map-pin.open {
  background: #2563eb;
}

.resort-map-pin.active {
  outline: 3px solid rgba(245, 158, 11, .42);
  transform: translate(-50%, -50%) scale(1.12);
}

.resort-map-detail {
  padding: 12px;
}

.resort-map-popup {
  display: none;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 12px;
}

.resort-map-popup.has-image {
  grid-template-columns: 74px minmax(0, 1fr) auto auto;
}

.resort-map-popup.active {
  display: grid;
}

.resort-map-popup > img {
  display: block;
  width: 74px;
  aspect-ratio: 1 / 1;
  border-radius: 8px;
  object-fit: cover;
  background: #e2e8f0;
}

.resort-map-popup div {
  display: grid;
  gap: 4px;
}

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

.resort-map-popup em {
  color: var(--primary);
  font-style: normal;
  font-weight: 800;
}

.resort-map-popup b {
  display: inline-flex;
  min-height: 28px;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: #dcfce7;
  color: #166534;
  padding: 0 10px;
  font-size: 12px;
}

.resort-map-popup b.low {
  background: #fef3c7;
  color: #92400e;
}

.resort-map-popup b.full {
  background: #fee2e2;
  color: #991b1b;
}

.resort-map-popup b.open {
  background: #dbeafe;
  color: #1d4ed8;
}

.resort-map-popup .button {
  min-height: 36px;
}

.resort-map-empty {
  margin: 0;
  padding: 0 14px 14px;
  color: var(--muted);
  font-weight: 700;
}

.booking-card,
.panel,
.room-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--card);
  box-shadow: 0 12px 32px rgba(15, 23, 42, .08);
}

.booking-card {
  padding: 22px;
  color: var(--ink);
}

.booking-card h2 {
  font-size: 22px;
}

.booking-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.booking-title-row span {
  display: inline-flex;
  min-height: 30px;
  align-items: center;
  border-radius: 999px;
  background: #eef6f5;
  color: var(--primary);
  padding: 0 10px;
  font-size: 13px;
  font-weight: 800;
  white-space: nowrap;
}

.booking-note {
  display: grid;
  gap: 8px;
  margin-top: 14px;
  border-radius: 8px;
  background: #f8fafc;
  padding: 12px;
  color: var(--muted);
  line-height: 1.6;
}

.booking-note p {
  margin: 0;
}

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

.booking-note span {
  display: inline-flex;
  min-height: 28px;
  align-items: center;
  border-radius: 999px;
  background: #eef6f5;
  color: var(--primary);
  padding: 0 10px;
  font-size: 13px;
  font-weight: 700;
}

.date-range-field {
  position: relative;
  display: grid;
  gap: 8px;
  color: var(--ink);
  font-weight: 700;
}

.date-range-trigger {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  width: 100%;
  min-height: 82px;
  gap: 12px;
  align-items: center;
  border: 1px solid #d7e1ec;
  border-radius: 8px;
  background: #fff;
  color: #0f172a;
  padding: 12px 22px;
  text-align: left;
  cursor: pointer;
}

.date-range-cell,
.date-range-caption,
.date-range-nights,
.date-range-trigger strong {
  display: block;
}

.date-range-cell {
  min-width: 0;
}

.date-range-cell.align-right {
  text-align: right;
}

.date-range-caption {
  color: #1e3a5f;
  font-size: 14px;
  font-weight: 800;
}

.date-range-trigger strong {
  margin-top: 6px;
  color: #0f2744;
  font-size: 20px;
  font-weight: 900;
  line-height: 1.15;
  overflow-wrap: anywhere;
}

.date-range-nights {
  min-width: 64px;
  color: #1e3a5f;
  font-size: 15px;
  font-weight: 800;
  text-align: center;
  white-space: nowrap;
}

.date-range-trigger:focus {
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, .16);
  outline: none;
}

.date-range-popover {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  z-index: 30;
  display: none;
  border: 1px solid #bfdbfe;
  border-radius: 8px;
  background: #fff;
  padding: 14px;
  box-shadow: 0 24px 54px rgba(15, 23, 42, .22);
}

.date-range-field.open .date-range-popover {
  display: block;
}

.date-range-toolbar,
.date-range-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.date-range-toolbar {
  margin-bottom: 12px;
}

.date-range-toolbar strong {
  color: #f59e0b;
  font-size: 20px;
  font-weight: 900;
  text-align: center;
}

.date-nav-button {
  display: inline-flex;
  width: 38px;
  height: 38px;
  align-items: center;
  justify-content: center;
  border: 1px solid #bfdbfe;
  border-radius: 8px;
  background: #eff6ff;
  color: #1d4ed8;
  font: 900 24px/1 Arial, Tahoma, sans-serif;
  cursor: pointer;
}

.date-nav-button:hover {
  background: #dbeafe;
}

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

.date-month {
  min-width: 0;
}

.date-month-title {
  margin-bottom: 10px;
  color: #0f172a;
  font-weight: 900;
  text-align: center;
}

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

.date-weekday,
.date-day {
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  font-size: 13px;
}

.date-weekday {
  color: #64748b;
  font-weight: 900;
}

.date-day {
  border: 0;
  background: #fff;
  color: #0f172a;
  font-weight: 800;
  cursor: pointer;
}

.date-day:not(.disabled):hover {
  background: #dbeafe;
  color: #1d4ed8;
}

.date-day.disabled {
  color: #cbd5e1;
  cursor: not-allowed;
}

.date-day.in-range {
  border-radius: 0;
  background: #dbeafe;
  color: #1d4ed8;
}

.date-day.is-start,
.date-day.is-end {
  border-radius: 8px;
  background: #2563eb;
  color: #fff;
}

.date-day.is-start.in-range,
.date-day.is-end.in-range {
  background: #2563eb;
  color: #fff;
}

.date-range-footer {
  margin-top: 12px;
  border-top: 1px solid #dbeafe;
  padding-top: 12px;
}

.date-range-footer span {
  color: #475569;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.5;
}

.date-range-footer .button {
  min-height: 36px;
}

.availability-status {
  margin: 0;
  border-radius: 8px;
  background: #eef6f5;
  color: var(--primary);
  padding: 10px 12px;
  font-size: 14px;
  font-weight: 800;
  line-height: 1.5;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 16px;
}

.form-grid label {
  display: grid;
  gap: 7px;
  color: var(--ink);
  font-weight: 700;
}

.form-grid input,
.form-grid select,
.form-grid textarea {
  width: 100%;
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 12px;
  color: var(--ink);
  font: inherit;
}

.form-grid textarea {
  min-height: 96px;
  padding-top: 10px;
  resize: vertical;
}

.span-2 {
  grid-column: span 2;
}

.section {
  padding: 58px 0;
}

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

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

.calendar-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.calendar-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 14px;
}

.calendar-summary div {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 12px;
  box-shadow: 0 10px 24px rgba(15, 23, 42, .06);
}

.calendar-summary span {
  display: block;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.calendar-summary strong {
  display: block;
  margin-top: 5px;
  color: var(--ink);
  font-size: 22px;
}

.availability-calendar {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #eef3f8;
  padding: 14px;
  box-shadow: 0 18px 42px rgba(15, 23, 42, .12);
}

.calendar-weekday {
  border-radius: 8px;
  background: #fff;
  color: #334155;
  font-size: 13px;
  font-weight: 800;
  padding: 8px 4px;
  text-align: center;
}

.calendar-day {
  display: grid;
  min-height: 112px;
  align-content: space-between;
  gap: 6px;
  border: 2px solid var(--line);
  border-radius: 8px;
  background: #f8fafc;
  padding: 10px;
  color: var(--ink);
  text-decoration: none;
  transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease;
}

.calendar-day.available,
.calendar-day.low {
  cursor: pointer;
}

.calendar-day.available:hover,
.calendar-day.low:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 32px rgba(15, 23, 42, .16);
}

.calendar-date {
  display: inline-flex;
  width: 30px;
  height: 30px;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: rgba(255, 255, 255, .86);
  color: #0f172a;
  font-size: 17px;
  font-weight: 900;
}

.calendar-count {
  display: flex;
  align-items: baseline;
  gap: 6px;
}

.calendar-count strong {
  color: #064e3b;
  font-size: 34px;
  line-height: .95;
}

.calendar-count em {
  color: #047857;
  font-size: 13px;
  font-style: normal;
  font-weight: 900;
}

.calendar-day small {
  color: #0f766e;
  font-size: 12px;
  font-weight: 800;
}

.calendar-day b {
  display: inline-flex;
  min-height: 24px;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: rgba(255, 255, 255, .82);
  color: #064e3b;
  padding: 0 8px;
  font-size: 12px;
  font-weight: 900;
}

.calendar-day.available {
  background: linear-gradient(180deg, #dcfce7 0%, #bbf7d0 100%);
  border-color: #22c55e;
}

.calendar-day.low {
  background: linear-gradient(180deg, #fef3c7 0%, #fde68a 100%);
  border-color: #f59e0b;
}

.calendar-day.low .calendar-count strong,
.calendar-day.low .calendar-count em,
.calendar-day.low small,
.calendar-day.low b {
  color: #92400e;
}

.calendar-day.full {
  background: linear-gradient(180deg, #fee2e2 0%, #fecaca 100%);
  border-color: #ef4444;
  cursor: not-allowed;
}

.calendar-day.full .calendar-count strong,
.calendar-day.full .calendar-count em,
.calendar-day.full small,
.calendar-day.full b {
  color: #991b1b;
}

.calendar-day.past,
.calendar-day.blank {
  background: #f1f5f9;
  color: #94a3b8;
  border-color: #cbd5e1;
}

.calendar-day.blank {
  border-style: dashed;
}

.calendar-day.past {
  opacity: .72;
  cursor: not-allowed;
}

.calendar-day.past .calendar-date,
.calendar-day.past .calendar-count strong,
.calendar-day.past .calendar-count em,
.calendar-day.past small {
  color: #64748b;
}

.calendar-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 14px;
  color: var(--muted);
  font-weight: 700;
}

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

.dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #10b981;
}

.dot.low {
  background: #f59e0b;
}

.dot.full {
  background: #ef4444;
}

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

.room-card {
  overflow: hidden;
}

.room-image {
  display: grid;
  min-height: 154px;
  place-items: center;
  background: linear-gradient(135deg, #d8f3ee, #fef3c7);
  color: #0f766e;
  font-size: 44px;
  font-weight: 900;
}

.room-image.has-photo {
  display: block;
  min-height: 0;
  background: #e2e8f0;
}

.room-image img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.room-image span {
  display: grid;
  min-height: 154px;
  place-items: center;
}

.room-body {
  padding: 18px;
}

.room-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 12px 0;
}

.pill {
  display: inline-flex;
  min-height: 28px;
  align-items: center;
  border-radius: 999px;
  background: #eef6f5;
  color: #115e59;
  padding: 0 10px;
  font-size: 13px;
  font-weight: 700;
}

.price {
  margin-top: 12px;
  color: var(--primary);
  font-size: 24px;
  font-weight: 800;
}

.availability {
  margin-top: 12px;
  border-radius: 8px;
  background: #f0fdfa;
  color: #115e59;
  padding: 10px;
  font-weight: 700;
}

.room-booking-button {
  width: 100%;
  margin-top: 12px;
}

.panel {
  padding: 22px;
}

.table-scroll {
  width: 100%;
  overflow-x: auto;
}

table {
  width: 100%;
  margin-top: 14px;
  border-collapse: collapse;
}

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

th {
  color: var(--muted);
  font-size: 13px;
}

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

.info-grid p {
  margin: 8px 0 0;
  color: var(--muted);
  line-height: 1.7;
}

.gallery-section {
  padding-top: 0;
}

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

.gallery-card {
  overflow: hidden;
  margin: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 12px 32px rgba(15, 23, 42, .08);
}

.gallery-card img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  background: #eef2f7;
}

.gallery-card figcaption {
  padding: 12px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
}

.notice {
  margin: 0 0 16px;
  border-radius: 8px;
  padding: 12px 14px;
  line-height: 1.6;
}

.notice.ok {
  background: #dcfce7;
  color: #166534;
}

.notice.fail {
  background: #fee2e2;
  color: #991b1b;
}

.success-header {
  margin-bottom: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 28px;
  box-shadow: 0 12px 32px rgba(15, 23, 42, .08);
}

.success-header h1 {
  color: var(--primary);
}

.success-header p:not(.eyebrow) {
  max-width: 760px;
  margin: 10px 0 0;
  color: var(--muted);
  line-height: 1.7;
}

.success-grid,
.containerless-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, .9fr);
  gap: 18px;
}

.slim-section {
  padding: 18px 0 0;
}

.compact-head {
  align-items: center;
  margin-bottom: 16px;
}

.booking-summary-list,
.payment-method-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.booking-summary-list div,
.payment-method-box,
.muted-box {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fafc;
  padding: 12px;
}

.booking-summary-list span,
.payment-method-box span {
  display: block;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.booking-summary-list strong,
.payment-method-box strong {
  display: block;
  margin-top: 5px;
  overflow-wrap: anywhere;
}

.payment-method-grid {
  margin-bottom: 12px;
}

.muted-box {
  margin: 12px 0;
  color: var(--muted);
  line-height: 1.7;
}

.payment-form {
  margin-top: 12px;
}

.status-pill {
  display: inline-flex;
  min-height: 30px;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: #eef6f5;
  color: #115e59;
  padding: 0 10px;
  font-size: 13px;
  font-weight: 900;
  white-space: nowrap;
}

.status-pill.pending {
  background: #fef3c7;
  color: #92400e;
}

.status-pill.confirmed {
  background: #dcfce7;
  color: #166534;
}

.status-pill.rejected,
.status-pill.refunded {
  background: #fee2e2;
  color: #991b1b;
}

.payment-list {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

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

.payment-list-item div {
  min-width: 0;
}

.payment-list-item strong,
.payment-list-item span {
  display: block;
}

.payment-list-item span:not(.status-pill) {
  margin-top: 4px;
  color: var(--muted);
  font-size: 13px;
}

.payment-list-item .button {
  min-height: 34px;
  padding: 0 12px;
  font-size: 13px;
}

.footer {
  padding: 28px 0;
  background: #0f2f2d;
  color: #d8fffa;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 16px;
}

@media (max-width: 860px) {
  .hero-grid,
  .room-grid,
  .info-grid,
  .gallery-grid,
  .calendar-summary,
  .success-grid,
  .containerless-grid {
    grid-template-columns: 1fr;
  }

  h1 {
    font-size: 38px;
  }

  .date-range-months {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .container {
    width: min(100% - 20px, 1120px);
  }

  .section-head,
  .footer-inner {
    align-items: stretch;
    flex-direction: column;
  }

  .nav {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
  }

  .nav-menu-button {
    display: inline-flex;
  }

  .nav-actions {
    display: none;
    grid-column: 1 / -1;
    grid-template-columns: 1fr;
    gap: 8px;
    padding: 0 0 12px;
  }

  .nav-toggle:checked ~ .nav-actions {
    display: grid;
  }

  .hero-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .resort-map-head,
  .resort-map-popup,
  .resort-map-popup.has-image {
    align-items: stretch;
    grid-template-columns: 1fr;
  }

  .resort-map-popup > img {
    width: 100%;
    aspect-ratio: 16 / 9;
  }

  .form-grid {
    grid-template-columns: 1fr;
  }

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

  .booking-card .form-grid > label,
  .booking-card .form-grid > p,
  .booking-card .form-grid > button {
    grid-column: 1 / -1;
  }

  .booking-card .form-grid > label:nth-of-type(3),
  .booking-card .form-grid > label:nth-of-type(4) {
    grid-column: span 1;
  }

  .booking-card .form-grid > .date-range-field,
  .booking-card .form-grid > .booking-room-field,
  .booking-card .form-grid > .booking-message-field {
    grid-column: 1 / -1;
  }

  .date-range-trigger {
    min-height: 58px;
    gap: 8px;
    padding: 10px 12px;
  }

  .date-range-trigger strong {
    font-size: 18px;
  }

  .date-range-caption {
    font-size: 13px;
  }

  .date-range-nights {
    min-width: 48px;
    font-size: 13px;
  }

  .date-range-toolbar strong {
    font-size: 20px;
  }

  .date-range-popover {
    position: fixed;
    top: 78px;
    right: 10px;
    left: 10px;
    max-height: calc(100vh - 92px);
    overflow: auto;
  }

  .date-range-footer {
    position: sticky;
    bottom: -14px;
    background: #fff;
  }

  .booking-summary-list,
  .payment-method-grid,
  .payment-list-item {
    grid-template-columns: 1fr;
  }

  .booking-title-row {
    align-items: center;
    flex-direction: row;
    flex-wrap: wrap;
  }

  .calendar-summary {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px;
  }

  .calendar-summary div {
    padding: 8px 6px;
  }

  .calendar-summary span {
    font-size: 11px;
    line-height: 1.3;
  }

  .calendar-summary strong {
    margin-top: 3px;
    font-size: 16px;
    line-height: 1.15;
  }

  .availability-calendar {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    padding: 10px;
  }

  .calendar-weekday,
  .calendar-day.blank {
    display: none;
  }

  .calendar-day {
    min-height: 92px;
    padding: 8px;
  }

  .calendar-count strong {
    font-size: 24px;
  }

  .calendar-count em,
  .calendar-day small,
  .calendar-day b {
    font-size: 11px;
  }

  .span-2 {
    grid-column: span 1;
  }

  .booking-card .form-grid > .date-range-field,
  .booking-card .form-grid > .booking-room-field,
  .booking-card .form-grid > .booking-message-field {
    grid-column: 1 / -1;
  }
}
