/* PhilExcel Business Park Styles */

/* CSS Variables */
:root {
    /* Brand Colors */
    --primary: 54, 162, 235;
    --primary-dark: 13, 110, 253;
    --background: 0, 0, 0;
    --foreground: 255, 255, 255;
    
    /* Opacity Values */
    --bg-overlay: 0.3;
    --bg-sidebar: 0.4;
    --bg-card: 0.1;
    --bg-hover: 0.2;
    
    /* Shadows */
    --shadow-elegant: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    --shadow-glow: 0 0 40px rgba(54, 162, 235, 0.3);
    
    /* Transitions */
    --transition-smooth: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-fast: all 0.2s ease-out;
    
    /* Border Radius */
    --radius: 0.75rem;
    --radius-sm: 0.5rem;
}

/* Reset and Base Styles */
* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background-color: rgb(var(--background));
    color: rgb(var(--foreground));
    overflow: hidden;
    height: 100vh;
}

#pano-modal{
  display:none;
  position:fixed;
  inset:0;
  z-index:99999;
}

#pano-backdrop{
  position:absolute;
  inset:0;
  background:rgba(0,0,0,.92);
}

#pano-shell{
  position:absolute;
  inset:20px;
  border-radius:14px;
  overflow:hidden;
  background:#000;
  box-shadow:0 10px 40px rgba(0,0,0,.45);
}

#pano-viewer{
  width:100%;
  height:100%;
  background:#000;
}

#pano-close{
  position:absolute;
  top:12px;
  right:12px;
  z-index:2;
  width:42px;
  height:42px;
  border:none;
  border-radius:50%;
  background:rgba(0,0,0,.55);
  color:#fff;
  font-size:28px;
  line-height:42px;
  cursor:pointer;
}


.streetview-background,
.map-background,
.video-container,
.image-background {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: none;
  z-index: 1;
}

.image-background {
  background-image: url("/philexcelmain.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.video-fallback {
  position: absolute; top: 0; left: 0; width: 100%; height: 100%;
  background: linear-gradient(135deg, rgba(13,110,253,.8) 0%, rgba(54,162,235,.6) 50%, rgba(0,0,0,.8) 100%);
  z-index: 0;
}

/* Sidebar */
.sidebar { position: absolute; left: 0; top: 0; height: 100%; width: 384px; z-index: 30; }
.sidebar-content {
  height: 100%; width: 100%; display: flex; flex-direction: column;
  background: linear-gradient(180deg, rgba(0,0,0,var(--bg-sidebar)), rgba(0,0,0,var(--bg-overlay)));
  backdrop-filter: blur(20px);
  border-right: 1px solid rgba(255,255,255,.1);
}
.logo-section { padding: 32px 32px 16px; border-bottom: none; margin-top: -4%; }
.logo-container { display: flex; justify-content: center; width: 320px; height: 160px; align-items: center; }
.logo { width: 80%; height: 100%; object-fit: contain;
  filter: drop-shadow(2px 0 0 white) drop-shadow(-2px 0 0 white) drop-shadow(0 2px 0 white) drop-shadow(0 -2px 0 white);
}

.video-image {
  position: absolute; inset: 0; z-index: 1;
  background-image: url("https://amitk62.sg-host.com/v3/philexcelmain.jpg");
  background-size: cover; background-position: center; background-repeat: no-repeat;
  filter: brightness(1.15) contrast(1.1) saturate(1.25);
  animation: bgZoom 20s ease-in-out infinite alternate;
}
@keyframes bgZoom { from {transform: scale(1);} to {transform: scale(1.05);} }
.video-image::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(0,0,0,.45), rgba(0,0,0,.25) 50%, rgba(0,0,0,.55));
}

.content-section { flex: 1; padding: 0 32px 32px; display: flex; flex-direction: column; justify-content: flex-start; margin-top: -3%; }
.slide-content { animation: slideIn .6s cubic-bezier(.4,0,.2,1); }
.hero-title { font-size: 2rem; font-weight: 700; color: #fff; line-height: 1.2; margin-bottom: 16px; text-shadow: 2px 2px 4px rgba(0,0,0,.5); }
.slide-subtitle { font-size: 1.25rem; font-weight: 600; color: rgb(var(--primary)); margin-bottom: 24px; letter-spacing: .05em; }
.hero-subtitle { font-size: 1.125rem; color: rgba(255,255,255,.9); line-height: 1.6; margin-bottom: 32px; text-shadow: 1px 1px 2px rgba(0,0,0,.5); }

/* Stats Grid */
.stats-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 16px; animation: fadeIn 1.2s ease-out; }
.stat-card {
  background: rgba(255,255,255,var(--bg-card)); backdrop-filter: blur(10px);
  border-radius: var(--radius); padding: 16px; border: 1px solid rgba(255,255,255,.2);
}
.stat-header { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.stat-icon { width: 16px; height: 16px; color: rgb(var(--primary)); stroke-width: 2; }
.stat-label { font-size: .75rem; color: rgba(255,255,255,.7); text-transform: uppercase; letter-spacing: .1em; }
.stat-value { font-size: 1.125rem; font-weight: 700; color: #fff; }

/* Indicators */
.indicators-section { padding: 32px; border-top: 1px solid rgba(255,255,255,.1); }
.indicators { display: flex; gap: 8px; justify-content: center; }
.indicator { width: 12px; height: 12px; border-radius: 50%; border: 0; background: rgba(255,255,255,.3); cursor: pointer; transition: var(--transition-fast); }
.indicator:hover { background: rgba(255,255,255,.5); }
.indicator.active { background: rgb(var(--primary)); transform: scale(1.1); }

/* Quick Info (fixed) */
.quick-info { position: fixed; right: 16px; bottom: 16px; width: 320px; z-index: 1000; padding: 16px; }
@media (max-width: 768px){ .quick-info { right: 10px; bottom: 10px; width: auto; max-width: 86vw; } }
.quick-info-content {
  background: rgba(255,255,255,var(--bg-card)); backdrop-filter: blur(30px);
  border-radius: var(--radius); padding: 16px; border: 1px solid rgba(255,255,255,.2);
}
.quick-info-title { color: #fff; font-weight: 600; margin-bottom: 8px; }
.quick-info-details { color: rgba(255,255,255,.8); font-size: .875rem; }
.quick-info-details a { color: #fff; text-decoration: none; font-weight: 500; }
.quick-info-details a:hover { color: rgb(54,162,235); }
.quick-info-details p { margin-bottom: 4px; }

/* --- Bottom Navigation (BOTTOM-CENTER with black opacity strip) --- */
.bottom-navigation {
  position: fixed; bottom: 0; left: 50%; transform: translateX(-50%);
  display: flex; align-items: center; justify-content: center; gap: 44px;
  background: rgba(0,0,0,.6);
  padding: 12px 24px;
  border-top: 1px solid rgba(255,255,255,.15);
  border-radius: 12px 12px 0 0;
  z-index: 1000;
}
.bottom-navigation .nav-button,
.bottom-navigation a.nav-button {
  flex: 0 0 auto; min-width: 140px; padding: 16px 12px;
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  text-align: center; color: #fff; text-decoration: none;
  font-size: 13px; font-weight: 600; text-transform: uppercase;
  border: none; background: transparent; transition: var(--transition-smooth);
}
.bottom-navigation .nav-button:hover,
.bottom-navigation a.nav-button:hover {
  background: rgba(255,255,255,.12); border-radius: 8px; transform: translateY(-2px);
}
.bottom-navigation .nav-button.active { background: rgba(255,255,255,.18); border-radius: 8px; }
.bottom-navigation .nav-icon { width: 22px; height: 22px; stroke: #fff; stroke-width: 2; margin-bottom: 4px; transition: transform .25s ease; }
.bottom-navigation .nav-button:hover .nav-icon { transform: scale(1.1); }
.bottom-navigation .nav-label { font-size: 12px; font-weight: 700; letter-spacing: .5px; color: #fff; text-transform: uppercase; }

@media (max-width: 768px) {
  .bottom-navigation { gap: 24px; }
  .bottom-navigation .nav-button { min-width: auto; padding: 14px 12px; }
}

/* Overlay Menu */
.overlay-menu {
  position: fixed; inset: 0; z-index: 950;
  background: rgba(0,0,0,.30); backdrop-filter: none;
  display: none; align-items: center; justify-content: center;
  animation: fadeIn .8s ease-out;
}
.overlay-menu.show { display: flex; }
.overlay-backdrop { position: absolute; inset: 0; background: transparent; backdrop-filter: none; pointer-events: none; }
.overlay-content {
  position: relative; z-index: 1000;
  background: rgba(255,255,255,var(--bg-card)); backdrop-filter: none;
  border-radius: calc(var(--radius) * 2); padding: 32px; max-width: 448px; width: 100%;
  margin: 16px; max-height: 80vh; overflow-y: auto; border: 1px solid rgba(255,255,255,.2);
}
.overlay-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 24px; }
.overlay-title { font-size: 1.5rem; font-weight: 700; color: #fff; text-transform: capitalize; }
.close-button {
  width: 32px; height: 32px; border-radius: 50%; background: rgba(255,255,255,var(--bg-card));
  border: none; display: flex; align-items: center; justify-content: center; cursor: pointer; transition: var(--transition-fast);
}
.close-button:hover { background: rgba(255,255,255,var(--bg-hover)); }
.close-button svg { width: 16px; height: 16px; color: #fff; stroke-width: 2; }
.menu-items { display: flex; flex-direction: column; gap: 12px; }
.menu-item {
  width: 100%; text-align: left; padding: 12px; border-radius: var(--radius);
  background: rgba(255,255,255,var(--bg-card)); border: 1px solid rgba(255,255,255,.2);
  color: rgba(255,255,255,.9); cursor: pointer; transition: var(--transition-fast); font-size: .875rem;
}
.menu-item:hover { background: rgba(255,255,255,var(--bg-hover)); color: #fff; border-color: rgba(255,255,255,.3); }

/* Content Pages */
.content-page { position: fixed; inset: 0; z-index: 50; background: rgba(0,0,0,.8); opacity: .9 !important; backdrop-filter: blur(20px); display: none; }
.content-page.show { display: block; }
.page-container { height: 100%; overflow-y: auto; }
.page-content { max-width: 1200px; margin: 0 auto; padding: 32px 16px; }
.back-button {
  display: flex; align-items: center; gap: 8px; margin-bottom: 24px; color: #fff;
  background: transparent; border: none; cursor: pointer; transition: var(--transition-fast); font-size: 1rem;
}
.back-button:hover { background: rgba(255,255,255,var(--bg-card)); padding: 8px 12px; border-radius: var(--radius-sm); }
.back-button svg { width: 16px; height: 16px; stroke-width: 2; }
.page-main {
  background: rgba(255,255,255,var(--bg-card)); backdrop-filter: blur(30px);
  border-radius: calc(var(--radius) * 2); padding: 32px; border: 1px solid rgba(255,255,255,.2);
}
.page-title { font-size: 1.875rem; font-weight: 700; color: #fff; margin-bottom: 24px; }
.page-description { color: rgba(255,255,255,.9); font-size: 1.125rem; line-height: 1.6; margin-bottom: 24px; }
.page-image { width: 100%; height: 256px; object-fit: cover; border-radius: var(--radius); margin-bottom: 24px; }

/* Gallery Grid */
.gallery-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 24px; }
.gallery-item { background: rgba(255,255,255,.05); border-radius: var(--radius); overflow: hidden; transition: var(--transition-fast); }
.gallery-item:hover { background: rgba(255,255,255,var(--bg-card)); }
.gallery-image { width: 100%; height: 192px; object-fit: cover; }
.gallery-caption { padding: 16px; }
.gallery-title { color: #fff; font-weight: 500; }

/* Contact Grid */
.contact-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 32px; }
.contact-card { background: rgba(255,255,255,.05); border-radius: var(--radius); padding: 24px; }
.contact-header { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.contact-icon { width: 20px; height: 20px; color: rgb(var(--primary)); stroke-width: 2; }
.contact-title { color: #fff; font-weight: 600; }
.contact-details { color: rgba(255,255,255,.9); }
.contact-details p { margin-bottom: 4px; }

/* FAQ Accordion */
.faq-list { display: flex; flex-direction: column; gap: 16px; }
.faq-item { background: rgba(255,255,255,.05); border-radius: var(--radius); border: 1px solid rgba(255,255,255,.2); overflow: hidden; }
.faq-question {
  width: 100%; text-align: left; padding: 24px; background: transparent; border: none;
  color: #fff; font-size: 1rem; font-weight: 500; cursor: pointer; transition: var(--transition-fast);
  display: flex; align-items: center; justify-content: space-between;
}
.faq-question:hover { background: rgba(255,255,255,var(--bg-card)); }
.faq-answer { padding: 0 24px 24px; color: rgba(255,255,255,.9); line-height: 1.6; display: none; }
.faq-item.active .faq-answer { display: block; }
.faq-chevron { width: 16px; height: 16px; stroke-width: 2; transition: var(--transition-fast); }
.faq-item.active .faq-chevron { transform: rotate(180deg); }

/* Responsive Design */
@media (max-width: 768px) {
    .sidebar { width: 100%; height: auto; position: relative; z-index: 10; }
    .quick-info { position: relative; width: 100%; height: auto; padding: 16px; }
    .hero-title { font-size: 2rem; }
    .stats-grid { grid-template-columns: 1fr; }
    .nav-button { padding: 16px 8px; }
    .nav-label { font-size: 0.6rem; }
    .overlay-content { margin: 8px; padding: 24px; }
    .contact-grid { grid-template-columns: 1fr; }
    .gallery-grid { grid-template-columns: 1fr; }
}

/* Animations */
@keyframes slideIn { from { transform: translateX(-100%); opacity: 0; } to { transform: translateX(0); opacity: 1; } }
@keyframes fadeIn { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }

/* --- Quick Image Panel (left of Quick Info) --- */
.quick-image {
  position: absolute; top: 40px; right: 360px; width: 320px; height: auto; z-index: 50;
  border-radius: var(--radius); border: 1px solid rgba(255,255,255,.2);
  background-image: url("https://amitk62.sg-host.com/v3/philexcelmain.jpg");
  background-size: cover; background-position: center; background-repeat: no-repeat;
  box-shadow: var(--shadow-elegant); cursor: pointer;
}
.quick-image::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.15), rgba(0,0,0,.25)); transition: var(--transition-fast); }
.quick-image:hover::after { background: rgba(0,0,0,.1); }
@media (max-width: 768px) { .quick-image { right: 0; top: 0; width: calc(100% - 16px); margin: 8px; } }

/* --- Contact Modal --- */
.contact-modal { position: fixed; inset: 0; display: none; z-index: 6000; }
.contact-modal.show { display: block; }
.contact-modal-backdrop { position: absolute; inset: 0; background: rgba(0,0,0,.30); }
.contact-modal-card {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%);
  width: min(92vw, 720px); background: rgba(0,0,0,.80);
  border: 1px solid rgba(255,255,255,.15); border-radius: 16px; color: #fff; padding: 22px; z-index: 6100;
}
.contact-close { position: absolute; top: 10px; right: 12px; width: 36px; height: 36px; border-radius: 50%;
  border: 1px solid rgba(255,255,255,.18); background: rgba(0,0,0,.45); color: #fff; font-size: 20px; cursor: pointer; z-index: 6150; }
.contact-close:hover { background: rgba(255,255,255,.15); }

#contact-new-form { display: grid; gap: 12px; }
.contact-row { display: grid; gap: 6px; }
.contact-row.label { font-size: .92rem; color: rgba(255,255,255,.95); }

/* Select + Inputs base */
.contact-row input,
.contact-row select,
.contact-row textarea {
  width: 100%; padding: 10px 12px; border-radius: 10px;
  border: 1px solid rgba(255,255,255,.18);
  background: rgba(255,255,255,.08);
  color: #fff; outline: none;
}

/* Dropdown (with custom white ▼ arrow) */
/* Dropdown (bigger white ▼ arrow) */
.contact-row select {
  background: rgba(0,0,0,.55);
  color: #fff;
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 10px;

  /* extra space on the right to fit larger arrow */
  padding: 10px 44px 10px 12px;

  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;

  /* larger SVG arrow */
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='white'><path d='M7 10l5 5 5-5z'/></svg>");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 18px;

  cursor: pointer;
}

/* Focus states */
.contact-row input:focus,
.contact-row select:focus,
.contact-row textarea:focus {
  border-color: rgba(54,162,235,.9);
  box-shadow: 0 0 0 3px rgba(54,162,235,.25);
}

/* Options popup */
.contact-row select option { background: #fff; color: #111; }

/* Textarea */
.contact-row textarea { resize: vertical; min-height: 100px; }

/* Contact grid helpers */
.contact-row.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.contact-row.grid-2 .cell { display: grid; gap: 6px; }
@media (max-width: 640px){ .contact-row.grid-2 { grid-template-columns: 1fr; } }

.contact-actions { display: flex; align-items: center; gap: 12px; margin-top: 6px; }
.contact-submit { padding: 10px 14px; border-radius: 10px; border: none; cursor: pointer; background: rgba(54,162,235,.95); color: #fff; font-weight: 700; }
.contact-submit:hover { background: rgba(54,162,235,1); }
.contact-note { font-size: .85rem; color: rgba(255,255,255,.85); margin: 0; }

/* Keep overlay z-index order sane */
.overlay-menu { z-index: 1500; }
.overlay-content { z-index: 2000; }
.walkthrough-hotspot, .walkthrough-panel { z-index: 3500; }

/* Anchor the hero container so the hotspot can be placed predictably */
.image-background, .video-container { position: relative; }

/* Fullscreen YouTube video background */
.video-background { position: fixed; top: 0; left: 0; width: 100%; height: 100%; z-index: -1; overflow: hidden; background: #000; }
.video-background iframe { position: absolute; top: 50%; left: 50%; width: 120%; height: 120%; transform: translate(-50%, -50%); pointer-events: none; }

/* === Hotspots === */
.walkthrough-hotspot{
  position:absolute; top: 45%; left: 77%; transform: translate(-50%,-50%);
  display:flex; align-items:center; gap:10px; z-index: 4000; pointer-events: auto; user-select: none;
}
.pulse-dot{ width:16px; height:16px; border-radius:999px; background:#1d4ed8;
  box-shadow:0 0 0 0 rgba(29,78,216,.6), 0 0 0 6px rgba(29,78,216,.25); animation:pulse-ring 1.6s infinite ease-out; }
@keyframes pulse-ring{
  0%{box-shadow:0 0 0 0 rgba(29,78,216,.6), 0 0 0 6px rgba(29,78,216,.25)}
  70%{box-shadow:0 0 0 12px rgba(29,78,216,0), 0 0 0 24px rgba(29,78,216,0)}
  100%{box-shadow:0 0 0 0 rgba(29,78,216,0), 0 0 0 0 rgba(29,78,216,0)}
}
.hotspot-label{
  padding:6px 10px; background:rgba(0,0,0,.55); backdrop-filter:blur(4px);
  color:#fff; font-size:13px; font-weight:600; border-radius:10px; border:1px solid rgba(255,255,255,.15); white-space:nowrap;
}

/* === Walkthrough Panel === */
.walkthrough-panel{
  position:fixed; right:20px; bottom:20px; width:640px; max-width:calc(100vw - 40px);
  height:420px; max-height:calc(100vh - 40px);
  background:rgba(0,0,0,.70); border:1px solid rgba(255,255,255,.15);
  border-radius:14px; backdrop-filter:blur(8px); overflow:hidden; z-index:4500; display:none;
}
.walkthrough-panel.open{ display:block; }
.walkthrough-close{
  position:absolute; top:6px; right:10px; width:28px; height:28px; border-radius:50%;
  border:1px solid rgba(255,255,255,.2); background:rgba(0,0,0,.5); color:#fff; font-size:18px; cursor:pointer; z-index:2;
}
.walkthrough-embed{ position:absolute; inset:0; padding:36px 10px 10px 10px; }
.walkthrough-embed iframe{ width:100%; height:100%; border:0; border-radius:10px; }

/* === Estate popup (revamp) — styles patch) === */
.estate-grid2{ display:grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap:14px; }
.estate-card2{ background: rgba(0,0,0,.55); border: 1px solid rgba(255,255,255,.15); border-radius: 14px; overflow: hidden; }
.estate-card2-hero{ position: relative; height: 160px; background-size: cover; background-position: center; cursor: pointer; }
.estate-card2-title{ position:absolute; left:12px; bottom:12px; background: rgba(0,0,0,.5); border: 1px solid rgba(255,255,255,.12); border-radius: 10px; padding: 6px 10px; font-weight: 800; letter-spacing: .02em; }
.estate-card2-expander{ display:none; padding: 12px; background: rgba(0,0,0,.35); border-top: 1px solid rgba(255,255,255,.1); }
.estate-card2-expander.open{ display:block; }
.estate-subtitle{ font-weight: 800; margin: 4px 0 8px 0; }
.estate-gallery2{ display:grid; grid-auto-flow: column; grid-auto-columns: 200px; gap: 8px; overflow-x: auto; padding-bottom: 6px; scroll-snap-type: x mandatory; }
.estate-gallery2 img{ width: 200px; height: 130px; object-fit: cover; border-radius: 10px; border: 1px solid rgba(255,255,255,.12); scroll-snap-align: start; background: #111; cursor: zoom-in; }
.estate-specs2{ margin: 6px 0 8px; padding-left: 18px; }
.estate-actions2{ display:flex; gap:8px; flex-wrap: wrap; margin-top: 8px; }
.estate-btn{ background: #1d4ed8; color:#fff; border:0; border-radius: 10px; padding: 8px 12px; font-weight: 700; cursor: pointer; text-decoration: none; }
.estate-btn.secondary{ background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.15); }
@media (max-width: 860px){ .estate-grid2{ grid-template-columns: 1fr; } }

/* Zoom modal */
.estate-zoom{ position: fixed; inset: 0; display: none; z-index: 5000; }
.estate-zoom.open{ display: block; }
.estate-zoom-backdrop{ position:absolute; inset:0; background: rgba(0,0,0,.7); backdrop-filter: blur(2px); }
.estate-zoom-body{ position: absolute; left: 50%; top: 50%; transform: translate(-50%,-50%); width: min(90vw, 980px); height: min(90vh, 70vh); border-radius: 12px; overflow: hidden; background: #000; border: 1px solid rgba(255,255,255,.15); }
.estate-zoom-body img{ width: 100%; height: 100%; object-fit: contain; background:#000; }
.estate-zoom-close{ position: absolute; right: 10px; top: 8px; width: 36px; height: 36px; border-radius: 50%; border: 1px solid rgba(255,255,255,.25); background: rgba(0,0,0,.55); color:#fff; font-size: 20px; cursor: pointer; z-index: 2; }

/* Estate ultra-wide panel */
.overlay-content.estate-ultra { width: min(96vw, 1380px); max-width: 1380px; margin: 0 auto; z-index: 2000; background: rgba(0,0,0,.6); }

/* Estate pills */
.estate-pills { display:flex; gap:10px; flex-wrap:wrap; margin-bottom:14px; }
.estate-pill {
  color:#fff; background: rgba(0,0,0,.55); border:1px solid rgba(255,255,255,.22);
  border-radius:999px; padding:8px 12px; font-weight:700; cursor:pointer;
  transition: background .15s ease, border-color .15s ease, transform .12s ease;
}
.estate-pill:hover { background: rgba(0,0,0,.65); transform: translateY(-1px); }
.estate-pill.active { background: #1d4ed8; border-color: #1d4ed8; color:#fff; }

/* Estate details */
.estate-details2 { background: rgba(0,0,0,.68); border:1px solid rgba(255,255,255,.15); border-radius:16px; overflow:hidden; }
.estate-hero { position:relative; height:300px; background:center/cover no-repeat; }
.estate-hero::after { content:""; position:absolute; inset:0; background:linear-gradient(180deg,rgba(0,0,0,.12),rgba(0,0,0,.6)); }
.estate-hero-title {
  position:absolute; left:24px; bottom:18px; z-index:1; font-size:28px; font-weight:900;
  background:rgba(0,0,0,.55); border:1px solid rgba(255,255,255,.15);
  padding:10px 14px; border-radius:12px;
}
.estate-details-body { padding:18px; }
.estate-details-block + .estate-details-block { margin-top:16px; }
.estate-block-heading { font-weight:800; margin-bottom:10px; }

/* Carousel */
.carousel { position:relative; overflow:hidden; border-radius:12px; }
.carousel-track { display:flex; gap:12px; padding:2px; will-change:transform; }
.carousel img {
  width:260px; height:160px; object-fit:cover; background:#111;
  border-radius:12px; border:1px solid rgba(255,255,255,.12); flex:0 0 auto; cursor:zoom-in;
}

/* Units */
.units-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:12px; }
.unit-card { background:rgba(255,255,255,.06); border:1px solid rgba(255,255,255,.14); border-radius:12px; padding:12px 14px; }
.unit-card b { display:block; margin-bottom:6px; }

/* CTA bar */
.estate-cta { position:sticky; bottom:0; display:flex; gap:12px; flex-wrap:wrap; padding-top:10px;
  background:linear-gradient(180deg,rgba(0,0,0,0),rgba(0,0,0,.22)); }
.estate-btn { background:#1d4ed8; color:#fff; border:0; border-radius:10px; padding:12px 16px; font-weight:700; cursor:pointer; text-decoration: none; }
.estate-btn.secondary { background:rgba(255,255,255,.06); border:1px solid rgba(255,255,255,.15); }

/* Zoom modal */
.estate-zoom { position:fixed; inset:0; display:none; z-index:5000; }
.estate-zoom.open { display:block; }
.estate-zoom-backdrop { position:absolute; inset:0; background:rgba(0,0,0,.72); backdrop-filter:blur(2px); }
.estate-zoom-body {
  position:absolute; left:50%; top:50%; transform:translate(-50%,-50%);
  width:min(96vw,1200px); height:min(88vh,72vh);
  background:#000; border:1px solid rgba(255,255,255,.15); border-radius:12px; overflow:hidden;
}
.estate-zoom-body img { width:100%; height:100%; object-fit:contain; }
.estate-zoom-close { position:absolute; right:10px; top:8px; width:36px; height:36px; border-radius:50%; border:1px solid rgba(255,255,255,.25); background:rgba(0,0,0,.55); color:#fff; font-size:20px; cursor:pointer; z-index:2; }

/* Responsive tweaks */
@media (max-width:1200px){ .units-grid{ grid-template-columns:repeat(2,minmax(0,1fr)); } }
@media (max-width:700px){ .units-grid{ grid-template-columns:1fr; } }

/* Nav readability */
.bottom-navigation .nav-label{ color:#fff; }
.bottom-navigation .nav-icon{ stroke:#fff; }

/* Z-index prioritization */
.overlay-content,
.overlay-content.estate-ultra { z-index: 6000; }
.walkthrough-hotspot, .walkthrough-panel { z-index: 1000; }
.contact-modal-card { position: relative; z-index: 6100; }
.contact-close { z-index: 6150; pointer-events: auto; }

/* === Homepage panorama/background layer fix === */
html, body {
  width: 100%;
  height: 100%;
}

body {
  position: relative;
}

/* Keep all homepage backgrounds above body, below UI */
.hero-bg,
.video-background,
.panorama-background,
#bg-image,
#bg-video,
#bg-panorama {
  position: fixed !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  z-index: 1 !important;
}

/* Panorama viewer sizing */
.panorama-background,
.panorama-background > div,
.panorama-background .pnlm-container,
#homepage-panorama {
  width: 100% !important;
  height: 100% !important;
}

/* Ensure visible page UI stays above panorama */
.sidebar { z-index: 30 !important; }
.content-page { z-index: 50 !important; }
.quick-info { z-index: 1000 !important; }
.bottom-navigation { z-index: 1000 !important; }
.overlay-menu { z-index: 1500 !important; }
.overlay-content,
.overlay-content.estate-ultra { z-index: 6000 !important; }
.walkthrough-hotspot { z-index: 4000 !important; }
.walkthrough-panel { z-index: 4500 !important; }

/* Keep hotspot clicks working */
.walkthrough-hotspot,
.walkthrough-hotspot * {
  pointer-events: auto;
}

/* --- FIX: left panel auto scroll --- */
.sidebar {
  height: 100vh !important;
  overflow: hidden;
}

.sidebar-content {
  height: 100%;
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.logo-section,
.indicators-section {
  flex: 0 0 auto;
}

.content-section {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
}

/* === Mobile only CTA bar === */
.mobile-cta-bar{
  display:none;
}

@media (max-width: 768px){
  .mobile-cta-bar{
    position:fixed;
    left:12px;
    right:12px;
    bottom:92px;
    z-index:1100;
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:10px;
  }

  .mobile-cta-btn{
    display:flex;
    align-items:center;
    justify-content:center;
    min-height:48px;
    padding:12px 14px;
    border-radius:14px;
    text-decoration:none;
    color:#fff;
    font-weight:800;
    font-size:14px;
    letter-spacing:.02em;
    box-shadow:0 10px 28px rgba(0,0,0,.28);
    border:1px solid rgba(255,255,255,.14);
    backdrop-filter:blur(12px);
    -webkit-backdrop-filter:blur(12px);
  }

  .mobile-cta-btn.call{
    background:linear-gradient(180deg, rgba(34,197,94,.95), rgba(22,163,74,.95));
  }

  .mobile-cta-btn.email{
    background:linear-gradient(180deg, rgba(54,162,235,.95), rgba(13,110,253,.95));
  }

  /* mobile bottom nav fix */
  .bottom-navigation{
    left:0;
    right:0;
    bottom:0;
    transform:none;
    width:100%;
    border-radius:14px 14px 0 0;
    justify-content:space-around;
    gap:0;
    padding:10px 6px calc(10px + env(safe-area-inset-bottom));
  }

  .bottom-navigation .nav-button,
  .bottom-navigation a.nav-button{
    min-width:0;
    flex:1 1 0;
    padding:10px 6px;
    gap:5px;
  }

  .bottom-navigation .nav-icon{
    width:22px;
    height:22px;
    margin-bottom:2px;
  }

  .bottom-navigation .nav-label{
    font-size:10px;
    line-height:1.1;
    letter-spacing:.2px;
  }

  /* give page space above fixed mobile bars */
  body{
    padding-bottom:160px;
  }

  /* better mobile panel spacing */
  .logo-section{
    padding:22px 18px 10px;
    margin-top:0;
  }

  .logo-container{
    width:100%;
    height:120px;
  }

  .content-section{
    padding:0 18px 18px;
    margin-top:0;
  }

  .hero-title{
    font-size:clamp(34px, 8vw, 52px);
    line-height:1.05;
    margin-bottom:12px;
  }

  .slide-subtitle{
    font-size:clamp(18px, 5vw, 26px);
    margin-bottom:16px;
  }

  .hero-subtitle{
    font-size:clamp(15px, 4.2vw, 18px);
    line-height:1.55;
    margin-bottom:20px;
  }

  .quick-info{
    right:12px;
    bottom:168px;
    max-width:calc(100vw - 24px);
    width:auto;
    padding:0;
  }

  .quick-info-content{
    padding:12px 14px;
  }
}

/* Hide Google Translate banner */
.goog-te-banner-frame,
.goog-te-balloon-frame,
.skiptranslate iframe,
body > .skiptranslate {
  display: none !important;
  visibility: hidden !important;
}

/* Reset page shift caused by Google Translate */
body {
  top: 0 !important;
}

/* Hide Google translate top helper */
.goog-te-gadget,
.goog-te-gadget-simple,
.goog-te-combo {
  max-height: 0 !important;
  overflow: hidden !important;
}

html {
  margin-top: 0 !important;
}

.mobile-cta-bar{
  display:none !important;
}

@media screen and (max-width: 768px){
  .mobile-cta-bar{
    position:fixed !important;
    left:12px !important;
    right:12px !important;
    bottom:92px !important;
    z-index:99999 !important;
    display:grid !important;
    grid-template-columns:1fr 1fr !important;
    gap:10px !important;
  }

  .mobile-cta-btn{
    display:flex !important;
    align-items:center !important;
    justify-content:center !important;
    min-height:48px !important;
    padding:12px 14px !important;
    border-radius:14px !important;
    text-decoration:none !important;
    color:#fff !important;
    font-weight:800 !important;
    font-size:14px !important;
    letter-spacing:.02em !important;
    border:1px solid rgba(255,255,255,.14) !important;
    box-shadow:0 10px 28px rgba(0,0,0,.28) !important;
  }

  .mobile-cta-btn.call{
    background:linear-gradient(180deg, rgba(34,197,94,.96), rgba(22,163,74,.96)) !important;
  }

  .mobile-cta-btn.email{
    background:linear-gradient(180deg, rgba(54,162,235,.96), rgba(13,110,253,.96)) !important;
  }

  .bottom-navigation{
    z-index:9999 !important;
  }

  body{
    padding-bottom:160px !important;
  }
}