/* ============================================================
   Sun Motor — new tour UI overlay (ported from vtour/ui/tour-ui.css)
   Sits on top of the existing krpano viewer (#krpanoDIV). Activated by
   body.properview-newui so it can be rolled back with a single class flip.
   The legacy chrome stays in the DOM (handlers keep working) but is
   hidden; the new controls proxy to it.
   ============================================================ */

:root {
  /* atlasgo.id palette */
  --ui-accent: #1A9B94;
  --ui-accent-2: #28A878;
  --ui-accent-bright: #3DD6C8;
  --ui-on-accent: #ffffff;
  --ui-panel: rgba(12, 18, 24, 0.82);
  --ui-panel-solid: rgba(7, 12, 16, 0.96);
  --ui-border: rgba(255, 255, 255, 0.06);
  --ui-border-b: rgba(26, 155, 148, 0.25);
  --ui-text: #E8ECF0;
  --ui-text-dim: rgba(232, 236, 240, 0.62);
  --ui-shadow: 0 8px 28px rgba(0, 0, 0, 0.45);
  --ui-radius: 16px;
  --ui-font: "Helvetica Neue", Arial, Helvetica, sans-serif;
  --nav-width: 300px;
}

/* ---- hide the legacy launcher chrome when the new UI is on (handlers still run) ---- */
body.properview-newui .dataPlus,
body.properview-newui .header-right,
body.properview-newui #menu,
body.properview-newui .cover-home,
body.properview-newui .cover-hand,
body.properview-newui .dataListMsg,
body.properview-newui .menu-barmonile { display: none !important; }

/* legacy panels we KEEP showing (contact/schedule/messages/history/login) must
   float above the new overlay when triggered. The backdrop must sit BELOW the
   modal content (otherwise it covers the inputs). */
body.properview-newui .modal-backdrop.active { z-index: 99990 !important; }
body.properview-newui .modal-login.active,
body.properview-newui .modal-scheduleVisit.active,
body.properview-newui .dataList.active,
body.properview-newui .dataListMsg.active,
body.properview-newui .dataListHistory.active,
body.properview-newui .menuLeft { z-index: 100000 !important; }
body.properview-newui .menuLeft {
    position: fixed !important;
    top: 18px !important;
    right: 18px !important;
    bottom: 18px !important;
    left: auto !important;
    margin-left: 0 !important;
    width: 380px !important;
    max-width: calc(100vw - 36px) !important;
    background: var(--ui-panel-solid) !important;
    border: 1px solid var(--ui-border-b) !important;
    border-radius: 16px !important;
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.45) !important;
    backdrop-filter: blur(12px) !important;
    -webkit-backdrop-filter: blur(12px) !important;
    overflow: hidden !important;
}
/* flex column so iframe+CTA stack — no !important so Alpine x-show can still set display:none */
body.properview-newui .menuLeft {
    display: flex;
    flex-direction: column;
}
/* slide-in from right transitions (used with Alpine x-transition) */
body.properview-newui .menu-slide-enter { transition: transform 0.36s cubic-bezier(0.4,0,0.2,1), opacity 0.36s ease; }
body.properview-newui .menu-slide-enter-from { transform: translateX(calc(100% + 36px)); opacity: 0; }
body.properview-newui .menu-slide-enter-to   { transform: translateX(0); opacity: 1; }
body.properview-newui .menu-slide-leave { transition: transform 0.24s ease-in, opacity 0.24s ease; }
body.properview-newui .menu-slide-leave-from { transform: translateX(0); opacity: 1; }
body.properview-newui .menu-slide-leave-to   { transform: translateX(calc(100% + 36px)); opacity: 0; }
/* iframe area: flex-grow fills space above CTAs; iframe absolute-fills this area */
body.properview-newui .menuLeft .loadDataCard.loading-iframe {
    flex: 1 1 auto !important;
    min-height: 0 !important;
    height: auto !important;
    position: relative !important;
    background: var(--ui-panel-solid) url(../images/loadings.gif) center center no-repeat !important;
    background-size: 60px auto !important;
}
body.properview-newui .menuLeft .list-product {
    position: absolute !important;
    inset: 0 !important;
    flex: none !important;
    height: auto !important;
}
body.properview-newui .menuLeft .list-product iframe {
    position: absolute !important;
    inset: 0 !important;
    width: 100% !important;
    height: 100% !important;
    border: 0 !important;
    display: block !important;
}
body.properview-newui .menuLeft .ui-detail__cta-group {
    padding: 12px 16px 16px;
    flex: 0 0 auto;
    display: flex;
    flex-direction: column;
    gap: 10px;
    background: var(--ui-panel-solid);
}
/* prevent menuLeft from flashing before Alpine initialises x-show */
body.properview-newui .menuLeft[x-show]:not([style]) { display: none !important; }
/* close button — unified with detail-home (.ui-detail__close) */
body.properview-newui .menuLeft .closeModal {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.45);
    color: #fff;
    font-size: 16px;
    line-height: 1;
    text-align: center;
    cursor: pointer;
    z-index: 10;
    border: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: none;
    transition: background 0.15s ease;
}
body.properview-newui .menuLeft .closeModal:hover { background: rgba(0, 0, 0, 0.7); }
/* dataList panel — dark theme */
body.properview-newui .dataList,
body.properview-newui nav#menu {
    background: var(--ui-panel-solid) !important;
    border: 1px solid var(--ui-border-b) !important;
    box-shadow: var(--ui-shadow) !important;
}
body.properview-newui .dataList .headers,
body.properview-newui .dataListHistory .headersMsg,
body.properview-newui .dataListMsg .headersMsg {
    background: linear-gradient(135deg, var(--ui-accent), var(--ui-accent-2)) !important;
    border-bottom: none !important;
    color: #fff !important;
}
body.properview-newui .dataList .dataBody { background: var(--ui-panel-solid) !important; }
body.properview-newui .dataList .list-salest { border-bottom: 1px solid var(--ui-border) !important; }
body.properview-newui .dataList .list-salest a {
    background: rgba(255,255,255,0.04) !important;
    color: var(--ui-text) !important;
    border: 1px solid var(--ui-border) !important;
}
body.properview-newui .dataList .list-salest a:hover {
    border-color: var(--ui-border-b) !important;
    background: rgba(26,155,148,0.1) !important;
}
body.properview-newui .dataList .list-salest a span {
    background: var(--ui-accent) !important; color: #fff !important;
}
body.properview-newui .dataList .list-salest .accordions {
    background: rgba(7,12,16,0.7) !important;
}
body.properview-newui .datalist-schedule-wrap {
    border-top: 1px solid var(--ui-border) !important;
    background: var(--ui-panel-solid) !important;
}
body.properview-newui .datalist-schedule-btn,
body.properview-newui .menuleft-schedule-btn {
    background: linear-gradient(135deg, var(--ui-accent), var(--ui-accent-2)) !important;
    color: #fff !important; border: none !important;
}
/* scene menu nav panel */
body.properview-newui nav#menu .headers { background: linear-gradient(135deg, var(--ui-accent), var(--ui-accent-2)) !important; color: #fff !important; }
body.properview-newui nav#menu ul li span.bor-n { background: rgba(255,255,255,0.04) !important; color: var(--ui-text-dim) !important; }
body.properview-newui nav#menu ul li a { color: var(--ui-text) !important; }
body.properview-newui nav#menu ul li a:hover { background: rgba(26,155,148,0.1) !important; color: var(--ui-accent-bright) !important; }
body.properview-newui nav#menu .panel-scroll { border-color: var(--ui-border) !important; background: var(--ui-panel-solid) !important; }
/* contact sales panel — sales-head / sales-ava / sales-meta */
body.properview-newui .dataList .sales-head { display: flex; align-items: center; gap: 10px; padding: 10px 10px 6px; }
body.properview-newui .dataList .sales-ava {
    width: 40px; height: 40px; border-radius: 50%;
    background: var(--ui-accent); color: #fff;
    display: flex; align-items: center; justify-content: center;
    font-weight: 700; font-size: 15px; flex: 0 0 40px;
    overflow: hidden;
}
body.properview-newui .dataList .sales-ava img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; display: block; }
body.properview-newui .dataList .sales-meta { display: flex; flex-direction: column; line-height: 1.2; }
body.properview-newui .dataList .sales-meta .nama_sales { display: block; padding: 0; font-size: 15px; color: var(--ui-text) !important; }
body.properview-newui .dataList .sales-role { color: var(--ui-text-dim) !important; font-size: 12px; font-style: normal; }
/* the login/schedule modal content above its own backdrop too */
body.properview-newui .modal-login.active .modal-dialog,
body.properview-newui .modal-login.active .modal-content,
body.properview-newui .modal-scheduleVisit.active .modal-dialog,
body.properview-newui .modal-scheduleVisit.active .modal-content { position: relative; z-index: 100001 !important; }

/* #ui-logo (inside #ui-overlay) is the sole top-left logo — hide any legacy composites */
body.properview-newui #dealerview-topleft,
body.properview-newui #properview-topleft,
body.properview-newui #page:before,
body.properview-newui #page.second-logo:before { display: none !important; }

#ui-overlay, #ui-overlay *, #ui-overlay *::before, #ui-overlay *::after,
#ui-navpanel, #ui-navpanel *,
#ui-detail, #ui-detail * { box-sizing: border-box; }

/* Overlay root over the krpano stage */
body.properview-newui #ui-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  pointer-events: none;
  font-family: var(--ui-font);
  color: var(--ui-text);
  -webkit-font-smoothing: antialiased;
}
body.properview-newui #ui-overlay::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0; height: 150px;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.55), rgba(0, 0, 0, 0));
  pointer-events: none;
  z-index: 0;
}
#ui-overlay button, #ui-overlay a, #ui-overlay input,
#ui-overlay select, #ui-overlay textarea, #ui-overlay .ui-interactive { pointer-events: auto; }

/* ---- Logo (top-left): two images side by side (primary + secondary) ---- */
/* Logo dibatasi lebarnya (sisakan ruang untuk kontrol kanan) supaya ia MENGECIL,
   bukan tertimpa tombol — jadi keduanya bisa sejajar di satu baris. */
#ui-logo { position: absolute; top: 22px; left: 26px; display: flex; align-items: center; gap: 12px; max-width: calc(100% - 350px); overflow: hidden; cursor: pointer; text-decoration: none; z-index: 2; }
/* min-width:0 wajib — tanpa ini flex item menolak menyusut (default min-width:auto),
   sehingga max-width pada #ui-logo diabaikan dan logo meluber menabrak tombol. */
.ui-logo__img { height: 64px; width: auto; min-width: 0; max-width: 100%; object-fit: contain; object-position: left center; filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.55)); user-select: none; pointer-events: none; }
.ui-logo__div { width: 1px; height: 44px; background: rgba(255, 255, 255, 0.45); flex: 0 0 auto; }

/* ---- Top-right vertical stack — baris pertama sejajar dengan logo kiri ---- */
#ui-topright { position: absolute; top: 25px; right: 24px; display: flex; flex-direction: column; align-items: flex-end; gap: 10px; }

#ui-testdrive {
  display: inline-flex; align-items: center; gap: 8px; text-decoration: none;
  background: linear-gradient(135deg, #1A9B94, #1A9B94);
  color: var(--ui-on-accent); font-weight: 700; font-size: 14.5px;
  padding: 14px 26px; border-radius: 40px; box-shadow: var(--ui-shadow);
  border: none; cursor: pointer;
  transition: transform 0.15s ease, filter 0.15s ease;
}
#ui-testdrive:hover { transform: translateY(-2px); filter: brightness(1.06); }
#ui-testdrive svg { width: 19px; height: 19px; }

/* ---- Day / night toggle (kanan atas) — desktop: sebaris di samping Schedule ----
   Segmented switch: matahari (kiri) | bulan (kanan), knob geser ke sisi aktif */
.ui-top-row { display: flex; align-items: center; gap: 10px; }

#ui-daynight {
  position: relative; display: inline-flex; align-items: center;
  flex: 0 0 auto; width: 80px; height: 44px; padding: 4px;
  border-radius: 999px; cursor: pointer; border: none;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: var(--ui-shadow);
  transition: transform 0.15s ease, filter 0.15s ease;
}
#ui-daynight:hover { transform: translateY(-2px); filter: brightness(1.03); }

#ui-daynight .ui-daynight__knob {
  position: absolute; top: 4px; left: 4px;
  width: 36px; height: 36px; border-radius: 50%;
  background: linear-gradient(135deg, var(--ui-accent), var(--ui-accent-2));
  transition: transform 0.28s cubic-bezier(0.4, 0, 0.2, 1);
}
#ui-daynight.is-night .ui-daynight__knob { transform: translateX(36px); }

#ui-daynight .ui-daynight__opt {
  position: relative; z-index: 1; flex: 1 1 0;
  display: inline-flex; align-items: center; justify-content: center;
  color: #64748b; transition: color 0.25s ease;
}
#ui-daynight .ui-daynight__opt svg { width: 19px; height: 19px; display: block; }
/* ikon yang sedang aktif duduk di atas knob → putih */
#ui-daynight:not(.is-night) .ui-daynight__opt--day { color: #fff; }
#ui-daynight.is-night .ui-daynight__opt--night { color: #fff; }

/* Help (questionnaire) pill — dark, with a pulsing dot + answered/total count */
#ui-help {
  display: inline-flex; align-items: center; gap: 8px; cursor: pointer; border: 1px solid var(--ui-border);
  background: var(--ui-panel); color: #fff; font-weight: 700; font-size: 13px; font-family: var(--ui-font);
  padding: 11px 17px; border-radius: 40px; box-shadow: var(--ui-shadow);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  transition: transform 0.15s ease, background 0.15s ease;
  transform-origin: center; animation: ui-wiggle 3.2s ease-in-out infinite;
}
#ui-help:hover { animation: none; transform: translateY(-2px); background: rgba(40, 46, 52, 0.92); }
.ui-help__dot { width: 9px; height: 9px; border-radius: 50%; background: var(--ui-accent); flex: 0 0 auto; position: relative; }
.ui-help__dot::after { content: ""; position: absolute; inset: -4px; border-radius: 50%; border: 2px solid var(--ui-accent); animation: ui-callout-pulse 1.8s ease-out infinite; }
.ui-help__count { font-family: ui-monospace, monospace; font-size: 12px; color: var(--ui-accent); font-weight: 700; }
/* Help button + its "Got a sec?" CTA tooltip.
   Desktop: button fixed at the BOTTOM-RIGHT corner, tooltip ABOVE it. */
.ui-help-wrap { position: fixed; right: 24px; bottom: 24px; z-index: 50; display: inline-flex; pointer-events: auto; }
.ui-help__cta {
  position: absolute; z-index: 6; white-space: nowrap; cursor: pointer; pointer-events: auto;
  bottom: calc(100% + 12px); right: 0;
  background: linear-gradient(135deg, var(--ui-accent), var(--ui-accent-2)); color: #fff;
  font-size: 12px; font-weight: 700; padding: 7px 12px; border-radius: 20px;
  box-shadow: 0 6px 18px rgba(26, 155, 148, 0.4);
  animation: ui-cta-cycle 4.8s ease-in-out infinite;
}
.ui-help__cta::after {
  content: ""; position: absolute; bottom: -5px; right: 22px;
  border: 5px solid transparent; border-top-color: var(--ui-accent);
}
/* tooltip disappears + reappears every few seconds */
@keyframes ui-cta-cycle {
  0% { opacity: 0; transform: translateY(8px); }
  7%, 45% { opacity: 1; transform: translateY(0); }
  55%, 100% { opacity: 0; transform: translateY(8px); }
}
/* attention wiggle (mostly still, brief shake each cycle) — also used on the WA button */
@keyframes ui-wiggle {
  0%, 86%, 100% { transform: rotate(0); }
  88% { transform: rotate(-6deg); }
  91% { transform: rotate(5deg); }
  94% { transform: rotate(-3deg); }
  97% { transform: rotate(2deg); }
}
.ui-tool {
  width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--ui-border); cursor: pointer;
  background: var(--ui-panel); color: #fff; display: inline-flex; align-items: center; justify-content: center;
  box-shadow: var(--ui-shadow); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  position: relative; transition: transform 0.15s ease, background 0.15s ease;
}
.ui-tool:hover { transform: translateY(-2px); background: rgba(40, 46, 52, 0.92); }
.ui-tool svg { width: 19px; height: 19px; }
.ui-tool.has-notif::after { content: ""; position: absolute; top: 5px; right: 5px; width: 9px; height: 9px; border-radius: 50%; background: var(--ui-accent); border: 2px solid var(--ui-panel-solid); }

/* ---- Bottom-left stack (callout + info card) ---- */
#ui-bottomleft {
  position: absolute; left: 24px; bottom: 24px; width: 360px;
  max-width: calc(100vw - 48px);
  display: flex; flex-direction: column; align-items: flex-start; gap: 12px;
}
/* Altuera collapsed mini-button — sits above info card, hidden/shown via inline style */
#ui-altuera-mini {
  padding: 8px 16px; border: none; border-radius: 20px;
  background: rgba(20, 24, 30, 0.82);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  color: #fff; font-size: 12px; font-weight: 600; letter-spacing: 0.02em;
  cursor: pointer; box-shadow: 0 2px 8px rgba(0,0,0,0.4);
  transition: background 0.15s; white-space: nowrap;
  align-items: center; gap: 6px;
}
#ui-altuera-mini:hover { background: rgba(30, 36, 46, 0.95); }
#ui-infocard {
  position: relative; width: 100%;
  background: var(--ui-panel); border: 1px solid var(--ui-border);
  border-radius: var(--ui-radius); box-shadow: var(--ui-shadow);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  padding: 16px 18px;
}
#ui-infocard-toggle {
  position: absolute; top: 12px; right: 12px; width: 28px; height: 28px;
  border: none; cursor: pointer; border-radius: 50%;
  background: rgba(255, 255, 255, 0.08); color: #fff;
  display: inline-flex; align-items: center; justify-content: center;
  transition: background 0.15s ease, transform 0.28s ease;
}
#ui-infocard-toggle:hover { background: rgba(255, 255, 255, 0.18); }
#ui-infocard-toggle svg { width: 16px; height: 16px; }
#ui-infocard.collapsed #ui-infocard-toggle { transform: rotate(180deg); }
#ui-eyebrow {
  font-size: 10px; letter-spacing: 2.5px; text-transform: uppercase;
  color: var(--ui-accent); margin: 0 0 6px; font-weight: 700; padding-right: 32px;
}
#ui-title { font-size: 22px; font-weight: 700; line-height: 1.2; margin: 0 0 8px; padding-right: 32px; }
#ui-desc { font-size: 12.5px; line-height: 1.5; color: var(--ui-text-dim); margin: 0 0 14px; }
#ui-infocard.collapsed #ui-desc { display: none; }

.ui-sales { display: flex; align-items: center; gap: 12px; padding-top: 14px; border-top: 1px solid var(--ui-border); }
.ui-sales__avatar {
  width: 46px; height: 46px; border-radius: 50%; object-fit: cover;
  background: linear-gradient(135deg, var(--ui-accent), var(--ui-accent-2));
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 16px; color: var(--ui-on-accent); flex: 0 0 auto;
}
.ui-sales__avatar.has-photo { cursor: pointer; transition: transform 0.15s ease, box-shadow 0.15s ease; }
.ui-sales__avatar.has-photo:hover { transform: scale(1.06); box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.25); }
.ui-sales__meta { flex: 1 1 auto; min-width: 0; }
/* WhatsApp-style profile photo viewer */
#ui-photoview {
  position: fixed; inset: 0; z-index: 100050; display: none; align-items: center; justify-content: center;
  padding: 24px; background: rgba(0, 0, 0, 0.86); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px);
}
#ui-photoview.open { display: flex; animation: ui-photoview-fade 0.2s ease; }
.ui-photoview__stage { display: flex; flex-direction: column; align-items: center; gap: 14px; }
.ui-photoview__img {
  max-width: min(86vw, 460px); max-height: 78vh; width: auto; height: auto; object-fit: contain;
  border-radius: 14px; box-shadow: 0 24px 80px rgba(0, 0, 0, 0.6);
  animation: ui-photoview-pop 0.25s cubic-bezier(0.2, 0.9, 0.3, 1.2);
}
.ui-photoview__name { color: #fff; font-weight: 700; font-size: 16px; font-family: var(--ui-font); text-shadow: 0 2px 8px rgba(0, 0, 0, 0.6); }
.ui-photoview__close {
  position: absolute; top: 18px; right: 20px; width: 32px; height: 32px; border-radius: 50%; border: none; cursor: pointer;
  background: rgba(0, 0, 0, 0.45); color: #fff; font-size: 16px; line-height: 1; display: inline-flex; align-items: center; justify-content: center;
  transition: background 0.15s ease;
}
.ui-photoview__close:hover { background: rgba(0, 0, 0, 0.7); }
@keyframes ui-photoview-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes ui-photoview-pop { from { opacity: 0; transform: scale(0.9); } to { opacity: 1; transform: scale(1); } }
.ui-sales__name { font-size: 14px; font-weight: 700; line-height: 1.2; }
.ui-sales__role { font-size: 11.5px; color: var(--ui-text-dim); }
.ui-sales__actions { display: flex; gap: 8px; flex: 0 0 auto; }
.ui-iconbtn {
  position: relative;
  width: 38px; height: 38px; border-radius: 50%; border: none; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--ui-on-accent); background: var(--ui-accent); text-decoration: none;
  transition: transform 0.15s ease, filter 0.15s ease;
}
.ui-iconbtn__ico { display: inline-flex; align-items: center; justify-content: center; }
/* on-hover tooltip above the icon button */
.ui-iconbtn__tip {
  position: absolute; bottom: calc(100% + 9px); left: 50%; transform: translateX(-50%);
  background: var(--ui-panel-solid); color: #fff; font-size: 11px; font-weight: 600; line-height: 1;
  padding: 6px 9px; border-radius: 7px; white-space: nowrap; pointer-events: none;
  opacity: 0; transition: opacity 0.15s ease; box-shadow: var(--ui-shadow); z-index: 12;
}
.ui-iconbtn__tip::after {
  content: ""; position: absolute; top: 100%; left: 50%; transform: translateX(-50%);
  border: 4px solid transparent; border-top-color: var(--ui-panel-solid);
}
.ui-iconbtn:hover .ui-iconbtn__tip { opacity: 1; }
.ui-iconbtn.wa {
  background: #25d366; position: relative; transform-origin: center;
  box-shadow: 0 4px 14px rgba(37, 211, 102, 0.45);
  animation: wa-beat 2.6s ease-in-out infinite, wa-glow 2.6s ease-in-out infinite;
}
/* radar "call me" rings emanating from the button (two, staggered) */
.ui-iconbtn.wa::before, .ui-iconbtn.wa::after {
  content: ""; position: absolute; inset: 0; border-radius: 50%;
  border: 2px solid #25d366; pointer-events: none; animation: wa-ring 2.6s ease-out infinite;
}
.ui-iconbtn.wa::after { animation-delay: 1.3s; }
.ui-iconbtn.wa svg { position: relative; z-index: 2; }
.ui-iconbtn.wa:hover { animation: none; box-shadow: 0 7px 20px rgba(37, 211, 102, 0.7); }
.ui-iconbtn.wa:hover::before, .ui-iconbtn.wa:hover::after { animation: none; opacity: 0; }
.ui-iconbtn.share { background: #2f7fed; }
.ui-iconbtn.menu { background: #454c54; }
.ui-iconbtn.home { background: #1A9B94; }
.ui-iconbtn.home:hover { filter: brightness(1.08); }
.ui-iconbtn:hover { transform: translateY(-2px); filter: brightness(1.08); }
.ui-iconbtn svg { width: 19px; height: 19px; }
@keyframes wa-ring { 0% { transform: scale(1); opacity: 0.7; } 100% { transform: scale(2.3); opacity: 0; } }
@keyframes wa-glow {
  0%, 100% { box-shadow: 0 4px 14px rgba(37, 211, 102, 0.40); }
  50% { box-shadow: 0 4px 22px rgba(37, 211, 102, 0.85), 0 0 0 4px rgba(37, 211, 102, 0.20); }
}
@keyframes wa-beat { 0%, 100% { transform: scale(1); } 12% { transform: scale(1.1); } 24% { transform: scale(1); } }

/* ---- Burger (left edge, half-circle) ---- */
#ui-burger {
  position: fixed; left: 0; top: 50%; width: 31px; height: 66px;
  border: none; background: none; padding: 0; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  z-index: 1045; transform: translateY(-50%);
  transition: left 0.34s cubic-bezier(0.4, 0, 0.2, 1);
}
body.properview-nav-open #ui-burger { left: var(--nav-width); }
.ui-burger__shape-wrap { position: absolute; inset: 0; }
.ui-burger__shape { width: 100%; height: 100%; display: block; filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.35)); }
.ui-burger__shape path { fill: var(--ui-panel); stroke: var(--ui-border); stroke-width: 1; transition: fill 0.2s ease; }
#ui-burger:hover .ui-burger__shape path { fill: rgba(40, 46, 52, 0.92); }
body.properview-nav-open #ui-burger .ui-burger__shape path { fill: var(--ui-panel-solid); }
.ui-burger__arrow { position: relative; z-index: 1; display: inline-flex; color: #fff; transition: transform 0.3s ease; }
.ui-burger__arrow svg { width: 18px; height: 18px; }
body.properview-nav-open #ui-burger .ui-burger__arrow { transform: rotate(180deg); }

#ui-burger-tip {
  position: fixed; left: 44px; top: 50%; z-index: 1046;
  border: none; cursor: pointer; white-space: nowrap;
  background: linear-gradient(135deg, var(--ui-accent), var(--ui-accent-2));
  color: var(--ui-on-accent); font-family: var(--ui-font);
  font-size: 12.5px; font-weight: 700; padding: 9px 15px; border-radius: 40px;
  box-shadow: var(--ui-shadow); opacity: 0; visibility: hidden;
  transform: translateY(-50%) translateX(-8px);
  transition: opacity 0.35s ease, transform 0.35s ease, visibility 0.35s;
}
#ui-burger-tip.show { opacity: 1; visibility: visible; transform: translateY(-50%) translateX(0); animation: ui-burgertip-bob 1.4s ease-in-out infinite; }
#ui-burger-tip::before { content: ""; position: absolute; left: -6px; top: 50%; transform: translateY(-50%); border: 6px solid transparent; border-right-color: var(--ui-accent); border-left: none; }
@keyframes ui-burgertip-bob { 0%,100% { transform: translateY(-50%) translateX(0); } 50% { transform: translateY(-50%) translateX(4px); } }

/* ---- Nav panel (slides OVER the pano from the left) ---- */
#ui-navpanel {
  position: fixed; left: 0; top: 0; height: 100%; width: var(--nav-width);
  z-index: 1040; background: var(--ui-panel-solid); border-right: 1px solid var(--ui-border);
  color: #fff; font-family: var(--ui-font);
  display: flex; flex-direction: column; pointer-events: auto;
  transform: translateX(-100%);
  transition: transform 0.34s cubic-bezier(0.4, 0, 0.2, 1);
}
#ui-navpanel.open { transform: translateX(0); }
.ui-nav__head { padding: 18px 16px 6px; font-size: 11px; letter-spacing: 2.5px; text-transform: uppercase; color: var(--ui-accent); font-weight: 700; }
.ui-nav__list { flex: 1 1 auto; overflow-y: auto; padding: 8px 14px 24px; }
.ui-acc { border-bottom: 1px solid var(--ui-border); }
.ui-acc__head {
  width: 100%; display: flex; align-items: center; justify-content: space-between;
  background: none; border: none; cursor: pointer; color: #fff; font-family: var(--ui-font);
  font-size: 17px; font-weight: 700; padding: 16px 4px; text-align: left;
}
.ui-acc__chev { display: inline-flex; color: var(--ui-text-dim); transition: transform 0.25s ease; }
.ui-acc__chev svg { width: 18px; height: 18px; }
.ui-acc.open .ui-acc__chev { transform: rotate(180deg); }
.ui-acc__body { overflow: hidden; max-height: 0; transition: max-height 0.3s ease; }
.ui-acc.open .ui-acc__body { max-height: 2400px; }
.ui-acc__inner { padding: 2px 2px 14px; }
.ui-acc__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; padding: 6px 0 8px; }
.ui-acc__list { display: flex; flex-direction: column; gap: 2px; padding: 4px 0 8px; }
.ui-subhead { font-size: 11px; letter-spacing: 1.5px; text-transform: uppercase; color: var(--ui-accent); font-weight: 700; padding: 13px 4px 3px; }
.ui-vcard { display: flex; flex-direction: column; gap: 8px; border: none; background: none; padding: 0; cursor: pointer; text-align: left; }
.ui-vcard__imgwrap {
  width: 100%; aspect-ratio: 1 / 1; border-radius: 12px; overflow: hidden;
  background: linear-gradient(160deg, #ffffff, #eef0f2); border: 2px solid transparent;
  transition: border-color 0.15s ease, transform 0.15s ease;
}
.ui-vcard:hover .ui-vcard__imgwrap { transform: translateY(-2px); }
.ui-vcard.active .ui-vcard__imgwrap { border-color: var(--ui-accent); }
.ui-vcard__imgwrap img { width: 100%; height: 100%; object-fit: contain; }
.ui-vcard__name { font-size: 14px; font-weight: 600; color: #fff; }
.ui-vcard.active .ui-vcard__name { color: var(--ui-accent); }
/* facility cards: room photos -> fill the square on a neutral dark backdrop */
.ui-vcard--fac .ui-vcard__imgwrap { background: #15181c; }
.ui-vcard--fac .ui-vcard__imgwrap img { object-fit: cover; }
/* facility cards: a row, not a thumbnail grid item */
.ui-acc--fac .ui-acc__grid { grid-template-columns: 1fr; gap: 4px; }
.ui-fcard {
  display: flex; align-items: center; gap: 10px; width: 100%;
  border: none; background: none; cursor: pointer; text-align: left;
  color: #fff; font-size: 14px; padding: 11px 6px; border-radius: 8px;
}
.ui-fcard:hover { background: rgba(255,255,255,0.06); }
.ui-fcard.active { color: var(--ui-accent); }
.ui-fcard::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--ui-text-dim); flex: 0 0 auto; }
.ui-fcard.active::before { background: var(--ui-accent); }

/* ---- Questionnaire button ---- */
#ui-quiz-btn {
  position: absolute; right: 24px; bottom: 24px; border: none; cursor: pointer;
  background: linear-gradient(135deg, var(--ui-accent), var(--ui-accent-2));
  color: var(--ui-on-accent); font-weight: 700; font-size: 13.5px;
  padding: 13px 22px; border-radius: 40px; box-shadow: var(--ui-shadow);
  display: inline-flex; align-items: center; gap: 8px;
  transition: transform 0.15s ease, filter 0.15s ease;
}
#ui-quiz-btn:hover { transform: translateY(-2px); filter: brightness(1.06); }
#ui-quiz-btn svg { width: 17px; height: 17px; }
#ui-quiz-btn::after {
  content: attr(data-tip); position: absolute; bottom: calc(100% + 9px); right: 0;
  white-space: nowrap; background: var(--ui-panel-solid); color: #fff; font-size: 12px;
  font-weight: 600; padding: 7px 11px; border-radius: 9px; border: 1px solid var(--ui-border);
  box-shadow: var(--ui-shadow); opacity: 0; transform: translateY(4px); pointer-events: none;
  transition: opacity 0.15s ease, transform 0.15s ease;
}
#ui-quiz-btn:hover::after { opacity: 1; transform: translateY(0); }

/* ---- Callout (above the info card, interior scenes) ---- */
#ui-overlay #ui-callout {
  display: none; align-items: center; gap: 9px; padding: 10px 16px 10px 11px;
  border: 1px solid var(--ui-border); border-radius: 40px; background: rgba(18, 22, 26, 0.82);
  color: #fff; font-size: 13px; font-weight: 600; cursor: pointer; box-shadow: var(--ui-shadow);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  transition: background 0.15s ease, transform 0.15s ease;
}
#ui-overlay #ui-callout.show { display: inline-flex; }
#ui-overlay #ui-callout:hover { background: rgba(40, 46, 52, 0.92); transform: translateY(-1px); }
.ui-callout__dot { position: relative; width: 12px; height: 12px; border-radius: 50%; background: var(--ui-accent); flex: 0 0 auto; }
.ui-callout__dot::before { content: ""; position: absolute; inset: -5px; border-radius: 50%; border: 2px solid var(--ui-accent); animation: ui-callout-pulse 1.8s ease-out infinite; }
@keyframes ui-callout-pulse { 0% { transform: scale(0.5); opacity: 0.85; } 100% { transform: scale(1.7); opacity: 0; } }

/* ---- Right-side vehicle detail card ---- */
#ui-detail {
  position: fixed; top: 18px; right: 18px; bottom: 18px; width: 380px;
  max-width: calc(100vw - 36px); z-index: 1030;
  color: var(--ui-text); font-family: var(--ui-font);
  background: var(--ui-panel-solid); border: 1px solid var(--ui-border);
  border-radius: var(--ui-radius); box-shadow: var(--ui-shadow);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  overflow-y: auto; overflow-x: hidden;
  transform: translateX(calc(100% + 24px)); opacity: 0;
  transition: transform 0.36s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.36s ease;
  pointer-events: auto;
}
#ui-detail.open { transform: translateX(0); opacity: 1; }
.ui-detail__close {
  position: absolute; top: 12px; right: 12px; z-index: 2; width: 32px; height: 32px;
  border: none; border-radius: 50%; cursor: pointer; background: rgba(0, 0, 0, 0.45);
  color: #fff; font-size: 16px; line-height: 1; display: inline-flex;
  align-items: center; justify-content: center; transition: background 0.15s ease;
}
.ui-detail__close:hover { background: rgba(0, 0, 0, 0.7); }
.ui-detail__hero {
  position: relative; height: 210px; display: flex; align-items: center; justify-content: center;
  background: linear-gradient(160deg, #fbfbfc, #e9ebee); border-bottom: 1px solid var(--ui-border); overflow: hidden;
}
.ui-detail__heroimg { width: 100%; height: 100%; object-fit: cover; object-position: center; transition: opacity 0.2s ease; }
.ui-detail__colorname { position: absolute; left: 12px; bottom: 10px; padding: 4px 11px; border-radius: 40px; background: rgba(0, 0, 0, 0.62); color: #fff; font-size: 11.5px; font-weight: 600; }
.ui-detail__heronote { position: absolute; right: 12px; bottom: 10px; font-size: 10px; color: rgba(0, 0, 0, 0.42); }
.ui-detail__body { padding: 18px 20px 22px; }
.ui-detail__eyebrow { display: flex; align-items: center; gap: 8px; margin: 0 0 6px; font-size: 11px; letter-spacing: 1.5px; text-transform: uppercase; font-weight: 700; color: var(--ui-accent); }
.ui-detail__eyebrow::before { content: ""; width: 16px; height: 2px; background: var(--ui-accent); border-radius: 2px; }
.ui-detail__title { margin: 0 0 4px; font-size: 26px; font-weight: 800; line-height: 1.15; color: #fff; }
.ui-detail__price { margin: 0 0 12px; font-size: 14px; font-weight: 700; color: #fff; }
.ui-detail__badge { display: inline-block; margin: 0 0 14px; padding: 5px 12px; border-radius: 40px; font-size: 11.5px; font-weight: 600; color: var(--ui-accent); background: rgba(26, 155, 148, 0.12); border: 1px solid rgba(26, 155, 148, 0.35); }
.ui-detail__desc { margin: 0 0 18px; font-size: 13.5px; line-height: 1.6; color: rgba(255, 255, 255, 0.82); }
.ui-detail__sectlabel { margin: 0 0 10px; font-size: 11px; letter-spacing: 1.2px; text-transform: uppercase; color: var(--ui-text-dim); font-weight: 700; }
.ui-detail__swatches { display: flex; flex-wrap: wrap; gap: 11px; margin-bottom: 20px; }
.ui-detail__swatch { width: 30px; height: 30px; border-radius: 50%; cursor: pointer; padding: 0; border: 2px solid rgba(255, 255, 255, 0.22); box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.25); transition: transform 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease; }
.ui-detail__swatch:hover { transform: scale(1.12); }
.ui-detail__swatch.active { border-color: var(--ui-accent); box-shadow: 0 0 0 2px var(--ui-accent); }
/* photo gallery thumbnails (reuses swatch markup but rectangular w/ cover image) */
.ui-detail__photos { gap: 9px; }
.ui-detail__photos .ui-detail__swatch {
  width: 58px; height: 44px; border-radius: 8px;
  background-size: cover; background-position: center; background-repeat: no-repeat;
  box-shadow: inset 0 0 0 1px rgba(0,0,0,0.25);
}
.ui-detail__photos .ui-detail__swatch:hover { transform: scale(1.06); }
.ui-detail__specs { display: flex; flex-direction: column; gap: 0; margin-bottom: 18px; border: 1px solid var(--ui-border); border-radius: 12px; overflow: hidden; }
.ui-detail__spec { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 11px 14px; font-size: 13px; }
.ui-detail__spec:nth-child(odd) { background: rgba(255, 255, 255, 0.03); }
.ui-detail__spec-k { color: var(--ui-text-dim); }
.ui-detail__spec-v { font-weight: 600; text-align: right; color: #fff; }
.ui-detail__note { margin: 0 0 16px; font-size: 11px; color: rgba(255, 255, 255, 0.45); }
.ui-detail__cta-group { display: flex; flex-direction: column; gap: 10px; }
.ui-detail__cta { width: 100%; border: none; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; gap: 8px; text-decoration: none; background: linear-gradient(135deg, var(--ui-accent), var(--ui-accent-2)); color: var(--ui-on-accent); font-weight: 700; font-size: 14.5px; font-family: var(--ui-font); padding: 14px 18px; border-radius: 40px; box-shadow: 0 8px 22px rgba(26, 155, 148, 0.3); transition: transform 0.15s ease, filter 0.15s ease; }
.ui-detail__cta svg { width: 18px; height: 18px; }
.ui-detail__cta:hover { transform: translateY(-2px); filter: brightness(1.06); }
.ui-detail__cta--ghost { background: rgba(255, 255, 255, 0.08); color: #fff; border: 1px solid var(--ui-border); box-shadow: none; }
.ui-detail__cta--ghost:hover { filter: none; background: rgba(255, 255, 255, 0.14); }

/* ---- Welcome / intro splash ---- */
#ui-welcome {
  position: fixed; inset: 0; z-index: 1060; display: flex; align-items: center; justify-content: center;
  text-align: center; padding: 24px; pointer-events: auto;
  background: radial-gradient(120% 80% at 50% 40%, rgba(0, 0, 0, 0.45), rgba(0, 0, 0, 0.78));
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  opacity: 1; transition: opacity 0.55s ease, visibility 0.55s ease;
}
#ui-welcome.hidden { opacity: 0; visibility: hidden; pointer-events: none; }
.ui-welcome__inner { max-width: 560px; width: 100%; display: flex; flex-direction: column; align-items: center; }
.ui-welcome__logo { height: 52px; width: auto; margin-bottom: 26px; filter: drop-shadow(0 2px 10px rgba(0, 0, 0, 0.6)); }
.ui-welcome__eyebrow { margin: 0 0 16px; font-size: 12px; letter-spacing: 5px; text-transform: uppercase; color: var(--ui-text-dim); font-weight: 600; }
.ui-welcome__title { margin: 0 0 18px; font-size: 44px; line-height: 1.12; font-weight: 800; color: #fff; text-shadow: 0 2px 18px rgba(0, 0, 0, 0.55); }
.ui-welcome__title span { background: linear-gradient(120deg, var(--ui-accent), var(--ui-accent-2)); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: var(--ui-accent); }
.ui-welcome__desc { margin: 0 0 30px; font-size: 15px; line-height: 1.65; color: rgba(255, 255, 255, 0.82); max-width: 500px; }
#ui-welcome-cta { border: none; cursor: pointer; background: linear-gradient(135deg, #1A9B94, #1A9B94); color: var(--ui-on-accent); font-weight: 700; font-size: 14.5px; font-family: var(--ui-font); padding: 14px 26px; border-radius: 40px; box-shadow: 0 10px 30px rgba(26, 155, 148, 0.35); transition: transform 0.15s ease, filter 0.15s ease; }
#ui-welcome-cta:hover { transform: translateY(-2px); filter: brightness(1.07); }
.ui-welcome__note { margin: 34px 0 0; font-size: 11.5px; color: rgba(255, 255, 255, 0.5); }

/* ---- Restyle the kept legacy login modal toward the new look ---- */
body.properview-newui .modal-login .modal-content,
body.properview-newui .modal-scheduleVisit .modal-content {
  background: var(--ui-panel-solid) !important; border: 1px solid var(--ui-border) !important;
  border-radius: var(--ui-radius) !important; box-shadow: var(--ui-shadow) !important; color: #fff;
  overflow: visible !important; /* allow .close button at top:-10px to be clickable */
}

/* ---- Login / Register form: cohesive dark fields + readable text ----
   Legacy .modal-body keeps a light #f8f8f8 bg with dark-text styling; our dark
   modal + color:#fff turned that text white-on-light (invisible). Both panels
   (login + register) share these classes, so one block fixes both. */
body.properview-newui .modal-login .modal-body { background: transparent !important; border: none !important; color: #fff; }
body.properview-newui .modal-login .labels { color: rgba(255, 255, 255, 0.72) !important; }
body.properview-newui .modal-login .label-left { color: rgba(255, 255, 255, 0.6) !important; font-weight: 600; }
body.properview-newui .modal-login .notelp,
body.properview-newui .modal-login .radio-button-container { color: rgba(255, 255, 255, 0.9) !important; }
/* input wrapper -> dark translucent field; +62 + field text go light */
body.properview-newui .modal-login .panels_loginForm {
  background: rgba(255, 255, 255, 0.06) !important;
  border: 1px solid var(--ui-border) !important; border-radius: 10px !important;
}
body.properview-newui .modal-login .panels_loginForm.error { border-color: #b32e2e !important; }
body.properview-newui .modal-login .panels_loginForm input,
body.properview-newui .modal-login .panels_nomorcountry { background: transparent !important; color: #fff !important; }
body.properview-newui .modal-login .panels_loginForm input::placeholder { color: rgba(255, 255, 255, 0.45) !important; }
/* country-code popover stays light -> keep its inner search text dark & readable */
body.properview-newui .modal-login .countryCodes .searchCode { background: #fff !important; color: #222 !important; border: 1px solid #cfd8e6 !important; }
/* submit buttons -> accent pill */
body.properview-newui .modal-login .panels_submit a {
  background: linear-gradient(135deg, var(--ui-accent), var(--ui-accent-2)) !important;
  color: #fff !important; border-radius: 12px !important; font-weight: 700;
}
body.properview-newui .modal-login .panels_submit a:hover { filter: brightness(1.08); }
/* modal close buttons unified with detail-home: black translucent circle + white X.
   Use background-color (not the shorthand) so the base SVG X icon is preserved. */
body.properview-newui .modal-login .close,
body.properview-newui .modal-scheduleVisit .modal-dialog .mheader .closeShedule {
  background-color: rgba(0, 0, 0, 0.5) !important;
  border: none !important;
  opacity: 1 !important;
  z-index: 100002 !important;
  pointer-events: auto !important;
  transition: background-color 0.15s ease !important;
}
body.properview-newui .modal-login .close:hover,
body.properview-newui .modal-scheduleVisit .modal-dialog .mheader .closeShedule:hover {
  background-color: rgba(0, 0, 0, 0.72) !important;
}
/* The .mheader * { background: transparent } rule strips the X icon from the close
   button (it's a span inside .mheader). Re-apply the white-X SVG with the full
   shorthand at higher specificity so the X stays visible. */
body.properview-newui .modal-scheduleVisit .modal-dialog .mheader span.closeShedule {
  background: rgba(0, 0, 0, 0.5) url('data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiA/Pjxzdmcgdmlld0JveD0iMCAwIDMyIDMyIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPjxkZWZzPjxzdHlsZT4uY2xzLTF7ZmlsbDpub25lO3N0cm9rZTojZmZmO3N0cm9rZS1saW5lY2FwOnJvdW5kO3N0cm9rZS1saW5lam9pbjpyb3VuZDtzdHJva2Utd2lkdGg6MnB4O308L3N0eWxlPjwvZGVmcz48dGl0bGUvPjxnIGlkPSJjcm9zcyI+PGxpbmUgY2xhc3M9ImNscy0xIiB4MT0iNyIgeDI9IjI1IiB5MT0iNyIgeTI9IjI1Ii8+PGxpbmUgY2xhc3M9ImNscy0xIiB4MT0iNyIgeDI9IjI1IiB5MT0iMjUiIHkyPSI3Ii8+PC9nPjwvc3ZnPg==') center center no-repeat !important;
  background-size: 16px auto !important;
}
body.properview-newui .modal-scheduleVisit .modal-dialog .mheader span.closeShedule:hover {
  background-color: rgba(0, 0, 0, 0.72) !important;
}
body.properview-newui .modal-login .checkmark { border-color: var(--ui-border) !important; }

/* ---- Schedule Test Drive popup: dark redesign matching login + the new UI
   (overrides the older light .modal-scheduleVisit theme in costume-v424.css) ---- */
/* solid card surface (was missing — modal showed through to the tour) */
body.properview-newui .modal-scheduleVisit .modal-content {
  background: var(--ui-panel-solid) !important; border: 1px solid var(--ui-border) !important;
  border-radius: 16px !important; box-shadow: var(--ui-shadow) !important; color: #fff; overflow: hidden;
}
body.properview-newui .modal-scheduleVisit .modal-body { background: transparent !important; color: #fff; }
body.properview-newui .modal-scheduleVisit .mheader,
body.properview-newui .modal-scheduleVisit .mheader * { background: transparent !important; color: #fff !important; }
body.properview-newui .modal-scheduleVisit .mheader {
  position: relative;
  border-bottom: 1px solid var(--ui-border) !important; box-shadow: none !important;
  font-size: 17px !important; font-weight: 700; padding: 16px 22px 16px 32px !important; /* left pad clears accent bar */
}
/* accent bar at left of the header title (matches dealerview test-drive) */
body.properview-newui .modal-scheduleVisit .mheader::before {
  content: ""; position: absolute; left: 16px; top: 15px; bottom: 15px; width: 5px;
  border-radius: 3px; background: var(--ui-accent);
}
body.properview-newui .modal-scheduleVisit .form-data { padding: 14px 22px 0 !important; }
body.properview-newui .modal-scheduleVisit label,
body.properview-newui .modal-scheduleVisit .form-data p { color: rgba(255, 255, 255, 0.6) !important; font-weight: 600; font-size: 13px !important; margin: 0 0 7px !important; }
body.properview-newui .modal-scheduleVisit input,
body.properview-newui .modal-scheduleVisit textarea {
  background: rgba(255, 255, 255, 0.06) !important; border: 1px solid var(--ui-border) !important;
  color: #fff !important; border-radius: 10px !important; font-size: 14px !important; padding: 11px !important;
}
/* keep the note field compact (was stretching too tall) */
body.properview-newui .modal-scheduleVisit textarea {
  height: 96px !important; min-height: 96px !important; max-height: 160px !important; resize: vertical !important;
}
body.properview-newui .modal-scheduleVisit input::placeholder,
body.properview-newui .modal-scheduleVisit textarea::placeholder { color: rgba(255, 255, 255, 0.45) !important; }
body.properview-newui .modal-scheduleVisit input:focus,
body.properview-newui .modal-scheduleVisit textarea:focus { border-color: var(--ui-accent) !important; box-shadow: 0 0 0 2px rgba(26, 155, 148, 0.18) !important; }
body.properview-newui .modal-scheduleVisit .mfooter { background: transparent !important; border-top: 1px solid var(--ui-border) !important; padding: 18px 22px !important; margin-top: 0 !important; }
body.properview-newui .modal-scheduleVisit .mfooter a.submitDataSchedule,
body.properview-newui .modal-scheduleVisit .submitDataSchedule {
  background: linear-gradient(135deg, var(--ui-accent), var(--ui-accent-2)) !important;
  color: #fff !important; border: 0 !important; border-radius: 12px !important; font-weight: 700;
}
/* (close button styled above, unified with detail-home) */
/* kill the legacy full-screen white bg (it tinted the whole viewport white) and
   vertically CENTER the dialog (was anchored too high, esp. on mobile) */
body.properview-newui .modal-scheduleVisit { background: transparent !important; }
body.properview-newui .modal-scheduleVisit.active { display: flex !important; align-items: center; justify-content: center; padding: 16px; }
body.properview-newui .modal-scheduleVisit.active .modal-dialog { margin: auto !important; transform: none !important; width: 100%; max-width: 440px; }
/* lift the flatpickr calendar above the modal content (was hidden behind it) */
body.properview-newui .flatpickr-calendar { z-index: 100060 !important; }

/* ---- Responsive ---- */
@media (max-width: 640px) {
  /* Logo sebaris dengan kontrol kanan; dibatasi agar mengecil, bukan tertimpa. */
  #ui-logo { top: 16px; left: 16px; gap: 9px; max-width: calc(100% - 200px); }
  .ui-logo__img { height: 52px; max-width: 100%; object-fit: contain; object-position: left center; }
  .ui-logo__div { height: 38px; }
  #ui-bottomleft { left: 12px; right: 12px; bottom: 12px; width: auto; max-width: none; }
  #ui-infocard { padding: 13px 14px; }
  #ui-title { font-size: 18px; }
  #ui-desc { font-size: 12px; }
  :root { --nav-width: 84vw; }
  /* kontrol sejajar dengan logo (Schedule tetap berlabel) */
  #ui-topright { top: 16px; right: 12px; gap: 9px; }
  #ui-testdrive { padding: 10px 15px; font-size: 12px; }
  /* column-reverse: Schedule tetap di atas (urutan DOM: daynight, testdrive),
     toggle turun ke BAWAH Schedule — tidak berebut lebar dengan logo. */
  .ui-top-row { flex-direction: column-reverse; align-items: flex-end; gap: 9px; }
  #ui-daynight { width: 70px; height: 40px; }
  #ui-daynight .ui-daynight__knob { width: 32px; height: 32px; }
  #ui-daynight.is-night .ui-daynight__knob { transform: translateX(31px); }
  #ui-daynight .ui-daynight__opt svg { width: 17px; height: 17px; }
  #ui-help { padding: 9px 15px; font-size: 12px; }
  /* mobile: Help button back in the top-right stack, CTA tooltip BELOW it */
  .ui-help-wrap { position: relative; right: auto; bottom: auto; z-index: auto; }
  /* teks panjang: biarkan wrap & batasi ke lebar layar supaya tidak keluar viewport
     (#ui-topright right:12px, jadi 100vw-24px = sisa 12px di kiri & kanan) */
  .ui-help__cta {
    bottom: auto; top: calc(100% + 9px); right: 0; left: auto;
    font-size: 11.5px; padding: 6px 11px;
    white-space: normal; max-width: calc(100vw - 24px); width: max-content;
    line-height: 1.35; text-align: right;
  }
  .ui-help__cta::after { top: -5px; bottom: auto; right: 18px; border-top-color: transparent; border-bottom-color: var(--ui-accent); }
  body.detail-open #ui-topright { display: none; }
  #ui-detail { top: auto; right: 12px; left: 12px; bottom: 12px; width: auto; max-width: none; max-height: 72vh; transform: translateY(calc(100% + 24px)); }
  #ui-detail.open { transform: translateY(0); }
  .ui-welcome__title { font-size: 30px; }
  .ui-welcome__logo { height: 42px; margin-bottom: 20px; }
  .ui-welcome__desc { font-size: 14px; margin-bottom: 24px; }
  .ui-welcome__eyebrow { letter-spacing: 3.5px; }
}


/* ---- Promo pill (re-opens the promo popup) — mirrors the Help pill, sits below Schedule Test Drive ---- */
#ui-promo-pill {
  display: inline-flex; align-items: center; gap: 8px; cursor: pointer; border: 1px solid var(--ui-border);
  background: var(--ui-panel); color: #fff; font-weight: 700; font-size: 13px; font-family: var(--ui-font);
  padding: 11px 17px; border-radius: 40px; box-shadow: var(--ui-shadow);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  transition: transform 0.15s ease, background 0.15s ease;
  transform-origin: center; animation: ui-wiggle 3.2s ease-in-out infinite;
}
#ui-promo-pill:hover { animation: none; transform: translateY(-2px); background: rgba(40, 46, 52, 0.92); }
.ui-promo-pill__dot { width: 9px; height: 9px; border-radius: 50%; background: var(--ui-accent); flex: 0 0 auto; position: relative; }
.ui-promo-pill__dot::after { content: ""; position: absolute; inset: -4px; border-radius: 50%; border: 2px solid var(--ui-accent); animation: ui-callout-pulse 1.8s ease-out infinite; }

/* ---- Promo popup (CTA images, single or slider) ---- */
#ui-promo {
  position: fixed; inset: 0; z-index: 100060; display: none; align-items: center; justify-content: center;
  padding: 24px;
  background: radial-gradient(120% 80% at 50% 40%, rgba(0, 0, 0, 0.26), rgba(0, 0, 0, 0.52));
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
}
#ui-promo.open { display: flex; animation: ui-photoview-fade 0.2s ease; }
.ui-promo__card { position: relative; max-width: 92vw; animation: ui-photoview-pop 0.25s cubic-bezier(0.2, 0.9, 0.3, 1.2); }
.ui-promo__frame { position: relative; width: min(92vw, 520px); border-radius: 16px; overflow: hidden; box-shadow: 0 24px 80px rgba(0, 0, 0, 0.6); }
.ui-promo__viewport { overflow: hidden; background: transparent; width: 100%; touch-action: pan-y; transition: height 0.35s cubic-bezier(0.2, 0.9, 0.3, 1); }
/* dynamic red promo footer (frontend-rendered; mirrors the old baked-in bar) */
.ui-promo__footer { display: flex; align-items: center; justify-content: space-between; gap: 14px; background: var(--ui-accent); color: #fff; padding: 13px 20px; }
.ui-promo__footer-call { line-height: 1.15; cursor: pointer; }
.ui-promo__footer-call:hover { opacity: 0.92; }
.ui-promo__footer-label { display: block; font-size: 12px; font-weight: 500; opacity: 0.92; margin-bottom: 2px; }
.ui-promo__footer-wa { font-size: 21px; font-weight: 800; letter-spacing: 0.4px; }
.ui-promo__footer-brand { text-align: right; line-height: 1.2; }
.ui-promo__footer-site { display: block; font-size: 15px; font-weight: 800; }
.ui-promo__footer-tnc { display: block; font-size: 11px; font-weight: 500; opacity: 0.85; margin-top: 1px; }
.ui-promo__card.is-slider .ui-promo__viewport { cursor: grab; }
.ui-promo__card.is-dragging .ui-promo__viewport { cursor: grabbing; }
.ui-promo__track { display: flex; align-items: flex-start; transition: transform 0.35s cubic-bezier(0.2, 0.9, 0.3, 1); will-change: transform; }
.ui-promo__slide { flex: 0 0 100%; }
.ui-promo__img { width: 100%; height: auto; display: block; user-select: none; -webkit-user-select: none; -webkit-user-drag: none; }
.ui-promo__close {
  position: absolute; top: 10px; right: 10px; width: 32px; height: 32px; border-radius: 50%; border: none; cursor: pointer; z-index: 3;
  background: rgba(0, 0, 0, 0.45); color: #fff; font-size: 16px; line-height: 1; display: inline-flex; align-items: center; justify-content: center;
  transition: background 0.15s ease;
}
.ui-promo__close:hover { background: rgba(0, 0, 0, 0.7); }
.ui-promo__nav {
  position: absolute; top: 50%; transform: translateY(-50%); width: 40px; height: 40px; border-radius: 50%; border: none; cursor: pointer; z-index: 2;
  background: rgba(0, 0, 0, 0.45); color: #fff; display: none; align-items: center; justify-content: center; transition: background 0.15s ease;
}
.ui-promo__nav:hover { background: rgba(0, 0, 0, 0.72); }
.ui-promo__nav svg { width: 22px; height: 22px; }
.ui-promo__nav--prev { left: 10px; }
.ui-promo__nav--prev svg { transform: rotate(180deg); }
.ui-promo__nav--next { right: 10px; }
.ui-promo__card.is-slider .ui-promo__nav { display: flex; }
.ui-promo__dots { display: none; justify-content: center; gap: 7px; margin-top: 12px; }
.ui-promo__card.is-slider .ui-promo__dots { display: flex; }
.ui-promo__dot { width: 8px; height: 8px; border-radius: 50%; border: none; cursor: pointer; padding: 0; background: rgba(255, 255, 255, 0.4); transition: background 0.15s ease, transform 0.15s ease; }
.ui-promo__dot.active { background: #fff; transform: scale(1.25); }

@media (max-width: 640px) {
  #ui-promo-pill { padding: 9px 15px; font-size: 12px; }
  .ui-promo__nav { width: 34px; height: 34px; }
  .ui-promo__footer { padding: 11px 15px; gap: 10px; }
  .ui-promo__footer-wa { font-size: 18px; }
  .ui-promo__footer-site { font-size: 13px; }
  .ui-promo__footer-label { font-size: 11px; }
  .ui-promo__footer-tnc { font-size: 10px; }
}

/* ---------- KPR / mortgage calculator (info-card panel + unit detail) ---------- */
#ui-kpr, #ui-kpr * { box-sizing: border-box; }
#ui-kpr {
  position: fixed; top: 18px; right: 18px; bottom: 18px; width: 380px;
  max-width: calc(100vw - 36px); z-index: 1031;
  color: var(--ui-text); font-family: var(--ui-font);
  background: var(--ui-panel-solid); border: 1px solid var(--ui-border);
  border-radius: var(--ui-radius); box-shadow: var(--ui-shadow);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  overflow-y: auto; overflow-x: hidden;
  transform: translateX(calc(100% + 24px)); opacity: 0;
  transition: transform .36s cubic-bezier(.4,0,.2,1), opacity .36s ease;
}
#ui-kpr.open { transform: translateX(0); opacity: 1; }
.ui-calc__body { padding: 20px 20px 24px; }
.ui-calc__modelrow { display: flex; flex-direction: column; gap: 8px; margin: 16px 0 18px; }
.ui-calc__modelsel { width: 100%; padding: 12px; border-radius: 10px; border: 1px solid var(--ui-border); background: rgba(255,255,255,.05); color: #fff; font-size: 15px; font-weight: 700; -webkit-appearance: none; appearance: none; cursor: pointer; }
.ui-calc__modelsel:focus { border-color: var(--ui-accent); outline: none; }
.ui-calc__modelsel option { color: #111; }

.ui-detail__credit { margin: 0 0 18px; }
.ui-credit { border: 1px solid var(--ui-border); border-radius: 12px; padding: 14px; background: rgba(255,255,255,.03); }
.ui-credit__row { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 11px; }
.ui-credit__lbl { color: var(--ui-text-dim); font-size: 12.5px; flex-shrink: 0; }
.ui-credit__box { display: flex; align-items: center; gap: 6px; padding: 8px 11px; border-radius: 9px; border: 1px solid var(--ui-border); background: rgba(255,255,255,.05); min-width: 0; }
.ui-credit__box:focus-within { border-color: var(--ui-accent); box-shadow: 0 0 0 2px rgba(26,155,148,.18); }
.ui-credit__affix { color: var(--ui-text-dim); font-size: 12px; font-weight: 600; flex-shrink: 0; }
.ui-credit__num { width: 100%; min-width: 28px; border: none; background: transparent; color: #fff; font-size: 13.5px; font-weight: 700; text-align: right; outline: none; padding: 0; }
.ui-credit__row > .ui-credit__box { width: 162px; }
.ui-credit__sel { width: 162px; padding: 8px 11px; border-radius: 9px; border: 1px solid var(--ui-border); background: rgba(255,255,255,.05); color: #fff; font-size: 13.5px; font-weight: 700; -webkit-appearance: none; appearance: none; cursor: pointer; }
.ui-credit__sel:focus { border-color: var(--ui-accent); outline: none; }
.ui-credit__sel option { color: #111; }
.ui-credit__dprow { margin-bottom: 9px; }
.ui-credit__dprow .ui-credit__lbl { display: block; margin-bottom: 8px; }
.ui-credit__dp { display: flex; gap: 8px; }
.ui-credit__dp .ui-credit__box:first-child { width: 82px; flex-shrink: 0; }
.ui-credit__dp .ui-credit__box:last-child { flex: 1; }
.ui-credit__slider { -webkit-appearance: none; appearance: none; width: 100%; height: 4px; border-radius: 3px; background: var(--ui-border); margin: 0 0 13px; cursor: pointer; }
.ui-credit__slider::-webkit-slider-thumb { -webkit-appearance: none; appearance: none; width: 16px; height: 16px; border-radius: 50%; background: var(--ui-accent); border: 2px solid #fff; cursor: pointer; box-shadow: 0 1px 4px rgba(0,0,0,.4); }
.ui-credit__slider::-moz-range-thumb { width: 16px; height: 16px; border-radius: 50%; background: var(--ui-accent); border: 2px solid #fff; cursor: pointer; }
.ui-credit__result { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 14px; border-radius: 10px; background: rgba(26,155,148,.14); border: 1px solid rgba(26,155,148,.38); margin: 4px 0 10px; }
.ui-credit__result > span { font-size: 12px; color: rgba(255,255,255,.82); }
.ui-credit__amount { font-size: 19px; font-weight: 800; color: var(--ui-accent-bright); white-space: nowrap; }
.ui-credit__btn { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; margin: 2px 0 12px; padding: 13px; border: none; border-radius: 40px; background: linear-gradient(135deg, var(--ui-accent), var(--ui-accent-2)); color: var(--ui-on-accent); font-size: 14px; font-weight: 800; cursor: pointer; transition: filter .15s ease, transform .1s ease; box-shadow: 0 8px 22px rgba(26,155,148,.3); }
.ui-credit__btn:hover { filter: brightness(1.08); }
.ui-credit__btn:active { transform: scale(.98); }
.ui-credit__note { margin: 10px 2px 0; font-size: 10.5px; line-height: 1.45; color: rgba(255,255,255,.42); }
.ui-iconbtn.kpr { background: #2f7fed; }

@media (max-width: 768px) {
  #ui-kpr { top: auto; right: 12px; left: 12px; bottom: 12px; width: auto; max-width: none; max-height: 72vh; transform: translateY(calc(100% + 24px)); }
  #ui-kpr.open { transform: translateY(0); }
}

/* ---------- unit offer nudge (30s inside a unit) ---------- */
#ui-discount {
  position: fixed; inset: 0; z-index: 1100; display: flex;
  align-items: center; justify-content: center; padding: 20px;
  background: rgba(0,0,0,.62); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px);
  opacity: 0; visibility: hidden; transition: opacity .28s ease, visibility .28s ease;
}
#ui-discount.open { opacity: 1; visibility: visible; }
.ui-disc__card {
  position: relative; width: 100%; max-width: 380px; padding: 26px 24px 22px;
  border-radius: 18px; border: 1px solid var(--ui-border);
  background: var(--ui-panel-solid); box-shadow: var(--ui-shadow);
  color: var(--ui-text); font-family: var(--ui-font);
  transform: translateY(12px) scale(.98); transition: transform .28s cubic-bezier(.4,0,.2,1);
}
#ui-discount.open .ui-disc__card { transform: translateY(0) scale(1); }
.ui-disc__close {
  position: absolute; top: 12px; right: 12px; width: 30px; height: 30px;
  border: none; border-radius: 50%; cursor: pointer; background: rgba(255,255,255,.1);
  color: #fff; font-size: 15px; line-height: 1; display: inline-flex; align-items: center; justify-content: center;
}
.ui-disc__close:hover { background: rgba(255,255,255,.2); }
.ui-disc__eyebrow { margin: 0 0 6px; font-size: 11px; letter-spacing: 1.5px; text-transform: uppercase; font-weight: 700; color: var(--ui-accent-bright); }
.ui-disc__title { margin: 0 0 8px; font-size: 21px; font-weight: 800; line-height: 1.25; color: #fff; }
.ui-disc__desc { margin: 0 0 16px; font-size: 13px; line-height: 1.5; color: var(--ui-text-dim); }
.ui-disc__form { display: block; }
.ui-disc__field { display: flex; align-items: center; gap: 8px; padding: 11px 13px; border-radius: 11px; border: 1px solid var(--ui-border); background: rgba(255,255,255,.05); }
.ui-disc__field:focus-within { border-color: var(--ui-accent); box-shadow: 0 0 0 2px rgba(26,155,148,.18); }
.ui-disc__prefix { color: var(--ui-text-dim); font-size: 13px; font-weight: 700; flex-shrink: 0; }
.ui-disc__input { width: 100%; border: none; background: transparent; color: #fff; font-size: 14.5px; font-weight: 700; outline: none; padding: 0; }
.ui-disc__agree { display: flex; align-items: flex-start; gap: 9px; margin: 13px 0 4px; cursor: pointer; font-size: 11.5px; line-height: 1.5; color: rgba(255,255,255,.62); }
.ui-disc__cbox { width: 15px; height: 15px; margin: 1px 0 0; flex-shrink: 0; accent-color: var(--ui-accent); cursor: pointer; }
.ui-disc__agree a { color: var(--ui-accent-bright); text-decoration: underline; }
.ui-disc__err { margin: 8px 2px 0; min-height: 14px; font-size: 11.5px; color: #ff6b6b; }
.ui-disc__btn {
  width: 100%; margin-top: 10px; padding: 13px; border: none; border-radius: 40px;
  background: linear-gradient(135deg, var(--ui-accent), var(--ui-accent-2));
  color: var(--ui-on-accent); font-size: 14.5px; font-weight: 800; cursor: pointer;
  box-shadow: 0 8px 22px rgba(26,155,148,.3); transition: filter .15s ease, transform .1s ease;
}
.ui-disc__btn:hover:not(:disabled) { filter: brightness(1.08); }
.ui-disc__btn:active:not(:disabled) { transform: scale(.98); }
.ui-disc__btn:disabled { opacity: .55; cursor: default; }

/* ---------- consent checkbox in the lead registration panel ---------- */
.modal-login .panels_agree {
  display: flex; align-items: flex-start; gap: 9px;
  margin: 12px 0 4px; cursor: pointer;
  font-size: 11.5px; line-height: 1.5; color: #6b7280;
}
.modal-login .panels_agree_cbox {
  width: 15px; height: 15px; margin: 1px 0 0; flex-shrink: 0;
  accent-color: #1A9B94; cursor: pointer;
}
.modal-login .panels_agree a { color: #1A9B94; text-decoration: underline; }
.modal-login .panels_agree.error { color: #e5484d; }
.modal-login .panels_agree.error .panels_agree_cbox { outline: 2px solid #e5484d; outline-offset: 2px; }
.modal-login .panels_agree_err { min-height: 0; }

/* ---------- resume bar (#ui-resume) ----------
   Shown after login so the visitor gets what he clicked for instead of a bare reload.
   The WhatsApp hand-off must stay behind this tap — a window.open() fired after the
   async login chain is treated as a popup and blocked. */
#ui-resume {
  position: fixed; left: 50%; bottom: 26px; z-index: 1055;
  transform: translate(-50%, 140%);
  display: flex; align-items: center; gap: 12px;
  max-width: min(92vw, 560px); padding: 10px 12px 10px 18px;
  background: var(--ui-panel-solid); border: 1px solid var(--ui-border);
  border-radius: 999px; box-shadow: var(--ui-shadow);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  font-family: var(--ui-font); opacity: 0; visibility: hidden;
  transition: transform 0.45s cubic-bezier(0.2, 0.8, 0.25, 1), opacity 0.45s ease, visibility 0.45s;
}
#ui-resume.show { transform: translate(-50%, 0); opacity: 1; visibility: visible; }
.ui-resume__txt { color: var(--ui-text-dim); font-size: 13.5px; white-space: nowrap; }
.ui-resume__btn {
  border: none; cursor: pointer; white-space: nowrap;
  background: linear-gradient(135deg, var(--ui-accent), var(--ui-accent-2));
  color: var(--ui-on-accent); font-family: var(--ui-font); font-weight: 700; font-size: 13.5px;
  padding: 10px 18px; border-radius: 999px; box-shadow: 0 6px 18px rgba(26, 155, 148, 0.32);
  transition: transform 0.15s ease, filter 0.15s ease;
}
.ui-resume__btn:hover { transform: translateY(-1px); filter: brightness(1.06); }
.ui-resume__x {
  border: none; background: transparent; cursor: pointer; flex: 0 0 auto;
  color: var(--ui-text-dim); font-size: 20px; line-height: 1; padding: 4px 8px;
}
.ui-resume__x:hover { color: var(--ui-text); }

/* Street View–style walk vignette (toggled by sgStreetViewLoad) */
body.sg-walking::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 40;
  pointer-events: none;
  background: radial-gradient(ellipse at center, transparent 35%, rgba(0, 0, 0, 0.28) 100%);
  animation: sg-walk-vignette 0.72s ease-in forwards;
}
@keyframes sg-walk-vignette {
  from { opacity: 0; }
  to { opacity: 1; }
}

@media (max-width: 560px) {
  #ui-resume { left: 12px; right: 12px; bottom: 16px; max-width: none; transform: translateY(140%); padding: 10px 8px 10px 14px; }
  #ui-resume.show { transform: translateY(0); }
  .ui-resume__txt { white-space: normal; font-size: 12.5px; }
  .ui-resume__btn { padding: 10px 14px; font-size: 12.5px; }
}

/* No ?src= → hide attributed lead CTAs (Dealerview dv-browse-only parity) */
body.pv-browse-only #ui-testdrive,
body.pv-browse-only .ui-help-wrap,
body.pv-browse-only #ui-promo-pill,
body.pv-browse-only .ui-sales__avatar,
body.pv-browse-only .ui-sales__meta,
body.pv-browse-only .ui-iconbtn.wa,
body.pv-browse-only .ui-iconbtn.sim,
body.pv-browse-only #ui-discount,
body.pv-browse-only #ui-exitconf,
body.pv-browse-only #ui-resume {
  display: none !important;
}
body.pv-browse-only .ui-sales {
  justify-content: flex-end;
}
