:root {
  --panel: var(--lv-paper);
  --muted-text: var(--lv-muted);
  --line: var(--lv-stone);
  --chip-bg: #f1eee8;
  --brand-green: var(--lv-forest);
  --brand-green-dark: var(--lv-forest-deep);
  --soft-green: #e8efe8;
}

.booking-page {
  max-width: 1200px;
  margin: 12px auto 34px;
  padding: 0 24px 20px;
}

.booking-shell {
  background: transparent;
  border: none;
  border-radius: 0;
  padding: 0;
  box-shadow: none;
  margin-top: 30px;
}
.booking-top {
  display: grid;
  grid-template-columns: minmax(300px, 1fr) minmax(520px, 1.35fr);
  gap: 18px;
  align-items: center;
}
.booking-top h2 {
  margin: 0;
  font-size: 30px;
  line-height: 1.02;
}
.booking-top p {
  margin: 10px 0 0;
  color: var(--muted-text);
  font-size: 18px;
}
.booking-benefits {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(140px, 1fr));
  gap: 16px;
  max-width: none;
}
.booking-benefits li {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  color: #4f554c;
  font-size: 14px;
  line-height: 1.32;
}
.booking-benefits strong {
  display: block;
  color: var(--heading-color);
  font-size: 14px;
  margin-bottom: 2px;
}
.benefit-icon {
  width: 19px;
  height: 19px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--brand-green);
  flex-shrink: 0;
  margin-top: 0;
  font-size: 16px;
}
.benefit-icon svg {
  width: 24px;
  height: 24px;
  display: block;
  stroke: currentColor;
  stroke-width: 1.9;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.availability-form {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(5, minmax(120px, 1fr));
  align-items: end;
  margin-top: 14px;
  padding: 12px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
}
.availability-field {
  display: flex;
  flex-direction: column;
  gap: 7px;
  min-width: 0;
}
.availability-field label {
  font-weight: 600;
  color: #384038;
  font-size: 14px;
}
.availability-field .lv-control {
  height: 48px;
  padding: 10px 11px;
  font-size: 15px;
}

.availability-btn {
  padding: 12px 18px;
  font-size: 15px;
  width: 100%;
}
.availability-results {
  margin-top: 14px;
  display: grid;
  grid-template-columns: repeat(2, minmax(260px, 1fr));
  gap: 12px;
}
.availability-card {
  background: #fff;
  border-radius: 8px;
  border: 1px solid var(--line);
  padding: 0 0 10px;
  overflow: hidden;
}
.availability-card.selected {
  border-color: #5f8a67;
  box-shadow: 0 0 0 2px rgba(95, 138, 103, 0.2);
}
.mini-carousel {
  position: relative;
  margin-bottom: 10px;
  border-radius: 0;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background: #ece8df;
}
.mini-track {
  display: flex;
  height: 100%;
  transition: transform 0.3s ease;
}
.mini-track img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  flex-shrink: 0;
}
.mini-track img.is-portrait {
  object-fit: contain;
  background: #ece8df;
}
.mini-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  border: none;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: rgba(17, 25, 20, 0.62);
  color: #fff;
  cursor: pointer;
  line-height: 30px;
  font-size: 18px;
  padding: 0;
  z-index: 5;
  pointer-events: auto;
}
.mini-prev { left: 10px; }
.mini-next { right: 10px; }
.house-flag {
  position: absolute;
  left: 12px;
  top: 12px;
  z-index: 6;
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
  padding: 7px 9px;
  border-radius: 5px;
  color: #fff;
  background: #6f746c;
  border: 1px solid rgba(255, 255, 255, 0.2);
}
.house-flag[hidden] {
  display: none;
}
.house-flag.free {
  background: var(--brand-green);
}
.house-flag.busy {
  background: #9d5858;
}
.availability-card h4 {
  margin: 0 12px 8px;
  color: var(--top-title);
  font-size: 30px;
  line-height: 1.03;
}
.house-short {
  margin: 0 0 10px;
  font-size: 14px;
  color: #4d5f78;
}
.house-layout {
  margin: 0 12px 9px;
  padding: 0;
  list-style: none;
  color: #313831;
  display: grid;
  grid-template-columns: repeat(2, minmax(120px, 1fr));
  gap: 6px 12px;
}
.house-layout li {
  margin: 0;
  font-size: 13px;
  line-height: 1.35;
}
.house-layout strong {
  color: #111;
}
.house-features {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0 12px 10px;
}
.feature-chip {
  border: 1px solid #d8d2c4;
  border-radius: 5px;
  padding: 4px 7px;
  font-size: 12px;
  color: #3f473f;
  background: var(--chip-bg);
  line-height: 1.2;
}
.availability-status {
  margin: 0 12px;
  font-weight: 600;
  font-size: 14px;
}
.availability-status:empty,
.availability-price:empty {
  display: none;
}
.availability-price {
  margin: 6px 12px 0;
  font-weight: 700;
  color: #263027;
  font-size: 14px;
}
.card-foot {
  margin: 10px 12px 0;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
}
.booking-select {
  margin: 0;
  padding: 10px 14px;
  min-width: 128px;
  font-size: 15px;
}

.booking-select[hidden] { display: none; }
.both-option .booking-select {
  margin-top: 10px;
}
.both-option {
  margin: 12px 0 10px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
}
.both-option[hidden] { display: none; }
.both-option h3 {
  margin: 0 0 10px;
  color: #1f2a1f;
}
.both-option p {
  margin: 0 0 6px;
}
.both-row {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 0;
  border-top: 1px solid #ece8df;
}
.both-row strong {
  color: #263027;
}
.both-total {
  margin-top: 8px;
  font-size: 22px;
  color: #263027;
  font-weight: 800;
}
.booking-cta {
  margin-top: 12px;
  padding: 12px;
  border-radius: 10px;
  background: #fff;
  border: 1px solid var(--line);
}
.booking-cta[hidden] { display: none; }
.booking-cta p { margin: 0 0 8px; }
.booking-call {
  display: inline-block;
  margin-top: 4px;
  font-weight: 700;
  color: #2e5b3d;
}
.guest-form {
  margin-top: 10px;
  padding: 12px;
  border: 1px solid #e3ddcf;
  border-radius: 10px;
  background: #fcfbf8;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px 14px;
  align-items: start;
}
.guest-form[hidden] {
  display: none !important;
}
.guest-form-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}
.guest-form-field label {
  font-weight: 600;
  color: #323a32;
  font-size: 15px;
}
.guest-form .lv-control {
  padding: 10px 12px;
  font-size: 16px;
  min-height: 42px;
}

.guest-form textarea.lv-control {
  min-height: 84px;
  resize: vertical;
}
.guest-form input.input-invalid {
  border-color: #c94b4b;
  background: #fff7f7;
}
.guest-field-error {
  min-height: 16px;
  font-size: 13px;
  line-height: 1.2;
  color: #c94b4b;
}
.guest-form-actions .lv-btn {
  padding: 11px 18px;
}
.guest-form-actions {
  grid-column: 1 / -1;
  display: flex;
  justify-content: flex-end;
  margin-top: 2px;
}
.guest-form-field.full-width {
  grid-column: 1 / -1;
}
.guest-form-note {
  margin-top: 10px;
  font-weight: 600;
  white-space: pre-line;
}
.guest-form-note:empty {
  display: none;
}
.guest-help-phone {
  display: inline-block;
  margin-top: 8px;
  font-weight: 700;
  color: #2e5b3d;
  text-decoration: underline;
}
.guest-help-phone[hidden] {
  display: none;
}

.booking-flow {
  margin-top: 12px;
  border-radius: 18px;
  border: 1px solid #ece6db;
  background: #f5f2ed;
  padding: 14px 18px;
  display: flex;
  align-items: center;
  gap: 18px;
}
.booking-flow-head {
  display: flex;
  align-items: center;
  gap: 0;
  min-width: 280px;
}
.booking-flow-title {
  margin: 0;
  font-size: 22px;
  line-height: 1.1;
  text-align: left;
  color: #2f2a22;
}
.booking-flow-grid {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1;
}
.flow-step {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #2f342d;
  font-size: 14px;
  font-weight: 500;
  min-width: 0;
  flex: 1;
}
.flow-step-index {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #e9e4db;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
  font-weight: 700;
  color: #3a3b39;
  line-height: 1;
}
.flow-step-text {
  display: block;
  font-size: 13px;
  line-height: 1.28;
  color: #3f3f3e;
  font-weight: 600;
}
.flow-sep {
  color: #7a7873;
  font-size: 26px;
  line-height: 1;
  padding: 0;
}
.flow-note {
  display: none;
}
.booking-seo {
  margin-top: 16px;
  background: #fffdf9;
  border: 1px solid #e5dece;
  border-radius: 10px;
  padding: 16px;
}
.booking-seo h3 {
  margin: 0 0 10px;
  font-size: 26px;
  line-height: 1.15;
  color: #2f2a22;
}
.booking-seo p {
  margin: 0 0 10px;
  color: #6f6859;
  font-size: 16px;
  line-height: 1.6;
}
.booking-seo p:last-child {
  margin-bottom: 0;
}
.booking-answers {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 16px;
}
.booking-answer {
  padding: 14px;
  border: 1px solid #e5dece;
  border-radius: 10px;
  background: #faf7f1;
}
.booking-answer h4 {
  margin: 0 0 8px;
  color: #2f2a22;
  font-family: var(--lv-font-display);
  font-size: 20px;
  line-height: 1.18;
}
.booking-answer p {
  font-size: 15px;
}

@media(max-width:768px){
  .availability-results { grid-template-columns: 1fr; }
  .booking-page { padding: 0 12px 14px; }
  .booking-shell { padding: 0; }
  .booking-top {
    grid-template-columns: 1fr;
    gap: 14px;
  }
  .booking-benefits {
    grid-template-columns: 1fr;
    max-width: none;
  }
  .availability-form {
    grid-template-columns: 1fr;
  }
  .house-layout {
    grid-template-columns: 1fr;
  }
  .card-foot {
    flex-direction: column;
    align-items: stretch;
  }
  .card-foot .booking-select {
    width: 100%;
  }
  .booking-flow-grid {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }
  .booking-flow-title {
    font-size: 32px;
  }
  .booking-flow {
    flex-direction: column;
    align-items: stretch;
    gap: 14px;
    padding: 14px;
  }
  .booking-seo h3 {
    font-size: 22px;
  }
  .booking-seo p {
    font-size: 15px;
  }
  .booking-answers {
    grid-template-columns: 1fr;
  }
  .booking-answer {
    padding: 12px;
  }
  .booking-answer h4 {
    font-size: 18px;
  }
  .booking-flow-head {
    min-width: 0;
  }
  .flow-sep {
    display: none;
  }
  .flow-step-index {
    width: 36px;
    height: 36px;
    font-size: 20px;
  }
  .flow-step-text {
    font-size: 16px;
  }
  .guest-form { grid-template-columns: 1fr; }
  .guest-form-actions { justify-content: stretch; }
  .guest-form-actions button { width: 100%; }
}

/* Booking UX layer: keep the interaction clear, calm, and conversion-focused. */
:root {
  --booking-panel: #fffdf8;
  --booking-panel-soft: #faf6ee;
  --booking-border: #ded4c3;
  --booking-control: #fcfaf5;
  --booking-success: #2f6842;
  --booking-danger: #9d5858;
  --booking-space-xs: 6px;
  --booking-space-sm: 10px;
  --booking-space-md: 14px;
  --booking-space-lg: 18px;
  --booking-space-xl: 24px;
}

.booking-page {
  max-width: 1240px;
}

.booking-shell {
  margin-top: 24px;
}

.booking-top {
  padding: 20px 20px 18px;
  border: 1px solid var(--booking-border);
  border-bottom: 0;
  border-radius: var(--lv-radius-card) var(--lv-radius-card) 0 0;
  background:
    linear-gradient(135deg, rgba(255, 253, 248, 0.98), rgba(247, 241, 230, 0.96)),
    var(--booking-panel);
  box-shadow: 0 16px 34px rgba(54, 48, 37, 0.08);
}

.booking-top h2 {
  max-width: 520px;
  color: var(--lv-ink);
  font-size: clamp(1.9rem, 3vw, 2.65rem);
  letter-spacing: 0;
}

.booking-top p {
  max-width: 440px;
  color: var(--lv-muted);
  font-size: 16px;
}

.booking-benefits {
  gap: 10px;
}

.booking-benefits li {
  min-width: 0;
  padding: 12px;
  border: 1px solid rgba(222, 212, 195, 0.86);
  border-radius: 8px;
  background: rgba(255, 253, 248, 0.72);
  color: var(--lv-ink-soft);
}

.booking-benefits strong {
  color: var(--lv-ink);
}

.benefit-icon {
  width: 24px;
  height: 24px;
  margin-top: 1px;
  color: var(--lv-clay);
}

.availability-form {
  position: relative;
  z-index: 20;
  margin-top: 0;
  padding: 16px;
  gap: 12px;
  border-color: var(--booking-border);
  border-radius: 0 0 var(--lv-radius-card) var(--lv-radius-card);
  background: rgba(255, 253, 248, 0.97);
  box-shadow: var(--lv-shadow-card);
}

.availability-field label,
.guest-form-field label {
  color: var(--lv-ink);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.availability-field input,
.availability-field select,
.guest-form input,
.guest-form textarea {
  box-sizing: border-box;
  width: 100%;
}

.availability-field input,
.availability-field select {
  height: 48px !important;
  min-height: 48px !important;
  border-color: #d8cfbe !important;
  border-radius: var(--lv-radius-control) !important;
  background: var(--booking-control) !important;
  color: var(--lv-ink) !important;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.availability-field input:focus,
.availability-field select:focus,
.guest-form input:focus,
.guest-form textarea:focus {
  border-color: rgba(167, 101, 69, 0.72) !important;
  background: #fff !important;
  box-shadow: 0 0 0 4px rgba(167, 101, 69, 0.12);
  outline: none;
}

.availability-submit {
  min-width: 0;
}

.availability-submit .availability-btn {
  width: 100%;
}

.availability-btn,
.booking-select,
.guest-form button {
  min-height: 48px;
}

.availability-btn:hover,
.booking-select:hover,
.guest-form button:hover {
  text-decoration: none;
}

.availability-message {
  margin: 12px 0 0;
  padding: 10px 12px;
  font-size: 14px;
  font-weight: 800;
}

.availability-summary {
  display: grid;
  grid-template-columns: minmax(260px, 0.95fr) minmax(420px, 1.25fr);
  gap: 18px;
  align-items: stretch;
  margin: 16px 0 0;
  padding: 18px;
  border: 1px solid var(--booking-border);
  border-radius: var(--lv-radius-card);
  background:
    linear-gradient(135deg, rgba(255, 253, 248, 0.98), rgba(249, 244, 235, 0.96)),
    var(--booking-panel);
  box-shadow: var(--lv-shadow-soft);
}

.availability-summary[hidden] {
  display: none;
}

.availability-summary-copy {
  min-width: 0;
}

.summary-eyebrow {
  margin: 0 0 6px !important;
  color: var(--lv-clay) !important;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.availability-summary h3 {
  margin: 0 0 8px;
  color: var(--lv-ink) !important;
  font-size: clamp(1.35rem, 2vw, 1.85rem);
  line-height: 1.08;
}

.availability-summary p {
  margin: 0;
  color: var(--lv-ink-soft);
}

.summary-details {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin: 0;
}

.summary-details div {
  min-width: 0;
  padding: 12px;
  border: 1px solid #e8dfd1;
  border-radius: 8px;
  background: #fffdf8;
}

.summary-details dt {
  margin: 0 0 5px;
  color: var(--lv-muted);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.summary-details dd {
  margin: 0;
  color: var(--lv-ink);
  font-size: 15px;
  font-weight: 900;
  line-height: 1.25;
}

.availability-results {
  margin-top: 18px;
  gap: 18px;
  align-items: start;
}

.availability-card,
.booking-cta,
.both-option,
.booking-seo {
  background: var(--booking-panel) !important;
  border-color: var(--booking-border) !important;
  border-radius: var(--lv-radius-card) !important;
}

.availability-card {
  display: flex;
  flex-direction: column;
  padding-bottom: 14px;
  box-shadow: var(--lv-shadow-soft) !important;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease, opacity 0.18s ease;
}

.availability-card:has(.availability-status.free) {
  border-color: rgba(47, 104, 66, 0.58) !important;
}

.availability-card:has(.availability-status.busy) {
  opacity: 0.82;
}

.availability-card.selected {
  border-color: var(--lv-forest) !important;
  box-shadow: 0 0 0 3px rgba(51, 69, 47, 0.18), var(--lv-shadow-card) !important;
  transform: translateY(-2px);
}

.mini-carousel {
  margin-bottom: 14px;
  background: #e9e2d4 !important;
}

.mini-nav {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.32) !important;
  background: rgba(20, 26, 20, 0.62) !important;
  color: #fff !important;
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.18);
}

.house-flag {
  border-radius: 999px;
}

.house-flag.free {
  background: var(--booking-success) !important;
}

.house-flag.busy {
  background: var(--booking-danger) !important;
}

.availability-card h4 {
  margin: 0 16px 4px !important;
  color: var(--lv-ink) !important;
  font-size: clamp(1.55rem, 2.3vw, 2rem) !important;
}

.availability-card-subtitle {
  margin: 0 16px 12px !important;
  color: var(--lv-muted) !important;
  font-size: 14px;
  line-height: 1.35;
}

.booking-card-facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin: 0 14px 14px;
}

.booking-card-facts span {
  min-width: 0;
  padding: 11px 10px;
  border: 1px solid #e7dfd2;
  border-radius: 8px;
  background: #fbf7ef;
  color: var(--lv-muted);
  font-size: 12px;
  font-weight: 800;
  line-height: 1.2;
}

.booking-card-facts strong {
  display: block;
  margin-bottom: 2px;
  color: var(--lv-ink);
  font-size: 14px;
}

.house-layout {
  margin: 0 16px 12px;
  row-gap: 8px;
}

.house-features {
  margin-right: 16px;
  margin-left: 16px;
}

.feature-chip {
  border-radius: 999px !important;
  background: #f6f0e6;
}

.availability-status {
  min-height: 40px;
  margin: auto 16px 0;
  padding: 10px 12px;
}

.availability-status:empty {
  display: none;
}

.availability-price {
  margin: 10px 16px 0;
  padding: 0;
  color: var(--lv-ink);
  font-size: 18px !important;
  font-weight: 900;
  line-height: 1.25;
}

.availability-price:empty {
  display: none;
}

.card-foot {
  margin: 12px 16px 0;
  padding-top: 0;
}

.card-foot .booking-select {
  width: 100%;
}

.both-option {
  margin-top: 16px;
  padding: 18px;
  box-shadow: var(--lv-shadow-soft);
}

.both-option h3 {
  color: var(--lv-ink);
  font-size: 24px;
}

.both-total {
  color: var(--lv-ink);
}

.both-option .booking-select {
  width: 100%;
}

.booking-cta {
  margin-top: 18px;
  padding: 20px;
  box-shadow: var(--lv-shadow-card);
}

#booking-summary {
  color: var(--lv-ink);
  font-weight: 900;
}

.guest-form {
  border-color: #e3dacb;
  background: var(--booking-panel-soft);
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  padding: 18px;
}

.guest-form-field {
  min-width: 0;
}

.guest-form input {
  height: 48px;
  min-height: 48px !important;
}

.guest-form textarea {
  min-height: 92px !important;
}

.guest-form input,
.guest-form textarea {
  box-sizing: border-box;
  width: 100%;
}

.guest-form-actions button {
  min-width: 220px;
}

.guest-field-error {
  min-height: 18px;
}

.guest-form-note {
  padding: 12px 14px;
}

.booking-flow {
  border-color: var(--booking-border);
  border-radius: var(--lv-radius-card) !important;
  background: #f3eee5;
}

.booking-flow-title {
  color: var(--lv-ink);
}

.flow-step-index {
  background: #e6dac7;
  color: var(--lv-ink);
}

.booking-seo {
  box-shadow: none;
}

@media (max-width: 1080px) {
  .booking-top {
    grid-template-columns: 1fr;
  }

  .booking-benefits {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

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

  .availability-submit {
    grid-column: 1 / -1;
  }
}

@media (max-width: 900px) {
  .availability-summary {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 768px) {
  .booking-shell {
    margin-top: 16px;
  }

  .booking-top {
    padding: 16px;
  }

  .booking-top h2 {
    font-size: 32px;
  }

  .booking-benefits,
  .availability-form,
  .summary-details,
  .booking-card-facts {
    grid-template-columns: 1fr;
  }

  .availability-form {
    padding: 14px;
  }

  .availability-message {
    font-size: 13px;
  }

  .guest-form-actions button {
    min-width: 0;
  }
}
