/* Standalone listing page content (/parking/<id>, /storage/<id>).
   Owner of: listing_page/*.html markup. Built on role tokens and the shared .ui-* parts
   (buttons.css, status-pills.css, content-parts.css, modals.css); open, not boxed.
   The Discover panel and phone sheet keep luxury-spot-details.css. Phone layout is phase G. */

/* ===== Frame ===== */

body.discover-page.discover-listing-page #spot-detail-view .spot-detail-desktop-header {
  display: none !important;
}

body.discover-page.discover-listing-page #spot-detail-content {
  padding: 0 var(--spacing-lg) 96px;
  background: var(--surface-page);
}

.listing-page {
  max-width: 70rem;
  margin-inline: auto;
  color: var(--text-body);
  font-size: var(--type-body-size);
  line-height: 1.5;
}

.listing-page-icon {
  flex: none;
}

.listing-page .ui-button {
  gap: var(--spacing-sm);
}

.listing-page__toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--spacing-base);
  padding: var(--spacing-sm) 0 var(--spacing-base);
}

.listing-page__back {
  margin-left: calc(-1 * var(--spacing-base));
}

.listing-page__toolbar-actions {
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
}

/* The shared favourite toggle carries its own pill styles; on this page it is a quiet button. */
.listing-page .listing-page__save.spot-favorite-toggle {
  min-height: 44px;
  border: 0;
  background: transparent;
  color: var(--text-body);
  box-shadow: none;
}

.listing-page .listing-page__save.is-saved .listing-page-icon path {
  fill: currentColor;
}

.listing-page__title {
  margin: 0;
  font-size: var(--type-page-title-size);
  line-height: 1.2;
  font-weight: 600;
  color: var(--text-heading);
}

.listing-page__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--spacing-12);
  margin-top: var(--spacing-12);
  color: var(--text-supporting);
}

.listing-page__meta .ui-tag {
  gap: 6px;
}

.listing-page__rating {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 28px;
  color: var(--text-body);
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.listing-page__body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 380px);
  gap: var(--spacing-2xl) 64px;
  align-items: start;
  margin-top: var(--spacing-40);
}

.listing-page__main {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-2xl);
  min-width: 0;
}

.listing-page__aside {
  position: sticky;
  top: var(--spacing-lg);
  display: flex;
  flex-direction: column;
  gap: var(--spacing-base);
}

.listing-page__footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--spacing-base);
  margin-top: 64px;
  padding-top: var(--spacing-lg);
  border-top: 1px solid var(--border-default);
  font-size: var(--type-muted-size);
  color: var(--text-supporting);
}

.listing-page__footer .ui-button {
  margin-right: calc(-1 * var(--spacing-base));
  font-weight: 400;
  color: var(--text-supporting);
}

/* Shared section rhythm for the main column: heading first, no frame. */
.listing-page-section__title {
  margin: 0 0 var(--spacing-base);
  font-size: var(--type-section-title-size);
  line-height: var(--type-section-title-line-height);
  font-weight: 600;
  color: var(--text-heading);
}

.listing-page-section__lead {
  margin: calc(-1 * var(--spacing-12)) 0 var(--spacing-base);
  color: var(--text-supporting);
}

.listing-page-section__caption {
  margin: var(--spacing-12) 0 0;
  font-size: var(--type-muted-size);
  line-height: var(--type-muted-line-height);
  color: var(--text-supporting);
}

/* ===== Photos ===== */

.listing-page-photos {
  position: relative;
  margin-top: var(--spacing-lg);
}

.listing-page-photos__grid {
  display: grid;
  gap: var(--spacing-sm);
  height: 448px;
  border-radius: var(--radius-card);
  overflow: hidden;
}

.listing-page-photos--count-1 .listing-page-photos__grid { grid-template-columns: 1fr; }
.listing-page-photos--count-2 .listing-page-photos__grid { grid-template-columns: 1fr 1fr; }
.listing-page-photos--count-3 .listing-page-photos__grid { grid-template: 1fr 1fr / 2fr 1fr; }
.listing-page-photos--count-4 .listing-page-photos__grid,
.listing-page-photos--count-5 .listing-page-photos__grid { grid-template: 1fr 1fr / 2fr 1fr 1fr; }

.listing-page-photos--count-3 .listing-page-photos__item--lead,
.listing-page-photos--count-4 .listing-page-photos__item--lead,
.listing-page-photos--count-5 .listing-page-photos__item--lead {
  grid-row: 1 / span 2;
}

.listing-page-photos--count-4 .listing-page-photos__item:nth-child(2) {
  grid-column: 2 / span 2;
}

.listing-page-photos__item {
  position: relative;
  display: block;
  min-width: 0;
  min-height: 0;
  padding: 0;
  border: 0;
  background: var(--surface-muted);
  cursor: zoom-in;
}

.listing-page .listing-page-photos .listing-page-photos__item img {
  /* phone-safe.css forces img height:auto with a long :not() chain; min-height still fills the tile. */
  max-height: none;
  min-height: 100%;
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: filter var(--motion-fast) var(--motion-ease);
}

.listing-page-photos__item:hover img {
  filter: brightness(0.94);
}

.listing-page-photos__item:focus-visible {
  outline: var(--focus-ring-outline);
  outline-offset: -4px;
  z-index: 1;
}

.listing-page-photos__all {
  position: absolute;
  right: var(--spacing-base);
  bottom: var(--spacing-base);
  background: var(--surface-raised);
  box-shadow: var(--shadow-floating);
}

.listing-page-photos--empty {
  display: grid;
  place-items: center;
  min-height: 280px;
  padding: var(--spacing-xl);
  border-radius: var(--radius-card);
  background: var(--surface-card);
  text-align: center;
}

.listing-page-photos__empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--spacing-sm);
  max-width: 28rem;
  color: var(--text-supporting);
}

.listing-page-photos__empty .listing-page-icon {
  color: var(--text-body);
}

.listing-page-photos__empty-title {
  margin: 0;
  font-weight: 600;
  color: var(--text-heading);
}

.listing-page-photos__empty-body {
  margin: 0 0 var(--spacing-sm);
}

/* Full-screen viewer: a native modal dialog keeps focus inside and closes on Escape. */
.listing-page-viewer {
  width: 100vw;
  max-width: 100vw;
  height: 100dvh;
  max-height: 100dvh;
  margin: 0;
  padding: 0;
  border: 0;
  background: var(--surface-page);
  color: var(--text-body);
}

.listing-page-viewer[open] {
  display: flex;
  flex-direction: column;
}

.listing-page-viewer__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--spacing-base);
  padding: var(--spacing-base) var(--spacing-lg);
}

.listing-page-viewer__count {
  margin: 0;
  font-weight: 500;
}

.listing-page-viewer__stage {
  position: relative;
  flex: 1 1 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 0;
  padding: 0 72px var(--spacing-lg);
}

.listing-page-viewer__slide {
  margin: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: listing-page-fade var(--motion-standard) var(--motion-ease);
}

.listing-page-viewer__slide[hidden] {
  display: none;
}

.listing-page-viewer__slide img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  border-radius: var(--radius-card);
}

.listing-page-viewer__step {
  position: absolute;
  top: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  margin-top: -24px;
  border: 1px solid var(--border-default);
  border-radius: var(--radius-chip);
  background: var(--surface-raised);
  color: var(--text-body);
  box-shadow: var(--shadow-floating);
  cursor: pointer;
}

.listing-page-viewer__step--prev { left: var(--spacing-base); }
.listing-page-viewer__step--next { right: var(--spacing-base); }

.listing-page-viewer__step:focus-visible {
  outline: var(--focus-ring-outline);
  outline-offset: var(--focus-ring-offset);
}

@keyframes listing-page-fade {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* ===== Booking panel ===== */

.listing-page-booking {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-20);
  padding: var(--spacing-lg);
  border-radius: var(--radius-card);
  background: var(--surface-card);
}

.listing-page-booking__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--spacing-12);
}

.listing-page-booking__headline {
  margin: 0;
  color: var(--text-supporting);
}

.listing-page-booking__amount {
  font-size: var(--type-page-title-size);
  line-height: 1.2;
  font-weight: 600;
  color: var(--text-heading);
}

.listing-page-booking__amount--text {
  font-size: var(--type-section-title-size);
}

.listing-page-booking__from {
  color: var(--text-supporting);
}

.listing-page-booking__other-rates {
  margin: var(--spacing-xs) 0 0;
  font-size: var(--type-muted-size);
  color: var(--text-supporting);
}

.listing-page-booking__status {
  flex: none;
}

.listing-page-booking__dates {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--spacing-sm);
}

.listing-page-booking__date {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}

.listing-page-booking__label {
  font-size: var(--type-label-size);
  font-weight: 500;
  color: var(--text-body);
}

.listing-page-booking__field {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--spacing-sm);
  min-height: 48px;
  padding: 0 var(--spacing-12);
  border: 1px solid var(--border-control);
  border-radius: var(--radius-control);
  background: var(--surface-raised);
  color: var(--text-body);
  font: inherit;
  font-size: var(--type-body-size);
  text-align: left;
  cursor: pointer;
  transition: border-color var(--motion-fast) var(--motion-ease);
}

.listing-page-booking__field:hover {
  border-color: var(--text-body);
}

.listing-page-booking__field:focus-visible {
  outline: var(--focus-ring-outline);
  outline-offset: var(--focus-ring-offset);
}

.listing-page-booking__field [data-listing-date-value] {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.listing-page-booking__field.is-empty [data-listing-date-value] {
  color: var(--text-supporting);
}

.listing-page-booking__time {
  min-height: 1.45em;
  font-size: var(--type-muted-size);
  color: var(--text-supporting);
}

/* Duration chips come from DiscoverDurationManager; restyled here as pills. */
.listing-page .listing-page-booking__duration:empty {
  display: none;
}

.listing-page .listing-page-booking__duration .spot-detail-duration {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-sm);
  margin: 0;
  padding: 0;
  border: 0;
  background: none;
}

.listing-page .listing-page-booking__duration .spot-detail-duration__title {
  margin: 0;
  font-size: var(--type-label-size);
  font-weight: 500;
  color: var(--text-body);
  text-transform: none;
  letter-spacing: 0;
}

.listing-page .listing-page-booking__duration .spot-detail-duration__panel {
  padding: 0;
  border: 0;
  background: none;
}

.listing-page .listing-page-booking__duration .spot-detail-duration__hint {
  margin: 0 0 var(--spacing-sm);
  font-size: var(--type-muted-size);
  color: var(--text-supporting);
}

.listing-page .listing-page-booking__duration .spot-detail-duration__chips {
  display: flex;
  flex-wrap: wrap;
  gap: var(--spacing-sm);
}

.listing-page .listing-page-booking__duration .spot-detail-duration__chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 44px;
  padding: 0 var(--spacing-base);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-chip);
  background: var(--surface-raised);
  color: var(--text-body);
  font-size: var(--type-label-size);
  font-weight: 500;
  box-shadow: none;
  transition: background-color var(--motion-fast) var(--motion-ease), color var(--motion-fast) var(--motion-ease);
}

.listing-page .listing-page-booking__duration .spot-detail-duration__chip-icon {
  display: none;
}

.listing-page .listing-page-booking__duration .spot-detail-duration__chip[aria-pressed="true"],
.listing-page .listing-page-booking__duration .spot-detail-duration__chip.selected,
.listing-page .listing-page-booking__duration .spot-detail-duration__chip.is-selected {
  border-color: var(--color-action-primary);
  background: var(--color-action-primary);
  color: var(--color-action-primary-text);
}

.listing-page-booking__space {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 6px var(--spacing-12);
  padding-top: var(--spacing-base);
  border-top: 1px solid var(--border-default);
}

.listing-page-booking__space-select {
  display: block;
  grid-column: 1 / -1;
  width: 100%;
  min-width: 0;
  text-overflow: ellipsis;
}

.listing-page-booking__change {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-weight: 500;
}

/* Server quote (phase D): price breakdown and total, hidden until dates are set. */
.listing-page-booking__quote[hidden] {
  display: none;
}

.listing-page-booking__quote {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-xs);
  padding-top: var(--spacing-base);
  border-top: 1px solid var(--border-default);
}

.listing-page-booking__quote-lines {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-xs);
  transition: opacity var(--motion-fast) var(--motion-ease);
}

.listing-page-booking__quote[aria-busy="true"] .listing-page-booking__quote-lines {
  opacity: 0.6;
}

.listing-page-booking__quote-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--spacing-12);
}

.listing-page-booking__quote-label {
  min-width: 0;
}

.listing-page-booking__quote-detail,
.listing-page-booking__quote-row--recurring {
  font-size: var(--type-muted-size);
  color: var(--text-supporting);
}

.listing-page-booking__quote-amount {
  flex: none;
  font-variant-numeric: tabular-nums;
}

.listing-page-booking__quote-row--closing {
  margin-top: var(--spacing-xs);
  padding-top: var(--spacing-sm);
  border-top: 1px solid var(--border-default);
  font-weight: 500;
}

.listing-page-booking__quote-status {
  margin: 0;
  font-size: var(--type-muted-size);
  color: var(--text-supporting);
}

.listing-page-booking__quote-status[hidden] {
  display: none;
}

.listing-page-booking__quote-status.is-error {
  color: var(--state-error);
}

@media (prefers-reduced-motion: reduce) {
  .listing-page-booking__quote-lines {
    transition: none;
  }
}

.listing-page #spot-detail-book,
.listing-page .listing-page-booking__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--spacing-sm);
  width: 100%;
  min-height: 52px;
  padding: 0 var(--spacing-lg);
  border: 0;
  border-radius: var(--radius-chip);
  background: var(--color-action-primary);
  color: var(--color-action-primary-text);
  font-size: var(--type-body-size);
  font-weight: 500;
  text-decoration: none;
  box-shadow: none;
  cursor: pointer;
  transition: background-color var(--motion-fast) var(--motion-ease);
}

/* luxury-spot-details.css caps the panel's Book button with !important; the page button spans the card. */
#spot-detail-view .listing-page #spot-detail-book {
  width: 100% !important;
  max-width: none !important;
}

.listing-page #spot-detail-book:hover:not(:disabled) {
  background: var(--color-action-primary-hover);
}

.listing-page #spot-detail-book:active:not(:disabled) {
  background: var(--color-action-primary-pressed);
}

.listing-page #spot-detail-book:focus-visible {
  outline: var(--focus-ring-outline);
  outline-offset: var(--focus-ring-offset);
}

.listing-page #spot-detail-book:disabled {
  background: var(--surface-muted);
  color: var(--text-supporting);
  cursor: not-allowed;
}

.listing-page #spot-detail-book svg {
  display: none;
}

.listing-page-booking__note {
  margin: calc(-1 * var(--spacing-sm)) 0 0;
  font-size: var(--type-muted-size);
  text-align: center;
  color: var(--text-supporting);
}

.listing-page-booking__terms {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-xs);
  font-size: var(--type-muted-size);
  line-height: var(--type-muted-line-height);
  color: var(--text-supporting);
}

.listing-page-booking__terms p {
  margin: 0;
}

.listing-page-booking__terms p[hidden] {
  display: none;
}

.listing-page-booking__reassurance {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: var(--spacing-sm);
  margin: 0;
  font-size: var(--type-muted-size);
  color: var(--text-supporting);
}

.listing-page-booking__reassurance[hidden] {
  display: none;
}

.listing-page-booking--owner {
  gap: var(--spacing-12);
}

.listing-page-booking__owner-title {
  margin: 0;
  font-size: var(--type-section-title-size);
  font-weight: 600;
}

.listing-page [hidden],
.listing-page .listing-page-booking [hidden] {
  display: none;
}

/* ===== Facts, host, about ===== */

/* ===== Key facts ===== */

.listing-page-facts {
  padding-bottom: var(--spacing-xl);
  border-bottom: 1px solid var(--border-default);
}

.listing-page-facts__list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--spacing-lg);
  margin: 0;
}

.listing-page-facts__item {
  display: grid;
  grid-template-columns: 24px 1fr;
  column-gap: var(--spacing-12);
  align-items: start;
  color: var(--text-heading);
}

.listing-page-facts__item:has([data-selected-unit-entry-value]:empty) {
  display: none;
}

.listing-page-facts__item .listing-page-icon {
  grid-row: 1 / span 2;
  margin-top: 2px;
}

.listing-page-facts__label {
  margin: 0;
  font-size: var(--type-label-size);
  font-weight: 400;
  color: var(--text-supporting);
}

.listing-page-facts__value {
  grid-column: 2;
  margin: 0;
  font-weight: 500;
  color: var(--text-heading);
  overflow-wrap: anywhere;
}

/* ===== Storage: how big is it, what you can store (phase E) =====
   Storage-only sections. They wrap without media rules, so the phone layout
   (phase G) needs nothing extra here. */

.listing-page-size,
.listing-page-store {
  padding: var(--spacing-xl) 0;
  border-bottom: 1px solid var(--border-default);
}

.listing-page-size[hidden],
.listing-page-store[hidden] {
  display: none;
}

.listing-page-size__body {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--spacing-xl);
}

.listing-page-size__plan {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--spacing-xs);
  margin: 0;
  min-width: 184px;
}

.listing-page-size__row {
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
}

.listing-page-size__outline {
  display: block;
}

.listing-page-size__outline rect {
  fill: var(--surface-card);
  stroke: var(--text-heading);
  stroke-width: 2;
}

.listing-page-size__side,
.listing-page-size__bottom {
  font-size: var(--type-muted-size);
  color: var(--text-supporting);
}

.listing-page-size__area {
  font-weight: 500;
  color: var(--text-heading);
}

.listing-page-size__text {
  flex: 1 1 260px;
  min-width: 0;
}

.listing-page-size__title {
  margin: 0;
  font-weight: 600;
  color: var(--text-heading);
}

.listing-page-size__line {
  margin: var(--spacing-xs) 0 0;
  color: var(--text-body);
}

.listing-page-store__columns {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: var(--spacing-lg);
}

.listing-page-store__heading {
  margin: 0 0 var(--spacing-sm);
  font-size: var(--type-body-size);
  font-weight: 600;
  color: var(--text-heading);
}

.listing-page-store__list {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-sm);
  margin: 0;
  padding: 0;
  list-style: none;
}

.listing-page-store__item {
  display: flex;
  align-items: flex-start;
  gap: var(--spacing-12);
  color: var(--text-body);
}

.listing-page-store__item .listing-page-icon {
  flex: none;
  margin-top: 2px;
  color: var(--text-supporting);
}

.listing-page-store__note {
  margin: var(--spacing-base) 0 0;
  color: var(--text-body);
  overflow-wrap: anywhere;
}

.listing-page-store__note-label {
  font-weight: 500;
  color: var(--text-heading);
}

/* Storage booking panel: "How long do you need it?", asked before the dates. */
.listing-page-booking__stays {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-xs);
  margin-bottom: var(--spacing-sm);
}

.listing-page-booking__stays[hidden] {
  display: none;
}

.listing-page-booking__stay-list {
  display: flex;
  flex-wrap: wrap;
  gap: var(--spacing-xs) var(--spacing-base);
  margin: 0;
  padding: 0;
  list-style: none;
  font-weight: 500;
  color: var(--text-heading);
}

.listing-page-booking__stays-note {
  margin: 0;
  font-size: var(--type-muted-size);
  line-height: var(--type-muted-line-height);
  color: var(--text-supporting);
}

.listing-page-booking__stays-note[hidden],
.listing-page-booking__date[hidden] {
  display: none;
}

/* Fixed dates / Month-to-month: the shared tab switcher, full width with equal halves. */
.listing-page-booking__stay-choice {
  display: flex;
}

.listing-page-booking__stay-choice .ui-tabs__tab {
  flex: 1 1 0;
}

/* Monthly: "When do you plan to leave?" with one button per plan, its listed price and saving. */
.listing-page-booking__stay-choice-group,
.listing-page-booking__leave,
.listing-page-booking__plans {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-xs);
}

.listing-page-booking__leave[hidden] {
  display: none;
}

.listing-page-booking__plan {
  display: flex;
  flex-direction: column;
  gap: 2px;
  width: 100%;
  padding: var(--spacing-sm);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-md);
  background: var(--surface-card);
  color: var(--text-primary);
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.listing-page-booking__plan[aria-pressed="true"] {
  border-color: var(--text-primary);
  box-shadow: inset 0 0 0 1px var(--text-primary);
}

.listing-page-booking__plan:focus-visible {
  outline: 2px solid var(--text-primary);
  outline-offset: 2px;
}

.listing-page-booking__plan-title {
  font-weight: 600;
  color: var(--text-heading);
}

.listing-page-booking__plan-detail,
.listing-page-booking__plan-price {
  font-size: var(--type-muted-size);
  line-height: var(--type-muted-line-height);
  color: var(--text-supporting);
}

.listing-page-booking__plan-saving {
  font-weight: 600;
  color: var(--text-primary);
}

@media (max-width: 720px) {
  .listing-page-facts__list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* ===== Host ===== */

.listing-page-host {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--spacing-base);
  padding: var(--spacing-xl) 0;
  border-bottom: 1px solid var(--border-default);
}

.listing-page-host__avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  flex: none;
  border-radius: 50%;
  background: var(--surface-muted);
  color: var(--text-heading);
  font-size: var(--type-section-title-size);
  font-weight: 600;
}

.listing-page-host__text {
  flex: 1 1 12rem;
  min-width: 0;
}

.listing-page-host__name {
  margin: 0;
  font-weight: 600;
  color: var(--text-heading);
}

.listing-page-host__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--spacing-xs);
  margin: 0;
  font-size: var(--type-label-size);
  color: var(--text-supporting);
}

.listing-page-host__verified {
  display: inline-flex;
  align-items: center;
  gap: var(--spacing-xs);
}

/* ===== About and amenities ===== */

.listing-page-about,
.listing-page-amenities-section {
  padding: var(--spacing-xl) 0;
  border-bottom: 1px solid var(--border-default);
}

.listing-page-about__text {
  margin: 0;
  color: var(--text-body);
  white-space: pre-line;
  overflow-wrap: anywhere;
}

.listing-page-about__subtitle {
  margin: var(--spacing-base) 0 var(--spacing-xs);
  font-size: var(--type-body-size);
  font-weight: 600;
  color: var(--text-heading);
}

.listing-page-amenities {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--spacing-base) var(--spacing-lg);
  margin: 0;
  padding: 0;
  list-style: none;
}

.listing-page-amenities__item {
  display: flex;
  align-items: center;
  gap: var(--spacing-12);
  color: var(--text-body);
}

@media (max-width: 520px) {
  .listing-page-amenities {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* ===== Choose your space ===== */

/* ===== Choose your space ===== */

.listing-page-spaces__list {
  list-style: none;
  margin: var(--spacing-base) 0 0;
  padding: 0;
  display: grid;
  gap: var(--spacing-sm);
}

.listing-page-space {
  display: grid;
  grid-template-columns: 112px 1fr auto;
  align-items: center;
  gap: var(--spacing-base);
  width: 100%;
  padding: 12px;
  border: 0;
  border-radius: var(--radius-card);
  background: var(--surface-card);
  color: var(--text-body);
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition: background-color 150ms var(--motion-ease), box-shadow 150ms var(--motion-ease);
}

.listing-page-space:hover:not(:disabled) {
  background: var(--surface-card-hover);
}

.listing-page .listing-page-space:focus-visible {
  outline: var(--focus-ring-outline);
  outline-offset: var(--focus-ring-offset);
}

.listing-page-space[aria-pressed="true"],
.listing-page .spot-group-mini-card--selected .listing-page-space {
  outline: var(--focus-ring-width) solid var(--text-heading);
  outline-offset: calc(-1 * var(--focus-ring-width));
}

.listing-page-space:disabled {
  cursor: not-allowed;
  color: var(--text-supporting);
}

.listing-page-space:disabled .listing-page-space__name,
.listing-page-space:disabled .listing-page-space__rate {
  color: var(--text-supporting);
}

.listing-page-space:disabled .listing-page-space__thumb {
  opacity: 0.6;
}

.listing-page .listing-page-space.spot-group-mini-cta--selected {
  background: var(--surface-card);
  color: var(--text-body);
  border: 0;
}

.listing-page-space__thumb {
  display: block;
  width: 112px;
  height: 84px;
  border-radius: var(--radius-card);
  overflow: hidden;
  background: var(--surface-card-hover);
}

.listing-page-space__thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.listing-page-space__thumb-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  color: var(--text-supporting);
}

.listing-page-space__body {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.listing-page-space__name {
  font-weight: 600;
  color: var(--text-heading);
}

.listing-page-space__line {
  color: var(--text-supporting);
  font-size: var(--type-muted-size);
}

.listing-page-space__aside {
  display: grid;
  justify-items: end;
  gap: var(--spacing-xs, 4px);
  text-align: right;
}

.listing-page-space__rate {
  font-weight: 600;
  color: var(--text-heading);
  white-space: nowrap;
}

.listing-page-space__unit {
  font-weight: 400;
  color: var(--text-supporting);
}

.listing-page-space__selected {
  display: none;
  padding: 4px 12px;
  border-radius: var(--radius-chip);
  background: var(--color-action-primary);
  color: var(--color-action-primary-text);
  font-size: var(--type-muted-size);
  line-height: 1.2;
}

.listing-page-space[aria-pressed="true"] .listing-page-space__selected {
  display: inline-block;
}

@media (max-width: 519px) {
  .listing-page-space {
    grid-template-columns: 80px 1fr auto;
    gap: var(--spacing-sm);
  }

  .listing-page-space__thumb {
    width: 80px;
    height: 60px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .listing-page-space {
    transition: none;
  }
}

/* ===== Where it is, Good to know, reviews ===== */

/* ===== Where it is ===== */

.listing-page-where__map {
  position: relative;
  height: 340px;
  overflow: hidden;
  border-radius: var(--radius-card);
}

.listing-page-where__image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.listing-page-where__open {
  position: absolute;
  right: var(--spacing-base);
  bottom: var(--spacing-base);
  border-radius: var(--radius-chip);
  background: var(--surface-raised);
  box-shadow: var(--shadow-floating);
}

.listing-page-where__area {
  margin: var(--spacing-12) 0 0;
  color: var(--text-heading);
}

/* ===== Good to know ===== */

.listing-page-gtk__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--spacing-xl);
}

.listing-page-gtk__item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--spacing-sm);
}

.listing-page-gtk__name {
  margin: 0;
  font-size: var(--type-body-size);
  font-weight: 600;
  color: var(--text-heading);
}

.listing-page-gtk__summary {
  margin: 0;
  font-size: var(--type-muted-size);
  line-height: var(--type-muted-line-height);
  color: var(--text-supporting);
}

.listing-page-gtk__item .listing-page-gtk__summary {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  overflow: hidden;
}

.listing-page-gtk__more {
  min-height: 44px;
  padding: 0;
  border: 0;
  background: transparent;
  font: inherit;
  cursor: pointer;
}

.listing-page-gtk__agreements,
.listing-page-gtk__arrival {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-sm);
  margin-top: var(--spacing-xl);
}

.listing-page-gtk__agreements[hidden] {
  display: none;
}

.listing-page-gtk__terms {
  margin: var(--spacing-base) 0 0;
  font-size: var(--type-muted-size);
}

/* ===== Dialogs ===== */

.listing-page-dialog:not([open]) {
  display: none;
}

.listing-page-dialog {
  /* The shared reset zeroes the browser's centring margin; put it back. */
  margin: auto;
  width: calc(100% - 2 * var(--spacing-lg));
  max-width: 40rem;
  max-height: calc(100vh - 2 * var(--spacing-lg));
  color: var(--text-body);
  border: 0;
}

.listing-page-dialog[open] {
  display: flex;
}

.listing-page-dialog::backdrop {
  background: rgb(0 0 0 / 40%);
}

.listing-page-dialog__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--spacing-base);
}

.listing-page-dialog__head h2 {
  margin: 0;
}

.listing-page-dialog__body {
  min-height: 0;
  overflow-y: auto;
}

.listing-page-dialog__body p {
  margin: 0 0 var(--spacing-sm);
}

/* ===== Share panel ===== */

.listing-share {
  max-width: 30rem;
}

.listing-share__preview {
  display: flex;
  align-items: center;
  gap: var(--spacing-12);
  padding: var(--spacing-12);
  background: var(--surface-card);
  border-radius: var(--radius-card);
}

.listing-share__thumb {
  flex: none;
  width: 3.5rem;
  height: 3.5rem;
  object-fit: cover;
  border-radius: var(--radius-md);
}

.listing-share__thumb--icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--text-supporting);
  background: var(--surface-muted);
}

.listing-share__preview-text {
  min-width: 0;
}

.listing-share__title {
  margin: 0;
  overflow: hidden;
  color: var(--text-heading);
  font-size: var(--type-body-size);
  font-weight: 600;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.listing-share__meta {
  margin: 0;
  color: var(--text-supporting);
  font-size: var(--type-muted-size);
  line-height: var(--type-muted-line-height);
}

.listing-share__targets {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(4.5rem, 1fr));
  gap: var(--spacing-sm);
  margin: 0;
  padding: 0;
  list-style: none;
}

.listing-share__targets [hidden] {
  display: none;
}

.listing-share__target {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--spacing-xs);
  width: 100%;
  padding: var(--spacing-xs) 0;
  color: var(--text-body);
  font: inherit;
  font-size: var(--type-label-size);
  text-align: center;
  text-decoration: none;
  background: none;
  border: 0;
  border-radius: var(--radius-control);
  cursor: pointer;
}

.listing-share__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3.25rem;
  height: 3.25rem;
  color: var(--text-heading);
  background: var(--surface-card);
  border-radius: 50%;
  transition: background-color var(--motion-fast) var(--motion-ease);
}

.listing-share__target:hover .listing-share__icon {
  background: var(--surface-card-hover);
}

.listing-share__target:focus-visible {
  outline: var(--focus-ring-outline);
  outline-offset: var(--focus-ring-offset);
}

.listing-share__link {
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
}

.listing-share__link-icon {
  display: inline-flex;
  flex: none;
  color: var(--text-supporting);
}

.listing-share__url {
  flex: 1;
  min-width: 0;
  text-overflow: ellipsis;
}

.listing-share__copy {
  flex: none;
}

.listing-share__status {
  min-height: var(--type-muted-line-height);
  margin: 0;
  color: var(--text-supporting);
  font-size: var(--type-muted-size);
}

/* Phones: a bottom sheet, like the system share sheet. */
@media (max-width: 519px) {
  .listing-share {
    width: 100%;
    max-width: none;
    margin: auto 0 0;
    padding-bottom: calc(var(--spacing-lg) + env(safe-area-inset-bottom));
    border-radius: var(--radius-sheet) var(--radius-sheet) 0 0;
  }

  .listing-share__targets {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (prefers-reduced-motion: reduce) {
  .listing-share__icon {
    transition: none;
  }
}

/* ===== Reviews ===== */

.listing-page-reviews__title {
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
}

.listing-page-reviews__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--spacing-xl);
}

.listing-page-reviews__item {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-sm);
}

.listing-page-reviews__who {
  display: flex;
  align-items: center;
  gap: var(--spacing-12);
}

.listing-page-reviews__avatar {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-chip);
  background: var(--surface-muted);
  font-weight: 600;
  color: var(--text-heading);
}

.listing-page-reviews__name {
  font-weight: 600;
  color: var(--text-heading);
}

.listing-page-reviews__meta {
  display: flex;
  align-items: center;
  gap: var(--spacing-xs);
  font-size: var(--type-muted-size);
  color: var(--text-supporting);
}

.listing-page-reviews__text {
  margin: 0;
}

@media (max-width: 900px) {
  .listing-page-gtk__grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 720px) {
  .listing-page-reviews__grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* ===== Narrower windows ===== */

@media (max-width: 1100px) {
  .listing-page__body {
    grid-template-columns: minmax(0, 1fr);
  }

  .listing-page__aside {
    position: static;
    order: -1;
  }
}

/* Laptop and wider (W24): the booking panel starts beside the title, at the top of the gallery
   block, so the price, dates and button are on the first screen next to the photos. The page
   body's two columns are lifted into the page grid. */
@media (min-width: 1101px) {
  body.discover-page.discover-listing-page #spot-detail-content > .listing-page {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) minmax(320px, 380px);
    grid-template-areas:
      "toolbar toolbar"
      "header  aside"
      "photos  aside"
      "main    aside"
      "footer  footer";
    grid-template-rows: auto auto auto 1fr auto;
    column-gap: 48px;
    align-items: start;
  }

  .listing-page__toolbar { grid-area: toolbar; }
  .listing-page__header { grid-area: header; }
  .listing-page .listing-page-photos { grid-area: photos; }
  .listing-page__footer { grid-area: footer; }

  .listing-page__body {
    display: contents;
  }

  .listing-page__main {
    grid-area: main;
    margin-top: var(--spacing-40);
  }

  .listing-page__aside {
    grid-area: aside;
    align-self: stretch;
    position: static;
  }

  /* Sticky inside its own column, from the photos down to the end of the main column (never over the footer). */
  .listing-page__aside > .listing-page-booking {
    position: sticky;
    top: var(--spacing-lg);
    gap: var(--spacing-sm);
    padding: var(--spacing-base);
    /* On a short window (768 tall) the length choices and price lines can make the panel taller
       than the room under the site header (about 140px). It then scrolls inside itself. */
    max-height: calc(100dvh - 140px - var(--spacing-base));
    overflow-y: auto;
    overscroll-behavior: contain;
  }

  /* The main button stays in view at the bottom of the panel while the panel scrolls;
     the ring in the panel's own colour keeps scrolled lines from touching it. The button is
     matched by id as well: the availability refresh redraws it without the panel's class. */
  .listing-page .listing-page__aside > .listing-page-booking > :is(.listing-page-booking__cta, #spot-detail-book) {
    --listing-cta-mask:
      0 0 0 var(--spacing-sm) var(--surface-card),
      0 var(--spacing-base) 0 var(--spacing-sm) var(--surface-card);

    position: sticky;
    bottom: 0;
    flex: none;
    box-shadow: var(--listing-cta-mask);
  }

  /* Room for the pinned button when the page brings the total into view. */
  .listing-page__aside > .listing-page-booking > .listing-page-booking__quote {
    scroll-margin-bottom: calc(52px + 2 * var(--spacing-base));
  }

  .listing-page-booking__space {
    padding-top: var(--spacing-sm);
  }

  /* Keep the quote and Reserve in view without hiding choices or shrinking targets. */
  .listing-page .listing-page-booking__duration .spot-detail-duration__chips {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .listing-page .listing-page-booking__duration .spot-detail-duration__chip {
    min-width: 0;
    min-height: 44px;
    padding-inline: var(--spacing-sm);
    white-space: normal;
  }

  .listing-page .listing-page-photos__grid {
    height: 400px;
  }
}

/* Phone chrome is for phones only: the bar, scrim and sheet title row do not exist above 720px. */
.listing-page-bar,
.listing-page-scrim,
.listing-page-sheet__head,
.listing-page-photos__counter {
  display: none;
}

/* ===== Phone (phase G): full-screen page, pinned price and button, booking sheet ===== */

@media (max-width: 720px) {
  body.discover-page.discover-listing-page {
    --listing-bar-height: calc(76px + env(safe-area-inset-bottom, 0px));
    --listing-bar-clearance: max(var(--listing-bar-height), var(--listing-bar-rendered-height, 0px));
  }

  /* Give consent and support separate space above the actual booking bar. */
  body.discover-listing-page:has([data-listing-bar]) {
    --discover-cookie-banner-bottom: calc(var(--listing-bar-clearance) + var(--spacing-sm));
  }

  body.discover-page.discover-listing-page:has([data-listing-bar]) #supportChatWidget {
    --support-chat-fab-bottom: calc(var(--listing-bar-clearance) + var(--spacing-12));
  }

  /* The page is full screen: its own back button replaces the Discover bars. */
  body.discover-page.discover-listing-page #spot-detail-view > header,
  body.discover-page.discover-listing-page #mobile-bottom-nav {
    display: none;
  }

  body.discover-page.discover-listing-page .discover-top-bar {
    visibility: hidden;
  }

  /* Consent returns when the sheet closes, with the visitor's choice still pending. */
  body.discover-listing-page.listing-sheet-open #cookie-banner {
    visibility: hidden !important;
  }

  /* While the sheet is open the chat button would sit on top of it. Older rules force its visibility and
     pointer events, so use the widget's own variables: fully transparent and parked above the screen. */
  body.discover-page.discover-listing-page.listing-sheet-open:has([data-listing-bar]) #supportChatWidget {
    --support-chat-fab-opacity: 0;
    --support-chat-fab-bottom: 100dvh;
  }

  /* The older Discover sheet rules set this padding and the wrapper's display with !important, and
     bottomsheet.css does it inside @layer components, where an important rule beats unlayered ones.
     Only the earliest layer (declared first in design-tokens.css) outranks it. Phase J removes the old rules. */
  @layer base {
    body.discover-page.discover-listing-page #spot-detail-content {
      padding: 0 !important;
    }
  }

  body.discover-page.discover-listing-page #spot-detail-content > .listing-page {
    display: flex !important;
  }

  body.discover-page.discover-listing-page #spot-detail-content:has(.listing-page.is-sheet-open) {
    overflow: hidden;
  }

  .listing-page {
    position: relative;
    flex-direction: column;
    max-width: none;
  }

  /* Photos lead, edge to edge; the toolbar floats over them as round buttons. */
  .listing-page .listing-page-photos {
    order: -1;
    margin-top: 0;
  }

  .listing-page .listing-page-photos .listing-page-photos__grid {
    display: flex;
    gap: 0;
    height: 300px;
    border-radius: 0;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
  }

  .listing-page .listing-page-photos .listing-page-photos__grid::-webkit-scrollbar {
    display: none;
  }

  .listing-page-photos__item,
  .listing-page-photos__item:not(.listing-page-photos__item--lead) {
    display: block;
    flex: 0 0 100%;
    scroll-snap-align: start;
    scroll-snap-stop: always;
  }

  .listing-page-photos--empty {
    min-height: 300px;
    border-radius: 0;
  }

  .listing-page-photos__all {
    display: none;
  }

  .listing-page-photos__counter {
    position: absolute;
    right: var(--spacing-base);
    bottom: var(--spacing-base);
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 0 var(--spacing-12);
    border-radius: var(--radius-chip);
    background: var(--surface-raised);
    box-shadow: var(--shadow-floating);
    color: var(--text-body);
    font-size: var(--type-muted-size);
    font-weight: 500;
    pointer-events: none;
  }

  .listing-page__toolbar {
    position: absolute;
    top: max(var(--spacing-base), env(safe-area-inset-top, 0px));
    left: var(--spacing-base);
    right: var(--spacing-base);
    z-index: 2;
    padding: 0;
    pointer-events: none;
  }

  .listing-page__toolbar .ui-button,
  .listing-page .listing-page__toolbar .listing-page__save.spot-favorite-toggle {
    width: 44px;
    height: 44px;
    min-height: 44px;
    margin: 0;
    padding: 0;
    gap: 0;
    border: 0;
    border-radius: var(--radius-chip);
    background: var(--surface-raised);
    box-shadow: var(--shadow-floating);
    color: var(--text-body);
    font-size: 0;
    line-height: 0;
    pointer-events: auto;
  }

  .listing-page__toolbar .listing-page__save [data-spot-favorite-label] {
    display: none;
  }

  .listing-page__header,
  .listing-page__body,
  .listing-page__footer {
    padding-inline: var(--spacing-20);
  }

  .listing-page__header {
    padding-top: var(--spacing-20);
  }

  .listing-page__body {
    margin-top: var(--spacing-lg);
  }

  /* Room under the footer so the pinned bar never covers the last line. */
  .listing-page__footer {
    margin-top: var(--spacing-2xl);
    padding-bottom: calc(var(--listing-bar-clearance) + var(--spacing-lg));
  }

  /* Pinned price and main button. */
  .listing-page-bar {
    position: fixed;
    inset: auto 0 0;
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--spacing-base);
    min-height: var(--listing-bar-height);
    padding: var(--spacing-12) var(--spacing-20) calc(var(--spacing-12) + env(safe-area-inset-bottom, 0px));
    border-top: 1px solid var(--border-default);
    background: var(--surface-page);
  }

  .listing-page-bar__summary {
    display: flex;
    flex: 1 1 0;
    flex-direction: column;
    justify-content: center;
    min-width: 0;
    min-height: 44px;
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--text-body);
    font: inherit;
    text-align: left;
    cursor: pointer;
  }

  .listing-page-bar__summary--static {
    cursor: default;
  }

  .listing-page-bar__price .listing-page-booking__headline {
    white-space: nowrap;
  }

  .listing-page-bar__price .listing-page-booking__amount {
    font-size: var(--type-section-title-size);
    line-height: var(--type-section-title-line-height);
  }

  .listing-page-bar__detail {
    overflow: hidden;
    font-size: var(--type-muted-size);
    line-height: var(--type-muted-line-height);
    text-decoration: underline;
    text-underline-offset: 3px;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .listing-page-bar__cta.ui-button {
    flex: 0 1 auto;
    width: auto;
    min-width: 8.5rem;
    min-height: 52px;
    padding: 0 var(--spacing-lg);
    text-align: center;
  }

  /* Booking sheet: the existing booking panel, slid up from the bottom. Without a bar (the host's own
     listing, listings priced by area) the panel stays in the page. */
  .listing-page:has([data-listing-bar][data-bar-mode="sheet"]) .listing-page__aside {
    position: fixed;
    inset: auto 0 0;
    z-index: 31;
    max-height: calc(100dvh - 72px);
    padding: var(--spacing-sm) var(--spacing-20) calc(var(--spacing-lg) + env(safe-area-inset-bottom, 0px));
    overflow-y: auto;
    overscroll-behavior: contain;
    border-radius: var(--radius-sheet) var(--radius-sheet) 0 0;
    background: var(--surface-raised);
    box-shadow: var(--shadow-sheet);
    visibility: hidden;
    transform: translateY(100%);
    transition: transform var(--motion-standard) var(--motion-ease), visibility 0s linear var(--motion-standard);
  }

  .listing-page.is-sheet-open:has([data-listing-bar][data-bar-mode="sheet"]) .listing-page__aside {
    visibility: visible;
    transform: none;
    transition: transform var(--motion-standard) var(--motion-ease), visibility 0s;
  }

  .listing-page:has([data-listing-bar][data-bar-mode="sheet"]) .listing-page-booking {
    gap: var(--spacing-12);
    padding: 0;
    border-radius: 0;
    background: transparent;
  }

  .listing-page:has([data-listing-bar][data-bar-mode="sheet"]) .listing-page-sheet__head {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
  }

  .listing-page-sheet__handle {
    align-self: center;
    width: 36px;
    height: 4px;
    border-radius: var(--radius-chip);
    background: var(--border-default);
  }

  .listing-page-sheet__title-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--spacing-12);
  }

  .listing-page-sheet__title {
    margin: 0;
    font-size: var(--type-section-title-size);
    line-height: var(--type-section-title-line-height);
    font-weight: 600;
    color: var(--text-heading);
  }

  .listing-page-sheet__close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: none;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 0;
    border-radius: var(--radius-chip);
    background: var(--surface-card);
    color: var(--text-body);
    cursor: pointer;
  }

  .listing-page-sheet__close:focus-visible {
    outline: var(--focus-ring-outline);
    outline-offset: var(--focus-ring-offset);
  }

  .listing-page:has([data-listing-bar][data-bar-mode="sheet"]) .listing-page__aside > .listing-page-booking {
    margin-top: var(--spacing-sm);
  }

  .listing-page-scrim {
    position: fixed;
    inset: 0;
    z-index: 30;
    display: block;
    background: color-mix(in srgb, var(--color-neutral-900) 40%, transparent);
    opacity: 0;
    visibility: hidden;
    transition: opacity var(--motion-standard) var(--motion-ease), visibility 0s linear var(--motion-standard);
  }

  .listing-page.is-sheet-open .listing-page-scrim {
    opacity: 1;
    visibility: visible;
    transition: opacity var(--motion-standard) var(--motion-ease), visibility 0s;
  }

  .listing-page-photos__counter {
    display: inline-flex;
  }

  .listing-page-viewer__stage {
    padding-inline: var(--spacing-sm);
    touch-action: pan-y;
  }

  .listing-page-viewer__step {
    top: auto;
    bottom: var(--spacing-lg);
  }
}

@media (max-width: 720px) and (prefers-reduced-motion: reduce) {
  .listing-page:has([data-listing-bar][data-bar-mode="sheet"]) .listing-page__aside,
  .listing-page.is-sheet-open:has([data-listing-bar][data-bar-mode="sheet"]) .listing-page__aside {
    transform: none;
    opacity: 0;
    transition: opacity var(--motion-fast) var(--motion-ease), visibility 0s linear var(--motion-fast);
  }

  .listing-page.is-sheet-open:has([data-listing-bar][data-bar-mode="sheet"]) .listing-page__aside {
    opacity: 1;
    transition: opacity var(--motion-fast) var(--motion-ease), visibility 0s;
  }

  .listing-page-scrim,
  .listing-page.is-sheet-open .listing-page-scrim {
    transition-duration: var(--motion-fast), 0s;
  }

  .listing-page .listing-page-photos .listing-page-photos__grid {
    scroll-behavior: auto;
  }
}

@media (prefers-reduced-motion: reduce) {
  .listing-page-viewer__slide,
  .listing-page-photos__item img,
  .listing-page-booking__field,
  .listing-page #spot-detail-book {
    animation: none;
    transition: none;
  }
}

/* Canonical long-stay comparison in the existing storage booking panel. */
.listing-page-options {
  margin: 0;
  padding: 0;
  border: 0;
  min-width: 0;
}

.listing-page-options[hidden],
.listing-page-booking__quote--comparison {
  display: none;
}

.listing-page-options legend {
  font-weight: 600;
}

.listing-page-options p {
  margin: var(--spacing-xs) 0;
  font-size: var(--type-muted-size);
}

.listing-page-options__option {
  margin-top: var(--spacing-sm);
  padding: var(--spacing-sm);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-md);
}

.listing-page-options__option:has(input:checked) {
  border-color: var(--text-primary);
}

.listing-page-options__choice {
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
  min-height: 44px;
  cursor: pointer;
  font-weight: 500;
}

.listing-page-options__choice input {
  flex: none;
}

.listing-page-options summary {
  cursor: pointer;
  padding: var(--spacing-sm) 0;
  min-height: 44px;
}

.listing-page-options__unavailable {
  margin-top: var(--spacing-sm);
  color: var(--text-supporting);
}

/* ===== Good to know as rows: one topic per row, split by a hairline ===== */
.listing-page-gtk__grid,
.listing-page-gtk .listing-page-gtk__grid {
  grid-template-columns: minmax(0, 1fr);
  gap: 0;
}

.listing-page-gtk__grid > .listing-page-gtk__item {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr) auto;
  align-items: center;
  gap: var(--spacing-xs) var(--spacing-base);
  min-height: 44px;
  padding: var(--spacing-base) 0;
  border-top: 1px solid var(--border-default);
}

.listing-page-gtk__grid > .listing-page-gtk__item:last-child {
  border-bottom: 1px solid var(--border-default);
}

.listing-page-gtk__grid > .listing-page-gtk__item > .listing-page-gtk__summary {
  grid-column: 2 / -1;
}

.listing-page-gtk__grid > .listing-page-gtk__item > .listing-page-gtk__more {
  grid-column: 3;
  grid-row: 1;
}

/* Online booking refused: the panel offers the host and similar spaces beside the dates and main button. */
.listing-page-refused__why {
  margin: 0;
  color: var(--text-supporting);
  font-size: var(--type-muted-size);
  line-height: var(--type-muted-line-height);
}

.listing-page-refused__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--spacing-12) var(--spacing-base);
  margin-top: var(--spacing-12);
}

.listing-page-refused--bar .listing-page-refused__actions {
  flex: 0 1 auto;
  flex-direction: column;
  align-items: stretch;
  margin-top: 0;
  gap: var(--spacing-xs);
  text-align: center;
}

.listing-page-bar__detail--notice {
  text-decoration: none;
}
