/* Bespoke Co Living: live listings, map and room detail pages.
   Uses the colour tokens defined in style.css (--primary, --ink, --border ...). */

/* ---------------------------------------------------------------- shared */
[data-save] svg { transition: fill .2s, color .2s; }
[data-save][aria-pressed="true"] svg { fill: #e25555; color: #e25555; }

.bl-nophoto {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .5rem;
  width: 100%; height: 100%; min-height: 12rem; padding: 1.5rem; text-align: center;
  background: var(--sand); color: var(--muted-foreground); font-size: .875rem;
}

/* ---------------------------------------------------------------- find your home */
.bl-map { position: relative; width: 100%; height: 100%; background: var(--muted); z-index: 0; }
.bl-map-fallback { position: absolute; inset: 0; display: grid; place-items: center; padding: 2rem; text-align: center;
  color: var(--muted-foreground); font-size: .875rem; }

@media (max-width: 63.999rem) {
  .bl-map-pane { display: none; }
  #find-main[data-view="map"] .bl-map-pane { display: block; }
  #find-main[data-view="map"] .bl-list-pane { display: none; }
}
@media (min-width: 64rem) {
  #find-main[data-map="off"] { grid-template-columns: minmax(0, 1fr) !important; }
  #find-main[data-map="off"] .bl-map-pane { display: none; }
  #find-main[data-map="off"] #results > div:first-child { grid-template-columns: repeat(auto-fill, minmax(20rem, 1fr)); }
}

.bl-more-filters { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .75rem 1.5rem;
  padding: .25rem 0 .75rem; }
.bl-more-filters[hidden] { display: none; }
.bl-more-filters fieldset { display: flex; flex-wrap: wrap; gap: .5rem; border: 0; margin: 0; padding: 0; }
.bl-more-filters label { display: inline-flex; align-items: center; gap: .5rem; min-height: 2.5rem; padding: 0 .9rem;
  border: 1px solid var(--border); border-radius: 999px; font-size: .875rem; cursor: pointer; user-select: none;
  transition: border-color .15s, background-color .15s; }
.bl-more-filters label:hover { border-color: var(--ring); }
.bl-more-filters label:has(input:checked) { background: var(--accent); border-color: var(--primary); font-weight: 600; }
.bl-more-filters input { width: 1rem; height: 1rem; accent-color: oklch(62% .13 80); }
.bl-link-button { font-size: .875rem; font-weight: 600; text-decoration: underline; text-underline-offset: 4px; }
.bl-filter-count { display: inline-grid; place-items: center; min-width: 1.25rem; height: 1.25rem; padding: 0 .35rem;
  border-radius: 999px; background: var(--primary); color: var(--primary-foreground); font-size: .7rem; }

.bl-empty { display: flex; flex-direction: column; align-items: center; gap: .75rem; padding: 4rem 1rem; text-align: center;
  color: var(--muted-foreground); }
.bl-empty[hidden] { display: none; }
.bl-empty .font-display { color: var(--foreground); }

[data-listing].is-highlighted article { border-color: var(--primary); box-shadow: 0 0 0 3px color-mix(in oklch, var(--primary) 45%, transparent); }

/* map price pins */
.bl-pin { background: none; border: 0; }
.bl-pin span { display: inline-block; transform: translate(-50%, -50%); white-space: nowrap; padding: .3rem .65rem;
  border: 1px solid var(--border); border-radius: 999px; background: var(--background); color: var(--foreground);
  font: 600 12px/1.2 var(--font-sans, Manrope, sans-serif); box-shadow: 0 6px 16px oklch(22% .003 90 / .16);
  transition: transform .15s, background-color .15s; }
.bl-pin.is-active span, .bl-pin:hover span { background: var(--ink); color: var(--ink-foreground); border-color: var(--ink);
  transform: translate(-50%, -50%) scale(1.06); }
.leaflet-popup-content-wrapper { border-radius: 1rem; box-shadow: 0 12px 32px oklch(22% .003 90 / .18); }
.leaflet-popup-content { margin: .9rem 1rem; font-family: Manrope, ui-sans-serif, system-ui, sans-serif; min-width: 13rem; }
.bl-popup-title { font-family: "DM Serif Display", Georgia, serif; font-size: 1.05rem; margin: 0 0 .15rem; }
.bl-popup-sub { color: var(--muted-foreground); font-size: .75rem; margin: 0 0 .5rem !important; }
.bl-popup-list { list-style: none; margin: 0; padding: 0; max-height: 14rem; overflow-y: auto; }
.bl-popup-list li + li { border-top: 1px solid var(--border); }
.bl-popup-list a { display: flex; justify-content: space-between; gap: .75rem; padding: .45rem 0; color: var(--foreground) !important;
  text-decoration: none; font-size: .8rem; }
.bl-popup-list a:hover strong { text-decoration: underline; }
.bl-popup-list small { display: block; color: var(--muted-foreground); font-size: .7rem; }

/* ---------------------------------------------------------------- floating WhatsApp + back to top */
/* sizes: mobile < 640px, tablet 640-1023px, desktop >= 1024px
   WhatsApp 36 / 40 / 44 px, back to top 32 / 36 / 40 px, 10 px apart, centred on one line */
.bl-wa, .bl-totop { --fb-edge: 16px; --fb-wa: 36px; --fb-top: 32px; --fb-gap: 10px; }
@media (min-width: 40rem) { .bl-wa, .bl-totop { --fb-edge: 20px; --fb-wa: 40px; --fb-top: 36px; } }
@media (min-width: 64rem) { .bl-wa, .bl-totop { --fb-edge: 24px; --fb-wa: 44px; --fb-top: 40px; } }
.bl-wa { width: var(--fb-wa); height: var(--fb-wa); right: var(--fb-edge); bottom: calc(var(--fb-edge) + env(safe-area-inset-bottom)); }
.bl-wa > svg { width: calc(var(--fb-wa) * .56); height: calc(var(--fb-wa) * .56); }
.bl-wa.is-stacked { bottom: calc(var(--fb-edge) + var(--fb-top) + var(--fb-gap) + env(safe-area-inset-bottom)); }
.bl-totop { width: var(--fb-top); height: var(--fb-top); right: calc(var(--fb-edge) + (var(--fb-wa) - var(--fb-top)) / 2);
  bottom: calc(var(--fb-edge) + env(safe-area-inset-bottom)); }
.bl-totop > svg { width: calc(var(--fb-top) * .5); height: calc(var(--fb-top) * .5); }

.bl-wa { isolation: isolate; }
.bl-wa > svg { position: relative; z-index: 1; transform-origin: 50% 55%; }

/* waves: two rings spreading out from the button */
.bl-wa-waves::before, .bl-wa-waves::after { content: ""; position: absolute; inset: 0; z-index: -1; border-radius: 999px;
  background: #25D366; opacity: 0; pointer-events: none; animation: bl-wa-wave 2.6s cubic-bezier(.2, .6, .35, 1) infinite; }
.bl-wa-waves::after { animation-delay: 1.3s; }
@keyframes bl-wa-wave {
  0% { transform: scale(1); opacity: .5; }
  80% { opacity: 0; }
  100% { transform: scale(2); opacity: 0; }
}

/* pulse: a gentle breathing scale and glow */
.bl-wa-pulse { animation: bl-wa-pulse 2.6s ease-in-out infinite; }
@keyframes bl-wa-pulse {
  0%, 100% { transform: scale(1); box-shadow: 0 8px 22px rgba(37, 211, 102, .35); }
  50% { transform: scale(1.08); box-shadow: 0 12px 30px rgba(37, 211, 102, .55); }
}

/* shake: the icon rings like a phone every few seconds */
.bl-wa-shake > svg { animation: bl-wa-shake 4.5s ease-in-out infinite; }
@keyframes bl-wa-shake {
  0%, 60%, 100% { transform: rotate(0); }
  63% { transform: rotate(-16deg); }
  66% { transform: rotate(14deg); }
  69% { transform: rotate(-12deg); }
  72% { transform: rotate(10deg); }
  75% { transform: rotate(-6deg); }
  78% { transform: rotate(3deg); }
  81% { transform: rotate(0); }
}

.bl-wa:hover, .bl-wa:focus-visible, .bl-wa:hover > svg, .bl-wa:focus-visible > svg,
.bl-wa:hover::before, .bl-wa:hover::after, .bl-wa:focus-visible::before, .bl-wa:focus-visible::after { animation-play-state: paused; }

@media (prefers-reduced-motion: reduce) {
  .bl-wa, .bl-wa > svg, .bl-wa::before, .bl-wa::after { animation: none !important; }
}

/* ---------------------------------------------------------------- homepage lifestyle gallery
   DOM order: 1 bedroom, 2 kitchen, 3 workspace (portrait), 4 shared meal, 5 balcony, 6 Tiong Bahru (portrait) */
.bl-gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: auto; gap: .75rem; }
.bl-gallery > li { min-height: 0; grid-column: auto; grid-row: auto; aspect-ratio: 1 / 1; }
.bl-gallery > li > button { display: block; }
.bl-gallery > li:nth-child(1), .bl-gallery > li:nth-child(4) { grid-column: 1 / -1; aspect-ratio: 16 / 10; }
.bl-gallery > li:nth-child(4) { order: 6; }
.bl-gallery > li:nth-child(5) { order: 4; }
.bl-gallery > li:nth-child(6) { order: 5; }
@media (min-width: 40rem) {
  .bl-gallery { gap: 1rem; }
  .bl-gallery > li { aspect-ratio: 1 / 1; }
  .bl-gallery > li:nth-child(1), .bl-gallery > li:nth-child(4) { aspect-ratio: 2 / 1; }
}
@media (min-width: 64rem) {
  .bl-gallery { grid-template-columns: repeat(4, minmax(0, 1fr)); grid-template-rows: 13.5rem 13.5rem 15rem; }
  .bl-gallery > li, .bl-gallery > li:nth-child(n) { aspect-ratio: auto; order: 0; }
  .bl-gallery > li:nth-child(1) { grid-column: 1 / 3; grid-row: 1 / 3; }
  .bl-gallery > li:nth-child(3) { grid-column: 3; grid-row: 1 / 3; }
  .bl-gallery > li:nth-child(2) { grid-column: 4; grid-row: 1; }
  .bl-gallery > li:nth-child(6) { grid-column: 4; grid-row: 2 / 4; }
  .bl-gallery > li:nth-child(4) { grid-column: 1 / 3; grid-row: 3; }
  .bl-gallery > li:nth-child(5) { grid-column: 3; grid-row: 3; }
}

/* ---------------------------------------------------------------- homepage hero slideshow */
.bl-hero[data-effect="cube"] { perspective: 1800px; }
.bl-hero .bl-hero-slide { opacity: 0; visibility: hidden; z-index: 0; overflow: hidden; backface-visibility: hidden;
  -webkit-backface-visibility: hidden; will-change: transform, opacity; }
.bl-hero .bl-hero-slide.is-active { opacity: 1; visibility: visible; z-index: 2; }
.bl-hero .bl-hero-slide.is-leaving { opacity: 1; visibility: visible; z-index: 1; }
.bl-hero .bl-hero-slide > div { pointer-events: none; }
.bl-hero > .container-bl { z-index: 3; }
.bl-hero .bl-hero-img { transform-origin: 50% 50%; will-change: transform; }

/* Ken Burns: slow zoom in, then zoom out on the next slide */
.bl-hero .kb-in .bl-hero-img { animation: bl-kb-in var(--bl-hero-kenburns, 6800ms) linear both; }
.bl-hero .kb-out .bl-hero-img { animation: bl-kb-out var(--bl-hero-kenburns, 6800ms) linear both; }
.bl-hero.is-paused .kb-in .bl-hero-img, .bl-hero.is-paused .kb-out .bl-hero-img { animation-play-state: paused; }
@keyframes bl-kb-in { from { transform: scale(1) translate3d(0, 0, 0); } to { transform: scale(1.14) translate3d(-1.2%, -1%, 0); } }
@keyframes bl-kb-out { from { transform: scale(1.14) translate3d(1.2%, 1%, 0); } to { transform: scale(1) translate3d(0, 0, 0); } }

/* transitions */
.bl-hero [class*="bl-anim-"] { animation-duration: var(--bl-hero-duration, 1000ms); animation-fill-mode: both;
  animation-timing-function: cubic-bezier(.65, 0, .35, 1); }
/* fade: the new slide fades in over the old one, so there is no dark dip */
.bl-anim-fade-enter-next, .bl-anim-fade-enter-prev { animation-name: bl-fade-in; animation-timing-function: ease-out !important; }
@keyframes bl-fade-in { from { opacity: 0; } to { opacity: 1; } }
/* slide */
.bl-anim-slide-enter-next { animation-name: bl-slide-in-right; }
.bl-anim-slide-leave-next { animation-name: bl-slide-out-left; }
.bl-anim-slide-enter-prev { animation-name: bl-slide-in-left; }
.bl-anim-slide-leave-prev { animation-name: bl-slide-out-right; }
@keyframes bl-slide-in-right { from { transform: translate3d(100%, 0, 0); } to { transform: translate3d(0, 0, 0); } }
@keyframes bl-slide-out-left { from { transform: translate3d(0, 0, 0); } to { transform: translate3d(-30%, 0, 0); filter: brightness(.55); } }
@keyframes bl-slide-in-left { from { transform: translate3d(-100%, 0, 0); } to { transform: translate3d(0, 0, 0); } }
@keyframes bl-slide-out-right { from { transform: translate3d(0, 0, 0); } to { transform: translate3d(30%, 0, 0); filter: brightness(.55); } }
/* cube: both faces turn around their shared edge */
.bl-anim-cube-enter-next { animation-name: bl-cube-in-next; transform-origin: 0% 50%; }
.bl-anim-cube-leave-next { animation-name: bl-cube-out-next; transform-origin: 100% 50%; }
.bl-anim-cube-enter-prev { animation-name: bl-cube-in-prev; transform-origin: 100% 50%; }
.bl-anim-cube-leave-prev { animation-name: bl-cube-out-prev; transform-origin: 0% 50%; }
@keyframes bl-cube-in-next { from { transform: translate3d(100%, 0, 0) rotateY(90deg); filter: brightness(.5); } to { transform: translate3d(0, 0, 0) rotateY(0); filter: brightness(1); } }
@keyframes bl-cube-out-next { from { transform: translate3d(0, 0, 0) rotateY(0); filter: brightness(1); } to { transform: translate3d(-100%, 0, 0) rotateY(-90deg); filter: brightness(.5); } }
@keyframes bl-cube-in-prev { from { transform: translate3d(-100%, 0, 0) rotateY(-90deg); filter: brightness(.5); } to { transform: translate3d(0, 0, 0) rotateY(0); filter: brightness(1); } }
@keyframes bl-cube-out-prev { from { transform: translate3d(0, 0, 0) rotateY(0); filter: brightness(1); } to { transform: translate3d(100%, 0, 0) rotateY(90deg); filter: brightness(.5); } }
/* zoom: the new slide settles in from a larger scale while fading */
.bl-anim-zoom-enter-next, .bl-anim-zoom-enter-prev { animation-name: bl-zoom-in; }
.bl-anim-zoom-leave-next, .bl-anim-zoom-leave-prev { animation-name: bl-zoom-out; }
@keyframes bl-zoom-in { from { opacity: 0; transform: scale(1.18); } to { opacity: 1; transform: scale(1); } }
@keyframes bl-zoom-out { from { transform: scale(1); } to { transform: scale(.92); filter: brightness(.6); } }

/* text of the incoming slide */
.bl-hero-text-in > * { animation: bl-text-in .8s cubic-bezier(.22, 1, .36, 1) both; }
.bl-hero-text-in > :nth-child(2) { animation-delay: .08s; }
.bl-hero-text-in > :nth-child(3) { animation-delay: .16s; }
.bl-hero-text-in > :nth-child(4) { animation-delay: .24s; }
@keyframes bl-text-in { from { opacity: 0; transform: translate3d(0, 18px, 0); } to { opacity: 1; transform: none; } }

/* pagination: close together, still easy to tap */
.bl-hero .bl-hero-dots { gap: 0; }
.bl-hero .bl-hero-dots .bl-hero-dot { width: auto; height: 2.75rem; padding: 0 .25rem; min-width: 1.5rem; }
.bl-hero-bar { position: relative; display: block; width: 1rem; height: 4px; overflow: hidden; border-radius: 999px;
  background: color-mix(in oklch, var(--ink-foreground) 45%, transparent); transition: width .4s cubic-bezier(.22, 1, .36, 1), background-color .2s; }
.bl-hero-dot:hover .bl-hero-bar { background: color-mix(in oklch, var(--ink-foreground) 70%, transparent); }
.bl-hero-dot[aria-current="true"] .bl-hero-bar { width: 2.5rem; background: color-mix(in oklch, var(--ink-foreground) 30%, transparent); }
.bl-hero-fill { position: absolute; inset: 0; border-radius: inherit; background: var(--primary); transform: scaleX(0); transform-origin: left center; }
.bl-hero-dot:focus-visible { outline: 2px solid var(--primary); outline-offset: -6px; border-radius: 999px; }

@media (prefers-reduced-motion: reduce) {
  .bl-hero .kb-in .bl-hero-img, .bl-hero .kb-out .bl-hero-img, .bl-hero-text-in > * { animation: none; }
  .bl-hero [class*="bl-anim-"] { animation-name: bl-fade-in !important; }
}

/* ---------------------------------------------------------------- district combobox (homepage search) */
.bl-combo { position: relative; }
.bl-combo [role="combobox"][data-state="open"] { border-color: var(--ring); box-shadow: 0 0 0 3px color-mix(in oklch, var(--ring) 28%, transparent); }
.bl-combo [role="combobox"] > svg { transition: color .15s; }
.bl-combo [role="combobox"][data-state="open"] > svg { color: var(--foreground); }
.bl-combo-list { position: absolute; left: 0; right: 0; top: calc(100% + .4rem); z-index: 40; max-height: 20rem; overflow-y: auto;
  margin: 0; padding: .375rem; list-style: none; border: 1px solid var(--border); border-radius: .75rem;
  background: var(--popover, var(--background)); color: var(--popover-foreground, var(--foreground));
  box-shadow: 0 2px 4px oklch(22% .003 90 / .05), 0 20px 44px oklch(22% .003 90 / .12);
  overscroll-behavior: contain; -webkit-overflow-scrolling: touch; touch-action: pan-y; animation: bl-combo-in .14s ease-out; }
.bl-combo.is-above .bl-combo-list { top: auto; bottom: calc(100% + .4rem); animation-name: bl-combo-in-up; }
.bl-combo-list[hidden] { display: none; }
@keyframes bl-combo-in { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }
@keyframes bl-combo-in-up { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }
.bl-combo-option { position: relative; display: flex; align-items: center; gap: .6rem; min-height: 2.5rem; padding: .45rem 2.1rem .45rem .65rem;
  border-radius: .5rem; font-size: .875rem; line-height: 1.3; cursor: pointer; user-select: none; }
.bl-combo-option.is-active { background: var(--secondary); }
.bl-combo-option[aria-selected="true"] { font-weight: 600; }
.bl-combo-code { flex-shrink: 0; min-width: 2.6rem; padding: .15rem .4rem; border-radius: .375rem; background: var(--muted);
  font-size: .75rem; font-weight: 600; text-align: center; color: var(--muted-foreground); font-variant-numeric: tabular-nums; }
.bl-combo-option.is-active .bl-combo-code { background: var(--background); }
.bl-combo-option[aria-selected="true"] .bl-combo-code { background: var(--primary); color: var(--primary-foreground); }
.bl-combo-text { min-width: 0; }
.bl-combo-body { display: flex; flex: 1; min-width: 0; align-items: center; gap: .5rem; }
.bl-combo-meta { flex-shrink: 0; margin-left: auto; font-size: .75rem; font-weight: 500; color: var(--muted-foreground); white-space: nowrap; }
@media (max-width: 47.999rem) {
  .bl-combo-body { flex-direction: column; align-items: flex-start; gap: .05rem; }
  .bl-combo-meta { margin-left: 0; }
}
.bl-combo-option.is-muted .bl-combo-text { color: var(--muted-foreground); }
.bl-combo-option.is-muted .bl-combo-code { opacity: .7; }
@media (min-width: 48rem) {
  .bl-combo-wide .bl-combo-list { right: auto; width: max(100%, 31rem); max-width: calc(100vw - 2rem); }
}
@media (max-width: 47.999rem) {
  .bl-combo-option { min-height: 2.75rem; font-size: .9375rem; }
  body.bl-combo-open a[aria-label="Chat with us on WhatsApp"],
  body.bl-combo-open button[aria-label="Back to top"] { opacity: 0 !important; pointer-events: none !important; }
}
.bl-combo-check { position: absolute; right: .65rem; width: 1rem; height: 1rem; color: oklch(55% .12 80); opacity: 0; }
.bl-combo-option[aria-selected="true"] .bl-combo-check { opacity: 1; }
@media (prefers-reduced-motion: reduce) { .bl-combo-list { animation: none; } }

/* enhanced <select data-combo> (app.js initCombos) */
.bl-combo-native { position: absolute !important; width: 1px !important; height: 1px !important; margin: -1px !important; padding: 0 !important;
  overflow: hidden !important; clip: rect(0 0 0 0) !important; white-space: nowrap !important; border: 0 !important; opacity: 0; pointer-events: none; }
.bl-combo:has(> .bl-combo-native.w-full), .bl-date:has(> .bl-combo-native.w-full) { width: 100%; min-width: 0; } /* fills a flex/grid cell like the select it replaces */
.bl-combo-btn { display: inline-flex; align-items: center; justify-content: space-between; gap: .5rem; width: 100%; text-align: left; cursor: pointer;
  font: inherit; font-size: .875rem; line-height: 1.4; }
.bl-combo-btn:focus-visible { outline: none; border-color: var(--ring); box-shadow: 0 0 0 3px color-mix(in oklch, var(--ring) 28%, transparent); }
.bl-combo-value { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bl-combo-btn.is-placeholder .bl-combo-value { color: var(--foreground); }
.bl-combo-caret { flex-shrink: 0; width: 1rem; height: 1rem; color: var(--muted-foreground); }
.bl-combo-right .bl-combo-list, .bl-combo.is-right .bl-combo-list { left: auto; right: 0; min-width: 14rem; }
.bl-combo-search { position: sticky; top: -.375rem; z-index: 1; display: flex; align-items: center; gap: .5rem;
  margin: -.375rem -.375rem .375rem; padding: .55rem .9rem; border-bottom: 1px solid var(--border);
  background: var(--popover, var(--background)); border-radius: .75rem .75rem 0 0; }
.bl-combo-search-icon { flex-shrink: 0; width: 1rem; height: 1rem; color: var(--muted-foreground); }
.bl-combo-search input { flex: 1; min-width: 0; padding: .15rem 0; border: 0; background: transparent; font: inherit; font-size: .875rem;
  color: var(--foreground); outline: none; box-shadow: none; }
.bl-combo-search input::placeholder { color: var(--muted-foreground); }
.bl-combo-empty { padding: .75rem .65rem; font-size: .875rem; color: var(--muted-foreground); }
.bl-combo-empty[hidden], .bl-combo-option[hidden] { display: none; }

/* date picker */
.bl-date .bl-combo-list { right: auto; width: 20.5rem; max-width: calc(100vw - 2rem); }
.bl-date.is-right .bl-combo-list, .bl-combo-right.bl-date .bl-combo-list { left: auto; right: 0; }
.bl-date-pop button { cursor: pointer; font: inherit; }
.bl-date-pop { max-height: none; padding: .75rem; overflow-y: auto; }
.bl-date-head { display: flex; align-items: center; justify-content: space-between; gap: .5rem; margin-bottom: .25rem; }
.bl-date-title { font-family: "DM Serif Display", Georgia, serif; font-size: 1.1rem; line-height: 1.2; }
.bl-date-nav { display: inline-grid; place-items: center; width: 2.25rem; height: 2.25rem; border-radius: 999px; color: var(--foreground);
  transition: background-color .15s; }
.bl-date-nav svg { width: 1.1rem; height: 1.1rem; }
.bl-date-nav:hover:not(:disabled) { background: var(--secondary); }
.bl-date-nav:disabled { opacity: .3; cursor: default; }
.bl-date-grid { width: 100%; border-collapse: collapse; table-layout: fixed; }
.bl-date-grid th { padding: .4rem 0; font-size: .6875rem; font-weight: 600; letter-spacing: .04em; text-transform: uppercase;
  color: var(--muted-foreground); text-align: center; }
.bl-date-grid td { padding: 1px; text-align: center; }
.bl-day { display: inline-grid; place-items: center; width: 100%; height: 2.5rem; border-radius: .6rem; font-size: .875rem;
  font-variant-numeric: tabular-nums; color: var(--foreground); transition: background-color .12s, color .12s; }
.bl-day:hover:not(:disabled) { background: var(--secondary); }
.bl-day.is-today { font-weight: 700; box-shadow: inset 0 0 0 1px var(--ring); }
.bl-date-grid td[aria-selected="true"] .bl-day { background: var(--primary); color: var(--primary-foreground); font-weight: 700; box-shadow: none; }
.bl-day:disabled { color: var(--muted-foreground); opacity: .38; cursor: default; }
.bl-day:focus-visible, .bl-date-nav:focus-visible, .bl-date-clear:focus-visible, .bl-date-today:focus-visible {
  outline: 2px solid var(--ring); outline-offset: 1px; }
.bl-date-foot { display: flex; align-items: center; justify-content: space-between; gap: .75rem; margin-top: .5rem; padding-top: .65rem;
  border-top: 1px solid var(--border); }
.bl-date-clear { font-size: .8125rem; font-weight: 600; color: var(--muted-foreground); text-decoration: underline; text-underline-offset: 3px;
  text-decoration-color: transparent; transition: color .15s, text-decoration-color .15s; }
.bl-date-clear:hover { color: var(--foreground); text-decoration-color: currentColor; }
.bl-date-today { height: 2.25rem; padding: 0 1rem; border-radius: 999px; background: var(--primary); color: var(--primary-foreground);
  font-size: .8125rem; font-weight: 600; transition: background-color .15s; }
.bl-date-today:hover:not(:disabled) { background: var(--primary-hover); }
.bl-date-today:disabled { opacity: .4; }
@media (max-width: 47.999rem) {
  .bl-day { height: 2.75rem; font-size: .9375rem; }
}

/* ---------------------------------------------------------------- room detail page */
.hd-page { background: var(--background); color: var(--foreground); }
.hd-main { padding-top: calc(72px + 1.25rem); padding-bottom: 4rem; }
.hd-main h1, .hd-main h2 { font-family: "DM Serif Display", Georgia, serif; font-weight: 400; letter-spacing: -.01em; }

.hd-crumbs ol { display: flex; flex-wrap: wrap; gap: .25rem .5rem; list-style: none; margin: 0; padding: 0;
  font-size: .8125rem; color: var(--muted-foreground); }
.hd-crumbs li + li::before { content: "/"; margin-right: .5rem; color: var(--border); }
.hd-crumbs a { text-decoration: underline; text-decoration-color: transparent; text-underline-offset: 3px; transition: text-decoration-color .15s; }
.hd-crumbs a:hover { text-decoration-color: currentColor; color: var(--foreground); }
.hd-crumbs [aria-current] { color: var(--foreground); }

.hd-titlebar { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 1rem; margin: 1.25rem 0 1.25rem; }
.hd-eyebrow, .hd-sub { display: inline-flex; align-items: center; gap: .4rem; color: var(--muted-foreground); font-size: .875rem; }
.hd-eyebrow svg, .hd-sub svg { color: oklch(62% .13 80); flex-shrink: 0; }
.hd-title { margin: .35rem 0 .35rem; font-size: clamp(1.9rem, 1.2rem + 2.6vw, 3rem); line-height: 1.08; text-wrap: pretty; }
.hd-tools { display: flex; gap: .5rem; }
.hd-tool { display: inline-flex; align-items: center; gap: .45rem; height: 2.75rem; padding: 0 1rem; border: 1px solid var(--border);
  border-radius: 999px; background: var(--background); font-size: .875rem; font-weight: 600; transition: border-color .15s, background-color .15s; }
.hd-tool:hover { border-color: var(--ring); background: var(--accent); }
.hd-tool svg { width: 1.1rem; height: 1.1rem; }

/* gallery */
.hd-gallery { position: relative; display: grid; gap: .5rem; border-radius: 1.5rem; overflow: hidden; background: var(--sand);
  grid-template-columns: 1fr; aspect-ratio: 4 / 3; max-height: 34rem; }
.hd-gallery.hd-count-0 { aspect-ratio: auto; }
.hd-tile { position: relative; display: block; width: 100%; height: 100%; padding: 0; border: 0; overflow: hidden; cursor: zoom-in; background: var(--muted); }
.hd-tile img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s cubic-bezier(.22, 1, .36, 1), filter .2s; }
.hd-tile:hover img { transform: scale(1.03); filter: brightness(.94); }
.hd-tile:not(.hd-tile-main) { display: none; }
.hd-all-photos { position: absolute; right: 1rem; bottom: 1rem; display: inline-flex; align-items: center; gap: .5rem; height: 2.75rem;
  padding: 0 1.1rem; border: 1px solid var(--border); border-radius: 999px; background: var(--background); font-size: .875rem;
  font-weight: 600; box-shadow: 0 6px 18px oklch(22% .003 90 / .15); }
.hd-all-photos:hover { background: var(--accent); }
.hd-all-photos svg { width: 1.1rem; height: 1.1rem; }
.hd-nophoto { min-height: 16rem; border-radius: 1.5rem; }
.hd-photo-note { margin-top: .6rem; font-size: .8125rem; color: var(--muted-foreground); }

@media (min-width: 48rem) {
  .hd-gallery { aspect-ratio: 16 / 7; max-height: none; }
  .hd-gallery.hd-count-2 { grid-template-columns: 2fr 1fr; }
  .hd-gallery.hd-count-3 { grid-template-columns: 2fr 1fr; grid-template-rows: 1fr 1fr; }
  .hd-gallery.hd-count-4 { grid-template-columns: 2fr 1fr 1fr; grid-template-rows: 1fr 1fr; }
  .hd-gallery.hd-count-5 { grid-template-columns: 2fr 1fr 1fr; grid-template-rows: 1fr 1fr; }
  .hd-tile:not(.hd-tile-main) { display: block; }
  .hd-gallery.hd-count-3 .hd-tile-main, .hd-gallery.hd-count-4 .hd-tile-main, .hd-gallery.hd-count-5 .hd-tile-main { grid-row: 1 / 3; }
  .hd-gallery.hd-count-4 .hd-tile:nth-child(2) { grid-column: 2 / 4; }
}

/* two-column layout */
.hd-layout { display: grid; grid-template-columns: minmax(0, 1fr); gap: 2.5rem; margin-top: 2rem; }
.hd-content, .hd-aside { min-width: 0; }
@media (min-width: 64rem) {
  .hd-layout { grid-template-columns: minmax(0, 1fr) 22rem; gap: 4rem; }
}
.hd-section { padding: 2rem 0; border-bottom: 1px solid var(--border); }
.hd-section:first-child { padding-top: 0; }
.hd-section:last-child { border-bottom: 0; }
.hd-section h2 { font-size: 1.6rem; line-height: 1.2; margin-bottom: 1rem; }
.hd-chips { display: flex; flex-wrap: wrap; gap: .5rem; list-style: none; margin: 0 0 1rem; padding: 0; }
.hd-chips li { padding: .35rem .8rem; border-radius: 999px; background: var(--muted); font-size: .8125rem; font-weight: 500; }
.hd-lead { font-size: 1.0625rem; line-height: 1.7; color: var(--foreground); max-width: 42rem; }

.hd-details { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); margin: 0;
  border: 1px solid var(--border); border-radius: 1rem; overflow: hidden; background: var(--background); }
@media (min-width: 40rem) { .hd-details { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.hd-details div { padding: .9rem 1rem; box-shadow: 1px 0 0 var(--border), 0 1px 0 var(--border); }
.hd-details dt { font-size: .75rem; letter-spacing: .06em; text-transform: uppercase; color: var(--muted-foreground); }
.hd-details dd { margin: .2rem 0 0; font-weight: 600; font-size: .9375rem; }

.hd-costs { width: 100%; border-collapse: collapse; font-size: .9375rem; }
.hd-costs th, .hd-costs td { padding: .8rem 0; border-bottom: 1px solid var(--border); text-align: left; vertical-align: top; }
.hd-costs th { font-weight: 500; color: var(--muted-foreground); padding-right: 1rem; }
.hd-costs td { font-weight: 600; text-align: right; }
.hd-small { margin-top: .85rem; font-size: .8125rem; line-height: 1.55; color: var(--muted-foreground); }

.hd-notes { list-style: none; margin: 0; padding: 0; display: grid; gap: .6rem; }
.hd-notes li { display: flex; gap: .7rem; align-items: flex-start; padding: .9rem 1rem; border-radius: 1rem; background: var(--accent);
  border: 1px solid color-mix(in oklch, var(--primary) 35%, transparent); font-size: .9375rem; }
.hd-notes svg { flex-shrink: 0; color: oklch(55% .12 80); margin-top: .05rem; }

.hd-shared { display: grid; grid-template-columns: repeat(auto-fill, minmax(10rem, 1fr)); gap: .75rem; }
.hd-shared button { position: relative; display: block; padding: 0; border: 0; border-radius: 1rem; overflow: hidden; aspect-ratio: 4 / 3;
  cursor: zoom-in; background: var(--muted); }
.hd-shared img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.hd-shared button:hover img { transform: scale(1.04); }
.hd-shared span { position: absolute; left: .5rem; bottom: .5rem; padding: .2rem .55rem; border-radius: 999px;
  background: oklch(22% .003 90 / .72); color: var(--ink-foreground); font-size: .7rem; font-weight: 600; }

.hd-address { display: flex; gap: .6rem; align-items: flex-start; margin-bottom: .6rem; font-size: .9375rem; line-height: 1.5; }
.hd-address svg { flex-shrink: 0; color: oklch(62% .13 80); margin-top: .1rem; }
.hd-map { height: 18rem; margin-top: 1rem; border-radius: 1rem; overflow: hidden; border: 1px solid var(--border); background: var(--muted); z-index: 0; }
.hd-maplink { display: inline-flex; align-items: center; gap: .35rem; margin-top: .75rem; font-size: .875rem; font-weight: 600;
  text-decoration: underline; text-underline-offset: 4px; }
.hd-maplink svg { width: 1rem; height: 1rem; }

.hd-rooms { list-style: none; margin: 0; padding: 0; display: grid; gap: .5rem; }
.hd-room { display: flex; align-items: center; gap: .9rem; padding: .6rem; border: 1px solid var(--border); border-radius: 1rem;
  transition: border-color .15s, background-color .15s; }
.hd-room:hover { border-color: var(--ring); background: var(--accent); }
.hd-room img, .hd-room-thumb-empty { width: 4.5rem; height: 3.5rem; flex-shrink: 0; border-radius: .7rem; object-fit: cover; background: var(--sand); }
.hd-room-thumb-empty { display: grid; place-items: center; color: var(--muted-foreground); }
.hd-room-body { flex: 1; min-width: 0; }
.hd-room-name { display: block; font-weight: 600; }
.hd-room-meta { display: block; font-size: .8125rem; color: var(--muted-foreground); }
.hd-room-price { font-weight: 600; white-space: nowrap; }

/* sticky price card */
.hd-aside { display: none; }
@media (min-width: 64rem) {
  .hd-aside { display: block; }
  .hd-card { position: sticky; top: calc(72px + 1.5rem); }
}
.hd-card { padding: 1.5rem; border: 1px solid var(--border); border-radius: 1.5rem; background: var(--card);
  box-shadow: 0 1px 2px oklch(22% .003 90 / .04), 0 12px 32px oklch(22% .003 90 / .07); }
.hd-status { display: inline-flex; align-items: center; gap: .4rem; padding: .3rem .75rem; border-radius: 999px;
  background: var(--muted); font-size: .8125rem; font-weight: 600; }
.hd-status::before { content: ""; width: .5rem; height: .5rem; border-radius: 50%; background: oklch(70% .02 90); }
.hd-status.is-now { background: color-mix(in oklch, var(--success) 14%, var(--background)); color: oklch(40% .07 155); }
.hd-status.is-now::before { background: var(--success); }
.hd-price { margin-top: 1rem; font-family: "DM Serif Display", Georgia, serif; font-size: 2.4rem; line-height: 1; }
.hd-price span { font-family: Manrope, ui-sans-serif, sans-serif; font-size: .95rem; color: var(--muted-foreground); margin-left: .2rem; }
.hd-price-2 { margin-top: .5rem; font-size: .875rem; font-weight: 600; }
.hd-fee { margin-top: .35rem; font-size: .875rem; color: var(--muted-foreground); }
.hd-cta { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; width: 100%; height: 3rem; margin-top: 1.25rem;
  border-radius: 999px; background: var(--primary); color: var(--primary-foreground); font-size: .9375rem; font-weight: 600;
  transition: background-color .15s, transform .1s; }
.hd-cta:hover { background: var(--primary-hover); }
.hd-cta:active { transform: scale(.98); }
.hd-cta svg { width: 1.1rem; height: 1.1rem; }
.hd-cta-secondary { display: inline-flex; align-items: center; justify-content: center; width: 100%; height: 3rem; margin-top: .6rem;
  border: 1px solid var(--input); border-radius: 999px; font-size: .9375rem; font-weight: 600; transition: background-color .15s; }
.hd-cta-secondary:hover { background: var(--secondary); }

/* nearby */
.hd-nearby { margin-top: 3.5rem; padding-top: 3rem; border-top: 1px solid var(--border); }
.hd-nearby-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: .75rem; margin-bottom: 1.5rem; }
.hd-nearby-head h2 { font-size: clamp(1.6rem, 1.2rem + 1.2vw, 2.2rem); }
.hd-nearby-head a { display: inline-flex; align-items: center; gap: .35rem; font-size: .875rem; font-weight: 600; }
.hd-nearby-grid { display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fill, minmax(16rem, 1fr)); }
.hd-nearby-card { display: flex; flex-direction: column; overflow: hidden; border: 1px solid var(--border); border-radius: 1.5rem;
  background: var(--card); transition: box-shadow .3s; }
.hd-nearby-card:hover { box-shadow: 0 2px 4px oklch(22% .003 90 / .05), 0 20px 44px oklch(22% .003 90 / .1); }
.hd-nearby-img { aspect-ratio: 4 / 3; overflow: hidden; background: var(--sand); }
.hd-nearby-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.hd-nearby-card:hover .hd-nearby-img img { transform: scale(1.04); }
.hd-nearby-body { padding: 1rem 1.1rem 1.2rem; }
.hd-nearby-home { font-size: .8125rem; color: var(--muted-foreground); }
.hd-nearby-name { margin-top: .15rem; font-family: "DM Serif Display", Georgia, serif; font-size: 1.2rem; }
.hd-nearby-meta { margin-top: .25rem; font-size: .8125rem; color: var(--muted-foreground); }
.hd-nearby-price { margin-top: .6rem; font-weight: 600; }
.hd-nearby-price span { font-weight: 400; color: var(--muted-foreground); font-size: .875rem; }
.hd-updated { margin-top: 2.5rem; font-size: .75rem; color: var(--muted-foreground); }

/* ---------------------------------------------------------------- videos and 360 photos */
.bl-media-badges { position: absolute; left: .75rem; bottom: .75rem; display: flex; flex-wrap: wrap; gap: .375rem; }

.hd-gallery .hd-media-buttons { position: absolute; left: 1rem; right: 1rem; bottom: 1rem; z-index: 2; display: flex; flex-wrap: wrap;
  justify-content: flex-end; gap: .5rem; pointer-events: none; }
.hd-media-buttons > * { pointer-events: auto; }
.hd-media-buttons .hd-all-photos { position: static; }
.hd-media-btn { display: inline-flex; align-items: center; gap: .45rem; height: 2.75rem; padding: 0 1.1rem; border-radius: 999px;
  background: var(--ink); color: var(--ink-foreground); font-size: .875rem; font-weight: 600;
  box-shadow: 0 6px 18px oklch(22% .003 90 / .2); transition: background-color .15s, transform .1s; }
.hd-media-btn:hover { background: color-mix(in oklch, var(--ink) 82%, white); }
.hd-media-btn:active { transform: scale(.97); }
.hd-media-btn svg { width: 1rem; height: 1rem; }
.hd-gallery.hd-count-0 .hd-media-buttons { justify-content: center; }
@media (max-width: 40rem) {
  .hd-gallery .hd-media-buttons { left: .75rem; right: .75rem; bottom: .75rem; gap: .4rem; }
  .hd-media-btn, .hd-media-buttons .hd-all-photos { height: 2.25rem; padding: 0 .8rem; gap: .35rem; font-size: .8125rem; }
  .hd-media-buttons .hd-btn-long { display: none; }
}
html:has(body.hd-page) { scroll-behavior: smooth; }
#video-tour, #view-360 { scroll-margin-top: calc(72px + 1rem); }
@media (prefers-reduced-motion: reduce) { html:has(body.hd-page) { scroll-behavior: auto; } }

.hd-videos { display: grid; grid-template-columns: repeat(auto-fill, minmax(12.5rem, 1fr)); gap: 1rem; align-items: start; }
.hd-video { margin: 0; min-width: 0; }
.hd-video.is-landscape { grid-column: span 2; }
.hd-video-frame { position: relative; overflow: hidden; max-height: 72vh; border-radius: 1rem; background: var(--ink); }
.hd-video video { display: block; width: 100%; height: 100%; object-fit: contain; background: var(--ink); }
.hd-video figcaption { display: flex; justify-content: space-between; gap: .5rem; margin-top: .45rem; font-size: .8125rem; font-weight: 600; }
.hd-video-time { color: var(--muted-foreground); font-weight: 500; font-variant-numeric: tabular-nums; }
@media (max-width: 30rem) {
  .hd-videos { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .65rem; }
  .hd-video.is-landscape { grid-column: 1 / -1; }
}

.hd-pano { position: relative; aspect-ratio: 16 / 10; overflow: hidden; border-radius: 1rem; background: var(--ink); }
@media (max-width: 40rem) { .hd-pano { aspect-ratio: 4 / 3; } }
.hd-pano-start { position: absolute; inset: 0; display: grid; place-items: center; width: 100%; padding: 0; border: 0; cursor: pointer;
  background-color: var(--ink); background-size: cover; background-position: center; }
.hd-pano-start::before { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, oklch(15% .003 90 / .55), oklch(15% .003 90 / .1)); }
.hd-pano-cta { position: relative; display: inline-flex; align-items: center; gap: .55rem; height: 3rem; padding: 0 1.4rem; border-radius: 999px;
  background: var(--primary); color: var(--primary-foreground); font-size: .9375rem; font-weight: 600;
  box-shadow: 0 10px 30px oklch(15% .003 90 / .35); transition: background-color .15s, transform .15s; }
.hd-pano-start:hover .hd-pano-cta { background: var(--primary-hover); transform: scale(1.03); }
.hd-pano-cta svg { width: 1.25rem; height: 1.25rem; }
.hd-pano-thumbs { display: flex; gap: .6rem; overflow-x: auto; padding: .75rem .1rem .35rem; scroll-snap-type: x mandatory; overscroll-behavior-x: contain; }
.hd-pano-thumb { position: relative; flex: 0 0 8.5rem; overflow: hidden; padding: 0; border: 2px solid var(--border); border-radius: .8rem;
  background: var(--background); text-align: left; scroll-snap-align: start; cursor: pointer; transition: border-color .15s; }
.hd-pano-thumb:hover { border-color: var(--ring); }
.hd-pano-thumb[aria-pressed="true"] { border-color: var(--primary); }
.hd-pano-thumb img { display: block; width: 100%; aspect-ratio: 8 / 5; object-fit: cover; }
.hd-pano-thumb span { display: block; overflow: hidden; padding: .35rem .5rem; font-size: .75rem; font-weight: 600; white-space: nowrap; text-overflow: ellipsis; }
#tour-3d { scroll-margin-top: calc(72px + 1rem); }
.hd-tour { position: relative; aspect-ratio: 16 / 10; overflow: hidden; border-radius: 1rem; background: var(--ink); }
@media (max-width: 40rem) { .hd-tour { aspect-ratio: 4 / 5; } }
.hd-tour iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.hd-pano .pnlm-container { background: var(--ink); font-family: Manrope, ui-sans-serif, system-ui, sans-serif; }
.hd-pano .pnlm-panorama-info { border-radius: .6rem; }
.hd-pano .pnlm-title-box { font-family: "DM Serif Display", Georgia, serif; font-size: 1.1rem; }
.hd-pano .pnlm-load-box { border-radius: .8rem; }

/* mobile bottom bar */
.hd-mobilebar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 45; display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; padding: .75rem 1.25rem calc(.75rem + env(safe-area-inset-bottom)); border-top: 1px solid var(--border);
  background: color-mix(in oklch, var(--background) 96%, transparent); backdrop-filter: blur(8px); }
.hd-mobilebar .hd-cta { width: auto; margin: 0; padding: 0 1.4rem; height: 2.9rem; }
.hd-mobilebar-price { font-family: "DM Serif Display", Georgia, serif; font-size: 1.4rem; line-height: 1.1; }
.hd-mobilebar-price span { font-family: Manrope, sans-serif; font-size: .8rem; color: var(--muted-foreground); }
.hd-mobilebar-avail { font-size: .75rem; color: var(--muted-foreground); }
@media (max-width: 63.999rem) {
  .hd-page footer { padding-bottom: calc(4.5rem + env(safe-area-inset-bottom)); }
  .hd-page a[aria-label="Chat with us on WhatsApp"] { display: none; }
  .hd-page button[aria-label="Back to top"] { bottom: calc(5.5rem + env(safe-area-inset-bottom)); }
}
@media (min-width: 64rem) { .hd-mobilebar { display: none; } }

/* lightbox */
.hd-lightbox { width: 100vw; height: 100dvh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0;
  background: oklch(15% .003 90 / .96); color: #fff; }
.hd-lightbox::backdrop { background: oklch(15% .003 90 / .9); }
.hd-lightbox[open] { display: grid; grid-template-rows: auto minmax(0, 1fr); }
.hd-lightbox-top { display: flex; align-items: center; justify-content: space-between; padding: .75rem 1rem; }
.hd-lightbox-count { font-size: .875rem; opacity: .85; }
.hd-lightbox figure { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .6rem; margin: 0;
  padding: 0 1rem 1.25rem; min-height: 0; }
.hd-lightbox img { max-width: 100%; max-height: calc(100dvh - 7rem); object-fit: contain; border-radius: .5rem; }
.hd-lightbox figcaption { font-size: .875rem; opacity: .8; text-align: center; }
.hd-lightbox-btn { display: inline-grid; place-items: center; width: 2.9rem; height: 2.9rem; border-radius: 999px;
  background: rgba(255, 255, 255, .12); color: #fff; transition: background-color .15s; }
.hd-lightbox-btn:hover { background: rgba(255, 255, 255, .24); }
.hd-prev, .hd-next { position: absolute; top: 50%; transform: translateY(-50%); }
.hd-prev { left: 1rem; }
.hd-next { right: 1rem; }
@media (max-width: 40rem) { .hd-prev, .hd-next { top: auto; bottom: 1rem; transform: none; } }

@media (prefers-reduced-motion: reduce) {
  .hd-tile img, .hd-shared img, .hd-nearby-img img { transition: none; }
}


/* ---------------------------------------------------------------- responsive polish (touch targets, minimum text size) */
@media (max-width: 47.999rem) {
  footer a[class*="min-h-[32px]"] { min-width: 44px; }
  .hd-gallery .hd-media-btn, .hd-gallery .hd-media-buttons .hd-all-photos { height: 2.75rem; }
  .hd-maplink, .hd-nearby-head a { min-height: 44px; }
  button[aria-label="Grid view"], button[aria-label="List view"] { height: 2.75rem; }
  .hd-small a { display: inline-flex; align-items: center; min-height: 44px; }
}
.hd-card .hd-small a { font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
[data-listing] .text-\[11px\], .bl-media-badges > span { font-size: .75rem; }
.hd-shared span { font-size: .75rem; }

/* homepage featured rooms: on tablets the third card spans both columns instead of sitting alone */
@media (min-width: 48rem) and (max-width: 63.999rem) {
  section[aria-labelledby="featured-heading"] .grid > div:nth-child(3):last-child { grid-column: 1 / -1; }
  section[aria-labelledby="featured-heading"] .grid > div:nth-child(3):last-child article { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  section[aria-labelledby="featured-heading"] .grid > div:nth-child(3):last-child article > div:first-child { aspect-ratio: auto; min-height: 100%; }
}

/* ---------------------------------------------------------------- property card photo slideshow */
.bl-slides { position: absolute; inset: 0; z-index: 1; overflow: hidden; background: var(--sand); }
.bl-slides-track { display: flex; width: 100%; height: 100%; overflow-x: auto; overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory; scrollbar-width: none; -webkit-overflow-scrolling: touch; cursor: pointer; }
.bl-slides-track::-webkit-scrollbar { display: none; }
.bl-slide { flex: 0 0 100%; height: 100%; scroll-snap-align: start; scroll-snap-stop: always; background: var(--sand); }
.bl-slide img { display: block; width: 100%; height: 100%; object-fit: cover; }
.bl-slides-nav { position: absolute; top: 50%; z-index: 3; display: inline-grid; place-items: center; width: 2.25rem; height: 2.25rem;
  margin-top: -1.125rem; border-radius: 999px; background: color-mix(in oklch, var(--background) 92%, transparent); color: var(--foreground);
  box-shadow: 0 4px 14px oklch(22% .003 90 / .22); opacity: 0; transform: scale(.9); pointer-events: none;
  transition: opacity .2s, transform .2s, background-color .15s; }
.bl-slides-nav::before { content: ""; position: absolute; inset: -.4rem; }
.bl-slides-prev { left: .6rem; }
.bl-slides-next { right: .6rem; }
.bl-slides-nav:hover { background: var(--background); }
.bl-slides-nav:focus-visible { outline: 2px solid var(--ring); outline-offset: 2px; }
@media (hover: hover) {
  .bl-slides:hover .bl-slides-nav { opacity: 1; transform: none; pointer-events: auto; }
}
.bl-slides:focus-within .bl-slides-nav { opacity: 1; transform: none; pointer-events: auto; }
.bl-dots { position: absolute; left: 50%; bottom: .75rem; z-index: 2; display: flex; gap: .35rem; transform: translateX(-50%); pointer-events: none; }
.bl-dot { width: .375rem; height: .375rem; border-radius: 999px; background: oklch(100% 0 0 / .6);
  border: 0; outline: 0; box-shadow: 0 1px 4px oklch(18% .004 90 / .35); transition: transform .2s, background-color .2s; }
.bl-dot.is-active { background: #fff; transform: scale(1.3); }
/* keep badges, the save button and labels above the photos */
.bl-slides ~ span, .bl-slides ~ button, .bl-slides ~ div { z-index: 2; }
.bl-slides ~ .bl-media-badges { bottom: 2.1rem; }
section[aria-labelledby="featured-heading"] .bl-slides ~ span.absolute.bottom-4 { bottom: 2.25rem; }
@media (prefers-reduced-motion: reduce) { .bl-slides-nav, .bl-dot { transition: none; } }

/* footer: tighter space under the copyright line (matches the space above it) */
footer > .container-bl { padding-bottom: 1.5rem; }

/* footer menus: tighter rows (30px apart on desktop, 40px tap rows on phones) */
footer ul[class*="space-y-2.5"] { display: grid; gap: .375rem; }
footer ul[class*="space-y-2.5"] > * { margin-block: 0 !important; }
footer ul[class*="space-y-2.5"] [class*="min-h-[32px]"] { min-height: 1.5rem; }
@media (max-width: 47.999rem) {
  footer ul[class*="space-y-2.5"] { gap: 0; }
  footer ul[class*="space-y-2.5"] [class*="min-h-[32px]"] { min-height: 2.5rem; }
}
