/* GPT Map viewer — Dual Color Mode & Apple Liquid Glass Foundation */
:root,
html[data-color-mode="g"],
[data-color-mode="g"],
body.color-mode-g {
  --gh-deep: var(--color-primary, #531a06);               /* Genera Deep Mahogany */
  --gh-primary: var(--color-primary, #531a06);            /* Genera Mahogany Base */
  --gh-primary-light: var(--color-primary-hover, #651f08);/* Genera Mahogany Light */
  --gh-gold: var(--color-accent, #de852c);                /* Genera Solar Orange */
  --gh-gold-light: var(--color-accent-light, #fff4e3);    /* Genera Ivory Light Glow */
  --gh-orange-dark: var(--color-accent-hover, #b35b18);   /* Genera Burnt Orange */
  --bg-cream: var(--color-bg, #fffdf9);                   /* Genera Sunlit Canvas */
  --text-dark: var(--color-text, #382013);                /* Genera Warm Ink Text */
  --text-muted: var(--color-text-muted, #75503a);         /* Genera Secondary Warm Brown */
  --line: var(--color-border, #e8ddd1);                   /* Genera Subtle Warm Border */
}

/* C-MODE: CASA Original Identity (Activated when [data-color-mode="c"]) */
html[data-color-mode="c"],
[data-color-mode="c"],
body.color-mode-c {
  --gh-deep: var(--color-root-dark, #0b1528);
  --gh-primary: var(--color-primary, #0f172a);            /* Deep Navy */
  --gh-primary-light: var(--color-primary-hover, #1e293b);/* Navy Light */
  --gh-gold: var(--color-accent, #3454d1);                /* CASA Blue */
  --gh-gold-light: var(--color-accent-light, #eff6ff);    /* Soft Blue Glow */
  --gh-orange-dark: var(--color-accent-hover, #1e40af);   /* Royal Blue Hover */
  --bg-cream: var(--color-bg, #f8fafc);                   /* Slate Canvas */
  --text-dark: var(--color-text, #0f172a);                /* Slate Text */
  --text-muted: var(--color-text-muted, #64748b);         /* Slate Secondary */
  --line: var(--color-border, #e2e8f0);                   /* Slate Border */
}

* { box-sizing: border-box; }
html, body {
  margin: 0; padding: 0; height: 100%;
  font-family: var(--font-sans, "Roboto", sans-serif);
  background: var(--bg-cream); color: var(--text-dark);
  overflow: hidden;
}

#app {
  display: flex; flex-direction: column; height: 100vh;
}

/* Header — GPT Map Dual Mode Header (Apple Liquid Glass) */
header,
.gmp-global-header-map {
  background: var(--glass-header-bg, var(--gmp-header-bg, rgba(43, 14, 6, 0.88)));
  backdrop-filter: blur(24px) saturate(190%);
  -webkit-backdrop-filter: blur(24px) saturate(190%);
  color: #fff;
  padding: 10px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-shrink: 0;
  box-shadow: var(--glass-header-shadow, 0 10px 32px rgba(67, 18, 5, 0.45));
  z-index: 1000;
  gap: 16px;
  border-bottom: var(--glass-header-border, 1px solid rgba(246, 179, 74, 0.28));
}

.brand {
  display: flex; align-items: center; gap: 10px;
  transition: opacity .2s;
}
.brand:hover {
  opacity: .9;
}
.brand-hex {
  width: 32px; height: 32px; flex-shrink: 0;
  border: 2px solid var(--color-accent, #de852c);
  clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
  display: flex; align-items: center; justify-content: center;
  background: var(--admin-link-bg, rgba(222, 133, 44, 0.16));
  box-shadow: 0 0 10px var(--brand-logo-shadow, rgba(222, 133, 44, 0.35));
}
.brand-hex span {
  font-size: 14px; font-weight: 900; color: #F15E22;
}
.brand-text { line-height: 1.15; }
.brand-text .b1 { font-size: 13.5px; font-weight: 800; letter-spacing: .5px; }
.brand-text .b1 em { color: #F15E22; font-style: normal; font-weight: 700; }
.brand-text .b2 { font-size: 10px; color: rgba(255,255,255,.75); letter-spacing: .3px; }

/* =========================================================================
   iOS-STYLE SEGMENTED SWITCH NAVIGATION
   ========================================================================= */
.gmp-header-nav-ios {
  display: inline-flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  padding: 3px;
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.3);
  margin: 0 4px;
}
.gmp-header-nav-ios .gmp-nav-tab {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 14px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  color: #94a3b8;
  text-decoration: none;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  white-space: nowrap;
}
.gmp-header-nav-ios .gmp-nav-tab:hover {
  color: #ffffff;
}
.gmp-header-nav-ios .gmp-nav-tab.active {
  background: #ffffff;
  color: #0b1d31;
  font-weight: 700;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25), 0 0 1px rgba(0, 0, 0, 0.1);
}
@media (max-width: 900px) {
  .gmp-header-nav-ios {
    display: none;
  }
}

/* =========================================================================
   APPLE LIQUID GLASS AUTH DROPDOWN (IN VIEWER)
   ========================================================================= */
.gmp-auth-dropdown-wrap {
  position: relative;
  display: inline-block;
}
.gmp-auth-dropdown-wrap .gmp-dropdown-trigger {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
}
.gmp-avatar-mini {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid rgba(255,255,255,0.25);
}
.gmp-caret {
  font-size: 9px;
  opacity: 0.7;
}
.gmp-liquid-menu {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  width: 220px;
  background: rgba(11, 29, 49, 0.94);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 12px;
  box-shadow: 0 12px 40px -8px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.15);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 10000;
  overflow: hidden;
}
.gmp-auth-dropdown-wrap.active .gmp-liquid-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.gmp-login-menu {
  width: 280px;
}
.gmp-menu-header {
  padding: 14px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.gmp-menu-header strong {
  display: block;
  color: #fff;
  font-size: 13.5px;
}
.gmp-menu-header span {
  display: block;
  color: #94a3b8;
  font-size: 11.5px;
  margin-top: 3px;
}
.gmp-menu-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 16px;
  color: #cbd5e1;
  font-size: 13px;
  text-decoration: none;
  transition: background 0.2s, color 0.2s;
}
.gmp-menu-item:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}
.gmp-menu-item.gmp-logout {
  color: #fca5a5;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}
.gmp-menu-item.gmp-logout:hover {
  background: rgba(220, 38, 38, 0.15);
  color: #fef2f2;
}
.gmp-ajax-form {
  padding: 18px 20px;
}
.gmp-form-title {
  margin: 0 0 3px;
  font-size: 15px;
  font-weight: 700;
  color: #fff;
}
.gmp-form-desc {
  margin: 0 0 14px;
  font-size: 11.5px;
  color: #94a3b8;
}
.gmp-input-group {
  margin-bottom: 10px;
}
.gmp-input-group input {
  width: 100%;
  padding: 9px 12px;
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 6px;
  color: #fff;
  font-size: 13px;
  outline: none;
  transition: all 0.2s;
  box-sizing: border-box;
}
.gmp-input-group input:focus {
  border-color: #F15E22;
  background: rgba(0, 0, 0, 0.45);
}
.gmp-btn-submit {
  width: 100%;
  padding: 9px;
  background: linear-gradient(135deg, #F15E22 0%, #D84A12 100%);
  color: #fff;
  border: none;
  border-radius: 6px;
  font-weight: 700;
  font-size: 13.5px;
  cursor: pointer;
  transition: all 0.2s;
  box-shadow: 0 4px 12px rgba(241, 94, 34, 0.35);
}
.gmp-btn-submit:hover {
  filter: brightness(1.08);
}
.gmp-btn-submit:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}
.gmp-form-msg {
  padding: 8px 10px;
  border-radius: 6px;
  font-size: 12px;
  margin-bottom: 10px;
  line-height: 1.4;
}

/* Selectors in header */
.header-selectors {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
}
.h-select {
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,122,26,.4);
  color: #fff;
  border-radius: 8px;
  padding: 5px 10px;
  font-size: 12px;
  font-weight: 600;
  outline: none;
  cursor: pointer;
  transition: border-color .2s, background .2s;
}
.h-select:focus, .h-select:hover {
  border-color: #F15E22;
  background: rgba(255,255,255,.18);
}
.h-select option {
  background: var(--gh-deep);
  color: #fff;
}

/* User Account / Auth Button */
.user-btn {
  background: linear-gradient(135deg, #F15E22 0%, #D84A12 100%);
  color: #fff;
  border: none;
  border-radius: 20px;
  padding: 6px 14px;
  font-size: 11.5px;
  font-weight: 700;
  cursor: pointer;
  display: flex; align-items: center; gap: 5px;
  box-shadow: 0 2px 8px rgba(241, 94, 34, 0.35);
  transition: transform .15s, box-shadow .15s;
}
.user-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(241, 94, 34, 0.5);
}

.gmp-btn-back-archive {
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: none;
}
.gmp-btn-back-archive:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.35);
}

/* Toolbar & Legend */
#toolbar {
  position: absolute; top: 12px; left: 12px; z-index: 900;
  display: flex; flex-direction: column; gap: 8px;
}
.tbtn {
  background: #fff; border: 1px solid var(--line); border-radius: 10px;
  padding: 8px 12px; font-size: 12.5px; font-weight: 600; color: var(--text-dark);
  display: flex; align-items: center; gap: 7px; cursor: pointer;
  box-shadow: 0 2px 6px rgba(10,28,48,.1);
  user-select: none;
  transition: box-shadow .15s;
}
.tbtn:hover { box-shadow: 0 4px 10px rgba(10,28,48,.15); }
.tbtn .sw {
  width: 30px; height: 17px; border-radius: 10px; background: #ccd5e0; position: relative; transition: .15s;
}
.tbtn .sw::after {
  content: ""; position: absolute; top: 2px; left: 2px; width: 13px; height: 13px;
  border-radius: 50%; background: #fff; transition: .15s; box-shadow: 0 1px 2px rgba(0,0,0,.3);
}
.tbtn.on .sw { background: var(--gh-gold); }
.tbtn.on .sw::after { left: 15px; }

/* =========================================================================
   UPGRADED LEGEND (STATUS FILTERS, COUNTS, SWITCH TOGGLES & COLLAPSIBLE)
   ========================================================================= */
#legend.lg-card {
  position: absolute;
  bottom: 14px;
  left: 14px;
  z-index: 900;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(226, 232, 240, 0.9);
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(10, 28, 48, 0.16);
  width: 275px;
  max-width: calc(100vw - 28px);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  overflow: hidden;
  user-select: none;
  font-family: inherit;
}

/* Header & Collapse Control */
#legend .lg-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 12px;
  background: rgba(248, 250, 252, 0.85);
  border-bottom: 1px solid rgba(226, 232, 240, 0.8);
  cursor: pointer;
  transition: background 0.15s;
}
#legend .lg-header:hover {
  background: rgba(241, 245, 249, 1);
}
#legend .lg-header-left {
  display: flex;
  align-items: center;
  gap: 6px;
}
#legend .lg-title-text {
  font-weight: 700;
  font-size: 11px;
  color: #1e293b;
  letter-spacing: .4px;
}
#legend .lg-badge-total {
  font-size: 10px;
  font-weight: 700;
  color: var(--gh-gold, #c49646);
  background: rgba(196, 150, 70, 0.12);
  padding: 1px 6px;
  border-radius: 999px;
}
#legend .lg-toggle-btn {
  background: none;
  border: none;
  padding: 2px 4px;
  cursor: pointer;
  color: #64748b;
  display: flex;
  align-items: center;
  justify-content: center;
}
#legend .lg-arrow-icon {
  font-size: 14px;
  line-height: 1;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  display: inline-block;
}

/* Collapsed State (Slide down to bottom-left corner) */
#legend.is-collapsed {
  width: auto;
  border-radius: 999px;
  background: rgba(10, 28, 48, 0.9);
  border-color: rgba(255, 255, 255, 0.2);
  box-shadow: 0 4px 16px rgba(10, 28, 48, 0.25);
}
#legend.is-collapsed .lg-header {
  background: transparent;
  border-bottom: none;
  padding: 7px 14px;
}
#legend.is-collapsed .lg-title-text {
  color: #ffffff;
}
#legend.is-collapsed .lg-badge-total {
  background: rgba(255, 255, 255, 0.2);
  color: #ffffff;
}
#legend.is-collapsed .lg-arrow-icon {
  transform: rotate(180deg);
  color: #ffffff;
}
#legend.is-collapsed .lg-body {
  max-height: 0;
  padding: 0;
  opacity: 0;
  pointer-events: none;
}

/* Body Content */
#legend .lg-body {
  padding: 8px 12px 10px;
  transition: max-height 0.3s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.2s;
  max-height: 480px;
  overflow-y: auto;
}

/* Quick Filter Actions */
#legend .lg-quick-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
  font-size: 10px;
  padding-bottom: 6px;
  border-bottom: 1px dashed rgba(226, 232, 240, 0.8);
}
#legend .lg-act-link {
  background: none;
  border: none;
  padding: 0;
  font-size: 10px;
  font-weight: 600;
  color: #3b82f6;
  cursor: pointer;
  text-decoration: underline;
}
#legend .lg-act-link:hover {
  color: #1d4ed8;
}
#legend .lg-act-sep {
  color: #94a3b8;
}

/* Status Row & Switch */
#legend .lg-status-group {
  margin-bottom: 6px;
}
#legend .lg-status-group:last-child {
  margin-bottom: 0;
}
#legend .lg-row {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 2px 0;
}
#legend .lg-name {
  font-size: 11px;
  color: #334155;
  font-weight: 500;
  flex: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
#legend .lg-count-badge {
  font-size: 12px;
  font-weight: 700;
  color: #0f172a;
  background: #f1f5f9;
  padding: 1px 6px;
  border-radius: 999px;
  margin-left: auto;
}

/* iOS Mini Switch */
#legend .lg-switch {
  position: relative;
  display: inline-block;
  width: 26px;
  height: 15px;
  flex-shrink: 0;
}
#legend .lg-switch input {
  opacity: 0;
  width: 0;
  height: 0;
  position: absolute;
}
#legend .lg-slider {
  position: absolute;
  cursor: pointer;
  top: 0; left: 0; right: 0; bottom: 0;
  background-color: #cbd5e1;
  transition: .2s cubic-bezier(0.4, 0, 0.2, 1);
  border-radius: 20px;
}
#legend .lg-slider:before {
  position: absolute;
  content: "";
  height: 11px;
  width: 11px;
  left: 2px;
  bottom: 2px;
  background-color: white;
  transition: .2s cubic-bezier(0.4, 0, 0.2, 1);
  border-radius: 50%;
  box-shadow: 0 1px 2px rgba(0,0,0,0.25);
}
#legend .lg-switch input:checked + .lg-slider {
  background-color: #10b981;
}
#legend .lg-switch input:checked + .lg-slider:before {
  transform: translateX(11px);
}

/* Expand Button & Sublist of units */
#legend .lg-btn-expand {
  background: none;
  border: none;
  padding: 2px;
  cursor: pointer;
  color: #94a3b8;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 3px;
  transition: all 0.15s;
}
#legend .lg-btn-expand:hover {
  background: #e2e8f0;
  color: #0f172a;
}
#legend .lg-btn-expand .lg-exp-icon {
  font-size: 11px;
  line-height: 1;
  transition: transform 0.2s;
  display: inline-block;
}
#legend .lg-btn-expand.expanded .lg-exp-icon {
  transform: rotate(90deg);
}

#legend .lg-unit-sublist {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  padding: 5px 6px 6px 32px;
  max-height: 110px;
  overflow-y: auto;
  background: rgba(248, 250, 252, 0.85);
  border-radius: 6px;
  margin-top: 3px;
}
#legend .lg-unit-chip {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 2px 5px;
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 4px;
  font-size: 9px;
  color: #1e293b;
  cursor: pointer;
  transition: all 0.15s;
}
#legend .lg-unit-chip:hover {
  border-color: #0284c7;
  color: #0284c7;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}
#legend .lg-unit-chip.is-hidden {
  opacity: 0.4;
  text-decoration: line-through;
  background: #f1f5f9;
}
#legend .lg-unit-chip .chip-eye {
  font-size: 9px;
  opacity: 0.7;
}
#legend .lg-empty-sub {
  font-size: 9.5px;
  color: #94a3b8;
  font-style: italic;
}

/* Map Canvas */
#map { position: absolute; inset: 0; background: #071526 !important; }
.leaflet-container { background: #071526 !important; }
#map .leaflet-tile,
#map .leaflet-tile img {
  max-width: none !important;
  max-height: none !important;
  image-rendering: auto !important;
  filter: none !important;
}

/* SVG Leader Lines & Edge Labels - Hidden as requested */
#leaderSvg, #labelLayer { display: none !important; }

/* Compact Unit Pin Badge right at the lot coordinates */
.geo-unit-marker-wrap {
  position: absolute !important;
  width: 0 !important;
  height: 0 !important;
  background: transparent !important;
  border: none !important;
  overflow: visible !important;
}

/* Badge styling for legend only */
.geo-unit-pin {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 3px;
  background: var(--pin-bg, var(--unit-status-color, var(--gh-primary)));
  color: var(--pin-color, #ffffff);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 10.5px;
  font-weight: 700;
  line-height: 1;
  padding: 4px 7px;
  border-radius: 4px;
  border: 1.5px solid var(--pin-border, #ffffff);
  white-space: nowrap;
  user-select: none;
  letter-spacing: -0.2px;
}

/* 1. MẶC ĐỊNH: KHÔNG HIỂN THỊ PIN-BADGE VÀ ĐUÔI GHIM TRÁNH CHẰNG CHỊT */
.geo-map-pin .pin-badge,
.geo-map-pin .pin-tail {
  display: none !important;
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

/* 2. KHUNG VIỀN Ô CĂN HỘ (BORDER ẨN TRÙM LÊN NÓC NHÀ THEO TỪNG CĂN) */
.geo-map-pin {
  position: absolute;
  left: 0;
  top: 0;
  width: 22px;
  height: 46px;
  transform: translate(-50%, -50%) scale(var(--pin-zoom-scale, 1)) !important;
  transform-origin: center center !important;
  background: transparent;
  border: 1.5px solid transparent;
  border-radius: 2px;
  cursor: pointer;
  pointer-events: auto;
  z-index: 25;
  display: flex !important;
  align-items: center;
  justify-content: center;
  transition: all 0.15s cubic-bezier(0.16, 1, 0.3, 1);
}

/* RÊ CHUỘT VÀO (HOVER) HOẶC ACTIVE:
   1. Highlight căn đó lên: Viền đỏ rực rỡ y hệt ô màu đỏ anh vẽ
   2. TỰ MỞ POPUP THÔNG TIN CĂN */
.geo-map-pin:hover,
.geo-map-pin.active {
  background: rgba(239, 68, 68, 0.26) !important;
  border: 2px solid #ef4444 !important;
  box-shadow: 0 0 16px rgba(239, 68, 68, 0.9), inset 0 0 8px rgba(239, 68, 68, 0.45) !important;
  z-index: 999999 !important;
  transform: translate(-50%, -50%) scale(calc(var(--pin-zoom-scale, 1) * 1.08)) !important;
}

/* TỰ MỞ POPUP CARD KHI RÊ CHUỘT */
.geo-map-pin:hover .gmp-hover-card,
.geo-map-pin.active .gmp-hover-card {
  display: block !important;
  opacity: 1 !important;
  visibility: visible !important;
  pointer-events: auto !important;
  transform: translateX(-50%) translateY(0) !important;
}

/* Chỉ khi người dùng bật chế độ "Hiện tất cả ghim" thì mới hiện badge */
body.show-all-pins .geo-map-pin .pin-badge {
  display: inline-flex !important;
  opacity: 1 !important;
  visibility: visible !important;
  pointer-events: auto !important;
}
body.show-all-pins .geo-map-pin .pin-tail {
  display: block !important;
  opacity: 1 !important;
  visibility: visible !important;
}
body.show-all-pins .geo-map-pin {
  width: auto !important;
  height: auto !important;
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  transform: translate(-50%, 0) scale(var(--pin-zoom-scale, 1)) !important;
}

.geo-map-pin .pin-code,
.geo-unit-pin .pin-code {
  font-weight: 700;
  text-shadow: 0 1px 1px rgba(0, 0, 0, 0.2);
}

.geo-map-pin .pin-price,
.geo-unit-pin .pin-price {
  font-size: 9px;
  font-weight: 600;
  opacity: 0.95;
  margin-left: 2px;
  padding-left: 3px;
  border-left: 1px solid rgba(255, 255, 255, 0.4);
}

.geo-map-pin .stt-mini-icon,
.geo-unit-pin .stt-mini-icon {
  font-size: 8px;
}

/* Dynamic statuses are now generated via inline PHP in viewer.php */

/* Data Status Badge */
#dataStatus {
  position: absolute; top: 12px; right: 12px; z-index: 900;
  background: rgba(255,255,255,.97); border: 1px solid var(--line); border-radius: 10px;
  padding: 8px 12px; font-size: 11px; color: var(--text-muted);
  box-shadow: 0 2px 8px rgba(10,28,48,.1); max-width: 220px; line-height: 1.4;
}
#dataStatus .ds-title { font-weight: 700; color: var(--text-dark); font-size: 11px; }

/* Detail Panel / Drawer: Permanently disable legacy overlay to guarantee zero dark screen */
#overlay, #overlay.show { display: none !important; pointer-events: none !important; }
#panel, #panel.open { display: none !important; pointer-events: none !important; }

.panel-grip { width: 36px; height: 4px; background: #dbe3ed; border-radius: 3px; margin: 9px auto 2px; }
.panel-head { padding: 6px 20px 14px; border-bottom: 1px solid var(--line); position: relative; }
.panel-head .khu-tag {
  display: inline-block; font-size: 10.5px; font-weight: 700; color: #fff;
  background: linear-gradient(135deg, var(--gh-gold), var(--gh-orange-dark));
  padding: 2px 9px; border-radius: 20px; margin-bottom: 7px;
}
.panel-head .code { font-size: 22px; font-weight: 800; color: var(--gh-deep); }
.panel-head .sub { font-size: 12px; color: var(--text-muted); margin-top: 2px; }
.panel-close { position: absolute; top: 6px; right: 14px; width: 28px; height: 28px; border-radius: 50%; background: var(--bg-cream); display: flex; align-items: center; justify-content: center; cursor: pointer; font-size: 16px; color: var(--text-muted); }

.panel-body { padding: 16px 20px 22px; }
.info-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 14px; }
.info-cell { background: var(--bg-cream); border-radius: 10px; padding: 9px 12px; }
.info-cell .lab { font-size: 10px; color: var(--text-muted); text-transform: uppercase; letter-spacing: .3px; }
.info-cell .val { font-size: 15px; font-weight: 700; color: var(--text-dark); margin-top: 2px; }

.price-hero {
  background: linear-gradient(135deg, var(--gh-deep), var(--gh-primary));
  border: 1px solid rgba(255,122,26,.3);
  border-radius: 12px; padding: 14px 16px; color: #fff; margin-bottom: 14px;
}
.price-hero .lab { font-size: 11px; color: var(--gh-gold-light); letter-spacing: .3px; font-weight: 600; }
.price-hero .big { font-size: 26px; font-weight: 800; margin-top: 3px; color: #fff; }
.price-hero .unitprice { font-size: 11.5px; color: rgba(255,255,255,.8); margin-top: 4px; }

.breakdown { border: 1px solid var(--line); border-radius: 10px; overflow: hidden; margin-bottom: 14px; }
.bd-row { display: flex; justify-content: space-between; padding: 9px 13px; font-size: 12px; border-bottom: 1px solid var(--line); }
.bd-row:last-child { border-bottom: none; }
.bd-row.total { background: var(--bg-cream); font-weight: 700; }
.bd-row .l { color: var(--text-muted); }
.bd-row .r { font-weight: 600; }

.compare-btn {
  margin-top: 14px; width: 100%; padding: 11px; border-radius: 10px;
  border: 1.5px solid var(--gh-gold);
  background: #fff; color: var(--gh-gold); font-weight: 700; font-size: 13px; cursor: pointer;
  display: flex; align-items: center; justify-content: center; gap: 7px; transition: .15s;
}
.compare-btn:hover { background: rgba(255,122,26,.08); }
.compare-btn.added {
  background: linear-gradient(135deg, var(--gh-gold), var(--gh-orange-dark));
  color: #fff; border-color: transparent;
}

/* Compare Floating Action Button */
#compareFab {
  position: fixed; right: 16px; bottom: 18px; z-index: 1400;
  background: var(--gh-deep); color: #fff; border-radius: 30px; padding: 12px 18px;
  font-weight: 700; font-size: 13px; box-shadow: 0 4px 16px rgba(6,19,34,.4);
  display: none; align-items: center; gap: 9px; cursor: pointer;
  border: 1.5px solid var(--gh-gold);
}
#compareFab.show { display: flex; }
#compareFab .badge {
  background: linear-gradient(135deg, var(--gh-gold), var(--gh-orange-dark));
  color: #fff; border-radius: 50%; width: 21px; height: 21px;
  display: flex; align-items: center; justify-content: center; font-size: 11.5px; flex-shrink: 0;
}

/* Compare View */
#compareView {
  position: fixed; inset: 0; z-index: 2000; background: var(--bg-cream);
  display: none; flex-direction: column;
}
#compareView.open { display: flex; }
.cmp-head {
  background: linear-gradient(135deg, var(--gh-deep), var(--gh-primary)); color: #fff;
  padding: 12px 16px; display: flex; align-items: center; justify-content: space-between; flex-shrink: 0;
  border-bottom: 1px solid rgba(255,122,26,.3);
}
.cmp-title { font-size: 14px; font-weight: 800; }
.cmp-actions { display: flex; gap: 8px; align-items: center; }
.cmp-actions button { border: none; border-radius: 8px; padding: 8px 12px; font-size: 11.5px; font-weight: 700; cursor: pointer; }
.cmp-btn-dl { background: linear-gradient(135deg, var(--gh-gold), var(--gh-orange-dark)); color: #fff; }
.cmp-btn-clear { background: rgba(255,255,255,.15); color: #fff; }
.cmp-btn-close { background: rgba(255,255,255,.15); color: #fff; width: 30px; height: 30px; border-radius: 50%; }

#cmpScroll { flex: 1; overflow: auto; padding: 14px; }
#cmpTable { border-collapse: collapse; background: #fff; border-radius: 12px; overflow: hidden; width: 100%; box-shadow: 0 2px 10px rgba(6,19,34,.08); }
.cmp-col-label {
  position: sticky; left: 0; background: var(--bg-cream); z-index: 5;
  font-size: 11.5px; color: var(--text-muted); font-weight: 600;
  padding: 10px 14px; white-space: nowrap; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line);
}
.cmp-section-row td {
  background: var(--gh-deep); color: var(--gh-gold-light); font-size: 10px; font-weight: 700;
  text-transform: uppercase; padding: 7px 14px;
}
.cmp-unit-col {
  text-align: center; padding: 10px 12px; font-size: 12.5px; font-weight: 600;
  border-right: 1px solid var(--line); border-bottom: 1px solid var(--line);
}
.cmp-best { background: #fff8f2; color: var(--gh-orange-dark)!important; font-weight: 800; }
.cmp-best small { display: block; font-size: 8px; color: var(--gh-gold); font-weight: 700; margin-top: 2px; }

/* Login Modal */
#loginModal {
  position: fixed; inset: 0; z-index: 2500;
  background: rgba(6,19,34,.65);
  display: none; align-items: center; justify-content: center; padding: 16px;
}
#loginModal.show { display: flex; }
.login-box {
  background: #fff; border-radius: 16px; padding: 24px; width: 100%; max-width: 360px;
  box-shadow: 0 10px 30px rgba(6,19,34,.35); text-align: center; position: relative;
}
.login-box .icon { font-size: 38px; margin-bottom: 8px; }
.login-box h3 { margin: 0 0 6px; font-size: 18px; color: var(--gh-deep); font-weight: 800; }
.login-box p { margin: 0 0 16px; font-size: 12px; color: var(--text-muted); }
.login-box input {
  width: 100%; padding: 10px 14px; border: 1px solid var(--line); border-radius: 8px;
  margin-bottom: 10px; font-size: 13px; outline: none;
  transition: border-color .15s;
}
.login-box input:focus { border-color: var(--gh-gold); }
.login-box button {
  width: 100%; padding: 11px; border: none; border-radius: 8px;
  background: linear-gradient(135deg, var(--gh-gold), var(--gh-orange-dark));
  color: #fff; font-size: 13px; font-weight: 700; cursor: pointer;
  box-shadow: 0 2px 8px rgba(255,122,26,.3);
}
.login-close { position: absolute; top: 12px; right: 14px; cursor: pointer; color: #999; font-size: 18px; }

/* === U1: Tile Loading Progress & Shimmer === */
#gh-tile-progress {
  position: absolute; top: 0; left: 0; right: 0; height: 3px; z-index: 950;
  background: linear-gradient(90deg, var(--gh-gold), var(--gh-gold-light), #fff);
  width: 0%; opacity: 0;
  transition: width .25s ease, opacity .4s ease;
  pointer-events: none;
  box-shadow: 0 0 8px rgba(255,122,26,.8);
}
#gh-tile-progress.loading {
  opacity: 1;
}

#gh-tile-overlay {
  position: absolute; inset: 0; z-index: 640; pointer-events: none;
  background: repeating-linear-gradient(
    -45deg,
    rgba(10,28,48,.04) 0px,
    rgba(10,28,48,.04) 14px,
    rgba(255,255,255,.05) 14px,
    rgba(255,255,255,.05) 28px
  );
  opacity: 0;
  transition: opacity .4s ease;
}
#gh-tile-overlay.active {
  opacity: 1;
  animation: shimmerMove 1.5s linear infinite;
}
@keyframes shimmerMove {
  0% { background-position: 0 0; }
  100% { background-position: 56px 0; }
}

/* === U4: Header Search Box === */
#gh-search-wrap {
  position: relative;
  display: flex;
  align-items: center;
  min-width: 170px;
  max-width: 240px;
}
.gh-search-icon {
  position: absolute; left: 10px; font-size: 11px;
  opacity: .7; pointer-events: none;
}
#gh_search_input {
  width: 100%;
  background: rgba(255,255,255,.14);
  border: 1px solid rgba(255,122,26,.45);
  border-radius: 20px;
  padding: 5px 12px 5px 28px;
  color: #fff;
  font-size: 12px;
  outline: none;
  transition: background .2s, border-color .2s, box-shadow .2s;
}
#gh_search_input::placeholder {
  color: rgba(255,255,255,.6);
}
#gh_search_input:focus {
  background: rgba(255,255,255,.22);
  border-color: var(--gh-gold);
  box-shadow: 0 0 0 2px rgba(255,122,26,.3);
}

#gh_search_dropdown {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  background: var(--gh-deep);
  border: 1px solid rgba(255,122,26,.4);
  border-radius: 10px;
  overflow: hidden;
  max-height: 280px;
  overflow-y: auto;
  z-index: 1200;
  box-shadow: 0 8px 24px rgba(6,19,34,.5);
  display: none;
}
.gh-search-item {
  padding: 8px 12px;
  border-bottom: 1px solid rgba(255,255,255,.07);
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  transition: background .15s;
}
.gh-search-item:last-child {
  border-bottom: none;
}
.gh-search-item:hover, .gh-search-item.highlighted {
  background: rgba(255,122,26,.2);
}
.gh-search-item .code {
  font-weight: 700;
  color: var(--gh-gold-light);
}
.gh-search-item .status-badge {
  font-size: 10px;
  padding: 2px 6px;
  border-radius: 4px;
  font-weight: 600;
}
/* Search dropdown status badges are styled dynamically */
.gh-search-empty {
  padding: 12px;
  color: rgba(255,255,255,.5);
  font-size: 11.5px;
  text-align: center;
}

/* === U5: Interactive Mini-Map Control === */
.gh-minimap-ctrl {
  background: var(--gh-deep);
  border: 1.5px solid var(--gh-gold);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 14px rgba(6,19,34,.4);
  position: relative;
  cursor: crosshair;
  user-select: none;
  margin-right: 12px!important;
  margin-bottom: 14px!important;
}
.gh-minimap-header {
  background: linear-gradient(90deg, var(--gh-deep), var(--gh-primary));
  color: var(--gh-gold);
  font-size: 9px;
  font-weight: 700;
  padding: 3px 6px;
  text-transform: uppercase;
  letter-spacing: .4px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid rgba(255,122,26,.25);
}
.gh-minimap-stage {
  position: relative;
  width: 150px;
  height: 95px;
  background-color: #0b1e33;
  background-size: contain;
  background-position: center center;
  background-repeat: no-repeat;
  overflow: hidden;
}
.gh-minimap-box {
  position: absolute;
  border: 1.5px solid var(--gh-gold);
  background: rgba(255,122,26,.22);
  box-shadow: 0 0 0 1px rgba(0,0,0,.4);
  pointer-events: none;
  border-radius: 2px;
  transition: all .08s ease-out;
}
.gh-minimap-toggle {
  cursor: pointer;
  opacity: .8;
  font-size: 10px;
  color: var(--gh-gold);
}
.gh-minimap-toggle:hover { opacity: 1; }


/* Dynamic LOD rules are generated dynamically in viewer.php based on _status_level */



/* =========================================================================
   FRONTEND SLIDE-OUT DRAWER — DUAL COLOR MODE (G-MODE & C-MODE)
   ========================================================================= */

/* ── 1. G-MODE: Genera Solar Luxury (Default & [data-color-mode="g"]) ── */
:root,
html[data-color-mode="g"],
[data-color-mode="g"],
body.color-mode-g {
  --fe-drawer-bg: rgba(255, 253, 249, 0.96);
  --fe-drawer-border: 1px solid rgba(246, 179, 74, 0.28);
  --fe-drawer-shadow: -24px 0 60px rgba(67, 18, 5, 0.22), -1px 0 0 rgba(246, 179, 74, 0.15);

  --fe-drawer-head-bg: linear-gradient(135deg, rgba(67, 18, 5, 0.98) 0%, rgba(117, 48, 11, 0.98) 100%);
  --fe-drawer-head-border: 1px solid rgba(246, 179, 74, 0.32);
  --fe-drawer-head-sub: rgba(242, 235, 196, 0.85);
  --fe-drawer-head-title: #ffffff;
  --fe-drawer-head-code: #f6b34a;

  --fe-btn-focus-bg: rgba(246, 179, 74, 0.16);
  --fe-btn-focus-border: rgba(246, 179, 74, 0.38);
  --fe-btn-focus-color: #fdf3df;
  --fe-btn-focus-hover-bg: rgba(246, 179, 74, 0.32);
  --fe-btn-focus-hover-border: rgba(246, 179, 74, 0.75);
  --fe-btn-focus-shadow: 0 4px 16px rgba(222, 133, 44, 0.35);

  --fe-btn-close-bg: rgba(255, 255, 255, 0.12);
  --fe-btn-close-color: rgba(255, 255, 255, 0.88);
  --fe-btn-close-hover-bg: rgba(246, 179, 74, 0.28);
  --fe-btn-close-hover-color: #f6b34a;

  --fe-card-group-bg: linear-gradient(135deg, rgba(255, 255, 255, 0.92) 0%, rgba(253, 248, 240, 0.92) 100%);
  --fe-card-group-border: 1px solid rgba(232, 221, 209, 0.9);
  --fe-card-group-head: #531a06;
  --fe-card-group-head-border: 1px solid rgba(232, 221, 209, 0.85);
  --fe-card-group-label: #75503a;
  --fe-card-group-val: #382013;
  --fe-card-group-row-border: 1px dashed rgba(232, 221, 209, 0.9);

  --fe-status-banner-bg: rgba(255, 255, 255, 0.92);
  --fe-status-banner-border: 1px solid rgba(232, 221, 209, 0.85);
  --fe-status-title-color: #382013;
  --fe-status-desc-color: #75503a;

  --fe-price-box-bg: linear-gradient(135deg, rgba(254, 243, 223, 0.75) 0%, rgba(255, 253, 249, 0.95) 100%);
  --fe-price-box-border: 1px solid rgba(246, 179, 74, 0.35);
  --fe-price-box-border-accent: #de852c;
  --fe-price-box-label: #75503a;
  --fe-price-box-val: #93370d;

  --fe-share-btn-bg: linear-gradient(135deg, #ffffff 0%, #fdf7ee 100%);
  --fe-share-btn-border: 1px solid rgba(232, 221, 209, 0.95);
  --fe-share-btn-color: #531a06;
  --fe-share-btn-hover-bg: #faeedb;
  --fe-share-btn-hover-border: #de852c;
  --fe-share-btn-hover-color: #b35b18;
  --fe-share-btn-hover-shadow: 0 4px 14px rgba(222, 133, 44, 0.22);

  --fe-note-bg: linear-gradient(135deg, #fffcf0 0%, #fef8e3 100%);
  --fe-note-border: 1px solid rgba(246, 179, 74, 0.45);
  --fe-note-accent: #de852c;
  --fe-note-color: #75300b;

  --fe-footer-bg: rgba(255, 253, 249, 0.96);
  --fe-footer-border: 1px solid rgba(232, 221, 209, 0.9);
  --fe-footer-shadow: 0 -8px 24px rgba(67, 18, 5, 0.08);

  --fe-btn-cta-bg: linear-gradient(135deg, #f6b34a 0%, #de852c 50%, #b35b18 100%);
  --fe-btn-cta-color: #ffffff;
  --fe-btn-cta-shadow: 0 6px 20px rgba(222, 133, 44, 0.35);
  --fe-btn-cta-hover-shadow: 0 8px 26px rgba(222, 133, 44, 0.5);

  --fe-btn-outline-bg: rgba(255, 255, 255, 0.85);
  --fe-btn-outline-border: 1.5px solid #de852c;
  --fe-btn-outline-color: #b35b18;
  --fe-btn-outline-hover-bg: #de852c;
  --fe-btn-outline-hover-color: #ffffff;

  --fe-calc-card-bg: linear-gradient(135deg, rgba(255, 255, 255, 0.92) 0%, rgba(253, 248, 240, 0.92) 100%);
  --fe-calc-card-border: 1px solid rgba(232, 221, 209, 0.85);
  --fe-calc-head-bg: rgba(247, 239, 228, 0.8);
  --fe-calc-head-color: #531a06;

  --fe-scroll-thumb: #e5a23a;
  --fe-scroll-track: rgba(67, 18, 5, 0.05);
}

/* ── 2. C-MODE: CASA Original Identity (Activated when [data-color-mode="c"]) ── */
html[data-color-mode="c"],
[data-color-mode="c"],
body.color-mode-c {
  --fe-drawer-bg: rgba(248, 250, 252, 0.96);
  --fe-drawer-border: 1px solid rgba(52, 84, 209, 0.25);
  --fe-drawer-shadow: -24px 0 60px rgba(15, 23, 42, 0.25), -1px 0 0 rgba(255, 255, 255, 0.25);

  --fe-drawer-head-bg: linear-gradient(135deg, #0b1528 0%, #0f172a 50%, #1e293b 100%);
  --fe-drawer-head-border: 1px solid rgba(255, 255, 255, 0.14);
  --fe-drawer-head-sub: rgba(148, 163, 184, 0.9);
  --fe-drawer-head-title: #ffffff;
  --fe-drawer-head-code: #38bdf8;

  --fe-btn-focus-bg: rgba(56, 189, 248, 0.14);
  --fe-btn-focus-border: rgba(56, 189, 248, 0.35);
  --fe-btn-focus-color: #e0f2fe;
  --fe-btn-focus-hover-bg: rgba(56, 189, 248, 0.28);
  --fe-btn-focus-hover-border: rgba(56, 189, 248, 0.7);
  --fe-btn-focus-shadow: 0 4px 16px rgba(56, 189, 248, 0.3);

  --fe-btn-close-bg: rgba(255, 255, 255, 0.1);
  --fe-btn-close-color: rgba(255, 255, 255, 0.85);
  --fe-btn-close-hover-bg: rgba(56, 189, 248, 0.22);
  --fe-btn-close-hover-color: #38bdf8;

  --fe-card-group-bg: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(241, 245, 249, 0.95) 100%);
  --fe-card-group-border: 1px solid #e2e8f0;
  --fe-card-group-head: #0f172a;
  --fe-card-group-head-border: 1px solid #e2e8f0;
  --fe-card-group-label: #64748b;
  --fe-card-group-val: #0f172a;
  --fe-card-group-row-border: 1px dashed #e2e8f0;

  --fe-status-banner-bg: rgba(255, 255, 255, 0.95);
  --fe-status-banner-border: 1px solid #e2e8f0;
  --fe-status-title-color: #0f172a;
  --fe-status-desc-color: #475569;

  --fe-price-box-bg: linear-gradient(135deg, rgba(239, 246, 255, 0.8) 0%, #ffffff 100%);
  --fe-price-box-border: 1px solid rgba(52, 84, 209, 0.28);
  --fe-price-box-border-accent: #3454d1;
  --fe-price-box-label: #64748b;
  --fe-price-box-val: #1e40af;

  --fe-share-btn-bg: linear-gradient(135deg, #ffffff 0%, #f1f5f9 100%);
  --fe-share-btn-border: 1px solid #cbd5e1;
  --fe-share-btn-color: #0f172a;
  --fe-share-btn-hover-bg: #e2e8f0;
  --fe-share-btn-hover-border: #3454d1;
  --fe-share-btn-hover-color: #1e40af;
  --fe-share-btn-hover-shadow: 0 4px 14px rgba(52, 84, 209, 0.2);

  --fe-note-bg: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
  --fe-note-border: 1px solid rgba(52, 84, 209, 0.35);
  --fe-note-accent: #3454d1;
  --fe-note-color: #1e40af;

  --fe-footer-bg: rgba(248, 250, 252, 0.96);
  --fe-footer-border: 1px solid #e2e8f0;
  --fe-footer-shadow: 0 -8px 24px rgba(15, 23, 42, 0.08);

  --fe-btn-cta-bg: linear-gradient(135deg, #3454d1 0%, #1e40af 100%);
  --fe-btn-cta-color: #ffffff;
  --fe-btn-cta-shadow: 0 6px 20px rgba(52, 84, 209, 0.35);
  --fe-btn-cta-hover-shadow: 0 8px 26px rgba(52, 84, 209, 0.5);

  --fe-btn-outline-bg: rgba(255, 255, 255, 0.85);
  --fe-btn-outline-border: 1.5px solid #3454d1;
  --fe-btn-outline-color: #3454d1;
  --fe-btn-outline-hover-bg: #3454d1;
  --fe-btn-outline-hover-color: #ffffff;

  --fe-calc-card-bg: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(241, 245, 249, 0.95) 100%);
  --fe-calc-card-border: 1px solid #e2e8f0;
  --fe-calc-head-bg: #f1f5f9;
  --fe-calc-head-color: #0f172a;

  --fe-scroll-thumb: #3454d1;
  --fe-scroll-track: rgba(15, 23, 42, 0.05);
}

/* ── 3. DRAWER CONTAINER & LIQUID GLASS MATERIAL ── */
.gmp-fe-drawer-overlay {
    position: fixed;
    top: 0; right: 0; bottom: 0; left: 0;
    background: transparent;
    z-index: 10000;
    display: none;
    justify-content: flex-end;
    pointer-events: none;
}
.gmp-fe-drawer-overlay.active { display: flex; }

.gmp-fe-drawer-panel {
    width: 440px; max-width: 90vw;
    background: var(--fe-drawer-bg);
    backdrop-filter: blur(28px) saturate(190%);
    -webkit-backdrop-filter: blur(28px) saturate(190%);
    border-left: var(--fe-drawer-border);
    height: 100%;
    box-shadow: var(--fe-drawer-shadow);
    transform: translateX(100%);
    transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1), background 0.3s ease, border-color 0.3s ease;
    display: flex; flex-direction: column;
    pointer-events: auto;
    position: relative;
}
.gmp-fe-drawer-overlay.active .gmp-fe-drawer-panel { transform: translateX(0); }

/* Top Status Ambient Stripe */
.gmp-fe-status-stripe {
    height: 4px;
    width: 100%;
    background: var(--unit-status-color, #de852c);
    transition: background 0.3s ease;
    flex-shrink: 0;
}

/* ── 4. DRAWER HEADER (Apple Liquid Glass) ── */
.gmp-fe-drawer-header {
    padding: 16px 20px;
    background: var(--fe-drawer-head-bg);
    color: #fff;
    display: flex; justify-content: space-between; align-items: center;
    border-bottom: var(--fe-drawer-head-border);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    transition: background 0.3s ease, border-color 0.3s ease;
    flex-shrink: 0;
}
.gmp-fe-header-left {
    display: flex;
    align-items: center;
    gap: 12px;
}
.gmp-fe-pin-avatar {
    display: flex;
    flex-direction: column;
    align-items: center;
    filter: drop-shadow(0 2px 5px rgba(0,0,0,0.3));
}
.gmp-fe-pin-avatar .avatar-badge {
    background: var(--avatar-bg, #FF7A1A);
    color: #fff;
    font-size: 11px;
    font-weight: 800;
    padding: 3px 8px;
    border-radius: 4px;
    letter-spacing: 0.5px;
    line-height: 1.2;
    transition: background 0.3s;
}
.gmp-fe-pin-avatar .avatar-tail {
    display: block;
    margin-top: -1px;
}
.gmp-fe-pin-avatar .avatar-tail-fill {
    fill: var(--avatar-bg, var(--unit-status-color, #FF7A1A));
    transition: fill 0.3s;
}
.gmp-fe-header-text .gmp-fe-subtitle {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: var(--fe-drawer-head-sub);
    font-weight: 600;
    transition: color 0.3s ease;
}
.gmp-fe-header-text h2 {
    margin: 2px 0 0 0;
    font-size: 19px;
    color: var(--fe-drawer-head-title);
    font-weight: 700;
    letter-spacing: -0.2px;
}
.gmp-fe-header-text h2 span {
    color: var(--fe-drawer-head-code);
    transition: color 0.3s ease;
}

/* Header Actions & Focus Button */
.gmp-fe-header-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}
.gmp-fe-btn-focus {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: var(--fe-btn-focus-bg);
    border: var(--fe-btn-focus-border);
    border-radius: 999px;
    color: var(--fe-btn-focus-color);
    font-size: 11px;
    font-weight: 700;
    padding: 6px 12px;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
    line-height: 1.2;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}
.gmp-fe-btn-focus:hover {
    background: var(--fe-btn-focus-hover-bg);
    border-color: var(--fe-btn-focus-hover-border);
    box-shadow: var(--fe-btn-focus-shadow);
    transform: translateY(-1px);
}
.gmp-fe-btn-focus span { font-size: 13px; }

.gmp-fe-close {
    background: var(--fe-btn-close-bg);
    border: none;
    color: var(--fe-btn-close-color);
    font-size: 26px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    line-height: 1;
    padding: 0;
    flex-shrink: 0;
}
.gmp-fe-close:hover {
    background: var(--fe-btn-close-hover-bg);
    color: var(--fe-btn-close-hover-color);
    transform: scale(1.08);
}

/* ── 5. DRAWER BODY & SCROLLBAR ── */
.gmp-fe-drawer-body {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
    transition: opacity 0.22s ease, transform 0.22s ease;
}
.gmp-fe-drawer-body.is-switching {
    opacity: 0.25;
    transform: translateY(6px);
}
.gmp-fe-drawer-body::-webkit-scrollbar {
    width: 6px;
}
.gmp-fe-drawer-body::-webkit-scrollbar-track {
    background: var(--fe-scroll-track);
    border-radius: 4px;
}
.gmp-fe-drawer-body::-webkit-scrollbar-thumb {
    background: var(--fe-scroll-thumb);
    border-radius: 4px;
}

/* Status Banner in Drawer Body */
.gmp-fe-status-banner {
    padding: 14px 16px;
    border-radius: 12px;
    border: var(--fe-status-banner-border);
    margin-bottom: 16px;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 4px 14px rgba(0,0,0,0.03);
    transition: all 0.3s ease;
}
.gmp-fe-status-banner .status-indicator {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 4px;
}
.status-pulse-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--unit-status-color, #de852c);
    display: inline-block;
    position: relative;
}
.status-pulse-dot::after {
    content: '';
    position: absolute;
    top: -3px; left: -3px; right: -3px; bottom: -3px;
    border-radius: 50%;
    background: inherit;
    opacity: 0.4;
    animation: statusPulse 1.8s infinite ease-out;
}
@keyframes statusPulse {
    0% { transform: scale(0.9); opacity: 0.7; }
    50% { transform: scale(1.6); opacity: 0.2; }
    100% { transform: scale(2.2); opacity: 0; }
}
.gmp-fe-status-banner .status-name {
    font-size: 13px;
    font-weight: 800;
    color: var(--fe-status-title-color);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.gmp-fe-status-banner .status-desc {
    font-size: 12px;
    color: var(--fe-status-desc-color);
    line-height: 1.45;
}

/* Lock / Note Box */
.gmp-fe-note-box {
    background: var(--fe-note-bg);
    border: var(--fe-note-border);
    border-left: 3.5px solid var(--fe-note-accent);
    color: var(--fe-note-color);
    padding: 10px 14px;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.02);
}

#gmp-fe-image-wrap img {
    width: 100%;
    border-radius: 12px;
    margin-bottom: 15px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.08);
}
.gmp-fe-status-badge {
    display: inline-block;
    padding: 6px 12px;
    border-radius: 20px;
    font-weight: bold;
    font-size: 13px;
    margin-bottom: 15px;
}

/* Price Box */
.gmp-fe-price-box {
    background: var(--fe-price-box-bg);
    padding: 16px;
    border-radius: 14px;
    border: var(--fe-price-box-border);
    border-left: 4px solid var(--fe-price-box-border-accent);
    margin-bottom: 18px;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.03);
    transition: all 0.3s ease;
}
.fe-label {
    font-size: 11.5px;
    color: var(--fe-price-box-label);
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 0.5px;
}
.fe-price-val {
    font-size: 24px;
    font-weight: 800;
    color: var(--fe-price-box-val);
    margin-top: 5px;
    letter-spacing: -0.5px;
}

/* Fallback Specs Table */
.gmp-fe-specs {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
}
.gmp-fe-specs td {
    padding: 11px 0;
    border-bottom: 1px dashed var(--fe-card-group-row-border, #eee);
    font-size: 13.5px;
    color: var(--fe-card-group-label);
}
.gmp-fe-specs td:last-child {
    text-align: right;
    font-weight: 700;
    color: var(--fe-card-group-val);
}
#gmp-fe-desc-wrap h4 {
    color: var(--fe-card-group-head);
    margin-bottom: 10px;
    font-size: 15px;
    font-weight: 700;
}
#gmp-fe-desc {
    font-size: 13.5px;
    color: var(--fe-card-group-label);
    line-height: 1.6;
}

/* ── 6. DRAWER STICKY FOOTER & CTA BUTTONS ── */
.gmp-fe-drawer-footer {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 16px 20px;
    background: var(--fe-footer-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-top: var(--fe-footer-border);
    box-shadow: var(--fe-footer-shadow);
    position: sticky;
    bottom: 0;
    z-index: 10;
    transition: background 0.3s ease, border-color 0.3s ease;
    flex-shrink: 0;
}
.gmp-fe-footer-actions-sub {
    display: flex;
    gap: 10px;
}
.fe-btn {
    flex: 1;
    padding: 13px 16px;
    border: none;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    text-align: center;
    text-decoration: none;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    line-height: 1.2;
}
.fe-btn-primary,
#btn-goto-calculator-footer {
    background: var(--fe-btn-cta-bg) !important;
    color: var(--fe-btn-cta-color) !important;
    box-shadow: var(--fe-btn-cta-shadow) !important;
    width: 100%;
}
.fe-btn-primary:hover,
#btn-goto-calculator-footer:hover {
    box-shadow: var(--fe-btn-cta-hover-shadow) !important;
    transform: translateY(-1.5px);
}
.fe-btn-outline {
    background: var(--fe-btn-outline-bg);
    border: var(--fe-btn-outline-border);
    color: var(--fe-btn-outline-color);
}
.fe-btn-outline:hover {
    background: var(--fe-btn-outline-hover-bg);
    color: var(--fe-btn-outline-hover-color);
    transform: translateY(-1px);
}

/* Radar Beacon Sonar Wave for Active Unit Pin */
.geo-map-pin.is-beacon-active {
    z-index: 10000 !important;
}
.pin-radar-ring {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 28px;
    height: 28px;
    margin-top: -14px;
    margin-left: -14px;
    border-radius: 50%;
    border: 2.5px solid var(--unit-status-color, #ff7a1a);
    pointer-events: none;
    opacity: 0;
    box-shadow: 0 0 16px var(--unit-status-color, #ff7a1a);
    animation: gmpRadarPulse 2.2s cubic-bezier(0.2, 0.8, 0.4, 1) infinite;
}
.pin-radar-ring.ring-2 {
    animation-delay: 0.85s;
}

@keyframes gmpRadarPulse {
    0% { transform: scale(0.6); opacity: 0.95; }
    50% { opacity: 0.55; }
    100% { transform: scale(3.5); opacity: 0; }
}

/* Floating Spotlight Badge above Pin */
.pin-spotlight-tag {
    position: absolute;
    bottom: calc(100% + 9px);
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    color: #38bdf8;
    border: 1.5px solid rgba(56, 189, 248, 0.7);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.5), 0 0 10px rgba(56, 189, 248, 0.4);
    padding: 3px 8px;
    border-radius: 999px;
    font-size: 9.5px;
    font-weight: 800;
    letter-spacing: 0.5px;
    white-space: nowrap;
    pointer-events: none;
    display: flex;
    align-items: center;
    gap: 4px;
    animation: gmpFloatingBadge 2s ease-in-out infinite alternate;
}
.pin-spotlight-tag::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border-width: 5px 5px 0 5px;
    border-style: solid;
    border-color: #1e293b transparent transparent transparent;
}

@keyframes gmpFloatingBadge {
    0% { transform: translate(-50%, 0); }
    100% { transform: translate(-50%, -4px); }
}

/* Golden Pulse Burst on Focus */
.pulse-burst .pin-badge {
    animation: gmpGoldenBurst 0.8s ease-out 1;
}
@keyframes gmpGoldenBurst {
    0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(255, 180, 0, 0.9); }
    50% { transform: scale(1.35); box-shadow: 0 0 25px 8px rgba(255, 180, 0, 0.9); }
    100% { transform: scale(1); box-shadow: none; }
}

/* Responsive: Mobile Bottom Sheet */
@media (max-width: 767px) {
    .gmp-fe-drawer-overlay {
        background: rgba(10, 28, 48, 0.35);
        backdrop-filter: blur(4px);
        -webkit-backdrop-filter: blur(4px);
        pointer-events: auto;
    }
    .gmp-fe-drawer-panel {
        width: 100% !important;
        max-width: 100% !important;
        height: 75vh !important;
        border-radius: 24px 24px 0 0;
        border-left: none;
        border-top: var(--fe-drawer-border);
        bottom: 0;
        top: auto;
        transform: translateY(100%);
    }
    .gmp-fe-drawer-overlay.active .gmp-fe-drawer-panel {
        transform: translateY(0);
    }
}

/* =========================================================================
   FULLSCREEN BUTTON
   ========================================================================= */
.btn-fullscreen {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #ffffff;
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}
.btn-fullscreen:hover {
  background: rgba(255, 255, 255, 0.25);
  border-color: #ffffff;
}
@media (max-width: 640px) {
  .btn-fullscreen .fs-text { display: none; }
}

/* =========================================================================
   QUICK BUDGET FILTER BAR
   ========================================================================= */
.gh-budget-bar {
  background: rgba(10, 28, 48, 0.95);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding: 6px 16px;
  display: flex;
  align-items: center;
  overflow-x: auto;
  scrollbar-width: none;
  z-index: 100;
}
.gh-budget-bar::-webkit-scrollbar { display: none; }
.budget-bar-inner {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
}
.budget-label {
  font-size: 11px;
  color: var(--gh-gold-light, #e0c897);
  font-weight: 700;
  white-space: nowrap;
}
.budget-chips {
  display: flex;
  align-items: center;
  gap: 6px;
}
.budget-chip {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: #cbd5e1;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.15s ease;
}
.budget-chip:hover {
  background: rgba(255, 255, 255, 0.18);
  color: #ffffff;
}
.budget-chip.active {
  background: linear-gradient(135deg, #FF7A1A 0%, #FF5500 100%);
  border-color: #FF7A1A;
  color: #ffffff;
  box-shadow: 0 2px 8px rgba(255, 122, 26, 0.35);
}
.gmp-quick-select {
  min-width: 132px;
  height: 28px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  background: #14283d;
  color: #e2e8f0;
  padding: 0 28px 0 10px;
  font-size: 11px;
  font-weight: 600;
}
.gmp-quick-select:focus {
  outline: 2px solid rgba(255, 122, 26, 0.45);
  outline-offset: 1px;
}

/* =========================================================================
   SHARE & QR QUICK BUTTONS IN DRAWER
   ========================================================================= */
.gmp-fe-share-bar {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
}
.fe-share-btn {
  flex: 1;
  background: var(--fe-share-btn-bg);
  border: var(--fe-share-btn-border);
  color: var(--fe-share-btn-color);
  padding: 9px 10px;
  border-radius: 10px;
  font-size: 11.5px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  transition: all 0.2s ease;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.fe-share-btn:hover {
  background: var(--fe-share-btn-hover-bg);
  border-color: var(--fe-share-btn-hover-border);
  color: var(--fe-share-btn-hover-color);
  box-shadow: var(--fe-share-btn-hover-shadow);
  transform: translateY(-1px);
}

/* =========================================================================
   LUXURY POLICY CARDS SLIDER IN DRAWER
   ========================================================================= */
.gmp-fe-policy-section {
  margin-bottom: 18px;
}
.gmp-fe-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
  font-size: 13px;
  color: #0f172a;
}
.gmp-fe-count-pill {
  background: #ff7a1a;
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  padding: 1px 7px;
  border-radius: 12px;
}
.gmp-fe-slider-hint {
  font-size: 11px;
  color: #94a3b8;
  font-weight: 500;
}
.gmp-fe-policy-slider {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding: 4px 2px 14px 2px;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}
.gmp-fe-policy-slider::-webkit-scrollbar {
  height: 5px;
}
.gmp-fe-policy-slider::-webkit-scrollbar-track {
  background: rgba(0,0,0,0.04);
  border-radius: 4px;
}
.gmp-fe-policy-slider::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 4px;
}

/* POLICY CARD */
.gmp-fe-policy-card {
  min-width: 250px;
  max-width: 270px;
  flex-shrink: 0;
  scroll-snap-align: start;
  border-radius: 14px;
  padding: 14px;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  box-shadow: 0 3px 12px rgba(0,0,0,0.06);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.gmp-fe-policy-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.1);
}
.gmp-fe-policy-card.active {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(255, 122, 26, 0.3);
  outline: 2.5px solid #ff7a1a;
  outline-offset: 1px;
}

/* CARD THEMES */
.gmp-fe-policy-card.theme-gold {
  background: linear-gradient(145deg, #fffdf5 0%, #fef7da 50%, #fef0b8 100%);
  border: 1.5px solid #f59e0b;
  color: #78350f;
}
.gmp-fe-policy-card.theme-gold .card-badge {
  background: #f59e0b;
  color: #fff;
}

.gmp-fe-policy-card.theme-blue {
  background: linear-gradient(145deg, #f8fbff 0%, #e0f2fe 50%, #bae6fd 100%);
  border: 1.5px solid #0284c7;
  color: #0c4a6e;
}
.gmp-fe-policy-card.theme-blue .card-badge {
  background: #0284c7;
  color: #fff;
}

.gmp-fe-policy-card.theme-emerald {
  background: linear-gradient(145deg, #f7fdf9 0%, #dcfce7 50%, #bbf7d0 100%);
  border: 1.5px solid #16a34a;
  color: #14532d;
}
.gmp-fe-policy-card.theme-emerald .card-badge {
  background: #16a34a;
  color: #fff;
}

.gmp-fe-policy-card.theme-ruby {
  background: linear-gradient(145deg, #fffaf5 0%, #ffedd5 50%, #fed7aa 100%);
  border: 1.5px solid #ea580c;
  color: #7c2d12;
}
.gmp-fe-policy-card.theme-ruby .card-badge {
  background: #ea580c;
  color: #fff;
}

.gmp-fe-policy-card.theme-dark {
  background: linear-gradient(145deg, #1e293b 0%, #0f172a 100%);
  border: 1.5px solid #475569;
  color: #f8fafc;
}
.gmp-fe-policy-card.theme-dark .card-badge {
  background: #f59e0b;
  color: #0f172a;
}
.gmp-fe-policy-card.theme-dark .card-title {
  color: #ffffff;
}
.gmp-fe-policy-card.theme-dark .card-bank {
  color: #94a3b8;
}
.gmp-fe-policy-card.theme-dark .card-metric {
  background: rgba(255,255,255,0.07);
  border-color: rgba(255,255,255,0.12);
}
.gmp-fe-policy-card.theme-dark .card-metric .m-val {
  color: #38bdf8;
}
.gmp-fe-policy-card.theme-dark .card-metric .m-lbl {
  color: #94a3b8;
}
.gmp-fe-policy-card.theme-dark .card-action-bar {
  border-top-color: rgba(255,255,255,0.1);
  color: #f59e0b;
}

/* CARD DETAILS */
.card-top-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}
.card-badge {
  font-size: 10px;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: 4px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}
.card-bank {
  font-size: 11px;
  font-weight: 700;
  color: #475569;
}
.card-bank-brand {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: #ffffff;
  padding: 2px 7px;
  border-radius: 6px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
  max-height: 24px;
}
.card-bank-logo {
  height: 18px;
  max-width: 70px;
  object-fit: contain;
  display: block;
}
.card-bank-code {
  font-size: 10px;
  font-weight: 800;
  color: #0f172a;
  letter-spacing: 0.3px;
}
.card-bank-hotline {
  font-size: 10.5px;
  color: #2563eb;
  font-weight: 600;
  text-decoration: none;
}
.gmp-fe-policy-card.theme-dark .card-bank-brand {
  background: #ffffff;
}
.card-title {
  font-size: 13.5px;
  font-weight: 800;
  line-height: 1.35;
  color: #0f172a;
  margin-bottom: 10px;
}
.card-metrics-grid {
  display: flex;
  gap: 6px;
  margin-bottom: 10px;
}
.card-metric {
  flex: 1;
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 8px;
  padding: 6px 4px;
  text-align: center;
}
.card-metric.wide {
  flex: 3;
  text-align: left;
  padding: 6px 8px;
}
.card-metric .m-val {
  display: block;
  font-size: 12px;
  font-weight: 800;
  color: #0f172a;
}
.card-metric .m-val.highlight {
  color: #ea580c;
  font-size: 12.5px;
}
.card-metric .m-lbl {
  display: block;
  font-size: 10px;
  color: #64748b;
  margin-top: 2px;
}
.card-action-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px dashed rgba(0, 0, 0, 0.12);
  padding-top: 8px;
  font-size: 11px;
  font-weight: 700;
  color: #ff7a1a;
}
.gmp-fe-policy-card.active .card-action-bar {
  color: #059669;
}

/* =========================================================================
   SMART MORTGAGE LOAN CALCULATOR IN DRAWER
   ========================================================================= */
.gmp-fe-calc-wrapper {
  margin-bottom: 20px;
}
.gmp-fe-calc-card {
  background: var(--fe-calc-card-bg);
  border: var(--fe-calc-card-border);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.03);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: all 0.3s ease;
}
.calc-card-head {
  padding: 12px 16px;
  background: var(--fe-calc-head-bg);
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  font-size: 13px;
  font-weight: 700;
  color: var(--fe-calc-head-color);
  user-select: none;
  transition: background 0.2s ease;
}
.calc-card-head:hover {
  filter: brightness(0.96);
}
.calc-card-body {
  padding: 14px 16px;
}
.calc-active-promo-banner {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #fef3c7;
  border: 1px solid #fde68a;
  border-radius: 8px;
  padding: 8px 10px;
  margin-bottom: 12px;
  font-size: 12px;
  color: #92400e;
}
.promo-banner-badge {
  background: #f59e0b;
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  padding: 2px 6px;
  border-radius: 4px;
  flex-shrink: 0;
}
.promo-banner-text {
  font-size: 12px;
  line-height: 1.35;
}
.calc-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
  font-size: 12px;
  color: #475569;
}
.calc-row select, .calc-row input {
  padding: 5px 9px;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  font-size: 12.5px;
  font-weight: 600;
  color: #0f172a;
  background: #ffffff;
}
.calc-results {
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px dashed #cbd5e1;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.calc-res-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  color: #64748b;
}
.calc-res-item strong {
  color: #1e293b;
}
.calc-res-item.highlight {
  margin-top: 6px;
  padding: 9px 12px;
  background: rgba(255, 122, 26, 0.1);
  border: 1px solid rgba(255, 122, 26, 0.25);
  border-radius: 8px;
  font-size: 12.5px;
  color: #9a3412;
}
.calc-res-item.highlight strong {
  color: #ea580c;
  font-size: 14.5px;
  font-weight: 800;
}
.calc-grace-notice {
  margin-top: 10px;
  padding: 8px 12px;
  background: #ecfdf5;
  border: 1px solid #a7f3d0;
  border-radius: 8px;
  font-size: 11.5px;
  color: #065f46;
  line-height: 1.45;
}
.calc-disclaimer {
  margin-top: 12px;
  padding-top: 8px;
  border-top: 1px solid #f1f5f9;
  font-size: 11px;
  color: #94a3b8;
  line-height: 1.45;
  font-style: italic;
}

/* =========================================================================
   QR CODE MODAL
   ========================================================================= */
.gmp-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(10, 28, 48, 0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}
.gmp-modal-card {
  background: #ffffff;
  border-radius: 18px;
  padding: 28px 24px;
  max-width: 360px;
  width: 100%;
  text-align: center;
  position: relative;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
}
.gmp-modal-close {
  position: absolute;
  top: 14px;
  right: 16px;
  background: none;
  border: none;
  font-size: 24px;
  color: #94a3b8;
  cursor: pointer;
  line-height: 1;
}
.gmp-modal-close:hover {
  color: #ef4444;
}
.gmp-modal-card h3 {
  margin: 0 0 6px 0;
  font-size: 18px;
  font-weight: 800;
  color: #0f172a;
}
.gmp-modal-desc {
  font-size: 12px;
  color: #64748b;
  line-height: 1.5;
  margin: 0 0 16px 0;
}
.gmp-qr-image-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  margin-bottom: 14px;
}
.gmp-qr-image-wrap img {
  width: 200px;
  height: 200px;
  border-radius: 8px;
}
.gmp-qr-url-text {
  font-size: 10.5px;
  color: #64748b;
  word-break: break-all;
  margin-bottom: 16px;
  padding: 6px;
  background: #f1f5f9;
  border-radius: 6px;
  max-height: 48px;
  overflow-y: auto;
}

/* =========================================================================
   DYNAMIC CARD STUDIO DRAWER GROUP SECTIONS
   ========================================================================= */
.gmp-drawer-dynamic-group {
    background: var(--fe-card-group-bg);
    border: var(--fe-card-group-border);
    border-radius: 14px;
    padding: 16px;
    margin-bottom: 16px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.03);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    transition: background 0.3s ease, border-color 0.3s ease;
}
.gmp-drawer-group-header {
    font-size: 13.5px;
    font-weight: 800;
    color: var(--fe-card-group-head);
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 10px;
    padding-bottom: 8px;
    border-bottom: var(--fe-card-group-head-border);
    letter-spacing: 0.2px;
}
.gmp-drawer-group-table {
    width: 100%;
    border-collapse: collapse;
}
.gmp-drawer-group-table td {
    padding: 9px 0;
    font-size: 13px;
    border-bottom: var(--fe-card-group-row-border);
}
.gmp-drawer-group-table tr:last-child td {
    border-bottom: none;
}
.gmp-drawer-group-table td.gmp-field-label {
    color: var(--fe-card-group-label);
    font-weight: 600;
    width: 48%;
}
.gmp-drawer-group-table td.gmp-field-val {
    color: var(--fe-card-group-val);
    font-weight: 700;
    text-align: right;
    width: 52%;
}
.gmp-drawer-thumb-img {
    max-width: 100%;
    border-radius: 8px;
    border: 1px solid rgba(0,0,0,0.08);
    margin-top: 6px;
    display: block;
}
.gmp-drawer-link-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--fe-share-btn-bg);
    color: var(--fe-price-box-val);
    border: var(--fe-share-btn-border);
    padding: 5px 12px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.2s;
}
.gmp-drawer-link-btn:hover {
    background: var(--fe-share-btn-hover-bg);
    border-color: var(--fe-share-btn-hover-border);
    transform: translateY(-1px);
}

/* ==========================================================================
   BACKPORT: 4K UHD Poster Modal, Freeform Draggable HUD & Canvas Leader Line
   (Reference: BAN-GIAO-HUONG-DAN-PLUGIN v1.8.0.1.23 - UPG-07)
   ========================================================================== */
.sg-poster-modal-overlay {
  background: rgba(8, 14, 26, 0.88);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  z-index: 10001;
  padding: 12px;
}

.sg-poster-modal-card {
  max-width: 440px;
  width: 100%;
  max-height: 94vh;
  display: flex;
  flex-direction: column;
  background: rgba(15, 23, 42, 0.88);
  backdrop-filter: blur(30px) saturate(190%);
  -webkit-backdrop-filter: blur(30px) saturate(190%);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-top: 1.5px solid rgba(255, 255, 255, 0.28);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.65), 0 0 30px rgba(0, 240, 255, 0.15);
  border-radius: 20px;
  padding: 16px 20px 14px 20px;
  color: #fff;
  text-align: left;
  box-sizing: border-box;
  overflow: hidden;
}

[data-theme="light"] .sg-poster-modal-card,
.sg-light-theme .sg-poster-modal-card {
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-top: 1.5px solid rgba(255, 255, 255, 0.95);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.18), 0 0 25px rgba(16, 185, 129, 0.12);
  color: #0f172a;
}

.sg-poster-modal-header {
  margin-bottom: 8px;
  padding-right: 28px;
  flex-shrink: 0;
}

.sg-poster-modal-header h3 {
  margin: 0;
  font-size: 20px;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: -0.3px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.sg-poster-modal-header h3::before {
  content: '';
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #38bdf8;
  box-shadow: 0 0 8px #38bdf8;
}
[data-theme="light"] .sg-poster-modal-header h3,
.sg-light-theme .sg-poster-modal-header h3 {
  color: #0f172a;
}

.sg-poster-header-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-bottom: 0;
}
.sg-poster-title-wrap {
  flex: 1;
}
.sg-poster-sales-input {
  width: 250px;
  flex: 0 0 auto;
  max-width: 100%;
}
.sg-poster-sales-input label {
  display: block;
  font-size: 10px;
  font-weight: 700;
  color: #94a3b8;
  margin-bottom: 2px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.sg-poster-sales-input input {
  width: 100%;
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 8px;
  padding: 5px 10px;
  font-size: 12px;
  outline: none;
  background: rgba(0,0,0,0.25);
  color: #fff;
  transition: all 0.2s ease;
  font-family: inherit;
  box-sizing: border-box;
}
.sg-poster-sales-input input:focus {
  border-color: rgba(255,255,255,0.3);
  background: rgba(0,0,0,0.3);
}
[data-theme="light"] .sg-poster-sales-input label,
.sg-light-theme .sg-poster-sales-input label {
  color: #64748b;
}
[data-theme="light"] .sg-poster-sales-input input,
.sg-light-theme .sg-poster-sales-input input {
  border-color: rgba(0,0,0,0.1);
  background: rgba(255,255,255,0.7);
  color: #0f172a;
}
[data-theme="light"] .sg-poster-sales-input input:focus,
.sg-light-theme .sg-poster-sales-input input:focus {
  border-color: rgba(0,0,0,0.2);
  background: #ffffff;
}

/* Live Map Zoom Control Bar (Apple visionOS Pill Bar) */
.sg-poster-zoom-bar {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  padding: 6px 10px;
  margin-bottom: 8px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-sizing: border-box;
  flex-shrink: 0;
}

[data-theme="light"] .sg-poster-zoom-bar,
.sg-light-theme .sg-poster-zoom-bar {
  background: rgba(15, 23, 42, 0.04);
  border-color: rgba(0, 0, 0, 0.08);
}

.sg-pzb-label {
  display: flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}

.sg-pzb-icon {
  font-size: 14px;
}

.sg-pzb-title {
  font-size: 11.5px;
  font-weight: 700;
  color: #38bdf8;
  letter-spacing: 0.2px;
}

[data-theme="light"] .sg-pzb-title,
.sg-light-theme .sg-pzb-title {
  color: #0284c7;
}

.sg-pzb-badge {
  font-size: 11px;
  font-weight: 800;
  color: #fef08a;
  background: rgba(234, 179, 8, 0.15);
  border: 1px solid rgba(250, 204, 21, 0.35);
  padding: 2px 7px;
  border-radius: 6px;
  letter-spacing: 0.3px;
}

[data-theme="light"] .sg-pzb-badge,
.sg-light-theme .sg-pzb-badge {
  color: #b45309;
  background: rgba(245, 158, 11, 0.12);
  border-color: rgba(217, 119, 6, 0.3);
}

.sg-pzb-controls {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.sg-pzb-step-group {
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 3px 6px;
  border-radius: 10px;
}

[data-theme="light"] .sg-pzb-step-group,
.sg-light-theme .sg-pzb-step-group {
  background: rgba(0, 0, 0, 0.04);
  border-color: rgba(0, 0, 0, 0.08);
}

.sg-pzb-btn-step {
  width: 26px;
  height: 26px;
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: #ffffff;
  font-size: 16px;
  font-weight: 800;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
  transition: all 0.15s ease;
  user-select: none;
}

[data-theme="light"] .sg-pzb-btn-step,
.sg-light-theme .sg-pzb-btn-step {
  background: #ffffff;
  border-color: rgba(0, 0, 0, 0.12);
  color: #0f172a;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.sg-pzb-btn-step:hover {
  background: #0284c7;
  color: #fff;
  border-color: #38bdf8;
  transform: scale(1.05);
}

.sg-pzb-btn-step:active {
  transform: scale(0.95);
}

.sg-pzb-slider {
  width: 80px;
  height: 6px;
  accent-color: #38bdf8;
  cursor: pointer;
  margin: 0 4px;
}

.sg-pzb-pills {
  display: flex;
  align-items: center;
  gap: 5px;
}

.sg-pzb-pill {
  font-size: 10.5px;
  font-weight: 700;
  color: #94a3b8;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  padding: 4px 9px;
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.18s ease;
  user-select: none;
  white-space: nowrap;
}

[data-theme="light"] .sg-pzb-pill,
.sg-light-theme .sg-pzb-pill {
  color: #64748b;
  background: rgba(0, 0, 0, 0.04);
  border-color: rgba(0, 0, 0, 0.08);
}

.sg-pzb-pill:hover {
  background: rgba(255, 255, 255, 0.14);
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.25);
}

.sg-pzb-pill.active {
  background: #0284c7;
  color: #ffffff;
  border-color: #38bdf8;
  box-shadow: 0 0 12px rgba(56, 189, 248, 0.35);
}

.pzb-short,
.pbtn-short {
  display: none;
}
.pzb-full,
.pbtn-full {
  display: inline;
}


.sg-poster-preview-viewport {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding: 8px 4px;
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  margin-bottom: 10px;
  overflow: hidden;
  box-sizing: border-box;
  position: relative;
  transition: height 0.2s ease;
}
[data-theme="light"] .sg-poster-preview-viewport,
.sg-light-theme .sg-poster-preview-viewport {
  background: rgba(15, 23, 42, 0.04);
  border-color: rgba(0, 0, 0, 0.06);
}

.sg-poster-stage {
  width: 340px;
  height: 595px;
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(255, 255, 255, 0.1);
  user-select: none;
  background: #090d16;
  flex-shrink: 0;
  transform-origin: top center;
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.sg-poster-modal-card.is-ratio-16-9 {
  max-width: 980px !important;
  width: 95vw !important;
}

.sg-poster-stage.is-ratio-16-9 {
  width: 880px !important;
  height: 495px !important;
  transform-origin: top center;
}

.sg-poster-stage .sg-stage-backdrop {
  position: absolute;
  inset: 0;
  z-index: 1;
  overflow: hidden;
}
.sg-poster-stage #sgPosterStageFrameImg {
  width: 100%;
  height: 100%;
  object-fit: fill;
  display: block;
}
.sg-poster-stage .sg-stage-fallback-gradient {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #f58220 0%, #004d40 45%, #00251a 100%);
}
.sg-poster-stage .sg-stage-slots-layer {
  position: absolute;
  inset: 0;
  z-index: 2;
}

/* Stage Elements inside Poster */
.sg-poster-slot-item {
  position: absolute;
  box-sizing: border-box;
  display: flex;
  align-items: center;
}

.sg-sb-spec-pill {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: stretch;
  border-radius: 4px;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.18);
}
.sg-sb-spec-pill .sg-pill-label {
  background: #004d40;
  color: #ffffff;
  font-size: 8.5px;
  font-weight: 800;
  padding: 0 5px;
  display: flex;
  align-items: center;
  white-space: nowrap;
  letter-spacing: 0.3px;
  width: 42%;
}
.sg-sb-spec-pill .sg-pill-val {
  background: #fff8e7;
  color: #004d40;
  font-size: 8.5px;
  font-weight: 800;
  padding: 0 5px;
  display: flex;
  align-items: center;
  white-space: nowrap;
  flex: 1;
}

.sg-sb-map-mock {
  width: 100%;
  height: 100%;
  background: #0f172a radial-gradient(circle at 50% 50%, #1e293b 0%, #090d16 100%);
  border: 2px solid #ffffff;
  border-radius: 10px;
  position: relative;
  overflow: hidden;
  display: block;
  box-sizing: border-box;
}
.sg-sb-map-blueprint-grid {
  position: absolute;
  inset: 0;
  opacity: 0.25;
  background-size: 16px 16px;
  background-image:
    linear-gradient(to right, rgba(56, 189, 248, 0.35) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(56, 189, 248, 0.35) 1px, transparent 1px);
  pointer-events: none;
  z-index: 2;
}
.sg-sb-map-watermark {
  position: absolute;
  top: 6px;
  left: 8px;
  font-size: 8px;
  font-weight: 800;
  color: rgba(255, 255, 255, 0.65);
  letter-spacing: 0.6px;
  text-transform: uppercase;
  z-index: 2;
  pointer-events: none;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.8);
}
.sg-sb-map-bg-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
  display: block;
}
.sg-sb-map-loading-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: rgba(15, 23, 42, 0.82);
  backdrop-filter: blur(4px);
  z-index: 3;
}
.sg-sb-map-loading-spinner {
  width: 28px;
  height: 28px;
  border: 3px solid rgba(56, 189, 248, 0.25);
  border-top-color: #38bdf8;
  border-radius: 50%;
  animation: sgMapSpin 0.75s linear infinite;
}
@keyframes sgMapSpin {
  to { transform: rotate(360deg); }
}

.sg-sb-map-pin {
  position: absolute;
  display: flex;
  flex-direction: column;
  align-items: center;
  z-index: 5;
  cursor: default;
}
.sg-sb-pin-badge {
  background: #d4af37;
  color: #0f172a;
  font-size: 8px;
  font-weight: 900;
  padding: 1.5px 5px;
  border-radius: 3px;
  box-shadow: 0 3px 6px rgba(0, 0, 0, 0.5);
  white-space: nowrap;
  border: 1px solid rgba(255, 255, 255, 0.4);
}
.sg-sb-pin-tail {
  width: 0;
  height: 0;
  border-left: 3.5px solid transparent;
  border-right: 3.5px solid transparent;
  border-top: 4.5px solid #d4af37;
  filter: drop-shadow(0 2px 2px rgba(0, 0, 0, 0.4));
}
.sg-sb-pin-pulse {
  position: absolute;
  bottom: -3px;
  left: 50%;
  transform: translateX(-50%);
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(212, 175, 55, 0.4);
  border: 1px solid #d4af37;
  animation: sgPinPulse 2s infinite ease-out;
  pointer-events: none;
}
@keyframes sgPinPulse {
  0% { transform: translateX(-50%) scale(0.4); opacity: 1; }
  100% { transform: translateX(-50%) scale(2.6); opacity: 0; }
}

.sg-sb-map-pin.theme-red .sg-sb-pin-badge { background: #ef4444; color: #fff; }
.sg-sb-map-pin.theme-red .sg-sb-pin-tail { border-top-color: #ef4444; }
.sg-sb-map-pin.theme-red .sg-sb-pin-pulse { background: rgba(239, 68, 68, 0.4); border-color: #ef4444; }
.sg-sb-map-pin.theme-emerald .sg-sb-pin-badge { background: #10b981; color: #fff; }
.sg-sb-map-pin.theme-emerald .sg-sb-pin-tail { border-top-color: #10b981; }
.sg-sb-map-pin.theme-emerald .sg-sb-pin-pulse { background: rgba(16, 185, 129, 0.4); border-color: #10b981; }
.sg-sb-map-pin.theme-cyan .sg-sb-pin-badge { background: #00f0ff; color: #04101e; }
.sg-sb-map-pin.theme-cyan .sg-sb-pin-tail { border-top-color: #00f0ff; }
.sg-sb-map-pin.theme-cyan .sg-sb-pin-pulse { background: rgba(0, 240, 255, 0.4); border-color: #00f0ff; }

.sg-sb-static-img {
  max-width: 100% !important;
  max-height: 100% !important;
  width: auto !important;
  height: auto !important;
  object-fit: contain !important;
  display: block !important;
  margin: 0 auto;
}

.sg-poster-logo-wrapper {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  box-sizing: border-box;
}

.sg-sb-hero-price {
  width: 100%;
  height: 100%;
  background: rgba(0, 77, 64, 0.95);
  color: #fef08a;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10.5px;
  font-weight: 800;
  padding: 0 6px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  box-sizing: border-box;
}

.sg-sb-floorplan-item {
  width: 100%;
  height: 100%;
  background: #ffffff;
  border-radius: 6px;
  overflow: hidden;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.sg-sb-floorplan-item .sg-sb-fl-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}
.sg-sb-floorplan-item.badge-bottom .sg-sb-fl-title {
  position: absolute;
  bottom: 3px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 7.5px;
  font-weight: 800;
  color: #004d40;
  background: #fff8e7;
  padding: 1px 5px;
  border-radius: 3px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.25);
  white-space: nowrap;
  z-index: 3;
}
.sg-sb-floorplan-item.badge-top .sg-sb-fl-title {
  position: absolute;
  top: 3px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 7.5px;
  font-weight: 800;
  color: #004d40;
  background: #fff8e7;
  padding: 1px 5px;
  border-radius: 3px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.25);
  white-space: nowrap;
  z-index: 3;
}
.sg-sb-floorplan-item.is-empty {
  background: #f8fafc;
  border: 1.5px dashed #94a3b8;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.sg-sb-fl-empty-icon { font-size: 15px; margin-bottom: 2px; }
.sg-sb-fl-empty-text { font-size: 7.5px; font-weight: 700; color: #64748b; }

/* Action Buttons Bar */
.sg-poster-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  width: 100%;
  box-sizing: border-box;
  flex-shrink: 0;
}
.sg-btn-poster-action {
  font-size: 13px !important;
  font-weight: 700 !important;
  padding: 10px 12px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 6px !important;
  border-radius: 10px !important;
  white-space: nowrap !important;
}

.sg-poster-status-note {
  margin-top: 6px;
  font-size: 11px;
  text-align: center;
  min-height: 14px;
  line-height: 1.4;
  transition: all 0.2s ease;
  flex-shrink: 0;
}
.sg-poster-status-note.is-loading { color: #38bdf8; }
.sg-poster-status-note.is-success { color: #34d399; font-weight: 700; }
.sg-poster-status-note.is-error { color: #f87171; }

/* =========================================================================
   Cinema 16:9 4K Poster: Active HUD & Unit Detail Sidebar Styles
   ========================================================================= */

/* Active HUD Anchor & Pin HUD on Map in Poster */
.sg-poster-active-hud-anchor {
    position: absolute;
    transform: translate(-50%, -50%);
    pointer-events: auto;
    width: 0;
    height: 0;
    z-index: 60;
}
.sg-poster-hud-center-dot {
    display: none !important;
}
.pin-active-hud.is-poster-hud {
    position: absolute;
    bottom: 8px;
    left: 50%;
    transform: translateX(-125px) scale(0.85);
    transform-origin: bottom center;
    width: 250px;
    pointer-events: auto;
    animation: none !important;
    background: rgba(11, 23, 39, 0.90) !important;
    backdrop-filter: blur(20px) !important;
    -webkit-backdrop-filter: blur(20px) !important;
    border: 1px solid rgba(255, 255, 255, 0.25) !important;
    border-top: 1.5px solid rgba(255, 255, 255, 0.7) !important;
    border-radius: 14px !important;
    padding: 10px 12px !important;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.6), 0 4px 12px rgba(0, 0, 0, 0.3) !important;
    z-index: 60;
    cursor: grab !important;
}
.pin-active-hud.is-poster-hud.is-dragging {
    cursor: grabbing !important;
}
.pin-active-hud.is-poster-hud::before {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border-width: 8px 7px 0 7px;
    border-style: solid;
    border-color: rgba(255, 255, 255, 0.35) transparent transparent transparent;
}
.pin-active-hud.is-poster-hud::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border-width: 7px 6px 0 6px;
    border-style: solid;
    border-color: rgba(11, 23, 39, 0.94) transparent transparent transparent;
}

/* Ensure Poster HUD Elements are ALWAYS Bright, Crisp & Legible in ALL Modes */
.pin-active-hud.is-poster-hud,
[data-theme="light"] .pin-active-hud.is-poster-hud,
.sg-light-theme .pin-active-hud.is-poster-hud,
.sg-poster-stage .pin-active-hud {
    background: rgba(11, 23, 39, 0.92) !important;
    backdrop-filter: blur(20px) !important;
    -webkit-backdrop-filter: blur(20px) !important;
    border: 1px solid rgba(255, 255, 255, 0.25) !important;
    border-top: 1.5px solid rgba(255, 255, 255, 0.7) !important;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.65), 0 4px 12px rgba(0, 0, 0, 0.4) !important;
    color: #ffffff !important;
}

.pin-active-hud.is-poster-hud .pah-code-badge,
[data-theme="light"] .pin-active-hud.is-poster-hud .pah-code-badge,
.sg-light-theme .pin-active-hud.is-poster-hud .pah-code-badge,
.sg-poster-stage .pin-active-hud .pah-code-badge {
    color: #ffffff !important;
    font-weight: 800 !important;
    font-size: 14px !important;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.8) !important;
}

.pin-active-hud.is-poster-hud .pah-status-capsule,
[data-theme="light"] .pin-active-hud.is-poster-hud .pah-status-capsule,
.sg-light-theme .pin-active-hud.is-poster-hud .pah-status-capsule,
.sg-poster-stage .pin-active-hud .pah-status-capsule {
    background: rgba(255, 255, 255, 0.12) !important;
    border: 1px solid rgba(255, 255, 255, 0.22) !important;
    color: #ffffff !important;
}

.pin-active-hud.is-poster-hud .pah-status-name,
[data-theme="light"] .pin-active-hud.is-poster-hud .pah-status-name,
.sg-light-theme .pin-active-hud.is-poster-hud .pah-status-name,
.sg-poster-stage .pin-active-hud .pah-status-name {
    color: #ffffff !important;
}

.pin-active-hud.is-poster-hud .pah-price-row .price-val,
[data-theme="light"] .pin-active-hud.is-poster-hud .pah-price-row .price-val,
.sg-light-theme .pin-active-hud.is-poster-hud .pah-price-row .price-val,
.sg-poster-stage .pin-active-hud .pah-price-row .price-val {
    color: #ffffff !important;
    font-weight: 900 !important;
}

.pin-active-hud.is-poster-hud .pah-price-row .price-val.highlight,
[data-theme="light"] .pin-active-hud.is-poster-hud .pah-price-row .price-val.highlight,
.sg-light-theme .pin-active-hud.is-poster-hud .pah-price-row .price-val.highlight,
.sg-poster-stage .pin-active-hud .pah-price-row .price-val.highlight {
    background: linear-gradient(135deg, #FFFBEB 0%, #FDE047 60%, #F59E0B 100%) !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    filter: drop-shadow(0 1px 3px rgba(0, 0, 0, 0.6)) !important;
}

.pin-active-hud.is-poster-hud .pah-price-row .price-val.contact,
[data-theme="light"] .pin-active-hud.is-poster-hud .pah-price-row .price-val.contact,
.sg-light-theme .pin-active-hud.is-poster-hud .pah-price-row .price-val.contact,
.sg-poster-stage .pin-active-hud .pah-price-row .price-val.contact {
    color: #38bdf8 !important;
    -webkit-text-fill-color: initial !important;
    font-weight: 800 !important;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.5) !important;
}

.pin-active-hud.is-poster-hud .pah-price-row .price-tag,
[data-theme="light"] .pin-active-hud.is-poster-hud .pah-price-row .price-tag,
.sg-light-theme .pin-active-hud.is-poster-hud .pah-price-row .price-tag,
.sg-poster-stage .pin-active-hud .pah-price-row .price-tag {
    color: rgba(255, 255, 255, 0.72) !important;
    font-weight: 700 !important;
}

.pin-active-hud.is-poster-hud .pah-price-row .pah-price-sep,
[data-theme="light"] .pin-active-hud.is-poster-hud .pah-price-row .pah-price-sep,
.sg-light-theme .pin-active-hud.is-poster-hud .pah-price-row .pah-price-sep,
.sg-poster-stage .pin-active-hud .pah-price-row .pah-price-sep {
    color: rgba(255, 255, 255, 0.35) !important;
}

.pin-active-hud.is-poster-hud .pah-metrics-grid,
[data-theme="light"] .pin-active-hud.is-poster-hud .pah-metrics-grid,
.sg-light-theme .pin-active-hud.is-poster-hud .pah-metrics-grid,
.sg-poster-stage .pin-active-hud .pah-metrics-grid {
    background: rgba(255, 255, 255, 0.08) !important;
    border: 1px solid rgba(255, 255, 255, 0.16) !important;
    border-radius: 10px !important;
}

.pin-active-hud.is-poster-hud .pah-metric-val,
[data-theme="light"] .pin-active-hud.is-poster-hud .pah-metric-val,
.sg-light-theme .pin-active-hud.is-poster-hud .pah-metric-val,
.sg-poster-stage .pin-active-hud .pah-metric-val {
    color: #ffffff !important;
    font-size: 12px !important;
    font-weight: 800 !important;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.7) !important;
}

.pin-active-hud.is-poster-hud .pah-metric-lbl,
[data-theme="light"] .pin-active-hud.is-poster-hud .pah-metric-lbl,
.sg-light-theme .pin-active-hud.is-poster-hud .pah-metric-lbl,
.sg-poster-stage .pin-active-hud .pah-metric-lbl {
    color: #94a3b8 !important;
    font-size: 9px !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.3px !important;
}

.pin-active-hud.is-poster-hud .pah-metric-divider,
[data-theme="light"] .pin-active-hud.is-poster-hud .pah-metric-divider,
.sg-light-theme .pin-active-hud.is-poster-hud .pah-metric-divider,
.sg-poster-stage .pin-active-hud .pah-metric-divider {
    background: rgba(255, 255, 255, 0.18) !important;
}

.pin-active-hud.is-poster-hud .pah-location-bar,
[data-theme="light"] .pin-active-hud.is-poster-hud .pah-location-bar,
.sg-light-theme .pin-active-hud.is-poster-hud .pah-location-bar,
.sg-poster-stage .pin-active-hud .pah-location-bar {
    color: rgba(255, 255, 255, 0.92) !important;
    font-weight: 700 !important;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.8) !important;
}

.pin-active-hud.is-poster-hud .pah-location-bar .loc-text,
[data-theme="light"] .pin-active-hud.is-poster-hud .pah-location-bar .loc-text,
.sg-light-theme .pin-active-hud.is-poster-hud .pah-location-bar .loc-text,
.sg-poster-stage .pin-active-hud .pah-location-bar .loc-text {
    color: rgba(255, 255, 255, 0.92) !important;
}

/* Unit Sidebar Slot Styles */
.sg-sb-unit-sidebar {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    padding: 18px 20px;
    background: #0b1727;
    border-left: 1px solid rgba(255, 255, 255, 0.12);
    box-sizing: border-box;
    color: #f8fafc;
    overflow-y: auto;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    gap: 12px;
}
.sg-sidebar-header {
    display: flex;
    flex-direction: column;
    gap: 5px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 10px;
}
.sg-sidebar-super {
    font-size: 9.5px;
    font-weight: 800;
    color: #94a3b8;
    letter-spacing: 0.6px;
    text-transform: uppercase;
}
.sg-sidebar-title-row {
    display: flex;
    align-items: center;
    gap: 10px;
}
.sg-sidebar-badge {
    background: linear-gradient(135deg, #f97316 0%, #ea580c 100%);
    color: #ffffff;
    font-size: 13px;
    font-weight: 900;
    padding: 3px 10px;
    border-radius: 6px;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 12px rgba(234, 88, 12, 0.35);
}
.sg-sidebar-heading {
    font-size: 18px;
    font-weight: 900;
    color: #ffffff;
    letter-spacing: 0.4px;
}
.sg-sidebar-card {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    padding: 10px 12px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.sg-sidebar-sec-title {
    font-size: 10px;
    font-weight: 800;
    color: #38bdf8;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 3px;
    display: flex;
    align-items: center;
    gap: 6px;
}
.sg-sidebar-spec-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 11px;
    padding: 2.5px 0;
    border-bottom: 1px dashed rgba(255, 255, 255, 0.06);
}
.sg-sidebar-spec-row:last-child {
    border-bottom: none;
}
.sg-sidebar-spec-row .spec-label {
    color: #94a3b8;
    font-weight: 500;
}
.sg-sidebar-spec-row .spec-val {
    color: #f1f5f9;
    font-weight: 700;
    text-align: right;
}
.sg-sidebar-spec-row .spec-val.highlight {
    color: #38bdf8;
    font-weight: 800;
}
.sg-sidebar-spec-row.is-total {
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    margin-top: 4px;
    padding-top: 6px;
}
.sg-sidebar-spec-row.is-total .spec-label {
    font-weight: 800;
    color: #ffffff;
    font-size: 11.5px;
}
.sg-sidebar-spec-row.is-total .hero-val {
    font-size: 14px;
    font-weight: 900;
    color: #fef08a;
    background: linear-gradient(135deg, #fffbeb 0%, #fde047 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
.sg-sidebar-footer {
    margin-top: auto;
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding-top: 10px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}
.sg-sidebar-hotline {
    font-size: 11px;
    font-weight: 800;
    color: #fef08a;
    text-align: center;
    background: rgba(234, 179, 8, 0.15);
    border: 1px solid rgba(234, 179, 8, 0.3);
    padding: 5px 8px;
    border-radius: 6px;
}
.sg-sidebar-brand-note {
    font-size: 9px;
    color: #64748b;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}



.sg-poster-hud-line-node {
    position: absolute;
    left: 0;
    top: 0;
    width: 11px;
    height: 11px;
    transform: translate(-50%, -50%) !important;
    border-radius: 50%;
    background: var(--unit-status-color, #0ea5e9);
    border: 1.6px solid #ffffff;
    z-index: 25;
    box-shadow: 0 0 10px var(--unit-status-color, #0ea5e9), 0 0 18px rgba(14, 165, 233, 0.5), 0 2px 6px rgba(0, 0, 0, 0.6);
    display: none;
    align-items: center;
    justify-content: center;
    pointer-events: none;
}
.sg-poster-hud-line-node::before {
    content: '';
    position: absolute;
    inset: -5px;
    border-radius: 50%;
    border: 1px dashed rgba(56, 189, 248, 0.6);
    animation: sgRadarPulseNode 2.2s cubic-bezier(0.16, 1, 0.3, 1) infinite;
    pointer-events: none;
}
.sg-poster-hud-line-node::after {
    content: '';
    width: 3px;
    height: 3px;
    border-radius: 50%;
    background: #ffffff;
    box-shadow: 0 0 4px #ffffff;
    pointer-events: none;
}
@keyframes sgRadarPulseNode {
    0% { transform: scale(0.85); opacity: 0.85; }
    50% { transform: scale(1.4); opacity: 0.2; }
    100% { transform: scale(0.85); opacity: 0.85; }
}

.sg-poster-hud-laser {
    animation: sgHudLineFlow 1.6s linear infinite;
}
@keyframes sgHudLineFlow {
    to { stroke-dashoffset: -18; }
}

.pin-active-hud.is-hud-dragged::before, .pin-active-hud.is-hud-dragged::after { display: none !important; }

.pin-active-hud.is-poster-hud,
.pin-active-hud.is-poster-hud *,
#sgPosterModalStage,
#sgPosterMapMock,
.sg-poster-active-hud-anchor {
    touch-action: none !important;
    -webkit-user-drag: none !important;
    user-select: none !important;
    -webkit-user-select: none !important;
}

/* ==========================================================================
   Mobile Responsive Rules for Apple Liquid Glass Poster Modal (max-width: 640px)
   ========================================================================== */
@media (max-width: 640px) {
  .pzb-full,
  .pbtn-full {
    display: none !important;
  }
  .pzb-short,
  .pbtn-short {
    display: inline !important;
  }

  .sg-poster-modal-overlay {
    padding: 8px 6px !important;
  }
  .sg-poster-modal-card {
    padding: 10px 10px 8px 10px !important;
    border-radius: 16px !important;
    max-height: 98vh !important;
    overflow: hidden !important;
  }
  .sg-poster-modal-header {
    margin-bottom: 6px !important;
    padding-right: 0 !important;
    flex-shrink: 0 !important;
  }
  .sg-poster-header-top {
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 5px !important;
  }
  .sg-poster-title-wrap {
    flex: none !important;
    display: flex !important;
    align-items: center !important;
    padding-right: 32px !important;
  }
  .sg-poster-modal-header h3 {
    font-size: 17px !important;
    line-height: 1.2 !important;
    margin: 0 !important;
  }
  .sg-poster-sales-input {
    flex: none !important;
    width: 100% !important;
    height: auto !important;
    max-width: 100% !important;
    margin: 0 !important;
  }
  .sg-poster-sales-input label {
    font-size: 9px !important;
    margin-bottom: 2px !important;
    line-height: 1.1 !important;
  }
  .sg-poster-sales-input input {
    font-size: 12px !important;
    padding: 5px 8px !important;
    height: 32px !important;
    border-radius: 6px !important;
  }

  .sg-poster-zoom-bar {
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 5px !important;
    padding: 5px 8px !important;
    margin-bottom: 6px !important;
    flex-shrink: 0 !important;
  }
  .sg-pzb-label {
    justify-content: space-between !important;
    font-size: 11px !important;
    margin-bottom: 0 !important;
  }
  .sg-pzb-title {
    font-size: 11px !important;
  }
  .sg-pzb-badge {
    font-size: 10.5px !important;
    padding: 2px 7px !important;
  }
  .sg-pzb-controls {
    display: flex !important;
    flex-direction: column !important;
    gap: 5px !important;
    width: 100% !important;
  }
  .sg-pzb-step-group {
    width: 100% !important;
    display: flex !important;
    align-items: center !important;
    gap: 6px !important;
  }
  .sg-pzb-btn-step {
    width: 26px !important;
    height: 26px !important;
    font-size: 13px !important;
    padding: 0 !important;
  }
  .sg-pzb-slider {
    flex: 1 !important;
    width: auto !important;
    height: 6px !important;
  }
  .sg-pzb-pills {
    display: grid !important;
    grid-template-columns: repeat(4, 1fr) !important;
    gap: 4px !important;
    width: 100% !important;
    overflow: visible !important;
  }
  .sg-pzb-pill {
    padding: 4px 2px !important;
    font-size: 11px !important;
    font-weight: 700 !important;
    text-align: center !important;
    justify-content: center !important;
  }

  .sg-poster-preview-viewport {
    padding: 6px 2px !important;
    margin-bottom: 6px !important;
  }
  .sg-poster-actions {
    gap: 8px !important;
    grid-template-columns: 1fr 1fr !important;
    flex-shrink: 0 !important;
  }
  .sg-btn-poster-action {
    font-size: 12.5px !important;
    padding: 8px 6px !important;
    min-height: 40px !important;
    white-space: nowrap !important;
    gap: 5px !important;
    justify-content: center !important;
  }
}




/* =========================================================================
   STEALTH BORDER MODE & HOVER CARD (TƯƠNG TÁC RÊ CHUỘT SÁNG VIỀN - BẢN ĐỒ SẠCH)
   ========================================================================= */

/* Khi ở chế độ Stealth (Mặc định):
   Ẩn hoàn toàn DOM pin markers để bản đồ hoàn toàn sạch sẽ,
   Mọi tương tác do lớp Vector L.rectangle dán cứng vào map xử lý */
.gmp-stealth-mode .geo-unit-marker-wrap {
  display: none !important;
}

body.show-all-pins .geo-unit-marker-wrap {
  display: block !important;
}

/* THẺ HOVER CARD XUẤT HIỆN KHI RÊ CHUỘT */
.gmp-hover-card {
  position: absolute;
  bottom: calc(100% + 10px);
  left: 50%;
  transform: translateX(-50%) translateY(8px);
  background: #ffffff;
  border: 1.5px solid rgba(220, 180, 140, 0.45);
  border-radius: 14px;
  box-shadow: 0 16px 36px rgba(10, 28, 48, 0.26), 0 4px 12px rgba(255, 122, 26, 0.15);
  padding: 12px 16px;
  min-width: 175px;
  max-width: 230px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s cubic-bezier(0.16, 1, 0.3, 1), transform 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 9999999;
  text-align: left;
  line-height: 1.4;
  white-space: normal;
  cursor: pointer;
}

/* Bật card lên khi rê chuột hoặc khi active */
.geo-map-pin:hover .gmp-hover-card,
.geo-map-pin.active .gmp-hover-card {
  opacity: 1 !important;
  pointer-events: auto !important;
  transform: translateX(-50%) translateY(0) !important;
}

/* Mũi tên nhọn trỏ thẳng vào tâm căn nhà */
.gmp-hover-card::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border-width: 8px 7px 0 7px;
  border-style: solid;
  border-color: #ffffff transparent transparent transparent;
}
.gmp-hover-card::before {
  content: '';
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border-width: 9px 8px 0 8px;
  border-style: solid;
  border-color: rgba(220, 180, 140, 0.5) transparent transparent transparent;
}

.gmp-hc-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 2px;
}

.gmp-hc-code {
  font-size: 16px;
  font-weight: 800;
  color: #9f1239;
  letter-spacing: -0.3px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.gmp-hc-status {
  font-size: 9px;
  font-weight: 700;
  text-transform: uppercase;
  color: #ffffff;
  padding: 3px 6px;
  border-radius: 4px;
  letter-spacing: 0.2px;
  line-height: 1;
}

.gmp-hc-sub {
  font-size: 11.5px;
  color: #64748b;
  font-weight: 600;
  margin-bottom: 6px;
}

.gmp-hc-divider {
  height: 1px;
  background: linear-gradient(90deg, #ff7a1a, rgba(255, 122, 26, 0.1));
  margin: 6px 0 8px 0;
}

.gmp-hc-details {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.gmp-hc-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 11.5px;
  color: #334155;
}

.gmp-hc-row .lbl {
  color: #64748b;
  font-weight: 500;
}

.gmp-hc-row .val {
  font-weight: 700;
  color: #0f172a;
}

.gmp-hc-row .gmp-hc-price {
  color: #e11d48;
  font-weight: 800;
  font-size: 12px;
}

.gmp-hc-tip {
  margin-top: 8px;
  padding-top: 6px;
  border-top: 1px dashed #e2e8f0;
  font-size: 10px;
  color: #ff7a1a;
  font-weight: 700;
  text-align: center;
}

/* Nút chuyển chế độ trên Topbar Header */
.btn-stealth-mode {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.18) !important;
  border: 1px solid rgba(255, 255, 255, 0.35) !important;
  color: #ffffff !important;
  padding: 7px 12px;
  border-radius: 8px;
  font-size: 12.5px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
  backdrop-filter: blur(10px);
}
.btn-stealth-mode:hover {
  background: rgba(255, 255, 255, 0.28) !important;
  border-color: #ff7a1a !important;
  color: #ff7a1a !important;
  transform: translateY(-1px);
}

/* Leaflet Vector Lot Shape & Smart Hover Card (Dán cứng vào bản đồ & Scale theo Map Zoom) */
.gmp-lot-shape {
  cursor: pointer !important;
  pointer-events: all !important;
  transition: stroke 0.15s ease, fill-opacity 0.15s ease, stroke-width 0.15s ease;
}

.leaflet-tooltip.gmp-leaflet-popup-card {
  background: #ffffff !important;
  border: 1.5px solid rgba(220, 180, 140, 0.5) !important;
  border-radius: 12px !important;
  box-shadow: 0 16px 36px rgba(10, 28, 48, 0.2), 0 4px 12px rgba(0, 0, 0, 0.08) !important;
  padding: 12px 16px !important;
  min-width: 175px !important;
  max-width: 230px !important;
  color: #0f172a !important;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif !important;
  line-height: 1.4 !important;
  white-space: normal !important;
  pointer-events: auto !important;
  cursor: pointer !important;
}

.leaflet-tooltip.gmp-leaflet-popup-card::before {
  border-top-color: #ffffff !important;
}

.gmp-leaflet-card .gmp-hc-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 2px;
}

.gmp-leaflet-card .gmp-hc-code {
  font-size: 16px;
  font-weight: 800;
  color: var(--st-color, #0f172a);
  letter-spacing: -0.3px;
}

.gmp-leaflet-card .gmp-hc-status {
  font-size: 9px;
  font-weight: 700;
  text-transform: uppercase;
  color: #ffffff;
  padding: 3px 6px;
  border-radius: 4px;
  letter-spacing: 0.2px;
  line-height: 1;
}

.gmp-leaflet-card .gmp-hc-sub {
  font-size: 11.5px;
  color: #64748b;
  font-weight: 600;
  margin-bottom: 6px;
}

.gmp-leaflet-card .gmp-hc-divider {
  height: 1.5px;
  background: linear-gradient(90deg, var(--st-color, #ff7a1a), rgba(0, 0, 0, 0.06));
  margin: 6px 0 8px 0;
}

.gmp-leaflet-card .gmp-hc-details {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.gmp-leaflet-card .gmp-hc-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 11.5px;
  color: #334155;
}

.gmp-leaflet-card .gmp-hc-row .lbl {
  color: #64748b;
  font-weight: 500;
}

.gmp-leaflet-card .gmp-hc-row .val {
  font-weight: 700;
  color: #0f172a;
}

.gmp-leaflet-card .gmp-hc-row .gmp-hc-price {
  color: var(--st-color, #d97706);
  font-weight: 800;
  font-size: 12px;
}

.gmp-leaflet-card .gmp-hc-tip {
  margin-top: 8px;
  padding-top: 6px;
  border-top: 1px dashed #e2e8f0;
  font-size: 10px;
  color: var(--st-color, #ff7a1a);
  font-weight: 700;
  text-align: center;
}
