/* Airbnb-style listing layout for /book */

.listing-page {
  max-width: 1120px;
  margin: 0 auto;
  padding: 1.25rem 1.25rem 4rem;
}

.listing-title-row {
  margin-bottom: 1.25rem;
}
.listing-title-row h1 {
  font-size: clamp(1.45rem, 3vw, 1.85rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.2;
  margin-bottom: 0.4rem;
}
.listing-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem 0.75rem;
  font-size: 0.9rem;
  color: var(--navy);
}
.listing-meta .dot { color: var(--text-muted); }
.listing-meta a {
  text-decoration: underline;
  text-underline-offset: 3px;
  font-weight: 500;
}

.listing-gallery {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 0.4rem;
  height: min(52vw, 420px);
  border-radius: 16px;
  overflow: hidden;
  margin-bottom: 2rem;
  position: relative;
}
.listing-gallery > button[data-photo] {
  padding: 0;
  border: none;
  background: #dfe6e2;
  cursor: pointer;
  overflow: hidden;
  position: relative;
  min-height: 0;
}
.listing-gallery > button[data-photo]:first-of-type {
  grid-column: 1;
  grid-row: 1 / -1;
}
.listing-gallery img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.45s var(--ease);
}
.listing-gallery button:hover img { transform: scale(1.04); }
.listing-gallery-more {
  position: absolute;
  right: 0.85rem;
  bottom: 0.85rem;
  z-index: 2;
  padding: 0.45rem 0.85rem !important;
  border-radius: 10px !important;
  background: var(--white) !important;
  border: 1px solid rgba(0, 21, 64, 0.18) !important;
  font-size: 0.78rem;
  font-weight: 600;
  box-shadow: 0 2px 10px rgba(0, 21, 64, 0.08);
}
@media (max-width: 720px) {
  .listing-gallery {
    grid-template-columns: 1.35fr 1fr 1fr;
    height: 280px;
    gap: 0.3rem;
  }
}

.listing-split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 3rem;
  align-items: start;
}
@media (max-width: 960px) {
  .listing-split {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .reserve-card-wrap { position: static; }
}

.listing-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1.1rem;
  font-size: 0.95rem;
  padding-bottom: 1.35rem;
  border-bottom: 1px solid var(--border);
  margin-bottom: 1.5rem;
}

.listing-highlights {
  display: flex;
  flex-direction: column;
  gap: 1.15rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border);
  margin-bottom: 1.5rem;
}
.highlight-row {
  display: grid;
  grid-template-columns: 1.75rem 1fr;
  gap: 0.85rem;
  align-items: start;
}
.highlight-row svg {
  width: 1.5rem;
  height: 1.5rem;
  color: var(--navy);
}
.highlight-row strong {
  display: block;
  font-size: 0.95rem;
  margin-bottom: 0.15rem;
}
.highlight-row p {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.45;
}

.listing-copy {
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--navy);
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border);
  margin-bottom: 1.5rem;
}
.listing-copy p + p { margin-top: 0.85rem; }

.listing-block-title {
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 0.85rem;
}

.space-grid {
  display: grid;
  gap: 0.85rem;
  margin-bottom: 0.5rem;
}
.space-card {
  display: grid;
  grid-template-columns: 108px 1fr;
  gap: 0.9rem;
  padding: 0.7rem;
  border: 1.5px solid var(--border);
  border-radius: 14px;
  background: var(--white);
  text-align: left;
  cursor: pointer;
  width: 100%;
  transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
}
.space-card:hover { border-color: rgba(96, 206, 128, 0.55); }
.space-card.selected {
  border-color: var(--navy);
  box-shadow: 0 0 0 1px var(--navy);
  background: linear-gradient(180deg, #fff, var(--mint-dim));
}
.space-card.disabled {
  opacity: 0.48;
  cursor: not-allowed;
}
.space-card img {
  width: 108px;
  height: 88px;
  object-fit: cover;
  border-radius: 10px;
}
.space-card-body h3 {
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 0.15rem;
}
.space-card-body p {
  font-size: 0.78rem;
  color: var(--text-muted);
  line-height: 1.4;
}
.space-card-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-top: 0.45rem;
}
.space-price {
  font-size: 0.82rem;
  font-weight: 700;
}
.space-qty {
  display: flex;
  align-items: center;
  gap: 0.3rem;
}
.space-qty button {
  width: 1.7rem;
  height: 1.7rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--white);
  cursor: pointer;
  font-size: 1rem;
  line-height: 1;
}
.space-qty button:disabled { opacity: 0.35; cursor: not-allowed; }
.space-qty span { min-width: 1.1rem; text-align: center; font-weight: 700; font-size: 0.85rem; }

.amenity-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.7rem 1rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border);
  margin-bottom: 1.5rem;
}
@media (max-width: 520px) {
  .amenity-grid { grid-template-columns: 1fr; }
}
.amenity-item {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-size: 0.9rem;
}
.amenity-item svg {
  width: 1.25rem;
  height: 1.25rem;
  flex-shrink: 0;
}

.occasion-row { margin-top: 0.25rem; }

.reserve-card-wrap {
  position: sticky;
  top: 5.25rem;
}
.reserve-card {
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 1.25rem 1.3rem 1.4rem;
  background: var(--white);
  box-shadow: 0 6px 16px rgba(0, 21, 64, 0.1), 0 0 0 1px rgba(0, 21, 64, 0.02);
}
.reserve-price {
  display: flex;
  align-items: baseline;
  gap: 0.35rem;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}
.reserve-price .amt {
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.03em;
}
.reserve-price .per { font-size: 0.9rem; color: var(--navy); }
.reserve-price .hint { font-size: 0.8rem; color: var(--text-muted); width: 100%; }

.date-box {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border: 1px solid rgba(0, 21, 64, 0.28);
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 0;
}
.date-box .date-field {
  display: block;
  background: var(--white);
  text-align: left;
  padding: 0.55rem 0.75rem 0.65rem;
  cursor: pointer;
  min-width: 0;
}
.date-box .date-field + .date-field {
  border-left: 1px solid rgba(0, 21, 64, 0.28);
}
.date-box .date-field.active { background: var(--mint-dim); }
.date-box .lbl {
  display: block;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.date-box input[type='date'] {
  display: block;
  width: 100%;
  margin-top: 0.2rem;
  border: none;
  background: transparent;
  padding: 0;
  font: inherit;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--navy);
  min-height: 1.4rem;
  cursor: text;
}
.date-box input[type='date']:focus {
  outline: none;
}
.date-type-hint {
  font-size: 0.72rem;
  color: var(--text-muted);
  margin: 0.35rem 0 0;
  line-height: 1.35;
}

.guest-box {
  border: 1px solid rgba(0, 21, 64, 0.28);
  border-top: none;
  border-radius: 0 0 10px 10px;
  padding: 0.65rem 0.8rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
}
.date-box { border-radius: 10px 10px 0 0; }
.guest-box .lbl {
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.guest-box .val { font-size: 0.88rem; }
.stepper {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}
.stepper button {
  width: 1.85rem;
  height: 1.85rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--white);
  cursor: pointer;
  font-size: 1.05rem;
  line-height: 1;
}
.stepper button:disabled { opacity: 0.35; cursor: not-allowed; }
.stepper span { min-width: 1.2rem; text-align: center; font-weight: 700; }

.calendar-panel {
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 0.85rem;
  margin: 0.65rem 0 0.85rem;
  background: var(--surface);
}
.calendar-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.65rem;
}
.calendar-nav button {
  width: 2rem;
  height: 2rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--white);
  cursor: pointer;
}
.calendar-nav strong { font-size: 0.9rem; }
.cal-weekdays,
.cal-days {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 2px;
  text-align: center;
}
.cal-weekdays span {
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--text-muted);
  padding: 0.2rem 0;
}
.cal-days button {
  aspect-ratio: 1;
  border: none;
  background: transparent;
  border-radius: 999px;
  font-size: 0.78rem;
  cursor: pointer;
}
.cal-days button:disabled {
  color: #bbb;
  text-decoration: line-through;
  cursor: default;
}
.cal-days button.in-range { background: var(--mint-dim); border-radius: 0; }
.cal-days button.start,
.cal-days button.end {
  background: var(--navy);
  color: var(--white);
  border-radius: 999px;
}

.reserve-note {
  font-size: 0.78rem;
  color: var(--text-muted);
  text-align: center;
  margin: 0.7rem 0 0.2rem;
}
#quoteBody { margin-top: 0.85rem; }
#quoteBody .summary-line { font-size: 0.85rem; }

.guest-success-panel {
  margin-top: 1rem;
  padding-top: 0.25rem;
}
.guest-summary {
  margin-bottom: 1rem;
}
.guest-summary .summary-line {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  font-size: 0.85rem;
  padding: 0.3rem 0;
  border-bottom: 1px solid var(--border);
}
.guest-summary .summary-total {
  font-weight: 700;
  border-bottom: none;
  margin-top: 0.35rem;
}
.booking-ref-line {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 0.75rem;
  background: var(--mint-dim);
  border-radius: 10px;
  padding: 0.65rem 0.85rem;
  margin-bottom: 0.85rem;
  font-size: 0.85rem;
}
.booking-ref-line strong {
  font-size: 1.05rem;
  letter-spacing: 0.04em;
}
.guest-success-actions {
  margin-top: 0.25rem;
}
.guest-success-actions #paySquadBtn:disabled,
button[disabled][aria-disabled='true'].btn {
  opacity: 0.55;
  cursor: not-allowed;
  pointer-events: none;
}

.photo-lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(0, 9, 24, 0.92);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem 1rem;
}
.photo-lightbox[hidden] { display: none; }
.photo-lightbox img {
  max-width: min(1100px, 100%);
  max-height: 88vh;
  object-fit: contain;
  border-radius: 8px;
}
.photo-lightbox-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 2.5rem;
  height: 2.5rem;
  border: none;
  border-radius: 999px;
  background: var(--white);
  font-size: 1.4rem;
  cursor: pointer;
}

.invite-banner {
  background: var(--mint-dim);
  border: 1px solid rgba(96, 206, 128, 0.4);
  border-radius: 12px;
  padding: 0.85rem 1rem;
  margin-bottom: 1.25rem;
  font-size: 0.9rem;
}
