/*
 * Quick tweaks: edit the :root variables below (radii, shadows, font sizes/weights, layout).
 * Components reference these tokens so changes stay consistent site-wide.
 */
:root {
  /* --- Colors --- */
  /* Adobe Fonts: Museo Sans (kit weights 100/300/500/700/900 + italics). */
  --font-sans: "museo-sans", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --color-bg: #ffffff;
  --color-text: #111111;
  --color-muted: #6b6b6b;
  --color-border: #e2e2e2;
  --color-accent: #111111;
  --color-link: #111111;
  --color-error: #b00020;

  /* --- Layout --- */
  --header-height: 72px;
  /* Site content band (~70% viewport); tweak 70vw / 1400px to taste */
  --site-width: min(70vw, 1400px);
  --site-gutter: max(1rem, calc((100vw - min(70vw, 1400px)) / 2));
  /* Top halftone strip on <main> only (below header); repeat-x, 60px tall then solid page bg */
  --site-main-pattern-image: url("https://gwisnpggolgbyxkzisnw.supabase.co/storage/v1/object/public/101rvkapt/Pattern-2.jpg");
  --site-main-pattern-height: 60px;
  /* Mobile shell — fixed bottom contact CTA clears this much space (+ safe area handled in calc) */
  --site-mobile-cta-h: 3.625rem;

  /* --- Border radius (rounded corners) --- */
  --radius-xs: 2px; /* read-more link underline area, micro UI */
  --radius-input: 4px; /* form fields */
  --radius-card: 8px; /* cards, panels */
  --radius-thumb: 8px; /* property gallery thumbnails */
  --radius-gallery: 8px; /* property main gallery image */
  --radius-map: 8px; /* map tile */
  --radius-pill: 8px; /* pill buttons, slider dots */

  /* --- Drop shadows (tweak blur / opacity for softer vs stronger) --- */
  /* RGB triplet for rgba(var(--shadow-color), alpha) — not hex */
  --shadow-color: 15, 23, 42;
  --shadow-sm: 3px 3px 8px rgba(var(--shadow-color), 0.16); /* thumbnails */
  --shadow-md: 5px 5px 10px rgba(var(--shadow-color), 0.16); /* main gallery */
  --shadow-lg: 8px 8px 12px rgba(var(--shadow-color), 0.16); /* elevated panels */

  /* --- Font weights (mapped to Museo Sans steps: no 200/400/600/800 in kit) --- */
  --font-weight-thin: 100;
  --font-weight-extralight: 100; /* was 200 */
  --font-weight-light: 300;
  --font-weight-regular: 500; /* was 400 */
  --font-weight-medium: 500;
  --font-weight-semibold: 700; /* was 600 */
  --font-weight-bold: 700;
  --font-weight-extrabold: 900; /* was 800 */

  /* --- Font sizes (rem) — tweak the scale globally --- */
  --text-2xs: 0.8rem;
  --text-xs: 0.85rem;
  --text-sm: 0.9rem;
  --text-base: 1rem;
  --text-md: 1.08rem;
  --text-lg: 1.24rem;
  --text-xl: 1.5rem;
  --text-2xl: 1.75rem;
  --text-3xl: 2rem;
  --text-slider-icon: 1.6rem;
  --text-nav: 0.9rem;
  --text-body: 0.96rem;
  --text-body-secondary: 0.92rem;
  --text-caption: 0.82rem;
  --text-label: 0.88rem;
  /* Fluid headings (property page, home hero) */
  --text-property-title: clamp(1.55rem, 2.8vw, 2.1rem);
  --text-property-street: var(--text-lg);
  --text-hero-heading: clamp(2.3rem, 3vw, 2.9rem);
  --text-gallery-more: clamp(2.25rem, 4vw, 3rem);

  /* --- Line height --- */
  --leading-tight: 1.15;
  --leading-snug: 1.35;
  --leading-normal: 1.5;
  --leading-relaxed: 1.65;
  --leading-loose: 1.7;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  height: 100%;
}

body {
  font-family: var(--font-sans);
  font-weight: var(--font-weight-regular);
  color: var(--color-text);
  background-color: var(--color-bg);
}

/* Auto-highlighted phrases (`buzzwords.json`, edited in admin) */
.buzzword {
  font-weight: var(--font-weight-extrabold);
}

/* UA styles default buttons/fields to system sans (often Arial); keep typography on Museo. */
button,
input,
select,
textarea {
  font-family: var(--font-sans);
}

.page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  height: var(--header-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 var(--site-gutter);
  background-color: #ffffff;
  border-bottom: 1px solid var(--color-border);
}

.logo {
  display: inline-flex;
  align-items: center;
}

.logo img {
  height: 36px;
  width: auto;
  display: block;
}

.site-header-nav {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.nav-contact-host {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.05em;
  padding: 0.42rem 0.7rem;
  min-width: 0;
  font-family: inherit;
  font-size: 0.74rem;
  font-weight: 300;
  letter-spacing: 0.085em;
  text-transform: uppercase;
  line-height: 1.22;
  color: #ffffff;
  background: #447a57;
  border-radius: 8px;
  text-decoration: none;
  border: none;
  cursor: pointer;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12);
  transition:
    filter 0.15s ease,
    transform 0.15s ease,
    background-color 0.15s ease;
}

.nav-contact-host__line {
  display: block;
  white-space: nowrap;
}

.nav-contact-host__line:first-child {
  font-weight: 800;
}

.nav-contact-host:hover {
  filter: brightness(1.05);
  color: #ffffff;
  background: #4d865f;
}

.nav-contact-host:active {
  transform: scale(0.98);
}

.nav-contact-host:focus-visible {
  outline: 2px solid #2d5a3d;
  outline-offset: 2px;
}

body.contact-host-modal-open {
  overflow: hidden;
}

.contact-host-modal {
  position: fixed;
  inset: 0;
  z-index: 1100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: max(1rem, env(safe-area-inset-top)) max(1rem, env(safe-area-inset-right))
    max(1rem, env(safe-area-inset-bottom)) max(1rem, env(safe-area-inset-left));
}

.contact-host-modal[hidden] {
  display: none !important;
}

.contact-host-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.4);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.contact-host-modal__panel {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 22rem;
  padding: 1.65rem 1.5rem 1.5rem;
  border-radius: 18px;
  background: linear-gradient(180deg, #ffffff 0%, #fafbfc 100%);
  border: 1px solid rgba(0, 0, 0, 0.06);
  box-shadow:
    0 24px 48px rgba(15, 23, 42, 0.14),
    0 2px 8px rgba(15, 23, 42, 0.06);
}

.contact-host-modal__close {
  position: absolute;
  top: 0.65rem;
  right: 0.65rem;
  width: 2rem;
  height: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  border-radius: var(--radius-pill);
  background: rgba(0, 0, 0, 0.05);
  color: var(--color-text);
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
  transition: background 0.15s ease;
}

.contact-host-modal__close:hover {
  background: rgba(0, 0, 0, 0.09);
}

.contact-host-modal__title {
  margin: 0 2rem 0.35rem 0;
  font-size: var(--text-xl);
  font-weight: var(--font-weight-semibold);
  letter-spacing: -0.02em;
  color: var(--color-text);
}

.contact-host-modal__lead {
  margin: 0 0 1.25rem;
  font-size: var(--text-sm);
  color: var(--color-muted);
  line-height: var(--leading-snug);
}

.contact-host-modal__actions {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.contact-host-modal__action {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.2rem;
  padding: 0.95rem 1rem;
  border-radius: 14px;
  text-decoration: none;
  color: inherit;
  background: linear-gradient(180deg, #f6f7f9 0%, #eceef2 100%);
  border: 1px solid rgba(0, 0, 0, 0.06);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.85) inset;
  transition:
    transform 0.15s ease,
    box-shadow 0.15s ease,
    background 0.15s ease;
}

.contact-host-modal__action:hover {
  background: linear-gradient(180deg, #eef0f4 0%, #e4e7ec 100%);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.9) inset, 0 4px 12px rgba(15, 23, 42, 0.08);
}

.contact-host-modal__action:active {
  transform: scale(0.99);
}

.contact-host-modal__action-kicker {
  font-size: var(--text-2xs);
  font-weight: var(--font-weight-semibold);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-muted);
}

.contact-host-modal__action-main {
  font-size: var(--text-base);
  font-weight: var(--font-weight-semibold);
  color: var(--color-text);
  letter-spacing: 0.01em;
}

@media (prefers-reduced-motion: reduce) {
  .contact-host-modal__backdrop {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }

  .contact-host-modal__action {
    transition: none;
  }

  .contact-host-modal__action:active {
    transform: none;
  }
}

/* --- Property detail page ------------------------------------------------ */

.property-detail-main {
  flex: 1;
}

.property-detail-empty {
  padding: 3rem var(--site-gutter);
}

.property-detail-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 2.25rem var(--site-gutter) 1.5rem;
  flex-wrap: wrap;
}

.property-detail-title {
  font-size: var(--text-property-title);
  font-weight: var(--font-weight-extrabold);
  margin: 0 0 0.35rem;
  line-height: var(--leading-tight);
}

.property-detail-street {
  margin: 0;
  font-size: var(--text-property-street);
  color: var(--color-muted);
  line-height: 1.45;
  font-weight: var(--font-weight-light);
}

.btn-check-availability {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.62rem 1.4rem;
  font-family: var(--font-sans);
  font-size: var(--text-label);
  font-weight: var(--font-weight-bold);
  color: #fff;
  background: var(--color-text);
  border-radius: var(--radius-pill);
  text-decoration: none;
  border: none;
  cursor: pointer;
  flex-shrink: 0;
}

.btn-check-availability:hover {
  opacity: 0.88;
}

.property-gallery {
  padding: 0 var(--site-gutter) 1.75rem;
}

.property-gallery-main-wrap {
  position: relative;
  width: 100%;
}

.property-gallery-main {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  max-height: min(62vh, 560px);
  background: #eaeaea;
  overflow: hidden;
  border-radius: var(--radius-gallery);
  box-shadow: var(--shadow-md);
  margin: 0;
  padding: 0;
  border: none;
  font: inherit;
  cursor: pointer;
  text-align: left;
}

.property-gallery-main-nav {
  position: absolute;
  top: 50%;
  left: auto;
  right: auto;
  z-index: 2;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  padding: 0;
  border: none;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 0;
  cursor: pointer;
  background: #1d1d1f;
  box-shadow:
    0 1px 3px rgba(0, 0, 0, 0.18),
    0 4px 14px rgba(0, 0, 0, 0.14);
  transition:
    background 0.2s ease,
    box-shadow 0.2s ease,
    transform 0.2s ease;
}

.property-gallery-main-nav__icon {
  display: block;
  flex-shrink: 0;
  margin: 0;
}

.property-gallery-main-nav__triangle {
  fill: #fff;
}

.property-gallery-main-nav:hover {
  background: #000;
  box-shadow:
    0 2px 6px rgba(0, 0, 0, 0.22),
    0 8px 22px rgba(0, 0, 0, 0.16);
}

.property-gallery-main-nav:focus-visible {
  outline: 2px solid rgba(0, 122, 255, 0.55);
  outline-offset: 2px;
}

.property-gallery-main-nav:active {
  transform: translateY(-50%) scale(0.96);
}

.property-gallery-main-nav--prev {
  left: clamp(0.5rem, 2vw, 1rem);
}

.property-gallery-main-nav--next {
  right: clamp(0.5rem, 2vw, 1rem);
}

.property-gallery-main-nav[hidden] {
  display: none !important;
}

@media (max-width: 640px) {
  .property-gallery-main-nav {
    width: 38px;
    height: 38px;
  }

  .property-gallery-main-nav__icon {
    width: 14px;
    height: 14px;
  }

  .property-gallery-main-nav--prev {
    left: 0.35rem;
  }

  .property-gallery-main-nav--next {
    right: 0.35rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .property-gallery-main-nav {
    transition: background 0.15s ease, box-shadow 0.15s ease;
  }

  .property-gallery-main-nav:active {
    transform: translateY(-50%);
  }
}

.property-gallery-main:disabled {
  cursor: default;
}

.property-gallery-main--empty {
  min-height: 200px;
}

.property-gallery-main--empty::after {
  content: "No photos yet";
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--text-sm);
  color: var(--color-muted);
  pointer-events: none;
}

.property-gallery-main img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.property-gallery-main img[hidden] {
  display: none !important;
}

.property-gallery-thumbs {
  display: flex;
  gap: 0.85rem;
  margin-top: 0.75rem;
  /* Room for scale + tilt without clipping */
  padding: 0.35rem;
  margin-left: -0.35rem;
  margin-right: -0.35rem;
  margin-bottom: -0.2rem;
  perspective: 1000px;
  perspective-origin: center center;
  overflow: visible;
}

.property-gallery-thumb {
  --tilt-x: 0deg;
  --tilt-y: 0deg;
  --tilt-scale: 1;
  flex: 1;
  min-width: 0;
  aspect-ratio: 4 / 3;
  padding: 0;
  border: none;
  background: #ddd;
  cursor: pointer;
  overflow: hidden;
  border-radius: var(--radius-thumb);
  box-shadow: var(--shadow-sm);
  position: relative;
  transform-origin: center center;
  transform-style: preserve-3d;
  backface-visibility: hidden;
  /* perspective on .property-gallery-thumbs */
  transform: rotateX(var(--tilt-x)) rotateY(var(--tilt-y)) scale(var(--tilt-scale));
  /* Smooth ease-in-out so tilt doesn’t snap / jitter at the edges */
  transition:
    transform 0.26s cubic-bezier(0.45, 0, 0.55, 1),
    box-shadow 0.22s ease,
    z-index 0s;
  z-index: 0;
}

.property-gallery-thumb:hover,
.property-gallery-thumb:focus-visible {
  z-index: 3;
  box-shadow: 0 12px 28px rgba(var(--shadow-color), 0.2);
}

.property-gallery-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  pointer-events: none;
}

@media (prefers-reduced-motion: reduce) {
  .property-gallery-thumb {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    transform: none;
  }

  .property-gallery-thumb:hover,
  .property-gallery-thumb:focus-visible {
    transform: scale(1.03);
  }
}

.property-gallery-thumb--more .property-gallery-thumb-more-label {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  font-weight: var(--font-weight-extralight);
  font-size: var(--text-gallery-more);
  letter-spacing: 0.02em;
  color: #fff;
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.4);
  pointer-events: none;
}

body.property-lightbox-open {
  overflow: hidden;
}

.property-lightbox {
  position: fixed;
  inset: 0;
  z-index: 1000;
}

.property-lightbox[hidden] {
  display: none !important;
}

.property-lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.9);
  cursor: pointer;
}

.property-lightbox-stage {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  z-index: 2;
  max-width: min(94vw, 1280px);
  max-height: 88vh;
  pointer-events: none;
}

.property-lightbox-img {
  max-width: min(94vw, 1280px);
  max-height: 88vh;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
  pointer-events: auto;
}

.property-lightbox-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  z-index: 4;
  width: 44px;
  height: 44px;
  border: none;
  border-radius: 8px;
  background: #1d1d1f;
  color: #fff;
  font-size: var(--text-xl);
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow:
    0 1px 3px rgba(0, 0, 0, 0.18),
    0 4px 14px rgba(0, 0, 0, 0.14);
  transition:
    background 0.2s ease,
    box-shadow 0.2s ease,
    transform 0.2s ease;
}

.property-lightbox-close:hover {
  background: #000;
  box-shadow:
    0 2px 6px rgba(0, 0, 0, 0.22),
    0 8px 22px rgba(0, 0, 0, 0.16);
}

.property-lightbox-close:focus-visible {
  outline: 2px solid rgba(0, 122, 255, 0.55);
  outline-offset: 2px;
}

.property-lightbox-close:active {
  transform: scale(0.96);
}

.property-lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 4;
  width: 44px;
  height: 44px;
  padding: 0;
  border: none;
  border-radius: 8px;
  background: #1d1d1f;
  line-height: 0;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow:
    0 1px 3px rgba(0, 0, 0, 0.18),
    0 4px 14px rgba(0, 0, 0, 0.14);
  transition:
    background 0.2s ease,
    box-shadow 0.2s ease,
    transform 0.2s ease;
}

.property-lightbox-nav:hover {
  background: #000;
  box-shadow:
    0 2px 6px rgba(0, 0, 0, 0.22),
    0 8px 22px rgba(0, 0, 0, 0.16);
}

.property-lightbox-nav:focus-visible {
  outline: 2px solid rgba(0, 122, 255, 0.55);
  outline-offset: 2px;
}

.property-lightbox-nav:active {
  transform: translateY(-50%) scale(0.96);
}

.property-lightbox-prev {
  left: min(1rem, 3vw);
}

.property-lightbox-next {
  right: min(1rem, 3vw);
}

@media (max-width: 640px) {
  .property-lightbox-prev {
    left: 0.35rem;
  }

  .property-lightbox-next {
    right: 0.35rem;
  }

  .property-lightbox-nav {
    width: 38px;
    height: 38px;
  }

  .property-lightbox-nav .property-gallery-main-nav__icon {
    width: 14px;
    height: 14px;
  }

  .property-lightbox-close {
    width: 38px;
    height: 38px;
    font-size: var(--text-lg);
  }
}

@media (prefers-reduced-motion: reduce) {
  .property-lightbox-close:active {
    transform: none;
  }

  .property-lightbox-nav:active {
    transform: translateY(-50%);
  }
}

.property-detail-body {
  width: 100%;
  padding-bottom: clamp(2rem, 5vw, 4rem);
}

.property-detail-columns {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(240px, 1fr);
  gap: clamp(2rem, 4vw, 3.5rem);
  padding: 0 var(--site-gutter);
  align-items: start;
}

.property-detail-col--main {
  display: flex;
  flex-direction: column;
  gap: clamp(1.5rem, 2.5vw, 2.25rem);
  min-width: 0;
}

.property-detail-col--side {
  display: flex;
  flex-direction: column;
  gap: clamp(1.35rem, 2.2vw, 1.85rem);
  min-width: 0;
}

.property-detail-description {
  margin: 0;
}

.property-detail-subtitle {
  padding: 0;
  margin: 0;
  font-size: var(--text-body);
  font-weight: var(--font-weight-regular);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--color-text);
  line-height: var(--leading-relaxed);
}

.property-apartment-plan {
  margin: 0;
  padding: 0;
  max-width: none;
}

.property-apartment-plan__title {
  margin: 0 0 0.75rem;
  font-size: var(--text-md);
  font-weight: var(--font-weight-semibold);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--color-text);
}

.property-apartment-plan__frame {
  display: block;
  width: 100%;
  margin: 0;
  padding: 0;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-gallery);
  overflow: hidden;
  background: #f8f8f9;
  box-shadow: var(--shadow-sm);
  font: inherit;
  text-align: left;
  cursor: zoom-in;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.property-apartment-plan__frame:hover {
  box-shadow: var(--shadow-md);
}

.property-apartment-plan__frame:focus-visible {
  outline: 2px solid rgba(0, 122, 255, 0.55);
  outline-offset: 3px;
}

.property-apartment-plan__frame:active {
  transform: scale(0.998);
}

.property-apartment-plan__frame img {
  display: block;
  width: 100%;
  height: auto;
  pointer-events: none;
}

.property-apartment-plan__caption {
  margin: 0.65rem 0 0;
  font-size: var(--text-xs);
  font-weight: var(--font-weight-medium);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-muted);
  line-height: var(--leading-snug);
}

.property-detail .rich-content img {
  max-width: 100%;
  height: auto;
  display: block;
  border-radius: var(--radius-gallery);
  box-shadow: var(--shadow-sm);
}

.property-recommended-activity {
  margin: clamp(1.75rem, 4vw, 2.75rem) 0 0;
  padding-block: clamp(1.05rem, 2.3vw, 1.38rem);
  padding-inline: clamp(1rem, 2.2vw, 1.38rem);
  background: #141416;
  color: rgba(255, 255, 255, 0.96);
  border-radius: var(--radius-card);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-sizing: border-box;
}

.property-recommended-activity .rich-content.property-recommended-activity__body {
  color: rgba(255, 255, 255, 0.94);
}

.property-recommended-activity .property-recommended-activity__body a {
  color: rgba(255, 255, 255, 0.98);
  text-decoration: underline;
  text-decoration-color: rgba(255, 255, 255, 0.42);
}

.property-recommended-activity .property-recommended-activity__body a:hover {
  color: #ffffff;
  text-decoration-color: rgba(255, 255, 255, 0.75);
}

.property-recommended-activity .property-recommended-activity__body strong {
  color: #ffffff;
}

/* CMS headings (often h2) lacked .rich-content rules — tighten line-height & gap before body copy */
.property-recommended-activity__body h1,
.property-recommended-activity__body h2,
.property-recommended-activity__body h3,
.property-recommended-activity__body h4 {
  margin: 0 0 0.35rem;
  line-height: 1.18;
}

.property-recommended-activity__body h1:first-child,
.property-recommended-activity__body h2:first-child,
.property-recommended-activity__body h3:first-child,
.property-recommended-activity__body h4:first-child {
  margin-top: 0;
}

.property-recommended-activity__body h1 + p,
.property-recommended-activity__body h2 + p,
.property-recommended-activity__body h3 + p,
.property-recommended-activity__body h4 + p {
  margin-top: 0;
}

.property-recommended-activity__body p {
  margin: 0 0 0.75rem;
  line-height: var(--leading-normal);
}

.property-recommended-activity__body figure {
  margin: 0 0 1rem;
}

.property-recommended-activity__body figcaption {
  margin-top: 0.45rem;
  font-size: var(--text-sm);
  color: rgba(255, 255, 255, 0.68);
  line-height: var(--leading-normal);
}

/* Beat .property-recommended-activity__body p so last block doesn’t add margin + section padding */
.property-recommended-activity .property-recommended-activity__body > *:last-child {
  margin-bottom: 0;
}

/* TinyMCE often appends <p><br></p>; hiding removes a full line-box of phantom space */
.property-recommended-activity .property-recommended-activity__body > p:last-child:empty {
  display: none;
}

.property-recommended-activity .property-recommended-activity__body > p:last-child:has(> br:only-child) {
  display: none;
}

.property-amenities {
  margin-top: 0;
}

.property-detail-col--side .property-amenities {
  margin-top: 0;
}

.property-amenities-title {
  font-size: var(--text-base);
  font-weight: var(--font-weight-extrabold);
  margin: 0 0 0.85rem;
}

.property-amenities-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}

.property-amenity {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.property-amenity-icon {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 0;
}

.property-amenity-icon img {
  width: 28px;
  height: 28px;
  object-fit: contain;
  display: block;
}

.property-amenity-icon--placeholder {
  min-width: 28px;
  min-height: 28px;
  align-items: center;
  justify-content: center;
  color: var(--color-muted);
  font-size: var(--text-lg);
  font-weight: var(--font-weight-semibold);
  line-height: 1;
}

.property-amenity-icon--placeholder::after {
  content: "—";
}

.property-amenity-name {
  font-size: var(--text-sm);
}

.property-car-rental {
  margin-top: 0;
}

.property-car-rental--sidebar {
  margin-top: 0;
}

.property-contact-card {
  margin-top: 0;
  padding: 1.25rem 1.35rem 1.35rem;
  background: #1d1d1f;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-card);
  box-shadow:
    0 1px 3px rgba(0, 0, 0, 0.25),
    0 8px 24px rgba(0, 0, 0, 0.18);
}

.property-contact-card__title {
  margin: 0 0 0.5rem;
  font-size: var(--text-lg);
  font-weight: var(--font-weight-semibold);
  line-height: var(--leading-tight);
  color: #fff;
}

.property-contact-card__lead {
  margin: 0 0 1rem;
  font-size: var(--text-sm);
  color: rgba(255, 255, 255, 0.72);
  line-height: var(--leading-normal);
}

.property-contact-card__actions {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.property-contact-card__action {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  padding: 0.65rem 0.85rem;
  border-radius: var(--radius-input);
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.06);
  text-decoration: none;
  color: #fff;
  transition:
    border-color 0.18s ease,
    background 0.18s ease,
    box-shadow 0.18s ease;
}

.property-contact-card__action:hover {
  border-color: rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.1);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.2);
}

.property-contact-card__action:focus-visible {
  outline: 2px solid rgba(10, 132, 255, 0.85);
  outline-offset: 2px;
}

.property-contact-card__action-kicker {
  font-size: var(--text-2xs);
  font-weight: var(--font-weight-semibold);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
}

.property-contact-card__action-main {
  font-size: var(--text-sm);
  font-weight: var(--font-weight-medium);
  word-break: break-word;
  color: #fff;
}

.property-detail-empty .mc1-link {
  display: inline-block;
  margin-top: 1rem;
}

.site-main {
  flex: 1;
  display: flex;
  flex-direction: column;
  background-color: var(--color-bg);
  background-image: var(--site-main-pattern-image);
  background-repeat: repeat-x;
  background-position: center top;
  background-size: auto var(--site-main-pattern-height);
}

.hero-slider {
  position: relative;
  width: 100%;
  max-width: none;
  margin-left: 0;
  margin-right: 0;
  align-self: stretch;
  aspect-ratio: 5 / 2;
  overflow: hidden;
  background-color: #000;
}

.slider-viewport {
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.slider-track {
  position: relative;
  height: 100%;
}

.slider-slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
  z-index: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.85s ease-in-out;
}

.slider-slide--active {
  z-index: 2;
  opacity: 1;
  pointer-events: auto;
}

@media (prefers-reduced-motion: reduce) {
  .slider-slide {
    transition: opacity 0.35s ease;
  }
}

/* Ken Burns: 30s zoom out (1.1 → 1), 30s zoom in (1 → 1.1), loop */
.slider-slide-media {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}

.slider-slide-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transform-origin: center center;
  animation: slider-ken-burns 60s linear infinite;
}

.slider-slide:not(.slider-slide--active) .slider-slide-media img {
  animation-play-state: paused;
}

@keyframes slider-ken-burns {
  0% {
    transform: scale(1.1);
  }
  50% {
    transform: scale(1);
  }
  100% {
    transform: scale(1.1);
  }
}

@media (prefers-reduced-motion: reduce) {
  .slider-slide-media img {
    animation: none;
    transform: none;
  }
}

.slider-slide-labels {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(1.25rem, 4vw, 3rem);
  pointer-events: none;
  text-align: center;
}

.slider-slide-label-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: clamp(0.35rem, 1vw, 0.55rem);
  max-width: min(92vw, 36rem);
  padding: clamp(1.35rem, 3vw, 2.25rem) clamp(1.5rem, 4vw, 3rem);
  background: rgba(255, 255, 255, 1);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
  color: var(--color-text);
}

.slider-slide-label-title {
  display: block;
  font-size: clamp(1.35rem, 4.2vw, 2.65rem);
  font-weight: 500;
  line-height: 1.15;
  text-transform: uppercase;
}

.slider-slide-label-subtitle {
  display: block;
  font-size: clamp(1.05rem, 2.8vw, 1.65rem);
  font-weight: var(--font-weight-extralight);
  line-height: 1.2;
  text-transform: uppercase;
  color: var(--color-text);
}

@media (min-width: 768px) {
  .hero-slider-mobile-caption {
    display: none !important;
  }
}

/* --- Home: listings + booking (under slider) -------------------------------- */

.home-listings {
  position: relative;
  overflow: hidden;
  padding: clamp(2.5rem, 5vw, 4rem) 0 clamp(3rem, 6vw, 5rem);
  /* Fixed to viewport — image stays put while content scrolls (no JS parallax). */
  background-color: #0a0a12;
  background-image:
    linear-gradient(
      to bottom,
      rgba(255, 255, 255, 0.06) 0%,
      rgba(0, 0, 0, 0.18) 45%,
      rgba(0, 0, 0, 0.35) 100%
    ),
    url("https://gwisnpggolgbyxkzisnw.supabase.co/storage/v1/object/public/101rvkapt/perlan-aurora.jpg");
  background-position: center center;
  background-size: cover;
  background-repeat: no-repeat;
  background-attachment: fixed;
}

@media (prefers-reduced-motion: reduce) {
  .home-listings {
    background-attachment: scroll;
  }
}

/* Full width + horizontal --site-gutter only (do NOT also set width: --site-width:
   that double-counts gutters and collapses the content band on wide screens). */
.home-listings__inner {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 100%;
  margin: 0 auto;
  padding: 0 var(--site-gutter);
  display: flex;
  flex-direction: column;
  gap: clamp(1.75rem, 3vw, 2.5rem);
}

.home-stay-filter {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.home-stay-filter__btn {
  appearance: none;
  margin: 0;
  padding: 0.5rem 1.1rem;
  font-family: inherit;
  font-size: var(--text-sm);
  font-weight: var(--font-weight-medium);
  letter-spacing: 0.02em;
  color: rgba(255, 255, 255, 0.92);
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: var(--radius-pill);
  cursor: pointer;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.12);
  transition:
    background 0.15s ease,
    border-color 0.15s ease,
    color 0.15s ease,
    transform 0.12s ease;
}

.home-stay-filter__btn:hover {
  background: rgba(255, 255, 255, 0.18);
  border-color: rgba(255, 255, 255, 0.32);
}

.home-stay-filter__btn:active {
  transform: scale(0.98);
}

.home-stay-filter__btn--active {
  color: #0f172a;
  background: rgba(255, 255, 255, 0.92);
  border-color: rgba(255, 255, 255, 0.55);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.15);
}

.home-stay-filter__btn:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.85);
  outline-offset: 2px;
}

/* Booking panel (hidden until the module is used again; markup retained) */
.home-booking-panel {
  display: none !important;
  border-radius: var(--radius-card);
  padding: clamp(1.25rem, 2.5vw, 1.75rem) clamp(1.25rem, 2.5vw, 1.75rem)
    clamp(1.5rem, 2.75vw, 2rem);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.85) inset,
    0 12px 28px rgba(15, 23, 42, 0.08),
    0 2px 6px rgba(15, 23, 42, 0.04);
  background: linear-gradient(to bottom, #f4f4f5 0%, #ececee 78%, #e4e4e8 100%);
  border: 1px solid rgba(0, 0, 0, 0.06);
}

.home-booking-panel__row {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: clamp(1rem, 2vw, 1.5rem);
}

.home-booking-field {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  min-width: min(100%, 11rem);
}

.home-booking-field--guests {
  min-width: min(100%, 9.5rem);
}

.home-booking-label {
  font-size: var(--text-label);
  font-weight: var(--font-weight-semibold);
  color: var(--color-text);
  letter-spacing: 0.02em;
}

.home-booking-date-btn {
  appearance: none;
  font: inherit;
  text-align: left;
  width: 100%;
  padding: 0.65rem 0.85rem;
  border-radius: var(--radius-input);
  border: 1px solid rgba(0, 0, 0, 0.12);
  background: #fff;
  color: var(--color-text);
  cursor: pointer;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.06);
  transition:
    border-color 0.15s ease,
    box-shadow 0.15s ease;
}

.home-booking-date-btn:hover {
  border-color: rgba(0, 0, 0, 0.22);
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.08);
}

.home-booking-min-stay {
  margin: 0.85rem 0 0;
  font-size: var(--text-caption);
  color: var(--color-muted);
}

.home-stepper {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.35rem 0.45rem;
  border-radius: var(--radius-pill);
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.1);
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.05);
}

.home-stepper__btn {
  width: 2rem;
  height: 2rem;
  border: none;
  border-radius: var(--radius-pill);
  background: #111;
  color: #fff;
  font-size: 1.1rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.15s ease;
}

.home-stepper__btn:hover:not(:disabled) {
  opacity: 0.88;
}

.home-stepper__btn:disabled {
  opacity: 0.28;
  cursor: not-allowed;
}

.home-stepper__value {
  min-width: 1.5rem;
  text-align: center;
  font-weight: var(--font-weight-semibold);
  font-size: var(--text-base);
}

/* Calendar popover */
.home-booking-calendar-wrap {
  margin-top: 1.25rem;
  padding: 1.1rem 1.15rem 1rem;
  border-radius: var(--radius-card);
  background: linear-gradient(160deg, #ffffff 0%, #f6f7fb 100%);
  border: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow:
    0 18px 40px rgba(15, 23, 42, 0.12),
    0 2px 8px rgba(15, 23, 42, 0.06);
}

.home-booking-calendar-wrap[hidden] {
  display: none !important;
}

.home-booking-calendar-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

.home-cal-month-label {
  margin: 0;
  font-size: var(--text-md);
  font-weight: var(--font-weight-semibold);
  flex: 1;
  text-align: center;
}

.home-cal-nav {
  width: 2.25rem;
  height: 2.25rem;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(0, 0, 0, 0.1);
  background: #fff;
  cursor: pointer;
  font-size: 1.25rem;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  transition:
    background 0.15s ease,
    box-shadow 0.15s ease;
}

.home-cal-nav:hover {
  background: #f4f4f5;
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.08);
}

.home-cal-weekdays {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 0.25rem;
  margin-bottom: 0.35rem;
  font-size: var(--text-2xs);
  font-weight: var(--font-weight-semibold);
  color: var(--color-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  text-align: center;
}

.home-booking-calendar {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.home-cal-row {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 0.25rem;
}

.home-cal-day {
  aspect-ratio: 1;
  min-height: 2.35rem;
  border: none;
  border-radius: 10px;
  font: inherit;
  font-size: var(--text-sm);
  cursor: pointer;
  background: rgba(255, 255, 255, 0.65);
  color: var(--color-text);
  position: relative;
  transition:
    background 0.15s ease,
    color 0.15s ease,
    box-shadow 0.2s ease,
    transform 0.15s ease;
}

.home-cal-day--pad {
  visibility: hidden;
  pointer-events: none;
}

.home-cal-day--past {
  opacity: 0.35;
  cursor: not-allowed;
}

.home-cal-day--today:not(.home-cal-day--past) {
  box-shadow: 0 0 0 2px rgba(17, 17, 17, 0.35);
}

/* Range “beam” */
.home-cal-day--beam {
  box-shadow:
    0 0 0 1px rgba(99, 102, 241, 0.35),
    0 0 18px rgba(129, 140, 248, 0.45),
    inset 0 0 24px rgba(165, 180, 252, 0.35);
  background: linear-gradient(
    180deg,
    rgba(199, 210, 254, 0.95) 0%,
    rgba(165, 180, 252, 0.75) 50%,
    rgba(129, 140, 248, 0.55) 100%
  );
  color: #0f172a;
  font-weight: var(--font-weight-semibold);
}

.home-cal-day--range-start,
.home-cal-day--range-end {
  z-index: 1;
  transform: scale(1.04);
  box-shadow:
    0 0 0 2px rgba(79, 70, 229, 0.55),
    0 0 26px rgba(99, 102, 241, 0.65),
    inset 0 0 20px rgba(255, 255, 255, 0.45);
}

.home-cal-day:hover:not(:disabled):not(.home-cal-day--past) {
  transform: scale(1.03);
}

.home-booking-calendar-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 0.85rem;
}

.home-booking-clear {
  font: inherit;
  font-size: var(--text-sm);
  padding: 0.45rem 0.85rem;
  border-radius: var(--radius-pill);
  border: 1px dashed rgba(0, 0, 0, 0.2);
  background: transparent;
  color: var(--color-muted);
  cursor: pointer;
}

.home-booking-clear:hover {
  border-style: solid;
  color: var(--color-text);
}

/* Property list */
.home-property-list {
  display: flex;
  flex-direction: column;
  gap: clamp(1.25rem, 2.5vw, 1.75rem);
}

.home-property-list__group {
  display: flex;
  flex-direction: column;
  gap: clamp(1.25rem, 2.5vw, 1.75rem);
}

.home-property-list__heading {
  margin: clamp(0.35rem, 1.2vw, 0.65rem) 0 0;
  font-size: clamp(1.05rem, 2.2vw, 1.32rem);
  font-weight: var(--font-weight-semibold);
  line-height: var(--leading-tight);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.96);
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.45);
}

.home-property-list-empty {
  margin: 0;
  padding: 1.5rem;
  text-align: center;
  color: rgba(255, 255, 255, 0.92);
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.45);
  font-size: var(--text-body);
}

/*
 * Listing cards — desktop-first: row layout (see max-width breakpoint for stacked).
 * No fixed viewport aspect-ratio: card height grows with copy so inner content never scrolls.
 * Typography + CTAs scale with container (cqi) so zoom / ultrawide / narrow-band layouts stay cohesive.
 */
.home-property-card {
  display: flex;
  flex-direction: row;
  align-items: stretch;
  width: 100%;
  border-radius: var(--radius-card);
  overflow: hidden;
  box-shadow: 0 10px 32px rgba(0, 0, 0, 0.18);
}

.home-property-card__text {
  /* Container for cqi so title/caption/body track the column width (half card), not 100vw. */
  container-type: inline-size;
  container-name: home-card-text;
  flex: 0 0 50%;
  min-width: 0;
  min-height: 0;
  overflow-x: hidden;
  overflow-y: visible;
  background: #ffffff;
  color: #111111;
  padding: clamp(1.08rem, 1.02rem + 0.42vw, 1.82rem) clamp(1rem, 0.94rem + 0.5vw, 1.85rem);
  border-radius: var(--radius-card) 0 0 var(--radius-card);
  display: flex;
  flex-direction: column;
  gap: clamp(0.45rem, 0.38rem + 0.38vw, 0.92rem);
}

/* Title + “bedrooms / bathrooms” (caption) */
.home-property-card__meta {
  flex: 0 0 auto;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: clamp(0.26rem, 0.21rem + 0.28vw, 0.52rem);
}

/* Description + amenity icons — never scrollbar; grows with card */
.home-property-card__body {
  flex: 0 1 auto;
  min-width: 0;
  min-height: 0;
  overflow: visible;
  display: flex;
  flex-direction: column;
  gap: clamp(0.45rem, 0.38rem + 0.42vw, 0.82rem);
}

.home-property-card__title {
  margin: 0;
  /* Fallback without container queries — light vw scaling (narrow band), avoid huge caps */
  font-size: clamp(1.05rem, 0.98rem + 0.28vw, 1.45rem);
  font-weight: var(--font-weight-semibold);
  line-height: 1.12;
  color: #111111;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.home-property-card__caption {
  margin: 0;
  font-size: clamp(0.75rem, 0.71rem + 0.22vw, 0.94rem);
  font-weight: var(--font-weight-light);
  line-height: var(--leading-snug);
  color: #000000;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  overflow-wrap: anywhere;
}

.home-property-card__subtitle {
  margin: 0;
  font-size: clamp(0.84rem, 0.8rem + 0.22vw, 1rem);
  color: #000000;
  line-height: var(--leading-normal);
  overflow-wrap: break-word;
}

.home-property-card__features {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(0.42rem, 0.38rem + 0.38vw, 0.65rem);
  align-items: center;
  margin-top: 0;
}

.home-property-card__feature-icon,
.home-property-card__feature-icon--placeholder {
  box-sizing: border-box;
  width: clamp(1.42rem, 1.35rem + 0.35vw, 1.9rem);
  height: clamp(1.42rem, 1.35rem + 0.35vw, 1.9rem);
}

.home-property-card__feature-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.home-property-card__feature-icon img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
}

.home-property-card__feature-icon--placeholder {
  border-radius: 6px;
  background: repeating-linear-gradient(
    -45deg,
    #e8e8e8,
    #e8e8e8 4px,
    #f4f4f4 4px,
    #f4f4f4 8px
  );
}

.home-property-card__actions {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(0.55rem, 0.48rem + 0.35vw, 0.85rem);
  margin-top: auto;
  padding-top: 0.2rem;
  flex: 0 0 auto;
}

.home-property-card__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  max-width: 100%;
  padding: 0.45rem 1.05rem;
  font: inherit;
  font-size: clamp(0.78rem, 0.74rem + 0.18vw, 0.9rem);
  font-weight: var(--font-weight-semibold);
  line-height: 1.25;
  border-radius: var(--radius-pill);
  text-decoration: none;
  cursor: pointer;
  border: 1px solid transparent;
  transition:
    opacity 0.15s ease,
    background 0.15s ease;
}

@supports (font-size: 1cqi) {
  @container home-card-text (min-width: 0) {
    .home-property-card__title {
      font-size: clamp(1.0625rem, 0.55rem + 3.15cqi, 1.6rem);
    }

    .home-property-card__caption {
      font-size: clamp(0.75rem, 0.45rem + 1.55cqi, 0.95rem);
    }

    .home-property-card__subtitle {
      font-size: clamp(0.84rem, 0.54rem + 1.42cqi, 1.035rem);
    }

    .home-property-card__btn {
      font-size: clamp(0.78rem, 0.55rem + 1.62cqi, 0.9rem);
      padding-block: clamp(0.38rem, 0.28rem + 0.72cqi, 0.52rem);
      padding-inline: clamp(0.92rem, 0.62rem + 2.05cqi, 1.28rem);
    }

    .home-property-card__features {
      gap: clamp(0.38rem, 0.32rem + 1.08cqi, 0.62rem);
    }

    .home-property-card__feature-icon,
    .home-property-card__feature-icon--placeholder {
      width: clamp(1.48rem, 1.06rem + 3.85cqi, 2.05rem);
      height: clamp(1.48rem, 1.06rem + 3.85cqi, 2.05rem);
    }
  }
}

.home-property-card__btn--primary {
  background: #111111;
  color: #ffffff;
}

.home-property-card__btn--primary:hover {
  opacity: 0.9;
}

.home-property-card__btn--secondary {
  background: #ffffff;
  color: #111111;
  border-color: rgba(0, 0, 0, 0.18);
}

.home-property-card__btn--secondary:hover {
  background: #f4f4f5;
}

.home-property-card__media {
  flex: 0 0 50%;
  min-width: 0;
  min-height: 0;
  position: relative;
  border-radius: 0 var(--radius-card) var(--radius-card) 0;
  overflow: hidden;
  background: #ddd;
}

.home-property-card__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.home-property-card__media--placeholder {
  background: linear-gradient(135deg, #e8e8ea 0%, #d4d4d8 100%);
}

/* Desktop PC: equal column height with cover image — no vw-based card height cage */
@media (min-width: 901px) {
  .home-property-card__media {
    align-self: stretch;
    min-height: clamp(176px, 12.5rem, 300px);
  }

  .home-property-card__img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
  }
}

@media (max-width: 900px) {
  .home-property-card {
    flex-direction: column-reverse;
    aspect-ratio: auto;
  }

  .home-property-card__img {
    position: relative;
    inset: auto;
  }

  .home-property-card__media {
    min-height: unset;
  }

  .home-property-card__text {
    flex: none;
    width: 100%;
    /* Height follows copy + CTAs — fixed aspect here clipped text over buttons on phones */
    border-radius: 0 0 var(--radius-card) var(--radius-card);
  }

  .home-property-card__media {
    flex: none;
    width: 100%;
    aspect-ratio: 4 / 3;
    border-radius: var(--radius-card) var(--radius-card) 0 0;
  }
}

@media (max-width: 640px) {
  .home-booking-panel__row {
    flex-direction: column;
    align-items: stretch;
  }

  .home-booking-field,
  .home-booking-field--guests {
    min-width: 100%;
  }
}

/* Hidden until this block is used again on the home page */
.main-content-1 {
  display: none;
  padding: 5rem var(--site-gutter) 4rem;
}

.mc1-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1.2fr);
  gap: 3rem;
  align-items: center;
}

.mc1-text {
  max-width: 640px;
}

.mc1-kicker {
  font-size: var(--text-2xs);
  text-transform: uppercase;
  letter-spacing: 0.24em;
  color: var(--color-muted);
  margin: 0 0 1rem;
}

.mc1-heading {
  font-weight: var(--font-weight-light);
  font-size: var(--text-hero-heading);
  line-height: 1.2;
  margin: 0 0 1.5rem;
}

.mc1-read-more {
  font-size: var(--text-sm);
  text-decoration: none;
  color: var(--color-link);
  border-bottom: 1px solid var(--color-border);
  padding-bottom: 0.2rem;
}

.mc1-image {
  border-radius: var(--radius-xs);
  overflow: hidden;
  background: #f3f3f3;
}

.mc1-image img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  filter: grayscale(1);
}

.mc1-links-row {
  display: flex;
  gap: 2.5rem;
  padding-top: 3rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--color-border);
  font-size: var(--text-sm);
}

.mc1-link {
  text-decoration: none;
  color: var(--color-link);
}

.mc1-columns-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 3rem;
  padding-top: 2.5rem;
}

.mc1-column-title {
  font-size: var(--text-base);
  font-weight: var(--font-weight-semibold);
  margin: 0 0 0.75rem;
}

.property-rich-street {
  margin: -0.25rem 0 1rem;
  font-size: var(--text-body-secondary);
  color: var(--color-muted);
  line-height: var(--leading-normal);
}

.mc1-column-body {
  margin: 0;
  color: var(--color-muted);
  font-size: var(--text-body-secondary);
  line-height: var(--leading-loose);
}

.site-footer {
  padding: 1.5rem var(--site-gutter) 2.5rem;
  font-size: var(--text-xs);
  color: var(--color-muted);
}

/* Public pages: add .site-footer--dark on the footer element */
.site-footer.site-footer--dark {
  background: #0a0a0a;
  color: #f5f5f5;
}

.site-footer-inner {
  max-width: var(--site-width);
  margin: 0 auto;
  width: 100%;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem 1.5rem;
}

.site-footer-contact-line {
  margin: 0;
  flex: 1 1 12rem;
  line-height: var(--leading-normal);
}

.site-footer-utils {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  flex-shrink: 0;
}

.site-footer.site-footer--dark .site-footer-link {
  color: rgba(245, 245, 245, 0.82);
  font-size: var(--text-sm);
  text-decoration: none;
}

.site-footer.site-footer--dark .site-footer-link:hover {
  color: #ffffff;
  text-decoration: underline;
}

.site-footer-logout-btn {
  background: none;
  border: none;
  font: inherit;
  cursor: pointer;
  padding: 0;
}

.site-footer.site-footer--dark a.site-footer-link {
  color: rgba(245, 245, 245, 0.82);
}

.leaflet-attribution-flag {
  display: none !important;
}


/* Area map — shared block above site footer (index, property, map pages) */
.site-footer-map-section {
  padding: 1.25rem var(--site-gutter) 0;
  border-top: 1px solid #2a2a2a;
  background: #000;
}

.site-footer-map-inner {
  max-width: var(--site-width);
  margin: 0 auto;
  width: 100%;
}

.site-footer-map-kicker {
  margin: 0 0 0.65rem;
  font-size: var(--text-xl);
  font-weight: var(--font-weight-regular);
  text-transform: uppercase;
  color: rgb(245, 245, 245);
}

.site-footer-map-viewport {
  width: 100%;
  height: min(55vh, 520px);
  min-height: 280px;
  border-radius: var(--radius-map);
  overflow: hidden;
  border: 1px solid #333;
  background: #111;
  z-index: 0;
  margin-bottom: 0;
}

/* Leaflet UI on dark map strip */
.site-footer-map-section .leaflet-bar a {
  background-color: #2a2a2a;
  color: #f5f5f5;
  border-color: #444;
}

.site-footer-map-section .leaflet-bar a:hover {
  background-color: #3a3a3a;
}

.site-footer-map-section .leaflet-control-attribution {
  background: rgba(20, 20, 20, 0.92) !important;
  color: #c8c8c8;
  font-size: 0.68rem;
}

.site-footer-map-section .leaflet-control-attribution a {
  color: #e0e0e0;
}

/*
 * Leaflet sets .leaflet-container { height: 100% }. Parent has no fixed height, so the map
 * collapses to 0px. Force dimensions after Leaflet adds its classes.
 */
.site-footer-map-viewport.leaflet-container {
  height: min(55vh, 520px) !important;
  min-height: 280px !important;
  width: 100% !important;
}

/* Shared rich text styles for property HTML content */
.rich-content {
  color: var(--color-text);
  line-height: var(--leading-relaxed);
  font-size: var(--text-body);
}

.rich-content > *:first-child {
  margin-top: 0;
}

.rich-content > *:last-child {
  margin-bottom: 0;
}

.rich-content p {
  margin: 0 0 0.8rem;
}

.rich-content ul,
.rich-content ol {
  margin: 0 0 0.9rem;
  padding-left: 1.25rem;
}

.rich-content li {
  margin: 0.22rem 0;
}

.rich-content h3,
.rich-content h4 {
  margin: 1rem 0 0.55rem;
  line-height: var(--leading-snug);
}

.rich-content strong {
  font-weight: var(--font-weight-bold);
}

.rich-content em {
  font-style: italic;
}

.rich-content a {
  color: var(--color-link);
  text-decoration: underline;
}

/* --- Map page (Leaflet + map-pins.json) --- */
.map-page-main {
  padding: 0 var(--site-gutter) 2rem;
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.map-page-main--compact {
  padding-bottom: 1rem;
}

.map-page-wrap {
  max-width: var(--site-width);
  margin: 0 auto;
  width: 100%;
}

.map-page-title {
  font-size: var(--text-property-title);
  font-weight: var(--font-weight-bold);
  margin: 1.25rem 0 0.35rem;
}

.map-page-lead {
  font-size: var(--text-body-secondary);
  color: var(--color-muted);
  margin: 0 0 1rem;
  max-width: 52ch;
  line-height: var(--leading-normal);
}

.map-page-code {
  font-size: 0.85em;
}

.map-viewport {
  width: 100%;
  height: min(70vh, 560px);
  min-height: 320px;
  border-radius: var(--radius-map);
  overflow: hidden;
  border: 1px solid var(--color-border);
  background: #e8eef2;
  z-index: 0;
}

/*
 * Carto Positron + grayscale — tiles only (markers/popups stay in color).
 * Sub-pixel gaps between tiles used to show the dark #111 behind the viewport; a light
 * background-color on the tile pane makes those hairlines blend. Do not override tile img
 * width/height — Leaflet sets explicit pixels; calc(100% + …) breaks sizing and caused a
 * “black map + white dot grid” bug.
 */
.leaflet-map--minimal-bw .leaflet-tile-pane {
  background-color: #e4e9ee;
  filter: grayscale(100%) contrast(1.08) brightness(0.97);
}

.map-pin-marker {
  background: transparent !important;
  border: none !important;
}

/* Footer area map: pin + name (sizes set inline from pinIconSize) */
.map-pin-marker--labeled .map-pin-marker__row {
  display: flex;
  flex-direction: row;
  align-items: center;
}

.map-pin-marker__pin {
  flex-shrink: 0;
  line-height: 0;
}

/*
 * drop-shadow (not box-shadow) follows the image alpha — pin-shaped SVGs/PNGs get a shaped shadow.
 * Applied only on the <img>, not the row, to reduce transform stacking issues with Leaflet.
 */
.map-pin-marker__pin img {
  object-fit: contain;
  display: block;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.38)) drop-shadow(0 1px 2px rgba(0, 0, 0, 0.22));
}

.map-pin-marker__name {
  flex: 0 1 auto;
  /* font-size & max-width set inline — scales with pinIconSize */
  font-weight: var(--font-weight-semibold);
  line-height: 1.2;
  letter-spacing: 0.01em;
  color: var(--color-text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  /* stay readable on light + dark map tiles */
  text-shadow:
    0 0 1px rgba(255, 255, 255, 0.95),
    0 0 6px rgba(255, 255, 255, 0.85),
    0 1px 2px rgba(0, 0, 0, 0.35);
}

/* Legacy: single pin without label row (if ever used) */
.map-pin-marker__inner {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.map-pin-marker__inner img {
  width: 40px;
  height: 40px;
  object-fit: contain;
  display: block;
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.35));
}

.map-pin-popup {
  padding: 4px 2px;
  min-width: 200px;
  max-width: 280px;
}

.map-pin-popup__logo-wrap {
  margin-bottom: 10px;
  text-align: center;
}

.map-pin-popup__logo {
  max-width: 100%;
  max-height: 80px;
  width: auto;
  height: auto;
  object-fit: contain;
  display: inline-block;
  vertical-align: middle;
}

.map-pin-popup__name {
  font-weight: var(--font-weight-bold);
  font-size: var(--text-base);
  margin-bottom: 8px;
  line-height: var(--leading-snug);
  color: var(--color-text);
}

.map-pin-popup__desc {
  font-size: var(--text-sm);
  line-height: var(--leading-normal);
  color: rgba(17, 17, 17, 0.85);
}

@media (max-width: 900px) {
  .site-header {
    padding-inline: var(--site-gutter);
  }

  .property-detail-columns {
    grid-template-columns: minmax(0, 1fr);
  }

  .main-content-1 {
    padding-inline: var(--site-gutter);
  }

  .mc1-inner {
    grid-template-columns: minmax(0, 1fr);
  }

  .mc1-links-row {
    flex-direction: column;
  }

  .mc1-columns-row {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 767px) {
  #mainPageContent,
  #mapPageContent,
  #propertyPageContent {
    padding-bottom: calc(var(--site-mobile-cta-h) + max(0.85rem, env(safe-area-inset-bottom)));
  }

  /* Logo-only sticky top bar — nav is fixed bottom */
  .site-header {
    justify-content: center;
    flex-wrap: nowrap;
    height: var(--header-height);
    padding-block: 0;
  }

  .site-header-nav {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 40;
    display: flex;
    justify-content: center;
    align-items: stretch;
    padding: 0.5rem var(--site-gutter) max(0.65rem, env(safe-area-inset-bottom));
    margin: 0;
    box-sizing: border-box;
    min-height: var(--site-mobile-cta-h);
    background-color: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-top: 1px solid var(--color-border);
    box-shadow: 0 -6px 28px rgba(15, 23, 42, 0.08);
  }

  .nav-contact-host {
    flex: 1;
    width: min(100%, 28rem);
    max-width: 28rem;
    margin: 0 auto;
    min-height: 2.75rem;
    align-self: center;
  }

  body.contact-host-modal-open .site-header-nav {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition:
      opacity 0.18s ease,
      visibility 0.18s ease;
  }

  /* Home hero — taller crop on phones; title + subtitle read in strip below (overlay hidden) */
  .hero-slider {
    aspect-ratio: 4 / 3;
  }

  .slider-slide-labels {
    display: none !important;
  }

  .hero-slider-mobile-caption {
    width: 100%;
    align-self: stretch;
    padding: 0 var(--site-gutter);
    margin: 0;
    margin-top: 0;
    background: linear-gradient(180deg, #fafbfb 0%, #ffffff 100%);
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    box-sizing: border-box;
  }

  .hero-slider-mobile-caption[hidden] {
    display: none !important;
    margin: 0;
    padding: 0;
    border: none;
  }

  .hero-slider-mobile-caption__inner {
    max-width: var(--site-width);
    margin: 0 auto;
    padding: 1rem 0 1.2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0.45rem;
  }

  .hero-slider-mobile-caption__title {
    margin: 0;
    max-width: 36rem;
    font-size: clamp(1.2rem, 1.05rem + 1.1vw, 1.65rem);
    font-weight: 500;
    line-height: 1.15;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--color-text);
  }

  .hero-slider-mobile-caption__title[hidden],
  .hero-slider-mobile-caption__subtitle[hidden] {
    display: none !important;
  }

  .hero-slider-mobile-caption__subtitle {
    margin: 0;
    max-width: 36rem;
    font-size: clamp(0.95rem, 0.88rem + 0.45vw, 1.15rem);
    font-weight: var(--font-weight-extralight);
    line-height: var(--leading-relaxed);
    letter-spacing: 0.045em;
    text-transform: uppercase;
    color: var(--color-text);
  }

  /* Listing card — center property name + bedrooms line on mobile */
  .home-property-card__meta {
    align-items: center;
    text-align: center;
  }

  .home-property-card__title,
  .home-property-card__caption,
  .home-property-card__subtitle {
    text-align: center;
  }

  .home-listings {
    background-attachment: scroll;
  }

  .home-stepper__btn {
    width: 2.75rem;
    height: 2.75rem;
    font-size: 1.2rem;
  }

  .property-gallery-thumbs {
    flex-wrap: nowrap;
    overflow-x: auto;
    overflow-y: visible;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    padding-bottom: 0.4rem;
  }

  .property-gallery-thumb {
    flex: 0 0 min(42vw, 9.5rem);
    min-width: min(42vw, 9.5rem);
  }

  .property-detail-col .rich-content {
    overflow-x: auto;
    overflow-y: visible;
    -webkit-overflow-scrolling: touch;
  }

  .site-footer-map-viewport.leaflet-container {
    height: min(48vh, 420px) !important;
    min-height: 220px !important;
  }
}

@media (max-width: 640px) {
  .site-footer-inner {
    flex-direction: column;
    align-items: flex-start;
  }
}

