/* Public landing additions. Original project layout is kept in site.css. */
:root {
  --contact-bar-height: 84px;
  --contact-gold: #c9a44c;
}
html {
  scroll-padding-bottom: 110px;
}
body {
  padding-bottom: calc(
    var(--contact-bar-height) + env(safe-area-inset-bottom, 0px)
  );
}
img {
  max-width: 100%;
}
a,
button {
  -webkit-tap-highlight-color: transparent;
}
a:focus-visible,
button:focus-visible,
summary:focus-visible {
  outline: 3px solid #0068ff;
  outline-offset: 4px;
}
.heroPic {
  width: 100%;
  min-height: 0;
  aspect-ratio: 2048 / 960;
  background: #edf1ee;
  overflow: hidden;
}
.heroPic img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 70%;
}
.heroPic span {
  display: none;
}
.advisor-card {
  margin-top: 20px;
  padding: 17px 20px;
  border: 1px solid #ffffff40;
  border-radius: 12px;
  background: #ffffff12;
  display: grid;
  gap: 4px;
  overflow-wrap: anywhere;
}
.advisor-card .advisor-label {
  margin: 0 0 3px;
  font-size: 11px;
  letter-spacing: 0.12em;
  font-weight: 800;
  color: #f2d384;
}
.advisor-name {
  font-weight: 800;
  font-size: 21px;
  line-height: 1.4;
}
.advisor-phone {
  font-size: 20px;
  font-weight: 800;
  color: #f2d384;
  text-decoration: none;
}
.advisor-phone:hover {
  text-decoration: underline;
}
.projectGallery .feature-item {
  padding: 20px;
  border: 1px solid #eedee1;
  border-radius: 12px;
  background: #fbf8f7;
}
.feature-item h3 {
  margin: 0 0 10px;
  font-size: 17px;
  color: var(--d);
}
.feature-item .imageCaption {
  margin-bottom: 0;
}
.media {
  padding: 0;
  overflow: hidden;
  min-height: 0 !important;
  background: #f6f4f3;
}
.media img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
}
.infraCard .media {
  aspect-ratio: 16 / 9;
}
.infraCard .media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.media-zoom {
  display: block;
  color: inherit;
  cursor: zoom-in;
}
.towerFloorPreview {
  min-height: 0;
}
.image-help {
  color: #74676c;
  font-size: 12px;
  margin: 10px 0;
}
.view360 {
  padding: 26px;
}
.view360 .image-help {
  margin: 12px 0 0;
}
.product-types {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  padding: 0;
  list-style: none;
}
.product-types li {
  padding: 14px 16px;
  border: 1px solid #eedee1;
  border-radius: 10px;
  display: grid;
  gap: 5px;
}
.product-types strong {
  color: var(--d);
}
.product-types span {
  color: #655a5e;
  font-size: 13px;
}
.video-card {
  display: block;
  margin: 18px 0;
  padding: 22px;
  background: #fff8f5;
  border: 1px solid #ead6d6;
  border-radius: 12px;
  color: var(--d);
  text-decoration: none;
}
.video-card strong {
  display: block;
  margin: 0 0 7px;
  font-size: 16px;
}
.video-card span {
  font-weight: 700;
}
.video-card:hover {
  background: #f8eded;
}
.contact .advisor-card {
  margin: 0 0 20px;
  padding: 0;
  border: 0;
  background: none;
}
.contact-actions {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}
.contact-actions .btn {
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 48px;
}
.contact-actions svg,
.sticky-contact svg {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
}
.sticky-contact {
  position: fixed;
  inset: auto 0 0;
  z-index: 1000;
  padding: 10px 14px calc(10px + env(safe-area-inset-bottom, 0px));
  background: #28181c;
  box-shadow: 0 -4px 18px #0003;
}
.sticky-contact-inner {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 0 auto;
}
.sticky-contact a {
  min-height: 48px;
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 11px;
  padding: 11px 16px;
  font-size: 14px;
  line-height: 1.25;
  font-weight: 800;
  text-decoration: none;
  transition: filter 0.15s ease;
}
.sticky-contact a:hover {
  filter: brightness(0.94);
}
.sticky-call {
  background: var(--contact-gold);
  color: #1b1521;
}
.sticky-zalo {
  background: #0068ff;
  color: white;
}
.sticky-lead {
  background: white;
  color: #28181c;
}
.sticky-contact .contact-label {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  min-width: 0;
}
.sticky-contact a[aria-disabled="true"] {
  opacity: 0.7;
  cursor: default;
}
.image-dialog {
  border: 0;
  border-radius: 14px;
  padding: 46px 18px 18px;
  max-width: min(1200px, 96vw);
  max-height: 94vh;
  background: #fff;
  color: #28181c;
}
.image-dialog::backdrop {
  background: #160d16d9;
}
.image-dialog img {
  display: block;
  max-width: 100%;
  max-height: 75vh;
  width: auto;
  height: auto;
  margin: auto;
  object-fit: contain;
}
.image-dialog p {
  margin: 12px 0 0;
  text-align: center;
  font-size: 13px;
}
.image-dialog button {
  position: absolute;
  top: 8px;
  right: 12px;
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 50%;
  background: #f5eded;
  color: #861326;
  font-size: 25px;
  cursor: pointer;
}
@media (max-width: 620px) {
  :root {
    --contact-bar-height: 80px;
  }
  .heroPic {
    aspect-ratio: 2048 / 1240;
  }
  .heroPic img {
    object-fit: contain;
  }
  .advisor-card {
    padding: 15px;
  }
  .advisor-name {
    font-size: 19px;
  }
  [data-tpland-name-layout="role-name"] .contact-role {
    display: block;
    font-size: 12px;
    line-height: 1.4;
    font-weight: 500;
  }
  [data-tpland-name-layout="role-name"] .contact-name {
    display: block;
  }
  .sticky-contact {
    padding-inline: 8px;
  }
  .sticky-contact-inner {
    gap: 7px;
  }
  .sticky-contact a {
    padding: 10px 7px;
    gap: 5px;
    font-size: 12px;
  }
  .sticky-contact svg {
    width: 16px;
    height: 16px;
  }
  .sticky-call:has(.contact-role) {
    position: relative;
    padding-inline: 4px;
  }
  .sticky-call:has(.contact-role) svg {
    position: absolute;
    top: 9px;
    left: 7px;
    width: 12px;
    height: 12px;
  }
  .sticky-call:has(.contact-role) .contact-label {
    overflow: visible;
    white-space: normal;
    text-overflow: clip;
    text-align: center;
  }
  .sticky-call .contact-role {
    font-size: 9px;
  }
  .sticky-call .contact-name {
    font-size: 12px;
    line-height: 1.35;
  }
  .contact {
    padding: 20px 16px;
  }
  .contact-actions {
    gap: 7px;
  }
  .contact-actions .btn {
    font-size: 12px;
    padding: 10px 6px;
  }
  .product-types {
    grid-template-columns: 1fr;
  }
  .foot {
    padding-bottom: 35px;
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .sticky-contact a {
    transition: none;
  }
}

/* Layout v2: text reflows to its containing image/section instead of preserving HTML line breaks. */
[hidden] {
  display: none !important;
}
.wrap {
  max-width: 1120px;
}
.section p,
.section .imageCaption,
.priceNote,
.towerPdfIntro,
.foot p {
  width: 100%;
  max-width: none;
  white-space: normal;
  overflow-wrap: break-word;
}
.imageCaption {
  text-align: center;
  margin-inline: 0;
}
.hero-banner {
  position: relative;
}
.hero-info {
  min-width: 0;
}
.overview-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  align-items: center;
}
.overview-copy {
  min-width: 0;
}
.overview-copy p {
  margin: 0;
}
.detailsCards.unifiedCards {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.detailsCards.unifiedCards .detailCard {
  min-height: 116px;
  padding: 18px 14px;
}
.detailsCards.unifiedCards .detailCard b {
  font-size: clamp(17px, 2vw, 22px);
}
.image-slider {
  min-width: 0;
  width: 100%;
}
.slider-track {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  overscroll-behavior-x: contain;
  scrollbar-width: thin;
  padding: 3px 1px 12px;
}
.slider-slide {
  flex: 0 0 100%;
  min-width: 0;
  margin: 0;
  scroll-snap-align: start;
}
.slider-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 10px;
}
.slider-count {
  font-size: 13px;
  color: #75646b;
  font-variant-numeric: tabular-nums;
}
.slider-buttons {
  display: flex;
  gap: 9px;
}
.slider-buttons button {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid #d8b9c2;
  background: white;
  color: var(--d);
  font:
    24px/1 Arial,
    sans-serif;
  cursor: pointer;
}
.slider-buttons button:disabled {
  opacity: 0.35;
  cursor: default;
}
.image-slot {
  width: 100%;
  overflow: hidden;
  border-radius: 11px;
  background: #f8f4f4;
  aspect-ratio: 25 / 17;
}
.image-slot img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.feature-item .image-slot {
  margin: 14px 0 12px;
}
.projectGallery .feature-item .imageCaption {
  text-align: left;
  margin-top: 12px;
}
.layout-slider .slider-slide {
  flex-basis: 88%;
}
.layout-card {
  border: 1px solid #e9d8df;
  border-radius: 14px;
  background: white;
  padding: 16px;
}
.layout-card h4 {
  color: var(--d);
  font-size: 17px;
  margin: 0 0 14px;
}
.layout-card .imageCaption {
  margin: 12px 0 0;
}
.slider-hint {
  font-size: 13px;
  color: #776a6e;
}
.policyPhotos {
  grid-template-columns: 1fr;
}
.policy-photo {
  width: 100%;
  min-width: 0;
  margin: 0;
}
.policy-photo .imageCaption {
  margin-bottom: 0;
}
.policy-photo .image-slot {
  aspect-ratio: auto;
}
.policy-photo .image-slot img {
  height: auto;
}
.vr-player {
  width: 100%;
  min-width: 0;
  margin-top: 16px;
  border: 1px solid #eadbe0;
  border-radius: 14px;
  overflow: hidden;
  background: #171017;
}
.vr-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  color: white;
  background: #28181c;
}
.vr-toolbar strong {
  font-size: 14px;
}
.fullscreen-toggle {
  flex: 0 0 auto;
  border: 1px solid #ffffff55;
  border-radius: 8px;
  padding: 9px 12px;
  color: #28181c;
  background: white;
  font:
    700 13px/1.3 Inter,
    Arial,
    sans-serif;
  cursor: pointer;
}
.vr-stage {
  position: relative;
  aspect-ratio: 16 / 10;
  min-height: 260px;
  width: 100%;
}
.vr-stage iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
  position: absolute;
  inset: 0;
  background: #141014;
}
.vr-cover {
  position: absolute;
  inset: 0;
  padding: 0;
  width: 100%;
  border: 0;
  background: #241622;
  color: white;
  cursor: pointer;
}
.vr-cover > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.vr-cover-shade {
  position: absolute;
  inset: 0;
  background: #1e101d65;
}
.vr-play-label {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 16px;
  font-size: clamp(17px, 3vw, 24px);
  text-shadow: 0 2px 12px #0009;
}
.vr-play-label svg {
  width: 72px;
  height: 72px;
  background: #ffffffeb;
  color: var(--d);
  border-radius: 50%;
  padding: 22px;
  box-shadow: 0 4px 24px #0003;
}
.vr-loading {
  position: absolute;
  pointer-events: none;
  bottom: 20px;
  left: 0;
  margin: 0;
  text-align: center;
  color: white;
  font-size: 13px;
}
.vr-player.is-fullscreen {
  display: flex;
  flex-direction: column;
  z-index: 2147483000;
  border: 0;
  border-radius: 0;
  background: #171017;
}
.vr-player.is-fullscreen .vr-toolbar {
  flex: 0 0 auto;
  padding-top: max(12px, env(safe-area-inset-top));
  padding-right: max(14px, env(safe-area-inset-right));
  padding-left: max(14px, env(safe-area-inset-left));
}
.vr-player.is-fullscreen .vr-stage {
  flex: 1 1 auto;
  aspect-ratio: auto;
  min-height: 0;
  height: 100%;
}
.vr-player:fullscreen {
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
}
.vr-player:-webkit-full-screen {
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
}
.external-view-link {
  display: block;
  width: 100%;
  text-align: center;
  margin: 10px 0 0;
  font-size: 13px;
  color: var(--d);
  text-underline-offset: 3px;
}
.towerPdfTile small {
  display: block;
  width: 100%;
  text-align: center;
}
.progress-video-card {
  width: 100%;
  min-width: 0;
}
.progress-video-card h3 {
  font-size: 18px;
  margin: 20px 0 14px;
}
.progress-video-card iframe[hidden] {
  display: none;
}
.progress-video-card iframe {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  min-height: 200px;
  border: 0;
  border-radius: 12px;
  background: #171017;
}
@media (min-width: 640px) {
  .overview-row {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 30px;
  }
  .detailsCards.unifiedCards {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
  .layout-slider .slider-slide {
    flex-basis: 78%;
  }
}
@media (min-width: 1024px) {
  .hero-banner {
    height: clamp(620px, 82vh, 850px);
    min-height: 620px;
    background: #2b1722;
  }
  .hero-banner .heroPic {
    width: 100%;
    height: 100%;
    aspect-ratio: auto;
  }
  .hero-banner .heroPic img {
    object-fit: cover;
    object-position: center 65%;
  }
  .hero-banner::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
      linear-gradient(0deg, #200c1cf0 0%, #240e1b66 48%, transparent 85%),
      linear-gradient(90deg, #240c1a44, transparent 75%);
  }
  .hero-banner .heroHead {
    position: absolute;
    inset: auto 0 0;
    z-index: 1;
    padding: 44px 0;
    background: none;
  }
  .heroHead .wrap {
    display: grid;
    grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
    gap: 32px;
    align-items: end;
  }
  .heroHead h1 {
    font-size: clamp(40px, 4vw, 58px);
    text-shadow: 0 3px 18px #0005;
  }
  .heroHead .advisor-card {
    margin-top: 0;
    background: #3b2028c9;
    backdrop-filter: blur(14px);
    border-color: #ffffff50;
  }
  .heroHead .advisor-phone {
    font-size: 18px;
  }
}
@media (max-width: 639px) {
  .priceScroll {
    overflow: visible;
  }
  .priceTable {
    display: block;
    min-width: 0;
    width: 100%;
  }
  /* Keep column headers available to screen readers in the card layout. */
  .priceTable thead {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
  }
  .priceTable tbody {
    display: grid;
    gap: 12px;
    width: 100%;
  }
  .priceTable tbody tr {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    min-width: 0;
    padding: 16px;
    border: 1px solid #ebd8db;
    border-radius: 12px;
    background: #fff8f8;
  }
  .priceTable td {
    display: block;
    min-width: 0;
    border: 0;
    padding: 0;
    font-size: 14px;
    overflow-wrap: anywhere;
  }
  .priceTable td:first-child {
    grid-column: 1 / -1;
    font-size: 17px;
    font-weight: 700;
    color: #a7192e;
  }
  .priceTable td[data-label]::before {
    content: attr(data-label);
    display: block;
    margin-bottom: 4px;
    font-size: 12px;
    font-weight: 400;
    color: #665b5e;
  }
  .priceTable td:last-child {
    color: #a7192e;
    font-weight: 700;
  }
  .vr-toolbar {
    padding: 10px;
    gap: 8px;
  }
  .vr-toolbar strong {
    font-size: 12px;
  }
  .fullscreen-toggle {
    font-size: 12px;
    padding: 9px;
  }
  .vr-stage {
    aspect-ratio: 4 / 3;
    min-height: 220px;
  }
  .layout-card {
    padding: 12px;
  }
  .detailsCards.unifiedCards .detailCard {
    min-height: 110px;
    padding: 15px 12px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .slider-track {
    scroll-behavior: auto;
  }
}

/* One full-width floorplan per slide, retaining the image zoom interaction. */
.floorplan-slider .slider-controls {
  margin: 0 0 10px;
}
.floorplan-slider .slider-hint {
  margin: 0 0 14px;
}
.floorplan-slider .towerPdfTile {
  flex: 0 0 100%;
}

/* Pricing sheets remain complete and readable, with no image cropping. */
.price-slider .slider-controls { margin-top: 0; }
.price-slider .slider-hint { margin: 12px 0 16px; }
.price-slider .slider-track { align-items: flex-start; }
.price-slider .price-card { flex: 0 0 100%; }
.price-card-title {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  width: min(100%, 640px);
  margin: 0 auto 12px;
  color: var(--d);
  font-size: 15px;
}
.price-card-title strong { font-size: 20px; }
.price-card-title span { color: #75646b; font-size: 13px; }
.price-sheet {
  display: block;
  width: min(100%, 640px);
  margin-inline: auto;
  overflow: hidden;
  border: 1px solid #e9d8df;
  border-radius: 14px;
  background: #f8f4f4;
}
.price-slider .price-sheet img {
  display: block;
  width: 100%;
  height: auto;
  max-height: none;
  object-fit: contain;
}
.price-sheet:focus-visible { outline: 3px solid var(--d); outline-offset: 3px; }

/* Consultation form: two input rows, with title typography shared with the advisor label. */
.lead-form { margin-top:16px; display:grid; gap:10px; width:100%; min-width:0; }
.lead-form .lead-title { margin:0 0 2px; white-space:normal; font-size:11px; font-weight:800; letter-spacing:0.12em; }
.lead-field { display:block; min-width:0; }
.lead-form input { box-sizing:border-box; min-width:0; width:100%; min-height:44px; border:1px solid #e7d6d9; border-radius:9px; padding:11px 12px; background:#fff; color:#28181c; font:inherit; font-size:16px; }
.lead-form input:focus-visible { outline:2px solid #c7a44b; outline-offset:2px; }
.lead-phone-row { display:grid; grid-template-columns:minmax(0,1fr) auto; gap:8px; }
.lead-form button[type="submit"] { min-height:44px; padding:10px 14px; border:0; border-radius:9px; background:#c7a44b; color:#21151a; font:inherit; font-size:13px; font-weight:700; cursor:pointer; }
.lead-form button:disabled { opacity:.65; cursor:default; }
.lead-status { margin:0; font-size:13px; line-height:1.5; white-space:normal; }
.lead-status:empty { display:none; }
.lead-status[data-state="error"] { color:inherit; font-weight:600; }
.lead-trap,.lead-sr-only { position:absolute; width:1px; height:1px; overflow:hidden; clip-path:inset(50%); white-space:nowrap; }
.sticky-lead-label { display:inline-flex; gap:4px; }
#lead-dialog { width:min(calc(100% - 32px),440px); max-height:calc(100dvh - 32px); box-sizing:border-box; overflow:auto; padding:24px; border:0; border-radius:16px; color:#28181c; background:#fff; }
#lead-dialog::backdrop { background:#180b12b3; backdrop-filter:blur(3px); }
#lead-dialog .lead-form { margin-top:24px; }
#lead-dialog .lead-title,.contact .lead-title { color:var(--d); }
#lead-dialog-close { position:absolute; top:10px; right:10px; display:grid; place-items:center; width:36px; height:36px; border:0; border-radius:50%; background:#f5eded; color:#28181c; font-size:24px; cursor:pointer; }
@media(max-width:639px) {
 .sticky-lead-label { flex-direction:column; gap:0; line-height:1.25; text-align:center; }
 .sticky-contact .sticky-lead { gap:6px; }
 .lead-phone-row { grid-template-columns:minmax(0,1fr) auto; }
 .lead-form button[type="submit"] { padding-inline:10px; font-size:12px; }
}
