/* ============================================================
   HAVENA PRO — PROPERTY DETAILS STYLES
   Shared by: property-details.html · property-details-luxury.html
              · property-details-modern.html
   ============================================================ */

/* ------------------------------------------------------------
   STICKY SECTION NAVIGATION (desktop, full-bleed strip)
------------------------------------------------------------ */
:root {
  --havena-pro-section-nav-h: 48px;
  --havena-pro-section-nav-pad: 12px;
}

.havena-pro-section-nav__sentinel {
  display: block;
  width: 100%;
  height: 1px;
  margin: 0;
  padding: 0;
  pointer-events: none;
}

.havena-pro-section-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  max-width: 100%;
  z-index: 120050;
  height: var(--havena-pro-section-nav-h);
  margin: 0;
  padding: 0;
  border-radius: 0;
  background: rgba(255, 255, 255, 0.98);
  border-bottom: 1px solid var(--havena-pro-line, #e7ebf2);
  box-shadow: 0 1px 0 rgba(15, 23, 42, 0.04);
  transform: translateY(-110%);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition:
    transform 0.28s var(--havena-pro-ease, ease),
    opacity 0.28s var(--havena-pro-ease, ease),
    visibility 0.28s;
}

.havena-pro-section-nav.is-ready.is-visible {
  transform: translateY(0);
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.admin-bar .havena-pro-section-nav {
  top: 32px;
}

.havena-pro-section-nav__inner {
  height: 100%;
  width: 100%;
  max-width: none;
  margin: 0;
  padding-inline: var(--havena-pro-gutter, 1.25rem);
  box-sizing: border-box;
  display: flex;
  align-items: stretch;
}

.havena-pro-section-nav__bar {
  width: 100%;
  min-width: 0;
  display: flex;
  align-items: stretch;
}

.havena-pro-section-nav__list {
  display: flex;
  align-items: stretch;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
  width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  overscroll-behavior-x: contain;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.havena-pro-section-nav__list::-webkit-scrollbar {
  display: none;
  width: 0;
  height: 0;
}

.havena-pro-section-nav__item {
  flex: 0 0 auto;
  display: flex;
  align-items: stretch;
}

.havena-pro-section-nav__link {
  display: inline-flex;
  align-items: center;
  height: 100%;
  padding: 0 1rem;
  border: 0;
  border-bottom: 2px solid transparent;
  border-radius: 0;
  color: var(--havena-pro-slate, #64748b);
  font-size: var(--havena-pro-fs-sm, 0.875rem);
  font-weight: var(--havena-pro-type-weight-button, 600);
  line-height: 1;
  white-space: nowrap;
  text-decoration: none;
  background: transparent;
  box-shadow: none;
  transition: color var(--havena-pro-speed-fast, 0.18s), border-color var(--havena-pro-speed-fast, 0.18s);
}

.havena-pro-section-nav__link:hover {
  color: var(--havena-pro-ink, #0f172a);
  background: transparent;
}

.havena-pro-section-nav__link:focus-visible {
  color: var(--havena-pro-ink, #0f172a);
  background: transparent;
  outline: var(--havena-pro-focus-width, 2px) solid var(--havena-pro-focus-color, var(--havena-pro-color-primary, #2E6BFF));
  outline-offset: var(--havena-pro-focus-offset, 3px);
}

.havena-pro-section-nav__link.is-active {
  color: var(--havena-pro-blue, #2563eb);
  border-bottom-color: var(--havena-pro-blue, #2563eb);
  background: transparent;
}

body.havena-pro-section-nav-on .havena-pro-header {
  transform: translateY(-110%);
  pointer-events: none;
  transition: transform 0.28s var(--havena-pro-ease, ease);
}

/* Offset for sticky nav; admin-bar uses its own sticky offset. */
[data-havena-pro-builder-section][id],
[data-havena-pro-section][id] {
  scroll-margin-top: calc(var(--havena-pro-section-nav-h) + var(--havena-pro-section-nav-pad));
}

.admin-bar [data-havena-pro-builder-section][id],
.admin-bar [data-havena-pro-section][id] {
  scroll-margin-top: calc(var(--havena-pro-section-nav-h) + var(--havena-pro-section-nav-pad) + 32px);
}

@media (max-width: 1024px) {
  .havena-pro-section-nav,
  .havena-pro-section-nav.is-ready.is-visible {
    display: none !important;
    visibility: hidden !important;
    pointer-events: none !important;
  }

  body.havena-pro-section-nav-on .havena-pro-header {
    transform: none;
    pointer-events: auto;
  }
}

@media (prefers-reduced-motion: reduce) {
  .havena-pro-section-nav,
  body.havena-pro-section-nav-on .havena-pro-header {
    transition: none;
  }

  .havena-pro-section-nav__list {
    scroll-behavior: auto;
  }
}

@media (max-width: 782px) {
  .admin-bar .havena-pro-section-nav {
    top: 46px;
  }

  .admin-bar [data-havena-pro-builder-section][id],
  .admin-bar [data-havena-pro-section][id] {
    scroll-margin-top: calc(var(--havena-pro-section-nav-h) + var(--havena-pro-section-nav-pad) + 46px);
  }
}

/* ------------------------------------------------------------
   SUMMARY HERO (dark band with title / price / actions)
------------------------------------------------------------ */
.havena-pro-dhead {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
}

.havena-pro-dhead__badges {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.havena-pro-dhead__addr {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--havena-pro-color-dark-muted);
  font-size: 1rem;
}


.havena-pro-dhead__addr svg {
  width: 17px;
  height: 17px;
  color: var(--havena-pro-gold);
}

.havena-pro-dhead__meta {
  display: flex;
  align-items: center;
  gap: 1.4rem;
  margin-top: 1.1rem;
  font-size: var(--havena-pro-fs-sm);
  color: rgba(255, 255, 255, 0.6);
  flex-wrap: wrap;
}

.havena-pro-dhead__meta span {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}

.havena-pro-dhead__meta svg {
  width: 16px;
  height: 16px;
  color: var(--havena-pro-gold);
}

.havena-pro-dhead__price {
  text-align: right;
}

.havena-pro-dhead__price del {
  display: block;
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.5);
}

.havena-pro-dhead__price strong {
  font-family: var(--havena-pro-font-family-heading);
  font-size: clamp(1.9rem, 3.2vw, 2.6rem);
  font-weight: var(--havena-pro-type-weight-body);
  color: var(--havena-pro-gold);
  line-height: 1.1;
  display: block;
}

.havena-pro-dhead__price small {
  color: var(--havena-pro-color-dark-muted-soft);
  font-size: var(--havena-pro-fs-sm);
}

.havena-pro-dhead__actions {
  display: flex;
  gap: 0.6rem;
  margin-top: 1rem;
  justify-content: flex-end;
}

.havena-pro-dhead__actions .havena-pro-icon-btn {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.22);
  color: var(--havena-pro-color-dark-text);
}

.havena-pro-dhead__actions .havena-pro-icon-btn:hover {
  background: var(--havena-pro-color-dark-text);
  border-color: var(--havena-pro-color-dark-text);
  color: var(--havena-pro-navy-900);
}

.havena-pro-dhead__actions .havena-pro-icon-btn.is-saved {
  background: var(--havena-pro-danger);
  border-color: var(--havena-pro-danger);
}

.havena-pro-dhead__actions .havena-pro-share {
  position: relative;
  display: inline-flex;
  z-index: 5;
}

.havena-pro-share__menu {
  position: absolute;
  top: calc(100% + 0.45rem);
  right: 0;
  min-width: 12rem;
  padding: 0.4rem;
  margin: 0;
  border: 1px solid var(--havena-pro-color-border);
  border-radius: 14px;
  background: var(--havena-pro-color-background);
  box-shadow: 0 16px 40px rgba(10, 22, 40, 0.18);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(8px);
  transition: opacity 0.2s var(--havena-pro-ease),
              transform 0.2s var(--havena-pro-ease),
              visibility 0.2s var(--havena-pro-ease);
  z-index: 20;
  max-width: min(12.5rem, calc(100vw - 2rem));
}

.havena-pro-share__menu::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: -0.7rem;
  height: 0.7rem;
}

.havena-pro-share.is-open .havena-pro-share__menu,
.havena-pro-share:focus-within .havena-pro-share__menu {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
}

@media (hover: hover) and (pointer: fine) {
  .havena-pro-share:hover .havena-pro-share__menu {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
  }
}

.havena-pro-share__item {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  width: 100%;
  padding: 0.55rem 0.7rem;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--havena-pro-color-text);
  font-family: var(--havena-pro-font-family-body);
  font-size: var(--havena-pro-fs-sm);
  font-weight: 500;
  line-height: 1.2;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.16s var(--havena-pro-ease), color 0.16s var(--havena-pro-ease);
}

.havena-pro-share__item svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.havena-pro-share__item:hover,
.havena-pro-share__item:focus-visible {
  background: var(--havena-pro-color-surface);
  color: var(--havena-pro-navy-900);
  outline: none;
}

.havena-pro-share__item:focus-visible {
  box-shadow: 0 0 0 2px rgba(46, 107, 255, 0.35);
}

.havena-pro-share__item.is-copied {
  background: rgba(18, 161, 80, 0.12);
  color: var(--havena-pro-color-success);
}

/*
 * Clip cause: .havena-pro-page-hero { overflow: hidden; isolation: isolate }
 * in archive.css. Gallery then sits above that stacking context via
 * .havena-gallery { z-index: 2; margin-top: negative }. While the share
 * menu is open, allow overflow and lift only the compact details hero
 * above the mosaic (z-index 3 > 2, still below header 100 / lightbox).
 */
.havena-pro-page-hero--compact:has(.havena-pro-share.is-open),
.havena-pro-page-hero--compact:has(.havena-pro-share:hover),
.havena-pro-page-hero--compact:has(.havena-pro-share:focus-within) {
  overflow: visible;
  z-index: 3;
}

@media (max-width: 780px) {
  .havena-pro-dhead__price,
  .havena-pro-dhead__actions {
    text-align: left;
    justify-content: flex-start;
  }
}

/*
 * Share menu orientation:
 * - Default / tablet (≥721 with side-by-side dhead): right:0 opens inward.
 * - After dhead columns wrap (≤720): share sits on the left; left:0 opens
 *   rightward so the menu stays in-viewport (avoids left spill).
 * Prior left:0 at ≤780 incorrectly flipped while share was still right-edge
 * at 768 and spilled past the viewport.
 */
@media (max-width: 720px) {
  .havena-pro-dhead__actions .havena-pro-share__menu {
    right: auto;
    left: 0;
  }
}

/* ------------------------------------------------------------
   GALLERY MOSAIC — canonical .havena-gallery* (property-details.html)
------------------------------------------------------------ */
.havena-gallery {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  grid-template-rows: repeat(2, 250px);
  gap: 0.85rem;
  margin-top: calc(clamp(2rem, 4vw, 3.25rem) * -0.5);
  position: relative;
  z-index: 2;
}

.havena-gallery__item {
  position: relative;
  border: 0;
  background: transparent;
  display: block;
  width: 100%;
  height: 100%;
  border-radius: var(--havena-pro-radius);
  overflow: hidden;
  cursor: zoom-in;
  padding: 0;
  isolation: isolate;
}

.havena-gallery__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s var(--havena-pro-ease);
}

.havena-gallery__item:hover img {
  transform: scale(1.05);
}

.havena-gallery__item--main {
  grid-row: span 2;
}

.havena-gallery__more {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  background: var(--havena-pro-overlay-dark);
  color: var(--havena-pro-color-dark-text);
  font-weight: var(--havena-pro-type-weight-label);
  font-size: 1.05rem;
  backdrop-filter: blur(2px);
  transition: background var(--havena-pro-speed-fast);
}

.havena-gallery__item:hover .havena-gallery__more {
  background: rgba(5, 11, 22, 0.75);
}

.havena-gallery__more svg {
  width: 24px;
  height: 24px;
}

.havena-gallery__tag {
  position: absolute;
  bottom: 1rem;
  left: 1rem;
  z-index: 1;
}

.havena-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.38rem 0.85rem;
  border-radius: var(--havena-pro-radius-pill);
  font-size: var(--havena-pro-fs-xs);
  font-weight: var(--havena-pro-type-weight-label);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  line-height: 1.2;
}

.havena-badge svg {
  width: 16px;
  height: 16px;
}

.havena-badge--glass {
  background: rgba(10, 22, 40, 0.55);
  color: var(--havena-pro-color-dark-text);
  backdrop-filter: blur(8px);
}

@media (max-width: 900px) {
  .havena-gallery {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 240px 150px;
  }
  .havena-gallery__item--main {
    grid-column: span 2;
    grid-row: span 1;
  }
  .havena-gallery__item:nth-child(4),
  .havena-gallery__item:nth-child(5) {
    display: none;
  }
}

/* ------------------------------------------------------------
   DETAILS LAYOUT
------------------------------------------------------------ */
.havena-pro-details {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 384px;
  gap: clamp(1.75rem, 3vw, 2.5rem);
  align-items: start;
  margin-top: clamp(2rem, 4vw, 3rem);
}

@media (max-width: 1120px) {
  .havena-pro-details {
    /* minmax(0,1fr): sidebar cards have wide intrinsic content; a bare
       1fr track would grow to it and overflow small viewports. */
    grid-template-columns: minmax(0, 1fr);
  }
}

/* Content panel */
.havena-pro-panel {
  background: var(--havena-pro-card-background);
  border: 1px solid var(--havena-pro-line);
  border-radius: var(--havena-pro-radius);
  padding: clamp(1.5rem, 3vw, 2.1rem);
}

.havena-pro-panel + .havena-pro-panel {
  margin-top: 1.75rem;
}

.havena-pro-video-modal + .havena-pro-panel {
  margin-top: 1.75rem;
}

.havena-pro-panel__title {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  font-size: 1.22rem;
  font-weight: var(--havena-pro-type-weight-heading);
  letter-spacing: 0;
  margin-bottom: 1.4rem;
}
.havena-pro-panel
.havena-pro-dhead__addr {
  color: var(--havena-pro-color-text);    margin-bottom: 0.5rem;

}
.havena-pro-panel__title svg {
  width: 22px;
  height: 22px;
  color: var(--havena-pro-gold-deep);
  flex: none;
}

.havena-pro-panel__title i {
  font-size: 1.05em;
  color: var(--havena-pro-gold-deep);
  flex: none;
  width: 1.15em;
  text-align: center;
}

/* Core section.php body — Builder + default sections (generic, no section-ID rules) */
.havena-pro-panel-single__section-fields {
  min-width: 0;
}

.havena-pro-panel-single__section-fields > *:first-child {
  margin-top: 0;
}

.havena-pro-panel-single__section-fields > *:last-child {
  margin-bottom: 0;
}

/*
 * Section Columns (gated): --havena-pro-section-columns is set inline only when
 * property.section_columns + presentation_ready both pass and the section is
 * column-capable. Absent attribute = unchanged Core/Havena layout (no grid
 * override). Effective missing default = 2.
 */
.havena-pro-panel-single__section-fields[data-havena-pro-section-columns] {
  display: grid;
  grid-template-columns: repeat(var(--havena-pro-section-columns, 2), minmax(0, 1fr));
  column-gap: 2.5rem;
  row-gap: 0;
  align-items: start;
}

/* Per-field spec rows participate in the section grid; visual groups stay full-width. */
.havena-pro-panel-single__section-fields[data-havena-pro-section-columns] > .havena-pro-spec-table--item {
  display: contents;
}

/*
 * Full-span non-scalar children (group cards, Pro modules, etc.).
 * Compact Core `.hvnly-field` scalars must participate in the section column
 * grid — exclude them from this catch-all. Intentionally wide Core fields
 * keep full span via the modifiers below.
 */
.havena-pro-panel-single__section-fields[data-havena-pro-section-columns] > :not(.havena-pro-spec-table--item):not(.hvnly-field) {
  grid-column: 1 / -1;
}

.havena-pro-panel-single__section-fields[data-havena-pro-section-columns] > .hvnly-field.hvnly-field--wide,
.havena-pro-panel-single__section-fields[data-havena-pro-section-columns] > .hvnly-field.hvnly-field--textarea {
  grid-column: 1 / -1;
}

@media (max-width: 980px) {
  .havena-pro-panel-single__section-fields[data-havena-pro-section-columns]:not([data-havena-pro-section-columns="1"]) {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/*
 * Mobile single-column must match/exceed the ≤980px rule specificity
 * (`:not([data…="1"])`), otherwise 2×~130px tracks remain at 390px.
 */
@media (max-width: 680px) {
  .havena-pro-panel-single__section-fields[data-havena-pro-section-columns],
  .havena-pro-panel-single__section-fields[data-havena-pro-section-columns]:not([data-havena-pro-section-columns="1"]) {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* Quick facts */
.havena-pro-facts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.9rem;
}

.havena-pro-fact {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  padding: 1rem 1.1rem;
  background: var(--havena-pro-bg-soft);
  border-radius: var(--havena-pro-radius-sm);
}

.havena-pro-fact svg {
  width: 26px;
  height: 26px;
  color: var(--havena-pro-blue);
  flex: none;
}

.havena-pro-fact strong {
  display: block;
  font-size: 1.02rem;
  line-height: 1.3;
}

.havena-pro-fact small {
  color: var(--havena-pro-slate);
  font-size: var(--havena-pro-fs-xs);
}

@media (max-width: 680px) {
  .havena-pro-facts {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Description prose */
.havena-pro-prose p {
  color: var(--havena-pro-slate);
  margin-bottom: 1.1rem;
  line-height: 1.75;
}

.havena-pro-prose p:last-child {
  margin-bottom: 0;
}

.havena-pro-prose--clamp {
  max-height: 190px;
  overflow: hidden;
  position: relative;
  transition: max-height 0.5s var(--havena-pro-ease);
}

.havena-pro-prose--clamp::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 70px;
  background: linear-gradient(to bottom, transparent, var(--havena-pro-color-background));
  transition: opacity var(--havena-pro-speed);
}

.havena-pro-prose--clamp.is-open {
  max-height: 1200px;
}

.havena-pro-prose--clamp.is-open::after {
  opacity: 0;
}

.havena-pro-prose__toggle {
  margin-top: 1rem;
}

/*
 * Detail spec-table presentation contract moved to
 * assets/css/single-property-core-fields.css (Single Property only).
 * Section-columns grid mechanics above remain here.
 */

/* Amenities checklist (legacy parallel template-parts) */
.havena-pro-amenities {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.85rem 1.5rem;
}

.havena-pro-amenities li {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-size: var(--havena-pro-fs-sm);
  color: var(--havena-pro-ink);
}

.havena-pro-amenities li svg {
  width: 19px;
  height: 19px;
  flex: none;
  color: var(--havena-pro-success);
  background: rgba(18, 161, 80, 0.1);
  border-radius: 50%;
  padding: 3px;
}

@media (max-width: 780px) {
  .havena-pro-amenities {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ------------------------------------------------------------
   DOCUMENTS (Builder group — Core property_docs override)
------------------------------------------------------------ */
.havena-pro-documents {
  width: 100%;
  min-width: 0;
}

.havena-pro-documents__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.85rem 1rem;
}

.havena-pro-document {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  min-width: 0;
  padding: 0.95rem 1.05rem;
  border: 1px solid var(--havena-pro-line);
  border-radius: var(--havena-pro-radius-sm);
  background: var(--havena-pro-card-background, #fff);
  color: inherit;
  text-decoration: none;
  transition:
    border-color var(--havena-pro-speed-fast, 0.16s ease),
    background var(--havena-pro-speed-fast, 0.16s ease),
    box-shadow var(--havena-pro-speed-fast, 0.16s ease);
}

.havena-pro-document:hover,
.havena-pro-document:focus-visible {
  border-color: var(--havena-pro-blue, #3b82f6);
  background: var(--havena-pro-blue-soft, rgba(59, 130, 246, 0.06));
  outline: none;
}

.havena-pro-document:focus-visible {
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--havena-pro-blue, #3b82f6) 28%, transparent);
}

.havena-pro-document__icon {
  width: 2.5rem;
  height: 2.5rem;
  flex: none;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--havena-pro-radius-xs, 6px);
  background: var(--havena-pro-gold-soft, rgba(184, 148, 72, 0.12));
  color: var(--havena-pro-gold-deep, #8a6d2f);
  font-size: 1.05rem;
}

.havena-pro-document__content {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.havena-pro-document__title {
  font-size: var(--havena-pro-fs-sm, 0.95rem);
  font-weight: var(--havena-pro-type-weight-button, 600);
  color: var(--havena-pro-ink, #1e1e2f);
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.havena-pro-document__meta {
  font-size: var(--havena-pro-fs-xs, 0.75rem);
  color: var(--havena-pro-slate, #6b7280);
  letter-spacing: 0.02em;
}

.havena-pro-document__action {
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: var(--havena-pro-fs-xs, 0.75rem);
  font-weight: var(--havena-pro-type-weight-label, 600);
  color: var(--havena-pro-blue, #3b82f6);
  white-space: nowrap;
}

.havena-pro-document__action svg {
  width: 14px;
  height: 14px;
}

.havena-pro-documents--sidebar .havena-pro-documents__grid {
  grid-template-columns: minmax(0, 1fr);
}

@media (max-width: 1024px) {
  .havena-pro-documents__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  .havena-pro-documents__grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* ------------------------------------------------------------
   FAQ — premium unified accordion (Core faq-card override)
------------------------------------------------------------ */
.havena-pro-faq {
  width: 100%;
  min-width: 0;
}

.havena-pro-faq__header {
  margin: 0 0 0.75rem;
}

.havena-pro-faq__title {
  margin: 0;
  font-family: var(--havena-pro-font-family-heading, inherit);
  font-size: 0.8rem;
  font-weight: var(--havena-pro-type-weight-label, 600);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--havena-pro-gold-deep, #8a6d2f);
}

.havena-pro-faq__list {
  border: 1px solid var(--havena-pro-line);
  border-radius: var(--havena-pro-radius-sm, 8px);
  background: color-mix(in srgb, var(--havena-pro-bg-soft, #f7f7f8) 55%, #fff);
  overflow: hidden;
}

.havena-pro-faq__item {
  border: 0;
  border-bottom: 1px solid color-mix(in srgb, var(--havena-pro-line) 85%, transparent);
  background: transparent;
}

.havena-pro-faq__item:last-child {
  border-bottom: 0;
}

.havena-pro-faq__item[open] {
  background: color-mix(in srgb, var(--havena-pro-gold-soft, rgba(184, 148, 72, 0.12)) 40%, #fff);
}

.havena-pro-faq__question {
  display: grid;
  grid-template-columns: 2rem minmax(0, 1fr) 1.25rem;
  align-items: center;
  column-gap: 0.85rem;
  list-style: none;
  cursor: pointer;
  padding: 0.95rem 1.25rem;
  font-size: 0.98rem;
  font-weight: var(--havena-pro-type-weight-button, 600);
  color: var(--havena-pro-ink, #1e1e2f);
  line-height: 1.4;
}

.havena-pro-faq__question::-webkit-details-marker {
  display: none;
}

.havena-pro-faq__question::marker {
  content: '';
}

.havena-pro-faq__question:hover {
  background: color-mix(in srgb, var(--havena-pro-bg-soft, #f7f7f8) 70%, transparent);
}

.havena-pro-faq__question:focus-visible {
  outline: 2px solid var(--havena-pro-blue, #3b82f6);
  outline-offset: -2px;
}

.havena-pro-faq__index {
  font-size: 0.78rem;
  font-weight: var(--havena-pro-type-weight-label, 600);
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.04em;
  color: color-mix(in srgb, var(--havena-pro-ink) 40%, var(--havena-pro-slate, #6b7280));
}

.havena-pro-faq__item[open] .havena-pro-faq__index {
  color: var(--havena-pro-gold-deep, #8a6d2f);
}

.havena-pro-faq__question-text {
  min-width: 0;
  overflow-wrap: anywhere;
}

.havena-pro-faq__toggle {
  position: relative;
  width: 0.85rem;
  height: 0.85rem;
  justify-self: end;
}

.havena-pro-faq__toggle::before,
.havena-pro-faq__toggle::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  background: var(--havena-pro-slate, #6b7280);
  transform: translate(-50%, -50%);
}

.havena-pro-faq__toggle::before {
  width: 0.7rem;
  height: 1.5px;
}

.havena-pro-faq__toggle::after {
  width: 1.5px;
  height: 0.7rem;
  transition: opacity 0.15s ease, transform 0.15s ease;
}

.havena-pro-faq__item[open] .havena-pro-faq__toggle::after {
  opacity: 0;
  transform: translate(-50%, -50%) scaleY(0);
}

.havena-pro-faq__item[open] .havena-pro-faq__toggle::before {
  background: var(--havena-pro-gold-deep, #8a6d2f);
}

.havena-pro-faq__answer {
  padding: 0 1.25rem 1.1rem 4.1rem;
  font-size: var(--havena-pro-fs-sm, 0.95rem);
  line-height: 1.7;
  color: color-mix(in srgb, var(--havena-pro-ink, #1e1e2f) 72%, var(--havena-pro-slate, #6b7280));
}

@media (max-width: 560px) {
  .havena-pro-faq__question {
    grid-template-columns: 1.75rem minmax(0, 1fr) 1.1rem;
    padding: 0.9rem 1rem;
    column-gap: 0.65rem;
  }

  .havena-pro-faq__answer {
    padding: 0 1rem 1rem 3.4rem;
  }
}

.havena-pro-faq__answer > *:first-child {
  margin-top: 0;
}

.havena-pro-faq__answer > *:last-child {
  margin-bottom: 0;
}

/* ------------------------------------------------------------
   HIGHLIGHTS / REPEATER (Core repeater-card override)
------------------------------------------------------------ */
.havena-pro-highlights {
  width: 100%;
  min-width: 0;
}

.havena-pro-highlights__heading {
  margin: 0 0 0.9rem;
  font-family: var(--havena-pro-font-family-heading, inherit);
  font-size: 0.8rem;
  font-weight: var(--havena-pro-type-weight-label, 600);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--havena-pro-gold-deep, #8a6d2f);
}

.havena-pro-highlights__grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem 1.25rem;
}

.havena-pro-highlight {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  min-width: 0;
  padding: 0.85rem 1rem;
  border: 1px solid color-mix(in srgb, var(--havena-pro-line) 80%, transparent);
  border-radius: var(--havena-pro-radius-sm, 8px);
  background: color-mix(in srgb, var(--havena-pro-bg-soft, #f7f7f8) 40%, #fff);
  transition:
    border-color var(--havena-pro-speed-fast, 0.16s ease),
    background var(--havena-pro-speed-fast, 0.16s ease);
}

.havena-pro-highlight:hover {
  border-color: color-mix(in srgb, var(--havena-pro-gold-deep, #8a6d2f) 35%, var(--havena-pro-line));
  background: color-mix(in srgb, var(--havena-pro-gold-soft, rgba(184, 148, 72, 0.12)) 45%, #fff);
}

.havena-pro-highlight__icon {
  flex: none;
  width: 2.35rem;
  height: 2.35rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--havena-pro-radius-xs, 6px);
  background: var(--havena-pro-gold-soft, rgba(184, 148, 72, 0.12));
  color: var(--havena-pro-gold-deep, #8a6d2f);
  font-size: 1rem;
}

.havena-pro-highlight__icon svg {
  width: 1.05rem;
  height: 1.05rem;
}

.havena-pro-highlight__content {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem;
}

.havena-pro-highlight__label {
  flex: 1 1 auto;
  min-width: 0;
  font-size: 0.98rem;
  font-weight: var(--havena-pro-type-weight-button, 600);
  color: var(--havena-pro-ink, #1e1e2f);
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.havena-pro-highlight__value {
  flex: 0 0 auto;
  font-size: 0.86rem;
  font-weight: var(--havena-pro-type-weight-body, 400);
  color: color-mix(in srgb, var(--havena-pro-ink) 48%, var(--havena-pro-slate, #6b7280));
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  line-height: 1.35;
}

@media (max-width: 780px) {
  .havena-pro-highlights__grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 480px) {
  .havena-pro-highlight__content {
    flex-wrap: wrap;
    align-items: flex-start;
  }

  .havena-pro-highlight__value {
    white-space: normal;
    overflow-wrap: anywhere;
  }
}

/* ------------------------------------------------------------
   LISTING AGENTS V2 (selector + active profile + contact)
------------------------------------------------------------ */
.havena-pro-agents {
  width: 100%;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.havena-pro-agents__lead {
  margin: 0;
  font-family: var(--havena-pro-font-family-heading, inherit);
  font-size: 0.78rem;
  font-weight: var(--havena-pro-type-weight-label, 600);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--havena-pro-gold-deep, #8a6d2f);
}

.havena-pro-agents__selector {
  display: flex;
  gap: 0.65rem;
  overflow-x: auto;
  padding: 0.15rem 0.1rem 0.45rem;
  scroll-snap-type: x proximity;
  -webkit-overflow-scrolling: touch;
}

.havena-pro-agents__selector-item {
  flex: 1 1 11rem;
  min-width: 10.5rem;
  max-width: 16rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.7rem 0.85rem;
  border: 1px solid var(--havena-pro-line, rgba(11, 18, 32, 0.12));
  border-radius: var(--havena-pro-radius-sm, 8px);
  background: var(--havena-pro-card-background, #fff);
  color: inherit;
  text-align: left;
  cursor: pointer;
  scroll-snap-align: start;
  transition:
    border-color var(--havena-pro-speed-fast, 0.16s ease),
    background var(--havena-pro-speed-fast, 0.16s ease),
    box-shadow var(--havena-pro-speed-fast, 0.16s ease);
}

.havena-pro-agents__selector-item:hover {
  border-color: color-mix(in srgb, var(--havena-pro-gold-deep, #8a6d2f) 35%, var(--havena-pro-line));
}

.havena-pro-agents__selector-item:focus-visible {
  outline: 2px solid var(--havena-pro-gold-deep, #8a6d2f);
  outline-offset: 2px;
}

.havena-pro-agents__selector-item.is-active {
  border-color: color-mix(in srgb, var(--havena-pro-gold-deep, #8a6d2f) 55%, transparent);
  background: color-mix(in srgb, var(--havena-pro-gold-soft, rgba(184, 148, 72, 0.14)) 70%, #fff);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--havena-pro-gold-deep, #8a6d2f) 18%, transparent);
}

.havena-pro-agents__selector-avatar {
  flex: none;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 50%;
  overflow: hidden;
  background: var(--havena-pro-bg-soft, #f7f7f8);
  border: 2px solid #fff;
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--havena-pro-line) 70%, transparent);
}

.havena-pro-agents__selector-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.havena-pro-agents__selector-avatar-fallback {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--havena-pro-gold-deep, #8a6d2f);
  font-size: 0.95rem;
}

.havena-pro-agents__selector-meta {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  min-width: 0;
}

.havena-pro-agents__selector-name {
  font-size: 0.92rem;
  font-weight: var(--havena-pro-type-weight-heading, 600);
  color: var(--havena-pro-ink, #1e1e2f);
  line-height: 1.25;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.havena-pro-agents__selector-role {
  font-size: 0.75rem;
  color: var(--havena-pro-slate, #6b7280);
  line-height: 1.3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.havena-pro-agents__selector-badge {
  margin-top: 0.15rem;
  font-size: 0.62rem;
  font-weight: var(--havena-pro-type-weight-label, 600);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--havena-pro-gold-deep, #8a6d2f);
}

.havena-pro-agents__stage {
  width: 100%;
  min-width: 0;
}

/* Inactive multi-agent panels must leave the layout (author display must not defeat [hidden]). */
.havena-pro-agents [data-havena-pro-agent-panel][hidden] {
  display: none !important;
}

.havena-pro-agents__profile {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
  padding: 1.4rem 1.5rem;
  border: 1px solid var(--havena-pro-line, rgba(11, 18, 32, 0.12));
  border-radius: var(--havena-pro-radius-sm, 8px);
  background: var(--havena-pro-card-background, #fff);
}

.havena-pro-agents__profile--primary {
  border-color: color-mix(in srgb, var(--havena-pro-gold-deep, #8a6d2f) 22%, var(--havena-pro-line));
}

.havena-pro-agents__profile-header {
  display: flex;
  align-items: flex-start;
  gap: 1.25rem;
}

.havena-pro-agents__profile-avatar {
  flex: none;
  width: 6.5rem;
  height: 6.5rem;
  border-radius: 50%;
  overflow: hidden;
  border: 3px solid #fff;
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--havena-pro-gold-deep, #8a6d2f) 28%, var(--havena-pro-line));
  background: var(--havena-pro-bg-soft, #f7f7f8);
}

.havena-pro-agents__profile-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.havena-pro-agents__profile-avatar-fallback {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--havena-pro-gold-deep, #8a6d2f);
  font-size: 2rem;
}

.havena-pro-agents__profile-identity {
  flex: 1 1 auto;
  min-width: 0;
}

.havena-pro-agents__profile-badge {
  display: inline-block;
  margin-bottom: 0.45rem;
  padding: 0.22rem 0.55rem;
  border-radius: var(--havena-pro-radius-pill, 999px);
  background: var(--havena-pro-gold-soft, rgba(184, 148, 72, 0.14));
  color: var(--havena-pro-gold-deep, #8a6d2f);
  font-size: 0.66rem;
  font-weight: var(--havena-pro-type-weight-label, 600);
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.havena-pro-agents__profile-name {
  margin: 0 0 0.25rem;
  font-size: clamp(1.35rem, 1.1rem + 0.6vw, 1.7rem);
  line-height: 1.2;
  font-weight: var(--havena-pro-type-weight-heading, 600);
  color: var(--havena-pro-ink, #1e1e2f);
}

.havena-pro-agents__profile-role,
.havena-pro-agents__profile-company {
  margin: 0;
  font-size: var(--havena-pro-fs-sm, 0.95rem);
  line-height: 1.4;
  color: color-mix(in srgb, var(--havena-pro-ink) 58%, var(--havena-pro-slate, #6b7280));
}

.havena-pro-agents__profile-company {
  margin-top: 0.12rem;
  font-weight: var(--havena-pro-type-weight-button, 500);
}

.havena-pro-agents__profile-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.95rem;
}

.havena-pro-agency {
  padding: 0.95rem 1rem 0;
  border-top: 1px solid color-mix(in srgb, var(--havena-pro-line) 80%, transparent);
}

.havena-pro-agency__header {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  margin-bottom: 0.75rem;
}

.havena-pro-agency__logo {
  flex: none;
  width: 2.85rem;
  height: 2.85rem;
  border-radius: var(--havena-pro-radius-xs, 6px);
  overflow: hidden;
  border: 1px solid var(--havena-pro-line);
  background: var(--havena-pro-bg-soft, #f7f7f8);
}

.havena-pro-agency__logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.havena-pro-agency__eyebrow {
  margin: 0 0 0.12rem;
  font-size: 0.68rem;
  font-weight: var(--havena-pro-type-weight-label, 600);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--havena-pro-slate, #6b7280);
}

.havena-pro-agency__name {
  display: inline-block;
  font-size: 1rem;
  font-weight: var(--havena-pro-type-weight-button, 600);
  color: var(--havena-pro-ink, #1e1e2f);
  text-decoration: none;
  line-height: 1.3;
}

a.havena-pro-agency__name:hover {
  color: var(--havena-pro-gold-deep, #8a6d2f);
}

.havena-pro-agency__details,
.havena-pro-agents__profile-details {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.7rem 1.35rem;
}

.havena-pro-agency__detail,
.havena-pro-agents__profile-detail {
  display: grid;
  grid-template-columns: 1rem minmax(0, 1fr);
  grid-template-rows: auto auto;
  column-gap: 0.55rem;
  min-width: 0;
  font-size: var(--havena-pro-fs-sm, 0.95rem);
}

.havena-pro-agency__detail-icon,
.havena-pro-agents__profile-detail-icon {
  grid-row: 1 / span 2;
  color: var(--havena-pro-gold-deep, #8a6d2f);
  line-height: 1.35;
  opacity: 0.9;
}

.havena-pro-agency__detail-label,
.havena-pro-agents__profile-detail-label {
  color: var(--havena-pro-slate, #6b7280);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: var(--havena-pro-type-weight-label, 600);
}

.havena-pro-agency__detail-value,
.havena-pro-agents__profile-detail-value {
  color: var(--havena-pro-ink, #1e1e2f);
  overflow-wrap: anywhere;
  text-decoration: none;
  line-height: 1.4;
}

a.havena-pro-agency__detail-value:hover,
a.havena-pro-agents__profile-detail-value:hover {
  color: var(--havena-pro-blue, #3b82f6);
}

.havena-pro-agents__profile-bio-title {
  margin: 0 0 0.4rem;
  font-size: 0.95rem;
  font-weight: var(--havena-pro-type-weight-heading, 600);
  color: var(--havena-pro-ink, #1e1e2f);
}

.havena-pro-agents__profile-bio-body {
  font-size: var(--havena-pro-fs-sm, 0.95rem);
  line-height: 1.7;
  color: color-mix(in srgb, var(--havena-pro-ink) 75%, var(--havena-pro-slate, #6b7280));
}

.havena-pro-agents__profile-bio-body > *:first-child {
  margin-top: 0;
}

.havena-pro-agents__profile-bio-body > *:last-child {
  margin-bottom: 0;
}

.havena-pro-agents__profile-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.havena-pro-agents__profile-profile-link {
  display: inline-block;
  font-size: var(--havena-pro-fs-sm, 0.95rem);
  font-weight: var(--havena-pro-type-weight-button, 600);
  color: var(--havena-pro-gold-deep, #8a6d2f);
  text-decoration: none;
}

.havena-pro-agents__profile-profile-link:hover {
  text-decoration: underline;
}

.havena-pro-agents__profile-social {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.havena-pro-agents__profile-social-link {
  width: 2.1rem;
  height: 2.1rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--havena-pro-line);
  border-radius: 50%;
  color: var(--havena-pro-ink, #1e1e2f);
  text-decoration: none;
  transition:
    border-color var(--havena-pro-speed-fast, 0.16s ease),
    background var(--havena-pro-speed-fast, 0.16s ease),
    color var(--havena-pro-speed-fast, 0.16s ease);
}

.havena-pro-agents__profile-social-link:hover,
.havena-pro-agents__profile-social-link:focus-visible {
  border-color: var(--havena-pro-gold-deep, #8a6d2f);
  color: var(--havena-pro-gold-deep, #8a6d2f);
  background: var(--havena-pro-gold-soft, rgba(184, 148, 72, 0.12));
  outline: none;
}

.havena-pro-agent-contact {
  padding: 1.35rem 1.45rem;
  border: 1px solid var(--havena-pro-line);
  border-radius: var(--havena-pro-radius-sm, 8px);
  background: color-mix(in srgb, var(--havena-pro-bg-soft, #f7f7f8) 35%, #fff);
}

.havena-pro-agent-contact__header {
  margin-bottom: 1rem;
}

.havena-pro-agent-contact__title {
  margin: 0 0 0.25rem;
  font-size: 1.12rem;
  font-weight: var(--havena-pro-type-weight-heading, 600);
  color: var(--havena-pro-ink, #1e1e2f);
}

.havena-pro-agent-contact__subtitle {
  margin: 0;
  font-size: var(--havena-pro-fs-sm, 0.95rem);
  color: var(--havena-pro-slate, #6b7280);
}

.havena-pro-agent-contact__target {
  margin: 0.35rem 0 0;
  font-size: 0.86rem;
  font-weight: var(--havena-pro-type-weight-button, 500);
  color: var(--havena-pro-gold-deep, #8a6d2f);
}

.havena-pro-agent-contact__picker {
  margin-bottom: 0.9rem;
}

.havena-pro-agent-contact__picker label {
  display: block;
  margin-bottom: 0.35rem;
  font-size: 0.8rem;
  font-weight: var(--havena-pro-type-weight-label, 600);
  color: var(--havena-pro-ink, #1e1e2f);
}

.havena-pro-agent-contact__row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
}

.havena-pro-agent-contact__field {
  margin-bottom: 0.75rem;
}

.havena-pro-agent-contact__field label {
  display: block;
  margin-bottom: 0.35rem;
  font-size: 0.8rem;
  font-weight: var(--havena-pro-type-weight-label, 600);
  color: var(--havena-pro-ink, #1e1e2f);
}

.havena-pro-agent-contact__required {
  color: var(--havena-pro-danger, #c0392b);
}

.havena-pro-agent-contact__honeypot {
  position: absolute !important;
  left: -9999px !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
}

.havena-pro-agent-contact__feedback {
  margin: 0.5rem 0 0.75rem;
  padding: 0.65rem 0.8rem;
  border-radius: var(--havena-pro-radius-xs, 6px);
  font-size: var(--havena-pro-fs-sm, 0.95rem);
}

.havena-pro-agent-contact__feedback.hvnly-contact-agent__feedback--success {
  background: color-mix(in srgb, var(--havena-pro-success, #12a150) 12%, #fff);
  color: var(--havena-pro-success, #12a150);
}

.havena-pro-agent-contact__feedback.hvnly-contact-agent__feedback--error {
  background: color-mix(in srgb, var(--havena-pro-danger, #c0392b) 12%, #fff);
  color: var(--havena-pro-danger, #c0392b);
}

.js-hvnly-contact-agent-form {
  --havena-pro-inquiry-danger: var(--havena-pro-danger, #c0392b);
  --havena-pro-inquiry-success: var(--havena-pro-success, #12a150);
  --havena-pro-inquiry-surface: color-mix(in srgb, var(--havena-pro-navy-900, #0f2744) 2.5%, #fff);
}

.js-hvnly-contact-agent-form.is-submitting {
  opacity: 0.86;
}

.js-hvnly-contact-agent-form .hvnly-inquiry-form__field {
  position: relative;
}

.js-hvnly-contact-agent-form .hvnly-inquiry-form__field--has-status .havena-pro-input,
.js-hvnly-contact-agent-form .hvnly-inquiry-form__field--has-status .havena-pro-textarea,
.js-hvnly-contact-agent-form .hvnly-inquiry-form__field--has-status .havena-pro-select {
  padding-right: 2.8rem;
}

.js-hvnly-contact-agent-form .hvnly-inquiry-form__status {
  position: absolute;
  right: 0.8rem;
  top: 2.85rem;
  width: 1.3rem;
  height: 1.3rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 1px solid transparent;
  font-size: 0.73rem;
  font-weight: 700;
  line-height: 1;
  pointer-events: none;
  color: transparent;
  background: transparent;
}

.js-hvnly-contact-agent-form .hvnly-inquiry-form__field textarea ~ .hvnly-inquiry-form__status {
  top: auto;
  bottom: 0.9rem;
}

.js-hvnly-contact-agent-form .hvnly-inquiry-form__field.is-field-invalid .havena-pro-input,
.js-hvnly-contact-agent-form .hvnly-inquiry-form__field.is-field-invalid .havena-pro-textarea,
.js-hvnly-contact-agent-form .hvnly-inquiry-form__field.is-field-invalid .havena-pro-select {
  border-color: var(--havena-pro-inquiry-danger);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--havena-pro-inquiry-danger) 14%, transparent);
  background: color-mix(in srgb, var(--havena-pro-inquiry-danger) 4%, #fff);
}

.js-hvnly-contact-agent-form .hvnly-inquiry-form__field.is-field-valid .havena-pro-input,
.js-hvnly-contact-agent-form .hvnly-inquiry-form__field.is-field-valid .havena-pro-textarea,
.js-hvnly-contact-agent-form .hvnly-inquiry-form__field.is-field-valid .havena-pro-select {
  border-color: var(--havena-pro-inquiry-success);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--havena-pro-inquiry-success) 14%, transparent);
}

.js-hvnly-contact-agent-form .hvnly-inquiry-form__field.is-field-invalid .hvnly-inquiry-form__status {
  color: var(--havena-pro-inquiry-danger);
  border-color: color-mix(in srgb, var(--havena-pro-inquiry-danger) 22%, transparent);
  background: color-mix(in srgb, var(--havena-pro-inquiry-danger) 10%, #fff);
}

.js-hvnly-contact-agent-form .hvnly-inquiry-form__field.is-field-valid .hvnly-inquiry-form__status {
  color: var(--havena-pro-inquiry-success);
  border-color: color-mix(in srgb, var(--havena-pro-inquiry-success) 24%, transparent);
  background: color-mix(in srgb, var(--havena-pro-inquiry-success) 10%, #fff);
}

.js-hvnly-contact-agent-form .hvnly-inquiry-form__hint {
  margin: 0.44rem 0 0;
  font-size: 0.79rem;
  line-height: 1.5;
  letter-spacing: 0.005em;
  color: var(--havena-pro-slate, #4f5f73);
}

.js-hvnly-contact-agent-form .hvnly-inquiry-form__hint[hidden] {
  display: none;
}

.js-hvnly-contact-agent-form .hvnly-inquiry-form__field.is-field-invalid .hvnly-inquiry-form__hint {
  color: color-mix(in srgb, var(--havena-pro-inquiry-danger) 90%, #1f2937);
}

.js-hvnly-contact-agent-form .hvnly-inquiry-form__field.is-field-valid .hvnly-inquiry-form__hint {
  color: color-mix(in srgb, var(--havena-pro-inquiry-success) 84%, #1f2937);
}

.js-hvnly-contact-agent-form .hvnly-inquiry-form__notice {
  margin: 0.6rem 0 0.9rem;
  border: 1px solid var(--havena-pro-line, rgba(15, 23, 42, 0.12));
  border-radius: var(--havena-pro-radius-sm, 10px);
  background: var(--havena-pro-inquiry-surface);
  box-shadow: var(--havena-pro-shadow-sm, 0 10px 24px rgba(10, 22, 40, 0.08));
}

.js-hvnly-contact-agent-form .hvnly-inquiry-form__notice-card {
  padding: 0.92rem 1rem 1rem;
}

.js-hvnly-contact-agent-form .hvnly-inquiry-form__notice-icon {
  width: 1.8rem;
  height: 1.8rem;
  margin: 0 0 0.56rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--havena-pro-radius-pill, 999px);
  font-size: 0.8rem;
  font-weight: 700;
}

.js-hvnly-contact-agent-form .hvnly-inquiry-form__notice-title {
  margin: 0 0 0.35rem;
  font-size: 0.92rem;
  line-height: 1.42;
  font-weight: 700;
  color: var(--havena-pro-ink, #1e1e2f);
}

.js-hvnly-contact-agent-form .hvnly-inquiry-form__notice-body {
  margin: 0;
  font-size: 0.84rem;
  line-height: 1.56;
  color: var(--havena-pro-slate, #4f5f73);
}

.js-hvnly-contact-agent-form .hvnly-inquiry-form__notice-meta,
.js-hvnly-contact-agent-form .hvnly-inquiry-form__notice-lead {
  margin: 0.36rem 0 0;
  font-size: 0.79rem;
  line-height: 1.52;
  color: color-mix(in srgb, var(--havena-pro-slate, #4f5f73) 88%, #0f172a);
}

.js-hvnly-contact-agent-form .hvnly-inquiry-form__notice--error {
  border-color: color-mix(in srgb, var(--havena-pro-inquiry-danger) 24%, var(--havena-pro-line, rgba(15, 23, 42, 0.12)));
}

.js-hvnly-contact-agent-form .hvnly-inquiry-form__notice--error .hvnly-inquiry-form__notice-icon {
  color: var(--havena-pro-inquiry-danger);
  background: color-mix(in srgb, var(--havena-pro-inquiry-danger) 12%, #fff);
  border: 1px solid color-mix(in srgb, var(--havena-pro-inquiry-danger) 24%, transparent);
}

.js-hvnly-contact-agent-form .hvnly-inquiry-form__notice--success {
  border-color: color-mix(in srgb, var(--havena-pro-inquiry-success) 24%, var(--havena-pro-line, rgba(15, 23, 42, 0.12)));
}

.js-hvnly-contact-agent-form .hvnly-inquiry-form__notice--success .hvnly-inquiry-form__notice-icon {
  color: var(--havena-pro-inquiry-success);
  background: color-mix(in srgb, var(--havena-pro-inquiry-success) 12%, #fff);
  border: 1px solid color-mix(in srgb, var(--havena-pro-inquiry-success) 24%, transparent);
}

.js-hvnly-contact-agent-form .hvnly-contact-agent__btn-spinner {
  display: inline-flex;
  width: 1rem;
  height: 1rem;
  margin-right: 0.5rem;
  border: 2px solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
  animation: havena-pro-inquiry-spin 0.66s linear infinite;
}

.js-hvnly-contact-agent-form .js-hvnly-contact-agent-submit.is-loading,
.js-hvnly-contact-agent-form .js-hvnly-contact-agent-submit[aria-busy="true"] {
  cursor: wait;
  transform: none;
}

@keyframes havena-pro-inquiry-spin {
  to {
    transform: rotate(360deg);
  }
}

@media (max-width: 560px) {
  .js-hvnly-contact-agent-form .hvnly-inquiry-form__status {
    right: 0.72rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .js-hvnly-contact-agent-form .hvnly-contact-agent__btn-spinner {
    animation: none;
  }
}

.havena-pro-agent-contact__submit {
  width: 100%;
}

@media (max-width: 768px) {
  .havena-pro-agents__selector-item {
    flex: 0 0 12.5rem;
    max-width: none;
  }

  .havena-pro-agents__profile-header {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .havena-pro-agents__profile-actions {
    justify-content: center;
  }

  .havena-pro-agents__profile-footer {
    justify-content: center;
    flex-direction: column;
  }

  .havena-pro-agency__header {
    flex-direction: column;
    text-align: center;
  }
}

@media (max-width: 560px) {
  .havena-pro-agents__profile {
    padding: 1.15rem 1.1rem;
  }

  .havena-pro-agents__profile-actions .havena-pro-btn {
    flex: 1 1 calc(50% - 0.25rem);
    justify-content: center;
  }

  .havena-pro-agency__details,
  .havena-pro-agents__profile-details,
  .havena-pro-agent-contact__row {
    grid-template-columns: minmax(0, 1fr);
  }

  .havena-pro-agent-contact {
    padding: 1.1rem;
  }
}

/* ------------------------------------------------------------
   FEATURES (checkbox-repeater override)
------------------------------------------------------------ */
.havena-pro-features {
  width: 100%;
  min-width: 0;
}

.havena-pro-features__heading {
  margin: 0 0 0.85rem;
  font-size: 1.05rem;
  font-weight: var(--havena-pro-type-weight-heading, 600);
  color: var(--havena-pro-ink, #1e1e2f);
}

.havena-pro-features__grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.75rem;
}

.havena-pro-feature {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  min-width: 0;
  padding: 0.85rem 0.95rem;
  border: 1px solid var(--havena-pro-line);
  border-radius: var(--havena-pro-radius-sm);
  background: var(--havena-pro-card-background, #fff);
  transition:
    border-color var(--havena-pro-speed-fast, 0.16s ease),
    background var(--havena-pro-speed-fast, 0.16s ease);
}

.havena-pro-feature:hover {
  border-color: color-mix(in srgb, var(--havena-pro-gold-deep, #8a6d2f) 40%, var(--havena-pro-line));
  background: color-mix(in srgb, var(--havena-pro-gold-soft, rgba(184, 148, 72, 0.12)) 55%, #fff);
}

.havena-pro-feature__icon {
  flex: none;
  width: 2.15rem;
  height: 2.15rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--havena-pro-radius-xs, 6px);
  background: var(--havena-pro-gold-soft, rgba(184, 148, 72, 0.12));
  color: var(--havena-pro-gold-deep, #8a6d2f);
  font-size: 0.95rem;
}

.havena-pro-feature__label {
  flex: 1 1 auto;
  min-width: 0;
  font-size: var(--havena-pro-fs-sm, 0.95rem);
  font-weight: var(--havena-pro-type-weight-button, 500);
  color: var(--havena-pro-ink, #1e1e2f);
  line-height: 1.35;
  overflow-wrap: anywhere;
}

@media (max-width: 1200px) {
  .havena-pro-features__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 780px) {
  .havena-pro-features__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 480px) {
  .havena-pro-features__grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* ------------------------------------------------------------
   ACCORDION (floor plans, FAQ reuse)
------------------------------------------------------------ */
.havena-pro-acc__item {
  border: 1px solid var(--havena-pro-line);
  border-radius: var(--havena-pro-radius-sm);
  overflow: hidden;
  transition: box-shadow var(--havena-pro-speed);
}

.havena-pro-acc__item + .havena-pro-acc__item {
  margin-top: 0.8rem;
}

.havena-pro-acc__item.is-open {
  box-shadow: var(--havena-pro-shadow-sm);
  border-color: var(--havena-pro-navy-900);
}

.havena-pro-acc__btn {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 0.9rem;
  padding: 1.1rem 1.25rem;
  text-align: left;
  font-weight: var(--havena-pro-type-weight-button);
  font-size: 0.98rem;
  transition: background var(--havena-pro-speed-fast);
}

.havena-pro-acc__btn:hover {
  background: var(--havena-pro-bg-soft);
}

.havena-pro-acc__btn > svg:first-child {
  width: 20px;
  height: 20px;
  color: var(--havena-pro-gold-deep);
  flex: none;
}

.havena-pro-acc__meta {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 1.1rem;
  font-size: var(--havena-pro-fs-xs);
  font-weight: var(--havena-pro-type-weight-nav);
  color: var(--havena-pro-slate);
  white-space: nowrap;
}

.havena-pro-acc__chev {
  width: 18px !important;
  height: 18px !important;
  color: var(--havena-pro-slate-light) !important;
  transition: transform 0.35s var(--havena-pro-ease);
}

.havena-pro-acc__item.is-open .havena-pro-acc__chev {
  transform: rotate(180deg);
}

/*
 * Floor-plan headers: title + sqft + rooms + chevron collide on narrow
 * viewports (nowrap meta + overflow). Allow meta to wrap under the title;
 * chevron stays on the first row. Desktop (≥721) unchanged.
 */
@media (max-width: 720px) {
  body.havena-pro-is-property-single .havena-pro-acc__btn {
    flex-wrap: wrap;
    align-items: center;
    row-gap: 0.35rem;
    column-gap: 0.75rem;
  }

  body.havena-pro-is-property-single .havena-pro-acc__meta {
    flex: 1 1 100%;
    margin-left: 1.85rem;
    white-space: normal;
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 0.35rem 0.85rem;
  }

  body.havena-pro-is-property-single .havena-pro-acc__chev {
    margin-left: auto;
    flex: none;
  }
}

.havena-pro-acc__panel {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.5s var(--havena-pro-ease);
}

.havena-pro-acc__item.is-open .havena-pro-acc__panel {
  max-height: 640px;
}

.havena-pro-acc__body {
  padding: 0.4rem 1.25rem 1.4rem;
  color: var(--havena-pro-slate);
  font-size: var(--havena-pro-fs-sm);
  line-height: 1.7;
}

.havena-pro-acc__body img {
  border-radius: var(--havena-pro-radius-sm);
  margin-top: 0.9rem;
  width: 100%;
  max-height: 340px;
  object-fit: cover;
}

/* ------------------------------------------------------------
   MEDIA CARDS (video / virtual tour / street view)
------------------------------------------------------------ */
.havena-pro-media-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

.havena-pro-panel[data-havena-pro-builder-section="sec_property_gallery"] .havena-pro-media-grid--gallery-preview {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.85rem;
}

.havena-pro-panel[data-havena-pro-builder-section="sec_property_gallery"] .havena-pro-media-grid--gallery-preview[data-preview-count="1"] {
  grid-template-columns: minmax(0, 1fr);
}

.havena-pro-panel[data-havena-pro-builder-section="sec_property_gallery"] .havena-pro-media-grid--gallery-preview .havena-pro-media-card {
  aspect-ratio: 4 / 3;
  width: 100%;
  min-width: 0;
  height: auto;
}

.havena-pro-panel[data-havena-pro-builder-section="sec_property_gallery"] .havena-pro-media-grid--gallery-preview .havena-pro-media-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.havena-pro-panel[data-havena-pro-builder-section="sec_property_gallery"] .havena-pro-media-card__more {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  background: var(--havena-pro-overlay-dark, rgba(10, 22, 40, 0.58));
  color: var(--havena-pro-color-dark-text, #fff);
  font-weight: var(--havena-pro-type-weight-label);
  font-size: 1.05rem;
  backdrop-filter: blur(2px);
  transition: background var(--havena-pro-speed-fast, 0.2s);
}

.havena-pro-panel[data-havena-pro-builder-section="sec_property_gallery"] .havena-pro-media-card:hover .havena-pro-media-card__more {
  background: rgba(5, 11, 22, 0.75);
}

.havena-pro-panel[data-havena-pro-builder-section="sec_property_gallery"] .havena-pro-media-card__more svg {
  width: 24px;
  height: 24px;
}

.havena-pro-panel[data-havena-pro-builder-section="sec_property_video"] .havena-pro-media-grid {
  grid-template-columns: 1fr;
}

.havena-pro-panel[data-havena-pro-builder-section="sec_property_video"] .havena-pro-media-card--video {
  width: 100%;
  max-width: 100%;
  aspect-ratio: 16 / 9;
}

.havena-pro-media-card {
  position: relative;
  aspect-ratio: 16 / 9.5;
  border-radius: var(--havena-pro-radius-sm);
  overflow: hidden;
  isolation: isolate;
  display: flex;
  align-items: flex-end;
  color: var(--havena-pro-color-dark-text);
  cursor: pointer;
  border: 0;
  text-align: left;
  padding: 0;
}

.havena-pro-media-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
  transition: transform 0.8s var(--havena-pro-ease);
}

.havena-pro-media-card:hover img {
  transform: scale(1.06);
}

.havena-pro-media-card::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(to top, rgba(5, 11, 22, 0.8), rgba(5, 11, 22, 0.12) 55%);
}

.havena-pro-media-card__label {
  padding: 1.1rem 1.2rem;
  font-weight: var(--havena-pro-type-weight-label);
  font-size: 0.98rem;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.havena-pro-media-card__label small {
  font-weight: var(--havena-pro-type-weight-nav);
  font-size: var(--havena-pro-fs-xs);
  color: rgba(255, 255, 255, 0.7);
}

.havena-pro-media-card__play {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.16);
  border: 1.5px solid rgba(255, 255, 255, 0.45);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  transition:
    background var(--havena-pro-speed) var(--havena-pro-ease),
    border-color var(--havena-pro-speed) var(--havena-pro-ease),
    color var(--havena-pro-speed) var(--havena-pro-ease),
    transform var(--havena-pro-speed) var(--havena-pro-ease);
}

.havena-pro-media-card:hover .havena-pro-media-card__play {
  background: var(--havena-pro-gold);
  border-color: var(--havena-pro-gold);
  color: var(--havena-pro-navy-950);
  transform: translate(-50%, -50%) scale(1.1);
}

.havena-pro-media-card__play svg {
  width: 24px;
  height: 24px;
  margin-left: 3px;
}

.havena-pro-media-card--video .havena-pro-media-card__play {
  width: 76px;
  height: 76px;
  color: #fff;
  background: rgba(8, 14, 26, 0.62);
  border: 1.5px solid rgba(255, 255, 255, 0.55);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.32);
}

.havena-pro-media-card--video .havena-pro-media-card__play::before {
  content: "";
  position: absolute;
  inset: -10px;
  border-radius: 50%;
  border: 1.5px solid rgba(255, 255, 255, 0.32);
  animation: havena-pro-play-pulse 2.6s ease-out infinite;
  pointer-events: none;
}

.havena-pro-media-card--video .havena-pro-media-card__play svg {
  width: 28px;
  height: 28px;
}

.havena-pro-media-card--video:hover .havena-pro-media-card__play {
  background: var(--havena-pro-gold);
  border-color: var(--havena-pro-gold);
  color: var(--havena-pro-navy-950);
}

@keyframes havena-pro-play-pulse {
  0% {
    transform: scale(0.92);
    opacity: 0.55;
  }
  70% {
    transform: scale(1.18);
    opacity: 0;
  }
  100% {
    transform: scale(1.18);
    opacity: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .havena-pro-media-card--video .havena-pro-media-card__play::before {
    animation: none;
    opacity: 0.35;
  }

  .havena-pro-media-card:hover img {
    transform: none;
  }
}

/* ------------------------------------------------------------
   BUILDER VIDEO CARD (theme override of single-property/video-card)
------------------------------------------------------------ */
.havena-pro-video-card {
  position: relative;
  display: block;
  width: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: var(--havena-pro-radius-md, 18px);
  overflow: hidden;
  cursor: pointer;
  background: #0b1220;
  outline: none;
}

.havena-pro-video-card:focus-visible {
  outline: 2px solid var(--havena-pro-gold, #c9a227);
  outline-offset: 3px;
}

.havena-pro-video-card__media {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: inherit;
}

.havena-pro-video-card__thumbnail {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1);
  transition: transform 0.45s ease;
}

.havena-pro-video-card__overlay {
  position: absolute;
  inset: 0;
  display: block;
  padding: 1.25rem 1rem 1.35rem;
  background: linear-gradient(180deg, rgba(6, 12, 24, 0.18) 0%, rgba(6, 12, 24, 0.42) 48%, rgba(6, 12, 24, 0.72) 100%);
  transition: background 0.35s ease;
}

.havena-pro-video-card__play {
  position: absolute;
  z-index: 1;
  top: 50%;
  left: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 76px;
  height: 76px;
  border-radius: 50%;
  color: #fff;
  background: rgba(8, 14, 26, 0.62);
  border: 1.5px solid rgba(255, 255, 255, 0.55);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.32);
  transform: translate(-50%, -50%);
  transition: background 0.25s ease, border-color 0.25s ease, color 0.25s ease, transform 0.25s ease;
}

.havena-pro-video-card__play::before {
  content: "";
  position: absolute;
  inset: -10px;
  border-radius: 50%;
  border: 1.5px solid rgba(255, 255, 255, 0.32);
  animation: havena-pro-play-pulse 2.6s ease-out infinite;
  pointer-events: none;
}

.havena-pro-video-card__play svg {
  width: 28px;
  height: 28px;
  margin-left: 2px;
}

.havena-pro-video-card__title {
  position: absolute;
  z-index: 1;
  left: 1rem;
  right: 1rem;
  bottom: 1.15rem;
  margin: 0;
  color: #fff;
  font-size: clamp(1rem, 2.2vw, 1.25rem);
  font-weight: 600;
  line-height: 1.35;
  text-align: center;
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.45);
}

.havena-pro-video-card:hover .havena-pro-video-card__thumbnail,
.havena-pro-video-card:focus-visible .havena-pro-video-card__thumbnail {
  transform: scale(1.04);
}

.havena-pro-video-card:hover .havena-pro-video-card__overlay,
.havena-pro-video-card:focus-visible .havena-pro-video-card__overlay {
  background: linear-gradient(180deg, rgba(6, 12, 24, 0.28) 0%, rgba(6, 12, 24, 0.55) 48%, rgba(6, 12, 24, 0.82) 100%);
}

.havena-pro-video-card:hover .havena-pro-video-card__play,
.havena-pro-video-card:focus-visible .havena-pro-video-card__play {
  background: var(--havena-pro-gold, #c9a227);
  border-color: var(--havena-pro-gold, #c9a227);
  color: var(--havena-pro-navy-950, #0b1220);
  transform: translate(-50%, -50%) scale(1.04);
}

@media (max-width: 680px) {
  .havena-pro-video-card__play {
    width: 60px;
    height: 60px;
  }

  .havena-pro-video-card__play svg {
    width: 24px;
    height: 24px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .havena-pro-video-card__thumbnail,
  .havena-pro-video-card__overlay,
  .havena-pro-video-card__play {
    transition: none;
  }

  .havena-pro-video-card:hover .havena-pro-video-card__thumbnail,
  .havena-pro-video-card:focus-visible .havena-pro-video-card__thumbnail {
    transform: none;
  }

  .havena-pro-video-card:hover .havena-pro-video-card__play,
  .havena-pro-video-card:focus-visible .havena-pro-video-card__play {
    transform: translate(-50%, -50%);
  }

  .havena-pro-video-card__play::before {
    animation: none;
    opacity: 0.35;
  }
}

.havena-pro-video-modal {
  position: fixed;
  inset: 0;
  z-index: 140010;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
}

.havena-pro-video-modal[hidden] {
  display: none !important;
}

.havena-pro-video-modal.is-open {
  display: flex;
}

.havena-pro-video-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(3, 7, 14, 0.92);
}

.havena-pro-video-modal__dialog {
  position: relative;
  z-index: 1;
  width: min(1120px, 100%);
}

.havena-pro-video-modal__close {
  position: absolute;
  top: -3.1rem;
  right: 0;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.havena-pro-video-modal__close:hover,
.havena-pro-video-modal__close:focus-visible {
  background: rgba(255, 255, 255, 0.22);
  outline: 2px solid #fff;
  outline-offset: 2px;
}

.havena-pro-video-modal__close svg {
  width: 18px;
  height: 18px;
}

.havena-pro-video-modal__frame {
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: var(--havena-pro-radius-sm);
  overflow: hidden;
  background: #000;
}

.havena-pro-video-modal__frame iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}

@media (max-width: 680px) {
  .havena-pro-media-card--video .havena-pro-media-card__play {
    width: 60px;
    height: 60px;
  }

  .havena-pro-video-modal {
    padding: 3.5rem 0.75rem 0.75rem;
  }

  .havena-pro-video-modal__close {
    top: -2.8rem;
  }
}

.havena-pro-media-card--map {
  aspect-ratio: auto;
  height: 320px;
  min-height: 260px;
  cursor: default;
  align-items: stretch;
  border: 1px solid var(--havena-pro-line);
  background: var(--havena-pro-surface, #f4f1ea);
}

.havena-pro-media-card--map::after {
  content: none;
}

.havena-pro-property-map {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  border-radius: inherit;
}

.havena-pro-property-map .leaflet-container {
  width: 100%;
  height: 100%;
  background: transparent;
}

.havena-pro-property-map .havena-pro-property-map__fullscreen-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  line-height: 1;
  background: var(--havena-pro-card-background, #fff);
  color: #1a1a1a;
  border-bottom: 1px solid rgba(0, 0, 0, 0.12);
}

.havena-pro-property-map .havena-pro-property-map__fullscreen-btn:hover,
.havena-pro-property-map .havena-pro-property-map__fullscreen-btn:focus {
  background: #f5f5f5;
  color: #000;
}

.havena-pro-panel[data-havena-pro-builder-section="sec_property_location"] .havena-pro-dhead__addr {
  margin: 0 0 0.9rem;
  max-width: 100%;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.havena-pro-map-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: 0.85rem;
}

.havena-pro-map-actions .havena-pro-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  min-height: 2.35rem;
  padding: 0.4rem 0.9rem;
}

.havena-pro-map-actions .havena-pro-btn svg {
  width: 16px;
  height: 16px;
  flex: none;
}

@media (max-width: 520px) {
  .havena-pro-map-actions {
    flex-direction: column;
  }

  .havena-pro-map-actions .havena-pro-btn {
    justify-content: center;
    width: 100%;
  }
}

@media (max-width: 680px) {
  .havena-pro-media-card--map {
    height: 240px;
    min-height: 240px;
  }
}

@media (max-width: 680px) {
  .havena-pro-media-grid {
    grid-template-columns: 1fr;
  }

  .havena-pro-panel[data-havena-pro-builder-section="sec_property_gallery"] .havena-pro-media-grid--gallery-preview {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .havena-pro-panel[data-havena-pro-builder-section="sec_property_gallery"] .havena-pro-media-grid--gallery-preview[data-preview-count="1"] {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 420px) {
  .havena-pro-panel[data-havena-pro-builder-section="sec_property_gallery"] .havena-pro-media-grid--gallery-preview {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* ------------------------------------------------------------
   NEARBY & SCORES
------------------------------------------------------------ */
.havena-pro-scores {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-bottom: 1.75rem;
}

.havena-pro-score {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.1rem;
  border: 1px solid var(--havena-pro-line);
  border-radius: var(--havena-pro-radius-sm);
}

.havena-pro-score__ring {
  --havena-pro-score: 90;
  width: 62px;
  height: 62px;
  flex: none;
  border-radius: 50%;
  background: conic-gradient(var(--havena-pro-blue) calc(var(--havena-pro-score) * 1%), var(--havena-pro-bg-mist) 0);
  display: flex;
  align-items: center;
  justify-content: center;
}

.havena-pro-score__ring::before {
  content: attr(data-havena-pro-score);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--havena-pro-card-background);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: var(--havena-pro-type-weight-card-value);
  font-size: 0.95rem;
}

.havena-pro-score--gold .havena-pro-score__ring {
  background: conic-gradient(var(--havena-pro-gold) calc(var(--havena-pro-score) * 1%), var(--havena-pro-bg-mist) 0);
}

.havena-pro-score--green .havena-pro-score__ring {
  background: conic-gradient(var(--havena-pro-success) calc(var(--havena-pro-score) * 1%), var(--havena-pro-bg-mist) 0);
}

.havena-pro-score strong {
  display: block;
  font-size: 0.95rem;
}

.havena-pro-score small {
  color: var(--havena-pro-slate);
  font-size: var(--havena-pro-fs-xs);
}

@media (max-width: 680px) {
  .havena-pro-scores {
    grid-template-columns: 1fr;
  }
}

/* Nearby tabs content */
.havena-pro-nearby__tabs {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 1.25rem;
}

.havena-pro-nearby__tab {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.55rem 1.05rem;
  border: 1.5px solid var(--havena-pro-line);
  border-radius: var(--havena-pro-radius-pill);
  font-size: var(--havena-pro-fs-sm);
  font-weight: var(--havena-pro-type-weight-button);
  color: var(--havena-pro-slate);
  transition:
    background var(--havena-pro-speed-fast),
    border-color var(--havena-pro-speed-fast),
    color var(--havena-pro-speed-fast);
}

.havena-pro-nearby__tab svg {
  width: 15px;
  height: 15px;
}

.havena-pro-nearby__tab:hover {
  border-color: var(--havena-pro-navy-900);
  color: var(--havena-pro-navy-900);
}

.havena-pro-nearby__tab.is-active {
  background: var(--havena-pro-navy-900);
  border-color: var(--havena-pro-navy-900);
  color: var(--havena-pro-color-dark-text);
}

.havena-pro-nearby__list li {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.85rem 0;
  border-bottom: 1px dashed var(--havena-pro-line);
  font-size: var(--havena-pro-fs-sm);
}

.havena-pro-nearby__list li:last-child {
  border-bottom: 0;
}

.havena-pro-nearby__ico {
  width: 38px;
  height: 38px;
  flex: none;
  border-radius: var(--havena-pro-radius-xs);
  background: var(--havena-pro-blue-soft);
  color: var(--havena-pro-blue);
  display: flex;
  align-items: center;
  justify-content: center;
}

.havena-pro-nearby__ico svg {
  width: 18px;
  height: 18px;
}

.havena-pro-nearby__list strong {
  display: block;
  line-height: 1.3;
}

.havena-pro-nearby__list small {
  color: var(--havena-pro-slate);
  font-size: var(--havena-pro-fs-xs);
}

.havena-pro-nearby__dist {
  margin-left: auto;
  font-weight: var(--havena-pro-type-weight-label);
  color: var(--havena-pro-ink);
  white-space: nowrap;
}

/* Energy rating */
.havena-pro-energy {
  display: grid;
  gap: 0.45rem;
}

.havena-pro-energy__row {
  display: flex;
  align-items: center;
  gap: 0.9rem;
}

.havena-pro-energy__bar {
  height: 30px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  padding-inline: 0.7rem;
  color: var(--havena-pro-color-dark-text);
  font-weight: var(--havena-pro-type-weight-card-value);
  font-size: var(--havena-pro-fs-xs);
  position: relative;
}

.havena-pro-energy__row.is-current .havena-pro-energy__bar::after {
  content: attr(data-havena-pro-energy-current);
  position: absolute;
  left: calc(100% + 12px);
  white-space: nowrap;
  background: var(--havena-pro-navy-900);
  color: var(--havena-pro-color-dark-text);
  padding: 0.35rem 0.8rem;
  border-radius: var(--havena-pro-radius-pill);
}

/* ------------------------------------------------------------
   Pro Field: Energy Class
------------------------------------------------------------ */
.havena-pro-energy-field {
  width: 100%;
  min-width: 0;
}

.havena-pro-energy-field__lead,
.havena-pro-floor-plans__lead,
.havena-pro-video-tours__lead,
.havena-pro-location__lead,
.havena-pro-tax-checkboxes__lead,
.havena-pro-pro-field-instance__heading {
  margin: 0 0 0.85rem;
  font-size: 0.78rem;
  font-weight: var(--havena-pro-type-weight-label, 600);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--havena-pro-gold-deep, #8a6d2f);
}

.havena-pro-pro-field-instance + .havena-pro-pro-field-instance {
  margin-top: 1.35rem;
  padding-top: 1.15rem;
  border-top: 1px solid var(--havena-pro-line, rgba(30, 30, 47, 0.08));
}

.havena-pro-pro-field-instance__divider {
  margin: 0 0 0.85rem;
  border: 0;
  border-top: 1px solid var(--havena-pro-line, rgba(30, 30, 47, 0.08));
}

.havena-pro-energy-field__hero {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.2rem;
  margin-bottom: 1rem;
}

.havena-pro-energy-field__hero-score {
  font-size: clamp(2rem, 1.5rem + 1.5vw, 2.75rem);
  font-weight: var(--havena-pro-type-weight-heading, 600);
  line-height: 1;
  color: var(--havena-pro-ink, #1e1e2f);
}

.havena-pro-energy-field__hero-caption {
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--havena-pro-slate, #6b7280);
}

@media (max-width: 720px) {
  .havena-pro-energy__row.is-current .havena-pro-energy__bar::after {
    position: static;
    display: inline-block;
    margin-left: 0.65rem;
  }
}

/* ------------------------------------------------------------
   Pro Field: Floor Plans
------------------------------------------------------------ */
.havena-pro-floor-plans {
  width: 100%;
  min-width: 0;
}

.havena-pro-floor-plans__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.havena-pro-floor-plans__card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  border: 1px solid var(--havena-pro-line, rgba(11, 18, 32, 0.12));
  border-radius: var(--havena-pro-radius-sm, 8px);
  background: var(--havena-pro-card-background, #fff);
  overflow: hidden;
}

.havena-pro-floor-plans__media {
  aspect-ratio: 16 / 10;
  background: var(--havena-pro-bg-soft, #f7f7f8);
  overflow: hidden;
}

.havena-pro-floor-plans__image,
.havena-pro-floor-plans__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.havena-pro-floor-plans__placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--havena-pro-gold-deep, #8a6d2f);
  opacity: 0.55;
}

.havena-pro-floor-plans__placeholder svg {
  width: 2.5rem;
  height: 2.5rem;
}

.havena-pro-floor-plans__content {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  padding: 1rem 1.05rem 1.1rem;
}

.havena-pro-floor-plans__title {
  margin: 0;
  font-size: 1.05rem;
  font-weight: var(--havena-pro-type-weight-heading, 600);
  color: var(--havena-pro-ink, #1e1e2f);
  line-height: 1.3;
}

.havena-pro-floor-plans__meta {
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem 0.85rem;
  font-size: var(--havena-pro-fs-sm, 0.95rem);
  color: var(--havena-pro-slate, #6b7280);
}

.havena-pro-floor-plans__view {
  list-style: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-top: 0.15rem;
  font-size: var(--havena-pro-fs-sm, 0.95rem);
  font-weight: var(--havena-pro-type-weight-button, 600);
  color: var(--havena-pro-gold-deep, #8a6d2f);
}

.havena-pro-floor-plans__view::-webkit-details-marker {
  display: none;
}

.havena-pro-floor-plans__expand {
  margin-top: 0.75rem;
  font-size: var(--havena-pro-fs-sm, 0.95rem);
  line-height: 1.65;
  color: color-mix(in srgb, var(--havena-pro-ink) 75%, var(--havena-pro-slate, #6b7280));
}

.havena-pro-floor-plans__expand img {
  width: 100%;
  height: auto;
  display: block;
  margin-top: 0.75rem;
  border-radius: var(--havena-pro-radius-xs, 6px);
}

@media (max-width: 768px) {
  .havena-pro-floor-plans__grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* ------------------------------------------------------------
   Pro Field: Video & Virtual Tours
------------------------------------------------------------ */
.havena-pro-video-tours {
  width: 100%;
  min-width: 0;
}

.havena-pro-video-tours__grid {
  margin-top: 0;
}

/* ------------------------------------------------------------
   Pro Field: Location & What's Nearby
------------------------------------------------------------ */
.havena-pro-location {
  width: 100%;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.havena-pro-tax-checkboxes__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.havena-pro-tax-checkboxes__list li {
  padding: 0.35rem 0.7rem;
  border: 1px solid var(--havena-pro-line);
  border-radius: var(--havena-pro-radius-pill, 999px);
  font-size: var(--havena-pro-fs-sm, 0.95rem);
  color: var(--havena-pro-ink, #1e1e2f);
  background: var(--havena-pro-card-background, #fff);
}

/* ------------------------------------------------------------
   DOCUMENTS
------------------------------------------------------------ */
.havena-pro-docs li {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.9rem 1.1rem;
  border: 1px solid var(--havena-pro-line);
  border-radius: var(--havena-pro-radius-sm);
  transition:
    border-color var(--havena-pro-speed-fast),
    background var(--havena-pro-speed-fast);
}

.havena-pro-docs li:hover {
  border-color: var(--havena-pro-blue);
  background: var(--havena-pro-blue-soft);
}

.havena-pro-docs li + li {
  margin-top: 0.7rem;
}

.havena-pro-docs__ico {
  width: 40px;
  height: 40px;
  flex: none;
  border-radius: var(--havena-pro-radius-xs);
  background: var(--havena-pro-gold-soft);
  color: var(--havena-pro-gold-deep);
  display: flex;
  align-items: center;
  justify-content: center;
}

.havena-pro-docs__ico svg {
  width: 19px;
  height: 19px;
}

.havena-pro-docs strong {
  display: block;
  font-size: var(--havena-pro-fs-sm);
}

.havena-pro-docs small {
  color: var(--havena-pro-slate-light);
  font-size: var(--havena-pro-fs-xs);
}

.havena-pro-docs a {
  margin-left: auto;
}

/* ------------------------------------------------------------
   PRO EMPTY SPACE (layout spacer)
------------------------------------------------------------ */
.havena-pro-empty-space {
  display: block;
  width: 100%;
  max-width: 100%;
  height: var(--havena-pro-empty-space-desktop, 80px);
  min-height: var(--havena-pro-empty-space-desktop, 80px);
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  pointer-events: none;
}

.havena-pro-empty-space:has(.havena-pro-empty-space__decoration) {
  display: flex;
  align-items: center;
  justify-content: center;
}

.havena-pro-empty-space__decoration {
  display: flex;
  align-items: center;
  justify-content: center;
  width: var(--havena-pro-empty-space-decoration-width, 100%);
  max-width: 100%;
  color: var(--havena-pro-color-border, rgba(16, 24, 40, 0.18));
  pointer-events: none;
}

.havena-pro-empty-space__decoration-line {
  flex: 1 1 auto;
  height: 0;
  border-top-width: 1px;
  border-top-style: var(--havena-pro-empty-space-decoration-style, solid);
  border-top-color: currentColor;
}

.havena-pro-empty-space__decoration-shape {
  flex: 0 0 auto;
  width: 8px;
  height: 8px;
  margin: 0 12px;
  background: currentColor;
  transform: rotate(45deg);
}

.havena-pro-empty-space__decoration--line .havena-pro-empty-space__decoration-line {
  width: 100%;
  flex: none;
}

.havena-pro-empty-space__decoration--center-shape {
  justify-content: center;
}

.havena-pro-empty-space__decoration--line-center-shape {
  gap: 0;
}

.havena-pro-empty-space__decoration--zigzag {
  height: 8px;
  background-image: repeating-linear-gradient(
    135deg,
    transparent,
    transparent 4px,
    currentColor 4px,
    currentColor 5px
  );
  background-size: 10px 8px;
}

.havena-pro-empty-space__decoration--dots {
  height: 6px;
  background-image: radial-gradient(circle, currentColor 1px, transparent 1.5px);
  background-size: 12px 6px;
  background-position: center;
}

.havena-pro-empty-space__decoration--double-line {
  flex-direction: column;
  gap: 5px;
  height: auto;
  align-items: stretch;
}

.havena-pro-empty-space__decoration--double-line .havena-pro-empty-space__decoration-line {
  width: 100%;
  flex: none;
}

.havena-pro-empty-space__decoration--fade-line {
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent 0%,
    currentColor 18%,
    currentColor 82%,
    transparent 100%
  );
  opacity: 0.85;
}

.havena-pro-empty-space__decoration--diamond-pattern {
  height: 6px;
  background-image:
    radial-gradient(circle at 20% 50%, currentColor 0.5px, transparent 1px),
    linear-gradient(135deg, transparent 44%, currentColor 44%, currentColor 56%, transparent 56%);
  background-size: 14px 6px, 14px 6px;
  background-position: 0 center, 7px center;
  background-repeat: repeat-x;
  opacity: 0.88;
}

.havena-pro-empty-space__decoration-cross {
  flex: 0 0 auto;
  width: 9px;
  height: 9px;
  margin: 0 10px;
  position: relative;
}

.havena-pro-empty-space__decoration-cross::before,
.havena-pro-empty-space__decoration-cross::after {
  content: "";
  position: absolute;
  background: currentColor;
}

.havena-pro-empty-space__decoration-cross::before {
  top: 50%;
  left: 0;
  right: 0;
  height: 1px;
  transform: translateY(-50%);
}

.havena-pro-empty-space__decoration-cross::after {
  left: 50%;
  top: 0;
  bottom: 0;
  width: 1px;
  transform: translateX(-50%);
}

.havena-pro-empty-space__decoration--cross {
  gap: 0;
}

.havena-pro-empty-space__decoration--wave {
  height: 5px;
  -webkit-mask-image: radial-gradient(ellipse 6px 3px at 6px 100%, #000 70%, transparent 71%);
  mask-image: radial-gradient(ellipse 6px 3px at 6px 100%, #000 70%, transparent 71%);
  -webkit-mask-size: 12px 5px;
  mask-size: 12px 5px;
  -webkit-mask-repeat: repeat-x;
  mask-repeat: repeat-x;
  -webkit-mask-position: center;
  mask-position: center;
  background: currentColor;
  opacity: 0.88;
}

.havena-pro-panel-single__section-fields[data-havena-pro-section-columns] > .havena-pro-empty-space {
  grid-column: auto;
}

@media (max-width: 980px) {
  .havena-pro-empty-space {
    height: var(--havena-pro-empty-space-tablet, 60px);
    min-height: var(--havena-pro-empty-space-tablet, 60px);
  }
}

@media (max-width: 767px) {
  .havena-pro-empty-space {
    height: var(--havena-pro-empty-space-mobile, 40px);
    min-height: var(--havena-pro-empty-space-mobile, 40px);
  }
}

@media (max-width: 560px) {
  .havena-pro-docs li {
    flex-wrap: wrap;
    align-items: flex-start;
  }

  .havena-pro-docs a {
    margin-left: 0;
    margin-top: 0.35rem;
  }
}

/* ------------------------------------------------------------
   MINI MORTGAGE CALC
------------------------------------------------------------ */
.havena-pro-calc {
  display: grid;
  grid-template-columns: 1fr 240px;
  gap: 2rem;
  align-items: center;
}

.havena-pro-calc__form {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

.havena-pro-calc__donut {
  --havena-pro-p1: 72;
  --havena-pro-p2: 18;
  width: 190px;
  height: 190px;
  margin: 0 auto;
  border-radius: 50%;
  background: conic-gradient(
    var(--havena-pro-blue) 0 calc(var(--havena-pro-p1) * 1%),
    var(--havena-pro-gold) calc(var(--havena-pro-p1) * 1%) calc((var(--havena-pro-p1) + var(--havena-pro-p2)) * 1%),
    var(--havena-pro-navy-700) 0
  );
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.4s;
}

.havena-pro-calc__donut > div {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  background: var(--havena-pro-card-background);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  box-shadow: var(--havena-pro-shadow-sm);
}

.havena-pro-calc__donut strong {
  font-size: 1.35rem;
  line-height: 1.15;
}

.havena-pro-calc__donut small {
  color: var(--havena-pro-slate);
  font-size: var(--havena-pro-fs-xs);
}

.havena-pro-calc__legend {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem 1.4rem;
  margin-top: 1.4rem;
  grid-column: 1 / -1;
  font-size: var(--havena-pro-fs-xs);
  color: var(--havena-pro-slate);
}

.havena-pro-calc__legend span {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}

.havena-pro-calc__legend i {
  width: 11px;
  height: 11px;
  border-radius: 3px;
}

@media (max-width: 780px) {
  .havena-pro-calc {
    grid-template-columns: 1fr;
  }
  .havena-pro-calc__form {
    grid-template-columns: 1fr;
  }
}

/* ------------------------------------------------------------
   SIDEBAR
------------------------------------------------------------ */
.havena-pro-dside {
  position: sticky;
  top: calc(var(--havena-pro-header-h) + 1.25rem);
  display: grid;
  /* Explicit minmax(0,1fr) column: the implicit auto column would size
     itself to the widest card content and overflow small viewports. */
  grid-template-columns: minmax(0, 1fr);
  gap: 1.5rem;
}

/* Core widget-area bridge: keep each .widget as a grid item of .havena-pro-dside. */
.havena-pro-dside__widgets {
  display: contents;
}

/* Pro sidebar widgets: drop the WP widget shell so .havena-pro-side-card grids cleanly. */
.havena-pro-dside .havena-pro-sidebar-properties-widget,
.havena-pro-dside .havena-pro-sidebar-agent-widget,
.havena-pro-dside .havena-pro-sidebar-tour-widget,
.havena-pro-dside .havena-pro-sidebar-author-expertise-widget,
.havena-pro-dside .havena-pro-sidebar-author-writing-stats-widget,
.havena-pro-dside .havena-pro-sidebar-author-recent-activity-widget,
.havena-pro-dside .havena-pro-sidebar-author-follow-widget {
  display: contents;
}

/* Compact sidebar property lists */
.havena-pro-sidebar-properties__list {
  display: grid;
  gap: 0.85rem;
}

.havena-pro-sidebar-property {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  gap: 0.85rem;
  align-items: start;
  color: inherit;
  text-decoration: none;
}

.havena-pro-sidebar-property:hover .havena-pro-sidebar-property__title {
  color: var(--havena-pro-blue);
}

.havena-pro-sidebar-property__media {
  display: block;
  width: 72px;
  height: 72px;
  border-radius: var(--havena-pro-radius-sm);
  overflow: hidden;
  background: var(--havena-pro-gold-soft);
}

.havena-pro-sidebar-property__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.havena-pro-sidebar-property__gap {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  color: var(--havena-pro-gold-deep);
}

.havena-pro-sidebar-property__gap svg {
  width: 28px;
  height: 28px;
}

.havena-pro-sidebar-property__body {
  display: grid;
  gap: 0.2rem;
  min-width: 0;
}

.havena-pro-sidebar-property__body .havena-pro-badge {
  justify-self: start;
  font-size: 0.65rem;
  padding: 0.15rem 0.45rem;
}

.havena-pro-sidebar-property__title {
  display: block;
  font-size: 0.95rem;
  font-weight: var(--havena-pro-type-weight-heading);
  line-height: 1.3;
  overflow-wrap: anywhere;
}

.havena-pro-sidebar-property__price {
  display: block;
  font-size: var(--havena-pro-fs-sm);
  font-weight: 600;
  color: var(--havena-pro-gold-deep);
}

.havena-pro-sidebar-property__loc {
  display: block;
  font-size: var(--havena-pro-fs-xs);
  color: var(--havena-pro-slate);
  overflow-wrap: anywhere;
}

@media (max-width: 1120px) {
  .havena-pro-dside {
    position: static;
  }
}

.havena-pro-side-card {
  background: var(--havena-pro-card-background);
  border: 1px solid var(--havena-pro-line);
  border-radius: var(--havena-pro-radius);
  padding: 1.6rem 1.5rem;
}

.havena-pro-side-card__title {
  font-size: 1.05rem;
  font-weight: var(--havena-pro-type-weight-heading);
  letter-spacing: 0;
  margin-bottom: 1.2rem;
}

/* Agent block */
.havena-pro-side-agent {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding-bottom: 1.25rem;
  margin-bottom: 1.25rem;
  border-bottom: 1px solid var(--havena-pro-line);
}

.havena-pro-side-agent img {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--havena-pro-gold-soft);
}

.havena-pro-side-agent strong {
  display: block;
  font-size: 1.05rem;
}

.havena-pro-side-agent strong a:hover {
  color: var(--havena-pro-blue);
}

.havena-pro-side-agent small {
  color: var(--havena-pro-slate);
  font-size: var(--havena-pro-fs-xs);
  display: block;
  margin: 0.1rem 0 0.3rem;
}

.havena-pro-side-agent .havena-pro-stars svg {
  width: 12px;
  height: 12px;
}

.havena-pro-side-card form {
  display: grid;
  gap: 0.85rem;
}

.havena-pro-contact-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(0, 1fr));
  gap: 0.6rem;
  margin-top: 1rem;
}

.havena-pro-contact-strip a {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  padding: 0.8rem 0.4rem;
  border: 1.5px solid var(--havena-pro-line);
  border-radius: var(--havena-pro-radius-sm);
  font-size: var(--havena-pro-fs-xs);
  font-weight: var(--havena-pro-type-weight-button);
  color: var(--havena-pro-ink);
  transition:
    transform var(--havena-pro-speed-fast),
    box-shadow var(--havena-pro-speed-fast);
}

.havena-pro-contact-strip svg {
  width: 18px;
  height: 18px;
}

.havena-pro-contact-strip a:hover {
  transform: translateY(-2px);
  box-shadow: var(--havena-pro-shadow-sm);
}

.havena-pro-contact-strip a:nth-child(1):hover { border-color: #25D366; color: #25D366; }
.havena-pro-contact-strip a:nth-child(2):hover { border-color: var(--havena-pro-blue); color: var(--havena-pro-blue); }
.havena-pro-contact-strip a:nth-child(3):hover { border-color: var(--havena-pro-gold-deep); color: var(--havena-pro-gold-deep); }

/* Schedule a Tour chrome/form/embed styles live in Havenlytics Pro:
   modules/schedule-tour/assets/frontend/css/schedule-tour.css (gated load). */

/* Safety note — component styles live in main.css (.havena-pro-side-note)
   because it is shared with auth pages that don't load details.css. */

/* ------------------------------------------------------------
   STICKY MOBILE CTA
------------------------------------------------------------ */
.havena-pro-mobile-cta {
  display: none;
}

@media (max-width: 900px) {
  .havena-pro-mobile-cta {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 940;
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 0.8rem var(--havena-pro-gutter);
    padding-bottom: calc(0.8rem + env(safe-area-inset-bottom));
    background: var(--havena-pro-overlay-frost-strong);
    backdrop-filter: blur(14px);
    border-top: 1px solid var(--havena-pro-line);
    box-shadow: 0 -10px 30px rgba(10, 22, 40, 0.1);
  }

  .havena-pro-mobile-cta__price {
    line-height: 1.2;
  }

  .havena-pro-mobile-cta__price strong {
    font-size: 1.15rem;
    display: block;
  }

  .havena-pro-mobile-cta__price small {
    color: var(--havena-pro-slate);
    font-size: var(--havena-pro-fs-xs);
  }

  .havena-pro-mobile-cta .havena-pro-btn {
    margin-left: auto;
  }

  body:has(.havena-pro-mobile-cta) .havena-pro-to-top {
    bottom: 6rem;
  }

  body:has(.havena-pro-mobile-cta) .havena-pro-float-contact {
    display: none;
  }

  /*
   * Theme sticky CTA + Core mobile contact dock both defaulted to bottom:0
   * (z-index dock 1100 > CTA 940) — agent name clipped / bars stacked on
   * top of each other. Lift the Core dock above the Theme CTA on singles.
   * No :has() — body classes from Theme + Core dock bootstrap.
   */
  body.havena-pro-is-property-single.hvnly-has-mobile-contact-dock .hvnly-mobile-contact-dock {
    bottom: 4.75rem;
  }

  body.havena-pro-is-property-single.hvnly-has-mobile-contact-dock .havena-pro-to-top {
    bottom: calc(10.25rem + env(safe-area-inset-bottom, 0px));
  }

  body.havena-pro-is-property-single.hvnly-has-mobile-contact-dock .havena-pro-mobile-cta {
    z-index: 1110;
  }

  body.havena-pro-is-property-single.hvnly-has-mobile-contact-dock .hvnly-mobile-contact-dock .hvnly-mobile-contact-dock__agent,
  body.havena-pro-is-property-single.hvnly-has-mobile-contact-dock .hvnly-mobile-contact-dock .hvnly-mobile-contact-dock__meta {
    min-width: 0;
  }

  body.havena-pro-is-property-single.hvnly-has-mobile-contact-dock .hvnly-mobile-contact-dock .hvnly-mobile-contact-name__text,
  body.havena-pro-is-property-single.hvnly-has-mobile-contact-dock .hvnly-mobile-contact-dock .hvnly-mobile-contact-role {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 100%;
  }

  /* Free horizontal room for the agent name on phones. */
  body.havena-pro-is-property-single.hvnly-has-mobile-contact-dock .hvnly-mobile-contact-dock {
    --hvnly-mcd-btn-size: 40px;
    --hvnly-mcd-gap: 6px;
    --hvnly-mcd-pad-x: 10px;
  }
}

@media (max-width: 400px) {
  body.havena-pro-is-property-single.hvnly-has-mobile-contact-dock .hvnly-mobile-contact-dock .hvnly-mobile-contact-role {
    display: none;
  }
}

/* ------------------------------------------------------------
   UNIFIED GALLERY CARD — 2 columns, max 4 visible tiles
------------------------------------------------------------ */
.havena-pro-gallery-card {
  width: 100%;
  margin: 0;
}

.havena-pro-gallery-card__media {
  width: 100%;
}

.havena-pro-gallery-card__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
}

.havena-pro-gallery-card__item {
  position: relative;
  min-width: 0;
  aspect-ratio: 4 / 3;
  border-radius: var(--havena-pro-radius-sm, 12px);
  overflow: hidden;
  background: #0b1220;
}

/* Items beyond the visible 4 stay in DOM for lightbox sources only. */
.havena-pro-gallery-card__item--lightbox-only,
.havena-pro-gallery-card__item:nth-child(n + 5) {
  display: none !important;
}

.havena-pro-gallery-card__link {
  display: block;
  position: relative;
  width: 100%;
  height: 100%;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
  outline: none;
}

.havena-pro-gallery-card__link:focus-visible {
  outline: 2px solid var(--havena-pro-gold, #c9a227);
  outline-offset: 2px;
}

.havena-pro-gallery-card__image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1);
  transition: transform 0.45s ease;
}

.havena-pro-gallery-card__overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(180deg, rgba(6, 12, 24, 0) 40%, rgba(6, 12, 24, 0.28) 100%);
  opacity: 0.55;
  transition: opacity 0.35s ease, background 0.35s ease;
  pointer-events: none;
}

.havena-pro-gallery-card__link:hover .havena-pro-gallery-card__image,
.havena-pro-gallery-card__link:focus-visible .havena-pro-gallery-card__image {
  transform: scale(1.05);
}

.havena-pro-gallery-card__link:hover .havena-pro-gallery-card__overlay,
.havena-pro-gallery-card__link:focus-visible .havena-pro-gallery-card__overlay {
  opacity: 1;
  background: linear-gradient(180deg, rgba(6, 12, 24, 0.12) 20%, rgba(6, 12, 24, 0.45) 100%);
}

.havena-pro-gallery-card__more {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(8, 14, 26, 0.62);
  color: #fff;
  font-size: clamp(1rem, 2vw, 1.2rem);
  font-weight: 600;
  letter-spacing: 0.02em;
  backdrop-filter: blur(2px);
  transition: background 0.3s ease;
}

.havena-pro-gallery-card__link:hover .havena-pro-gallery-card__more,
.havena-pro-gallery-card__link:focus-visible .havena-pro-gallery-card__more {
  background: rgba(5, 11, 22, 0.78);
}

.havena-pro-gallery-card__count {
  margin-top: 0.75rem;
  color: var(--havena-pro-slate, #5b667a);
  font-size: var(--havena-pro-fs-sm, 0.9rem);
}

.havena-pro-gallery-card__count p {
  margin: 0;
}

@media (max-width: 780px) {
  .havena-pro-gallery-card__grid {
    gap: 0.65rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .havena-pro-gallery-card__image,
  .havena-pro-gallery-card__overlay,
  .havena-pro-gallery-card__more {
    transition: none;
  }

  .havena-pro-gallery-card__link:hover .havena-pro-gallery-card__image,
  .havena-pro-gallery-card__link:focus-visible .havena-pro-gallery-card__image {
    transform: none;
  }
}

/* ------------------------------------------------------------
   LIGHTBOX
------------------------------------------------------------ */
.havena-pro-lightbox {
  position: fixed;
  inset: 0;
  z-index: 140000;
  background: rgba(3, 7, 14, 0.94);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 3.5rem 1rem 1rem;
  visibility: hidden;
  opacity: 0;
  transition: opacity 0.35s var(--havena-pro-ease), visibility 0.35s;
}

.havena-pro-lightbox.is-open {
  visibility: visible;
  opacity: 1;
}

.havena-pro-lightbox__img {
  max-width: min(1100px, 92vw);
  max-height: 72vh;
  border-radius: var(--havena-pro-radius-sm);
  object-fit: contain;
  animation: havena-pro-tag-in 0.35s var(--havena-pro-ease);
}

.havena-pro-lightbox__count {
  position: absolute;
  top: 1.4rem;
  left: 1.6rem;
  color: rgba(255, 255, 255, 0.75);
  font-size: var(--havena-pro-fs-sm);
  font-weight: var(--havena-pro-type-weight-button);
}

.havena-pro-lightbox__close {
  position: absolute;
  top: 1.1rem;
  right: 1.4rem;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  color: var(--havena-pro-color-dark-text);
  display: flex;
  align-items: center;
  justify-content: center;
  transition:
    background var(--havena-pro-speed-fast),
    color var(--havena-pro-speed-fast),
    transform var(--havena-pro-speed-fast);
}

.havena-pro-lightbox__close:hover {
  background: rgba(255, 255, 255, 0.25);
  transform: rotate(90deg);
}

.havena-pro-lightbox__close svg {
  width: 19px;
  height: 19px;
}

.havena-pro-lightbox__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: var(--havena-pro-color-dark-text);
  display: flex;
  align-items: center;
  justify-content: center;
  transition:
    background var(--havena-pro-speed-fast),
    border-color var(--havena-pro-speed-fast),
    color var(--havena-pro-speed-fast);
}

.havena-pro-lightbox__nav:hover {
  background: var(--havena-pro-gold);
  border-color: var(--havena-pro-gold);
  color: var(--havena-pro-navy-950);
}

.havena-pro-lightbox__nav svg {
  width: 22px;
  height: 22px;
}

.havena-pro-lightbox__nav--prev { left: 1.5rem; }
.havena-pro-lightbox__nav--next { right: 1.5rem; }

.havena-pro-lightbox__thumbs {
  display: flex;
  gap: 0.6rem;
  margin-top: 1.2rem;
  overflow-x: auto;
  max-width: 92vw;
  padding: 4px;
}

.havena-pro-lightbox__thumbs button {
  width: 76px;
  height: 54px;
  flex: none;
  border-radius: 8px;
  overflow: hidden;
  opacity: 0.45;
  transition:
    opacity var(--havena-pro-speed-fast),
    border-color var(--havena-pro-speed-fast);
  padding: 0;
  border: 2px solid transparent;
}

.havena-pro-lightbox__thumbs button img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.havena-pro-lightbox__thumbs button:hover {
  opacity: 0.8;
}

.havena-pro-lightbox__thumbs button.is-active {
  opacity: 1;
  border-color: var(--havena-pro-gold);
}

/* ------------------------------------------------------------
   LIGHTBOX — unified white gallery + agent modal
------------------------------------------------------------ */
.havena-pro-lightbox--with-agent {
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.havena-pro-lightbox--with-agent .havena-pro-lightbox__stage {
  position: relative;
  display: flex;
  flex-direction: column;
  width: min(1180px, calc(100vw - 1.5rem));
  max-height: calc(100vh - 2rem);
  margin: 0 auto;
  min-height: 0;
  overflow: hidden auto;
  overscroll-behavior: contain;
  background: var(--havena-pro-card-background, #fff);
  color: var(--havena-pro-ink);
  border-radius: clamp(16px, 2vw, 22px);
  box-shadow:
    0 24px 64px rgba(3, 7, 14, 0.35),
    0 2px 8px rgba(3, 7, 14, 0.12);
}

.havena-pro-lightbox--with-agent .havena-pro-lightbox__count {
  top: 0.95rem;
  left: 1.1rem;
  z-index: 3;
  color: var(--havena-pro-ink);
  background: rgba(255, 255, 255, 0.88);
  border-radius: var(--havena-pro-radius-pill, 999px);
  padding: 0.28rem 0.7rem;
  box-shadow: 0 1px 4px rgba(3, 7, 14, 0.08);
}

.havena-pro-lightbox--with-agent .havena-pro-lightbox__close {
  top: 0.7rem;
  right: 0.7rem;
  z-index: 4;
  background: rgba(15, 23, 42, 0.06);
  color: var(--havena-pro-ink);
}

.havena-pro-lightbox--with-agent .havena-pro-lightbox__close:hover {
  background: rgba(15, 23, 42, 0.12);
  color: var(--havena-pro-ink);
}

.havena-pro-lightbox--with-agent .havena-pro-lightbox__gallery {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-start;
  flex: 1 1 auto;
  min-width: 0;
  min-height: 0;
  gap: 0.85rem;
  padding: 2.75rem 1rem 1rem;
  background: #f4f6f8;
}

.havena-pro-lightbox--with-agent .havena-pro-lightbox__frame {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 0;
  flex: 1 1 auto;
}

.havena-pro-lightbox--with-agent .havena-pro-lightbox__img {
  max-width: 100%;
  max-height: min(56vh, calc(100vh - 14rem));
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: var(--havena-pro-radius-sm, 10px);
  background: var(--havena-pro-card-background, #fff);
  box-shadow: 0 8px 24px rgba(3, 7, 14, 0.1);
}

.havena-pro-lightbox--with-agent .havena-pro-lightbox__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 46px;
  height: 46px;
  background: rgba(15, 23, 42, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.22);
  color: #fff;
}

.havena-pro-lightbox--with-agent .havena-pro-lightbox__nav:hover {
  background: var(--havena-pro-gold);
  border-color: var(--havena-pro-gold);
  color: var(--havena-pro-navy-950);
}

.havena-pro-lightbox--with-agent .havena-pro-lightbox__nav--prev {
  left: 0.35rem;
}

.havena-pro-lightbox--with-agent .havena-pro-lightbox__nav--next {
  right: 0.35rem;
}

.havena-pro-lightbox--with-agent .havena-pro-lightbox__thumbs {
  flex: 0 0 auto;
  max-width: 100%;
  margin-top: 0;
  align-self: stretch;
  padding: 0 0.15rem 0.15rem;
}

.havena-pro-lightbox--with-agent .havena-pro-lightbox__thumbs button {
  width: 72px;
  height: 52px;
  border-radius: 8px;
  background: var(--havena-pro-card-background, #fff);
}

.havena-pro-lightbox__agent {
  flex: 0 0 auto;
  width: 100%;
  max-height: none;
  overflow: visible;
  background: transparent;
  color: var(--havena-pro-ink);
  border-radius: 0;
  box-shadow: none;
  border-top: 1px solid var(--havena-pro-line, #e5e7eb);
}

.havena-pro-lightbox__agent-inner {
  display: flex;
  flex-direction: column;
  padding: 1.15rem 1.15rem 1.35rem;
}

.havena-pro-lightbox__agent-title {
  order: 1;
  font-size: 1.1rem;
  font-weight: var(--havena-pro-type-weight-heading);
  margin: 0 0 0.95rem;
}

.havena-pro-lightbox__agent-summary {
  order: 2;
  padding-bottom: 0.95rem;
  margin-bottom: 0.95rem;
  border-bottom-color: var(--havena-pro-line, #e5e7eb);
}

.havena-pro-lightbox__agent-rating {
  font-size: var(--havena-pro-fs-xs);
  font-weight: 600;
}

.havena-pro-lightbox__agent-actions {
  order: 5;
  display: none;
  margin-top: 0.95rem;
}

.havena-pro-lightbox__agent:has(.havena-pro-lightbox__agent-form-wrap.is-expanded) .havena-pro-lightbox__agent-actions {
  display: grid;
}

.havena-pro-lightbox__agent-toggle {
  order: 3;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  margin-bottom: 0.85rem;
}

.havena-pro-lightbox__agent-form-wrap {
  order: 4;
  display: none;
}

.havena-pro-lightbox__agent-form-wrap.is-expanded {
  display: block;
}

.havena-pro-lightbox__agent-form {
  display: grid;
  gap: 0.75rem;
}

.havena-pro-lightbox__agent-form .havena-pro-textarea {
  min-height: 90px;
}

/* Desktop/tablet-wide: two columns inside one white modal. */
@media (min-width: 960px) {
  .havena-pro-lightbox--with-agent {
    padding: 1.5rem;
  }

  .havena-pro-lightbox--with-agent .havena-pro-lightbox__stage {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(300px, 34%);
    grid-template-rows: minmax(0, 1fr);
    align-items: stretch;
    width: min(1280px, calc(100vw - 2.5rem));
    max-height: calc(100vh - 3rem);
    overflow: hidden;
  }

  .havena-pro-lightbox--with-agent .havena-pro-lightbox__gallery {
    grid-column: 1;
    grid-row: 1;
    height: 100%;
    max-height: 100%;
    padding: 2.85rem 1.15rem 1.15rem;
  }

  .havena-pro-lightbox--with-agent .havena-pro-lightbox__img {
    max-width: 100%;
    max-height: calc(100vh - 11.5rem);
  }

  .havena-pro-lightbox--with-agent .havena-pro-lightbox__thumbs {
    align-self: flex-start;
    max-width: 100%;
  }

  .havena-pro-lightbox__agent {
    grid-column: 2;
    grid-row: 1;
    width: auto;
    min-width: 0;
    height: 100%;
    max-height: 100%;
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
    border-top: 0;
    border-left: 1px solid var(--havena-pro-line, #e5e7eb);
    align-self: stretch;
  }

  .havena-pro-lightbox__agent-inner {
    padding: 2.85rem 1.35rem 1.45rem;
    min-height: 100%;
    box-sizing: border-box;
  }

  .havena-pro-lightbox__agent-actions {
    order: 3;
    display: grid;
    margin-top: 0;
    margin-bottom: 1rem;
  }

  .havena-pro-lightbox__agent-toggle {
    display: none;
  }

  .havena-pro-lightbox__agent-form-wrap,
  .havena-pro-lightbox__agent-form-wrap.is-expanded {
    order: 4;
    display: block;
  }
}

@media (min-width: 1200px) {
  .havena-pro-lightbox--with-agent .havena-pro-lightbox__stage {
    grid-template-columns: minmax(0, 1fr) minmax(320px, 32%);
  }

  .havena-pro-lightbox--with-agent .havena-pro-lightbox__img {
    max-height: calc(100vh - 10.5rem);
  }
}

@media (prefers-reduced-motion: reduce) {
  .havena-pro-lightbox--with-agent .havena-pro-lightbox__img {
    animation: none;
  }
}

/* ------------------------------------------------------------
   LUXURY VARIANT — full-bleed hero slider
------------------------------------------------------------ */
.havena-pro-dhero {
  position: relative;
  height: clamp(560px, 88vh, 820px);
  isolation: isolate;
  color: var(--havena-pro-color-dark-text);
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}

.havena-pro-dhero__slide {
  position: absolute;
  inset: 0;
  z-index: -2;
  opacity: 0;
  transition: opacity 1s var(--havena-pro-ease);
}

.havena-pro-dhero__slide.is-active {
  opacity: 1;
}

.havena-pro-dhero__slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.havena-pro-dhero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(to top, rgba(5, 11, 22, 0.92), rgba(5, 11, 22, 0.15) 55%, rgba(5, 11, 22, 0.35));
}

.havena-pro-dhero__thumbs {
  position: absolute;
  right: var(--havena-pro-gutter);
  bottom: 3rem;
  display: flex;
  gap: 0.6rem;
  z-index: 2;
}

.havena-pro-dhero__thumbs button {
  width: 84px;
  height: 58px;
  border-radius: 10px;
  overflow: hidden;
  border: 2px solid rgba(255, 255, 255, 0.35);
  opacity: 0.6;
  padding: 0;
  transition:
    opacity var(--havena-pro-speed-fast),
    border-color var(--havena-pro-speed-fast),
    transform var(--havena-pro-speed-fast);
}

.havena-pro-dhero__thumbs button img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.havena-pro-dhero__thumbs button.is-active {
  opacity: 1;
  border-color: var(--havena-pro-gold);
  transform: translateY(-4px);
}

@media (max-width: 900px) {
  .havena-pro-dhero__thumbs {
    display: none;
  }
}

/* ------------------------------------------------------------
   MODERN VARIANT — split hero
------------------------------------------------------------ */
.havena-pro-dsplit {
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  min-height: 620px;
  padding-top: calc(var(--havena-pro-header-h) + 42px);
}

.havena-pro-dsplit__media {
  position: relative;
  overflow: hidden;
}

.havena-pro-dsplit__media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.havena-pro-dsplit__media .havena-pro-btn {
  position: absolute;
  bottom: 1.5rem;
  left: 1.5rem;
  z-index: 2;
}

.havena-pro-dsplit__body {
  background: var(--havena-pro-navy-900);
  color: var(--havena-pro-color-dark-muted);
  padding: clamp(2rem, 4vw, 3.5rem);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

@media (max-width: 900px) {
  .havena-pro-dsplit {
    grid-template-columns: 1fr;
  }
  .havena-pro-dsplit__media {
    min-height: 380px;
  }
}

/* ------------------------------------------------------------
   LUXURY v2 — inset editorial hero (Sotheby's-grade)
------------------------------------------------------------ */
.havena-pro-dhero--inset {
  height: auto;
  display: block;
  background: var(--havena-pro-navy-950);
  padding: calc(var(--havena-pro-header-h) + 42px + clamp(1.5rem, 3vw, 2.75rem)) var(--havena-pro-gutter) clamp(3rem, 6vw, 5rem);
}

.havena-pro-dhero--inset::after {
  display: none;
}

.havena-pro-dhero__frame {
  position: relative;
  width: min(1400px, 100%);
  margin-inline: auto;
  height: clamp(500px, 72vh, 700px);
  border-radius: var(--havena-pro-radius-lg);
  overflow: hidden;
  isolation: isolate;
  display: flex;
  align-items: flex-end;
}

.havena-pro-dhero__frame::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(to top, rgba(5, 11, 22, 0.9), rgba(5, 11, 22, 0.08) 52%, rgba(5, 11, 22, 0.28));
}

.havena-pro-dhero__frame .havena-pro-dhero__thumbs {
  right: 2rem;
  bottom: 2rem;
}

.havena-pro-dhero__frame-body {
  position: relative;
  z-index: 1;
  padding: clamp(1.75rem, 4vw, 3.25rem);
  max-width: 780px;
}

.havena-pro-dhero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  font-size: var(--havena-pro-fs-xs);
  font-weight: var(--havena-pro-type-weight-label);
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--havena-pro-gold);
  margin-bottom: 1.4rem;
}

.havena-pro-dhero__eyebrow::before {
  content: "";
  width: 44px;
  height: 1px;
  background: var(--havena-pro-gold);
  opacity: 0.7;
}

.havena-pro-dhero__title {
  font-size: clamp(2.6rem, 5.2vw, 4.4rem);
  color: var(--havena-pro-color-dark-text);
  line-height: 1.06;
  margin-bottom: 1.1rem;
  letter-spacing: 0.005em;
}

.havena-pro-dhero__title em {
  font-style: italic;
  color: var(--havena-pro-gold);
}

.havena-pro-dhero__addr {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  color: rgba(255, 255, 255, 0.78);
  font-size: 1.05rem;
  letter-spacing: 0.02em;
}

.havena-pro-dhero__addr svg {
  width: 17px;
  height: 17px;
  color: var(--havena-pro-gold);
}

/* Meta / price / CTA bar under the frame */
.havena-pro-dhero__bar {
  width: min(1400px, 100%);
  margin: clamp(1.5rem, 3vw, 2.25rem) auto 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem 2.5rem;
  flex-wrap: wrap;
  color: rgba(255, 255, 255, 0.7);
}

.havena-pro-dhero__stats {
  display: flex;
  align-items: center;
  gap: clamp(1.25rem, 3vw, 2.5rem);
  flex-wrap: wrap;
}

.havena-pro-dhero__stat {
  text-align: left;
}

.havena-pro-dhero__stat strong {
  display: block;
  font-family: var(--havena-pro-font-family-heading);
  font-size: clamp(1.35rem, 2vw, 1.7rem);
  color: var(--havena-pro-color-dark-text);
  line-height: 1.2;
}

.havena-pro-dhero__stat small {
  font-size: var(--havena-pro-fs-xs);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);
}

.havena-pro-dhero__stat--price strong {
  color: var(--havena-pro-gold);
}

.havena-pro-dhero__divider {
  width: 1px;
  height: 42px;
  background: var(--havena-pro-color-dark-faint);
}

.havena-pro-dhero__cta {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  flex-wrap: wrap;
}

/* Luxury editorial intro */
.havena-pro-lux-intro {
  max-width: 840px;
  margin-inline: auto;
  text-align: center;
}

.havena-pro-lux-intro__mark {
  display: inline-flex;
  width: 52px;
  height: 1px;
  background: var(--havena-pro-gold);
  margin-bottom: 2rem;
}

.havena-pro-lux-intro p {
  font-family: var(--havena-pro-font-family-heading);
  font-size: clamp(1.35rem, 2.4vw, 1.9rem);
  line-height: 1.55;
  color: var(--havena-pro-ink);
}

.havena-pro-lux-intro p em {
  font-style: italic;
  color: var(--havena-pro-gold-deep);
}

.havena-pro-lux-intro footer {
  margin-top: 1.75rem;
  font-size: var(--havena-pro-fs-xs);
  font-weight: var(--havena-pro-type-weight-label);
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--havena-pro-slate-light);
}

/* Luxury gallery strip */
.havena-pro-lux-strip {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 1rem;
  width: min(1400px, 100%);
  margin: clamp(2rem, 4vw, 3rem) auto 0;
}

.havena-pro-lux-strip button {
  position: relative;
  aspect-ratio: 16 / 9.5;
  border-radius: var(--havena-pro-radius);
  overflow: hidden;
  padding: 0;
  cursor: zoom-in;
}

.havena-pro-lux-strip button img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.9s var(--havena-pro-ease);
}

.havena-pro-lux-strip button:hover img {
  transform: scale(1.06);
}

.havena-pro-lux-strip .havena-pro-gallery__more {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  background: var(--havena-pro-overlay-dark);
  color: var(--havena-pro-color-dark-text);
  font-weight: var(--havena-pro-type-weight-label);
  font-size: 0.95rem;
  backdrop-filter: blur(2px);
}

.havena-pro-lux-strip .havena-pro-gallery__more svg {
  width: 24px;
  height: 24px;
}

@media (max-width: 900px) {
  .havena-pro-lux-strip {
    grid-template-columns: 1fr 1fr;
  }
  .havena-pro-lux-strip button:first-child {
    grid-column: span 2;
  }
  .havena-pro-dhero__divider {
    display: none;
  }
}

/* ------------------------------------------------------------
   MODERN v2 — rebalanced split hero
------------------------------------------------------------ */
.havena-pro-dsplit {
  padding-top: 0;
  min-height: min(860px, 94vh);
}

.havena-pro-dsplit__body {
  padding-top: calc(var(--havena-pro-header-h) + 42px + 2rem);
  padding-bottom: clamp(2.5rem, 4vw, 3.5rem);
}

.havena-pro-dsplit__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-bottom: 1.9rem;
}

.havena-pro-dsplit__chips span {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--havena-pro-radius-pill);
  background: var(--havena-pro-color-dark-ghost);
  font-size: var(--havena-pro-fs-sm);
  font-weight: var(--havena-pro-type-weight-button);
  color: rgba(255, 255, 255, 0.85);
}

.havena-pro-dsplit__chips svg {
  width: 15px;
  height: 15px;
  color: var(--havena-pro-gold);
}

.havena-pro-dsplit__thumbs {
  position: absolute;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 2;
  display: flex;
  gap: 0.55rem;
}

.havena-pro-dsplit__thumbs button {
  width: 68px;
  height: 50px;
  border-radius: 10px;
  overflow: hidden;
  border: 2px solid rgba(255, 255, 255, 0.5);
  opacity: 0.75;
  padding: 0;
  transition:
    opacity var(--havena-pro-speed-fast),
    transform var(--havena-pro-speed-fast);
}

.havena-pro-dsplit__thumbs button img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.havena-pro-dsplit__thumbs button:hover {
  opacity: 1;
  transform: translateY(-3px);
}

@media (max-width: 900px) {
  .havena-pro-dsplit {
    min-height: 0;
  }
  .havena-pro-dsplit__media {
    min-height: 320px;
    order: -1;
  }
  .havena-pro-dsplit__body {
    padding-top: 2.25rem;
  }
  .havena-pro-dsplit__thumbs {
    display: none;
  }

  /*
   * Modern title_inline vs sticky dock (phone widths only).
   * Stacked .havena-pro-dsplit__media (min-height:320px) places the Pro
   * title_inline badge row inside the fixed Core dock band (~29px @390;
   * more when badges wrap). Lift media to clear badges, then restore the
   * same distance below the title row so price/actions stay out of the dock.
   * 3.75rem ≈ measured intrusion (~29px) + one wrap row headroom.
   * Capped at 480px so tablet (768) / desktop Modern stay unchanged.
   * Does not alter dock, CTA, or footer clearance rules.
   */
  @media (max-width: 480px) {
    body.havena-pro-is-property-single.hvnly-has-mobile-contact-dock.havena-pro-layout-single-property-modern
      .havena-pro-dsplit:has(.havena-pro-page-hero__title-row .hvnly-pro-badge-list--title_inline)
      .havena-pro-dsplit__media {
      min-height: calc(320px - 3.75rem);
    }

    body.havena-pro-is-property-single.hvnly-has-mobile-contact-dock.havena-pro-layout-single-property-modern
      .havena-pro-dsplit:has(.havena-pro-page-hero__title-row .hvnly-pro-badge-list--title_inline)
      .havena-pro-page-hero__title-row {
      padding-bottom: 3.75rem;
    }
  }
}

/* ------------------------------------------------------------
   ARTICLE / AUTHOR POLISH HOOKS
------------------------------------------------------------ */
.havena-pro-article .havena-pro-prose > p:first-of-type::first-letter {
  font-family: var(--havena-pro-font-family-heading);
  font-size: 3.4em;
  line-height: 0.82;
  float: left;
  padding: 0.08em 0.14em 0 0;
  color: var(--havena-pro-gold-deep);
}

/* ------------------------------------------------------------
   LOCATION CARD (theme override of single-property/location-card)
------------------------------------------------------------ */
.havena-pro-location-card {
  width: 100%;
  margin: 0;
}

.havena-pro-location-card__address {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  margin: 0 0 1rem;
}

.havena-pro-location-card__address-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: var(--havena-pro-radius-pill, 999px);
  background: color-mix(in srgb, var(--havena-pro-navy-950, #0b1220) 6%, transparent);
  color: var(--havena-pro-navy-950, #0b1220);
}

.havena-pro-location-card__address-icon svg {
  width: 1.15rem;
  height: 1.15rem;
}

.havena-pro-location-card__address-content {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  min-width: 0;
}

.havena-pro-location-card__address-label {
  color: var(--havena-pro-slate, #5b667a);
  font-size: var(--havena-pro-fs-sm, 0.9rem);
  font-weight: 500;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.havena-pro-location-card__address-value {
  color: var(--havena-pro-navy-950, #0b1220);
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.havena-pro-location-card__map-wrap {
  position: relative;
  width: 100%;
  height: 320px;
  min-height: 260px;
  border-radius: var(--havena-pro-radius-sm, 12px);
  overflow: hidden;
  border: 1px solid var(--havena-pro-line, rgba(11, 18, 32, 0.1));
  background: var(--havena-pro-surface, #f4f1ea);
}

.havena-pro-location-card__map {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.havena-pro-location-card__map .leaflet-container {
  width: 100%;
  height: 100%;
  background: transparent;
}

.havena-pro-location-card__empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  width: 100%;
  height: 100%;
  padding: 1.5rem;
  text-align: center;
  color: var(--havena-pro-slate, #5b667a);
}

.havena-pro-location-card__empty-icon {
  display: inline-flex;
  color: var(--havena-pro-navy-950, #0b1220);
  opacity: 0.45;
  margin-bottom: 0.35rem;
}

.havena-pro-location-card__empty-icon svg {
  width: 2.75rem;
  height: 2.75rem;
}

.havena-pro-location-card__empty-title {
  margin: 0;
  color: var(--havena-pro-navy-950, #0b1220);
  font-size: 1rem;
  font-weight: 600;
}

.havena-pro-location-card__empty-text {
  margin: 0;
  max-width: 28rem;
  font-size: var(--havena-pro-fs-sm, 0.9rem);
  line-height: 1.5;
}

.havena-pro-location-card__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: 0.85rem;
}

.havena-pro-location-card__action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  min-height: 2.35rem;
  padding: 0.4rem 0.95rem;
  border: 1px solid var(--havena-pro-line, rgba(11, 18, 32, 0.14));
  border-radius: var(--havena-pro-radius-pill, 999px);
  background: var(--havena-pro-card-background, #fff);
  color: var(--havena-pro-navy-950, #0b1220);
  font-size: var(--havena-pro-fs-sm, 0.9rem);
  font-weight: 600;
  text-decoration: none;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.havena-pro-location-card__action svg {
  width: 1rem;
  height: 1rem;
  flex: none;
}

.havena-pro-location-card__action:hover {
  border-color: color-mix(in srgb, var(--havena-pro-navy-950, #0b1220) 35%, transparent);
  background: color-mix(in srgb, var(--havena-pro-navy-950, #0b1220) 4%, #fff);
}

.havena-pro-location-card__action:focus-visible {
  outline: 2px solid var(--havena-pro-gold, #c9a227);
  outline-offset: 2px;
}

@media (max-width: 680px) {
  .havena-pro-location-card__map-wrap {
    height: 240px;
    min-height: 240px;
  }
}

@media (max-width: 520px) {
  .havena-pro-location-card__actions {
    flex-direction: column;
  }

  .havena-pro-location-card__action {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .havena-pro-location-card__action {
    transition: none;
  }
}

/* Single-property map marker + popup (property-map.js only; not aggregate map.js) */
.havena-pro-property-marker {
  background: transparent !important;
  border: none !important;
}

.havena-pro-property-marker__wrap {
  position: relative;
  width: 42px;
  height: 42px;
}

.havena-pro-property-marker__pin {
  position: absolute;
  top: 0;
  left: 50%;
  width: 36px;
  height: 36px;
  margin-left: -18px;
  border: 3px solid #fff;
  border-radius: 50% 50% 50% 0;
  box-shadow: 0 4px 12px rgba(11, 18, 32, 0.18);
  transform: rotate(-45deg);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
}

.havena-pro-property-marker__icon {
  width: 16px;
  height: 16px;
  transform: rotate(45deg);
  display: block;
}

.havena-pro-property-marker__shadow {
  position: absolute;
  bottom: -2px;
  left: 50%;
  width: 24px;
  height: 8px;
  margin-left: -12px;
  background: rgba(11, 18, 32, 0.22);
  border-radius: 50%;
  filter: blur(4px);
}

.havena-pro-property-map .leaflet-popup.havena-pro-property-popup .leaflet-popup-content-wrapper,
.havena-pro-location-card__map .leaflet-popup.havena-pro-property-popup .leaflet-popup-content-wrapper {
  border-radius: 12px;
  box-shadow: 0 12px 32px rgba(11, 18, 32, 0.14);
  border: 1px solid var(--havena-pro-line, rgba(11, 18, 32, 0.1));
  padding: 0;
}

.havena-pro-property-map .leaflet-popup.havena-pro-property-popup .leaflet-popup-content,
.havena-pro-location-card__map .leaflet-popup.havena-pro-property-popup .leaflet-popup-content {
  margin: 0;
  padding: 0.85rem 1rem 0.95rem;
  min-width: 240px;
}

.havena-pro-property-map .leaflet-popup.havena-pro-property-popup .leaflet-popup-tip,
.havena-pro-location-card__map .leaflet-popup.havena-pro-property-popup .leaflet-popup-tip {
  box-shadow: none;
}

.havena-pro-property-popup__title {
  margin: 0 0 0.45rem;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.35;
  color: var(--havena-pro-navy-950, #0b1220);
}

.havena-pro-property-popup__address {
  display: flex;
  align-items: flex-start;
  gap: 0.4rem;
  margin: 0 0 0.55rem;
  font-size: var(--havena-pro-fs-sm, 0.9rem);
  line-height: 1.45;
  color: var(--havena-pro-slate, #5b667a);
}

.havena-pro-property-popup__pin-icon {
  width: 1rem;
  height: 1rem;
  flex: none;
  margin-top: 0.1rem;
  color: var(--havena-pro-gold, #c9a227);
}

.havena-pro-property-popup__coordinates {
  font-size: 0.72rem;
  letter-spacing: 0.01em;
  color: var(--havena-pro-slate, #5b667a);
  padding-top: 0.55rem;
  border-top: 1px solid var(--havena-pro-line, rgba(11, 18, 32, 0.1));
}

/* ------------------------------------------------------------
   SINGLE PROPERTY — mobile/tablet responsive polish (desktop frozen)
   Audit: REPORT-SINGLE-PROPERTY-RESPONSIVE-DEEP-AUDIT.md
------------------------------------------------------------ */
/*
 * Single Property facts: 3-col desktop (>1024), 2-col tablet/phone bridge.
 * Prior 2-col only at ≤680 left 681–1024 on repeat(3, 1fr) with
 * min-width:auto items → third column clipped (esp. 768). Mobile ≤480
 * still collapses to 1 col via main.css. Desktop ≥1025 unchanged.
 */
@media (max-width: 1024px) {
  body.havena-pro-is-property-single .havena-pro-facts {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  body.havena-pro-is-property-single .havena-pro-fact {
    min-width: 0;
  }

  body.havena-pro-is-property-single .havena-pro-fact strong {
    overflow-wrap: anywhere;
  }
}

@media (max-width: 680px) {
  body.havena-pro-is-property-single .havena-pro-fact {
    padding: 0.85rem 0.9rem;
  }
}

@media (max-width: 480px) {
  body.havena-pro-is-property-single .havena-pro-amenities {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 720px) {
  body.havena-pro-is-property-single .havena-pro-agents__selector {
    margin-inline: -0.15rem;
    padding-inline: 0.15rem;
  }

  body.havena-pro-is-property-single .havena-pro-agents__selector-name,
  body.havena-pro-is-property-single .havena-pro-agents__selector-role {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
}

/*
 * Dock clearance (≤900 = Theme mobile CTA gate).
 *
 * Was: .havena-pro-details { padding-bottom: 9.5rem } — mid-page blank before
 * Reviews/Similar. Then clearance lived on .havena-pro-real-estate--property-single
 * (the <main>), which correctly matched the fixed stack height but created a
 * large empty band BETWEEN last property content and the footer sibling.
 *
 * Measured @390: dock h≈78 + bottom offset≈76 ⇒ chromeTop ≈154px (9.75rem).
 * Fixed chrome: Theme .havena-pro-mobile-cta (bottom:0, own safe-area pad) +
 * Core .hvnly-mobile-contact-dock (Theme lifts to bottom:4.75rem).
 *
 * Clearance belongs at document end (footer), not as <main> padding — so
 * Similar/content sits flush above the footer while scroll room still clears
 * the fixed stack. Keep details padding at 0.
 */
@media (max-width: 900px) {
  body.havena-pro-is-property-single.hvnly-has-mobile-contact-dock {
    --havena-pro-mobile-dock-stack-clearance: calc(9.75rem + env(safe-area-inset-bottom, 0px));
    scroll-padding-bottom: var(--havena-pro-mobile-dock-stack-clearance);
  }

  body.havena-pro-is-property-single.hvnly-has-mobile-contact-dock .havena-pro-details {
    padding-bottom: 0;
  }

  /* Do not pad <main> — that opens a blank gap before the footer. */
  body.havena-pro-is-property-single.hvnly-has-mobile-contact-dock .havena-pro-real-estate--property-single {
    padding-bottom: 0;
  }

  /* Extend footer so end-of-page chrome clears Theme CTA + Core dock. */
  body.havena-pro-is-property-single.hvnly-has-mobile-contact-dock .havena-pro-footer {
    padding-bottom: var(--havena-pro-mobile-dock-stack-clearance);
  }
}

/*
 * Similar Properties — mobile CTA after cards (Home section-head pattern).
 * Scoped to #havena-pro-section-similar-property only. Desktop/tablet (≥768)
 * keep split head: title left / View All right.
 */
@media (max-width: 767px) {
  #havena-pro-section-similar-property > .havena-pro-container {
    display: flex;
    flex-direction: column;
  }

  #havena-pro-section-similar-property .havena-pro-section-head--split {
    display: contents;
  }

  #havena-pro-section-similar-property .havena-pro-section-head--split > div {
    order: 1;
    flex: 0 1 auto;
    max-width: none;
    width: 100%;
    margin-bottom: clamp(1.25rem, 3.5vw, 2rem);
  }

  #havena-pro-section-similar-property .havena-pro-grid {
    order: 2;
  }

  #havena-pro-section-similar-property .havena-pro-section-head--split > .havena-pro-btn {
    order: 3;
    align-self: center;
    margin-inline: auto;
    margin-block-start: 1.25rem;
  }
}

/* ------------------------------------------------------------
   LISTING AGENTS — single property mobile/tablet polish
   Desktop (≥1025) frozen. No global .havena-pro-agents rewrite.
   Report: REPORT-SINGLE-PROPERTY-AGENT-MOBILE-POLISH.md
------------------------------------------------------------ */

/* Phone + small tablet: denser profile rhythm, readable contacts, larger agency mark. */
@media (max-width: 900px) {
  body.havena-pro-is-property-single .havena-pro-agents {
    gap: 1rem;
  }

  body.havena-pro-is-property-single .havena-pro-agents__profile {
    gap: 0.95rem;
    padding: 1.15rem 1.05rem;
  }

  body.havena-pro-is-property-single .havena-pro-agents__profile-avatar {
    width: 5.5rem;
    height: 5.5rem;
  }

  body.havena-pro-is-property-single .havena-pro-agents__profile-name {
    font-size: clamp(1.2rem, 4.6vw, 1.4rem);
    line-height: 1.2;
  }

  body.havena-pro-is-property-single .havena-pro-agents__profile-details {
    gap: 0.55rem 1rem;
  }

  body.havena-pro-is-property-single .havena-pro-agents__profile-detail-label {
    font-size: 0.68rem;
  }

  body.havena-pro-is-property-single .havena-pro-agents__profile-bio {
    padding-top: 0.15rem;
  }

  body.havena-pro-is-property-single .havena-pro-agents__profile-bio-body {
    line-height: 1.6;
  }

  body.havena-pro-is-property-single .havena-pro-agents__profile-footer {
    gap: 0.65rem;
    padding-top: 0.15rem;
  }

  body.havena-pro-is-property-single .havena-pro-agency {
    margin-top: 0.1rem;
    padding: 1.05rem 0 0.15rem;
  }

  /*
   * Agency logo was 2.85rem (~46px) — brand mark unreadable on phones.
   * Dedicated landscape-friendly plate; object-fit:contain (never cover).
   */
  body.havena-pro-is-property-single .havena-pro-agency__logo {
    width: min(100%, 14rem);
    height: 5.25rem;
    padding: 0.4rem 0.65rem;
    box-sizing: border-box;
    border-radius: var(--havena-pro-radius-sm, 8px);
    background: var(--havena-pro-card-background, #fff);
  }

  body.havena-pro-is-property-single .havena-pro-agency__logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
  }

  body.havena-pro-is-property-single .havena-pro-agency__name {
    font-size: 1.05rem;
  }
}

@media (max-width: 560px) {
  body.havena-pro-is-property-single .havena-pro-agents__profile-actions {
    gap: 0.45rem;
  }

  body.havena-pro-is-property-single .havena-pro-agents__profile-actions .havena-pro-btn {
    min-height: 2.65rem;
  }

  body.havena-pro-is-property-single .havena-pro-agency__logo {
    width: min(100%, 13rem);
    height: 5rem;
  }
}

/* Mid tablet: enlarge logo without forcing phone column density harder. */
@media (min-width: 769px) and (max-width: 1024px) {
  body.havena-pro-is-property-single .havena-pro-agency__logo {
    width: 5rem;
    height: 5rem;
    padding: 0.4rem;
    box-sizing: border-box;
  }

  body.havena-pro-is-property-single .havena-pro-agency__logo img {
    object-fit: contain;
    object-position: center;
  }

  body.havena-pro-is-property-single .havena-pro-agents__profile {
    gap: 1.05rem;
  }
}
