/* Listing storefront: one clear hierarchy for desktop and mobile. */
body[data-page="listing"] .detail-shell {
  padding: 0;
  background: transparent;
  border: 0;
  box-shadow: none;
}

body[data-page="listing"] .detail-shell > .section-head {
  display: block !important;
  overflow: visible;
  margin: 0 !important;
  padding: 22px 0 24px !important;
  border: 0 !important;
  border-bottom: 1px solid #d9e0df !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  text-align: left !important;
}

body[data-page="listing"] .detail-shell > .section-head::after {
  display: none;
}

body[data-page="listing"] .listing-title-block {
  width: 100%;
  max-width: 100%;
}

body[data-page="listing"] .listing-title-kicker {
  color: #aa1730;
  font-size: .78rem;
  font-weight: 800;
  text-transform: uppercase;
}

body[data-page="listing"] .detail-shell .section-head h1 {
  max-width: 100% !important;
  margin: 9px 0 11px !important;
  color: #18282c;
  font-size: 2.9rem !important;
  line-height: 1.09 !important;
  overflow-wrap: anywhere;
}

body[data-page="listing"] #listingMeta {
  max-width: 66ch;
  margin: 0;
  color: #586568;
  font-size: 1rem !important;
  font-weight: 500 !important;
  line-height: 1.55 !important;
}

body[data-page="listing"] .detail-shell > .section-head #listingMeta {
  display: block !important;
  color: #586568 !important;
  font-weight: 500 !important;
  text-align: left !important;
}

body[data-page="listing"] .storefront-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 0;
  margin: 18px 0 0;
  color: #364649;
  font-size: .88rem;
  font-weight: 650;
}

body[data-page="listing"] .storefront-fact {
  padding: 0 15px;
  border-right: 1px solid #c8d3d0;
}

body[data-page="listing"] .storefront-fact:first-child {
  padding-left: 0;
}

body[data-page="listing"] .storefront-fact:last-child {
  border-right: 0;
}

body[data-page="listing"] .detail-shell > .section-head .storefront-facts .storefront-fact {
  color: #364649 !important;
}

body[data-page="listing"] .storefront-price {
  color: #aa1730;
  font-weight: 800;
}

body[data-page="listing"] .detail-shell > .section-head .storefront-facts .storefront-price {
  color: #aa1730 !important;
}

body[data-page="listing"] .storefront-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 22px;
}

body[data-page="listing"] .storefront-actions .btn,
body[data-page="listing"] .storefront-actions .ghost-btn {
  display: inline-flex;
  width: auto;
  min-width: 152px;
  min-height: 45px;
  align-items: center;
  justify-content: center;
  padding: 10px 18px;
  border-radius: 6px;
  font-size: .9rem;
}

body[data-page="listing"] .storefront-actions .ghost-btn {
  background: #fff;
  border: 1px solid #cbd7d4;
  color: #203532;
}

body[data-page="listing"] .detail-shell > .section-head .storefront-actions .ghost-btn {
  background: #fff !important;
  border-color: #cbd7d4 !important;
  color: #203532 !important;
  box-shadow: none !important;
}

body[data-page="listing"] .detail-shell > .section-head .pill-row {
  display: flex !important;
  flex-wrap: wrap;
  gap: 8px;
  max-width: none !important;
  justify-content: flex-start !important;
  margin-top: 22px !important;
  padding-top: 16px !important;
  border-top: 1px solid #e5e9e8 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
}

body[data-page="listing"] .detail-shell > .section-head .pill-row .ghost-btn,
body[data-page="listing"] .detail-shell > .section-head .pill-row button {
  width: auto;
  min-height: 38px;
  padding: 8px 12px;
  border-radius: 6px;
}

body[data-page="listing"] .detail-shell > .section-head .pill-row > a.ghost-btn .storefront-back-extra {
  color: inherit !important;
}

body[data-page="listing"] .storefront-nav {
  position: sticky;
  top: 78px;
  z-index: 20;
  display: flex;
  gap: 4px;
  overflow-x: auto;
  margin: 0 0 18px;
  padding: 8px 0;
  border-bottom: 1px solid #d9e0df;
  background: rgba(250, 251, 250, .97);
  scrollbar-width: thin;
}

body[data-page="listing"] .storefront-nav a {
  flex: 0 0 auto;
  padding: 9px 13px;
  border-radius: 5px;
  color: #3a4b4d;
  font-size: .88rem;
  font-weight: 750;
  text-decoration: none;
  white-space: nowrap;
}

body[data-page="listing"] .storefront-nav a:hover,
body[data-page="listing"] .storefront-nav a:focus-visible {
  background: #e8efec;
  color: #193934;
}

body[data-page="listing"] .detail-grid {
  display: block !important;
  margin-top: 0 !important;
}

body[data-page="listing"] .detail-grid > .info-panel {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  align-items: stretch;
  gap: 18px !important;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

body[data-page="listing"] .detail-grid > .info-panel > * {
  min-width: 0;
  order: 0 !important;
  scroll-margin-top: 152px;
}

body[data-page="listing"] #listingGallery,
body[data-page="listing"] .listing-booking-teaser,
body[data-page="listing"] #hostMeta,
body[data-page="listing"] #listingFoodMenu,
body[data-page="listing"] #couponPanel,
body[data-page="listing"] #listingAvailabilityPanel {
  grid-column: 1 / -1 !important;
}

body[data-page="listing"] #listingGallery {
  display: block !important;
  overflow: hidden;
  padding: 7px;
  border: 1px solid #dbe3e0;
  border-radius: 8px !important;
  background: #fff;
  box-shadow: 0 14px 34px rgba(19, 39, 38, .08);
}

body[data-page="listing"] .gallery-main {
  max-height: 530px !important;
  min-height: 0 !important;
  aspect-ratio: 2 / 1 !important;
  border-radius: 5px;
  background: #e9eeeb;
}

body[data-page="listing"] .gallery-main::before,
body[data-page="listing"] .gallery-main::after {
  display: none !important;
}

body[data-page="listing"] .gallery-main img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

body[data-page="listing"] .gallery-grid {
  display: grid !important;
  grid-template-columns: repeat(5, minmax(0, 110px)) !important;
  grid-auto-rows: auto !important;
  gap: 8px;
  padding: 8px 0 0 !important;
  overflow: visible !important;
  background: transparent;
}

body[data-page="listing"] .gallery-grid .thumb-btn {
  width: 100%;
  aspect-ratio: 4 / 3;
  border: 2px solid transparent;
  border-radius: 5px;
}

body[data-page="listing"] .gallery-grid .thumb-btn.active {
  border-color: #173d39 !important;
  box-shadow: none !important;
}

body[data-page="listing"] .gallery-grid img {
  width: 100%;
  height: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 3px !important;
}

body[data-page="listing"] .host-meta-row {
  margin: 0;
}

body[data-page="listing"] .host-meta-row.is-food {
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)) !important;
}

body[data-page="listing"] .host-pill {
  padding: 13px 16px;
  border: 1px solid #d9e3df;
  border-radius: 6px;
  background: #eef3f0 !important;
  box-shadow: none;
}

body[data-page="listing"] .detail-grid > .info-panel > .info-panel {
  padding: 22px;
  border: 1px solid #e0e6e4;
  border-radius: 8px;
  background: #fff;
  box-shadow: none !important;
}

body[data-page="listing"] .listing-story-panel,
body[data-page="listing"] #listingAmenitiesPanel {
  min-height: 100%;
}

body[data-page="listing"] #listingAmenitiesPanel[hidden],
body[data-page="listing"] #listingFoodMenu[hidden],
body[data-page="listing"] #couponPanel[hidden] {
  display: none !important;
}

body[data-page="listing"] .listing-booking-teaser {
  border: 0;
  border-radius: 8px;
  background: #1b3736;
  color: #fff;
}

body[data-page="listing"] .listing-booking-teaser strong {
  color: #fff;
}

body[data-page="listing"] .listing-booking-teaser p {
  color: #d5e5de;
}

body[data-page="listing"] .listing-booking-teaser .eyebrow {
  color: #9ed1c1;
}

body[data-page="listing"] #listingContactPanel .table-row {
  flex-wrap: wrap;
  gap: 12px;
}

body[data-page="listing"] #listingContactPanel .badge {
  border-radius: 4px;
}

@media (max-width: 760px) {
  body[data-page="listing"] .detail-shell > .section-head {
    padding: 18px 0 17px !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    text-align: left !important;
  }

  body[data-page="listing"] .detail-shell .section-head h1 {
    font-size: 2rem !important;
  }

  body[data-page="listing"] #listingMeta {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
    font-size: .91rem;
  }

  body[data-page="listing"] .storefront-facts {
    justify-content: center;
    margin-top: 15px;
    font-size: .8rem;
  }

  body[data-page="listing"] .detail-shell > .section-head .listing-title-kicker {
    display: block !important;
    text-align: center !important;
  }

  body[data-page="listing"] .storefront-fact {
    padding: 0 10px;
  }

  body[data-page="listing"] .storefront-actions {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    margin-top: 16px;
  }

  body[data-page="listing"] .storefront-actions .btn,
  body[data-page="listing"] .storefront-actions .ghost-btn {
    width: 100%;
    min-width: 0;
    min-height: 44px;
    padding: 8px 10px;
    font-size: .82rem;
  }

  body[data-page="listing"] .storefront-owner-link {
    grid-column: 1 / -1;
  }

  body[data-page="listing"] .detail-shell > .section-head .pill-row {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: wrap !important;
    gap: 7px;
    overflow-x: visible;
    width: 100%;
    margin-top: 13px !important;
    padding-top: 13px !important;
    justify-content: center !important;
    align-items: center !important;
  }

  body[data-page="listing"] .storefront-back-extra,
  body[data-page="listing"] .storefront-nav a[href="#listingAvailabilityPanel"] {
    display: none !important;
  }

  body[data-page="listing"] .detail-shell > .section-head .pill-row button,
  body[data-page="listing"] .detail-shell > .section-head .pill-row a,
  body[data-page="listing"] .detail-shell > .section-head .pill-row #listingFavorite button {
    flex: 0 0 auto !important;
    width: auto !important;
    min-width: 0 !important;
    min-height: 36px !important;
    padding: 0 10px !important;
    white-space: nowrap !important;
  }

  body[data-page="listing"] .detail-shell > .section-head .pill-row > #shareListing,
  body[data-page="listing"] .detail-shell > .section-head .pill-row > a.ghost-btn {
    width: auto !important;
    min-width: 0 !important;
    max-width: none !important;
  }

  body[data-page="listing"] .detail-shell > .section-head .pill-row > * {
    flex: 0 0 auto;
  }

  body[data-page="listing"] .storefront-nav {
    top: 0;
    margin-bottom: 12px;
  }

  body[data-page="listing"] .detail-grid > .info-panel {
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 14px;
  }

  body[data-page="listing"] #listingGallery,
  body[data-page="listing"] .listing-booking-teaser,
  body[data-page="listing"] #hostMeta,
  body[data-page="listing"] #listingFoodMenu,
  body[data-page="listing"] #couponPanel,
  body[data-page="listing"] #listingAvailabilityPanel {
    grid-column: auto !important;
  }

  body[data-page="listing"] .gallery-main {
    max-height: none !important;
    aspect-ratio: 4 / 3 !important;
  }

  body[data-page="listing"] .gallery-grid {
    grid-template-columns: repeat(auto-fill, minmax(72px, 1fr)) !important;
  }

  body[data-page="listing"] .detail-grid > .info-panel > .info-panel {
    padding: 18px;
  }
}
