/* Staylocate V32 — property detail layout. Scoped to the actual Detail page.
   Uses the TrackTake V31 token palette. No broad overflow:hidden overrides:
   gallery images and the live map intentionally retain their clipping. */
html[data-theme] .detail-page {
  width:100%; max-width:none; min-width:0; box-sizing:border-box;
  padding-inline:clamp(18px,3.2vw,60px);
  padding-top:clamp(20px,2.5vw,38px);
  padding-bottom:clamp(90px,8vw,130px);
  background:transparent; color:var(--sl30-text);
}
html[data-theme] .detail-page :is(.detail-layout,.detail-content,.detail-section,.sticky-booking,.detail-provider,.detail-highlights,.policies-grid,.facts-grid,.provider-profile-card){min-width:0;box-sizing:border-box}
html[data-theme] .detail-page .detail-title {gap:22px;align-items:flex-start;margin:0 0 26px}
html[data-theme] .detail-page .detail-title h1 {color:var(--sl30-text);max-width:30ch;overflow-wrap:anywhere}
html[data-theme] .detail-page .detail-meta {color:var(--sl30-muted);flex-wrap:wrap}
html[data-theme] .detail-page .detail-share {flex:0 0 auto;align-items:center;flex-wrap:wrap}
html[data-theme] .detail-page .detail-gallery {
  border-radius:20px; gap:9px; background:var(--sl30-raised);
  overflow:hidden; border:1px solid var(--sl30-border);
}
html[data-theme] .detail-page .detail-gallery button {min-width:0}
html[data-theme] .detail-page .detail-gallery img {object-fit:cover}
html[data-theme] .detail-page .detail-gallery .gallery-all {color:var(--sl30-text);background:var(--sl30-surface);border:1px solid var(--sl30-border)}
html[data-theme] .detail-page .detail-layout {
  display:grid; grid-template-columns:minmax(0,1fr) minmax(315px,385px);
  align-items:start; gap:clamp(20px,2.4vw,40px);
  margin-top:clamp(24px,2.8vw,40px);
}
html[data-theme] .detail-page .detail-content {display:grid;align-content:start;gap:18px;min-width:0}
/* Each content block is an independent, genuinely rounded surface; no edge-to-edge
   white panels or conflicting bottom borders. Keep overflow visible for popovers. */
html[data-theme] .detail-page .detail-content > :is(.detail-provider,.detail-highlights,.detail-section) {
  margin:0; padding:clamp(20px,2.3vw,32px);
  border:1px solid var(--sl30-border);border-radius:18px;
  background:var(--sl30-surface);color:var(--sl30-text);
  box-shadow:var(--sl30-shadow);overflow:visible;
}
html[data-theme] .detail-page .detail-content > .detail-provider {display:flex;align-items:center;justify-content:space-between;gap:22px}
html[data-theme] .detail-page .detail-provider h2 {color:var(--sl30-text);font-size:clamp(17px,1.6vw,22px);line-height:1.4}
html[data-theme] .detail-page .detail-provider p {color:var(--sl30-muted);line-height:1.65}
html[data-theme] .detail-page .provider-avatar {background:var(--sl30-soft);color:var(--sl30-accent);border:1px solid var(--sl30-border)}
html[data-theme] .detail-page .detail-content > .detail-highlights {
  display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:15px;
}
html[data-theme] .detail-page .detail-highlights > div {min-width:0;display:flex;align-items:flex-start;gap:11px}
html[data-theme] .detail-page .detail-highlights > div + div {border-left:1px solid var(--sl30-border);padding-left:15px}
html[data-theme] .detail-page .detail-highlights svg {flex:0 0 auto;color:var(--sl30-accent);width:21px;height:21px}
html[data-theme] .detail-page .detail-highlights strong {color:var(--sl30-text);font-weight:750;line-height:1.4}
html[data-theme] .detail-page .detail-highlights small {color:var(--sl30-muted);line-height:1.5}
html[data-theme] .detail-page .detail-section h2 {color:var(--sl30-text);font-size:clamp(19px,1.8vw,25px);font-weight:790;line-height:1.35;margin:0 0 16px}
html[data-theme] .detail-page .detail-section :is(p,li,dd) {overflow-wrap:anywhere}
html[data-theme] .detail-page .detail-section p {color:var(--sl30-muted);font-size:clamp(13px,0.9vw,15px);line-height:1.8}
html[data-theme] .detail-page .detail-section :is(h3,strong,dd) {color:var(--sl30-text)}
html[data-theme] .detail-page .detail-section :is(.amenity-grid,.policies-grid,.facts-grid){gap:clamp(12px,1.8vw,26px)}
html[data-theme] .detail-page .amenity-grid {grid-template-columns:repeat(2,minmax(0,1fr));margin:16px 0 0}
html[data-theme] .detail-page .amenity-grid > div {min-width:0;line-height:1.55}
html[data-theme] .detail-page .amenity-grid svg {color:var(--sl30-accent);flex:none}
html[data-theme] .detail-page .policies-grid {grid-template-columns:repeat(2,minmax(0,1fr));align-items:start}
html[data-theme] .detail-page .policies-grid > div {min-width:0}
html[data-theme] .detail-page .policies-grid h3 {margin-bottom:8px;line-height:1.5}
html[data-theme] .detail-page .facts-grid {grid-template-columns:repeat(2,minmax(0,1fr));margin:18px 0 0;gap:14px 20px}
html[data-theme] .detail-page .facts-grid > div {min-width:0;padding:12px 0;border-top:1px solid var(--sl30-border)}
html[data-theme] .detail-page .facts-grid dt {color:var(--sl30-muted);font-size:12px}
html[data-theme] .detail-page .facts-grid dd {margin:5px 0 0;font-weight:650}
html[data-theme] .detail-page .provider-profile-heading {align-items:center;gap:16px;flex-wrap:wrap}
html[data-theme] .detail-page .provider-profile-heading img {flex:none;border:2px solid var(--sl30-border);object-fit:cover}
html[data-theme] .detail-page .provider-profile-heading p {color:var(--sl30-muted)}
html[data-theme] .detail-page .provider-profile-card > p {max-width:85ch}
html[data-theme] .detail-page .profile-tags {gap:8px}
html[data-theme] .detail-page .profile-tags > span {background:var(--sl30-raised);color:var(--sl30-body);border:1px solid var(--sl30-border);border-radius:9px}
html[data-theme] .detail-page .detail-content > .text-link {justify-self:start;color:var(--sl30-muted);padding:5px}
/* Booking panel belongs to the same visual system, but remains its own elevated surface. */
html[data-theme] .detail-page .sticky-booking {
  position:sticky;top:clamp(16px,2vw,32px);width:100%;
  padding:clamp(18px,2.1vw,28px);margin:0;
  border-radius:20px;border:1px solid var(--sl30-border);
  background:var(--sl30-surface);color:var(--sl30-text);
  box-shadow:var(--sl30-shadow);overflow:visible;
}
html[data-theme] .detail-page .booking-price {flex-wrap:wrap;gap:6px 10px;margin-bottom:22px}
html[data-theme] .detail-page .booking-price strong {color:var(--sl30-text)}
html[data-theme] .detail-page .booking-price .rating {margin-left:auto;color:var(--sl30-body)}
html[data-theme] .detail-page .sticky-booking :is(input,select,textarea) {
  min-height:45px;background:var(--sl30-input);color:var(--sl30-text);
  border:1px solid var(--sl30-control);border-radius:9px;
}
html[data-theme] .detail-page .sticky-booking .field {min-width:0}
html[data-theme] .detail-page .sticky-booking .button-primary {min-height:49px}
html[data-theme] .detail-page .booking-trust {border-top:1px solid var(--sl30-border);color:var(--sl30-muted)}
html[data-theme] .detail-page .booking-trust svg {color:var(--sl30-lime)}
html[data-theme] .detail-page .detail-location-summary {color:var(--sl30-muted)}
html[data-theme] .detail-page .sl-detail-location-wrap {max-width:100%;border:1px solid var(--sl30-border);border-radius:15px;box-shadow:none;background:var(--sl30-surface);overflow:hidden}
html[data-theme] .detail-page .sl-detail-location-wrap .offer-location-map {border-radius:0;overflow:hidden}
html[data-theme] .detail-page .sl-detail-map-caption {background:var(--sl30-surface);color:var(--sl30-text);gap:14px;flex-wrap:wrap}
html[data-theme] .detail-page .sl-detail-map-caption strong {color:var(--sl30-text)}
html[data-theme] .detail-page .sl-detail-map-caption span {color:var(--sl30-muted)}
html[data-theme] .detail-page .sl-detail-map-caption a {background:var(--sl30-soft);color:var(--sl30-accent)}
html[data-theme] .detail-page .public-review-grid {grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}
html[data-theme] .detail-page .public-review {min-width:0}
@media (max-width:1150px) {
 html[data-theme] .detail-page .detail-layout {grid-template-columns:minmax(0,1fr) minmax(290px,345px);gap:20px}
 html[data-theme] .detail-page .detail-content > .detail-highlights {grid-template-columns:1fr;gap:13px}
 html[data-theme] .detail-page .detail-highlights > div + div {padding-left:0;border-left:0;border-top:1px solid var(--sl30-border);padding-top:13px}
}
@media (max-width:900px) {
 html[data-theme] .detail-page .detail-layout {grid-template-columns:minmax(0,1fr)}
 html[data-theme] .detail-page .sticky-booking {position:relative;top:auto;max-width:none}
}
@media (max-width:767px) {
 html[data-theme] .detail-page {padding-inline:clamp(12px,4vw,20px);padding-top:18px;padding-bottom:125px}
 html[data-theme] .detail-page .detail-title {display:block;margin-bottom:16px}
 html[data-theme] .detail-page .detail-gallery {height:285px;margin-inline:0;border-radius:15px}
 html[data-theme] .detail-page .detail-layout {display:block;margin-top:16px}
 html[data-theme] .detail-page .detail-content {gap:12px}
 html[data-theme] .detail-page .detail-content > :is(.detail-provider,.detail-highlights,.detail-section) {padding:18px 16px;border-radius:14px}
 html[data-theme] .detail-page .detail-content > .detail-highlights {display:grid;grid-template-columns:1fr}
 html[data-theme] .detail-page .amenity-grid {gap:12px}
 html[data-theme] .detail-page .policies-grid {grid-template-columns:1fr;gap:18px}
 html[data-theme] .detail-page .facts-grid {grid-template-columns:repeat(2,minmax(0,1fr));gap:8px 12px}
 html[data-theme] .detail-page .public-review-grid {grid-template-columns:1fr}
 html[data-theme] .detail-page .provider-profile-heading img {width:68px;height:68px}
 html[data-theme] .detail-page .sticky-booking {display:none}
 html[data-theme] .detail-page .mobile-booking-bar {background:var(--sl30-surface);color:var(--sl30-text);border-top:1px solid var(--sl30-border);box-shadow:0 -7px 24px #0002}
}
@media (max-width:360px) {
 html[data-theme] .detail-page .amenity-grid,html[data-theme] .detail-page .facts-grid {grid-template-columns:1fr}
}
@media (prefers-reduced-motion: reduce) {
 html[data-theme] .detail-page * {scroll-behavior:auto}
}
