/* Property page. Desktop keeps its photo grid; phones get a swipeable photo, a
   sheet with the essentials and a Reserve bar that stays in reach. */
.gallery-extra,
.kind-prefix,
.facts-line,
.gallery-counter,
.reserve-bar {
  display: none;
}
.gallery-wrap {
  position: relative;
}
.property-save {
  flex: none;
}

@media (max-width: 700px) {
  body.property-detail-page {
    padding-bottom: 0;
  }
  .property-detail-page .mobile-nav {
    display: none;
  }
  .property-detail-page .main-shell {
    padding: 0 0 calc(104px + env(safe-area-inset-bottom));
  }
  .property-page {
    position: relative;
    display: flex;
    flex-direction: column;
    max-width: none;
  }
  .property-page > .page-breadcrumb,
  .property-page > .property-nav {
    display: none;
  }

  /* Photos: one at a time, swipe sideways, full width. */
  .gallery-wrap {
    order: 1;
  }
  body .property-gallery {
    display: flex;
    gap: 0;
    height: auto;
    aspect-ratio: 10 / 7;
    border-radius: 0;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    overscroll-behavior-x: contain;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }
  .property-gallery::-webkit-scrollbar {
    display: none;
  }
  body.property-detail-page .property-gallery > .gallery-photo,
  body.property-detail-page .property-gallery > .gallery-extra {
    display: block;
    flex: 0 0 100%;
    width: 100%;
    height: 100%;
    scroll-snap-align: start;
    scroll-snap-stop: always;
    cursor: pointer;
  }
  .property-gallery > .gallery-all {
    display: none;
  }
  .property-gallery.single-photo,
  .property-gallery[class*="photo-count"] {
    grid-template-rows: none;
  }
  .property-gallery > .gallery-placeholder {
    flex: 1 0 100%;
    border-radius: 0;
  }
  .gallery-counter {
    position: absolute;
    right: 14px;
    bottom: 44px;
    z-index: 2;
    display: block;
    padding: 6px 11px;
    border-radius: 8px;
    background: #2b2b2bcc;
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    font-variant-numeric: tabular-nums;
    pointer-events: none;
  }

  /* Save sits on the photo. */
  .property-save {
    position: absolute;
    top: 14px;
    right: 14px;
    z-index: 3;
  }
  .property-save .outline-button {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: #fffffff2;
    box-shadow: 0 2px 10px #0003;
  }
  .property-save .outline-button span {
    display: none;
  }
  .property-save .outline-button .icon {
    width: 20px;
    height: 20px;
  }

  /* The sheet: a rounded white edge over the photo, then title, place and facts. */
  .gallery-wrap::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -1px;
    height: 28px;
    border-radius: 28px 28px 0 0;
    background: #fff;
    pointer-events: none;
  }
  .property-heading {
    order: 2;
    display: block;
    margin: 0;
    padding: 6px 20px 26px;
    background: #fff;
    text-align: center;
  }
  .property-heading h1 {
    max-width: none;
    margin: 0;
    font-size: 27px;
    line-height: 1.2;
    letter-spacing: -0.5px;
    text-wrap: balance;
  }
  .property-heading .location-line,
  .property-heading .facts-line {
    display: block;
    margin: 0;
    color: var(--muted);
    font-size: 15px;
    line-height: 1.5;
  }
  .property-heading .location-line {
    margin-top: 18px;
  }
  .property-heading .location-line > .icon {
    display: none;
  }
  .kind-prefix {
    display: inline;
  }
  .facts-line:not(:empty) {
    display: block;
  }
  .facts-line {
    margin-top: 4px !important;
    font-size: 15px;
  }

  .property-content-grid {
    order: 3;
    display: flex;
    flex-direction: column;
    gap: 0;
    padding: 0 20px;
  }
  .property-content-grid > div {
    min-width: 0;
  }
  .property-summary > h2,
  .property-summary > .muted {
    display: none;
  }
  .property-summary {
    display: block;
  }

  /* Rating | Guest favourite | Reviews in one row. */
  .rating-banner {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: center;
    gap: 0;
    margin: 0;
    padding: 18px 0;
    border: 0;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    border-radius: 0;
  }
  .rating-banner > p {
    display: none;
  }
  .rating-banner > .rating-banner-stat {
    order: 1;
    flex: 1 1 0;
    min-width: 0;
    padding: 0 8px;
    border: 0;
  }
  .rating-banner > .rating-banner-badge {
    order: 2;
    flex: 1.4 1 0;
    min-width: 0;
    justify-content: center;
    padding: 4px 8px;
    border-left: 1px solid var(--line);
    border-right: 1px solid var(--line);
    font-size: 16px;
  }
  .rating-banner > .rating-banner-stat:last-child {
    order: 3;
  }
  .rating-banner > .rating-banner-badge + p + .rating-banner-stat + .rating-banner-stat,
  .rating-banner > p + .rating-banner-stat + .rating-banner-stat {
    border-left: 0;
  }
  .rating-banner:not(:has(.rating-banner-badge)) > .rating-banner-stat:last-child {
    border-left: 1px solid var(--line);
  }
  .rating-banner-stat strong {
    font-size: 20px;
  }
  .rating-banner-badge .laurel {
    width: 26px;
    height: 26px;
  }
  .host-byline {
    margin: 0;
    padding: 22px 0;
  }
  .host-byline .superhost-pill {
    display: none;
  }

  /* The full booking card is for larger screens; phones use the Reserve bar. */
  .property-detail-page .reservation-card {
    display: none;
  }

  /* Reserve bar: price on the left, Reserve on the right. */
  .reserve-bar {
    position: fixed;
    z-index: 60;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 14px 20px calc(14px + env(safe-area-inset-bottom));
    border-top: 1px solid var(--line);
    background: #fff;
    backdrop-filter: none;
    margin: 0;
    border-radius: 0;
    box-shadow: 0 -6px 24px #0000000d;
  }
  .reserve-bar-price {
    display: grid;
    gap: 2px;
    min-width: 0;
  }
  .reserve-bar-price strong {
    font-size: 17px;
    font-weight: 650;
    text-decoration: underline;
    text-underline-offset: 3px;
    line-height: 1.25;
  }
  .reserve-bar-price strong .price-was {
    margin-right: 2px;
    font-size: 13px;
    font-weight: 500;
  }
  .reserve-bar-price span {
    color: var(--muted);
    font-size: 13px;
    line-height: 1.3;
  }
  .reserve-bar-button {
    flex: none;
    display: grid;
    place-items: center;
    min-width: 132px;
    min-height: 52px;
    padding: 0 24px;
    border-radius: 14px;
    background: linear-gradient(90deg, #e61e4d, #d70466);
    color: #fff;
    font-size: 17px;
    font-weight: 650;
    text-decoration: none;
  }
  .reserve-bar-button:active {
    transform: scale(0.98);
  }
}

/* Shared by every width ------------------------------------------------------ */
.show-more {
  display: none;
}
.favorite-hero {
  display: none;
}
.stay-map {
  position: relative;
  height: 360px;
  margin: 18px 0 14px;
  overflow: hidden;
  border-radius: 20px;
  background: #eef1ec;
  isolation: isolate;
}
.stay-map .location-preview {
  height: 100%;
  margin: 0;
  border-radius: 0;
}
.stay-map-expand {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 1000;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 2px 10px #0003;
  font-size: 20px;
  cursor: pointer;
}
.stay-map.is-expanded {
  position: fixed;
  z-index: 200;
  inset: 0;
  height: auto;
  margin: 0;
  border-radius: 0;
}
html.map-expanded {
  overflow: hidden;
}
.stay-pin {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 3px solid #fff;
  border-radius: 50%;
  background: #1d1d1b;
  color: #fff;
  box-shadow: 0 3px 10px #0004;
}
.stay-pin .icon {
  width: 22px;
  height: 22px;
}
.stay-pin-wrap {
  background: none;
  border: 0;
}
.sleep-section,
.know-section {
  margin-top: 36px;
  padding-top: 32px;
  border-top: 1px solid var(--line);
}
.sleep-row {
  display: flex;
  gap: 16px;
  margin-top: 18px;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x proximity;
  scrollbar-width: none;
}
.sleep-row::-webkit-scrollbar {
  display: none;
}
@media (min-width: 701px) {
  /* Room for every bedroom at a glance instead of a row to swipe. */
  .sleep-row {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
    overflow: visible;
  }
  .sleep-card {
    flex: none;
  }
}
.sleep-card {
  flex: 0 0 min(300px, 80%);
  margin: 0;
  scroll-snap-align: start;
}
.sleep-card button {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  border-radius: 14px;
  overflow: hidden;
  background: #eef1ec;
  cursor: zoom-in;
}
.sleep-card img {
  display: block;
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
}
.sleep-card figcaption {
  display: grid;
  gap: 2px;
  margin-top: 12px;
}
.sleep-card strong {
  font-size: 17px;
}
.sleep-card span {
  color: var(--muted);
  font-size: 15px;
}
.location-where {
  margin: 8px 0 0;
  color: var(--muted);
}
.know-list {
  display: grid;
  gap: 4px;
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
}
.know-list li,
.know-list button {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  width: 100%;
  padding: 14px 0;
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
  text-align: left;
}
.know-list button {
  cursor: pointer;
}
.know-list .icon {
  flex: none;
  width: 28px;
  height: 28px;
}
.know-list .chevron {
  width: 18px;
  height: 18px;
  margin: 4px 0 0 auto;
  color: var(--muted);
}
.know-list div {
  display: grid;
  gap: 3px;
  min-width: 0;
}
.know-list strong {
  font-size: 16px;
  font-weight: 600;
}
.know-list span {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.4;
}
.know-host {
  margin-top: 26px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}
.know-host h3 {
  margin: 0 0 6px;
  font-size: 20px;
}
.know-host p {
  margin: 0 0 16px;
  color: var(--muted);
}
.know-host .outline-button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  min-height: 52px;
  border: 0;
  background: #f2f2f0;
  font-weight: 600;
}
.info-modal .rule-list {
  display: grid;
  gap: 14px;
  margin: 12px 0 22px;
  padding: 0;
  list-style: none;
}
.info-modal .rule-list li {
  display: flex;
  align-items: center;
  gap: 12px;
}
.info-modal .rule-list .icon {
  flex: none;
  width: 20px;
  height: 20px;
}
.info-modal .is-blocked {
  color: var(--muted);
}
.info-modal h3 {
  margin: 20px 0 0;
}
.rule-extra {
  margin: 8px 0 0;
  line-height: 1.5;
}
.photo-tabs {
  position: sticky;
  top: 0;
  z-index: 2;
  display: flex;
  gap: 8px;
  padding: 10px 0;
  overflow-x: auto;
  overflow-y: hidden;
  background: #fff;
  scrollbar-width: none;
}
.photo-tabs a {
  flex: none;
  padding: 8px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: inherit;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
}
.photo-tabs span {
  color: var(--muted);
  font-weight: 500;
}
.photo-group h3 {
  margin: 22px 0 10px;
  font-size: 20px;
}
.photo-modal figcaption {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 10px;
  align-items: baseline;
}
.photo-tag {
  padding: 3px 9px;
  border-radius: 6px;
  background: #1d1d1b;
  color: #fff;
  font-size: 12px;
  font-weight: 650;
}
.explore-section {
  margin: 56px 0 0;
  padding: 44px 40px 52px;
  border-radius: 24px;
  background: #f7f7f5;
}
.explore-inner {
  max-width: 1180px;
  margin: 0 auto;
}
.explore-inner h2 {
  margin: 0 0 22px;
  font-size: 24px;
}
.explore-inner h3 {
  margin: 36px 0 16px;
  font-size: 20px;
}
.explore-areas,
.explore-types {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 18px 28px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.explore-areas a,
.explore-types a {
  display: grid;
  gap: 2px;
  color: inherit;
  text-decoration: none;
}
.explore-areas strong {
  font-size: 16px;
}
.explore-areas span {
  color: var(--muted);
}
.explore-types a {
  font-weight: 600;
}
.explore-areas a:hover strong,
.explore-types a:hover {
  text-decoration: underline;
}

@media (max-width: 700px) {
  .explore-section {
    margin: 40px 0 0;
    padding: 32px 20px 44px;
    border-radius: 0;
  }
  .explore-areas,
  .explore-types {
    grid-template-columns: 1fr 1fr;
    gap: 22px 18px;
  }
  .explore-inner h2 {
    font-size: 24px;
    line-height: 1.2;
  }
  .stay-map {
    height: 330px;
  }
  .detail-highlights {
    display: grid;
    gap: 18px;
    margin: 22px 0 8px;
    padding-bottom: 6px;
  }
  .detail-highlights li {
    padding: 0;
    border: 0;
    border-radius: 0;
    gap: 18px;
    font-size: 16px;
    font-weight: 600;
  }
  .detail-highlights .icon {
    width: 30px;
    height: 30px;
  }
  .show-more {
    display: block;
    width: 100%;
    min-height: 52px;
    margin-top: 16px;
    border: 0;
    border-radius: 12px;
    background: #f2f2f0;
    color: inherit;
    font: inherit;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
  }
  .show-more[hidden] {
    display: none;
  }
  .property-description:not(.is-open) {
    display: -webkit-box;
    -webkit-line-clamp: 8;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
  .property-description {
    font-size: 17px;
    line-height: 1.55;
  }
  .favorite-hero {
    display: grid;
    justify-items: center;
    gap: 8px;
    padding: 36px 0 30px;
    text-align: center;
  }
  .favorite-rating {
    display: flex;
    align-items: center;
    gap: 8px;
  }
  .favorite-rating strong {
    font-size: 76px;
    line-height: 1;
    letter-spacing: -3px;
  }
  .favorite-rating .laurel {
    width: 52px;
    height: 80px;
    color: #b7791f;
  }
  .favorite-hero h2 {
    margin: 0;
    font-size: 30px;
  }
  .favorite-hero p {
    max-width: 300px;
    margin: 0;
    color: var(--muted);
    font-size: 17px;
    line-height: 1.4;
  }
  .review-section > h2 {
    font-size: 22px;
  }
  .review-grid {
    display: flex;
    gap: 18px;
    margin: 18px -20px 0;
    padding: 0 20px;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
  }
  .review-grid::-webkit-scrollbar {
    display: none;
  }
  .review-grid .review-card {
    flex: 0 0 82%;
    padding-right: 18px;
    border-right: 1px solid var(--line);
    scroll-snap-align: start;
  }
  .review-grid .review-card p {
    display: -webkit-box;
    -webkit-line-clamp: 5;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
  .review-grid.is-expanded {
    display: grid;
    gap: 26px;
    overflow: visible;
  }
  .review-grid.is-expanded .review-card {
    border-right: 0;
    padding-right: 0;
  }
  .review-grid.is-expanded .review-card p {
    display: block;
  }
  .sleep-section h2,
  .know-section h2,
  .location-section h2 {
    font-size: 22px;
  }
  .sleep-row {
    margin: 18px -20px 0;
    padding: 0 20px;
  }
  .photo-modal .photo-tabs {
    top: 56px;
  }
}
