/* ==========================================================================
   Vision Residences - UI/UX Upgrades v3.0
   1. Full-width Glassmorphic Navy Header (transparent over hero -> solid on scroll)
   2. Luxury Button Hover Effects (shimmer + lift + glow)
   3. Modern Rounded Cards & Panel-Matched Image Cropping (no empty gaps)
   4. Rever-style Loan Calculator (sliders + SVG donut chart + CSV schedule + guide)
   5. Rich Product Detail Page (multi-photo gallery + visual amenity cards + specs)
   6. Emerald-inspired Pages (Floorplans, Pricing, Developer, Legal) & Modern Footer
   ========================================================================== */

:root {
  --vr-navy: #1c3550;
  --vr-navy-deep: #0f2134;
  --vr-navy-rgb: 22, 42, 65;
  --vr-gold: #c9ae72;
  --vr-gold-light: #eadbb2;
  --vr-gold-grad: linear-gradient(135deg, #dfca95 0%, #c6a766 52%, #b08f4c 100%);
  --vr-radius-sm: 10px;
  --vr-radius: 14px;
  --vr-radius-lg: 15px;
  --vr-shadow-card: 0 12px 34px rgba(15, 33, 52, 0.08);
  --vr-shadow-card-hover: 0 22px 50px rgba(15, 33, 52, 0.15);
  --vr-ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* --------------------------------------------------------------------------
   1. FULL-WIDTH NAVY HEADER (TRANSPARENT BLUR OVER HERO -> SOLID ON SCROLL)
   -------------------------------------------------------------------------- */
body.has-solid-header #main {
  padding-top: 84px;
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  height: 82px;
  z-index: 60;
  background: rgba(var(--vr-navy-rgb), 0.34);
  backdrop-filter: blur(12px) saturate(140%);
  -webkit-backdrop-filter: blur(12px) saturate(140%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
  transition: background-color 0.35s var(--vr-ease), box-shadow 0.35s var(--vr-ease), height 0.35s var(--vr-ease), border-color 0.35s var(--vr-ease);
}

.site-header.is-scrolled {
  height: 74px;
  background: rgba(15, 33, 52, 0.96);
  backdrop-filter: blur(18px) saturate(150%);
  -webkit-backdrop-filter: blur(18px) saturate(150%);
  border-bottom-color: rgba(201, 174, 114, 0.24);
  box-shadow: 0 10px 34px rgba(8, 18, 30, 0.32);
}

.site-header .nav-wrap {
  width: 100%;
  max-width: 1520px;
  margin: 0 auto;
  padding: 0 clamp(18px, 3vw, 44px);
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: clamp(14px, 2vw, 28px);
}

.site-header .brand {
  color: #fff;
  flex-shrink: 0;
  gap: 11px;
}

.site-header .brand strong {
  color: #fff;
  font-size: 1.08rem;
  letter-spacing: 0.01em;
}

.site-header .brand small {
  color: rgba(234, 219, 178, 0.85);
  font-size: 0.56rem;
  letter-spacing: 0.14em;
}

.site-header .brand .brand-photo {
  width: 56px;
  height: 44px;
  border-radius: 10px;
  background: #fff;
  padding: 3px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.site-header .primary-nav {
  background: transparent;
  margin-left: auto;
  margin-right: auto;
}

.site-header .primary-nav ul {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(8px, 1vw, 16px);
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-header .primary-nav a {
  position: relative;
  display: inline-block;
  color: rgba(255, 255, 255, 0.92);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 8px 2px;
  white-space: nowrap;
  text-decoration: none !important;
  transform-origin: center;
  transition: transform 0.25s var(--vr-ease), color 0.25s ease;
}

.site-header .primary-nav a::after {
  display: none !important;
  content: none !important;
}

.site-header .primary-nav a:hover {
  color: var(--vr-gold-light);
  transform: scale(1.16);
}

.site-header .primary-nav .current-menu-item > a {
  color: rgba(255, 255, 255, 0.92);
}

.site-header .primary-nav .current-menu-item > a:hover {
  color: var(--vr-gold-light);
  transform: scale(1.16);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-shrink: 0;
}

.nav-hotline {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--vr-gold-light);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  white-space: nowrap;
  transition: color 0.25s ease, transform 0.25s ease;
}

.nav-hotline svg {
  width: 15px;
  height: 15px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
}

.nav-hotline:hover {
  color: #fff;
  transform: translateY(-1px);
}

.site-header .nav-cta {
  position: relative;
  overflow: hidden;
  border: 0;
  border-radius: 999px;
  padding: 11px 22px;
  background: var(--vr-gold-grad);
  color: var(--vr-navy-deep);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  box-shadow: 0 6px 20px rgba(201, 174, 114, 0.32);
  transition: transform 0.3s var(--vr-ease), box-shadow 0.3s var(--vr-ease), filter 0.3s ease;
}

.site-header .nav-cta:hover {
  background: var(--vr-gold-grad);
  color: var(--vr-navy-deep);
  transform: translateY(-2px);
  box-shadow: 0 10px 26px rgba(201, 174, 114, 0.48);
  filter: brightness(1.06);
}

.site-header .menu-button {
  display: none;
  border: 1px solid rgba(255, 255, 255, 0.26);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.08);
  padding: 10px;
  gap: 5px;
}

.site-header .menu-button span {
  width: 22px;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

body.has-hero-header .hero,
body.has-hero-header .about-hero,
body.has-hero-header .project-page-hero,
body.has-hero-header .vr-page-hero {
  padding-top: clamp(120px, 14vw, 165px);
}

body.has-hero-header .hero {
  min-height: 100svh;
  padding-top: 82px;
}

@media (max-width: 1180px) {
  .site-header .brand small {
    display: none;
  }
  .site-header .primary-nav a {
    font-size: 0.69rem;
  }
  .nav-hotline {
    display: none;
  }
}

@media (max-width: 980px) {
  .site-header .menu-button {
    display: grid;
    place-content: center;
    margin-left: auto;
  }
  .site-header .nav-actions {
    display: none;
  }
  .site-header .primary-nav {
    display: none;
    position: fixed;
    left: 0;
    right: 0;
    top: 74px;
    background: rgba(15, 33, 52, 0.98);
    backdrop-filter: blur(18px);
    padding: 16px 24px 28px;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 20px 44px rgba(0, 0, 0, 0.35);
    max-height: calc(100dvh - 74px);
    overflow-y: auto;
  }
  .site-header .primary-nav.open {
    display: block;
    background: rgba(15, 33, 52, 0.98);
  }
  .site-header .primary-nav ul {
    display: grid;
    gap: 2px;
    justify-content: stretch;
  }
  .site-header .primary-nav a {
    display: block;
    padding: 13px 6px;
    font-size: 0.88rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    color: #fff;
  }
  .site-header .primary-nav a::after {
    display: none;
  }
  .site-header {
    height: 74px;
  }
  body.has-solid-header #main {
    padding-top: 74px;
  }
}

/* --------------------------------------------------------------------------
   2. LUXURY BUTTON HOVER EFFECTS (SHIMMER + LIFT + GLOW)
   -------------------------------------------------------------------------- */
.button,
.welcome-cta,
.nav-cta,
.vr-btn {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  border-radius: 12px;
  transition: transform 0.32s var(--vr-ease), box-shadow 0.32s var(--vr-ease), background-color 0.3s ease, border-color 0.3s ease, color 0.3s ease;
}

.button::before,
.welcome-cta::before,
.nav-cta::before,
.vr-btn::before {
  content: "";
  position: absolute;
  top: -10%;
  left: -130%;
  width: 65%;
  height: 120%;
  background: linear-gradient(110deg, transparent 0%, rgba(255, 255, 255, 0.38) 50%, transparent 100%);
  transform: skewX(-22deg);
  transition: left 0.65s var(--vr-ease);
  pointer-events: none;
  z-index: 1;
}

.button:hover::before,
.welcome-cta:hover::before,
.nav-cta:hover::before,
.vr-btn:hover::before {
  left: 145%;
}

.button:hover,
.welcome-cta:hover,
.vr-btn:hover {
  transform: translateY(-3px);
}

.button:active,
.welcome-cta:active,
.nav-cta:active,
.vr-btn:active {
  transform: translateY(0) scale(0.985);
}

.button-gold {
  background: var(--vr-gold-grad);
  color: var(--vr-navy-deep);
  border-color: rgba(234, 219, 178, 0.4);
  box-shadow: 0 8px 22px rgba(201, 174, 114, 0.28);
}

.button-gold:hover {
  background: var(--vr-gold-grad);
  color: var(--vr-navy-deep);
  box-shadow: 0 14px 32px rgba(201, 174, 114, 0.45);
}

.button-dark {
  background: linear-gradient(135deg, #243d59 0%, #15283d 100%);
  color: #fff;
  box-shadow: 0 8px 22px rgba(21, 40, 61, 0.22);
}

.button-dark:hover {
  background: linear-gradient(135deg, #2d4c6e 0%, #1b334e 100%);
  color: var(--vr-gold-light);
  box-shadow: 0 14px 32px rgba(21, 40, 61, 0.36);
}

.button-ghost {
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.48);
  color: #fff;
}

.button-ghost:hover {
  background: #fff;
  color: var(--vr-navy-deep);
  border-color: #fff;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.22);
}

.button-line {
  border: 1.5px solid #cbd5df;
  background: #fff;
  color: var(--vr-navy);
}

.button-line:hover {
  border-color: var(--vr-navy);
  background: var(--vr-navy);
  color: #fff;
  box-shadow: 0 10px 24px rgba(28, 53, 80, 0.22);
}

.property-filters button {
  border-radius: 999px;
  padding: 10px 22px;
  font-weight: 600;
  transition: transform 0.25s var(--vr-ease), background-color 0.25s ease, color 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.property-filters button:hover {
  transform: translateY(-2px);
  border-color: var(--vr-navy);
  box-shadow: 0 6px 16px rgba(28, 53, 80, 0.12);
}

.property-filters button[aria-pressed="true"] {
  background: linear-gradient(135deg, #243d59 0%, #15283d 100%);
  border-color: transparent;
  color: var(--vr-gold-light);
  box-shadow: 0 8px 20px rgba(21, 40, 61, 0.24);
}

.quick-question {
  border-radius: 999px;
  padding: 8px 14px;
}

.quick-question:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(28, 53, 80, 0.16);
}

/* --------------------------------------------------------------------------
   3. MODERN ROUNDED CARDS & PANEL-MATCHED IMAGES (NO EMPTY GAPS)
   -------------------------------------------------------------------------- */
.apartment,
.post-card,
.contact-card,
.faq-intro,
.faq-list details,
.inline-contact,
.loan-calculator,
.vr-card,
.vr-loan-box,
.vr-amenity-card,
.vr-partner-card,
.vr-legal-card,
.vr-price-row-card,
.vr-highlight-card,
.vr-floorplan-panel {
  border-radius: var(--vr-radius-lg);
  overflow: hidden;
  transition: transform 0.35s var(--vr-ease), box-shadow 0.35s var(--vr-ease), border-color 0.3s ease;
}

.apartment,
.post-card {
  border: 1px solid rgba(28, 53, 80, 0.08);
  box-shadow: var(--vr-shadow-card);
}

.apartment:hover,
.post-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--vr-shadow-card-hover);
  border-color: rgba(201, 174, 114, 0.55);
}

.apartment-image span {
  border-radius: 999px;
  padding: 6px 13px;
  font-weight: 600;
  backdrop-filter: blur(6px);
  background: rgba(15, 33, 52, 0.84);
}

.faq-list details {
  border-radius: 14px;
}

.lead-form input,
.lead-form textarea,
.lead-form select {
  border-radius: 10px;
}

.lead-modal,
.product-modal,
.vr-loan-guide-dialog {
  border-radius: 22px !important;
  overflow: hidden !important;
  padding: 0 !important;
  box-shadow: 0 28px 70px rgba(8, 18, 30, 0.42);
}

.lead-modal {
  width: min(540px, calc(100% - 28px));
  max-height: min(92dvh, 780px);
}

.lead-modal .modal-inner {
  padding: 26px 30px 24px;
  max-height: min(92dvh, 780px);
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scrollbar-color: rgba(28, 53, 80, 0.25) transparent;
}

.lead-modal .modal-inner::-webkit-scrollbar {
  width: 6px;
}

.lead-modal .modal-inner::-webkit-scrollbar-thumb {
  background: rgba(28, 53, 80, 0.25);
  border-radius: 999px;
}

.lead-modal .modal-inner .eyebrow {
  margin-bottom: 6px;
}

.lead-modal .modal-inner h2 {
  font-size: clamp(1.65rem, 2.5vw, 2.1rem);
  margin-bottom: 6px;
}

.lead-modal .modal-inner > p:not(.eyebrow) {
  margin-bottom: 14px;
  font-size: 0.84rem;
}

.lead-modal .lead-form label {
  margin-bottom: 10px;
}

.lead-modal .lead-form input,
.lead-modal .lead-form select,
.lead-modal .lead-form textarea {
  padding: 9px 12px;
  margin-top: 4px;
}

.lead-modal .lead-form textarea {
  min-height: 68px;
}

.lead-modal .quick-questions {
  margin: 2px 0 12px;
}

.lead-modal .modal-close {
  right: 14px;
  top: 12px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #f1f5f9;
  color: var(--vr-navy-deep);
  font-size: 1.45rem;
  transition: background-color 0.2s ease, transform 0.2s ease;
}

.lead-modal .modal-close:hover {
  background: var(--vr-gold-light);
  transform: rotate(90deg);
}

/* --------------------------------------------------------------------------
   COMPACT SPACING SYSTEM (LESS EMPTY SPACE, TIGHTER MODERN LAYOUT)
   -------------------------------------------------------------------------- */
body:not(.admin-page) .section {
  padding: clamp(44px, 4.8vw, 68px) 0 !important;
}

body:not(.admin-page) .shell {
  width: min(100% - clamp(32px, 5vw, 80px), 1380px);
}

body:not(.admin-page) .intro-head,
body:not(.admin-page) .section-top,
.vision-intro-heading {
  margin-bottom: clamp(22px, 2.5vw, 32px) !important;
  gap: clamp(18px, 3vw, 40px) !important;
}

body:not(.admin-page) .intro-grid,
.vision-intro-layout,
.story-panel,
.amenity-layout,
body:not(.admin-page) .location-grid,
body:not(.admin-page) .contact-grid,
.faq-grid {
  gap: clamp(24px, 3.6vw, 48px) !important;
}

.vision-intro-layout .intro-picture,
.vision-intro-layout .intro-picture img {
  min-height: 380px;
}

.vision-intro-detail {
  margin-top: 18px;
  padding-top: 18px;
}

.vision-intro-content .overview-facts {
  margin-top: 20px;
}

.story-kicker {
  padding-bottom: 12px;
  margin-bottom: 16px;
}

.story-divider {
  margin-top: 16px;
}

.story-desc {
  margin-top: 14px;
}

.story-location {
  margin-top: 18px;
  padding-top: 16px;
}

.story-actions {
  margin-top: 20px;
}

.price-intro {
  margin: -10px 0 18px;
}

.property-filters {
  margin-bottom: 20px;
}

.vr-highlights-strip {
  padding: 24px 0;
}

.vr-page-hero {
  padding: clamp(50px, 6vw, 76px) 0 !important;
}

body.has-hero-header .vr-page-hero:first-child {
  padding-top: clamp(106px, 11vw, 140px) !important;
}

.vr-loan-section {
  margin-top: 28px;
}

.vr-loan-heading {
  margin-bottom: 16px;
}

.vr-loan-controls,
.vr-loan-result-pane {
  padding: clamp(20px, 2.4vw, 30px);
}

.vr-loan-controls {
  gap: 14px;
}

.vr-pricing-grid {
  gap: clamp(20px, 3vw, 32px);
}

.vr-price-row-card {
  padding: 16px 20px;
}

.vr-partner-grid {
  gap: 16px;
  margin-top: 24px;
}

.vr-partner-card {
  padding: 20px 22px;
}

.vr-legal-docs-grid {
  gap: 18px;
}

.vr-legal-doc-preview {
  padding: 20px 20px 18px;
  min-height: 185px;
}

.vr-legal-card-body {
  padding: 16px 20px 20px;
}

.vr-floorplan-tabs {
  margin-bottom: 18px;
}

.vr-fp-info {
  padding: clamp(20px, 2.5vw, 28px);
}

.vr-highlight-card {
  padding: 20px;
}

.faq-intro {
  min-height: 0;
  padding: clamp(24px, 3vw, 36px);
}

.faq-list summary {
  padding: 16px 18px;
}

.faq-list .faq-answer {
  padding: 0 36px 16px 56px;
}

body:not(.admin-page) .contact-card {
  padding: clamp(22px, 2.6vw, 32px);
}

.inline-contact {
  padding: clamp(22px, 2.8vw, 32px);
  margin-top: 26px;
}

.site-footer.site-footer-modern {
  padding: clamp(40px, 5vw, 56px) 0 26px;
}

.footer-modern-bottom {
  margin-top: 30px;
  padding-top: 18px;
}

/* Fix global object-fit: contain!important causing ugly empty gray gaps in panels */
body:not(.admin-page) main img,
body:not(.admin-page) .welcome-image img {
  object-fit: cover !important;
}

/* Panel containers wrap tightly around images with matching border-radius */
.intro-picture,
.story-image-frame,
.amenity-art-main,
.amenity-art-detail,
.gallery-item,
.location-image,
.about-image,
.project-page-image {
  border-radius: var(--vr-radius-lg);
  overflow: hidden;
  background-color: transparent;
}

.amenity-art-main {
  padding: 0;
  border-radius: var(--vr-radius-lg);
}

.amenity-art::before {
  border-radius: var(--vr-radius-lg);
}

.amenity-art-detail {
  border-radius: 16px;
  padding: 6px;
  background: #fff;
}

.amenity-art-detail img {
  border-radius: 12px;
}

.story-visual::before {
  border-radius: var(--vr-radius-lg);
}

.story-visual-mark {
  border-radius: 0 16px 0 0;
}

.intro-picture figcaption,
.story-visual figcaption {
  border-radius: 0 12px 0 0;
}

.apartment-image img,
.post-image img,
.gallery-item img,
.story-image-frame img,
.intro-picture img,
.property-group-button img {
  width: 100%;
  height: 100%;
  object-fit: cover !important;
  transition: transform 0.65s var(--vr-ease) !important;
}

.apartment:hover .apartment-image img,
.post-card:hover .post-image img,
.gallery-item:hover img,
.story-visual:hover .story-image-frame img {
  transform: scale(1.05) !important;
}

/* Maps, floorplans, and legal documents keep natural aspect ratio without awkward gaps */
body:not(.admin-page) .location-image img,
body:not(.admin-page) .vr-fit-natural img,
body:not(.admin-page) .vr-legal-doc-img {
  width: 100%;
  height: auto !important;
  object-fit: contain !important;
  display: block;
}

body:not(.admin-page) .location-image {
  background: #fff;
  box-shadow: var(--vr-shadow-card);
  border: 1px solid rgba(28, 53, 80, 0.08);
}

body:not(.admin-page) .location-image > span {
  background: var(--vr-navy);
  color: #fff;
}

/* --------------------------------------------------------------------------
   4. REVER-STYLE LOAN CALCULATOR (2-COLUMN, SLIDERS, DONUT CHART, CSV EXPORT)
   -------------------------------------------------------------------------- */
.vr-loan-section {
  margin-top: 44px;
}

.vr-loan-heading {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(1.75rem, 2.6vw, 2.35rem);
  color: var(--vr-navy-deep);
  margin: 0 0 22px;
}

.vr-loan-box {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  background: #fff;
  border: 1px solid #e2e8f0;
  box-shadow: 0 18px 48px rgba(15, 33, 52, 0.09);
}

.vr-loan-controls {
  padding: clamp(24px, 3vw, 38px);
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.vr-loan-field label.vr-loan-label {
  display: block;
  font-size: 0.84rem;
  font-weight: 600;
  color: #475569;
  margin-bottom: 10px;
}

.vr-loan-slider-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 108px;
  gap: 16px;
  align-items: center;
}

.vr-loan-range {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 6px;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(to right, var(--vr-navy) 0%, var(--vr-navy) var(--range-pct, 50%), #e2e8f0 var(--range-pct, 50%), #e2e8f0 100%);
  cursor: pointer;
}

.vr-loan-range::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #fff;
  border: 3.5px solid var(--vr-navy);
  box-shadow: 0 2px 8px rgba(15, 33, 52, 0.25);
  cursor: pointer;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.vr-loan-range::-webkit-slider-thumb:hover {
  transform: scale(1.14);
  border-color: var(--vr-gold);
}

.vr-loan-range::-moz-range-thumb {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #fff;
  border: 3.5px solid var(--vr-navy);
  box-shadow: 0 2px 8px rgba(15, 33, 52, 0.25);
  cursor: pointer;
}

.vr-loan-num,
.vr-loan-select {
  width: 100%;
  height: 44px;
  padding: 0 12px;
  border: 1.5px solid #d5dde6;
  border-radius: 10px;
  background: #fff;
  color: var(--vr-navy-deep);
  font-size: 0.94rem;
  font-weight: 600;
  margin: 0;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.vr-loan-num:focus,
.vr-loan-select:focus {
  outline: none;
  border-color: var(--vr-navy);
  box-shadow: 0 0 0 3px rgba(28, 53, 80, 0.12);
}

.vr-loan-rate-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 108px;
  gap: 12px;
}

.vr-loan-radios {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  padding-top: 4px;
}

.vr-loan-radio {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  font-size: 0.82rem;
  font-weight: 500;
  color: #334155;
  cursor: pointer;
  margin: 0;
  line-height: 1.45;
}

.vr-loan-radio input[type="radio"] {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  margin: 2px 0 0;
  accent-color: var(--vr-navy);
  cursor: pointer;
}

.vr-loan-calc-btn {
  width: 100%;
  margin-top: 4px;
}

.vr-loan-result-pane {
  background: #f5f7fa;
  padding: clamp(24px, 3vw, 38px);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border-left: 1px solid #e6ecf2;
}

.vr-loan-result-title {
  font-family: 'Be Vietnam Pro', sans-serif;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--vr-navy-deep);
  padding-bottom: 16px;
  margin: 0 0 22px;
  border-bottom: 1px solid #e2e8f0;
}

.vr-loan-chart-wrap {
  display: grid;
  grid-template-columns: 170px minmax(0, 1fr);
  gap: 24px;
  align-items: center;
  margin-bottom: 24px;
}

.vr-loan-donut {
  position: relative;
  width: 170px;
  height: 170px;
  margin: 0 auto;
}

.vr-loan-donut svg {
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}

.vr-loan-donut circle {
  fill: none;
  stroke-width: 15;
  stroke-linecap: butt;
  transition: stroke-dasharray 0.45s var(--vr-ease), stroke-dashoffset 0.45s var(--vr-ease);
}

.vr-loan-donut-bg {
  stroke: #e2e8f0;
}

.vr-loan-seg-down {
  stroke: #5b6bd5;
}

.vr-loan-seg-principal {
  stroke: #34b3a0;
}

.vr-loan-seg-interest {
  stroke: #d45d9b;
}

.vr-loan-donut-center {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 16px;
}

.vr-loan-donut-center strong {
  font-family: 'Be Vietnam Pro', sans-serif;
  font-size: 1.65rem;
  font-weight: 700;
  color: var(--vr-navy-deep);
  line-height: 1.15;
}

.vr-loan-donut-center span {
  font-size: 0.9rem;
  color: #64748b;
  margin-top: 2px;
}

.vr-loan-legend {
  display: grid;
  gap: 14px;
}

.vr-loan-legend-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.vr-loan-legend-item span {
  font-size: 0.78rem;
  color: #64748b;
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.vr-loan-legend-item span i {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  display: inline-block;
}

.vr-loan-legend-item strong {
  font-size: 0.98rem;
  font-weight: 700;
}

.vr-loan-legend-item.is-down span i { background: #5b6bd5; }
.vr-loan-legend-item.is-down strong { color: #4c5bc4; }

.vr-loan-legend-item.is-principal span i { background: #34b3a0; }
.vr-loan-legend-item.is-principal strong { color: #249584; }

.vr-loan-legend-item.is-interest span i { background: #d45d9b; }
.vr-loan-legend-item.is-interest strong { color: #c44a8a; }

.vr-loan-monthly-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 14px;
  padding: 18px 0;
  border-top: 1px solid #e2e8f0;
  border-bottom: 1px solid #e2e8f0;
  margin-bottom: 20px;
}

.vr-loan-monthly-row span {
  font-size: 0.86rem;
  color: #475569;
  font-weight: 600;
}

.vr-loan-monthly-row strong {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(1.5rem, 2.3vw, 2rem);
  color: var(--vr-navy-deep);
  font-weight: 700;
}

.vr-loan-download-btn {
  width: 100%;
  background: linear-gradient(135deg, #c73832 0%, #a92823 100%);
  color: #fff;
  border: 0;
  min-height: 48px;
  padding: 12px 20px;
  font-weight: 700;
  font-size: 0.86rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  box-shadow: 0 8px 20px rgba(185, 43, 39, 0.25);
}

.vr-loan-download-btn:hover {
  background: linear-gradient(135deg, #d8423c 0%, #b82f2a 100%);
  color: #fff;
  box-shadow: 0 12px 28px rgba(185, 43, 39, 0.38);
}

.vr-loan-download-btn svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
}

.vr-loan-guide-btn {
  margin-top: 14px;
  background: none;
  border: 0;
  color: var(--vr-navy);
  font-size: 0.84rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  width: 100%;
  padding: 6px;
  transition: color 0.2s ease;
}

.vr-loan-guide-btn:hover {
  color: #a88644;
  text-decoration: underline;
}

.vr-loan-guide-btn svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
}

.vr-loan-guide-dialog {
  width: min(680px, calc(100% - 32px));
  border-radius: 20px;
  padding: 0;
  overflow: hidden;
}

.vr-loan-guide-body {
  padding: 32px;
  max-height: 82vh;
  overflow-y: auto;
}

.vr-loan-guide-body h3 {
  font-size: 1.65rem;
  color: var(--vr-navy-deep);
  margin-bottom: 14px;
}

.vr-loan-guide-body h4 {
  font-family: 'Be Vietnam Pro', sans-serif;
  font-size: 0.95rem;
  color: var(--vr-navy);
  margin: 18px 0 8px;
}

.vr-loan-guide-body ul {
  margin: 0;
  padding-left: 18px;
  color: #475569;
  font-size: 0.86rem;
  line-height: 1.75;
}

@media (max-width: 920px) {
  .vr-loan-box {
    grid-template-columns: 1fr;
  }
  .vr-loan-result-pane {
    border-left: 0;
    border-top: 1px solid #e6ecf2;
  }
}

@media (max-width: 520px) {
  .vr-loan-chart-wrap {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .vr-loan-legend {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
  }
  .vr-loan-legend-item span {
    justify-content: center;
    font-size: 0.7rem;
  }
  .vr-loan-legend-item strong {
    font-size: 0.78rem;
  }
  .vr-loan-radios {
    grid-template-columns: 1fr;
  }
  .vr-loan-slider-row,
  .vr-loan-rate-row {
    grid-template-columns: minmax(0, 1fr) 88px;
    gap: 10px;
  }
}

/* --------------------------------------------------------------------------
   5. RICH PRODUCT DETAIL PAGE (SINGLE-VR_PROPERTY)
   -------------------------------------------------------------------------- */
.vr-product-page {
  padding-top: clamp(30px, 4vw, 52px);
}

.vr-breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 0.78rem;
  color: #64748b;
  margin-bottom: 24px;
}

.vr-breadcrumb a {
  color: var(--vr-navy);
  font-weight: 600;
}

.vr-breadcrumb a:hover {
  color: var(--vr-gold);
}

.vr-product-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.48fr) minmax(300px, 0.78fr);
  gap: clamp(28px, 4vw, 48px);
  align-items: start;
}

.vr-product-gallery-wrap {
  background: #fff;
  border-radius: var(--vr-radius-lg);
  overflow: hidden;
  border: 1px solid #e2e8f0;
  box-shadow: var(--vr-shadow-card);
  margin-bottom: 32px;
}

.vr-pg-stage {
  position: relative;
  aspect-ratio: 16 / 10;
  background: var(--vr-navy-deep);
  overflow: hidden;
}

.vr-pg-stage img {
  width: 100%;
  height: 100%;
  object-fit: cover !important;
  cursor: zoom-in;
  transition: transform 0.5s var(--vr-ease);
}

.vr-pg-stage:hover img {
  transform: scale(1.02);
}

.vr-pg-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.45);
  background: rgba(15, 33, 52, 0.72);
  backdrop-filter: blur(6px);
  color: #fff;
  font-size: 1.5rem;
  display: grid;
  place-items: center;
  transition: background-color 0.25s ease, transform 0.25s ease;
}

.vr-pg-nav:hover {
  background: var(--vr-gold);
  color: var(--vr-navy-deep);
  border-color: var(--vr-gold);
}

.vr-pg-prev { left: 16px; }
.vr-pg-next { right: 16px; }

.vr-pg-counter {
  position: absolute;
  right: 16px;
  bottom: 16px;
  padding: 6px 13px;
  border-radius: 999px;
  background: rgba(15, 33, 52, 0.8);
  backdrop-filter: blur(6px);
  color: #fff;
  font-size: 0.74rem;
  font-weight: 600;
}

.vr-pg-caption {
  position: absolute;
  left: 16px;
  bottom: 16px;
  padding: 6px 13px;
  border-radius: 999px;
  background: rgba(15, 33, 52, 0.72);
  backdrop-filter: blur(6px);
  color: var(--vr-gold-light);
  font-size: 0.72rem;
  font-weight: 600;
  max-width: 65%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.vr-pg-thumbs {
  display: flex;
  gap: 10px;
  padding: 14px;
  background: #f8fafc;
  overflow-x: auto;
  border-top: 1px solid #e2e8f0;
}

.vr-pg-thumb {
  flex: 0 0 96px;
  height: 68px;
  padding: 0;
  border: 2.5px solid transparent;
  border-radius: 10px;
  overflow: hidden;
  opacity: 0.65;
  background: #e2e8f0;
  transition: opacity 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.vr-pg-thumb:hover {
  opacity: 0.92;
  transform: translateY(-2px);
}

.vr-pg-thumb[aria-pressed="true"] {
  opacity: 1;
  border-color: var(--vr-navy);
  box-shadow: 0 4px 12px rgba(15, 33, 52, 0.22);
}

.vr-pg-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover !important;
}

.vr-product-sidebar {
  position: sticky;
  top: 96px;
  display: grid;
  gap: 20px;
}

.vr-summary-card {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: var(--vr-radius-lg);
  padding: 28px;
  box-shadow: var(--vr-shadow-card);
}

.vr-product-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
}

.vr-badge {
  display: inline-flex;
  align-items: center;
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.vr-badge-navy {
  background: var(--vr-navy);
  color: var(--vr-gold-light);
}

.vr-badge-green {
  background: #e6f4ee;
  color: #166534;
}

.vr-summary-card h1 {
  font-size: clamp(1.7rem, 2.3vw, 2.15rem);
  color: var(--vr-navy-deep);
  margin-bottom: 12px;
}

.vr-price-box {
  background: linear-gradient(135deg, #f8f6ef 0%, #f3efe2 100%);
  border: 1px solid #e5d8b4;
  border-radius: 14px;
  padding: 16px 18px;
  margin: 16px 0 20px;
}

.vr-price-box small {
  display: block;
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #7c673b;
  font-weight: 700;
}

.vr-price-box strong {
  display: block;
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.85rem;
  color: var(--vr-navy-deep);
  margin-top: 4px;
}

.vr-price-box span {
  display: block;
  font-size: 0.76rem;
  color: #64748b;
  margin-top: 4px;
}

.vr-quick-specs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 22px;
}

.vr-spec-pill {
  background: #f8fafc;
  border: 1px solid #e6ecf2;
  border-radius: 12px;
  padding: 11px 13px;
}

.vr-spec-pill span {
  display: block;
  font-size: 0.69rem;
  color: #64748b;
}

.vr-spec-pill strong {
  display: block;
  font-size: 0.88rem;
  color: var(--vr-navy-deep);
  margin-top: 3px;
}

.vr-sidebar-actions {
  display: grid;
  gap: 10px;
}

.vr-sidebar-actions .button {
  width: 100%;
}

.vr-product-block {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: var(--vr-radius-lg);
  padding: clamp(24px, 3vw, 34px);
  margin-bottom: 28px;
  box-shadow: 0 8px 24px rgba(15, 33, 52, 0.05);
}

.vr-product-block h2 {
  font-size: clamp(1.5rem, 2.2vw, 1.95rem);
  color: var(--vr-navy-deep);
  margin-bottom: 18px;
}

.vr-specs-table {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 28px;
  margin: 0;
}

.vr-specs-table > div {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid #e6ecf2;
  font-size: 0.85rem;
}

.vr-specs-table dt { color: #64748b; }
.vr-specs-table dd { margin: 0; font-weight: 600; color: var(--vr-navy-deep); text-align: right; }

/* Visual Amenity Cards (1 image per amenity) */
.vr-amenity-photo-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.vr-amenity-card {
  background: #fff;
  border: 1px solid #e2e8f0;
  box-shadow: 0 8px 22px rgba(15, 33, 52, 0.06);
  display: flex;
  flex-direction: column;
}

.vr-amenity-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--vr-shadow-card-hover);
  border-color: rgba(201, 174, 114, 0.6);
}

.vr-amenity-card-media {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--vr-navy);
}

.vr-amenity-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover !important;
  transition: transform 0.6s var(--vr-ease) !important;
}

.vr-amenity-card:hover .vr-amenity-card-media img {
  transform: scale(1.06) !important;
}

.vr-amenity-card-body {
  padding: 16px 18px 18px;
}

.vr-amenity-card-body h3 {
  font-family: 'Be Vietnam Pro', sans-serif;
  font-size: 0.96rem;
  font-weight: 700;
  color: var(--vr-navy-deep);
  margin: 0 0 6px;
}

.vr-amenity-card-body p {
  font-size: 0.8rem;
  line-height: 1.55;
  color: #64748b;
  margin: 0;
}

@media (max-width: 980px) {
  .vr-product-layout {
    grid-template-columns: 1fr;
  }
  .vr-product-sidebar {
    position: static;
  }
  .vr-amenity-photo-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 600px) {
  .vr-specs-table,
  .vr-amenity-photo-grid {
    grid-template-columns: 1fr;
  }
}

/* --------------------------------------------------------------------------
   6. EMERALD-INSPIRED DARK NAVY PAGES (PRICING, DEVELOPER, LEGAL, FLOORPLANS)
   -------------------------------------------------------------------------- */
.vr-page-hero {
  position: relative;
  background: radial-gradient(circle at 80% 20%, rgba(201, 174, 114, 0.16) 0%, transparent 45%),
              linear-gradient(135deg, #0d1e2f 0%, #173049 52%, #102438 100%);
  color: #fff;
  padding: clamp(120px, 13vw, 175px) 0 clamp(68px, 8vw, 105px);
  overflow: hidden;
}

.vr-page-hero::after {
  content: "";
  position: absolute;
  right: -120px;
  top: -120px;
  width: 460px;
  height: 460px;
  border-radius: 50%;
  border: 1px solid rgba(234, 219, 178, 0.14);
  pointer-events: none;
}

.vr-page-hero.is-centered {
  text-align: center;
}

.vr-page-hero .eyebrow {
  color: var(--vr-gold-light);
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.vr-page-hero.is-centered .eyebrow::before,
.vr-page-hero.is-centered .eyebrow::after {
  content: "";
  width: 34px;
  height: 1px;
  background: rgba(234, 219, 178, 0.45);
}

.vr-page-hero h1 {
  color: #fff;
  font-size: clamp(2.3rem, 4.6vw, 4rem);
  line-height: 1.15;
  margin-bottom: 18px;
}

.vr-page-hero h1 em {
  font-style: italic;
  color: var(--vr-gold-light);
  font-weight: 500;
}

.vr-page-hero .vr-hero-lead {
  color: rgba(232, 238, 244, 0.86);
  font-size: 1rem;
  line-height: 1.8;
  max-width: 740px;
}

.vr-page-hero.is-centered .vr-hero-lead {
  margin: 0 auto;
}

.vr-gold-divider {
  width: 58px;
  height: 2px;
  background: var(--vr-gold);
  margin: 18px 0 24px;
}

.vr-page-hero.is-centered .vr-gold-divider {
  margin: 18px auto 26px;
}

/* Pricing Highlight Number & Pills */
.vr-price-big {
  margin: 24px 0 10px;
}

.vr-price-big small {
  display: block;
  font-size: 0.86rem;
  color: rgba(232, 238, 244, 0.8);
  margin-bottom: 4px;
}

.vr-price-big strong {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(3.4rem, 7vw, 5.4rem);
  color: var(--vr-gold-light);
  font-weight: 500;
  line-height: 1;
}

.vr-price-big span {
  font-family: 'Be Vietnam Pro', sans-serif;
  font-size: clamp(1.1rem, 2vw, 1.55rem);
  color: var(--vr-gold-light);
  font-weight: 600;
  margin-left: 8px;
}

.vr-price-vat-note {
  font-size: 0.82rem;
  color: rgba(214, 224, 235, 0.78);
  margin-bottom: 26px;
}

.vr-pill-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-bottom: 18px;
}

.vr-glass-pill {
  padding: 10px 22px;
  border-radius: 999px;
  border: 1px solid rgba(234, 219, 178, 0.34);
  background: rgba(255, 255, 255, 0.06);
  color: #f4f1e6;
  font-size: 0.84rem;
  font-weight: 500;
}

/* Pricing Table + Form 2-col */
.vr-pricing-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: clamp(24px, 4vw, 44px);
  align-items: start;
}

.vr-price-list {
  display: grid;
  gap: 14px;
}

.vr-price-row-card {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  padding: 22px 26px;
  background: #fff;
  border: 1px solid #e2e8f0;
  box-shadow: 0 8px 24px rgba(15, 33, 52, 0.06);
}

.vr-price-row-card:hover {
  transform: translateY(-3px);
  border-color: var(--vr-gold);
  box-shadow: var(--vr-shadow-card-hover);
}

.vr-price-row-card h3 {
  font-family: 'Be Vietnam Pro', sans-serif;
  font-size: 1.08rem;
  font-weight: 700;
  color: var(--vr-navy-deep);
  margin: 0 0 4px;
}

.vr-price-row-card p {
  font-size: 0.84rem;
  color: #64748b;
  margin: 0;
}

.vr-price-row-value {
  text-align: right;
  flex-shrink: 0;
}

.vr-price-row-value strong {
  display: block;
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.45rem;
  color: #9e7e3e;
}

.vr-price-row-value small {
  font-size: 0.72rem;
  color: #64748b;
}

/* Partner Cards (Emerald Developer page style) */
.vr-partner-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  margin-top: 38px;
}

.vr-partner-card {
  padding: 26px 28px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(234, 219, 178, 0.24);
  backdrop-filter: blur(8px);
}

.vr-partner-card:hover {
  transform: translateY(-4px);
  background: rgba(255, 255, 255, 0.09);
  border-color: var(--vr-gold-light);
}

.vr-partner-card small {
  display: block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--vr-gold-light);
  margin-bottom: 8px;
}

.vr-partner-card h3 {
  font-family: 'Be Vietnam Pro', sans-serif;
  font-size: 1.2rem;
  font-weight: 700;
  color: #fff;
  margin: 0 0 8px;
}

.vr-partner-card p {
  font-size: 0.86rem;
  color: rgba(226, 234, 242, 0.8);
  line-height: 1.65;
  margin: 0;
}

/* Legal Document Cards (Emerald Legal page style) */
.vr-legal-docs-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 26px;
}

.vr-legal-card {
  background: #fff;
  border: 1px solid #e2e8f0;
  box-shadow: var(--vr-shadow-card);
  display: flex;
  flex-direction: column;
}

.vr-legal-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--vr-shadow-card-hover);
  border-color: var(--vr-gold);
}

.vr-legal-doc-preview {
  position: relative;
  background: #f8fafc;
  padding: 28px 26px 24px;
  border-bottom: 1px solid #e2e8f0;
  min-height: 230px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.vr-legal-doc-header {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 0.66rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #475569;
  font-weight: 700;
  text-align: center;
  padding-bottom: 14px;
  border-bottom: 1px dashed #cbd5e1;
}

.vr-legal-doc-seal {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--vr-gold-grad);
  color: var(--vr-navy-deep);
  display: grid;
  place-items: center;
  position: absolute;
  right: 18px;
  top: 18px;
  box-shadow: 0 6px 16px rgba(15, 33, 52, 0.16);
}

.vr-legal-doc-seal svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
}

.vr-legal-doc-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.25rem;
  color: var(--vr-navy-deep);
  margin: 18px 0 8px;
  text-align: center;
}

.vr-legal-doc-meta {
  font-size: 0.78rem;
  color: #64748b;
  text-align: center;
}

.vr-legal-card-body {
  padding: 22px 26px 26px;
}

.vr-legal-card-body p {
  font-size: 0.86rem;
  line-height: 1.7;
  color: #475569;
  margin-bottom: 14px;
}

.vr-legal-status {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 0.76rem;
  font-weight: 700;
  color: #166534;
  background: #e6f4ee;
  padding: 5px 12px;
  border-radius: 999px;
}

/* Floorplan Interactive Tabs (Emerald Floorplan style) */
.vr-floorplan-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 26px;
}

.vr-fp-tab {
  padding: 11px 22px;
  border-radius: 999px;
  border: 1.5px solid #cbd5e1;
  background: #fff;
  color: var(--vr-navy);
  font-size: 0.84rem;
  font-weight: 600;
  transition: all 0.25s var(--vr-ease);
}

.vr-fp-tab:hover {
  border-color: var(--vr-navy);
  transform: translateY(-2px);
}

.vr-fp-tab[aria-selected="true"] {
  background: linear-gradient(135deg, #243d59 0%, #15283d 100%);
  border-color: transparent;
  color: var(--vr-gold-light);
  box-shadow: 0 8px 20px rgba(21, 40, 61, 0.24);
}

.vr-floorplan-panel {
  background: #fff;
  border: 1px solid #e2e8f0;
  box-shadow: var(--vr-shadow-card);
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(280px, 0.7fr);
  align-items: stretch;
}

.vr-floorplan-panel[hidden] {
  display: none !important;
}

.vr-fp-visual {
  position: relative;
  background: #f1f5f9;
  overflow: hidden;
  min-height: 360px;
}

.vr-fp-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover !important;
  cursor: zoom-in;
}

.vr-fp-info {
  padding: clamp(24px, 3vw, 36px);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.vr-fp-info h3 {
  font-size: 1.65rem;
  color: var(--vr-navy-deep);
  margin-bottom: 12px;
}

.vr-fp-info p {
  font-size: 0.9rem;
  line-height: 1.75;
  margin-bottom: 18px;
}

.vr-fp-specs {
  margin: 0 0 22px;
  border-top: 1px solid #e2e8f0;
}

.vr-fp-specs > div {
  display: flex;
  justify-content: space-between;
  padding: 10px 0;
  border-bottom: 1px solid #e2e8f0;
  font-size: 0.84rem;
}

.vr-fp-specs dt { color: #64748b; }
.vr-fp-specs dd { margin: 0; font-weight: 700; color: var(--vr-navy-deep); }

/* Project Highlights Strip (Rich content on Homepage) */
.vr-highlights-strip {
  background: var(--vr-navy-deep);
  color: #fff;
  padding: 36px 0;
  border-top: 1px solid rgba(234, 219, 178, 0.16);
  border-bottom: 1px solid rgba(234, 219, 178, 0.16);
}

.vr-highlights-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 20px;
}

.vr-highlight-item {
  text-align: center;
  padding: 12px 10px;
  border-right: 1px solid rgba(255, 255, 255, 0.12);
}

.vr-highlight-item:last-child {
  border-right: 0;
}

.vr-highlight-item strong {
  display: block;
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(1.65rem, 2.5vw, 2.3rem);
  color: var(--vr-gold-light);
  line-height: 1.15;
}

.vr-highlight-item span {
  display: block;
  font-size: 0.76rem;
  color: rgba(226, 234, 242, 0.8);
  margin-top: 6px;
}

/* Info Grid Cards (Payment steps, Nearby connectivity, Highlights) */
.vr-info-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.vr-info-grid-4 {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
}

.vr-highlight-card {
  background: #fff;
  border: 1px solid #e2e8f0;
  padding: 26px;
  box-shadow: var(--vr-shadow-card);
}

.vr-highlight-card:hover {
  transform: translateY(-4px);
  border-color: var(--vr-gold);
  box-shadow: var(--vr-shadow-card-hover);
}

.vr-highlight-card .vr-step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: #f4efe0;
  color: #967739;
  font-weight: 700;
  font-size: 0.88rem;
  margin-bottom: 14px;
}

.vr-highlight-card h3 {
  font-family: 'Be Vietnam Pro', sans-serif;
  font-size: 1.04rem;
  font-weight: 700;
  color: var(--vr-navy-deep);
  margin-bottom: 8px;
}

.vr-highlight-card p {
  font-size: 0.85rem;
  line-height: 1.65;
  color: #64748b;
}

/* --------------------------------------------------------------------------
   7. MODERN 3-COLUMN FOOTER (NO OTP BUTTON)
   -------------------------------------------------------------------------- */
.site-footer.site-footer-modern {
  background: linear-gradient(180deg, #0d1d2e 0%, #091522 100%);
  color: rgba(232, 238, 244, 0.86);
  padding: clamp(56px, 7vw, 84px) 0 34px;
}

.footer-modern-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 0.9fr) minmax(0, 1.05fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: start;
}

.site-footer-modern .brand-footer {
  margin-bottom: 18px;
}

.site-footer-modern .brand-footer strong {
  color: #fff;
  font-size: 1.25rem;
}

.site-footer-modern .brand-footer small {
  color: rgba(234, 219, 178, 0.78);
}

.site-footer-modern .brand-footer .brand-photo {
  border-radius: 10px;
}

.footer-brand-desc {
  font-size: 0.88rem;
  line-height: 1.75;
  color: rgba(214, 224, 235, 0.78);
  max-width: 360px;
  margin: 0 0 18px;
}

.footer-social-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.footer-social-pill {
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid rgba(234, 219, 178, 0.3);
  color: var(--vr-gold-light);
  font-size: 0.76rem;
  font-weight: 600;
  transition: all 0.25s ease;
}

.footer-social-pill:hover {
  background: var(--vr-gold);
  color: var(--vr-navy-deep);
  border-color: var(--vr-gold);
}

.site-footer-modern h2 {
  font-family: 'Be Vietnam Pro', sans-serif !important;
  font-size: 0.8rem !important;
  font-weight: 700 !important;
  letter-spacing: 0.14em !important;
  text-transform: uppercase;
  color: var(--vr-gold-light);
  margin: 0 0 20px !important;
}

.site-footer-modern ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 11px;
}

.site-footer-modern li a,
.footer-text-btn {
  color: rgba(226, 234, 242, 0.82);
  font-size: 0.88rem;
  transition: color 0.2s ease, transform 0.2s ease;
  display: inline-block;
}

.footer-text-btn {
  background: none;
  border: 0;
  padding: 0;
  text-align: left;
  cursor: pointer;
}

.site-footer-modern li a:hover,
.footer-text-btn:hover {
  color: var(--vr-gold-light);
  transform: translateX(3px);
}

.footer-address-item strong {
  color: #fff;
  font-weight: 600;
  line-height: 1.65;
  display: block;
  margin-top: 4px;
}

.footer-modern-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  margin-top: 46px;
  padding-top: 24px;
}

.footer-copyright {
  font-size: 0.8rem;
  color: rgba(214, 224, 235, 0.72);
  margin: 0 0 10px;
}

.footer-disclaimer {
  font-size: 0.74rem;
  line-height: 1.65;
  color: rgba(182, 198, 214, 0.56);
  margin: 0;
  max-width: 1080px;
}

@media (max-width: 960px) {
  .vr-pricing-grid,
  .vr-floorplan-panel,
  .vr-partner-grid,
  .vr-legal-docs-grid,
  .footer-modern-grid {
    grid-template-columns: 1fr;
  }
  .vr-highlights-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .vr-highlight-item {
    border-right: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }
  .vr-info-grid-3,
  .vr-info-grid-4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 600px) {
  .vr-info-grid-3,
  .vr-info-grid-4 {
    grid-template-columns: 1fr;
  }
  .vr-price-row-card {
    flex-direction: column;
    align-items: flex-start;
  }
  .vr-price-row-value {
    text-align: left;
  }
}


/* --------------------------------------------------------------------------
   8. FULL OVERVIEW FACTS, FLEXIBLE STORY LOGO MARK & RICH PRODUCT ARTICLE
   -------------------------------------------------------------------------- */
/* Hiển thị ĐẦY ĐỦ tất cả các dòng thông tin trong Tổng quan dự án */
.overview-facts .facts-list > div:nth-child(n+6) {
  display: grid !important;
}

/* Chế độ bài viết cho trang chi tiết sản phẩm: ảnh chèn bất kỳ đâu đều to rõ đẹp */
.vr-product-article .prose {
  font-size: 0.98rem;
  line-height: 1.85;
  color: #334155;
}

.vr-product-article .prose h2,
.vr-product-article .prose h3,
.vr-product-article .prose h4 {
  color: var(--vr-navy-deep);
  margin: 1.4em 0 0.6em;
}

.vr-product-article .prose figure,
.vr-product-article .prose .wp-block-image {
  width: 100%;
  margin: 22px 0;
  text-align: center;
}

.vr-product-article .prose img,
.vr-product-article .prose .wp-block-image img {
  display: block;
  width: 100% !important;
  max-width: 100% !important;
  height: auto !important;
  object-fit: contain !important;
  border-radius: 14px;
  margin: 18px auto;
  background: #fff;
  box-shadow: 0 10px 28px rgba(15, 33, 52, 0.08);
  cursor: zoom-in;
  transition: transform 0.3s var(--vr-ease), box-shadow 0.3s var(--vr-ease);
}

.vr-product-article .prose img:hover {
  transform: scale(1.01);
  box-shadow: 0 16px 38px rgba(15, 33, 52, 0.14);
}

.vr-product-article .prose figcaption {
  font-size: 0.8rem;
  color: #64748b;
  margin-top: 8px;
  font-style: italic;
}

.vr-product-article .prose .wp-block-gallery {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin: 22px 0;
}

.vr-product-article .prose ul,
.vr-product-article .prose ol {
  padding-left: 22px;
  margin: 0 0 1.2em;
}

.vr-product-article .prose li {
  margin-bottom: 8px;
}

/* Tinh chỉnh linh hoạt vị trí & kích thước ô Logo ở khối Giới thiệu dự án */
.story-image-frame {
  position: relative;
}

.story-image-frame .story-visual-mark {
  position: absolute;
  z-index: 2;
  background: rgba(21, 40, 61, 0.92);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(234, 219, 178, 0.25);
  box-shadow: 0 12px 28px rgba(8, 18, 30, 0.26);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 6px;
  margin: 0;
}

.story-image-frame .story-visual-mark.pos-bottom-left {
  left: 14px;
  bottom: 14px;
  top: auto;
  right: auto;
  border-radius: 14px;
}

.story-image-frame .story-visual-mark.pos-top-left {
  left: 14px;
  top: 14px;
  bottom: auto;
  right: auto;
  border-radius: 14px;
}

.story-image-frame .story-visual-mark.pos-top-right {
  right: 14px;
  top: 14px;
  left: auto;
  bottom: auto;
  border-radius: 14px;
}

.story-image-frame .story-visual-mark.pos-bottom-right {
  right: 14px;
  bottom: 14px;
  left: auto;
  top: auto;
  border-radius: 14px;
}

.story-image-frame .story-visual-mark.size-sm {
  width: 96px;
  min-height: 76px;
  padding: 10px;
}

.story-image-frame .story-visual-mark.size-sm span img {
  max-height: 40px;
}

.story-image-frame .story-visual-mark.size-md {
  width: 126px;
  min-height: 98px;
  padding: 13px;
}

.story-image-frame .story-visual-mark.size-md span img {
  max-height: 54px;
}

.story-image-frame .story-visual-mark.size-lg {
  width: 158px;
  min-height: 120px;
  padding: 16px;
}

.story-image-frame .story-visual-mark.size-lg span img {
  max-height: 70px;
}

.story-image-frame .story-visual-mark span img {
  object-fit: contain !important;
  border-radius: 6px;
}


/* --------------------------------------------------------------------------
   9. V3.4 POLISH: EMOJI FIX, COMPACT SIDEBAR, LUXURY CARDS & LOAN HEADER
   -------------------------------------------------------------------------- */
/* Fix WordPress emoji/smiley images blown up to 100% width */
.prose img.emoji,
.prose img.wp-smiley,
.vr-product-article .prose img.emoji,
.vr-product-article .prose img.wp-smiley,
img.emoji,
img.wp-smiley {
  display: inline !important;
  width: 1.12em !important;
  height: 1.12em !important;
  max-width: 1.12em !important;
  min-width: 0 !important;
  margin: 0 0.12em !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  background: transparent !important;
  vertical-align: -0.16em !important;
  object-fit: contain !important;
  cursor: default !important;
  transform: none !important;
}

/* Compact Sticky Product Sidebar so all 4 buttons fit on laptop screens */
.vr-product-sidebar {
  top: 84px;
  gap: 14px;
}

.vr-summary-card {
  padding: 18px 20px;
}

.vr-product-badges {
  margin-bottom: 10px;
  gap: 6px;
}

.vr-badge {
  padding: 4px 10px;
  font-size: 0.65rem;
}

.vr-summary-card h1 {
  font-size: clamp(1.35rem, 1.8vw, 1.65rem);
  margin-bottom: 8px;
}

.vr-price-box {
  padding: 12px 14px;
  margin: 10px 0 12px;
  border-radius: 12px;
}

.vr-price-box strong {
  font-size: 1.45rem;
  margin-top: 2px;
}

.vr-price-box span {
  font-size: 0.72rem;
  margin-top: 2px;
}

.vr-quick-specs {
  gap: 8px;
  margin-bottom: 14px;
}

.vr-spec-pill {
  padding: 8px 10px;
  border-radius: 10px;
}

.vr-spec-pill span {
  font-size: 0.66rem;
}

.vr-spec-pill strong {
  font-size: 0.82rem;
  margin-top: 1px;
}

.vr-sidebar-actions {
  gap: 7px;
}

.vr-sidebar-actions .button {
  min-height: 41px;
  padding: 8px 14px;
  font-size: 0.78rem;
  border-radius: 10px;
}

/* Luxury Equal-Height Product Cards (click anywhere to open detail) */
.apartment[data-product-card] {
  display: flex;
  flex-direction: column;
  height: 100%;
  cursor: pointer;
  background: #fff;
}

.apartment[data-product-card] .apartment-image {
  aspect-ratio: 16 / 10;
  flex-shrink: 0;
}

.apartment[data-product-card] .apartment-image img {
  height: 100% !important;
}

.apartment[data-product-card] .apartment-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 20px 22px 22px;
}

.apartment[data-product-card] .apt-price {
  background: linear-gradient(135deg, #f9f7f0 0%, #f4efe1 100%);
  border: 1px solid #e7dcb9;
  border-radius: 12px;
  padding: 12px 14px;
  margin: 0 0 16px;
}

.apartment[data-product-card] .product-detail-button {
  margin-top: auto;
}

/* Luxury Full-Bleed Overlay Amenity Cards (100% uniform height, zero unevenness) */
.vr-amenity-photo-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.vr-amenity-card {
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid rgba(28, 53, 80, 0.12);
  box-shadow: 0 14px 34px rgba(15, 33, 52, 0.12);
  background: var(--vr-navy-deep);
}

.vr-amenity-card:hover {
  transform: translateY(-6px);
  border-color: var(--vr-gold);
  box-shadow: 0 22px 48px rgba(15, 33, 52, 0.22);
}

.vr-amenity-card-media {
  position: relative;
  aspect-ratio: 4 / 3.2;
  width: 100%;
  overflow: hidden;
  background: var(--vr-navy-deep);
}

.vr-amenity-card-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(10, 24, 38, 0.08) 0%, rgba(10, 24, 38, 0.28) 42%, rgba(10, 24, 38, 0.92) 100%);
  pointer-events: none;
  transition: opacity 0.35s ease;
}

.vr-amenity-card:hover .vr-amenity-card-media::after {
  background: linear-gradient(180deg, rgba(10, 24, 38, 0.04) 0%, rgba(10, 24, 38, 0.22) 38%, rgba(10, 24, 38, 0.94) 100%);
}

.vr-amenity-num {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 2;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(15, 33, 52, 0.72);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(234, 219, 178, 0.38);
  color: var(--vr-gold-light);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.1em;
}

.vr-amenity-overlay {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
  padding: 18px 20px 18px;
  pointer-events: none;
}

.vr-amenity-overlay h3 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.12rem;
  font-weight: 600;
  color: #fff;
  line-height: 1.3;
  margin: 0 0 6px;
}

.vr-amenity-overlay p {
  font-size: 0.78rem;
  line-height: 1.5;
  color: rgba(232, 238, 244, 0.88);
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Loan Calculator Header with Product Price Pill & Compact Layout */
.vr-loan-header-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}

.vr-loan-header-row .vr-loan-heading {
  margin: 0;
}

.vr-loan-product-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 16px;
  border-radius: 999px;
  background: linear-gradient(135deg, #f8f5eb 0%, #f1ead5 100%);
  border: 1px solid #dfd0a2;
  font-size: 0.8rem;
  color: var(--vr-navy);
}

.vr-loan-product-pill strong {
  color: #8f6f2d;
  font-weight: 700;
}

.vr-loan-box {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
}

.vr-loan-donut {
  width: 146px;
  height: 146px;
}

.vr-loan-chart-wrap {
  grid-template-columns: 146px minmax(0, 1fr);
  gap: 18px;
  margin-bottom: 16px;
}

.vr-loan-monthly-row {
  padding: 14px 0;
  margin-bottom: 14px;
}

@media (max-width: 980px) {
  .vr-amenity-photo-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 600px) {
  .vr-amenity-photo-grid {
    grid-template-columns: 1fr;
  }
}


/* --------------------------------------------------------------------------
   10. LEGAL DOCUMENT PHOTO LIGHTBOX CARDS & PDF DOWNLOAD ROWS
   -------------------------------------------------------------------------- */
.vr-legal-photo-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}

.vr-legal-photo-card {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  background: #fff;
  aspect-ratio: 4 / 3.4;
  cursor: zoom-in;
  border: 1px solid rgba(234, 219, 178, 0.28);
  box-shadow: 0 18px 42px rgba(5, 14, 24, 0.34);
  transition: transform 0.35s var(--vr-ease), box-shadow 0.35s var(--vr-ease), border-color 0.3s ease;
}

.vr-legal-photo-card:hover {
  transform: translateY(-5px);
  border-color: var(--vr-gold-light);
  box-shadow: 0 26px 56px rgba(5, 14, 24, 0.48);
}

.vr-legal-photo-card img {
  width: 100%;
  height: 100%;
  object-fit: cover !important;
  object-position: top center;
  transition: transform 0.55s var(--vr-ease) !important;
}

.vr-legal-photo-card:hover img {
  transform: scale(1.03) !important;
}

.vr-legal-zoom-btn {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--vr-gold-grad);
  color: var(--vr-navy-deep);
  display: grid;
  place-items: center;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25);
  transition: transform 0.25s var(--vr-ease);
}

.vr-legal-photo-card:hover .vr-legal-zoom-btn {
  transform: scale(1.1);
}

.vr-legal-zoom-btn svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
}

.vr-legal-photo-bar {
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 16px;
  padding: 14px 18px;
  border-radius: 14px;
  background: rgba(24, 44, 66, 0.88);
  backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  gap: 14px;
  color: #fff;
}

.vr-legal-doc-ico {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: rgba(234, 219, 178, 0.16);
  color: var(--vr-gold-light);
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.vr-legal-doc-ico svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
}

.vr-legal-photo-bar h3 {
  font-family: 'Be Vietnam Pro', sans-serif;
  font-size: 0.94rem;
  font-weight: 700;
  color: #fff;
  margin: 0;
}

.vr-legal-photo-bar p {
  font-size: 0.78rem;
  color: rgba(226, 234, 242, 0.82);
  margin: 3px 0 0;
}

/* PDF Download & View Rows */
.vr-pdf-list {
  display: grid;
  gap: 14px;
  margin-top: 24px;
}

.vr-pdf-row {
  background: #fff;
  border-radius: 16px;
  padding: 18px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  box-shadow: 0 12px 30px rgba(5, 14, 24, 0.22);
  transition: transform 0.25s var(--vr-ease), box-shadow 0.25s var(--vr-ease);
}

.vr-pdf-row:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 40px rgba(5, 14, 24, 0.3);
}

.vr-pdf-left {
  display: flex;
  align-items: center;
  gap: 16px;
  min-width: 0;
}

.vr-pdf-badge {
  width: 48px;
  height: 54px;
  border-radius: 10px;
  background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
  color: #fff;
  font-weight: 800;
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  box-shadow: 0 6px 14px rgba(220, 38, 38, 0.28);
}

.vr-pdf-meta h3 {
  font-family: 'Be Vietnam Pro', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  color: var(--vr-navy-deep);
  margin: 0 0 4px;
}

.vr-pdf-meta p {
  font-size: 0.84rem;
  color: #64748b;
  margin: 0 0 5px;
}

.vr-pdf-sub {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  font-size: 0.76rem;
  color: #475569;
}

.vr-pdf-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.vr-pdf-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 96px;
  height: 42px;
  padding: 0 20px;
  border-radius: 999px;
  border: 0;
  background: linear-gradient(135deg, #1f3c5c 0%, #102438 100%);
  color: #fff;
  font-size: 0.84rem;
  font-weight: 700;
  box-shadow: 0 6px 16px rgba(16, 36, 56, 0.24);
}

.vr-pdf-btn:hover {
  background: linear-gradient(135deg, #284c73 0%, #16324f 100%);
  color: var(--vr-gold-light);
  box-shadow: 0 10px 24px rgba(16, 36, 56, 0.36);
}

.vr-pdf-btn-view {
  background: var(--vr-gold-grad);
  color: var(--vr-navy-deep);
}

.vr-pdf-btn-view:hover {
  background: var(--vr-gold-grad);
  color: var(--vr-navy-deep);
}

/* Lightbox ảnh văn bản sắc nét, bo góc đẹp */
.lightbox {
  border-radius: 16px;
  padding: 0;
  overflow: visible;
}

.lightbox img {
  max-width: 92vw;
  max-height: 90dvh;
  border-radius: 14px;
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.55);
  background: #fff;
  object-fit: contain !important;
}

@media (max-width: 780px) {
  .vr-legal-photo-grid {
    grid-template-columns: 1fr;
  }
  .vr-pdf-row {
    flex-direction: column;
    align-items: flex-start;
  }
  .vr-pdf-actions {
    width: 100%;
  }
  .vr-pdf-btn {
    flex: 1;
  }
}


/* --------------------------------------------------------------------------
   11. BALANCED LOCATION SECTION (IMAGE ON TOP + GOOGLE MAP BELOW)
   -------------------------------------------------------------------------- */
body:not(.admin-page) .location-grid.location-grid-balanced {
  grid-template-columns: minmax(320px, 0.92fr) minmax(0, 1.08fr);
  align-items: start;
  gap: clamp(28px, 4vw, 52px) !important;
}

.location-media-stack {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.location-media-stack .location-image {
  cursor: zoom-in;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: var(--vr-shadow-card);
  border: 1px solid rgba(28, 53, 80, 0.1);
  transition: transform 0.3s var(--vr-ease), box-shadow 0.3s var(--vr-ease);
}

.location-media-stack .location-image:hover {
  transform: translateY(-3px);
  box-shadow: var(--vr-shadow-card-hover);
}

.location-map-card {
  border-radius: 18px;
  overflow: hidden;
  background: #fff;
  border: 1px solid rgba(28, 53, 80, 0.1);
  box-shadow: var(--vr-shadow-card);
}

.location-map-card iframe {
  display: block;
  width: 100%;
  height: clamp(300px, 28vw, 380px);
  border: 0;
}

@media (max-width: 900px) {
  body:not(.admin-page) .location-grid.location-grid-balanced {
    grid-template-columns: 1fr;
  }
  .location-map-card iframe {
    height: 300px;
  }
}


/* --------------------------------------------------------------------------
   12. PDF UPLOAD CARDS (CENTERED WHEN 1, MAX 2/ROW) & FULLSCREEN PDF MODAL
   -------------------------------------------------------------------------- */
.vr-legal-photo-grid.is-single {
  grid-template-columns: minmax(0, 680px);
  justify-content: center;
}

.vr-pdf-embed-preview {
  position: relative;
  width: 100%;
  height: 100%;
  background: #f8fafc;
  overflow: hidden;
  pointer-events: none;
}

.vr-pdf-embed-preview iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
  pointer-events: none;
}

.vr-legal-bar-text {
  min-width: 0;
}

.vr-legal-bar-text h3,
.vr-legal-bar-text p {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.vr-pdf-row.is-clickable {
  cursor: pointer;
}

.vr-pdf-modal {
  width: min(1060px, calc(100% - 28px));
  height: min(90dvh, 880px);
  max-width: none;
  max-height: none;
  border-radius: 20px !important;
  overflow: hidden !important;
  padding: 0 !important;
  background: #0f2134;
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.55);
}

.vr-pdf-modal[open] {
  display: flex;
  flex-direction: column;
}

.vr-pdf-modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 20px;
  background: #102438;
  border-bottom: 1px solid rgba(234, 219, 178, 0.18);
  color: #fff;
}

.vr-pdf-modal-head strong {
  font-size: 0.96rem;
  font-weight: 700;
  color: var(--vr-gold-light);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.vr-pdf-modal-tools {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.vr-pdf-modal-close {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.25);
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  font-size: 1.5rem;
  line-height: 1;
  display: grid;
  place-items: center;
  transition: background-color 0.2s ease, transform 0.2s ease;
}

.vr-pdf-modal-close:hover {
  background: var(--vr-gold);
  color: var(--vr-navy-deep);
  border-color: var(--vr-gold);
  transform: rotate(90deg);
}

.vr-pdf-modal-body {
  flex: 1;
  min-height: 0;
  background: #e2e8f0;
}

.vr-pdf-modal-body iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}


/* --------------------------------------------------------------------------
   13. CLEAN A4 PDF VIEWER & CONTRASTING LIGHT LEGAL SECTION
   -------------------------------------------------------------------------- */
.vr-legal-light-section {
  background: linear-gradient(180deg, #f8f6f0 0%, #eef2f6 100%);
  border-top: 3px solid rgba(201, 174, 114, 0.45);
}

.vr-legal-light-section .vr-legal-photo-card {
  border-color: rgba(28, 53, 80, 0.14);
  box-shadow: 0 14px 34px rgba(15, 33, 52, 0.1);
}

.vr-legal-light-section .vr-legal-photo-card:hover {
  border-color: var(--vr-gold);
  box-shadow: 0 22px 48px rgba(15, 33, 52, 0.16);
}

.vr-legal-light-section .vr-pdf-row {
  border: 1px solid #e2e8f0;
  box-shadow: 0 8px 22px rgba(15, 33, 52, 0.06);
}

.vr-pdf-modal.vr-pdf-clean {
  width: min(720px, calc(100% - 32px));
  height: min(90dvh, 920px);
  background: #fff;
  border-radius: 18px !important;
  overflow: hidden !important;
  position: relative;
}

.vr-pdf-modal.vr-pdf-clean::backdrop {
  background: rgba(10, 22, 34, 0.78);
  backdrop-filter: blur(4px);
}

.vr-pdf-floating-close {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 5;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 0;
  background: rgba(15, 33, 52, 0.82);
  color: #fff;
  font-size: 1.5rem;
  line-height: 1;
  display: grid;
  place-items: center;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
  transition: background-color 0.2s ease, transform 0.2s ease;
}

.vr-pdf-floating-close:hover {
  background: var(--vr-gold);
  color: var(--vr-navy-deep);
  transform: rotate(90deg);
}

.vr-pdf-modal.vr-pdf-clean .vr-pdf-modal-body {
  background: #fff;
}


/* --------------------------------------------------------------------------
   14. EMERALD-STYLE A4 LEGAL CARDS (NO BLACK PDF BORDERS / NO SCROLL JUMP)
   -------------------------------------------------------------------------- */
.vr-legal-photo-grid {
  gap: 24px;
}

.vr-legal-photo-grid.is-single {
  grid-template-columns: minmax(0, 560px);
  justify-content: center;
}

.vr-legal-photo-card {
  aspect-ratio: 3 / 3.65 !important;
  border-radius: 22px !important;
  background: #fff !important;
  padding: 0;
  border: 1px solid rgba(28, 53, 80, 0.12) !important;
  box-shadow: 0 18px 46px rgba(15, 33, 52, 0.12) !important;
}

/* Ẩn hoàn toàn viền đen & thanh scrollbar xám của trình duyệt PDF Viewer trên thẻ preview */
.vr-pdf-embed-preview {
  position: relative;
  width: 100%;
  height: 100%;
  background: #fff !important;
  overflow: hidden;
  border-radius: 22px;
}

.vr-pdf-embed-preview iframe {
  position: absolute;
  top: -12px;
  left: -12px;
  width: calc(100% + 40px) !important;
  height: calc(100% + 28px) !important;
  border: 0;
  background: #fff;
  pointer-events: none;
}

.vr-legal-zoom-btn {
  top: 14px;
  right: 14px;
  width: 36px;
  height: 36px;
}

.vr-legal-zoom-btn svg {
  width: 17px;
  height: 17px;
}

.vr-legal-photo-bar {
  left: 16px;
  right: 16px;
  bottom: 16px;
  padding: 13px 16px;
  border-radius: 13px;
  background: rgba(44, 62, 78, 0.88);
  backdrop-filter: blur(8px);
}

.vr-pdf-modal.vr-pdf-clean {
  position: fixed;
  inset: 0;
  margin: auto;
  width: min(700px, calc(100% - 32px));
  height: min(90dvh, 920px);
  background: #fff;
  border-radius: 18px !important;
  overflow: hidden !important;
}

.vr-pdf-modal.vr-pdf-clean .vr-pdf-modal-body {
  position: relative;
  overflow: hidden;
  background: #fff;
}

.vr-pdf-modal.vr-pdf-clean .vr-pdf-modal-body iframe {
  position: absolute;
  top: -8px;
  left: -8px;
  width: calc(100% + 16px);
  height: calc(100% + 16px);
  border: 0;
  background: #fff;
}


/* --------------------------------------------------------------------------
   15. LUXURY 3-CATEGORY PRODUCT GROUP CARDS (TAB "TẤT CẢ")
   -------------------------------------------------------------------------- */
.property-groups .vr-group-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  background: #fff;
}

.property-groups .property-group-button {
  display: flex;
  flex-direction: column;
  height: 100%;
  width: 100%;
  border: 0;
  padding: 0;
  background: transparent;
  text-align: left;
  cursor: pointer;
}

.property-groups .apartment-image {
  width: 100%;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  flex-shrink: 0;
}

.property-groups .apartment-image img {
  width: 100%;
  height: 100% !important;
  object-fit: cover !important;
  transition: transform 0.6s var(--vr-ease) !important;
}

.property-groups .vr-group-card:hover .apartment-image img {
  transform: scale(1.06) !important;
}

.vr-group-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 20px 22px 22px;
}

.vr-group-body .eyebrow {
  margin-bottom: 6px;
}

.vr-group-body h3 {
  padding: 0 !important;
  margin: 0 0 10px !important;
  font-size: 1.45rem;
  color: var(--vr-navy-deep);
}

.vr-group-desc {
  font-size: 0.85rem;
  line-height: 1.65;
  color: #526071;
  margin: 0 0 18px;
}

.vr-group-cta {
  margin-top: auto;
  width: 100%;
  min-height: 44px;
  pointer-events: none;
}

.property-groups .vr-group-card:hover .vr-group-cta {
  background: var(--vr-navy);
  border-color: var(--vr-navy);
  color: #fff;
}


/* --------------------------------------------------------------------------
   16. UNIFIED 15PX BORDER RADIUS FOR ALL CARDS, MODALS & PANELS
   -------------------------------------------------------------------------- */
.lead-modal,
.product-modal,
.vr-loan-guide-dialog,
.vr-pdf-modal,
.vr-pdf-modal.vr-pdf-clean,
.vr-legal-photo-card,
.vr-pdf-embed-preview,
.vr-amenity-card,
.vr-pdf-row,
.location-media-stack .location-image,
.location-map-card,
body:not(.admin-page) .welcome-popup {
  border-radius: 15px !important;
}


/* Popup chào khách tự động co giãn theo nội dung hoặc theo mức độ rộng QTV chọn */
@media (min-width: 701px) {
  body:not(.admin-page) .welcome-popup.is-width-auto {
    width: fit-content !important;
    min-width: 380px;
    max-width: min(640px, calc(100vw - 48px));
  }
  body:not(.admin-page) .welcome-popup.is-width-fixed {
    width: min(var(--vr-popup-w, 480px), calc(100vw - 48px)) !important;
  }
}
