/* ——— Listing page shell ——— */
.listing-page {
  background: var(--cream);
}

.listing-header {
  padding: 0.85rem 1.25rem;
}

/* A fixed header needs something to stay legible against — the gallery
   photos don't have a built-in dark veil the way the hero photos do, so
   add a thin permanent scrim behind the header strip only. */
.listing-page::before {
  content: "";
  position: fixed;
  inset: 0 0 auto;
  height: 5.5rem;
  background: linear-gradient(180deg, rgba(18, 55, 44, 0.4), rgba(18, 55, 44, 0));
  z-index: 15;
  pointer-events: none;
}

.listing-main {
  max-width: 78rem;
  margin: 0 auto;
  /* Top padding matches the scrim height above, so the actual gallery
     photos start right where the fixed header ends — no bare gap above
     them, but the header also doesn't sit on top of and obscure them
     (unlike the decorative hero photos elsewhere, these are real listing
     photos guests need to see in full). */
  padding: 5.5rem 1.25rem clamp(4rem, 8vw, 6rem);
}

/* ——— Gallery ——— */
.lg-gallery {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}

.lg-shot {
  margin: 0;
  overflow: hidden;
  border-radius: 6px;
  aspect-ratio: 4 / 3;
}

.lg-shot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.lg-shot-main {
  grid-column: 1 / -1;
  aspect-ratio: 16 / 9;
}

.lg-gallery-note {
  grid-column: 1 / -1;
  margin: 0.35rem 0 0;
  font-size: 0.78rem;
  color: var(--ink-muted);
  font-style: italic;
}

@media (min-width: 700px) {
  .lg-gallery {
    grid-template-columns: repeat(4, 1fr);
  }

  .lg-shot-main {
    grid-column: 1 / 3;
    grid-row: 1 / 3;
    aspect-ratio: auto;
  }
}

/* ——— Layout ——— */
.lg-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  margin-top: 2rem;
  align-items: start;
}

.lg-content h1 {
  margin: 0.25rem 0 0.5rem;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(2.1rem, 5vw, 2.75rem);
  color: var(--teal-deep);
}

.lg-address {
  margin: 0 0 1.1rem;
  color: var(--ink-muted);
  font-size: 0.95rem;
}

.lg-facts {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1.4rem;
  margin: 0;
  padding: 0;
  font-size: 0.92rem;
  color: var(--ink);
}

.lg-facts strong {
  color: var(--teal-deep);
  font-weight: 500;
}

.lg-divider {
  border: none;
  border-top: 1px solid rgba(26, 46, 40, 0.12);
  margin: 2rem 0;
}

.lg-section h2 {
  margin: 0 0 0.9rem;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.6rem;
  color: var(--teal-deep);
}

.lg-section p {
  margin: 0 0 1rem;
  color: var(--ink);
}

.lg-section-sub {
  color: var(--ink-muted) !important;
  font-size: 0.9rem;
}

.lg-amenity-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.75rem;
}

.lg-amenity-group h3 {
  margin: 0 0 0.75rem;
  font-size: 1rem;
  font-weight: 500;
  color: var(--teal-soft);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 0.8rem;
}

.lg-check-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.55rem;
}

.lg-check-list li {
  position: relative;
  padding-left: 1.6rem;
  font-size: 0.94rem;
  color: var(--ink);
}

.lg-check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.32rem;
  width: 0.95rem;
  height: 0.95rem;
  border-radius: 50%;
  background: var(--teal-soft);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23fff' d='M9 16.2l-3.5-3.5-1.4 1.4L9 19 20 8l-1.4-1.4z'/%3E%3C/svg%3E") center / 65% no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23fff' d='M9 16.2l-3.5-3.5-1.4 1.4L9 19 20 8l-1.4-1.4z'/%3E%3C/svg%3E") center / 65% no-repeat;
}

.lg-nearby-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0;
  border-top: 1px solid rgba(26, 46, 40, 0.1);
}

.lg-nearby-list li {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.75rem 0;
  border-bottom: 1px solid rgba(26, 46, 40, 0.1);
  font-size: 0.94rem;
}

.lg-nearby-name {
  color: var(--ink);
}

.lg-nearby-dist {
  color: var(--teal-soft);
  white-space: nowrap;
  font-size: 0.85rem;
}

.lg-map {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid rgba(26, 46, 40, 0.12);
}

.lg-map iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.lg-map-link {
  display: inline-block;
  margin-top: 0.6rem;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--teal-soft);
  border-bottom: 1px solid transparent;
  transition: border-color 0.25s ease, color 0.25s ease;
}

.lg-map-link:hover {
  color: var(--gold);
  border-color: var(--gold);
}

@media (min-width: 640px) {
  .lg-amenity-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (min-width: 980px) {
  .lg-layout {
    grid-template-columns: 1.6fr 1fr;
  }
}

/* ——— Booking card ——— */
.lg-booking {
  position: relative;
}

.lg-booking-card {
  position: sticky;
  top: 5.5rem;
  background: #fff;
  border: 1px solid rgba(26, 46, 40, 0.1);
  border-radius: 10px;
  padding: 1.5rem;
  box-shadow: 0 20px 45px rgba(18, 55, 44, 0.1);
}

.lg-booking-price {
  margin-bottom: 1.1rem;
}

.lg-price-from {
  display: block;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin-bottom: 0.2rem;
}

.lg-price-amount {
  font-family: var(--font-display);
  font-size: 1.9rem;
  font-weight: 600;
  color: var(--teal-deep);
}

.lg-price-unit {
  font-size: 0.9rem;
  color: var(--ink-muted);
}

/* Calendar */
.lg-calendar-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.5rem;
}

.lg-calendar-header h3 {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--teal-deep);
  font-family: var(--font-body);
}

.lg-calendar-header button {
  border: none;
  background: var(--cream-warm);
  color: var(--teal-deep);
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 50%;
  cursor: pointer;
  font-size: 0.85rem;
  line-height: 1;
  transition: background 0.2s ease;
}

.lg-calendar-header button:hover {
  background: var(--foam);
}

.lg-calendar-header button:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.lg-calendar-weekdays {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  text-align: center;
  font-size: 0.7rem;
  color: var(--ink-muted);
  margin-bottom: 0.25rem;
}

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

.lg-cal-day {
  position: relative;
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  border: none;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  border-radius: 6px;
  transition: background 0.15s ease, color 0.15s ease;
}

.lg-cal-day.is-empty {
  cursor: default;
}

.lg-cal-day.is-past {
  color: rgba(26, 46, 40, 0.25);
  cursor: not-allowed;
}

.lg-cal-day.is-open::after {
  content: "";
  position: absolute;
  bottom: 4px;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--teal-soft);
}

.lg-cal-day.is-open:hover {
  background: var(--cream-warm);
}

.lg-cal-day.is-selected {
  background: var(--teal);
  color: #fff;
}

.lg-cal-day.is-selected::after {
  background: #fff;
}

.lg-cal-day.is-in-range {
  background: var(--foam);
}

.lg-calendar-legend {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.72rem;
  color: var(--ink-muted);
  margin-top: 0.6rem;
}

.lg-legend-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--teal-soft);
  display: inline-block;
  margin-left: 0.6rem;
}

.lg-legend-dot:first-child {
  margin-left: 0;
}

.lg-dot-selected {
  background: var(--teal);
}

.lg-calendar-sync {
  margin: 0.7rem 0 0;
  font-size: 0.72rem;
  line-height: 1.45;
  color: var(--ink-muted);
  font-style: italic;
}

/* Summary + book button */
.lg-summary {
  margin: 1.1rem 0;
  padding-top: 1rem;
  border-top: 1px solid rgba(26, 46, 40, 0.1);
  min-height: 2.5rem;
}

.lg-summary-hint {
  margin: 0;
  font-size: 0.85rem;
  color: var(--ink-muted);
}

.lg-summary-lines {
  margin: 0;
  font-size: 0.9rem;
}

.lg-summary-lines > div {
  display: flex;
  justify-content: space-between;
  margin-bottom: 0.4rem;
}

.lg-summary-lines dt,
.lg-summary-lines dd {
  margin: 0;
  font-weight: 300;
}

.lg-summary-total-row {
  padding-top: 0.5rem;
  border-top: 1px solid rgba(26, 46, 40, 0.1);
  font-weight: 500 !important;
}

.lg-summary-total-row dt,
.lg-summary-total-row dd {
  color: var(--teal-deep);
  font-weight: 500;
}

.lg-book-btn {
  width: 100%;
  border: none;
  cursor: pointer;
  font-family: var(--font-body);
}

.lg-book-btn:disabled {
  background: var(--cream-warm);
  color: var(--ink-muted);
  cursor: not-allowed;
}

.lg-booking-fine {
  margin: 0.6rem 0 0;
  text-align: center;
  font-size: 0.72rem;
  color: var(--ink-muted);
}

.lg-also-listed {
  margin-top: 0.5rem;
  text-align: center;
  font-size: 0.75rem;
  color: var(--ink-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.lg-also-listed a {
  color: var(--teal-soft);
  font-weight: 500;
  border-bottom: 1px solid transparent;
  transition: color 0.25s ease, border-color 0.25s ease;
}

.lg-also-listed a:hover {
  color: var(--gold);
  border-color: var(--gold);
}

/* ——— Booking modal ——— */
.lg-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(18, 55, 44, 0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
  z-index: 50;
}

.lg-modal-overlay[hidden] {
  display: none;
}

.lg-modal {
  background: #fff;
  border-radius: 10px;
  max-width: 26rem;
  width: 100%;
  padding: 2rem 1.75rem 1.75rem;
  position: relative;
}

.lg-modal-close {
  position: absolute;
  top: 0.9rem;
  right: 0.9rem;
  border: none;
  background: none;
  font-size: 1.1rem;
  cursor: pointer;
  color: var(--ink-muted);
}

.lg-modal h3 {
  margin: 0 0 0.5rem;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.5rem;
  color: var(--teal-deep);
}

.lg-modal p {
  margin: 0 0 0.5rem;
  font-size: 0.92rem;
  color: var(--ink);
}

.lg-modal-total {
  margin: 1.1rem 0 1.4rem;
  padding: 0.9rem 1rem;
  background: var(--cream-warm);
  border-radius: 6px;
  display: flex;
  justify-content: space-between;
  font-size: 1rem;
  color: var(--teal-deep);
  font-weight: 500;
}

.lg-modal .btn-primary {
  width: 100%;
  border: none;
  cursor: pointer;
  font-family: var(--font-body);
}

.lg-modal .btn-primary:disabled {
  opacity: 0.6;
  cursor: wait;
}

.lg-modal-error {
  margin: 0.75rem 0 0;
  font-size: 0.82rem;
  color: #a4372b;
  text-align: center;
}

.lg-modal-fine {
  margin-top: 0.9rem !important;
  font-size: 0.72rem !important;
  color: var(--ink-muted) !important;
  text-align: center;
}

/* ——— Booking status banner ——— */
.lg-banner {
  margin-bottom: 1.25rem;
  padding: 0.9rem 1.1rem;
  border-radius: 8px;
  font-size: 0.9rem;
  text-align: center;
}

.lg-banner-success {
  background: #e4f0e8;
  color: var(--teal-deep);
  border: 1px solid rgba(27, 77, 62, 0.25);
}

.lg-banner-cancelled {
  background: #f6ece7;
  color: #a4372b;
  border: 1px solid rgba(164, 55, 43, 0.25);
}
