/* ============================================================
   Home Detail v2 — Inspire Communities Brand
   Fonts: Rethink Sans (primary), Manrope (data labels)
   ============================================================ */

/* ── Elementor / WordPress container resets ───────────────── */
.elementor-widget-chub_home_detail,
.elementor-widget-chub_home_detail > .elementor-widget-container {
  padding: 0 !important;
  margin: 0 !important;
  width: 100% !important;
  max-width: 100% !important;
  box-sizing: border-box;
}
.elementor-column:has(.elementor-widget-chub_home_detail),
.elementor-column:has(.elementor-widget-chub_home_detail)
  > .elementor-widget-wrap,
.elementor-section:has(.elementor-widget-chub_home_detail)
  > .elementor-container,
.elementor-section:has(.elementor-widget-chub_home_detail)
  > .elementor-container
  > .elementor-row,
.e-con:has(.elementor-widget-chub_home_detail),
.e-con-inner:has(.elementor-widget-chub_home_detail) {
  width: 100% !important;
  max-width: 100% !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
}

/* ── Global WordPress override — scope everything ─────────── */
/* Prevents WP/theme from overriding font, color, margin on common elements */
.chub-hdv2-wrapper *,
.chub-hdv2-wrapper *::before,
.chub-hdv2-wrapper *::after {
  box-sizing: border-box;
}
.chub-hdv2-wrapper h1,
.chub-hdv2-wrapper h2,
.chub-hdv2-wrapper h3,
.chub-hdv2-wrapper h4,
.chub-hdv2-wrapper h5,
.chub-hdv2-wrapper h6 {
  font-family: "Rethink Sans", sans-serif !important;
  font-weight: 700;
  margin: 0;
  padding: 0;
  line-height: 1.2;
  border: none;
}
.chub-hdv2-wrapper p {
  font-family: "Rethink Sans", sans-serif;
  margin: 0;
  padding: 0;
}
.chub-hdv2-wrapper ul,
.chub-hdv2-wrapper ol {
  margin: 0;
  padding: 0;
  list-style: none;
}
.chub-hdv2-wrapper li {
  margin: 0;
  padding: 0;
  list-style: none;
}
.chub-hdv2-wrapper img {
  max-width: 100%;
  height: auto;
  display: block;
  border: none;
  outline: none;
  box-shadow: none;
}
.chub-hdv2-wrapper a {
  text-decoration: none;
  color: inherit;
}
.chub-hdv2-wrapper button {
  font-family: "Rethink Sans", sans-serif;
  border: none;
  outline: none;
  background: none;
  cursor: pointer;
  padding: 0;
  margin: 0;
}
.chub-hdv2-wrapper svg {
  display: inline-block;
  vertical-align: middle;
  flex-shrink: 0;
}

/* ── Wrapper ──────────────────────────────────────────────── */
.chub-hdv2-wrapper {
  font-family: "Rethink Sans", sans-serif;
  font-size: 16px;
  color: rgba(26, 26, 50, 1);
  background-color: rgba(247, 255, 255, 1);
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ═══════════════════════════════════════════════════════════
   HERO / PROPERTY LISTING BAR
   Background: mint-white (sits below the dark nav)
   Layout: title left | price+buttons right
   ═══════════════════════════════════════════════════════════ */
.chub-hdv2-hero {
  background-color: rgba(247, 255, 255, 1);
  padding: 40px 120px 36px;
  width: 100%;
  border-bottom: 1px solid rgba(225, 229, 229, 1);
}

.chub-hdv2-hero__inner {
  max-width: 1680px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-rows: auto auto auto;
  column-gap: 40px;
  row-gap: 8px;
  align-items: start;
}

/* Title — left column, spans rows 1-2 */
.chub-hdv2-wrapper .chub-hdv2-hero__title {
  grid-column: 1;
  grid-row: 1;
  font-family: "Rethink Sans", sans-serif !important;
  font-size: 52px !important;
  font-weight: 700 !important;
  color: rgba(28, 27, 72, 1) !important;
  line-height: 62px !important;
  letter-spacing: 0.52px;
  margin: 0 !important;
  padding: 0 !important;
}

/* Subtitle — left column, row 2 */
.chub-hdv2-hero__sub {
  grid-column: 1;
  grid-row: 2;
  font-family: "Rethink Sans", sans-serif;
  font-size: 18px;
  font-weight: 400;
  color: rgba(77, 78, 104, 1);
  line-height: 29px;
  margin: 0;
}

/* Price + CTA — right column, spans rows 1-2 */
.chub-hdv2-hero__price-row {
  grid-column: 2;
  grid-row: 1 / 3;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 14px;
  justify-content: flex-start;
}

.chub-hdv2-wrapper .chub-hdv2-hero__price {
  font-family: "Rethink Sans", sans-serif !important;
  font-size: 52px !important;
  font-weight: 700 !important;
  color: rgba(112, 101, 240, 1) !important;
  line-height: 62px !important;
  letter-spacing: 0.52px;
  text-align: right;
}

.chub-hdv2-hero__ctas {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

/* Badges row — full width, row 3 */
.chub-hdv2-hero__badges {
  grid-column: 1 / -1;
  grid-row: 3;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 8px;
}

/* Badges overlaid on gallery image — absolute positioned */
.chub-hdv2-gallery__main-wrap .chub-hdv2-hero__badges {
  position: absolute;
  top: 10%;
  left: 10%;
  z-index: 3;
  margin-top: 0;
  grid-column: unset;
  grid-row: unset;
  pointer-events: none;
}
@media (max-width: 768px) {
  .chub-hdv2-gallery__main-wrap .chub-hdv2-hero__badges {
    top: 8%;
    left: 5%;
    gap: 6px;
  }
}

/* ── Shared button base ───────────────────────────────────── */
/* PILL shape — border-radius: 100px — the most critical visual detail */
.chub-hdv2-hero__btn,
.chub-hdv2-contact__btn,
.chub-hdv2-map-directions-btn,
.chub-hdv2-bottom-cta__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 44px;
  padding: 8px 20px;
  border-radius: 100px; /* PILL — per Figma */
  font-family: "Rethink Sans", sans-serif;
  font-size: 16px;
  font-weight: 500;
  line-height: 26px;
  letter-spacing: 0;
  text-decoration: none !important;
  cursor: pointer;
  border: none;
  transition:
    opacity 0.2s,
    background 0.2s,
    transform 0.1s;
  box-shadow: 0px 1px 2px rgba(5, 5, 12, 0.05);
  white-space: nowrap;
}
.chub-hdv2-hero__btn:active,
.chub-hdv2-contact__btn:active,
.chub-hdv2-bottom-cta__btn:active {
  transform: scale(0.97);
}

/* Primary purple button */
.chub-hdv2-hero__btn--primary {
  background: rgba(95, 90, 242, 1);
  color: rgba(247, 255, 255, 1) !important;
}
.chub-hdv2-hero__btn--primary:hover {
  background: rgba(75, 70, 222, 1);
  color: rgba(247, 255, 255, 1) !important;
}

/* Secondary dark navy button */
.chub-hdv2-hero__btn--secondary {
  background: rgba(38, 36, 96, 1);
  color: rgba(247, 255, 255, 1) !important;
  border: none;
}
.chub-hdv2-hero__btn--secondary:hover {
  background: rgba(28, 27, 72, 1);
  color: rgba(247, 255, 255, 1) !important;
}

/* ── Badges (For Sale / Standard Model / Rent) ────────────── */
.chub-hdv2-badge {
  display: inline-flex;
  align-items: center;
  height: 44px;
  padding: 8px 40px;
  border-radius: 100px;
  font-family: "Rethink Sans", sans-serif;
  font-size: 16px;
  font-weight: 500;
  color: rgba(247, 255, 255, 1);
  line-height: 26px;
  box-shadow: 0px 1px 2px rgba(5, 5, 12, 0.05);
}
/* For Sale — orange */
.chub-hdv2-badge--sale {
  background: rgba(242, 104, 62, 1);
  border: 1.5px solid rgba(223, 222, 252, 1);
}
/* Status / condition badges */
.chub-hdv2-badge--new {
  background: rgba(137, 191, 110, 1);
  border: 1.5px solid rgba(87, 164, 48, 1);
}
/* Rent */
.chub-hdv2-badge--rent {
  background: rgba(77, 78, 104, 1);
  border: 1.5px solid rgba(223, 222, 252, 1);
}

/* ═══════════════════════════════════════════════════════════
   GALLERY
   Card container: lavender bg rgba(223,222,252,1) r=30
   Arrows: prev=grey, next=purple, both r=30
   ═══════════════════════════════════════════════════════════ */
.chub-hdv2-gallery {
  background: rgba(223, 222, 252, 1); /* lavender card bg per Figma */
  border-radius: 30px;
  overflow: hidden;
  padding: 16px 16px 12px;
  width: 100%;
  max-width: 1680px;
  margin: 0 auto 40px;
  box-sizing: border-box;
}

.chub-hdv2-gallery__main-wrap {
  position: relative;
  width: 100%;
  overflow: hidden;
  background: rgba(26, 26, 50, 1);
  border-radius: 20px;
}

.chub-hdv2-gallery__main {
  width: 100%;
  height: 560px;
  object-fit: cover;
  display: block;
  transition: opacity 0.25s ease;
  border-radius: 20px;
}

/* ── Gallery controls bar — overlaid at bottom of image ──── */
.chub-hdv2-gallery__controls {
  position: absolute;
  bottom: 5%;
  left: 0;
  right: 0;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between;
  padding: 0 16px;
  z-index: 3;
  pointer-events: none;
}
.chub-hdv2-gallery__controls > * {
  pointer-events: auto;
}

.chub-hdv2-gallery__controls .chub-hdv2-gallery__arrow {
  flex-shrink: 0;
  width: 44px;
  height: 44px !important;
  border: none;
  border-radius: 30px;
  color: rgba(255, 255, 255, 1);
  cursor: pointer;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  transition: opacity 0.2s;
}

.chub-hdv2-gallery__controls .chub-hdv2-gallery__dots {
  display: flex !important;
  align-items: center !important;
  gap: 6px;
  flex: 1;
  justify-content: center;
}
.chub-hdv2-gallery__arrow svg {
  width: 24px;
  height: 24px;
}
.chub-hdv2-gallery__arrow:hover {
  opacity: 0.85;
}

/* Prev = grey */
.chub-hdv2-gallery__controls .chub-hdv2-gallery__prev {
  background: rgba(217, 217, 218, 1) !important;
  color: rgba(255, 255, 255, 1) !important;
}
/* Next = purple */
.chub-hdv2-gallery__controls .chub-hdv2-gallery__next {
  background: rgba(95, 90, 242, 1) !important;
  color: rgba(255, 255, 255, 1) !important;
}

/* Expand / fullscreen button */
.chub-hdv2-gallery__expand {
  position: absolute;
  bottom: 12px;
  right: 12px;
  z-index: 2;
  width: 36px;
  height: 36px;
  background: rgba(0, 0, 0, 0.55);
  border: 1px solid rgba(247, 255, 255, 0.25);
  border-radius: 10px;
  color: rgba(247, 255, 255, 1);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}
.chub-hdv2-gallery__expand:hover {
  background: rgba(0, 0, 0, 0.8);
}
.chub-hdv2-gallery__expand svg {
  width: 16px;
  height: 16px;
}

/* ── Gallery scroll bar (thumbs spacer) ──────────────────── */
.chub-hdv2-gallery__scroll-bar {
  display: none;
}

.chub-hdv2-gallery__dots {
  display: flex;
  align-items: center;
  gap: 6px;
}
.chub-hdv2-gallery__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(26, 26, 50, 0.25);
  border: none;
  padding: 0;
  transition:
    background 0.2s,
    width 0.2s;
  flex-shrink: 0;
}
.chub-hdv2-gallery__dot.active {
  background: #4c48c1;
  width: 24px;
  border-radius: 6px;
}

/* ── Thumbs strip ─────────────────────────────────────────── */
.chub-hdv2-gallery__thumbs {
  display: flex;
  gap: 8px;
  padding: 10px 0 0;
  overflow-x: auto;
  scrollbar-width: none;
  flex-wrap: nowrap;
}
.chub-hdv2-gallery__thumbs::-webkit-scrollbar {
  display: none;
}

.chub-hdv2-gallery__thumb {
  flex: 0 0 100px;
  width: 100px;
  height: 72px;
  padding: 0;
  border: 2px solid transparent;
  border-radius: 12px;
  overflow: hidden;
  cursor: pointer;
  opacity: 0.55;
  transition:
    opacity 0.2s,
    border-color 0.2s;
  background: rgba(26, 26, 50, 0.3);
}
.chub-hdv2-gallery__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.chub-hdv2-gallery__thumb.active,
.chub-hdv2-gallery__thumb:hover {
  opacity: 1;
}
.chub-hdv2-gallery__thumb.active {
  border-color: rgba(95, 90, 242, 1);
}

/* ═══════════════════════════════════════════════════════════
   LIGHTBOX
   ═══════════════════════════════════════════════════════════ */
.chub-hdv2-lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 99999;
  background: rgba(26, 26, 50, 0.96);
  align-items: center;
  justify-content: center;
  flex-direction: column;
}
.chub-hdv2-lightbox.open {
  display: flex;
}

.chub-hdv2-lightbox__img-wrap {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 60px 80px 40px;
  overflow: hidden;
}
.chub-hdv2-lightbox__img {
  max-width: 100%;
  max-height: 80vh;
  object-fit: contain;
  border-radius: 12px;
  box-shadow: 0 8px 60px rgba(0, 0, 0, 0.6);
  transition: opacity 0.2s;
}
.chub-hdv2-lightbox__close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 44px;
  height: 44px;
  background: rgba(247, 255, 255, 0.12);
  border: 1px solid rgba(247, 255, 255, 0.2);
  border-radius: 50%;
  color: rgba(247, 255, 255, 1);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  transition: background 0.2s;
}
.chub-hdv2-lightbox__close:hover {
  background: rgba(247, 255, 255, 0.25);
}
.chub-hdv2-lightbox__close svg {
  width: 20px;
  height: 20px;
}
.chub-hdv2-lightbox__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 52px;
  height: 52px;
  background: rgba(247, 255, 255, 0.1);
  border: 1px solid rgba(247, 255, 255, 0.2);
  border-radius: 50%;
  color: rgba(247, 255, 255, 1);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  transition: background 0.2s;
}
.chub-hdv2-lightbox__nav:hover {
  background: rgba(247, 255, 255, 0.25);
}
.chub-hdv2-lightbox__nav svg {
  width: 24px;
  height: 24px;
}
.chub-hdv2-lightbox__prev {
  left: 16px;
}
.chub-hdv2-lightbox__next {
  right: 16px;
}
.chub-hdv2-lightbox__counter {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(247, 255, 255, 0.7);
  font-family: "Rethink Sans", sans-serif;
  font-size: 14px;
  letter-spacing: 0.05em;
}

/* ═══════════════════════════════════════════════════════════
   BODY — two-column layout
   ═══════════════════════════════════════════════════════════ */
.chub-hdv2-body {
  width: 100%;
  padding: 36px 120px 72px;
  background-color: rgba(247, 255, 255, 1);
}

.chub-hdv2-layout {
  display: grid;
  grid-template-columns: 1fr 620px;
  gap: 40px;
  align-items: start;
  width: 100%;
  max-width: 1680px;
  margin: 0 auto;
}

.chub-hdv2-main-col {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.chub-hdv2-sidebar-col {
  position: sticky;
  top: 80px;
  display: flex;
  flex-direction: column;
  gap: 24px;
  min-width: 0;
}

/* ═══════════════════════════════════════════════════════════
   SECTION CARDS
   Each section is a floating card — r=20, pad=36, shadow
   ═══════════════════════════════════════════════════════════ */
.chub-hdv2-section {
  background-color: rgba(247, 255, 255, 1);
  border-radius: 20px;
  padding: 36px;
  box-shadow: 0px 9.64px 24.11px rgba(0, 0, 0, 0.05);
  border-bottom: none;
}

.chub-hdv2-main-col .chub-hdv2-section:last-child {
  border-bottom: none;
}

.chub-hdv2-wrapper .chub-hdv2-section__title {
  font-family: "Rethink Sans", sans-serif !important;
  font-size: 22px !important;
  font-weight: 700 !important;
  color: rgba(26, 26, 50, 1) !important;
  margin: 0 0 24px !important;
  padding: 0 !important;
  line-height: 31px !important;
  letter-spacing: 0.22px;
  border: none !important;
}

/* Internal section dividers (hr / Line elements within cards) */
.chub-hdv2-section-divider,
.chub-hdv2-wrapper hr {
  border: none !important;
  border-top: 2px solid rgba(225, 229, 229, 1) !important;
  margin: 24px 0 !important;
  background: none;
  height: 0;
}

.chub-hdv2-section__body,
.chub-hdv2-wrapper .chub-hdv2-section__body p {
  font-family: "Rethink Sans", sans-serif;
  font-size: 18px;
  font-weight: 400;
  color: rgba(26, 26, 50, 1);
  line-height: 29px;
  margin: 0;
  letter-spacing: 0;
}
.chub-hdv2-section__body p {
  margin: 0 0 12px;
}
.chub-hdv2-section__body p:last-child {
  margin-bottom: 0;
}
.chub-hdv2-section__body strong {
  font-weight: 700;
  color: rgba(26, 26, 50, 1);
}

/* ═══════════════════════════════════════════════════════════
   OVERVIEW — address, community, specs
   ═══════════════════════════════════════════════════════════ */
.chub-hdv2-overview-address {
  font-family: "Rethink Sans", sans-serif;
  font-size: 18px;
  font-weight: 400;
  color: rgba(26, 26, 50, 1);
  margin: 0 0 6px;
  line-height: 29px;
}
.chub-hdv2-overview-comm {
  font-family: "Rethink Sans", sans-serif;
  font-size: 18px;
  font-weight: 400;
  color: rgba(26, 26, 50, 1);
  margin: 0 0 16px;
  line-height: 29px;
}
.chub-hdv2-overview-specs {
  display: flex;
  gap: 36px;
  flex-wrap: wrap;
  font-family: "Rethink Sans", sans-serif;
  font-size: 19px;
  font-weight: 700;
  color: rgba(77, 78, 104, 1);
  line-height: 19px;
  margin: 0;
}
.chub-hdv2-overview-spec-label {
  font-weight: 400;
  color: rgba(77, 78, 104, 1);
}

/* ═══════════════════════════════════════════════════════════
   PROPERTY DETAILS
   Figma: 4-column horizontal layout, gap 36px within each col
   ═══════════════════════════════════════════════════════════ */
.chub-hdv2-details-grid {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.chub-hdv2-detail-col {
  display: flex;
  flex-direction: column;
  gap: 24px;
  flex: 1;
  min-width: 120px;
}

/* Fallback 2-col grid if .chub-hdv2-detail-col not used */
.chub-hdv2-details-grid:not(:has(.chub-hdv2-detail-col)) {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.chub-hdv2-detail-cell {
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(247, 255, 255, 1);
  border: 1px solid rgba(228, 228, 228, 1);
  border-radius: 10px;
  padding: 14px 18px;
}
.chub-hdv2-detail-icon {
  width: 29px;
  height: 29px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.chub-hdv2-detail-icon-img {
  width: 24px;
  height: 24px;
  object-fit: contain;
  display: block;
  flex-shrink: 0;
}
.chub-hdv2-detail-text {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}
.chub-hdv2-detail-label {
  font-family: "Rethink Sans", sans-serif;
  font-size: 19px;
  font-weight: 400;
  color: rgba(77, 78, 104, 1);
  line-height: 1;
  letter-spacing: 0;
}
.chub-hdv2-detail-value {
  font-family: "Rethink Sans", sans-serif;
  font-size: 19px;
  font-weight: 700;
  color: rgba(77, 78, 104, 1);
  line-height: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ═══════════════════════════════════════════════════════════
   AMENITIES
   ═══════════════════════════════════════════════════════════ */
.chub-hdv2-amenities-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-top: 16px;
}
.chub-hdv2-amenity {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(247, 255, 255, 1);
  border: 1px solid rgba(228, 228, 228, 1);
  border-radius: 10px;
  padding: 10px 14px;
  font-family: "Rethink Sans", sans-serif;
  font-size: 18px;
  font-weight: 400;
  color: rgba(26, 26, 50, 1);
  line-height: 29px;
}
.chub-hdv2-amenity-icon {
  width: 24px;
  height: 24px;
  object-fit: contain;
  display: block;
  flex-shrink: 0;
}

/* ═══════════════════════════════════════════════════════════
   MAP SECTION
   ═══════════════════════════════════════════════════════════ */
.chub-hdv2-map-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}
.chub-hdv2-map-header .chub-hdv2-section__title {
  margin: 0;
}
.chub-hdv2-map-directions-btn {
  background: rgba(95, 90, 242, 1);
  color: rgba(247, 255, 255, 1) !important;
  padding: 8px 20px;
  margin-bottom: 20px;
  gap: 8px;
}
.chub-hdv2-map-directions-btn svg {
  width: 16px;
  height: 16px;
}
.chub-hdv2-map-directions-btn:hover {
  background: rgba(75, 70, 222, 1);
  color: rgba(247, 255, 255, 1) !important;
}

.chub-hdv2-map-img-wrap {
  display: block;
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 20px;
  border: 1px solid rgba(247, 255, 255, 1);
  box-shadow: 6px 6px 15px rgba(0, 0, 0, 0.25);
}
.chub-hdv2-map-img {
  width: 100%;
  height: 280px;
  object-fit: cover;
  display: block;
}

.chub-hdv2-map-meta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 24px;
}
.chub-hdv2-map-row:nth-last-child(-n + 2) {
  border-bottom: none;
}
@media (max-width: 600px) {
  .chub-hdv2-map-meta {
    grid-template-columns: 1fr;
  }
  .chub-hdv2-map-row:nth-last-child(-n + 2) {
    border-bottom: 1px solid rgba(225, 229, 229, 1);
  }
  .chub-hdv2-map-row:last-child {
    border-bottom: none;
  }
}
.chub-hdv2-map-row {
  display: flex;
  gap: 16px;
  align-items: baseline;
  font-family: "Rethink Sans", sans-serif;
  font-size: 18px;
  padding: 14px 0;
  border-bottom: 1px solid rgba(225, 229, 229, 1);
}
.chub-hdv2-map-row:last-child {
  border-bottom: none;
}
.chub-hdv2-map-row strong {
  min-width: 100px;
  color: rgba(26, 26, 50, 1);
  font-weight: 700;
  flex-shrink: 0;
}
.chub-hdv2-map-row span {
  color: rgba(77, 78, 104, 1);
  font-weight: 400;
}

/* ═══════════════════════════════════════════════════════════
   COMMUNITY CARD (SIDEBAR)
   Standard card: border rgba(228,228,228,1)
   Financing card: border rgba(143,139,245,1) LAVENDER
   ═══════════════════════════════════════════════════════════ */
.chub-hdv2-contact {
  display: flex;
  flex-direction: column;
  gap: 16px;
  background: rgba(247, 255, 255, 1);
  border: 1.2px solid rgba(228, 228, 228, 1);
  border-radius: 20px;
  padding: 36px;
  box-shadow: 0px 9.64px 24.11px rgba(0, 0, 0, 0.05);
}

/* Financing / similar-homes card — lavender border */
.chub-hdv2-contact--accent {
  border-color: rgba(143, 139, 245, 1);
}

/* Community image */
.chub-hdv2-contact__img-wrap {
  display: block;
  overflow: hidden;
  border-radius: 8px;
  width: 100%;
  background: rgba(225, 229, 229, 1);
}
.chub-hdv2-contact__img-wrap a {
  display: block;
}
.chub-hdv2-contact__img {
  width: 100%;
  height: 160px;
  object-fit: cover;
  display: block;
  transition: transform 0.3s;
}
.chub-hdv2-contact__img-wrap:hover .chub-hdv2-contact__img {
  transform: scale(1.03);
}
.chub-hdv2-contact__img-placeholder {
  width: 100%;
  height: 160px;
  background: linear-gradient(
    135deg,
    rgba(225, 229, 229, 1) 0%,
    rgba(212, 216, 216, 1) 100%
  );
  display: flex;
  align-items: center;
  justify-content: center;
}
.chub-hdv2-contact__img-placeholder svg {
  width: 48px;
  height: 48px;
  color: rgba(143, 139, 245, 1);
}

/* Agent avatar — circular, lavender bg */
.chub-hdv2-contact__avatar {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  background: rgba(143, 139, 245, 1);
  overflow: hidden;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.chub-hdv2-contact__avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.chub-hdv2-contact__avatar svg {
  width: 48px;
  height: 48px;
  color: rgba(247, 255, 255, 1);
}

.chub-hdv2-wrapper .chub-hdv2-contact__name {
  font-family: "Rethink Sans", sans-serif !important;
  font-size: 22px !important;
  font-weight: 700 !important;
  color: rgba(26, 26, 50, 1) !important;
  text-decoration: none !important;
  display: block;
  line-height: 31px;
  letter-spacing: 0.22px;
  margin: 0 !important;
  padding: 0 !important;
  transition: color 0.2s;
  border: none !important;
}
a.chub-hdv2-contact__name:hover {
  color: rgba(95, 90, 242, 1) !important;
}

.chub-hdv2-contact__meta {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  font-family: "Rethink Sans", sans-serif;
  font-size: 19px;
  font-weight: 700;
  color: rgba(77, 78, 104, 1);
  line-height: 19px;
  margin: 0;
}
.chub-hdv2-contact__meta svg {
  width: 16px;
  height: 16px;
  color: rgba(112, 101, 240, 1);
  stroke: rgba(112, 101, 240, 1);
  margin-top: 2px;
}
.chub-hdv2-contact__meta a {
  color: rgba(112, 101, 240, 1) !important;
  font-weight: 700;
  word-break: break-word;
  text-decoration: none !important;
  cursor: pointer;
  pointer-events: auto !important;
}
.chub-hdv2-contact__meta a:hover {
  text-decoration: underline !important;
}

.chub-hdv2-contact__hours {
  font-family: "Rethink Sans", sans-serif;
  font-size: 18px;
  color: rgba(77, 78, 104, 1);
}
.chub-hdv2-contact__hours strong {
  display: block;
  margin-bottom: 6px;
  color: rgba(26, 26, 50, 1);
  font-size: 19px;
  font-weight: 700;
}
.chub-hdv2-contact__hours-body {
  font-size: 18px;
  line-height: 29px;
}

.chub-hdv2-contact__actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 4px;
}
.chub-hdv2-contact__btn {
  background: rgba(95, 90, 242, 1);
  color: rgba(247, 255, 255, 1) !important;
  flex: 1;
  min-width: 120px;
}
.chub-hdv2-contact__btn:hover {
  background: rgba(75, 70, 222, 1);
  color: rgba(247, 255, 255, 1) !important;
}

.chub-hdv2-contact__view-link {
  font-family: "Rethink Sans", sans-serif;
  font-size: 16px;
  font-weight: 500;
  color: rgba(95, 90, 242, 1) !important;
  text-decoration: none !important;
}
.chub-hdv2-contact__view-link:hover {
  text-decoration: underline !important;
}

/* Sidebar section wrappers */
.chub-hdv2-sidebar-col .chub-hdv2-section {
  border-radius: 20px;
  padding: 36px;
  border-bottom: none;
}
.chub-hdv2-sidebar-col .chub-hdv2-wrapper .chub-hdv2-section__title {
  font-size: 22px !important;
  margin-bottom: 20px !important;
}

/* Similar homes inner card */
.chub-hdv2-similar-card {
  background: rgba(255, 255, 255, 1);
  border: 1.2px solid rgba(228, 228, 228, 1);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0px 9.64px 24.11px rgba(0, 0, 0, 0.05);
}
.chub-hdv2-similar-card__img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  display: block;
}
.chub-hdv2-similar-card__body {
  padding: 16px;
}
.chub-hdv2-similar-card__title {
  font-family: "Rethink Sans", sans-serif;
  font-size: 18px;
  font-weight: 400;
  color: rgba(26, 26, 50, 1);
  line-height: 29px;
  margin: 0 0 8px;
}
.chub-hdv2-similar-card__price {
  font-family: "Rethink Sans", sans-serif;
  font-size: 28px;
  font-weight: 700;
  color: rgba(112, 101, 240, 1);
  line-height: 39px;
  letter-spacing: 0.28px;
  margin: 0 0 12px;
}
.chub-hdv2-similar-card__specs {
  display: flex;
  gap: 16px;
  font-family: "Manrope", sans-serif;
  font-size: 16px;
}
.chub-hdv2-similar-card__spec-label {
  font-weight: 400;
  color: rgba(92, 99, 104, 1);
}
.chub-hdv2-similar-card__spec-value {
  font-weight: 600;
  color: rgba(58, 58, 60, 1);
}

/* Financing options divider line */
.chub-hdv2-listing-divider {
  width: 100%;
  height: 1px;
  background: rgba(155, 187, 183, 1);
  margin: 4px 0;
}

/* ═══════════════════════════════════════════════════════════
   BOTTOM CTA (Financing / Apply)
   Uses lavender border per Figma
   ═══════════════════════════════════════════════════════════ */
.chub-hdv2-bottom-cta {
  background: rgba(247, 255, 255, 1);
  border-radius: 20px;
  padding: 36px;
  border: 1.2px solid rgba(143, 139, 245, 1); /* lavender border */
  box-shadow: 0px 9.64px 24.11px rgba(0, 0, 0, 0.05);
}
.chub-hdv2-wrapper .chub-hdv2-bottom-cta__title {
  font-family: "Rethink Sans", sans-serif !important;
  font-size: 22px !important;
  font-weight: 700 !important;
  color: rgba(26, 26, 50, 1) !important;
  margin: 0 0 4px !important;
  padding: 0 !important;
  line-height: 31px !important;
  letter-spacing: 0.22px;
  border: none !important;
}
.chub-hdv2-bottom-cta__sub {
  font-family: "Rethink Sans", sans-serif;
  font-size: 18px;
  font-weight: 400;
  color: rgba(77, 78, 104, 1);
  margin: 0 0 24px;
  line-height: 29px;
}
.chub-hdv2-bottom-cta__cols {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.chub-hdv2-bottom-cta__col {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding-bottom: 24px;
  border-bottom: 2px solid rgba(225, 229, 229, 1);
}
.chub-hdv2-bottom-cta__col:last-child {
  border-bottom: none;
  padding-bottom: 0;
}
.chub-hdv2-bottom-cta__desc {
  font-family: "Rethink Sans", sans-serif;
  font-size: 18px;
  font-weight: 400;
  color: rgba(26, 26, 50, 1);
  line-height: 29px;
  margin: 0;
}
.chub-hdv2-bottom-cta__btn {
  background: rgba(95, 90, 242, 1);
  color: rgba(247, 255, 255, 1) !important;
  width: auto;
  align-self: flex-start;
}
.chub-hdv2-bottom-cta__btn:hover {
  background: rgba(75, 70, 222, 1);
  color: rgba(247, 255, 255, 1) !important;
}

/* ═══════════════════════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════════════════════ */

/* ── Large desktop ────────────────────────────────────────── */
@media (max-width: 1600px) {
  .chub-hdv2-layout {
    grid-template-columns: 1fr 520px;
  }
}
@media (max-width: 1400px) {
  .chub-hdv2-hero {
    padding: 36px 80px 32px;
  }
  .chub-hdv2-body {
    padding: 32px 80px 56px;
  }
  .chub-hdv2-layout {
    grid-template-columns: 1fr 420px;
  }
  .chub-hdv2-wrapper .chub-hdv2-hero__title {
    font-size: 42px !important;
    line-height: 52px !important;
  }
  .chub-hdv2-wrapper .chub-hdv2-hero__price {
    font-size: 42px !important;
    line-height: 52px !important;
  }
}

/* ── Tablet landscape ─────────────────────────────────────── */
@media (max-width: 1200px) {
  .chub-hdv2-hero {
    padding: 32px 48px 28px;
  }
  .chub-hdv2-body {
    padding: 28px 48px 48px;
  }
  .chub-hdv2-layout {
    grid-template-columns: 1fr 360px;
    gap: 28px;
  }
  .chub-hdv2-wrapper .chub-hdv2-hero__title {
    font-size: 36px !important;
    line-height: 44px !important;
  }
  .chub-hdv2-wrapper .chub-hdv2-hero__price {
    font-size: 36px !important;
    line-height: 44px !important;
  }
  .chub-hdv2-gallery__main {
    height: 420px;
  }
  .chub-hdv2-amenities-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* ── Tablet portrait ──────────────────────────────────────── */
@media (max-width: 1024px) {
  .chub-hdv2-hero__inner {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
  }
  .chub-hdv2-wrapper .chub-hdv2-hero__title {
    grid-column: 1;
    grid-row: 1;
  }
  .chub-hdv2-hero__sub {
    grid-column: 1;
    grid-row: 2;
  }
  .chub-hdv2-hero__price-row {
    grid-column: 1;
    grid-row: 3;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
  .chub-hdv2-wrapper .chub-hdv2-hero__price {
    text-align: left;
  }
  .chub-hdv2-hero__ctas {
    justify-content: flex-start;
  }
  .chub-hdv2-hero__badges {
    grid-row: 4;
  }

  .chub-hdv2-layout {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .chub-hdv2-main-col {
    order: 1;
  }
  .chub-hdv2-sidebar-col {
    order: 2;
    position: static;
    display: flex;
    flex-direction: column;
    gap: 24px;
  }
  .chub-hdv2-amenities-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .chub-hdv2-gallery__main {
    height: 380px;
  }
}

/* ── Mobile — matches Figma 375px design ─────────────────── */
@media (max-width: 768px) {
  /* Hero */
  .chub-hdv2-hero {
    padding: 20px 20px 20px;
  }
  .chub-hdv2-hero__inner {
    display: flex;
    flex-direction: column;
    gap: 12px;
  }
  .chub-hdv2-wrapper .chub-hdv2-hero__title {
    font-size: 38px !important;
    line-height: 46px !important;
    letter-spacing: 0.38px;
    color: rgba(28, 27, 72, 1) !important;
  }
  .chub-hdv2-hero__sub {
    font-size: 16px;
    line-height: 1.55;
  }
  .chub-hdv2-hero__price-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }
  .chub-hdv2-wrapper .chub-hdv2-hero__price {
    font-size: 36px !important;
    line-height: 50px !important;
    letter-spacing: 0.36px;
    text-align: right;
    align-self: flex-end;
  }
  .chub-hdv2-hero__ctas {
    flex-direction: column;
    width: 100%;
    gap: 10px;
    justify-content: flex-start;
  }
  .chub-hdv2-hero__btn {
    width: 100%;
    justify-content: center;
  }

  /* Body */
  .chub-hdv2-body {
    padding: 16px 20px 48px;
  }
  .chub-hdv2-layout {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .chub-hdv2-sidebar-col {
    position: static;
    display: flex;
    flex-direction: column;
    gap: 16px;
  }

  /* Cards — mobile spec: r=10, pad=12 */
  .chub-hdv2-section {
    border-radius: 10px;
    padding: 12px;
  }
  .chub-hdv2-contact {
    border-radius: 10px;
    padding: 12px;
    gap: 12px;
  }
  .chub-hdv2-bottom-cta {
    border-radius: 10px;
    padding: 12px;
  }
  .chub-hdv2-sidebar-col .chub-hdv2-section {
    border-radius: 10px;
    padding: 12px;
  }
  .chub-hdv2-wrapper .chub-hdv2-section__title {
    margin-bottom: 16px !important;
    font-size: 22px !important;
  }

  /* Gallery */
  .chub-hdv2-gallery {
    border-radius: 16px;
    padding: 10px 10px 8px;
  }
  .chub-hdv2-gallery__main {
    height: 240px;
    border-radius: 12px;
  }
  .chub-hdv2-gallery__main-wrap {
    border-radius: 12px;
  }
  .chub-hdv2-gallery__thumb {
    flex: 0 0 72px;
    width: 72px;
    height: 54px;
    border-radius: 6px;
  }

  /* Details */
  .chub-hdv2-details-grid {
    flex-direction: column;
    gap: 8px;
  }
  .chub-hdv2-detail-col {
    gap: 8px;
  }

  /* Amenities */
  .chub-hdv2-amenities-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
  }

  /* Map */
  .chub-hdv2-map-img {
    height: 183px;
  }
  .chub-hdv2-map-directions-btn {
    width: 100%;
    justify-content: center;
  }

  /* Bottom CTA */
  .chub-hdv2-wrapper .chub-hdv2-bottom-cta__title {
    font-size: 20px !important;
  }
  .chub-hdv2-bottom-cta__cols {
    gap: 16px;
  }
  .chub-hdv2-bottom-cta__col {
    padding-bottom: 16px;
  }
  .chub-hdv2-bottom-cta__btn {
    width: 100%;
  }
  .chub-hdv2-contact__btn {
    width: 100%;
    justify-content: center;
  }

  /* Contact card */
  .chub-hdv2-contact__img {
    height: 140px;
  }
  .chub-hdv2-contact__img-placeholder {
    height: 140px;
  }
  .chub-hdv2-wrapper .chub-hdv2-contact__name {
    font-size: 20px !important;
  }
}

/* ── Small mobile (≤480px) ────────────────────────────────── */
@media (max-width: 480px) {
  .chub-hdv2-hero {
    padding: 16px;
  }
  .chub-hdv2-body {
    padding: 12px 16px 40px;
  }
  .chub-hdv2-wrapper .chub-hdv2-hero__title {
    font-size: 28px !important;
    line-height: 36px !important;
  }
  .chub-hdv2-wrapper .chub-hdv2-hero__price {
    font-size: 28px !important;
    line-height: 38px !important;
  }
  .chub-hdv2-gallery__main {
    height: 200px;
  }
  .chub-hdv2-amenities-grid {
    grid-template-columns: 1fr 1fr;
  }
  .chub-hdv2-detail-label,
  .chub-hdv2-detail-value {
    font-size: 16px;
  }
}

/* ── Similar Homes Section ───────────────────────────────────────────────── */
.chub-hdv2-similar {
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid #e5e7eb;
}
.chub-hdv2-similar__title {
  font-size: 15px;
  font-weight: 700;
  color: #1a1a2e;
  margin: 0 0 16px;
  line-height: 1.3;
}
.chub-hdv2-similar__list {
  display: flex;
  flex-direction: column;
  gap: 0;
}
.chub-hdv2-similar__item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid #f0f0f0;
  text-decoration: none !important;
  transition: opacity 0.2s;
}
.chub-hdv2-similar__item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}
.chub-hdv2-similar__item:hover {
  opacity: 0.8;
}
.chub-hdv2-similar__img-wrap {
  flex-shrink: 0;
  width: 80px;
  height: 60px;
  border-radius: 8px;
  overflow: hidden;
  background: #f0f0f0;
}
.chub-hdv2-similar__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.chub-hdv2-similar__img-placeholder {
  width: 100%;
  height: 100%;
  background: #e5e7eb;
}
.chub-hdv2-similar__info {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}
.chub-hdv2-similar__name {
  font-size: 13px;
  font-weight: 500;
  color: #1a1a2e;
  line-height: 1.3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.chub-hdv2-similar__price {
  font-size: 14px;
  font-weight: 700;
  color: #6c5ce7;
  line-height: 1;
}
.chub-hdv2-similar__empty {
  font-size: 13px;
  color: #9ca3af;
  margin: 0;
}

/* ── Similar Homes — Browse Button ──────────────────────────────────────── */
.chub-hdv2-similar__footer {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid #f0f0f0;
}
.chub-hdv2-similar__browse-btn {
  display: block;
  width: 100%;
  text-align: center;
  padding: 12px 20px;
  background: #6c5ce7;
  color: #fff !important;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none !important;
  transition: background 0.2s, transform 0.1s;
  line-height: 1.2;
  box-sizing: border-box;
}
.chub-hdv2-similar__browse-btn:hover {
  background: #5a4bd1;
  transform: translateY(-1px);
}

/* ── Similar Homes — Community Card ─────────────────────────────────────── */
.chub-hdv2-similar__comm-card {
  margin-bottom: 20px;
}
.chub-hdv2-similar__comm-img-wrap {
  width: 100%;
  border-radius: 12px;
  overflow: hidden;
  background: #e5e7eb;
  margin-bottom: 12px;
  aspect-ratio: 16/9;
}
.chub-hdv2-similar__comm-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.chub-hdv2-similar__comm-name {
  font-size: 16px;
  font-weight: 700;
  color: #1a1a2e;
  margin-bottom: 12px;
  line-height: 1.3;
}

/* ── Dual sale/rent price ─────────────────────────────────────────────────── */
.chub-hdv2-hero__price--dual {
  display: flex !important;
  flex-direction: column !important;
  gap: 0 !important;
  line-height: 1.3 !important;
}
.chub-hdv2-hero__price-sale {
  display: block;
  color: #ffffff;
}
.chub-hdv2-hero__price-sale em {
  font-style: normal;
  font-size: 0.55em;
  color: rgba(255,255,255,0.6);
  font-weight: 400;
  margin-left: 5px;
  vertical-align: middle;
  letter-spacing: 0.02em;
}
.chub-hdv2-hero__price-rent {
  display: block;
  font-size: 0.85em;
  color: rgba(255,255,255,0.75);
  margin-top: 2px;
}

/* ── Inline CTA row above Overview ───────────────────────────────────────── */
.chub-hdv2-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  align-items: flex-start;
  margin-bottom: 28px;
}
.chub-hdv2-cta-row__col {
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 0 1 auto;
  max-width: 320px;
}
.chub-hdv2-cta-row__title {
  margin: 0 0 2px;
  font-size: 15px;
  font-weight: 700;
  color: #111;
  line-height: 1.3;
}
.chub-hdv2-cta-row__col .chub-hdv2-bottom-cta__desc {
  margin: 0;
  font-size: 13px;
  line-height: 1.5;
  color: #555;
}
.chub-hdv2-cta-row__col .chub-hdv2-bottom-cta__btn {
  align-self: flex-start;
  width: auto !important;
  white-space: nowrap;
}
