:root {
  --sidebar-width: 222px;
  --text: #f7f9fb;
  --ink: #15202b;
  --muted: rgba(255, 255, 255, .72);
  --glass: rgba(249, 249, 247, .84);
  --sidebar: rgba(255, 255, 255, .96);
  --radius: 24px;
  --shadow: 0 18px 50px rgba(0,0,0,.14);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-width: 320px;
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: #101820;
  color: var(--text);
}
a { color: inherit; text-decoration: none; }
button { font: inherit; }
svg { width: 1.35rem; height: 1.35rem; fill: none; stroke: currentColor; stroke-width: 1.65; stroke-linecap: round; stroke-linejoin: round; }

.app-shell { min-height: 100vh; }
.sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  width: var(--sidebar-width);
  display: flex;
  flex-direction: column;
  padding: 42px 20px 30px;
  color: var(--ink);
  background: var(--sidebar);
  z-index: 30;
  box-shadow: 8px 0 30px rgba(0,0,0,.04);
}
.brand {
  display: inline-flex;
  align-items: baseline;
  margin: 0 20px 118px;
  font-size: 31px;
  font-weight: 700;
  letter-spacing: -.055em;
}
.brand strong { color: #d71920; font-size: .64em; margin-left: 1px; letter-spacing: -.04em; }
.main-nav { display: grid; gap: 18px; }
.nav-item {
  min-height: 64px;
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 0 22px;
  border-radius: 18px;
  font-weight: 500;
  transition: background .2s ease, transform .2s ease;
}
.nav-item:hover { background: rgba(18,31,43,.06); transform: translateX(2px); }
.nav-item.active { background: rgba(18,31,43,.07); font-weight: 700; }
.sidebar-footer { margin-top: auto; padding: 0 22px; }
.language-switch { display: flex; gap: 16px; align-items: center; margin-bottom: 34px; }
.language-switch span { width: 1px; height: 18px; background: rgba(21,32,43,.26); }
.language-switch button { border: 0; background: none; padding: 0 0 4px; color: rgba(21,32,43,.62); cursor: pointer; }
.language-switch button.active { color: var(--ink); border-bottom: 1px solid currentColor; }
.sidebar-footer small { color: rgba(21,32,43,.56); }

.main-content {
  position: relative;
  min-height: 100vh;
  margin-left: var(--sidebar-width);
  overflow: hidden;
  isolation: isolate;
}
.hero-background,
.hero-overlay { position: fixed; inset: 0 0 0 var(--sidebar-width); z-index: -2; }
.hero-background {
  background: url('../gallery/solutions-hero.jpg') center center / cover no-repeat;
  transform: scale(1.01);
}
.hero-overlay {
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(8,18,27,.88) 0%, rgba(8,18,27,.62) 31%, rgba(8,18,27,.08) 73%),
    linear-gradient(0deg, rgba(7,16,24,.96) 0%, rgba(7,16,24,.36) 39%, rgba(7,16,24,.05) 100%);
}
.topbar { position: absolute; top: 42px; right: 54px; z-index: 3; }
.projects-pill {
  display: grid;
  grid-template-columns: auto auto 1px auto;
  align-items: center;
  gap: 15px;
  min-height: 58px;
  padding: 0 18px;
  color: var(--ink);
  background: rgba(255,255,255,.87);
  border: 1px solid rgba(255,255,255,.7);
  border-radius: 999px;
  backdrop-filter: blur(20px);
  box-shadow: 0 12px 34px rgba(0,0,0,.08);
}
.projects-pill svg { width: 18px; height: 18px; }
.pill-divider { width: 1px; height: 58px; background: rgba(21,32,43,.12); }

.content-wrap {
  width: min(100%, 1580px);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  padding: 138px 54px 34px 68px;
}
.section-heading h1 {
  margin: 0;
  font-size: clamp(52px, 5.2vw, 84px);
  line-height: .95;
  letter-spacing: -.055em;
  font-weight: 650;
}
.heading-rule { width: 50px; height: 2px; margin: 34px 0 23px; background: rgba(255,255,255,.85); }
.section-heading p { margin: 0; font-size: clamp(18px, 1.6vw, 24px); line-height: 1.45; color: var(--muted); }

.solutions-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(180px, 1fr));
  gap: 18px;
  margin-top: 52px;
}
.solution-card {
  position: relative;
  min-height: 280px;
  display: flex;
  flex-direction: column;
  padding: 34px 31px 28px;
  color: var(--ink);
  background: var(--glass);
  border: 1px solid rgba(255,255,255,.62);
  border-radius: var(--radius);
  backdrop-filter: blur(18px) saturate(115%);
  box-shadow: var(--shadow);
  transition: transform .25s ease, background .25s ease, box-shadow .25s ease;
}
.solution-card:hover {
  transform: translateY(-7px);
  background: rgba(255,255,255,.93);
  box-shadow: 0 26px 62px rgba(0,0,0,.21);
}
.solution-card > svg { width: 48px; height: 48px; margin-bottom: 28px; }
.solution-card h2 { margin: 0 0 10px; font-size: 22px; line-height: 1.22; letter-spacing: -.025em; }
.solution-card p { margin: 0; color: rgba(21,32,43,.64); font-size: 15px; }
.card-arrow {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  margin-top: auto;
  align-self: center;
  border-radius: 50%;
  background: rgba(255,255,255,.93);
}
.card-arrow svg { width: 20px; height: 20px; }

.featured { margin-top: auto; padding-top: 44px; }
.featured-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 17px; }
.featured-header h2 { margin: 0; font-size: 21px; font-weight: 500; }
.carousel-controls { display: flex; gap: 10px; }
.carousel-btn {
  width: 40px; height: 40px; display: grid; place-items: center;
  border: 1px solid rgba(255,255,255,.25); border-radius: 50%;
  color: white; background: rgba(255,255,255,.08); cursor: pointer;
}
.carousel-btn:hover { background: rgba(255,255,255,.18); }
.projects-carousel {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(190px, 1fr);
  gap: 12px;
  overflow-x: auto;
  padding: 2px 2px 8px;
  scrollbar-width: none;
  scroll-snap-type: x mandatory;
}
.projects-carousel::-webkit-scrollbar { display: none; }
.project-card {
  position: relative;
  min-height: 185px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 14px;
  scroll-snap-align: start;
  background: #26313b;
}
.project-card::after { content: ""; position: absolute; inset: 35% 0 0; background: linear-gradient(transparent, rgba(5,12,18,.9)); }
.project-card img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s ease; }
.project-card:hover img { transform: scale(1.05); }
.project-card span { position: absolute; left: 17px; bottom: 15px; z-index: 1; font-size: 16px; }
.project-card.selected { outline: 3px solid white; outline-offset: -3px; }

.mobile-menu { display: none; }
.svg-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

@media (max-width: 1300px) {
  :root { --sidebar-width: 190px; }
  .sidebar { padding-inline: 14px; }
  .brand { margin-left: 16px; margin-right: 16px; }
  .content-wrap { padding-left: 44px; padding-right: 38px; }
  .solutions-grid { grid-template-columns: repeat(5, minmax(155px, 1fr)); gap: 12px; }
  .solution-card { min-height: 255px; padding: 27px 23px 24px; }
}

@media (max-width: 1050px) {
  .solutions-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .solution-card { min-height: 245px; }
  .featured { margin-top: 52px; }
}

@media (max-width: 760px) {
  :root { --sidebar-width: 0px; }
  .sidebar {
    width: min(82vw, 320px);
    transform: translateX(-105%);
    transition: transform .28s ease;
  }
  .sidebar.open { transform: translateX(0); }
  .brand { margin-bottom: 70px; }
  .main-content { margin-left: 0; }
  .hero-background, .hero-overlay { inset-left: 0; }
  .mobile-menu {
    position: fixed;
    top: 20px;
    left: 20px;
    z-index: 40;
    width: 48px;
    height: 48px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(255,255,255,.65);
    border-radius: 50%;
    color: var(--ink);
    background: rgba(255,255,255,.9);
    backdrop-filter: blur(14px);
  }
  .topbar { top: 20px; right: 20px; }
  .projects-pill { min-height: 48px; padding: 0 14px; gap: 10px; }
  .pill-divider { height: 48px; }
  .content-wrap { padding: 108px 20px 28px; }
  .section-heading h1 { font-size: clamp(46px, 14vw, 68px); }
  .section-heading p br { display: none; }
  .solutions-grid { grid-template-columns: 1fr 1fr; margin-top: 36px; }
  .solution-card { min-height: 230px; padding: 24px 20px; }
  .solution-card h2 { font-size: 19px; }
  .projects-carousel { grid-auto-columns: minmax(210px, 73vw); }
  .project-card { min-height: 160px; }
}

@media (max-width: 470px) {
  .projects-pill span:not(.pill-divider) { display: none; }
  .projects-pill { grid-template-columns: auto 1px auto; }
  .solutions-grid { grid-template-columns: 1fr; }
  .solution-card { min-height: 210px; }
  .section-heading h1 { font-size: 44px; }
  .featured-header h2 { font-size: 19px; }
}

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; transition: none !important; }
}

/* Compact desktop layout: keeps the full Solutions screen inside one viewport */
@media (min-width: 1051px) {
  .topbar {
    top: 24px;
    right: 38px;
  }

  .projects-pill {
    min-height: 48px;
  }

  .pill-divider {
    height: 48px;
  }

  .content-wrap {
    height: 100vh;
    min-height: 640px;
    padding-top: clamp(62px, 7.2vh, 90px);
    padding-bottom: clamp(18px, 2.2vh, 28px);
  }

  .section-heading h1 {
    font-size: clamp(46px, 4.2vw, 68px);
  }

  .heading-rule {
    margin: clamp(15px, 2vh, 22px) 0 clamp(12px, 1.6vh, 18px);
  }

  .section-heading p {
    font-size: clamp(15px, 1.25vw, 20px);
    line-height: 1.35;
  }

  .solutions-grid {
    margin-top: clamp(22px, 3.2vh, 38px);
    gap: 14px;
  }

  .solution-card {
    min-height: clamp(178px, 24vh, 226px);
    padding: clamp(18px, 2.3vh, 26px) 24px 18px;
    border-radius: 20px;
  }

  .solution-card > svg {
    width: clamp(34px, 4.2vh, 44px);
    height: clamp(34px, 4.2vh, 44px);
    margin-bottom: clamp(14px, 1.8vh, 21px);
  }

  .solution-card h2 {
    margin-bottom: 6px;
    font-size: clamp(17px, 1.35vw, 20px);
  }

  .solution-card p {
    font-size: clamp(12px, .95vw, 14px);
  }

  .card-arrow {
    width: clamp(36px, 4.5vh, 42px);
    height: clamp(36px, 4.5vh, 42px);
  }

  .featured {
    margin-top: auto;
    padding-top: clamp(18px, 2.7vh, 30px);
  }

  .featured-header {
    margin-bottom: clamp(9px, 1.2vh, 13px);
  }

  .featured-header h2 {
    font-size: clamp(16px, 1.3vw, 19px);
  }

  .carousel-btn {
    width: 34px;
    height: 34px;
  }

  .projects-carousel {
    grid-auto-columns: minmax(155px, 1fr);
    gap: 10px;
    padding-bottom: 3px;
  }

  .project-card {
    min-height: clamp(104px, 15vh, 142px);
    border-radius: 12px;
  }

  .project-card span {
    left: 13px;
    bottom: 11px;
    font-size: 14px;
  }
}

/* Extra compression for shorter laptop screens */
@media (min-width: 1051px) and (max-height: 760px) {
  .content-wrap {
    padding-top: 52px;
    padding-bottom: 14px;
  }

  .section-heading h1 {
    font-size: 44px;
  }

  .heading-rule {
    margin: 12px 0 10px;
  }

  .section-heading p {
    font-size: 14px;
    line-height: 1.28;
  }

  .solutions-grid {
    margin-top: 18px;
  }

  .solution-card {
    min-height: 166px;
    padding: 16px 20px 14px;
  }

  .solution-card > svg {
    width: 32px;
    height: 32px;
    margin-bottom: 11px;
  }

  .solution-card h2 {
    font-size: 16px;
  }

  .solution-card p {
    font-size: 12px;
  }

  .card-arrow {
    width: 34px;
    height: 34px;
  }

  .featured {
    padding-top: 14px;
  }

  .featured-header {
    margin-bottom: 7px;
  }

  .project-card {
    min-height: 94px;
  }
}


/* ========================================
   360 TOUR PAGE
======================================== */
.tour-hero {
  background-image: url('../gallery/project-orduna.jpg');
  background-position: center center;
}

.tour-content {
  width: 100%;
  max-width: none;
}

.tour-heading,
.tour-options,
.tour-content .featured {
  width: min(100%, 1320px);
  margin-left: auto;
  margin-right: auto;
}

.tour-heading p {
  max-width: 1040px;
}

.tour-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  margin-top: 34px;
}

.tour-option-card {
  color: var(--text);
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 28px;
  padding: 32px 34px 28px;
  backdrop-filter: blur(22px) saturate(115%);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.18);
  transition: transform .25s ease, background .25s ease, box-shadow .25s ease;
}

.tour-option-card:hover {
  transform: translateY(-7px);
  background: rgba(255, 255, 255, 0.22);
  box-shadow: 0 26px 62px rgba(0, 0, 0, 0.23);
}

.tour-option-head {
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: 20px;
  align-items: start;
}

.tour-option-icon {
  width: 76px;
  height: 76px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.06);
}

.tour-option-icon svg {
  width: 46px;
  height: 46px;
}

.tour-option-card h2 {
  margin: 6px 0 14px;
  font-size: clamp(22px, 1.9vw, 30px);
  line-height: 1.08;
  letter-spacing: -.03em;
}

.tour-option-card p {
  margin: 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: clamp(16px, 1.05vw, 18px);
  line-height: 1.5;
}

.tour-launch {
  display: inline-flex;
  align-items: center;
  gap: 20px;
  margin-top: 28px;
  color: #fff;
  font-size: 18px;
  font-weight: 500;
}

.launch-icon {
  width: 62px;
  height: 62px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  color: var(--ink);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.14);
}

.launch-icon svg {
  width: 26px;
  height: 26px;
}

.tour-page .featured {
  padding-top: 28px;
}

@media (min-width: 1051px) {
  .tour-content {
    height: 100vh;
    min-height: 700px;
  }

  .tour-heading h1 {
    font-size: clamp(64px, 6.1vw, 96px);
  }

  .tour-heading p {
    font-size: clamp(16px, 1.55vw, 19px);
    line-height: 1.52;
  }

  .tour-option-card {
    min-height: 290px;
  }
}

@media (max-width: 1200px) {
  .tour-heading,
  .tour-options,
  .tour-content .featured {
    width: min(100%, 1100px);
  }

  .tour-option-card {
    padding: 28px 28px 24px;
  }
}

@media (max-width: 900px) {
  .tour-options {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .tour-option-head {
    grid-template-columns: 72px 1fr;
    gap: 16px;
  }

  .tour-option-icon {
    width: 64px;
    height: 64px;
  }

  .tour-option-icon svg {
    width: 38px;
    height: 38px;
  }

  .tour-launch {
    font-size: 17px;
  }
}

@media (max-width: 760px) {
  .tour-heading,
  .tour-options,
  .tour-content .featured {
    width: 100%;
  }

  .tour-heading h1 {
    font-size: clamp(48px, 13vw, 72px);
  }

  .tour-heading p {
    font-size: 16px;
  }

  .tour-option-card {
    border-radius: 24px;
    padding: 24px 22px 22px;
  }

  .tour-launch {
    gap: 16px;
    margin-top: 22px;
    font-size: 16px;
  }

  .launch-icon {
    width: 52px;
    height: 52px;
  }

  .launch-icon svg {
    width: 22px;
    height: 22px;
  }
}


/* Home pill on inner solution pages */
.home-pill {
  grid-template-columns: auto auto;
  padding-right: 22px;
}


/* ========================================
   MASTER EXPERIENCE ENTRY — INDEX
======================================== */
.master-entry-wrap {
  width: min(100%, 1320px);
  display: flex;
  justify-content: center;
  margin: clamp(14px, 2.2vh, 24px) auto 0;
}
.master-entry {
  min-width: min(520px, 100%);
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 18px;
  padding: 13px 15px 13px 22px;
  color: #fff;
  border: 1px solid rgba(255,255,255,.28);
  border-radius: 999px;
  background: rgba(11,22,32,.46);
  backdrop-filter: blur(18px);
  box-shadow: 0 12px 34px rgba(0,0,0,.14);
  transition: transform .25s ease, background .25s ease;
}
.master-entry:hover { transform: translateY(-3px); background: rgba(11,22,32,.63); }
.master-entry-kicker { font-size: 12px; letter-spacing: .15em; color: rgba(255,255,255,.62); }
.master-entry strong { font-size: clamp(15px,1.15vw,18px); font-weight: 600; text-align: center; }
.master-entry-arrow { width: 38px; height: 38px; display:grid; place-items:center; border-radius:50%; background:#fff; color:var(--ink); }
.master-entry-arrow svg { width:18px; height:18px; }

/* ========================================
   GLOBAL / MASTER EXPERIENCE
======================================== */
.master-body { margin:0; overflow:hidden; background:#07111a; }
.master-experience { position:relative; width:100vw; height:100svh; min-height:560px; overflow:hidden; color:#fff; isolation:isolate; }
.master-scene { position:absolute; inset:0; cursor:pointer; z-index:-3; }
.master-scene-image { position:absolute; inset:-1.5%; background:url('../gallery/MainProject-Day.jpg') center / cover no-repeat; transform:scale(1.03); transition:filter .7s ease, transform 1.2s ease; }
.master-scene-shade { position:absolute; inset:0; background:linear-gradient(90deg,rgba(4,13,21,.62) 0%,rgba(4,13,21,.18) 40%,rgba(4,13,21,.02) 72%),linear-gradient(0deg,rgba(3,10,17,.72) 0%,rgba(3,10,17,.04) 47%,rgba(3,10,17,.18) 100%); }
.master-experience.night-mode .master-scene-image { filter:brightness(.56) saturate(.88) hue-rotate(4deg); transform:scale(1.045); }
.master-logo { position:absolute; top:34px; left:36px; z-index:6; display:inline-flex; align-items:baseline; font-size:36px; line-height:1; font-weight:700; letter-spacing:-.055em; color:#fff; text-shadow:0 2px 20px rgba(0,0,0,.22); }
.master-logo strong { color:#ef3340; font-size:1em; font-weight:700; margin-left:1px; letter-spacing:-.055em; }
.master-top-actions { position:absolute; top:31px; right:40px; display:flex; gap:18px; z-index:8; }
.day-night,.master-home { height:50px; display:flex; align-items:center; border:1px solid rgba(255,255,255,.38); border-radius:999px; background:rgba(12,24,35,.25); backdrop-filter:blur(18px); }
.day-night button { height:100%; min-width:94px; display:flex; align-items:center; justify-content:center; gap:9px; border:0; color:rgba(255,255,255,.72); background:transparent; cursor:pointer; border-radius:999px; }
.day-night button.active { color:#fff; background:rgba(255,255,255,.12); }
.day-night svg,.master-home svg { width:21px; height:21px; }
.master-home { gap:10px; padding:0 23px; }
.master-intro { position:absolute; top:14.5%; left:36px; width:min(520px,35vw); z-index:5; transition:opacity .55s ease, transform .65s cubic-bezier(.22,.8,.24,1), visibility .55s; }
.master-intro .eyebrow { font-size:13px; letter-spacing:.17em; color:rgba(255,255,255,.62); }
.master-intro h1 { margin:14px 0 0; font-size:clamp(48px,5vw,78px); line-height:.98; letter-spacing:-.045em; font-weight:380; }
.master-rule { width:40px; height:2px; margin:25px 0 20px; background:rgba(255,255,255,.8); }
.master-intro p { margin:0; max-width:430px; font-size:clamp(16px,1.3vw,20px); line-height:1.5; color:rgba(255,255,255,.82); }
.master-experience.exploring .master-intro { opacity:0; visibility:hidden; transform:translateX(-90px); pointer-events:none; }
.rotation-arrow { position:absolute; top:49%; width:66px; height:66px; display:grid; place-items:center; transform:translateY(-50%); border:1px solid rgba(255,255,255,.38); border-radius:50%; color:#fff; background:rgba(9,21,31,.28); backdrop-filter:blur(12px); cursor:pointer; z-index:5; transition:background .2s ease, transform .2s ease; }
.rotation-arrow:hover { background:rgba(255,255,255,.14); transform:translateY(-50%) scale(1.05); }
.rotation-arrow svg { width:34px; height:34px; }
.rotation-left { left:42px; } .rotation-right { right:42px; }
.building-hotspot { position:absolute; left:50%; bottom:246px; transform:translateX(-50%); display:flex; align-items:center; justify-content:center; gap:12px; min-width:220px; padding:12px 22px; color:#fff; border:1px solid rgba(255,255,255,.18); border-radius:999px; background:rgba(8,19,28,.34); backdrop-filter:blur(14px); box-shadow:0 12px 36px rgba(0,0,0,.18); cursor:pointer; z-index:10; font-size:16px; transition:opacity .4s ease, transform .4s ease, background .2s ease; }
.building-hotspot:hover { background:rgba(255,255,255,.12); transform:translateX(-50%) translateY(-3px); }
.building-hotspot svg { width:25px; height:25px; }
.master-experience.exploring .building-hotspot { opacity:0; pointer-events:none; transform:translate(-50%,18px); }
.master-dock { position:absolute; left:5.7%; right:5.7%; bottom:62px; min-height:166px; display:grid; grid-template-columns: repeat(6, minmax(92px, 1fr)); align-items:stretch; padding:14px 18px; border:1px solid rgba(255,255,255,.42); border-radius:28px; background:rgba(20,34,46,.53); backdrop-filter:blur(24px) saturate(115%); box-shadow:0 20px 65px rgba(0,0,0,.27); z-index:9; transition:transform .7s cubic-bezier(.22,.8,.24,1), opacity .5s ease; }
.master-dock.hidden { transform:translateX(calc(-100% - 8vw)); opacity:0; pointer-events:none; }
.dock-item { position:relative; min-width:0; display:flex; flex-direction:column; align-items:center; justify-content:center; gap:13px; text-align:center; color:rgba(255,255,255,.8); border-right:1px solid rgba(255,255,255,.13); transition:background .2s ease,color .2s ease; }
.dock-item:last-child { border-right:0; }
.dock-item svg { width:39px; height:39px; }
.dock-item span { font-size:clamp(12px,1vw,16px); line-height:1.25; }
.dock-item:hover,.dock-item.active { color:#fff; background:rgba(255,255,255,.06); border-radius:20px; }
.dock-item.active::after { content:""; position:absolute; bottom:8px; width:34px; height:2px; background:#fff; }
.dock-reveal { position:absolute; left:0; bottom:80px; width:78px; height:110px; display:flex; flex-direction:column; align-items:center; justify-content:center; gap:6px; color:#fff; border:1px solid rgba(255,255,255,.4); border-left:0; border-radius:0 24px 24px 0; background:rgba(20,34,46,.55); backdrop-filter:blur(18px); z-index:10; cursor:pointer; transform:translateX(-100%); opacity:0; transition:transform .55s cubic-bezier(.22,.8,.24,1),opacity .35s ease; }
.dock-reveal.visible { transform:translateX(0); opacity:1; }
.dock-reveal svg { width:26px; height:26px; }
.dock-reveal span { font-size:12px; }
.master-language { position:absolute; left:38px; bottom:24px; display:flex; align-items:center; gap:18px; color:rgba(255,255,255,.68); z-index:6; }
.master-language strong { color:#fff; border-bottom:1px solid #fff; padding-bottom:3px; }
.master-language i { width:1px; height:17px; background:rgba(255,255,255,.38); }
.master-copyright { position:absolute; right:40px; bottom:26px; color:rgba(255,255,255,.74); z-index:6; }

@media (max-width:1100px) {
  .master-dock { left:3%; right:3%; grid-template-columns:repeat(5,1fr); max-height:230px; overflow:auto; bottom:54px; }
  .dock-item { min-height:98px; border-bottom:1px solid rgba(255,255,255,.13); }
  .master-intro { width:min(480px,52vw); }
  .building-hotspot { bottom:300px; }
}
@media (max-width:760px) {
  .master-logo { top:20px; left:20px; font-size:25px; }
  .master-top-actions { top:16px; right:14px; gap:8px; }
  .day-night button { min-width:51px; padding:0 12px; }
  .day-night button span,.master-home span { display:none; }
  .master-home { width:50px; justify-content:center; padding:0; }
  .master-intro { top:105px; left:20px; width:calc(100% - 40px); }
  .master-intro h1 { font-size:47px; }
  .master-intro p { font-size:15px; max-width:90%; }
  .rotation-arrow { width:48px; height:48px; top:54%; }
  .rotation-left { left:14px; }.rotation-right { right:14px; }
  .rotation-arrow svg { width:26px;height:26px; }
  .master-dock { left:14px; right:14px; bottom:56px; min-height:0; grid-template-columns:repeat(3,1fr); border-radius:22px; padding:10px; max-height:46vh; overflow:auto; }
  .dock-item { min-height:96px; }
  .dock-item svg { width:31px;height:31px; }
  .dock-item span { font-size:12px; }
  .building-hotspot { bottom:54%; font-size:13px; }
  .master-language { left:18px; bottom:17px; font-size:12px; }
  .master-copyright { right:18px; bottom:19px; font-size:11px; }
  .dock-reveal { bottom:72px; width:58px; height:88px; }
  .master-entry { min-width:100%; grid-template-columns:1fr auto; }
  .master-entry-kicker { display:none; }
  .master-entry strong { text-align:left; }
}

/* Keep the Click to begin control centered above the dock */
@media (max-width: 1100px) {
  .building-hotspot {
    left: 50%;
    bottom: 300px;
    transform: translateX(-50%);
  }
}

@media (max-width: 760px) {
  .building-hotspot {
    left: 50%;
    bottom: calc(46vh + 72px);
    min-width: 190px;
    padding: 11px 18px;
    font-size: 14px;
    transform: translateX(-50%);
  }
}

@media (min-width: 1500px) {
  .building-hotspot {
    left: 50%;
    bottom: 248px;
    transform: translateX(-50%);
  }
}

/* =========================================================
   FINAL OVERRIDES — CENTERED HOME / SOLUTIONS
========================================================= */
@media (min-width: 1051px) {
  .content-wrap {
    width: 100%;
    max-width: none;
  }

  .section-heading,
  .solutions-grid,
  .master-entry-wrap,
  .featured {
    width: min(calc(100% - 48px), 1420px);
    margin-left: auto;
    margin-right: auto;
  }

  .solutions-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }
}

@media (min-width: 1051px) and (max-width: 1499px) {
  .section-heading,
  .solutions-grid,
  .master-entry-wrap,
  .featured {
    width: min(calc(100% - 32px), 1320px);
  }
}

.master-home {
  align-items: center;
  justify-content: center;
  text-align: center;
}


/* ========================================
   ORIGINAL ENVIRONMENT BAR — SVG/CSS ONLY
======================================== */
.environment-panel {
  position: absolute;
  top: 18px;
  left: 50%;
  z-index: 12;
  width: min(920px, calc(100vw - 620px));
  min-width: 720px;
  min-height: 62px;
  transform: translateX(-50%);
  display: grid;
  grid-template-columns: auto minmax(300px, 1fr) auto;
  align-items: center;
  gap: 18px;
  padding: 8px 16px;
  color: #fff;
  border: 1px solid rgba(255,255,255,.35);
  border-radius: 999px;
  background: rgba(12,24,35,.30);
  backdrop-filter: blur(20px) saturate(115%);
  box-shadow: 0 12px 34px rgba(0,0,0,.16);
}
.environment-group {
  display: flex;
  align-items: center;
  gap: 9px;
  flex-shrink: 0;
}
.environment-weather {
  padding-right: 14px;
  border-right: 1px solid rgba(255,255,255,.16);
}
.environment-seasons {
  padding-left: 14px;
  border-left: 1px solid rgba(255,255,255,.16);
}
.environment-button {
  width: 40px;
  height: 40px;
  flex: 0 0 40px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 1px solid transparent;
  border-radius: 50%;
  color: rgba(255,255,255,.58);
  background: rgba(255,255,255,.05);
  cursor: pointer;
  transition: color .2s ease, background .2s ease, border-color .2s ease, transform .2s ease;
}
.environment-button:hover {
  color: rgba(255,255,255,.9);
  background: rgba(255,255,255,.10);
  transform: translateY(-1px);
}
.environment-button.active {
  color: #fff;
  border-color: rgba(255,255,255,.22);
  background: rgba(255,255,255,.14);
}
.environment-button svg {
  width: 23px;
  height: 23px;
  stroke-width: 1.7;
}
.environment-time-wrap {
  min-width: 0;
  display: grid;
  grid-template-columns: 64px minmax(180px,1fr);
  align-items: center;
  gap: 14px;
}
.environment-time {
  font-size: 18px;
  line-height: 1;
  letter-spacing: -.03em;
  text-align: center;
}
.environment-slider-wrap {
  position: relative;
  height: 30px;
  display: flex;
  align-items: center;
}
.environment-slider-track {
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  height: 3px;
  transform: translateY(-50%);
  border-radius: 999px;
  background: linear-gradient(90deg,#8eb9df 0%,#ead08a 30%,#e6dfcc 50%,#df9a72 72%,#637cab 100%);
  opacity: .9;
  pointer-events: none;
}
.environment-slider {
  position: relative;
  z-index: 2;
  width: 100%;
  height: 30px;
  margin: 0;
  appearance: none;
  -webkit-appearance: none;
  background: transparent;
  cursor: pointer;
}
.environment-slider::-webkit-slider-runnable-track {
  height: 3px;
  background: transparent;
}
.environment-slider::-moz-range-track {
  height: 3px;
  background: transparent;
}
.environment-slider::-webkit-slider-thumb {
  width: 20px;
  height: 20px;
  margin-top: -8.5px;
  appearance: none;
  -webkit-appearance: none;
  border: 0;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 2px 10px rgba(0,0,0,.28);
}
.environment-slider::-moz-range-thumb {
  width: 20px;
  height: 20px;
  border: 0;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 2px 10px rgba(0,0,0,.28);
}
@media (max-width: 1500px) {
  .environment-panel {
    left: 48%;
    width: min(780px, calc(100vw - 500px));
    min-width: 660px;
    gap: 12px;
  }
  .environment-button { width: 36px; height: 36px; flex-basis: 36px; }
  .environment-button svg { width: 20px; height: 20px; }
  .environment-time-wrap { grid-template-columns: 58px minmax(160px,1fr); gap: 10px; }
  .environment-time { font-size: 16px; }
}
@media (max-width: 1180px) {
  .environment-panel {
    top: 76px;
    left: 50%;
    width: min(820px, calc(100vw - 40px));
    min-width: 0;
  }
  .master-intro { top: 18%; }
}
@media (max-width: 820px) {
  .environment-panel {
    top: 78px;
    width: calc(100vw - 28px);
    min-height: 56px;
    gap: 8px;
    padding: 7px 10px;
  }
  .environment-group { gap: 4px; }
  .environment-weather { padding-right: 8px; }
  .environment-seasons { padding-left: 8px; }
  .environment-button { width: 31px; height: 31px; flex-basis: 31px; }
  .environment-button svg { width: 18px; height: 18px; }
  .environment-time-wrap { grid-template-columns: 46px minmax(90px,1fr); gap: 8px; }
  .environment-time { font-size: 13px; }
  .environment-slider::-webkit-slider-thumb { width: 16px; height: 16px; margin-top: -6.5px; }
  .environment-slider::-moz-range-thumb { width: 16px; height: 16px; }
}
@media (max-width: 610px) {
  .environment-panel {
    grid-template-columns: auto minmax(110px,1fr) auto;
  }
  .environment-button { width: 28px; height: 28px; flex-basis: 28px; }
  .environment-button svg { width: 16px; height: 16px; }
  .environment-time-wrap { grid-template-columns: 1fr; gap: 1px; }
  .environment-time { font-size: 11px; }
}

/* =========================================================
   DAY / NIGHT THEMING + SEPARATE CONTROLS
========================================================= */
.master-experience {
  --ui-text: #f7f9fb;
  --ui-muted: rgba(255,255,255,.76);
  --ui-border: rgba(255,255,255,.38);
  --ui-panel: rgba(12,24,35,.30);
  --ui-panel-strong: rgba(20,34,46,.55);
  --ui-active: rgba(255,255,255,.14);
  --ui-shadow: rgba(0,0,0,.24);
  color: var(--ui-text);
}

.master-scene-image {
  background-image: url('../gallery/MainProject-Day.jpg');
  background-position: center center;
  background-size: cover;
  filter: none;
  transition: background-image .55s ease, filter .55s ease, transform 1.2s ease;
}

.master-experience.night-mode .master-scene-image {
  background-image: url('../gallery/MainProject-Night.jpg');
  filter: none;
}

.master-experience.day-mode {
  --ui-text: #10202c;
  --ui-muted: rgba(16,32,44,.72);
  --ui-border: rgba(16,32,44,.23);
  --ui-panel: rgba(248,251,252,.58);
  --ui-panel-strong: rgba(244,248,250,.72);
  --ui-active: rgba(16,32,44,.10);
  --ui-shadow: rgba(23,46,62,.18);
}

.master-experience.day-mode .master-scene-shade {
  background:
    linear-gradient(90deg, rgba(240,247,250,.48) 0%, rgba(240,247,250,.12) 39%, rgba(240,247,250,0) 72%),
    linear-gradient(0deg, rgba(15,37,51,.12) 0%, rgba(255,255,255,0) 48%, rgba(255,255,255,.08) 100%);
}

.master-experience.night-mode .master-scene-shade {
  background:
    linear-gradient(90deg,rgba(4,13,21,.62) 0%,rgba(4,13,21,.18) 40%,rgba(4,13,21,.02) 72%),
    linear-gradient(0deg,rgba(3,10,17,.72) 0%,rgba(3,10,17,.04) 47%,rgba(3,10,17,.18) 100%);
}

.master-top-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.view-pill,
.master-home {
  height: 50px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 0 21px;
  color: var(--ui-muted);
  border: 1px solid var(--ui-border);
  border-radius: 999px;
  background: var(--ui-panel);
  backdrop-filter: blur(18px) saturate(115%);
  box-shadow: 0 10px 28px var(--ui-shadow);
  cursor: pointer;
  transition: color .2s ease, background .2s ease, transform .2s ease;
}

.view-pill:hover,
.master-home:hover { transform: translateY(-1px); color: var(--ui-text); }
.view-pill.active { color: var(--ui-text); background: var(--ui-active); }
.view-pill svg,
.master-home svg { width: 21px; height: 21px; }

.master-logo,
.master-intro,
.rotation-arrow,
.building-hotspot,
.master-language,
.master-copyright,
.environment-panel,
.master-dock,
.dock-reveal { color: var(--ui-text); }

.environment-panel,
.master-dock,
.dock-reveal,
.rotation-arrow,
.building-hotspot {
  border-color: var(--ui-border);
  background: var(--ui-panel);
  box-shadow: 0 14px 40px var(--ui-shadow);
}
.master-dock { background: var(--ui-panel-strong); }
.environment-button { color: var(--ui-muted); }
.environment-button.active { color: var(--ui-text); background: var(--ui-active); border-color: var(--ui-border); }
.dock-item { color: var(--ui-muted); border-color: color-mix(in srgb, var(--ui-border) 45%, transparent); }
.dock-item:hover,
.dock-item.active { color: var(--ui-text); background: var(--ui-active); }
.dock-item.active::after { background: var(--ui-text); }
.master-intro .eyebrow,
.master-intro p { color: var(--ui-muted); }
.master-rule { background: var(--ui-text); }
.master-language strong { color: var(--ui-text); border-color: var(--ui-text); }

/* =========================================================
   LOCATION VIEW
========================================================= */
.location-experience .master-scene-image {
  background-image: url('../gallery/MainProject-Day.jpg');
}
.location-experience.night-mode .master-scene-image {
  background-image: url('../gallery/MainProject-Night.jpg');
}
.location-ui {
  position: absolute;
  inset: 118px 4.2% 252px;
  z-index: 7;
  display: grid;
  grid-template-columns: minmax(290px, 390px) minmax(0, 1fr);
  gap: 28px;
  min-height: 0;
}
.location-copy,
.location-map-card {
  border: 1px solid var(--ui-border);
  background: var(--ui-panel-strong);
  backdrop-filter: blur(24px) saturate(115%);
  box-shadow: 0 22px 60px var(--ui-shadow);
}
.location-copy {
  padding: 30px 28px;
  border-radius: 26px;
  overflow: auto;
}
.location-copy .eyebrow { font-size: 12px; letter-spacing: .16em; color: var(--ui-muted); }
.location-copy h1 { margin: 10px 0 0; font-size: clamp(42px,4vw,64px); line-height: .95; letter-spacing: -.045em; font-weight: 500; }
.location-copy p { margin: 0 0 22px; color: var(--ui-muted); line-height: 1.5; }
.location-filters { display: grid; gap: 9px; }
.location-filter {
  width: 100%;
  min-height: 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px 0 18px;
  color: var(--ui-muted);
  border: 1px solid color-mix(in srgb, var(--ui-border) 70%, transparent);
  border-radius: 999px;
  background: color-mix(in srgb, var(--ui-panel) 85%, transparent);
  cursor: pointer;
}
.location-filter i {
  width: 30px; height: 18px; border-radius: 999px;
  background: color-mix(in srgb, var(--ui-muted) 35%, transparent);
  position: relative;
}
.location-filter i::after {
  content: '';
  position: absolute;
  top: 3px; left: 3px;
  width: 12px; height: 12px;
  border-radius: 50%;
  background: var(--ui-text);
  transition: transform .2s ease;
}
.location-filter.active { color: var(--ui-text); border-color: var(--ui-border); }
.location-filter.active i { background: #b88a58; }
.location-filter.active i::after { transform: translateX(12px); }
.location-map-card {
  position: relative;
  overflow: hidden;
  border-radius: 28px;
}
.location-map-card img { width: 100%; height: 100%; display: block; object-fit: cover; filter: saturate(.85) contrast(1.02); }
.location-experience.night-mode .location-map-card img { filter: brightness(.62) saturate(.72) contrast(1.08); }
.map-controls {
  position: absolute;
  top: 18px; right: 18px;
  display: grid;
  gap: 8px;
}
.map-controls button {
  width: 44px; height: 44px;
  border: 1px solid var(--ui-border);
  border-radius: 14px;
  color: var(--ui-text);
  background: var(--ui-panel-strong);
  backdrop-filter: blur(16px);
  cursor: pointer;
}
.location-experience .master-dock { bottom: 54px; }

@media (max-width: 1180px) {
  .master-top-actions { top: 18px; right: 18px; }
  .location-ui { inset: 142px 24px 292px; grid-template-columns: 310px minmax(0,1fr); }
}
@media (max-width: 900px) {
  .view-pill span, .master-home span { display: none; }
  .view-pill, .master-home { width: 48px; padding: 0; }
  .location-ui { inset: 142px 16px 55px; grid-template-columns: 1fr; overflow: auto; }
  .location-copy { max-height: 430px; }
  .location-map-card { min-height: 420px; }
  .location-experience .master-dock { display: none; }
}

/* =========================================================
   LIVE GOOGLE MAP — LOCATION
========================================================= */
.location-map-card {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: var(--ui-panel-strong);
}

.google-map {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  min-height: 320px;
  background: color-mix(in srgb, var(--ui-panel-strong) 88%, #7c8b94 12%);
}

.map-loading {
  position: absolute;
  inset: 0;
  z-index: 5;
  display: none;
  place-content: center;
  justify-items: center;
  gap: 8px;
  padding: 30px;
  text-align: center;
  color: var(--ui-text);
  background: color-mix(in srgb, var(--ui-panel-strong) 90%, transparent);
  backdrop-filter: blur(20px);
}

.map-loading.visible { display: grid; }
.map-loading strong { font-size: clamp(18px, 1.6vw, 26px); }
.map-loading span { max-width: 540px; color: var(--ui-muted); }
.map-loading code {
  padding: 2px 6px;
  border: 1px solid var(--ui-border);
  border-radius: 6px;
  color: var(--ui-text);
  background: var(--ui-active);
}

.map-controls {
  z-index: 7;
}

/* Prevent the previous image prototype from affecting the live map. */
.location-map-card > img { display: none !important; }

@media (max-width: 760px) {
  .google-map { min-height: 420px; }
}

/* ========================================
   LEAFLET / OPENSTREETMAP LOCATION
======================================== */
.leaflet-map { z-index: 1; }
.leaflet-container {
  width: 100%;
  height: 100%;
  background: #dfe5e8;
  font: inherit;
}
.leaflet-control-attribution {
  padding: 3px 8px !important;
  color: rgba(20, 31, 42, .68) !important;
  background: rgba(255,255,255,.78) !important;
  backdrop-filter: blur(10px);
}
.location-experience.night-mode .leaflet-control-attribution {
  color: rgba(255,255,255,.72) !important;
  background: rgba(9,18,27,.74) !important;
}
.map-loading.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}
.forma-map-marker {
  background: transparent;
  border: 0;
}
.forma-map-marker span {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border: 2px solid rgba(255,255,255,.95);
  border-radius: 50%;
  color: #fff;
  background: rgba(23,38,51,.90);
  box-shadow: 0 8px 22px rgba(0,0,0,.25);
  font-size: 11px;
  font-weight: 700;
  backdrop-filter: blur(10px);
}
.forma-map-marker.project-marker span {
  width: 46px;
  height: 46px;
  background: #d71920;
  font-size: 12px;
}
.forma-map-marker.transport span { background: #2377a9; }
.forma-map-marker.parks span { background: #4f7d56; }
.forma-map-marker.restaurants span { background: #9b6049; }
.forma-map-marker.shopping span { background: #7a5a9e; }
.forma-map-marker.schools span { background: #9a7b2f; }
.leaflet-popup-content-wrapper,
.leaflet-popup-tip {
  color: var(--location-text, #15202b);
  background: var(--location-control, rgba(255,255,255,.94));
}


/* FIX: Leaflet tiles must keep their native 256x256 dimensions. */
.location-map-card .leaflet-container img,
.location-map-card .leaflet-tile,
.location-map-card .leaflet-marker-icon,
.location-map-card .leaflet-marker-shadow {
  width: auto !important;
  height: auto !important;
  max-width: none !important;
  max-height: none !important;
  object-fit: initial !important;
  filter: none !important;
}

.location-map-card .leaflet-tile {
  width: 256px !important;
  height: 256px !important;
}

.location-map-card .leaflet-pane,
.location-map-card .leaflet-map-pane,
.location-map-card .leaflet-tile-pane {
  width: auto;
  height: auto;
}


/* =========================================================
   FINAL LEAFLET LAYOUT SAFETY
   Leaflet's own stylesheet must control tile positioning.
========================================================= */
#leafletMap,
#leafletMap.leaflet-container {
  position: absolute !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  min-width: 0 !important;
  min-height: 0 !important;
  overflow: hidden !important;
}

#leafletMap .leaflet-map-pane,
#leafletMap .leaflet-tile-pane,
#leafletMap .leaflet-overlay-pane,
#leafletMap .leaflet-marker-pane,
#leafletMap .leaflet-shadow-pane,
#leafletMap .leaflet-popup-pane {
  position: absolute !important;
  inset: auto !important;
}

#leafletMap .leaflet-tile {
  position: absolute !important;
  width: 256px !important;
  height: 256px !important;
  max-width: none !important;
  max-height: none !important;
  object-fit: initial !important;
}


/* =========================================================
   MASTER BUILDING OPTIONS DOCK
   Main modules and building layers share the same dock space.
========================================================= */
.building-options-dock {
  grid-template-columns: repeat(6, minmax(120px, 1fr));
}

.building-layer {
  position: relative;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 13px;
  padding: 12px 10px;
  color: rgba(255,255,255,.72);
  border: 0;
  border-right: 1px solid rgba(255,255,255,.13);
  background: transparent;
  cursor: pointer;
  transition: color .2s ease, background .2s ease, transform .2s ease;
}

.building-layer:last-child { border-right: 0; }
.building-layer:hover { color: #fff; background: rgba(255,255,255,.05); }
.building-layer.active {
  color: #fff;
  background: rgba(255,255,255,.08);
  border-radius: 20px;
}
.building-layer.active::after {
  content: '';
  position: absolute;
  bottom: 8px;
  width: 34px;
  height: 2px;
  background: currentColor;
}
.building-layer svg { width: 38px; height: 38px; }
.building-layer > span:last-child { font-size: clamp(12px, 1vw, 16px); }

.layer-status {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,.9);
  box-shadow: 0 7px 18px rgba(0,0,0,.22);
}
.layer-status.available { background: #67a66e; }
.layer-status.reserved { background: #d29b4c; }
.layer-status.sold { background: #c85a5a; }

.dock-switch {
  position: absolute;
  left: 0;
  bottom: 86px;
  z-index: 12;
  width: 84px;
  height: 112px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: #fff;
  border: 1px solid rgba(255,255,255,.40);
  border-left: 0;
  border-radius: 0 26px 26px 0;
  background: rgba(20,34,46,.62);
  backdrop-filter: blur(20px) saturate(115%);
  box-shadow: 10px 14px 34px rgba(0,0,0,.18);
  cursor: pointer;
  transform: translateX(-105%);
  opacity: 0;
  transition: transform .45s cubic-bezier(.22,.8,.24,1), opacity .3s ease, background .2s ease;
}
.dock-switch.visible { transform: translateX(0); opacity: 1; }
.dock-switch:hover { background: rgba(255,255,255,.12); }
.dock-switch svg { width: 29px; height: 29px; }
.dock-switch span { font-size: 11px; }
.dock-switch-building-icon { display: none; }
.dock-switch.building-mode .dock-switch-main-icon { display: none; }
.dock-switch.building-mode .dock-switch-building-icon { display: block; }

.master-experience.day-mode .building-layer {
  color: rgba(17,36,50,.68);
  border-right-color: rgba(17,36,50,.12);
}
.master-experience.day-mode .building-layer:hover,
.master-experience.day-mode .building-layer.active {
  color: #102432;
  background: rgba(255,255,255,.32);
}
.master-experience.day-mode .dock-switch {
  color: #102432;
  border-color: rgba(17,36,50,.22);
  background: rgba(245,249,250,.76);
  box-shadow: 10px 14px 34px rgba(30,55,68,.14);
}

@media (max-width: 1100px) {
  .building-options-dock { grid-template-columns: repeat(3, 1fr); }
  .building-layer { min-height: 98px; border-bottom: 1px solid rgba(255,255,255,.13); }
  .dock-switch { bottom: 78px; width: 68px; height: 96px; }
}

@media (max-width: 760px) {
  .building-options-dock { grid-template-columns: repeat(2, 1fr); }
  .building-layer { min-height: 92px; }
  .building-layer svg { width: 31px; height: 31px; }
  .layer-status { width: 29px; height: 29px; }
  .dock-switch { bottom: 72px; width: 58px; height: 88px; border-radius: 0 20px 20px 0; }
  .dock-switch svg { width: 24px; height: 24px; }
}

/* =========================================================
   GALLERY / VIDEOS & RENDERS
========================================================= */
.gallery-body { margin: 0; overflow: hidden; background: #07111a; }
.gallery-page {
  --gallery-text: #f6f8fa;
  --gallery-muted: rgba(255,255,255,.68);
  --gallery-panel: rgba(17,31,44,.72);
  --gallery-panel-strong: rgba(11,23,34,.88);
  --gallery-border: rgba(255,255,255,.22);
  position: relative;
  width: 100vw;
  height: 100svh;
  min-height: 680px;
  overflow: hidden;
  color: var(--gallery-text);
  isolation: isolate;
}
.gallery-page.day-mode {
  --gallery-text: #112432;
  --gallery-muted: rgba(17,36,50,.66);
  --gallery-panel: rgba(244,248,249,.78);
  --gallery-panel-strong: rgba(250,252,252,.90);
  --gallery-border: rgba(17,36,50,.18);
}
.gallery-bg,
.gallery-bg-shade { position: absolute; inset: 0; z-index: -2; }
.gallery-bg { background: url('../gallery/gallery-demo/exterior-night.jpg') center/cover no-repeat; transform: scale(1.02); }
.gallery-page.day-mode .gallery-bg { background-image: url('../gallery/gallery-demo/exterior-day.jpg'); }
.gallery-bg-shade { z-index: -1; background: rgba(5,13,21,.68); }
.gallery-page.day-mode .gallery-bg-shade { background: rgba(237,244,246,.48); }
.gallery-logo { top: 25px; left: 28px; }
.gallery-top-actions {
  position: absolute; top: 22px; right: 30px; z-index: 12;
  display: flex; align-items: center; gap: 10px;
}
.gallery-view-pill,
.gallery-home {
  min-height: 48px; display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 0 21px;
  border: 1px solid var(--gallery-border); border-radius: 999px;
  background: var(--gallery-panel); backdrop-filter: blur(18px); color: var(--gallery-text);
  box-shadow: 0 10px 28px rgba(0,0,0,.12);
}
.gallery-view-pill { cursor: pointer; }
.gallery-view-pill.active { background: var(--gallery-panel-strong); }
.gallery-view-pill svg,
.gallery-home svg { width: 20px; height: 20px; }
.gallery-shell {
  position: absolute; top: 84px; left: 28px; right: 28px; bottom: 142px;
  display: grid; grid-template-columns: 304px minmax(0,1fr); gap: 22px;
}
.gallery-filters {
  min-height: 0; display: flex; flex-direction: column; padding: 26px 22px 18px;
  border: 1px solid var(--gallery-border); border-radius: 24px;
  background: var(--gallery-panel-strong); backdrop-filter: blur(22px) saturate(115%);
  box-shadow: 0 18px 55px rgba(0,0,0,.20);
}
.gallery-title-icon { width: 42px; height: 42px; display:grid; place-items:center; border:1px solid var(--gallery-border); border-radius:12px; }
.gallery-title-icon svg { width: 23px; height: 23px; }
.gallery-filters h1 { margin: 15px 0 0; font-size: 42px; font-weight: 440; letter-spacing: -.04em; }
.gallery-rule { width: 44px; height: 2px; margin: 17px 0 15px; background: currentColor; opacity: .72; }
.gallery-filters > p { margin: 0 0 20px; color: var(--gallery-muted); line-height: 1.45; }
.gallery-filter-list { display: grid; gap: 8px; }
.gallery-filter {
  min-height: 52px; display:flex; align-items:center; justify-content:space-between; gap:12px; padding:0 13px;
  border:1px solid var(--gallery-border); border-radius:15px; color:var(--gallery-text); background:rgba(255,255,255,.025); cursor:pointer;
}
.gallery-filter span { display:flex; align-items:center; gap:12px; }
.gallery-filter svg { width:21px; height:21px; }
.gallery-filter i { width:33px; height:19px; position:relative; border-radius:999px; background:rgba(255,255,255,.18); }
.gallery-filter i::after { content:''; position:absolute; top:3px; left:3px; width:13px; height:13px; border-radius:50%; background:rgba(255,255,255,.72); transition:left .2s ease; }
.gallery-filter.active i { background:#756fe8; }
.gallery-filter.active i::after { left:17px; background:#fff; }
.gallery-page.day-mode .gallery-filter i { background:rgba(17,36,50,.16); }
.gallery-page.day-mode .gallery-filter.active i { background:#6d68d9; }
.gallery-clear {
  margin-top:auto; min-height:50px; display:flex; align-items:center; justify-content:center; gap:10px;
  border:1px solid var(--gallery-border); border-radius:15px; color:var(--gallery-text); background:transparent; cursor:pointer;
}
.gallery-clear svg { width:20px; height:20px; }
.gallery-grid {
  min-width:0; overflow:auto; display:grid; grid-template-columns:repeat(3,minmax(220px,1fr)); grid-auto-rows:minmax(190px,1fr); gap:14px;
  padding: 2px 4px 18px 2px; scrollbar-width:thin;
}
.media-card {
  position:relative; min-height:190px; overflow:hidden; padding:0; border:1px solid var(--gallery-border); border-radius:18px;
  background:#152432; cursor:pointer; box-shadow:0 14px 36px rgba(0,0,0,.18); transition:transform .25s ease, opacity .25s ease;
}
.media-card:hover { transform: translateY(-4px); }
.media-card.hidden { display:none; }
.media-card img { width:100%; height:100%; display:block; object-fit:cover; }
.media-card::after { content:''; position:absolute; inset:48% 0 0; background:linear-gradient(transparent,rgba(4,11,17,.84)); pointer-events:none; }
.media-wide { grid-column: span 1; }
.media-caption { position:absolute; left:16px; right:16px; bottom:14px; z-index:2; display:flex; justify-content:space-between; align-items:end; color:#fff; text-align:left; font-size:14px; }
.media-caption small { color:rgba(255,255,255,.72); }
.media-play { position:absolute; left:50%; top:50%; z-index:3; width:54px; height:54px; display:grid; place-items:center; transform:translate(-50%,-50%); border:1px solid rgba(255,255,255,.8); border-radius:50%; color:#fff; background:rgba(10,21,31,.35); backdrop-filter:blur(10px); }
.media-play svg { width:28px; height:28px; }
.gallery-dock {
  position:absolute; left:7%; right:7%; bottom:24px; z-index:10; min-height:102px;
  display:grid; grid-template-columns: repeat(6, minmax(92px, 1fr)); padding:8px 12px;
  border:1px solid var(--gallery-border); border-radius:23px; background:var(--gallery-panel-strong); backdrop-filter:blur(22px) saturate(115%);
  box-shadow:0 18px 50px rgba(0,0,0,.22);
}
.gallery-dock .dock-item { color:var(--gallery-muted); }
.gallery-dock .dock-item:hover,
.gallery-dock .dock-item.active { color:var(--gallery-text); background:rgba(255,255,255,.08); }
.gallery-page.day-mode .gallery-dock .dock-item:hover,
.gallery-page.day-mode .gallery-dock .dock-item.active { background:rgba(17,36,50,.08); }
.gallery-lightbox {
  width:min(1100px,90vw); max-height:88vh; padding:0; border:1px solid rgba(255,255,255,.26); border-radius:22px;
  overflow:hidden; color:#fff; background:rgba(6,14,22,.96); box-shadow:0 35px 100px rgba(0,0,0,.48);
}
.gallery-lightbox::backdrop { background:rgba(2,7,12,.72); backdrop-filter:blur(8px); }
.gallery-lightbox img { width:100%; max-height:78vh; display:block; object-fit:contain; background:#060d14; }
.gallery-lightbox p { margin:0; padding:14px 18px; }
.lightbox-close { position:absolute; top:12px; right:12px; z-index:2; width:42px; height:42px; border:1px solid rgba(255,255,255,.4); border-radius:50%; color:#fff; background:rgba(8,18,28,.56); font-size:26px; cursor:pointer; }
@media (max-width: 1200px) {
  .gallery-shell { grid-template-columns:260px minmax(0,1fr); }
  .gallery-grid { grid-template-columns:repeat(2,minmax(220px,1fr)); }
  .gallery-dock { left:3%; right:3%; }
}
@media (max-width: 900px) {
  .gallery-body { overflow:auto; }
  .gallery-page { height:auto; min-height:100svh; overflow:visible; padding-bottom:130px; }
  .gallery-shell { position:relative; inset:auto; margin:82px 14px 0; grid-template-columns:1fr; }
  .gallery-filters { max-height:none; }
  .gallery-grid { overflow:visible; grid-template-columns:repeat(2,minmax(150px,1fr)); grid-auto-rows:180px; }
  .gallery-dock { position:fixed; left:10px; right:10px; bottom:10px; overflow-x:auto; grid-template-columns: repeat(6, 120px); min-height:88px; }
}
@media (max-width: 560px) {
  .gallery-logo { left:18px; }
  .gallery-top-actions { right:14px; gap:8px; }
  .gallery-view-pill span, .gallery-home span { display:none; }
  .gallery-view-pill, .gallery-home { width:48px; padding:0; justify-content:center; }
  .gallery-grid { grid-template-columns:1fr; }
}
.master-dock {
  position: fixed;
  left: 5.7%;
  right: 5.7%;
  bottom: 62px;
  z-index: 50;

  height: 166px;
  min-height: 166px;
  max-height: 166px;

  display: grid;
  grid-template-columns: repeat(9, minmax(0, 1fr));
  align-items: stretch;

  padding: 14px 18px;

  border: 1px solid rgba(255, 255, 255, 0.42);
  border-radius: 28px;

  background: rgba(20, 34, 46, 0.53);
  backdrop-filter: blur(24px) saturate(115%);
  box-shadow: 0 20px 65px rgba(0, 0, 0, 0.27);
}

.dock-item {
  position: relative;
  min-width: 0;
  height: 100%;

  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 13px;

  text-align: center;
  color: rgba(255, 255, 255, 0.8);
  border-right: 1px solid rgba(255, 255, 255, 0.13);
}

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

.dock-item svg {
  width: 39px;
  height: 39px;
  flex: 0 0 39px;
}

.dock-item span {
  font-size: clamp(12px, 1vw, 16px);
  line-height: 1.25;
}

.dock-item.active {
  color: #fff;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.1);
}

.dock-item.active::after {
  content: "";
  position: absolute;
  bottom: 8px;
  width: 34px;
  height: 2px;
  background: #fff;
}
/* =========================================================
   FINAL OVERRIDE — CONTENT-SIZED, CENTERED MASTER DOCKS
   Main navigation and building options always size to content.
========================================================= */
@media (min-width: 1101px) {
  .master-dock,
  .building-options-dock {
    left: 50% !important;
    right: auto !important;
    width: max-content !important;
    max-width: calc(100vw - 150px) !important;
    min-width: 0 !important;
    height: 166px !important;
    min-height: 166px !important;
    max-height: 166px !important;
    transform: translateX(-50%) !important;
    display: inline-grid !important;
    grid-auto-flow: column !important;
    grid-auto-columns: minmax(150px, 172px) !important;
    grid-template-columns: none !important;
    align-items: stretch !important;
    justify-content: center !important;
    padding: 14px 18px !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    scrollbar-width: none;
  }

  .master-dock::-webkit-scrollbar,
  .building-options-dock::-webkit-scrollbar {
    display: none;
  }

  .master-dock.hidden,
  .building-options-dock.hidden {
    transform: translateX(calc(-50% - 120vw)) !important;
  }

  .master-dock .dock-item,
  .building-options-dock .building-layer {
    width: 100% !important;
    min-width: 150px !important;
    max-width: 172px !important;
    height: 100% !important;
  }
}

/* Medium screens: keep it centered and allow horizontal scrolling only when needed. */
@media (min-width: 761px) and (max-width: 1100px) {
  .master-dock,
  .building-options-dock {
    left: 50% !important;
    right: auto !important;
    width: max-content !important;
    max-width: calc(100vw - 48px) !important;
    min-width: 0 !important;
    transform: translateX(-50%) !important;
    display: inline-grid !important;
    grid-auto-flow: column !important;
    grid-auto-columns: minmax(126px, 148px) !important;
    grid-template-columns: none !important;
    justify-content: center !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    scrollbar-width: none;
  }

  .master-dock::-webkit-scrollbar,
  .building-options-dock::-webkit-scrollbar {
    display: none;
  }

  .master-dock .dock-item,
  .building-options-dock .building-layer {
    min-width: 126px !important;
    max-width: 148px !important;
  }
}

/* Mobile remains compact, centered and scrollable instead of creating empty columns. */
@media (max-width: 760px) {
  .master-dock,
  .building-options-dock {
    left: 50% !important;
    right: auto !important;
    width: max-content !important;
    max-width: calc(100vw - 28px) !important;
    min-width: 0 !important;
    transform: translateX(-50%) !important;
    display: inline-grid !important;
    grid-auto-flow: column !important;
    grid-auto-columns: 112px !important;
    grid-template-columns: none !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    scrollbar-width: none;
  }

  .master-dock::-webkit-scrollbar,
  .building-options-dock::-webkit-scrollbar {
    display: none;
  }

  .master-dock .dock-item,
  .building-options-dock .building-layer {
    width: 112px !important;
    min-width: 112px !important;
    max-width: 112px !important;
  }
}

/* =========================================================
   UNIFIED MASTER DOCK SIZE
   Keeps the lower Master Project navigation identical in
   Master, Location and Gallery at every responsive breakpoint.
========================================================= */
@media (min-width: 1101px) {
  .gallery-dock {
    position: fixed !important;
    left: 50% !important;
    right: auto !important;
    bottom: 62px !important;
    width: max-content !important;
    max-width: calc(100vw - 150px) !important;
    height: 166px !important;
    min-height: 166px !important;
    max-height: 166px !important;
    transform: translateX(-50%) !important;
    display: inline-grid !important;
    grid-auto-flow: column !important;
    grid-auto-columns: minmax(150px, 172px) !important;
    grid-template-columns: none !important;
    align-items: stretch !important;
    justify-content: center !important;
    padding: 14px 18px !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    scrollbar-width: none;
  }
  .gallery-dock::-webkit-scrollbar { display: none; }
  .gallery-dock .dock-item {
    width: 100% !important;
    min-width: 150px !important;
    max-width: 172px !important;
    height: 100% !important;
  }
}

@media (min-width: 761px) and (max-width: 1100px) {
  .gallery-dock {
    position: fixed !important;
    left: 50% !important;
    right: auto !important;
    bottom: 54px !important;
    width: max-content !important;
    max-width: calc(100vw - 48px) !important;
    height: 166px !important;
    min-height: 166px !important;
    max-height: 166px !important;
    transform: translateX(-50%) !important;
    display: inline-grid !important;
    grid-auto-flow: column !important;
    grid-auto-columns: minmax(126px, 148px) !important;
    grid-template-columns: none !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    scrollbar-width: none;
  }
  .gallery-dock::-webkit-scrollbar { display: none; }
  .gallery-dock .dock-item {
    min-width: 126px !important;
    max-width: 148px !important;
    height: 100% !important;
  }
}

@media (max-width: 760px) {
  .gallery-dock {
    position: fixed !important;
    left: 50% !important;
    right: auto !important;
    bottom: 10px !important;
    width: max-content !important;
    max-width: calc(100vw - 28px) !important;
    height: 92px !important;
    min-height: 92px !important;
    max-height: 92px !important;
    transform: translateX(-50%) !important;
    display: inline-grid !important;
    grid-auto-flow: column !important;
    grid-auto-columns: 112px !important;
    grid-template-columns: none !important;
    padding: 7px 8px !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    scrollbar-width: none;
  }
  .gallery-dock::-webkit-scrollbar { display: none; }
  .gallery-dock .dock-item {
    width: 112px !important;
    min-width: 112px !important;
    max-width: 112px !important;
    height: 100% !important;
  }
}

/* =========================================================
   GALLERY — CLEARANCE ABOVE GLOBAL DOCK
   Keeps the filter panel and media grid aligned, prevents the
   gallery from running beneath the dock, and restores right margin.
========================================================= */
@media (min-width: 901px) {
  .gallery-shell {
    right: 52px;
    bottom: 244px;
  }

  .gallery-filters,
  .gallery-grid {
    height: 100%;
    max-height: 100%;
  }

  .gallery-grid {
    padding-right: 6px;
    padding-bottom: 8px;
  }
}

/* =========================================================
   LOCATION — CENTERED DESKTOP COMPOSITION
   Centers the complete sidebar + map group, keeps symmetric
   page margins and reserves a fixed clearance above the dock.
========================================================= */
@media (min-width: 1181px) {
  .location-ui {
    inset: auto !important;
    top: 74px !important;
    bottom: 238px !important;
    left: 50% !important;
    right: auto !important;
    width: min(1612px, calc(100vw - 128px)) !important;
    max-width: 1612px !important;
    transform: translateX(-50%) !important;
    grid-template-columns: 270px minmax(0, 1fr) !important;
    gap: 18px !important;
  }

  .location-copy,
  .location-map-card {
    height: 100% !important;
    min-height: 0 !important;
  }

  .location-copy {
    padding: 26px 20px !important;
  }

  .location-map-card {
    width: 100% !important;
    justify-self: center !important;
  }
}

@media (min-width: 901px) and (max-width: 1180px) {
  .location-ui {
    inset: auto !important;
    top: 92px !important;
    bottom: 238px !important;
    left: 50% !important;
    right: auto !important;
    width: calc(100vw - 48px) !important;
    transform: translateX(-50%) !important;
    grid-template-columns: 290px minmax(0, 1fr) !important;
    gap: 18px !important;
  }
}

/* =========================================================
   LOCATION — LEFT SIDEBAR + MAP ALIGNED TO MASTER DOCK
   Keeps the information panel anchored to the left while the
   map shares the same centred footprint as the lower navigation.
========================================================= */
@media (min-width: 1181px) {
  .location-ui {
    inset: auto !important;
    top: 74px !important;
    bottom: 238px !important;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    max-width: none !important;
    transform: none !important;
    display: block !important;
    pointer-events: none;
  }

  .location-copy {
    position: absolute !important;
    top: 0 !important;
    bottom: 0 !important;
    left: 4.2% !important;
    width: 270px !important;
    height: auto !important;
    min-height: 0 !important;
    box-sizing: border-box !important;
    overflow-x: hidden !important;
    overflow-y: auto !important;
    pointer-events: auto;
  }

  .location-map-card {
    position: absolute !important;
    top: 0 !important;
    bottom: 0 !important;
    left: 50% !important;
    width: min(1386px, calc(100vw - 150px)) !important;
    height: auto !important;
    min-height: 0 !important;
    transform: translateX(-50%) !important;
    box-sizing: border-box !important;
    pointer-events: auto;
  }
}

/* Avoid overlap between the left panel and the centred map on
   narrower desktop windows while preserving the same composition. */
@media (min-width: 1181px) and (max-width: 1540px) {
  .location-copy {
    left: 28px !important;
    width: 250px !important;
  }

  .location-map-card {
    left: calc(50% + 96px) !important;
    width: calc(100vw - 376px) !important;
  }
}

/* =========================================================
   LOCATION — SLIGHTLY WIDER LEFT INFORMATION PANEL
========================================================= */
@media (min-width: 1541px) {
  .location-copy {
    width: 300px !important;
  }
}

@media (min-width: 1181px) and (max-width: 1540px) {
  .location-copy {
    width: 280px !important;
  }
}

/* =========================================================
   GLOBAL MASTER SHELL — FINAL GEOMETRY
   One fixed lower dock footprint for every master module.
========================================================= */
:root {
  --master-dock-bottom: 54px;
  --master-dock-height: 132px;
  --master-dock-clearance: 206px;
  --master-content-top: 74px;
  --master-sidebar-width: 300px;
  --master-page-gutter: clamp(28px, 4.2vw, 78px);
}
@media (min-width: 1101px) {
  .master-dock,
  .gallery-dock {
    bottom: var(--master-dock-bottom) !important;
    height: var(--master-dock-height) !important;
    min-height: var(--master-dock-height) !important;
    max-height: var(--master-dock-height) !important;
    grid-auto-columns: minmax(132px, 150px) !important;
    padding: 10px 14px !important;
    border-radius: 24px !important;
  }
  .master-dock .dock-item,
  .gallery-dock .dock-item {
    min-width: 132px !important;
    max-width: 150px !important;
    gap: 9px !important;
  }
  .master-dock .dock-item svg,
  .gallery-dock .dock-item svg { width: 31px !important; height: 31px !important; flex-basis: 31px !important; }
  .master-dock .dock-item span,
  .gallery-dock .dock-item span { font-size: 13px !important; }
  .dock-item.active::after { bottom: 5px !important; }
}

/* =========================================================
   BACK OFFICE
========================================================= */
.backoffice-experience .master-scene-image { background-image: url('../gallery/MainProject-Day.jpg'); }
.backoffice-experience.night-mode .master-scene-image { background-image: url('../gallery/MainProject-Night.jpg'); }
.backoffice-ui {
  position: absolute;
  top: var(--master-content-top);
  left: var(--master-page-gutter);
  right: var(--master-page-gutter);
  bottom: var(--master-dock-clearance);
  display: grid;
  grid-template-columns: var(--master-sidebar-width) minmax(0, 1fr);
  gap: 22px;
  z-index: 6;
  min-height: 0;
}
.backoffice-sidebar,
.unit-card {
  border: 1px solid rgba(255,255,255,.28);
  background: rgba(10,25,37,.78);
  backdrop-filter: blur(24px) saturate(120%);
  box-shadow: 0 22px 65px rgba(0,0,0,.28);
}
.backoffice-sidebar {
  border-radius: 24px;
  padding: 25px 20px 20px;
  color: #fff;
  overflow: auto;
}
.backoffice-sidebar h1 { margin: 7px 0 0; font-size: 43px; line-height: 1; letter-spacing: -.045em; font-weight: 540; }
.backoffice-sidebar > p { margin: 15px 0 20px; color: rgba(255,255,255,.7); line-height: 1.45; }
.backoffice-summary { display:grid; grid-template-columns:1fr 1fr; gap:9px; margin-bottom:18px; }
.backoffice-summary div { padding:13px; border:1px solid rgba(255,255,255,.16); border-radius:14px; background:rgba(255,255,255,.05); }
.backoffice-summary strong { display:block; font-size:24px; }
.backoffice-summary span { color:rgba(255,255,255,.58); font-size:11px; }
.unit-filter-group { display:grid; grid-template-columns:1fr 1fr; gap:8px; margin-bottom:15px; }
.unit-filter-group label { display:grid; gap:6px; color:rgba(255,255,255,.62); font-size:11px; text-transform:uppercase; letter-spacing:.08em; }
.unit-filter-group select { min-width:0; width:100%; border:1px solid rgba(255,255,255,.18); border-radius:11px; padding:10px 9px; color:#fff; background:#142735; outline:none; }
.unit-list { display:grid; gap:8px; }
.unit-row { width:100%; display:flex; align-items:center; justify-content:space-between; gap:10px; padding:11px; border:1px solid rgba(255,255,255,.14); border-radius:13px; color:#fff; background:rgba(255,255,255,.025); text-align:left; cursor:pointer; transition:.2s ease; }
.unit-row:hover,.unit-row.active { background:rgba(255,255,255,.11); border-color:rgba(255,255,255,.34); }
.unit-row span { display:grid; gap:3px; }
.unit-row b { font-size:14px; }
.unit-row small { color:rgba(255,255,255,.54); font-size:10px; }
.status,.unit-availability { padding:6px 8px; border-radius:999px; font-style:normal; font-size:9px; font-weight:700; text-transform:uppercase; letter-spacing:.05em; }
.status.available,.unit-availability,.unit-availability.available { color:#d7ffe8; background:rgba(47,173,105,.25); border:1px solid rgba(83,211,137,.48); }
.status.reserved,.unit-availability.reserved { color:#fff0c9; background:rgba(201,142,43,.24); border:1px solid rgba(229,177,84,.46); }
.status.sold,.unit-availability.sold { color:#ffd9dc; background:rgba(183,59,69,.24); border:1px solid rgba(225,92,103,.45); }
.unit-card { position:relative; min-width:0; min-height:0; border-radius:26px; color:#10212d; background:rgba(247,249,249,.91); overflow:hidden; }
.unit-card-header { height:92px; display:flex; align-items:center; justify-content:space-between; gap:20px; padding:0 30px; border-bottom:1px solid rgba(17,36,50,.13); }
.unit-kicker { color:#6d7a82; font-size:11px; letter-spacing:.1em; }
.unit-card h2 { margin:5px 0 0; font-size:31px; letter-spacing:-.035em; }
.unit-card-actions { display:flex; align-items:center; gap:14px; }
.unit-card-actions > button { width:37px; height:37px; border:1px solid rgba(17,36,50,.22); border-radius:50%; background:transparent; font-size:25px; cursor:pointer; }
.unit-card-body { height:calc(100% - 92px); display:grid; grid-template-columns:minmax(300px,.78fr) minmax(400px,1.22fr); min-height:0; }
.unit-data { padding:26px 30px 24px; overflow:auto; border-right:1px solid rgba(17,36,50,.12); }
.unit-metrics { display:grid; grid-template-columns:repeat(2,1fr); gap:10px; }
.unit-metrics div { padding:14px; border-radius:14px; background:rgba(12,34,49,.06); }
.unit-metrics span,.unit-price span { display:block; color:#77848c; font-size:11px; text-transform:uppercase; letter-spacing:.06em; }
.unit-metrics strong { display:block; margin-top:5px; font-size:20px; }
.unit-specs { margin:18px 0; }
.unit-specs div { display:flex; justify-content:space-between; gap:15px; padding:9px 2px; border-bottom:1px solid rgba(17,36,50,.11); }
.unit-specs dt { color:#5f6c74; }
.unit-specs dd { margin:0; font-weight:700; }
.unit-price { display:flex; align-items:end; justify-content:space-between; gap:20px; padding:15px 0 18px; }
.unit-price strong { font-size:25px; }
.unit-actions { display:flex; flex-wrap:wrap; gap:8px; }
.unit-actions button { display:inline-flex; align-items:center; gap:8px; padding:11px 13px; border:1px solid rgba(17,36,50,.16); border-radius:12px; color:#18303f; background:#fff; cursor:pointer; }
.unit-actions button.primary { color:#fff; background:#142b3a; }
.unit-actions svg { width:18px; height:18px; fill:none; stroke:currentColor; stroke-width:1.7; }
.floorplan-panel { min-width:0; display:flex; flex-direction:column; padding:25px 28px 22px; background:rgba(255,255,255,.52); }
.floorplan-heading { display:flex; justify-content:space-between; align-items:center; margin-bottom:10px; }
.floorplan-heading span { font-size:20px; font-weight:700; }
.floorplan-heading small { color:#6e7a81; }
.floorplan-panel img { width:100%; height:100%; min-height:0; object-fit:contain; border-radius:17px; background:#f4f5f3; }
.unit-arrow { position:absolute; top:50%; width:48px; height:48px; display:grid; place-items:center; border:1px solid rgba(255,255,255,.72); border-radius:50%; color:#fff; background:rgba(39,113,119,.86); box-shadow:0 8px 24px rgba(0,0,0,.22); cursor:pointer; transform:translateY(-50%); }
.unit-arrow.previous { left:-67px; }
.unit-arrow.next { right:18px; }
.unit-arrow svg { width:25px; height:25px; fill:none; stroke:currentColor; stroke-width:1.8; }

@media (min-width: 1181px) and (max-width: 1540px) {
  :root { --master-sidebar-width: 280px; --master-page-gutter: 28px; }
  .backoffice-ui { right:28px; }
  .unit-card-body { grid-template-columns:minmax(285px,.72fr) minmax(380px,1.28fr); }
  .unit-card-header { padding-inline:24px; }
  .unit-data { padding:22px 24px; }
}
@media (max-width: 1180px) {
  .backoffice-ui { top:92px; left:24px; right:24px; bottom:238px; grid-template-columns:260px minmax(0,1fr); }
  .unit-card-body { grid-template-columns:1fr; overflow:auto; }
  .unit-data { border-right:0; border-bottom:1px solid rgba(17,36,50,.12); }
  .floorplan-panel { min-height:380px; }
}
@media (max-width: 760px) {
  .backoffice-experience { min-height:100svh; height:auto; overflow:auto; padding-bottom:125px; }
  .backoffice-ui { position:relative; inset:auto; margin:85px 14px 0; grid-template-columns:1fr; }
  .backoffice-sidebar { max-height:none; }
  .unit-card { min-height:760px; }
  .unit-card-header { height:auto; padding:20px; align-items:flex-start; }
  .unit-card-body { height:auto; }
  .floorplan-panel { min-height:330px; }
  .unit-arrow { display:none; }
}

/* =========================================================
   GLOBAL MASTER DOCK — SINGLE FIXED GEOMETRY ON ALL DESKTOP PAGES
   This final override intentionally normalises every lower module menu.
========================================================= */
@media (min-width: 1181px) {
  :root {
    --forma4d-dock-width: 810px;
    --forma4d-dock-height: 118px;
    --forma4d-dock-bottom: 48px;
  }

  .master-dock,
  .gallery-dock,
  .location-experience .master-dock,
  .backoffice-experience .master-dock,
  .tour-shell .master-dock {
    position: fixed !important;
    left: 50% !important;
    right: auto !important;
    bottom: var(--forma4d-dock-bottom) !important;
    width: min(var(--forma4d-dock-width), calc(100vw - 48px)) !important;
    height: var(--forma4d-dock-height) !important;
    min-height: var(--forma4d-dock-height) !important;
    max-height: var(--forma4d-dock-height) !important;
    padding: 8px 10px !important;
    grid-template-columns: repeat(6, minmax(0, 1fr)) !important;
    gap: 0 !important;
    overflow: hidden !important;
    transform: translateX(-50%) !important;
    border-radius: 22px !important;
    box-sizing: border-box !important;
    z-index: 100 !important;
  }

  .master-dock .dock-item,
  .gallery-dock .dock-item {
    width: auto !important;
    min-width: 0 !important;
    min-height: 0 !important;
    height: 100% !important;
    padding: 8px 5px 10px !important;
    gap: 7px !important;
    box-sizing: border-box !important;
  }

  .master-dock .dock-item svg,
  .gallery-dock .dock-item svg {
    width: 27px !important;
    height: 27px !important;
    flex: 0 0 27px !important;
  }

  .master-dock .dock-item span,
  .gallery-dock .dock-item span {
    font-size: 12px !important;
    line-height: 1.15 !important;
  }

  .master-dock .dock-item.active::after,
  .gallery-dock .dock-item.active::after {
    bottom: 4px !important;
    width: 28px !important;
  }
}

/* =========================================================
   FINAL MASTER CONTENT FRAME — REFERENCE PROPORTIONS
   The complete module composition follows one viewport-based frame:
   aligned logo, sidebar, 3x3 content area and shared lower dock.
========================================================= */
@media (min-width: 1181px) {
  :root {
    --forma4d-frame-left: 9.5vw;
    --forma4d-frame-right: 13.5vw;
    --forma4d-frame-top: 11vh;
    --forma4d-frame-bottom: 16.3vh;
    --forma4d-sidebar-width: 15vw;
    --forma4d-frame-gap: 1.2vw;
    --forma4d-module-dock-width: 31.5vw;
    --forma4d-module-dock-height: 9.2vh;
    --forma4d-module-dock-bottom: 5.3vh;
  }

  /* The brand belongs to the same visual frame as the module content. */
  .gallery-logo,
  .location-experience .master-logo,
  .backoffice-experience .master-logo {
    top: 7.2vh !important;
    left: var(--forma4d-frame-left) !important;
  }

  /* Shared outer geometry: Gallery, Location and Back Office. */
  .gallery-shell,
  .location-ui,
  .backoffice-ui {
    position: absolute !important;
    inset: auto !important;
    top: var(--forma4d-frame-top) !important;
    right: var(--forma4d-frame-right) !important;
    bottom: var(--forma4d-frame-bottom) !important;
    left: var(--forma4d-frame-left) !important;
    width: auto !important;
    max-width: none !important;
    height: auto !important;
    min-height: 0 !important;
    transform: none !important;
    display: grid !important;
    grid-template-columns: var(--forma4d-sidebar-width) minmax(0, 1fr) !important;
    gap: var(--forma4d-frame-gap) !important;
    align-items: stretch !important;
    box-sizing: border-box !important;
    z-index: 6 !important;
  }

  .gallery-filters,
  .gallery-grid,
  .location-copy,
  .location-map-card,
  .backoffice-sidebar,
  .unit-card {
    width: auto !important;
    height: 100% !important;
    min-width: 0 !important;
    min-height: 0 !important;
    max-width: none !important;
    max-height: none !important;
    box-sizing: border-box !important;
  }

  /* Consistent left panel proportions. */
  .gallery-filters,
  .location-copy,
  .backoffice-sidebar {
    position: relative !important;
    inset: auto !important;
    padding: 2.2vh 1.05vw 1.45vh !important;
    border-radius: 22px !important;
    overflow-x: hidden !important;
    overflow-y: auto !important;
    transform: none !important;
    pointer-events: auto !important;
  }

  .gallery-title-icon {
    width: 2.15vw !important;
    height: 2.15vw !important;
    min-width: 30px !important;
    min-height: 30px !important;
  }

  .gallery-filters h1,
  .location-copy h1,
  .backoffice-sidebar h1 {
    margin-top: 1.25vh !important;
    font-size: 2vw !important;
    line-height: .98 !important;
  }

  .gallery-rule,
  .master-rule {
    margin-top: 1.45vh !important;
    margin-bottom: 1.35vh !important;
  }

  .gallery-filters > p,
  .location-copy > p,
  .backoffice-sidebar > p {
    margin-bottom: 1.7vh !important;
    font-size: .82vw !important;
    line-height: 1.42 !important;
  }

  .gallery-filter-list,
  .location-filters,
  .unit-list {
    gap: .72vh !important;
  }

  .gallery-filter,
  .location-filter {
    min-height: 4.35vh !important;
    padding-inline: .8vw !important;
    border-radius: 14px !important;
  }

  .gallery-filter span,
  .location-filter span {
    font-size: .8vw !important;
  }

  .gallery-clear {
    margin-top: auto !important;
    min-height: 4.7vh !important;
    border-radius: 14px !important;
  }

  /* The reference uses a strict 3 × 3 matrix. */
  .gallery-grid {
    overflow: hidden !important;
    padding: 0 !important;
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    grid-template-rows: repeat(3, minmax(0, 1fr)) !important;
    grid-auto-rows: unset !important;
    gap: clamp(10px, .75vw, 14px) !important;
    align-content: stretch !important;
  }

  .media-card {
    min-height: 0 !important;
    height: 100% !important;
    border-radius: 17px !important;
  }

  /* Undo earlier absolute map rules and let Location use the same grid. */
  .location-copy,
  .location-map-card {
    position: relative !important;
    inset: auto !important;
    top: auto !important;
    right: auto !important;
    bottom: auto !important;
    left: auto !important;
    transform: none !important;
    pointer-events: auto !important;
  }

  .location-map-card {
    justify-self: stretch !important;
    overflow: hidden !important;
    border-radius: 22px !important;
  }

  .unit-card {
    border-radius: 22px !important;
  }

  .unit-card-header {
    height: 8.5vh !important;
    padding: 0 1.45vw !important;
  }

  .unit-card-body {
    height: calc(100% - 8.5vh) !important;
  }

  /* One identical dock size everywhere. Full-screen modules remain centred;
     framed modules sit beneath the main content area, as in the reference. */
  .master-dock,
  .gallery-dock,
  .location-experience .master-dock,
  .backoffice-experience .master-dock,
  .tour-shell .master-dock {
    position: fixed !important;
    right: auto !important;
    bottom: var(--forma4d-module-dock-bottom) !important;
    width: var(--forma4d-module-dock-width) !important;
    max-width: none !important;
    height: var(--forma4d-module-dock-height) !important;
    min-height: var(--forma4d-module-dock-height) !important;
    max-height: var(--forma4d-module-dock-height) !important;
    padding: .7vh .65vw !important;
    grid-template-columns: repeat(6, minmax(0, 1fr)) !important;
    grid-auto-columns: unset !important;
    gap: 0 !important;
    overflow: hidden !important;
    border-radius: 22px !important;
    box-sizing: border-box !important;
    z-index: 100 !important;
  }

  .master-dock,
  .tour-shell .master-dock {
    left: 50vw !important;
    transform: translateX(-50%) !important;
  }

  .gallery-dock,
  .location-experience .master-dock,
  .backoffice-experience .master-dock {
    left: 54.5vw !important;
    transform: translateX(-50%) !important;
  }

  .master-dock .dock-item,
  .gallery-dock .dock-item {
    width: auto !important;
    min-width: 0 !important;
    max-width: none !important;
    height: 100% !important;
    min-height: 0 !important;
    padding: .55vh .3vw .8vh !important;
    gap: .65vh !important;
    box-sizing: border-box !important;
  }

  .master-dock .dock-item svg,
  .gallery-dock .dock-item svg {
    width: 1.65vw !important;
    height: 1.65vw !important;
    flex: 0 0 1.65vw !important;
  }

  .master-dock .dock-item span,
  .gallery-dock .dock-item span {
    font-size: .7vw !important;
    line-height: 1.12 !important;
  }
}

@media (min-width: 901px) and (max-width: 1180px) {
  .gallery-shell,
  .location-ui,
  .backoffice-ui {
    top: 10vh !important;
    right: 3vw !important;
    bottom: 18vh !important;
    left: 3vw !important;
    width: auto !important;
    transform: none !important;
    grid-template-columns: 24vw minmax(0, 1fr) !important;
    gap: 1.5vw !important;
  }
}


/* =========================================================
   HOME / SOLUTIONS — CLEAN CENTERED LANDING
   No sidebar. The central composition is the only content frame.
========================================================= */
.home-clean-body {
  min-height: 100vh;
  overflow-x: hidden;
  background: #07111a;
}

.home-main {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
  isolation: isolate;
}

.home-main .hero-background,
.home-main .hero-overlay {
  position: fixed;
  inset: 0;
}

.home-main .hero-background {
  z-index: -2;
  background: url('../gallery/solutions-hero.jpg') center center / cover no-repeat;
  transform: scale(1.01);
}

.home-main .hero-overlay {
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(4,15,22,.74) 0%, rgba(4,15,22,.28) 28%, rgba(4,15,22,.12) 72%, rgba(4,15,22,.35) 100%),
    linear-gradient(0deg, rgba(3,12,19,.96) 0%, rgba(3,12,19,.28) 36%, rgba(3,12,19,.08) 100%);
}

.home-content {
  width: min(calc(100% - 80px), 1120px);
  min-height: 100vh;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  padding: 76px 0 22px;
}

.home-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 42px;
}

.home-header .section-heading h1 {
  font-size: clamp(46px, 4.2vw, 62px);
  line-height: .94;
  font-weight: 620;
}

.home-header .heading-rule {
  width: 36px;
  margin: 18px 0 13px;
}

.home-header .section-heading p {
  font-size: 15px;
  line-height: 1.35;
  color: rgba(255,255,255,.74);
}

.home-brand-block {
  min-width: 148px;
  padding-top: 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.home-brand {
  display: inline-flex;
  align-items: baseline;
  font-size: 36px;
  line-height: 1;
  font-weight: 700;
  letter-spacing: -.055em;
  color: #fff;
}

.home-brand strong {
  margin-left: 1px;
  color: #ef3340;
  font-size: 1em;
  font-weight: 700;
  letter-spacing: -.055em;
}

.home-languages {
  margin: 0;
  gap: 9px;
}

.home-languages span {
  width: 1px;
  height: 15px;
  background: rgba(255,255,255,.42);
}

.home-languages button {
  padding: 0;
  color: rgba(255,255,255,.72);
  font-size: 15px;
  line-height: 1;
}

.home-languages button.active {
  color: #fff;
  border-bottom-color: transparent;
}

.home-content .solutions-grid {
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
  margin-top: 30px;
}

.home-content .solution-card {
  min-height: 176px;
  padding: 22px 18px 16px;
  border-radius: 12px;
}

.home-content .solution-card > svg {
  width: 33px;
  height: 33px;
  margin-bottom: 20px;
}

.home-content .solution-card h2 {
  margin-bottom: 5px;
  font-size: 17px;
  line-height: 1.08;
}

.home-content .solution-card p {
  font-size: 11px;
}

.home-content .card-arrow {
  width: 32px;
  height: 32px;
  margin-top: auto;
}

.home-content .card-arrow svg {
  width: 14px;
  height: 14px;
}

.home-content .master-entry-wrap {
  display: flex;
  justify-content: center;
  margin-top: 30px;
}

.home-content .master-entry {
  width: 390px;
  min-height: 50px;
  grid-template-columns: auto 1fr auto;
  padding: 4px 6px 4px 14px;
  border-radius: 999px;
}

.home-content .master-entry-kicker {
  font-size: 8px;
}

.home-content .master-entry strong {
  font-size: 13px;
}

.home-content .master-entry-arrow {
  width: 34px;
  height: 34px;
}

.home-content .featured {
  width: 100%;
  margin-top: auto;
  padding-top: 32px;
}

.home-content .featured-header {
  margin-bottom: 8px;
}

.home-content .featured-header h2 {
  font-size: 13px;
}

.home-content .carousel-controls {
  gap: 7px;
}

.home-content .carousel-btn {
  width: 24px;
  height: 24px;
}

.home-content .carousel-btn svg {
  width: 13px;
  height: 13px;
}

.home-content .projects-carousel {
  grid-auto-columns: calc((100% - 50px) / 6);
  gap: 10px;
  padding: 0;
  overflow-x: auto;
}

.home-content .project-card {
  min-height: 104px;
  border-radius: 7px;
}

.home-content .project-card span {
  left: 9px;
  bottom: 7px;
  font-size: 9px;
}

.home-content .project-card.selected {
  outline-width: 2px;
}

@media (max-width: 1100px) {
  .home-content {
    width: min(calc(100% - 56px), 1040px);
  }
  .home-content .solutions-grid {
    grid-template-columns: repeat(5, minmax(130px, 1fr));
  }
}

@media (max-width: 820px) {
  .home-content {
    width: min(calc(100% - 36px), 680px);
    padding-top: 34px;
  }
  .home-header {
    gap: 24px;
  }
  .home-content .solutions-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .home-content .solution-card {
    min-height: 170px;
  }
  .home-content .projects-carousel {
    grid-auto-columns: minmax(150px, 42%);
  }
}

@media (max-width: 520px) {
  .home-content {
    width: calc(100% - 28px);
  }
  .home-header {
    align-items: flex-start;
  }
  .home-header .section-heading h1 {
    font-size: 39px;
  }
 .home-brand-block {
    min-width: 96px;
  }
  .home-brand {
    font-size: 22px;
  }
  .home-content .solutions-grid {
    grid-template-columns: 1fr;
  }
  .home-content .master-entry {
    width: 100%;
  }
}



/* GLOBAL EXPERIENCE — AXIS ALIGNMENT
   Logo, environment controls and Day/Night/Home share one horizontal axis.
   Language and copyright share one footer axis. */
@media (min-width: 761px) {
  .master-experience:not(.location-experience):not(.backoffice-experience) {
    --global-header-axis-y: 49px;
    --global-footer-axis-bottom: 25px;
  }

  .master-experience:not(.location-experience):not(.backoffice-experience) .master-logo,
  .master-experience:not(.location-experience):not(.backoffice-experience) .master-top-actions {
    top: var(--global-header-axis-y) !important;
    transform: translateY(-50%) !important;
  }

  .master-experience:not(.location-experience):not(.backoffice-experience) .master-language,
  .master-experience:not(.location-experience):not(.backoffice-experience) .master-copyright {
    bottom: var(--global-footer-axis-bottom) !important;
    transform: translateY(50%) !important;
  }

  .master-experience:not(.location-experience):not(.backoffice-experience) .master-copyright {
    display: flex;
    align-items: center;
    min-height: 24px;
  }
}



/* GLOBAL EXPERIENCE — INTERACTIVE BUILDING MENU SWAP
   Same dock geometry at all times. Interactive Building remains in slot 1;
   the remaining main-menu items are replaced by the building controls. */
@media (min-width: 761px) {
  #masterExperience #masterDock,
  #masterExperience #buildingOptionsDock {
    position: fixed !important;
    left: 50% !important;
    right: auto !important;
    bottom: var(--forma4d-dock-bottom, 48px) !important;
    width: min(var(--forma4d-dock-width, 810px), calc(100vw - 48px)) !important;
    height: var(--forma4d-dock-height, 118px) !important;
    min-height: var(--forma4d-dock-height, 118px) !important;
    max-height: var(--forma4d-dock-height, 118px) !important;
    transform: translateX(-50%) !important;
    padding: 8px 10px !important;
    box-sizing: border-box !important;
    border: 1px solid rgba(255,255,255,.42) !important;
    border-radius: 22px !important;
    background: rgba(11,23,34,.88) !important;
    backdrop-filter: blur(24px) saturate(115%) !important;
    box-shadow: 0 20px 65px rgba(0,0,0,.27) !important;
    overflow: hidden !important;
  }

  #masterExperience #masterDock {
    z-index: 100 !important;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transition: opacity .22s ease, visibility 0s linear 0s !important;
  }

  #masterExperience #masterDock.menu-swapped-out {
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
    transition: opacity .18s ease, visibility 0s linear .18s !important;
  }

  #masterExperience #buildingOptionsDock {
    z-index: 101 !important;
    display: grid !important;
    grid-template-columns: 1fr repeat(5, 1.4fr) !important;
    gap: 0 !important;
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
    transition: opacity .22s ease, visibility 0s linear 0s !important;
  }

  #masterExperience #buildingOptionsDock.hidden {
    display: grid !important;
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
    transform: translateX(-50%) !important;
    transition: opacity .18s ease, visibility 0s linear .18s !important;
  }

  #masterExperience #buildingOptionsDock .dock-item,
  #masterExperience #buildingOptionsDock .building-layer {
    min-width: 0 !important;
    width: 100% !important;
    max-width: none !important;
    height: 100% !important;
    min-height: 0 !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    gap: .65vh !important;
    padding: .55vh .3vw .8vh !important;
    box-sizing: border-box !important;
    border: 0 !important;
    border-right: 1px solid rgba(255,255,255,.13) !important;
    border-radius: 0 !important;
    color: rgba(255,255,255,.80) !important;
    background: transparent !important;
    font: inherit !important;
    cursor: pointer !important;
  }

  #masterExperience #buildingOptionsDock > :last-child {
    border-right: 0 !important;
  }

  #masterExperience #buildingOptionsDock .dock-item.active,
  #masterExperience #buildingOptionsDock .building-layer:hover,
  #masterExperience #buildingOptionsDock .building-layer.active {
    color: #fff !important;
    background: rgba(255,255,255,.10) !important;
    border-radius: 16px !important;
  }

  /* Exact same icon footprint as the frozen Main Menu. */
  #masterExperience #buildingOptionsDock .dock-item svg,
  #masterExperience #buildingOptionsDock .building-layer svg,
  #masterExperience #buildingOptionsDock .layer-status {
    width: 1.65vw !important;
    height: 1.65vw !important;
    flex: 0 0 1.65vw !important;
  }

  #masterExperience #buildingOptionsDock .layer-status {
    display: block !important;
    border-radius: 50% !important;
    box-sizing: border-box !important;
    border: 2px solid rgba(255,255,255,.82) !important;
  }

  #masterExperience #buildingOptionsDock .layer-status.available { background: #62b97a !important; }
  #masterExperience #buildingOptionsDock .layer-status.reserved { background: #d7a04f !important; }
  #masterExperience #buildingOptionsDock .layer-status.sold { background: #cc5a5f !important; }

  #masterExperience #buildingOptionsDock .dock-item span,
  #masterExperience #buildingOptionsDock .building-layer > span:last-child {
    font-size: .7vw !important;
    line-height: 1.12 !important;
    text-align: center !important;
  }

  #masterExperience #buildingOptionsDock .dock-item.active::after {
    content: "";
    position: absolute;
    bottom: 5px;
    width: 34px;
    height: 2px;
    background: #fff;
  }
}




/* HOME — MASTER SOLUTION ENTRY FINAL SIZE
   Gives the Global Experience entry stronger hierarchy without moving
   any other element of the locked Home composition. */
@media (min-width: 761px) {
  .home-content .master-entry-wrap {
    margin-top: 30px !important;
  }

  .home-content .master-entry {
    width: 520px !important;
    min-width: 520px !important;
    min-height: 62px !important;
    grid-template-columns: 124px minmax(0, 1fr) 44px !important;
    gap: 16px !important;
    padding: 7px 8px 7px 20px !important;
    border-radius: 999px !important;
    box-sizing: border-box !important;
  }

  .home-content .master-entry-kicker {
    font-size: 10px !important;
    font-weight: 600 !important;
    letter-spacing: .14em !important;
    white-space: nowrap !important;
  }

  .home-content .master-entry strong {
    font-size: 15px !important;
    line-height: 1.15 !important;
    font-weight: 650 !important;
    white-space: nowrap !important;
  }

  .home-content .master-entry-arrow {
    width: 44px !important;
    height: 44px !important;
    min-width: 44px !important;
    min-height: 44px !important;
  }

  .home-content .master-entry-arrow svg {
    width: 19px !important;
    height: 19px !important;
  }
}


/* HOME — GLOBAL EXPERIENCE ENTRY, FINAL */
@media (min-width: 761px) {
  .home-content .master-entry {
    grid-template-columns: 44px minmax(0, 1fr) 44px !important;
    gap: 10px !important;
    padding: 7px 8px !important;
    border-color: rgba(255,255,255,.34) !important;
    background: rgba(18,34,46,.78) !important;
    box-shadow: 0 14px 36px rgba(0,0,0,.24) !important;
  }

  .home-content .master-entry::before {
    content: '';
    width: 44px;
    height: 44px;
  }

  .home-content .master-entry strong {
    font-size: 19px !important;
    line-height: 1.1 !important;
    font-weight: 700 !important;
    text-align: center !important;
    letter-spacing: -.015em !important;
  }
}



/* FORMA4D — UNIVERSAL DOCK AXIS LOCK
   Absolute rule: the Main Menu never shifts between pages. */
@media (min-width: 901px) {
  :root {
    --forma4d-global-dock-width: 810px;
    --forma4d-global-dock-height: 118px;
    --forma4d-global-dock-bottom: 48px;
  }

  .master-dock,
  .gallery-dock,
  .location-experience .master-dock,
  .backoffice-experience .master-dock,
  .tour-shell .master-dock {
    position: fixed !important;
    left: 50vw !important;
    right: auto !important;
    bottom: var(--forma4d-global-dock-bottom) !important;
    width: min(var(--forma4d-global-dock-width), calc(100vw - 48px)) !important;
    height: var(--forma4d-global-dock-height) !important;
    min-height: var(--forma4d-global-dock-height) !important;
    max-height: var(--forma4d-global-dock-height) !important;
    transform: translateX(-50%) !important;
    grid-template-columns: repeat(6, minmax(0, 1fr)) !important;
    padding: 8px 10px !important;
    gap: 0 !important;
    border-radius: 22px !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
    z-index: 100 !important;
  }

  .master-dock .dock-item,
  .gallery-dock .dock-item {
    width: auto !important;
    min-width: 0 !important;
    height: 100% !important;
    min-height: 0 !important;
    padding: 8px 5px 10px !important;
    gap: 7px !important;
    box-sizing: border-box !important;
  }

  .master-dock .dock-item svg,
  .gallery-dock .dock-item svg {
    width: 27px !important;
    height: 27px !important;
    flex: 0 0 27px !important;
  }

  .master-dock .dock-item span,
  .gallery-dock .dock-item span {
    font-size: 12px !important;
    line-height: 1.15 !important;
  }
}

/* =========================================================
   FORMA4D — DOCK VISUAL SCALE LOCK
   Final rule: same button width, icon footprint and typography in
   Main Menu and Interactive Building submenu. Never compress slot 1.
========================================================= */
@media (min-width: 901px) {
  .master-dock,
  .gallery-dock,
  .location-experience .master-dock,
  .backoffice-experience .master-dock,
  .tour-shell .master-dock,
  #masterExperience #masterDock,
  #masterExperience #buildingOptionsDock {
    grid-template-columns: repeat(6, minmax(0, 1fr)) !important;
  }

  .master-dock .dock-item,
  .gallery-dock .dock-item,
  #masterExperience #buildingOptionsDock .dock-item,
  #masterExperience #buildingOptionsDock .building-layer {
    width: 100% !important;
    min-width: 0 !important;
    max-width: none !important;
    height: 100% !important;
    min-height: 0 !important;
    padding: 8px 6px 10px !important;
    gap: 9px !important;
    box-sizing: border-box !important;
    flex: none !important;
  }

  .master-dock .dock-item svg,
  .gallery-dock .dock-item svg,
  #masterExperience #buildingOptionsDock .dock-item svg,
  #masterExperience #buildingOptionsDock .building-layer svg,
  #masterExperience #buildingOptionsDock .layer-status {
    width: 38px !important;
    height: 38px !important;
    min-width: 38px !important;
    min-height: 38px !important;
    max-width: 38px !important;
    max-height: 38px !important;
    flex: 0 0 38px !important;
    aspect-ratio: 1 / 1 !important;
  }

  #masterExperience #buildingOptionsDock .layer-status {
    border-radius: 50% !important;
  }

  .master-dock .dock-item span,
  .gallery-dock .dock-item span,
  #masterExperience #buildingOptionsDock .dock-item span,
  #masterExperience #buildingOptionsDock .building-layer > span:last-child {
    font-size: 15px !important;
    line-height: 1.12 !important;
    font-weight: 500 !important;
    text-align: center !important;
  }

  .master-dock .dock-item.active::after,
  .gallery-dock .dock-item.active::after,
  #masterExperience #buildingOptionsDock .dock-item.active::after {
    width: 34px !important;
    bottom: 4px !important;
  }
}
