/* ========================================================
 * KZEN BRAND TOKENS & MASTER PALETTE (KZEN HOLDINGS 2025)
 * 60% Oxford Green (#1A4A44) · 30% Gold (#C7A35D) · 10% Lotion (#FAFAFA)
 * ======================================================== */
:root {
  --kz-oxford-green: #1A4A44;
  --kz-oxford-dark: #12332F;
  --kz-msu-green: #173F39;
  --kz-slate-night: #0A1816;
  --kz-slate-dark: #0C1E1B;
  --kz-slate-surface: #0F2623;
  --kz-gold: #C7A35D;
  --kz-gold-light: #E8CE8A;
  --kz-gold-dark: #8C6F33;
  --kz-gold-aztec: #BC995B;
  --kz-lotion: #FAFAFA;
  --kz-border-gold: rgba(199, 163, 93, 0.35);
  --kz-gold-glow: 0 0 14px rgba(199, 163, 93, 0.4);
}
/**
 * KZEN HOLDINGS GIS PRO - FULL FEATURE SUITE STYLESHEET
 * 10 Master Sidebar Accordion Modules:
 * 1. Bản Đồ & Lớp Nền (Tiles, Weather, Overlays)
 * 2. Hệ Thống Hạ Tầng Liên Vùng (57 Tuyến)
 * 3. Tiện Ích Xung Quanh (Radius Amenities)
 * 4. Vùng Tiếp Cận (Isochrone 15-30-60m)
 * 5. Chỉ Đường & Lộ Trình (Routing)
 * 6. Mật Độ Dân Cư (Heatmap)
 * 7. Đo Đạc Không Gian (Distance & Area)
 * 8. Quy Hoạch Chuyên Sâu 64 Tỉnh Thành
 * 9. Tra Cứu Số Tờ / Số Thửa & Tọa Độ VN-2000
 * 10. Mạng Lưới Giao Thông Công Cộng (VinBus)
 */

/* === RESET & FULLSCREEN CONTAINER === */
body.sg-is-bando-page .sg-global-header-map,
.sg-is-bando-page #app > .sg-global-header-map,
.sg-is-bando-page #kz-budget-filter-bar,
.sg-is-bando-page #unitLegendBar,
.sg-is-bando-page #map,
.sg-is-bando-page #sgSatControlPanel {
  display: none !important;
}

body.sg-is-bando-page,
body.sg-is-bando-page #app,
body.sg-is-bando-page #sgSatelliteViewer {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  width: 100vw !important;
  height: 100vh !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow: hidden !important;
  background: #081412 !important;
  z-index: 1000 !important;
}

/* === SIDEBAR TOGGLE ARROW === */
#sidebarArrow {
  position: absolute;
  top: 50%;
  left: 360px;
  transform: translateY(-50%);
  z-index: 1350;
  width: 24px;
  height: 80px;
  background: #0F2623;
  border: 1px solid rgba(199, 163, 93, 0.5);
  border-left: none;
  border-radius: 0 10px 10px 0;
  color: #C7A35D;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 4px 0 18px rgba(0, 0, 0, 0.6);
  transition: left 0.3s cubic-bezier(0.16, 1, 0.3, 1), background 0.2s;
}
#sidebarArrow:hover {
  background: #C7A35D;
  color: #fff;
}
#sidebarArrow svg {
  width: 15px;
  height: 15px;
  transition: transform 0.3s ease;
}
.sidebar-closed #sidebarArrow {
  left: 0 !important;
}
.sidebar-closed #sidebarArrow svg {
  transform: rotate(180deg);
}

/* === MASTER SIDEBAR CONTAINER === */
.sg-gis-sidebar {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  z-index: 1300;
  width: 360px;
  max-width: 92vw;
  background: linear-gradient(180deg, #0A1816 0%, #0F2623 50%, #081412 100%);
  border-right: 1px solid rgba(199, 163, 93, 0.35);
  box-shadow: 14px 0 40px rgba(0, 0, 0, 0.7);
  overflow-y: auto;
  overflow-x: hidden;
  padding: 14px 12px 30px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  scrollbar-width: thin;
  scrollbar-color: rgba(199, 163, 93, 0.35) transparent;
}
.sg-gis-sidebar::-webkit-scrollbar {
  width: 5px;
}
.sg-gis-sidebar::-webkit-scrollbar-thumb {
  background: rgba(199, 163, 93, 0.35);
  border-radius: 4px;
}
.sidebar-closed .sg-gis-sidebar {
  transform: translateX(-100%);
}

/* BRAND HEADER */
.sg-sb-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  background: rgba(12, 30, 27, 0.85);
  border: 1px solid rgba(199, 163, 93, 0.45);
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
}
.sg-sb-brand:hover {
  border-color: #C7A35D;
  box-shadow: 0 4px 20px rgba(199, 163, 93, 0.5);
}
.sg-sb-logo {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: linear-gradient(135deg, #0A1816, #173F39);
  border: 2px solid #C7A35D;
  color: #C7A35D;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  font-size: 19px;
  box-shadow: 0 0 12px rgba(199, 163, 93, 0.4);
  flex-shrink: 0;
}
.sg-sb-brand-info {
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.sg-sb-title {
  font-size: 13px;
  font-weight: 800;
  color: #fff;
  letter-spacing: 0.04em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.sg-sb-sub {
  font-size: 9.5px;
  color: #E8CE8A;
  font-weight: 600;
  letter-spacing: 0.02em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* SEARCH BOX */
.sg-sb-search-wrap {
  position: relative;
  width: 100%;
  box-sizing: border-box;
  margin-bottom: 2px;
}
.sg-sb-search-input {
  width: 100%;
  box-sizing: border-box;
  padding: 9px 12px 9px 34px;
  background: rgba(12, 30, 27, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  color: #fff;
  font-size: 12px;
  outline: none;
  transition: all 0.2s ease;
}
.sg-sb-search-input:focus {
  border-color: #C7A35D;
  box-shadow: 0 0 12px rgba(199, 163, 93, 0.35);
}
.sg-sb-search-icon {
  position: absolute;
  left: 10px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 13px;
  color: #94a3b8;
  pointer-events: none;
}

/* ACCORDION SECTIONS */
.sg-sb-sec {
  background: rgba(12, 30, 27, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 8px;
  overflow: hidden;
  transition: border-color 0.2s;
}
.sg-sb-sec:hover {
  border-color: rgba(199, 163, 93, 0.3);
}
.sg-sec-hdr {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 12px;
  cursor: pointer;
  background: rgba(12, 30, 27, 0.85);
  user-select: none;
  transition: background 0.2s;
}
.sg-sec-hdr:hover {
  background: rgba(15, 38, 35, 0.95);
}
.sg-sec-hdr-lbl {
  font-size: 11.5px;
  font-weight: 700;
  color: #e2e8f0;
  letter-spacing: 0.03em;
  display: flex;
  align-items: center;
  gap: 7px;
}
.sg-sec-arr {
  color: #94a3b8;
  font-size: 12px;
  transition: transform 0.25s ease;
}
.sg-sb-sec.is-open .sg-sec-arr {
  transform: rotate(180deg);
  color: #C7A35D;
}
.sg-sec-body {
  display: none;
  padding: 10px 12px 14px;
  background: rgba(8, 20, 18, 0.5);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}
.sg-sb-sec.is-open .sg-sec-body {
  display: block;
}

/* GRID BUTTONS & PILLS */
.sg-tile-grid,
.sg-wx-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
  margin-bottom: 8px;
}
.sg-tile-btn,
.sg-wx-btn {
  padding: 7px 4px;
  background: rgba(15, 38, 35, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 6px;
  color: #cbd5e1;
  font-size: 10px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  transition: all 0.2s;
  text-align: center;
}
.sg-tile-btn:hover,
.sg-wx-btn:hover {
  background: rgba(199, 163, 93, 0.2);
  border-color: #C7A35D;
  color: #fff;
}
.sg-tile-btn.active,
.sg-wx-btn.active {
  background: #C7A35D;
  border-color: #E8CE8A;
  color: #fff;
  font-weight: 700;
  box-shadow: 0 2px 10px rgba(199, 163, 93, 0.4);
}

/* Layer toggles */
.sg-layer-toggles {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 8px;
}
.sg-toggle-row {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #cbd5e1;
  font-size: 11px;
  cursor: pointer;
  padding: 3px 0;
}
.sg-toggle-row input[type="checkbox"] {
  accent-color: #C7A35D;
  cursor: pointer;
}

/* Opacity Slider */
.sg-slider-wrap {
  padding: 8px 10px;
  background: rgba(12, 30, 27, 0.7);
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.06);
}
.sg-slider-label {
  display: flex;
  justify-content: space-between;
  font-size: 10px;
  color: #94a3b8;
  margin-bottom: 4px;
  font-weight: 600;
}
.sg-slider-wrap input[type="range"] {
  width: 100%;
  accent-color: #C7A35D;
  cursor: pointer;
}

/* RADIUS AMENITIES */
.sg-amenity-radius-row {
  display: flex;
  gap: 4px;
  margin-bottom: 8px;
}
.sg-radius-btn {
  flex: 1;
  padding: 5px 2px;
  background: rgba(15, 38, 35, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 4px;
  color: #94a3b8;
  font-size: 10px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
  text-align: center;
}
.sg-radius-btn:hover {
  color: #fff;
}
.sg-radius-btn.active {
  background: #C7A35D;
  border-color: #E8CE8A;
  color: #fff;
}
.sg-amenity-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 6px;
  margin-bottom: 8px;
}
.sg-amenity-pill {
  padding: 6px 8px;
  background: rgba(15, 38, 35, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 6px;
  color: #cbd5e1;
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: all 0.2s;
}
.sg-amenity-pill:hover {
  background: rgba(199, 163, 93, 0.15);
  border-color: #C7A35D;
  color: #fff;
}
.sg-amenity-pill.active {
  background: #C7A35D;
  border-color: #E8CE8A;
  color: #fff;
  font-weight: 700;
}
.sg-amenity-count {
  font-size: 10px;
  padding: 1px 5px;
  border-radius: 4px;
  background: rgba(0, 0, 0, 0.3);
}

/* ROUTING / CHỈ ĐƯỜNG */
.sg-route-box {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 8px;
}
.sg-route-input-row {
  display: flex;
  align-items: center;
  gap: 6px;
}
.sg-route-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}
.sg-route-dot.is-a { background: #22c55e; box-shadow: 0 0 6px #22c55e; }
.sg-route-dot.is-b { background: #C7A35D; box-shadow: 0 0 6px #C7A35D; }
.sg-route-btn {
  flex: 1;
  text-align: left;
  padding: 7px 10px;
  background: rgba(15, 38, 35, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 6px;
  color: #cbd5e1;
  font-size: 11px;
  cursor: pointer;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.sg-route-btn:hover {
  border-color: #C7A35D;
  color: #fff;
}
.sg-route-vehicle-row {
  display: flex;
  gap: 6px;
}
.sg-route-vbtn {
  flex: 1;
  padding: 6px;
  background: rgba(15, 38, 35, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 6px;
  color: #94a3b8;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  text-align: center;
  transition: all 0.2s;
}
.sg-route-vbtn.active {
  background: #C7A35D;
  border-color: #E8CE8A;
  color: #fff;
}
.sg-route-calc-btn {
  width: 100%;
  padding: 8px;
  background: linear-gradient(135deg, #C7A35D, #BC995B);
  border: 1px solid #E8CE8A;
  border-radius: 6px;
  color: #fff;
  font-size: 11.5px;
  font-weight: 800;
  cursor: pointer;
  margin-top: 6px;
  transition: all 0.2s;
}
.sg-route-calc-btn:hover {
  filter: brightness(1.15);
}
.sg-route-res {
  margin-top: 6px;
  padding: 8px 10px;
  background: rgba(12, 30, 27, 0.8);
  border-radius: 6px;
  border: 1px dashed rgba(199, 163, 93, 0.4);
  font-size: 11px;
  color: #e2e8f0;
  line-height: 1.4;
  display: none;
}

/* SỐ TỜ / SỐ THỬA & TỌA ĐỘ VN-2000 */
.sg-parcel-tabs {
  display: flex;
  gap: 4px;
  margin-bottom: 8px;
}
.sg-parcel-tab {
  flex: 1;
  padding: 5px;
  background: rgba(15, 38, 35, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 4px;
  color: #94a3b8;
  font-size: 10px;
  font-weight: 700;
  cursor: pointer;
  text-align: center;
}
.sg-parcel-tab.active {
  background: #C7A35D;
  border-color: #E8CE8A;
  color: #fff;
}
.sg-parcel-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  margin-bottom: 6px;
}
.sg-parcel-input {
  width: 100%;
  box-sizing: border-box;
  padding: 6px 8px;
  background: rgba(12, 30, 27, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 4px;
  color: #fff;
  font-size: 11px;
  outline: none;
}
.sg-parcel-input:focus {
  border-color: #C7A35D;
}

/* VINBUS & FUTA */
.sg-bus-pills {
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.sg-bus-item {
  padding: 7px 10px;
  background: rgba(15, 38, 35, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  transition: all 0.2s;
}
.sg-bus-item:hover {
  background: rgba(199, 163, 93, 0.15);
  border-color: #C7A35D;
}
.sg-bus-badge {
  font-size: 9.5px;
  font-weight: 800;
  color: #22c55e;
  padding: 1px 6px;
  border-radius: 4px;
  background: rgba(34, 197, 94, 0.15);
}

/* TOP-RIGHT FLOATING DOCK */
.sg-top-right-dock {
  position: absolute;
  top: 14px;
  right: 16px;
  z-index: 1250;
  display: flex;
  align-items: center;
  gap: 6px;
}
.sg-dock-btn {
  height: 34px !important;
  padding: 0 11px !important;
  font-size: 11px !important;
  white-space: nowrap !important;
  background: rgba(12, 30, 27, 0.88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  color: #e2e8f0;
  font-size: 11.5px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
  transition: all 0.2s ease;
}
.sg-dock-btn:hover {
  background: #0F2623;
  border-color: #C7A35D;
  color: #fff;
  transform: translateY(-1px);
}
.sg-dock-btn.is-hq {
  background: linear-gradient(135deg, #C7A35D, #BC995B);
  border-color: #E8CE8A;
  color: #fff;
  box-shadow: 0 4px 20px rgba(199, 163, 93, 0.45);
}

/* SOVEREIGNTY LABELS */
.sg-sovereignty-badge {
  pointer-events: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  background: rgba(6, 16, 14, 0.88);
  backdrop-filter: blur(8px);
  border: 1.5px solid #C7A35D;
  border-radius: 8px;
  padding: 5px 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.8), 0 0 14px rgba(199, 163, 93, 0.4);
  transform: translate(-50%, -50%);
  user-select: none;
}
.sg-sov-title {
  font-size: 11px;
  font-weight: 900;
  color: #FFD700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.sg-sov-sub {
  font-size: 8.5px;
  font-weight: 700;
  color: #f1f5f9;
  margin-top: 1px;
}

/* Mobile responsive */
@media (max-width: 768px) {
  .sg-gis-sidebar {
    width: 300px;
    transform: translateX(-100%);
  }
  .sidebar-mobile-open .sg-gis-sidebar {
    transform: translateX(0);
  }
  #sidebarArrow {
    left: 0;
  }
  .sidebar-mobile-open #sidebarArrow {
    left: 300px;
  }
}


/* === ULTRA-CRISP SIDEBAR TYPOGRAPHY & LAYOUT ENHANCEMENTS === */
.sg-gis-sidebar * {
  box-sizing: border-box;
}

.sg-gis-sidebar label,
.sg-gis-sidebar span,
.sg-gis-sidebar strong,
.sg-gis-sidebar p {
  color: #f1f5f9;
}

.sg-infra-cat-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px 6px;
  padding: 6px 0 10px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  margin-bottom: 8px;
}

.sg-cat-chk {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #f8fafc !important;
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  line-height: 1.25;
}

.sg-cat-chk span {
  color: #f8fafc !important;
}

.sg-cat-chk input[type="checkbox"],
.sg-toggle-row input[type="checkbox"] {
  accent-color: #C7A35D;
  width: 14px;
  height: 14px;
  cursor: pointer;
  flex-shrink: 0;
}

.sg-toggle-row {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #f8fafc !important;
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  padding: 4px 0;
}

.sg-toggle-row span {
  color: #f8fafc !important;
}

.sg-sec-hdr-lbl {
  color: #ffffff !important;
  font-weight: 800 !important;
}

.sg-sec-hdr-lbl span {
  color: #ffffff !important;
}


/* ==========================================================================
   KZEN HOLDINGS - DỰ ÁN BĐS TOÀN QUỐC (PROJECT MARKERS & RICH POPUPS)
   ========================================================================== */

/* Custom Project Leaflet Pin */
.sg-proj-marker-wrap {
  background: transparent !important;
  border: none !important;
}

.sg-proj-pin {
  display: inline-flex;
  align-items: center;
  background: #0A1816;
  border: 1.5px solid #C7A35D;
  border-radius: 20px;
  padding: 3px 8px 3px 4px;
  box-shadow: 0 4px 14px rgba(8, 20, 18, 0.6), 0 0 10px rgba(199, 163, 93, 0.4);
  cursor: pointer;
  transform: translate(-50%, -100%);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  white-space: nowrap;
}

.sg-proj-pin:hover {
  transform: translate(-50%, -105%) scale(1.08);
  border-color: #ffffff;
  box-shadow: 0 6px 20px rgba(199, 163, 93, 0.6), 0 0 16px rgba(255, 255, 255, 0.3);
  z-index: 1000 !important;
}

.sg-proj-pin-icon {
  width: 22px;
  height: 22px;
  background: #C7A35D;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-size: 12px;
  flex-shrink: 0;
  margin-right: 6px;
}

.sg-proj-pin-label {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.sg-pin-name {
  color: #ffffff;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.2px;
}

.sg-pin-price {
  color: #C7A35D;
  font-size: 10px;
  font-weight: 700;
}

/* ============================================================
   SG LEAFLET COMPACT LUXURY POPUP (/impeccable & /ui-ux-pro-max)
   ============================================================ */
.sg-leaflet-proj-pop .leaflet-popup-content-wrapper {
  background: rgba(9, 23, 21, 0.96) !important;
  backdrop-filter: blur(20px) !important;
  -webkit-backdrop-filter: blur(20px) !important;
  color: #ffffff !important;
  border-radius: 14px !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.75), 0 0 0 1px rgba(199, 163, 93, 0.25) !important;
  padding: 0 !important;
  overflow: hidden !important;
}

.sg-leaflet-proj-pop .leaflet-popup-content {
  margin: 0 !important;
  line-height: 1.4 !important;
  width: 280px !important;
  min-width: 270px !important;
  max-width: 290px !important;
}

.sg-leaflet-proj-pop .leaflet-popup-tip-container {
  display: none !important;
}

.sg-leaflet-proj-pop .leaflet-popup-close-button {
  top: 8px !important;
  right: 8px !important;
  width: 24px !important;
  height: 24px !important;
  line-height: 22px !important;
  text-align: center !important;
  background: rgba(0, 0, 0, 0.6) !important;
  backdrop-filter: blur(6px) !important;
  border: 1px solid rgba(255, 255, 255, 0.2) !important;
  border-radius: 50% !important;
  color: #f1f5f9 !important;
  font-size: 14px !important;
  font-weight: 700 !important;
  z-index: 10 !important;
  transition: all 0.2s ease !important;
  padding: 0 !important;
}

.sg-leaflet-proj-pop .leaflet-popup-close-button:hover {
  background: #C7A35D !important;
  color: #ffffff !important;
  border-color: #C7A35D !important;
  transform: scale(1.08);
}

.sg-pop-card {
  display: flex;
  flex-direction: column;
  width: 100%;
}

.sg-pop-thumb {
  height: 125px;
  background-size: cover;
  background-position: center;
  position: relative;
  background-color: #0C1E1B;
}

.sg-pop-thumb::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(9, 23, 21,0) 40%, rgba(9, 23, 21,0.95) 100%);
  pointer-events: none;
}

.sg-pop-thumb.placeholder {
  background: linear-gradient(135deg, #0C1E1B 0%, #1e293b 100%);
  display: flex;
  align-items: center;
  justify-content: center;
}

.sg-pop-type-badge {
  position: absolute;
  top: 8px;
  left: 8px;
  background: rgba(9, 23, 21, 0.85);
  backdrop-filter: blur(8px);
  color: #38bdf8;
  border: 1px solid rgba(56, 189, 248, 0.35);
  padding: 2px 7px;
  border-radius: 5px;
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.3px;
  text-transform: uppercase;
  z-index: 2;
}

.sg-pop-status-badge {
  position: absolute;
  bottom: 8px;
  right: 8px;
  background: rgba(16, 185, 129, 0.9);
  color: #ffffff;
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.2px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
  z-index: 2;
}

.sg-pop-content {
  padding: 10px 12px 12px 12px;
  background: rgba(9, 23, 21, 0.98);
}

.sg-pop-title {
  margin: 0 0 3px 0;
  font-size: 14px;
  font-weight: 800;
  color: #ffffff;
  line-height: 1.25;
  letter-spacing: -0.2px;
}

.sg-pop-dev {
  font-size: 11px;
  color: #94a3b8;
  margin-bottom: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sg-pop-dev strong {
  color: #C7A35D;
  font-weight: 700;
}

.sg-pop-loc {
  font-size: 10.5px;
  color: #64748b;
  margin-bottom: 8px;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.sg-pop-pricing-box {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.07);
  padding: 6px 8px;
  border-radius: 7px;
  margin-bottom: 8px;
}

.sg-pop-pricing-item {
  display: flex;
  flex-direction: column;
}

.sg-pop-pricing-item .lbl {
  font-size: 9px;
  color: #64748b;
  font-weight: 600;
  text-transform: uppercase;
  margin-bottom: 1px;
}

.sg-pop-pricing-item .val {
  font-size: 11px;
  color: #e2e8f0;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sg-pop-pricing-item .val.price {
  color: #C7A35D;
  font-size: 12px;
}

.sg-pop-pricing-item .val.unit-price {
  color: #f59e0b;
}

.sg-pop-extra-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 10px;
  color: #94a3b8;
  padding: 0 2px;
  margin-bottom: 8px;
}

.sg-pop-footer {
  margin-top: 6px;
  display: flex;
}

.sg-btn-explore-saban {
  flex: 1;
  background: linear-gradient(135deg, #C7A35D 0%, #BC995B 100%);
  color: #ffffff !important;
  text-decoration: none;
  font-size: 11.5px;
  font-weight: 700;
  padding: 8px 10px;
  border-radius: 7px;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  box-shadow: 0 4px 14px rgba(199, 163, 93, 0.35);
  transition: all 0.2s ease;
}

.sg-btn-explore-saban:hover {
  background: linear-gradient(135deg, #BC995B 0%, #8C6F33 100%);
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(199, 163, 93, 0.45);
}

/* Sidebar Project Card Modern Luxury */
.sg-proj-card-pro {
  background: rgba(14, 34, 31, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  margin-bottom: 8px;
  overflow: hidden;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.sg-proj-card-pro:hover {
  background: rgba(20, 52, 47, 0.95);
  border-color: rgba(199, 163, 93, 0.5);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4), 0 0 12px rgba(199, 163, 93, 0.15);
}

.sg-proj-card-inner {
  display: flex;
  gap: 10px;
  padding: 8px 10px;
  align-items: center;
}

.sg-proj-card-media {
  width: 74px;
  height: 74px;
  border-radius: 8px;
  background-size: cover;
  background-position: center;
  background-color: #0C1E1B;
  border: 1px solid rgba(255, 255, 255, 0.1);
  flex-shrink: 0;
}

.sg-proj-card-media.placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  color: #64748b;
  font-size: 24px;
  background: rgba(255, 255, 255, 0.03);
}

.sg-proj-card-info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.sg-proj-card-hdr {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 6px;
  margin-bottom: 2px;
}

.sg-proj-card-title {
  font-size: 13px;
  font-weight: 700;
  color: #ffffff;
  line-height: 1.25;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sg-proj-card-badge {
  font-size: 9px;
  font-weight: 700;
  color: #38bdf8;
  background: rgba(56, 189, 248, 0.12);
  border: 1px solid rgba(56, 189, 248, 0.25);
  padding: 1px 5px;
  border-radius: 4px;
  white-space: nowrap;
  flex-shrink: 0;
}

.sg-proj-card-dev {
  font-size: 10.5px;
  color: #94a3b8;
  margin-bottom: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sg-proj-card-dev strong {
  color: #e2e8f0;
  font-weight: 600;
}

.sg-proj-card-loc {
  font-size: 10px;
  color: #64748b;
  margin-bottom: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sg-proj-card-pricing {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 2px;
}

.sg-proj-price-main {
  font-size: 11.5px;
  font-weight: 800;
  color: #C7A35D;
}

.sg-proj-price-m2 {
  font-size: 10.5px;
  font-weight: 700;
  color: #f59e0b;
}

/* Sidebar Project Item List */
.sg-proj-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 6px;
  padding: 7px 9px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.sg-proj-item:hover {
  background: rgba(199, 163, 93, 0.12);
  border-color: rgba(199, 163, 93, 0.45);
  transform: translateX(2px);
}

.sg-proj-item-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
  overflow: hidden;
}

.sg-proj-item-name {
  color: #f8fafc;
  font-size: 11.5px;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sg-proj-item-sub {
  color: #94a3b8;
  font-size: 10px;
  display: flex;
  gap: 6px;
}

.sg-proj-item-sub .dev {
  color: #C7A35D;
  font-weight: 600;
}

.sg-proj-item-price {
  text-align: right;
  flex-shrink: 0;
  margin-left: 8px;
}

.sg-proj-item-price .main-p {
  color: #C7A35D;
  font-size: 11px;
  font-weight: 700;
}

.sg-proj-item-price .sub-p {
  color: #64748b;
  font-size: 9.5px;
}


/* ==========================================================================
   CRITICAL FIX: PREVENT FLEX CRUSH & SQUISHING IN SIDEBAR
   ========================================================================== */
.sg-gis-sidebar {
  display: flex !important;
  flex-direction: column !important;
  gap: 10px !important;
  overflow-y: auto !important;
  overflow-x: hidden !important;
}

.sg-gis-sidebar > * {
  flex-shrink: 0 !important;
}

.sg-sb-brand {
  flex-shrink: 0 !important;
}

.sg-sb-search-wrap {
  flex-shrink: 0 !important;
}

.sg-sb-sec {
  flex-shrink: 0 !important;
  border-radius: 8px !important;
  background: rgba(12, 30, 27, 0.85) !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  margin-bottom: 2px !important;
  overflow: hidden !important;
}

.sg-sb-sec.is-open {
  border-color: rgba(199, 163, 93, 0.4) !important;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4) !important;
}

.sg-sec-hdr {
  min-height: 44px !important;
  padding: 11px 14px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  cursor: pointer !important;
  background: rgba(15, 38, 35, 0.9) !important;
  transition: background 0.2s, border-color 0.2s !important;
}

.sg-sec-hdr:hover {
  background: rgba(26, 74, 68, 0.95) !important;
}

.sg-sec-hdr-lbl {
  font-size: 12px !important;
  font-weight: 800 !important;
  color: #ffffff !important;
  letter-spacing: 0.03em !important;
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
  line-height: 1.3 !important;
}

.sg-sec-arr {
  font-size: 14px !important;
  color: #94a3b8 !important;
  flex-shrink: 0 !important;
}

.sg-sb-sec.is-open .sg-sec-arr {
  color: #C7A35D !important;
  transform: rotate(180deg) !important;
}

.sg-sec-body {
  padding: 12px 14px 16px !important;
  background: rgba(8, 20, 18, 0.75) !important;
}

/* INFRASTRUCTURE CONTROLS & LIST FIX */
.sg-infra-modes {
  display: flex !important;
  gap: 6px !important;
  margin-bottom: 10px !important;
}

.sg-mode-pill {
  flex: 1 !important;
  padding: 7px 10px !important;
  background: rgba(15, 38, 35, 0.8) !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  border-radius: 6px !important;
  color: #cbd5e1 !important;
  font-size: 11px !important;
  font-weight: 700 !important;
  cursor: pointer !important;
  transition: all 0.2s ease !important;
  text-align: center !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 5px !important;
}

.sg-mode-pill:hover {
  background: rgba(199, 163, 93, 0.2) !important;
  border-color: #C7A35D !important;
  color: #ffffff !important;
}

.sg-mode-pill.active {
  background: #C7A35D !important;
  border-color: #E8CE8A !important;
  color: #ffffff !important;
  box-shadow: 0 2px 8px rgba(199, 163, 93, 0.4) !important;
}

.sg-infra-quick-list {
  max-height: 220px !important;
  overflow-y: auto !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 5px !important;
  padding-right: 2px !important;
}

.sg-infra-item {
  flex-shrink: 0 !important;
  min-height: 38px !important;
  padding: 8px 10px !important;
  background: rgba(15, 38, 35, 0.7) !important;
  border: 1px solid rgba(255, 255, 255, 0.07) !important;
  border-radius: 6px !important;
  cursor: pointer !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  transition: all 0.15s ease !important;
}

.sg-infra-item:hover {
  background: rgba(199, 163, 93, 0.15) !important;
  border-color: rgba(199, 163, 93, 0.4) !important;
  transform: translateX(2px) !important;
}

/* PROJECT SELECT DROPDOWNS & CARDS */
.sg-proj-select {
  appearance: none !important;
  -webkit-appearance: none !important;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%2394a3b8'%3e%3cpath d='M12 16l-6-6h12z'/%3e%3c/svg%3e") !important;
  background-repeat: no-repeat !important;
  background-position: right 8px center !important;
  background-size: 14px !important;
  padding-right: 24px !important;
  outline: none !important;
  cursor: pointer !important;
  transition: border-color 0.2s !important;
}

.sg-proj-select:focus {
  border-color: #C7A35D !important;
  box-shadow: 0 0 8px rgba(199, 163, 93, 0.3) !important;
}

.sg-proj-list-container {
  max-height: 240px !important;
  overflow-y: auto !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 6px !important;
  padding-right: 2px !important;
}

.sg-proj-item {
  flex-shrink: 0 !important;
  min-height: 48px !important;
  padding: 8px 10px !important;
  background: rgba(15, 38, 35, 0.75) !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  border-radius: 7px !important;
  cursor: pointer !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  transition: all 0.15s ease !important;
}

.sg-proj-item:hover {
  background: rgba(199, 163, 93, 0.15) !important;
  border-color: rgba(199, 163, 93, 0.5) !important;
  transform: translateX(2px) !important;
}


/* ==========================================================================
   KZEN HOLDINGS GIS PRO - LUXURY TABBED SIDEBAR ARCHITECTURE (2026)
   ========================================================================== */

/* Main Sidebar Container */
.sg-gis-sidebar {
  width: 380px !important;
  max-width: 90vw !important;
  display: flex !important;
  flex-direction: column !important;
  background: rgba(8, 20, 18, 0.95) !important;
  backdrop-filter: blur(20px) !important;
  -webkit-backdrop-filter: blur(20px) !important;
  border-right: 1px solid rgba(255, 255, 255, 0.08) !important;
  overflow: hidden !important;
  padding: 12px 14px 16px !important;
  box-shadow: 4px 0 24px rgba(0, 0, 0, 0.5) !important;
  z-index: 1000 !important;
}

/* Brand Header */
.sg-sb-brand {
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
  padding: 8px 10px !important;
  background: rgba(15, 38, 35, 0.8) !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  border-radius: 10px !important;
  cursor: pointer !important;
  transition: all 0.2s !important;
  margin-bottom: 10px !important;
  flex-shrink: 0 !important;
}

.sg-sb-brand:hover {
  background: rgba(26, 74, 68, 0.95) !important;
  border-color: rgba(199, 163, 93, 0.5) !important;
}

.sg-sb-logo {
  width: 32px !important;
  height: 32px !important;
  background: linear-gradient(135deg, #C7A35D, #8C6F33) !important;
  border-radius: 8px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-weight: 900 !important;
  font-size: 16px !important;
  color: #fff !important;
  box-shadow: 0 2px 8px rgba(199, 163, 93, 0.4) !important;
  flex-shrink: 0 !important;
}

.sg-sb-brand-info {
  display: flex !important;
  flex-direction: column !important;
  overflow: hidden !important;
}

.sg-sb-title {
  font-size: 13px !important;
  font-weight: 800 !important;
  color: #fff !important;
  letter-spacing: 0.04em !important;
  line-height: 1.2 !important;
}

.sg-sb-sub {
  font-size: 9px !important;
  font-weight: 600 !important;
  color: #94a3b8 !important;
  letter-spacing: 0.03em !important;
  text-overflow: ellipsis !important;
  overflow: hidden !important;
  white-space: nowrap !important;
  line-height: 1.4 !important;
}

/* Master Segmented Tabs Navigation Bar */
.sg-tabs-nav {
  display: grid !important;
  grid-template-columns: repeat(4, 1fr) !important;
  gap: 4px !important;
  background: rgba(12, 30, 27, 0.9) !important;
  padding: 4px !important;
  border-radius: 10px !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  margin-bottom: 12px !important;
  flex-shrink: 0 !important;
}

.sg-tab-btn {
  background: transparent !important;
  border: none !important;
  border-radius: 7px !important;
  padding: 8px 4px !important;
  color: #94a3b8 !important;
  font-size: 11px !important;
  font-weight: 700 !important;
  cursor: pointer !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  gap: 3px !important;
  transition: all 0.2s !important;
  position: relative !important;
  line-height: 1.1 !important;
}

.sg-tab-btn:hover {
  color: #fff !important;
  background: rgba(255, 255, 255, 0.05) !important;
}

.sg-tab-btn.active {
  background: #C7A35D !important;
  color: #ffffff !important;
  font-weight: 800 !important;
  box-shadow: 0 2px 10px rgba(199, 163, 93, 0.45) !important;
}

.sg-tab-icon {
  font-size: 14px !important;
  line-height: 1 !important;
}

.sg-tab-text {
  font-size: 10.5px !important;
  letter-spacing: 0.02em !important;
}

.sg-tab-badge {
  position: absolute !important;
  top: 2px !important;
  right: 4px !important;
  background: rgba(0, 0, 0, 0.4) !important;
  color: #fff !important;
  font-size: 9px !important;
  font-weight: 800 !important;
  padding: 1px 4px !important;
  border-radius: 10px !important;
  line-height: 1 !important;
}

.sg-tab-btn.active .sg-tab-badge {
  background: rgba(255, 255, 255, 0.3) !important;
}

/* Master Tab Panes */
.sg-tab-pane {
  display: none;
  flex-direction: column;
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  padding-right: 2px;
}

.sg-tab-pane.active {
  display: flex !important;
}

/* Custom Scrollbars */
.sg-tab-pane::-webkit-scrollbar,
.sg-proj-list-container::-webkit-scrollbar,
.sg-region-pills::-webkit-scrollbar {
  width: 5px;
  height: 5px;
}

.sg-tab-pane::-webkit-scrollbar-track,
.sg-proj-list-container::-webkit-scrollbar-track,
.sg-region-pills::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.2);
  border-radius: 4px;
}

.sg-tab-pane::-webkit-scrollbar-thumb,
.sg-proj-list-container::-webkit-scrollbar-thumb,
.sg-region-pills::-webkit-scrollbar-thumb {
  background: rgba(199, 163, 93, 0.5);
  border-radius: 4px;
}

.sg-tab-pane::-webkit-scrollbar-thumb:hover,
.sg-proj-list-container::-webkit-scrollbar-thumb:hover {
  background: #C7A35D;
}

/* --------------------------------------------------------------------------
   TAB 1: DỰ ÁN BĐS TOÀN QUỐC
   -------------------------------------------------------------------------- */
.sg-proj-search-bar {
  display: flex !important;
  align-items: center !important;
  background: rgba(15, 38, 35, 0.9) !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  border-radius: 8px !important;
  padding: 0 10px !important;
  margin-bottom: 8px !important;
  flex-shrink: 0 !important;
}

.sg-proj-search-bar:focus-within {
  border-color: #C7A35D !important;
  box-shadow: 0 0 10px rgba(199, 163, 93, 0.25) !important;
}

.sg-proj-search-icon {
  font-size: 13px !important;
  color: #94a3b8 !important;
  margin-right: 8px !important;
}

.sg-proj-search-input {
  flex: 1 !important;
  height: 38px !important;
  background: transparent !important;
  border: none !important;
  color: #ffffff !important;
  font-size: 12px !important;
  outline: none !important;
}

.sg-proj-search-input::placeholder {
  color: #64748b !important;
}

/* Region Quick Filter Pills */
.sg-region-pills {
  display: flex !important;
  gap: 6px !important;
  overflow-x: auto !important;
  padding-bottom: 6px !important;
  margin-bottom: 8px !important;
  flex-shrink: 0 !important;
}

.sg-region-pill {
  white-space: nowrap !important;
  background: rgba(15, 38, 35, 0.8) !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  color: #cbd5e1 !important;
  font-size: 11px !important;
  font-weight: 600 !important;
  padding: 5px 10px !important;
  border-radius: 20px !important;
  cursor: pointer !important;
  transition: all 0.2s !important;
  flex-shrink: 0 !important;
}

.sg-region-pill:hover {
  background: rgba(199, 163, 93, 0.15) !important;
  color: #fff !important;
  border-color: rgba(199, 163, 93, 0.4) !important;
}

.sg-region-pill.active {
  background: #C7A35D !important;
  color: #fff !important;
  font-weight: 700 !important;
  border-color: #E8CE8A !important;
  box-shadow: 0 2px 8px rgba(199, 163, 93, 0.35) !important;
}

/* Filter Dropdowns Grid */
.sg-proj-filters-grid {
  display: grid !important;
  grid-template-columns: 1fr 1fr !important;
  gap: 6px !important;
  margin-bottom: 10px !important;
  flex-shrink: 0 !important;
}

.sg-proj-select-v2 {
  width: 100% !important;
  background: rgba(15, 38, 35, 0.9) !important;
  color: #f8fafc !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  border-radius: 6px !important;
  padding: 7px 8px !important;
  font-size: 11px !important;
  font-weight: 600 !important;
  outline: none !important;
  cursor: pointer !important;
  text-overflow: ellipsis !important;
  overflow: hidden !important;
  white-space: nowrap !important;
}

.sg-proj-select-v2:focus {
  border-color: #C7A35D !important;
}

/* Results Count Bar */
.sg-proj-stats-bar {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  padding: 4px 6px 8px !important;
  font-size: 11px !important;
  font-weight: 700 !important;
  color: #94a3b8 !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06) !important;
  margin-bottom: 8px !important;
  flex-shrink: 0 !important;
}

.sg-proj-stats-bar strong {
  color: #C7A35D !important;
}

/* Project Cards Stream */
.sg-proj-stream {
  display: flex !important;
  flex-direction: column !important;
  gap: 8px !important;
  flex: 1 1 auto !important;
  overflow-y: auto !important;
}

.sg-proj-card-pro {
  background: rgba(15, 38, 35, 0.75) !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  border-radius: 10px !important;
  padding: 10px 12px !important;
  cursor: pointer !important;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1) !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 6px !important;
  position: relative !important;
}

.sg-proj-card-pro:hover {
  background: rgba(26, 74, 68, 0.95) !important;
  border-color: rgba(199, 163, 93, 0.6) !important;
  transform: translateY(-2px) !important;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4), 0 0 12px rgba(199, 163, 93, 0.2) !important;
}

.sg-proj-card-hdr {
  display: flex !important;
  justify-content: space-between !important;
  align-items: flex-start !important;
  gap: 8px !important;
}

.sg-proj-card-title {
  font-size: 13px !important;
  font-weight: 800 !important;
  color: #ffffff !important;
  line-height: 1.3 !important;
  flex: 1 !important;
}

.sg-proj-card-badge {
  font-size: 9px !important;
  font-weight: 700 !important;
  color: #38bdf8 !important;
  background: rgba(56, 189, 248, 0.15) !important;
  padding: 2px 6px !important;
  border-radius: 4px !important;
  white-space: nowrap !important;
  flex-shrink: 0 !important;
}

.sg-proj-card-dev {
  font-size: 11px !important;
  font-weight: 600 !important;
  color: #cbd5e1 !important;
  display: flex !important;
  align-items: center !important;
  gap: 4px !important;
}

.sg-proj-card-dev strong {
  color: #BC995B !important;
}

.sg-proj-card-loc {
  font-size: 10.5px !important;
  color: #94a3b8 !important;
  line-height: 1.3 !important;
  text-overflow: ellipsis !important;
  overflow: hidden !important;
  white-space: nowrap !important;
}

.sg-proj-card-pricing {
  display: flex !important;
  align-items: baseline !important;
  justify-content: space-between !important;
  padding-top: 6px !important;
  border-top: 1px dashed rgba(255, 255, 255, 0.08) !important;
  margin-top: 2px !important;
}

.sg-proj-price-main {
  font-size: 13px !important;
  font-weight: 900 !important;
  color: #C7A35D !important;
  letter-spacing: 0.02em !important;
}

.sg-proj-price-m2 {
  font-size: 11px !important;
  font-weight: 700 !important;
  color: #eab308 !important;
  background: rgba(234, 179, 8, 0.12) !important;
  padding: 1px 6px !important;
  border-radius: 4px !important;
}

/* --------------------------------------------------------------------------
   TAB 2: BẢN ĐỒ & QUY HOẠCH STYLES
   -------------------------------------------------------------------------- */
.sg-card-section {
  background: rgba(15, 38, 35, 0.75) !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  border-radius: 10px !important;
  padding: 12px 14px !important;
  margin-bottom: 12px !important;
}

.sg-card-title {
  font-size: 11px !important;
  font-weight: 800 !important;
  color: #ffffff !important;
  text-transform: uppercase !important;
  letter-spacing: 0.05em !important;
  margin-bottom: 8px !important;
  display: flex !important;
  align-items: center !important;
  gap: 6px !important;
}

/* Opacity slider inside Card Section */
.sg-slider-box {
  background: rgba(8, 20, 18, 0.6) !important;
  border: 1px solid rgba(255, 255, 255, 0.06) !important;
  border-radius: 8px !important;
  padding: 10px 12px !important;
  margin-top: 8px !important;
}

.sg-slider-header {
  display: flex !important;
  justify-content: space-between !important;
  font-size: 11px !important;
  font-weight: 700 !important;
  color: #cbd5e1 !important;
  margin-bottom: 6px !important;
}

.sg-slider-header strong {
  color: #C7A35D !important;
  font-size: 12px !important;
}


/* ==========================================================================
   COMPACT LUXURY CARD & SMOOTH SCROLL ARCHITECTURE (FIX TÊN BỊ CHE & KHÔNG SCROLL)
   ========================================================================== */

/* 1. Master Sidebar Viewport Constraint */
.sg-gis-sidebar {
  height: 100vh !important;
  max-height: 100vh !important;
  overflow: hidden !important;
  display: flex !important;
  flex-direction: column !important;
  padding: 12px 10px 14px !important;
  box-sizing: border-box !important;
  pointer-events: auto !important;
}

.sg-sb-brand,
.sg-tabs-nav {
  flex-shrink: 0 !important;
}

/* 2. Active Tab Pane Fills Remaining Viewport */
.sg-tab-pane.active {
  display: flex !important;
  flex-direction: column !important;
  flex: 1 1 0px !important;
  min-height: 0 !important;
  max-height: 100% !important;
  overflow: hidden !important;
}

.sg-tab-pane:not(#sgTabPane-projects) {
  overflow-y: auto !important;
}

/* 3. Header Filter Bars Never Shrink */
.sg-proj-search-bar,
.sg-region-pills,
.sg-proj-filters-grid,
.sg-proj-stats-bar {
  flex-shrink: 0 !important;
  margin-bottom: 6px !important;
}

/* 4. Project Stream Is Dedicated Scroll Container */
.sg-proj-stream,
#sgProjList {
  display: flex !important;
  flex-direction: column !important;
  gap: 6px !important;
  flex: 1 1 0px !important;
  min-height: 0 !important;
  height: 100% !important;
  overflow-y: scroll !important;
  overflow-x: hidden !important;
  padding-right: 4px !important;
  overscroll-behavior: contain !important;
  -webkit-overflow-scrolling: touch !important;
}

.sg-proj-stream::-webkit-scrollbar {
  width: 5px !important;
}
.sg-proj-stream::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.25) !important;
  border-radius: 4px !important;
}
.sg-proj-stream::-webkit-scrollbar-thumb {
  background: rgba(199, 163, 93, 0.5) !important;
  border-radius: 4px !important;
}
.sg-proj-stream::-webkit-scrollbar-thumb:hover {
  background: #C7A35D !important;
}

/* 5. Ultra-Compact Luxury Cards (40% Smaller, Full Title Visibility) */
.sg-proj-card-pro {
  background: rgba(15, 38, 35, 0.75) !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  border-radius: 8px !important;
  padding: 6px 8px !important;
  cursor: pointer !important;
  transition: all 0.15s ease !important;
  flex-shrink: 0 !important;
  position: relative !important;
  margin-bottom: 0 !important;
}

.sg-proj-card-pro:hover {
  background: rgba(26, 74, 68, 0.95) !important;
  border-color: rgba(199, 163, 93, 0.6) !important;
  transform: translateY(-1px) !important;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35) !important;
}

.sg-proj-card-inner {
  display: flex !important;
  gap: 8px !important;
  align-items: center !important;
}

.sg-proj-card-media {
  width: 52px !important;
  height: 52px !important;
  min-width: 52px !important;
  border-radius: 6px !important;
  background-size: cover !important;
  background-position: center !important;
  background-color: #0C1E1B !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  flex-shrink: 0 !important;
}

.sg-proj-card-media.placeholder {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  color: #64748b !important;
  font-size: 16px !important;
  background: rgba(255, 255, 255, 0.03) !important;
}

.sg-proj-card-info {
  flex: 1 !important;
  min-width: 0 !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 2px !important;
}

/* Full Width Title - NO Truncation to 3 chars */
.sg-proj-card-title-row {
  display: flex !important;
  width: 100% !important;
  min-width: 0 !important;
}

.sg-proj-card-title {
  font-size: 12.5px !important;
  font-weight: 700 !important;
  color: #ffffff !important;
  line-height: 1.25 !important;
  margin: 0 !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  width: 100% !important;
}

.sg-proj-card-sub-row {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 6px !important;
  font-size: 10.5px !important;
  line-height: 1.2 !important;
}

.sg-proj-card-dev {
  font-weight: 600 !important;
  color: #cbd5e1 !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  max-width: 130px !important;
}

.sg-proj-card-badge {
  font-size: 8.5px !important;
  font-weight: 600 !important;
  color: #38bdf8 !important;
  background: rgba(56, 189, 248, 0.12) !important;
  border: 1px solid rgba(56, 189, 248, 0.25) !important;
  padding: 1px 4px !important;
  border-radius: 3px !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  max-width: 110px !important;
  flex-shrink: 0 !important;
}

.sg-proj-card-bottom-row {
  display: flex !important;
  align-items: baseline !important;
  justify-content: space-between !important;
  gap: 6px !important;
  margin-top: 1px !important;
}

.sg-proj-price-main {
  font-size: 12px !important;
  font-weight: 800 !important;
  color: #C7A35D !important;
  letter-spacing: 0.01em !important;
  white-space: nowrap !important;
}

.sg-proj-price-m2 {
  font-size: 10px !important;
  font-weight: 600 !important;
  color: #fbbf24 !important;
  white-space: nowrap !important;
}


/* ==========================================================================
   Kzen GIS PRO: PURE VECTOR SVG ICON SYSTEM (NO EMOJIS)
   ========================================================================== */
.sg-icon {
  display: inline-block;
  width: 14px;
  height: 14px;
  vertical-align: -2px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
  transition: transform 0.15s ease, stroke 0.15s ease;
}
.sg-icon-sm {
  width: 11px;
  height: 11px;
  vertical-align: -1px;
}
.sg-icon-md {
  width: 13px;
  height: 13px;
  vertical-align: -2px;
}
.sg-icon-lg {
  width: 16px;
  height: 16px;
  vertical-align: -3px;
}
.sg-tab-icon .sg-icon {
  width: 17px;
  height: 17px;
  vertical-align: middle;
}
.sg-dock-icon .sg-icon {
  width: 15px;
  height: 15px;
  vertical-align: -2px;
}
.sg-region-pill .sg-icon {
  width: 12px;
  height: 12px;
  vertical-align: -1px;
  margin-right: 4px;
}
.sg-proj-search-icon .sg-icon,
.kz-search-icon .sg-icon {
  width: 14px;
  height: 14px;
  vertical-align: middle;
}
.sg-tile-btn .sg-icon,
.sg-wx-btn .sg-icon,
.sg-cat-pill .sg-icon,
.sg-mode-pill .sg-icon,
.sg-amenity-chip .sg-icon {
  width: 13px;
  height: 13px;
  vertical-align: -2px;
  margin-right: 4px;
}
.sg-proj-card-dev .sg-icon {
  width: 11px;
  height: 11px;
  vertical-align: -1px;
  margin-right: 3px;
  color: #94a3b8;
}
.sg-pop-loc .sg-icon {
  width: 12px;
  height: 12px;
  vertical-align: -2px;
  margin-right: 4px;
  color: #C7A35D;
}
.sg-pop-meta-row .sg-icon {
  width: 12px;
  height: 12px;
  vertical-align: -2px;
  margin-right: 4px;
  color: #C7A35D;
}
.sg-pop-btn .sg-icon {
  width: 13px;
  height: 13px;
  vertical-align: -2px;
  margin-right: 5px;
}

/* =========================================================================
   KZEN HOLDINGS WATERMARK & BRAND LOGO STYLES (ANTI-EMOJI / LUXURY STANDARDS)
   ========================================================================= */
.sg-map-watermark-layer {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  pointer-events: none;
  z-index: 450;
  overflow: hidden;
}

.sg-watermark-pattern {
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='320' height='180' viewBox='0 0 320 180'%3E%3Cg transform='rotate(-22 160 90)' opacity='0.08'%3E%3Ctext x='160' y='95' text-anchor='middle' font-family='-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,sans-serif' font-size='16' font-weight='800' letter-spacing='3.5px' fill='%23ffffff'%3EKZEN HOLDINGS%3C/text%3E%3C/g%3E%3C/svg%3E");
  background-repeat: repeat;
}

.sg-watermark-brand-badge {
  position: absolute;
  bottom: 24px;
  right: 24px;
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(12, 30, 27, 0.82);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(199, 163, 93, 0.45);
  padding: 6px 14px 6px 10px;
  border-radius: 20px;
  pointer-events: none;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5), 0 0 15px rgba(199, 163, 93, 0.2);
  opacity: 0.92;
  user-select: none;
}

.sg-watermark-brand-badge .sg-watermark-logo {
  width: 18px;
  height: 18px;
  object-fit: contain;
  display: block;
}

.sg-watermark-brand-badge .sg-watermark-text {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 11.5px;
  font-weight: 800;
  letter-spacing: 2px;
  color: #ffffff;
  text-transform: uppercase;
}

.sg-sb-logo img {
  width: 24px;
  height: 24px;
  object-fit: contain;
  display: block;
}

.sg-dock-btn.is-hq .sg-dock-icon img {
  width: 16px;
  height: 16px;
  object-fit: contain;
  display: block;
}


/* ===============================================================
   UPGRADE: INFRASTRUCTURE MACRO KPI & RICH ROUTE CARDS (Kzen Holdings LUXURY)
   =============================================================== */
.sg-infra-kpi-bar {
  display: grid !important;
  grid-template-columns: repeat(3, 1fr) !important;
  gap: 6px !important;
  margin-bottom: 8px !important;
}

.sg-infra-kpi-card {
  background: rgba(15, 38, 35, 0.75) !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  border-radius: 8px !important;
  padding: 8px 6px !important;
  text-align: center !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  backdrop-filter: blur(10px) !important;
  transition: all 0.2s ease !important;
}

.sg-infra-kpi-card:hover {
  background: rgba(24, 45, 72, 0.85) !important;
  border-color: rgba(199, 163, 93, 0.4) !important;
}

.sg-infra-kpi-card .kpi-num {
  font-size: 15px !important;
  font-weight: 800 !important;
  color: #f8fafc !important;
  line-height: 1.2 !important;
}

.sg-infra-kpi-card .kpi-num small {
  font-size: 10px !important;
  font-weight: 600 !important;
  color: #94a3b8 !important;
}

.sg-infra-kpi-card .kpi-label {
  font-size: 9.5px !important;
  color: #94a3b8 !important;
  font-weight: 600 !important;
  margin-top: 2px !important;
  white-space: nowrap !important;
}

.sg-infra-kpi-card.is-success .kpi-num {
  color: #10b981 !important;
}

.sg-infra-kpi-card.is-warning .kpi-num {
  color: #f59e0b !important;
}

/* 1. Smart Viewport Quick Navigation & Anti-Clutter */
.sg-infra-vp-row {
  display: grid !important;
  grid-template-columns: repeat(3, 1fr) !important;
  gap: 6px !important;
}

.sg-vp-btn {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 5px !important;
  padding: 6px 4px !important;
  height: 34px !important;
  background: rgba(15, 38, 35, 0.8) !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  border-radius: 7px !important;
  color: #cbd5e1 !important;
  font-size: 10.5px !important;
  font-weight: 700 !important;
  cursor: pointer !important;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1) !important;
  white-space: nowrap !important;
  text-align: center !important;
  box-sizing: border-box !important;
  outline: none !important;
}

.sg-vp-btn .sg-icon {
  width: 13px !important;
  height: 13px !important;
  flex-shrink: 0 !important;
  fill: none !important;
  stroke: currentColor !important;
  stroke-width: 2 !important;
}

.sg-vp-btn:hover {
  background: rgba(199, 163, 93, 0.15) !important;
  border-color: #C7A35D !important;
  color: #fff !important;
  transform: translateY(-1px) !important;
}

.sg-vp-btn.active {
  background: rgba(199, 163, 93, 0.25) !important;
  border-color: #C7A35D !important;
  color: #E8CE8A !important;
  box-shadow: 0 0 10px rgba(199, 163, 93, 0.25) !important;
}

/* 2. Time Horizon Filter Pills (3-Column Luxury Segment) */
.sg-infra-horizon-pills {
  display: grid !important;
  grid-template-columns: repeat(3, 1fr) !important;
  gap: 5px !important;
  background: rgba(12, 30, 27, 0.65) !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  border-radius: 8px !important;
  padding: 3px !important;
}

.sg-hz-pill {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 4px 6px !important;
  height: 28px !important;
  background: transparent !important;
  border: 1px solid transparent !important;
  border-radius: 6px !important;
  color: #94a3b8 !important;
  font-size: 10px !important;
  font-weight: 600 !important;
  cursor: pointer !important;
  transition: all 0.2s ease !important;
  text-align: center !important;
  white-space: nowrap !important;
  box-sizing: border-box !important;
  outline: none !important;
}

.sg-hz-pill:hover {
  color: #f8fafc !important;
  background: rgba(255, 255, 255, 0.06) !important;
}

.sg-hz-pill.active {
  background: rgba(199, 163, 93, 0.2) !important;
  border-color: #C7A35D !important;
  color: #E8CE8A !important;
  font-weight: 700 !important;
  box-shadow: 0 1px 6px rgba(199, 163, 93, 0.25) !important;
}

/* 3. Categories Filter Pills (4-Column Luxury Segment - Anti-Orphan Row) */
.sg-infra-cats {
  display: grid !important;
  grid-template-columns: repeat(4, 1fr) !important;
  gap: 5px !important;
  background: rgba(12, 30, 27, 0.65) !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  border-radius: 8px !important;
  padding: 4px !important;
  box-sizing: border-box !important;
}

.sg-cat-pill {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 4px !important;
  height: 32px !important;
  padding: 0 4px !important;
  background: rgba(255, 255, 255, 0.03) !important;
  border: 1px solid rgba(255, 255, 255, 0.06) !important;
  border-radius: 6px !important;
  color: #94a3b8 !important;
  font-size: 10.5px !important;
  font-weight: 600 !important;
  font-family: inherit !important;
  cursor: pointer !important;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1) !important;
  white-space: nowrap !important;
  outline: none !important;
  box-sizing: border-box !important;
  user-select: none !important;
}

.sg-cat-pill .sg-icon {
  width: 12.5px !important;
  height: 12.5px !important;
  flex-shrink: 0 !important;
  fill: none !important;
  stroke: currentColor !important;
  stroke-width: 2 !important;
  vertical-align: -1px !important;
  transition: transform 0.15s ease, color 0.15s ease !important;
}

.sg-cat-pill:hover {
  color: #f8fafc !important;
  background: rgba(255, 255, 255, 0.08) !important;
  border-color: rgba(255, 255, 255, 0.15) !important;
  transform: translateY(-1px) !important;
}

.sg-cat-pill:hover .sg-icon {
  transform: scale(1.1) !important;
}

.sg-cat-pill.active {
  background: linear-gradient(135deg, rgba(199, 163, 93, 0.28) 0%, rgba(199, 163, 93, 0.14) 100%) !important;
  border-color: #C7A35D !important;
  color: #ffffff !important;
  font-weight: 700 !important;
  box-shadow: 0 2px 10px rgba(199, 163, 93, 0.35), inset 0 0 10px rgba(199, 163, 93, 0.15) !important;
}

.sg-cat-pill.active .sg-icon {
  color: #C7A35D !important;
  filter: drop-shadow(0 0 4px rgba(199, 163, 93, 0.6)) !important;
}

/* Rich Infrastructure Route Cards */
.sg-infra-card-pro {
  background: rgba(15, 38, 35, 0.65) !important;
  border: 1px solid rgba(255, 255, 255, 0.07) !important;
  border-radius: 8px !important;
  padding: 10px 12px !important;
  cursor: pointer !important;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1) !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 6px !important;
}

.sg-infra-card-pro:hover {
  background: rgba(20, 37, 60, 0.85) !important;
  border-color: rgba(199, 163, 93, 0.5) !important;
  transform: translateY(-1px) !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25) !important;
}

.sg-infra-card-pro.is-active {
  border-color: #C7A35D !important;
  background: rgba(199, 163, 93, 0.15) !important;
  box-shadow: 0 0 12px rgba(199, 163, 93, 0.3) !important;
}

.sg-infra-card-top {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 6px !important;
}

.sg-infra-card-title {
  font-size: 12px !important;
  font-weight: 700 !important;
  color: #f8fafc !important;
  line-height: 1.3 !important;
  display: flex !important;
  align-items: center !important;
  gap: 6px !important;
}

.sg-infra-card-badge {
  font-size: 9.5px !important;
  padding: 2px 6px !important;
  border-radius: 4px !important;
  font-weight: 700 !important;
  flex-shrink: 0 !important;
}

.sg-infra-card-meta {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  font-size: 10.5px !important;
  color: #94a3b8 !important;
}

.sg-infra-status-tag {
  display: inline-flex !important;
  align-items: center !important;
  gap: 4px !important;
  font-size: 10px !important;
  font-weight: 600 !important;
}

.sg-infra-status-dot {
  width: 6px !important;
  height: 6px !important;
  border-radius: 50% !important;
}

.sg-infra-progress-wrap {
  width: 100% !important;
  height: 4px !important;
  background: rgba(255, 255, 255, 0.08) !important;
  border-radius: 2px !important;
  overflow: hidden !important;
  margin-top: 2px !important;
}

.sg-infra-progress-bar {
  height: 100% !important;
  border-radius: 2px !important;
  transition: width 0.3s ease !important;
}

.sg-infra-card-actions {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  padding-top: 6px !important;
  border-top: 1px solid rgba(255, 255, 255, 0.05) !important;
  margin-top: 2px !important;
}

.sg-infra-scale-txt {
  font-size: 10px !important;
  color: #cbd5e1 !important;
  font-weight: 600 !important;
}

.sg-infra-btn-corridor {
  font-size: 10px !important;
  font-weight: 700 !important;
  padding: 3px 8px !important;
  background: rgba(199, 163, 93, 0.15) !important;
  border: 1px solid rgba(199, 163, 93, 0.3) !important;
  border-radius: 4px !important;
  color: #E8CE8A !important;
  cursor: pointer !important;
  transition: all 0.15s ease !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 4px !important;
}

.sg-infra-btn-corridor:hover {
  background: #C7A35D !important;
  color: #fff !important;
  border-color: #C7A35D !important;
}

/* ==========================================================================
   Project Marker Toggle & Performance Acceleration
   ========================================================================== */
.sg-dock-btn.is-toggle-proj {
  background: rgba(23, 63, 57, 0.85) !important;
  border: 1px solid rgba(199, 163, 93, 0.45) !important;
  color: #f8fafc !important;
  font-weight: 700 !important;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1) !important;
  padding: 6px 14px !important;
  cursor: pointer !important;
}
.sg-dock-btn.is-toggle-proj.active {
  background: linear-gradient(135deg, rgba(199, 163, 93, 0.28), rgba(23, 63, 57, 0.95)) !important;
  border-color: #C7A35D !important;
  color: #ffffff !important;
  box-shadow: 0 0 16px rgba(199, 163, 93, 0.4) !important;
}
.sg-dock-btn.is-toggle-proj:not(.active) {
  background: rgba(17, 43, 39, 0.9) !important;
  border-color: rgba(148, 163, 184, 0.3) !important;
  color: #94a3b8 !important;
}
.sg-dock-btn.is-toggle-proj:hover {
  transform: translateY(-1px) !important;
  border-color: #C7A35D !important;
}

.sg-proj-quick-toggle {
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;
  background: rgba(17, 43, 39, 0.7) !important;
  border: 1px solid rgba(148, 163, 184, 0.25) !important;
  border-radius: 14px !important;
  padding: 3px 10px !important;
  font-size: 11px !important;
  font-weight: 600 !important;
  color: #94a3b8 !important;
  cursor: pointer !important;
  transition: all 0.2s ease !important;
}
.sg-proj-quick-toggle .dot {
  width: 7px !important;
  height: 7px !important;
  border-radius: 50% !important;
  background: #64748b !important;
  transition: all 0.2s ease !important;
}
.sg-proj-quick-toggle.active {
  background: rgba(199, 163, 93, 0.15) !important;
  border-color: rgba(199, 163, 93, 0.4) !important;
  color: #C7A35D !important;
}
.sg-proj-quick-toggle.active .dot {
  background: #10b981 !important;
  box-shadow: 0 0 6px #10b981 !important;
}
.sg-proj-quick-toggle:hover {
  border-color: #C7A35D !important;
}

.sg-vp-btn.is-clutter-btn {
  background: rgba(17, 43, 39, 0.6) !important;
  border-color: rgba(148, 163, 184, 0.25) !important;
  color: #cbd5e1 !important;
}
.sg-vp-btn.is-clutter-btn.active {
  background: rgba(199, 163, 93, 0.2) !important;
  border-color: #C7A35D !important;
  color: #C7A35D !important;
}

/* GPU Hardware Acceleration for Project Pins */
.sg-proj-marker-wrap {
  will-change: transform !important;
}
.sg-proj-pin {
  will-change: transform !important;
  contain: layout style !important;
  transform: translate3d(-50%, -100%, 0) !important;
}
.leaflet-zoom-anim .sg-proj-pin {
  box-shadow: none !important;
  transition: none !important;
}


/* ============================================================
   SG LUXURY MAP HOVER TOOLTIP SYSTEM (ANTI-STRETCH / ZERO OVERFLOW)
   Fix for 'popup re vao be khung qua em'
   Ultra-Refined Luxury Dark Glassmorphism (Kzen Holdings Standard)
   ============================================================ */
.leaflet-tooltip {
  white-space: normal !important;
  max-width: 320px !important;
  word-break: break-word !important;
}

.leaflet-tooltip.sg-infra-tooltip,
.leaflet-tooltip.sg-iso-tooltip,
.leaflet-tooltip.sg-hover-tooltip {
  background: transparent !important;
  background-color: transparent !important;
  border: none !important;
  box-shadow: none !important;
  padding: 0 !important;
  margin: 0 !important;
  white-space: normal !important;
  pointer-events: none !important;
  z-index: 2500 !important;
  max-width: 320px !important;
  min-width: 220px !important;
  width: auto !important;
}

.leaflet-tooltip.sg-infra-tooltip::before,
.leaflet-tooltip.sg-infra-tooltip::after,
.leaflet-tooltip.sg-iso-tooltip::before,
.leaflet-tooltip.sg-iso-tooltip::after,
.leaflet-tooltip.sg-hover-tooltip::before,
.leaflet-tooltip.sg-hover-tooltip::after {
  display: none !important;
}

.sg-tt-card {
  position: relative !important;
  background: rgba(9, 23, 21, 0.95) !important;
  backdrop-filter: blur(20px) !important;
  -webkit-backdrop-filter: blur(20px) !important;
  border: 1px solid rgba(255, 255, 255, 0.15) !important;
  border-radius: 12px !important;
  padding: 10px 12px !important;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.75), 0 0 0 1px rgba(199, 163, 93, 0.25) !important;
  color: #ffffff !important;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif !important;
  max-width: 320px !important;
  min-width: 220px !important;
  box-sizing: border-box !important;
  white-space: normal !important;
  word-wrap: break-word !important;
  overflow-wrap: break-word !important;
  pointer-events: none !important;
  animation: sgTtFadeIn 0.18s cubic-bezier(0.16, 1, 0.3, 1) forwards !important;
}

@keyframes sgTtFadeIn {
  from { opacity: 0; transform: translateY(4px) scale(0.97); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.sg-tt-header {
  display: flex !important;
  align-items: flex-start !important;
  justify-content: space-between !important;
  gap: 8px !important;
  margin-bottom: 6px !important;
  white-space: normal !important;
}

.sg-tt-dot {
  width: 8px !important;
  height: 8px !important;
  border-radius: 50% !important;
  flex-shrink: 0 !important;
  margin-top: 4px !important;
}

.sg-tt-title {
  font-size: 13px !important;
  font-weight: 700 !important;
  color: #ffffff !important;
  line-height: 1.35 !important;
  margin: 0 !important;
  flex: 1 1 auto !important;
  white-space: normal !important;
  word-break: break-word !important;
  overflow-wrap: break-word !important;
  letter-spacing: -0.2px !important;
}

.sg-tt-cat-badge,
.sg-tt-badge {
  font-size: 9.5px !important;
  font-weight: 700 !important;
  padding: 2px 7px !important;
  border-radius: 5px !important;
  white-space: nowrap !important;
  flex-shrink: 0 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.3px !important;
  line-height: 1.3 !important;
}

.sg-tt-desc {
  font-size: 11px !important;
  color: #cbd5e1 !important;
  line-height: 1.45 !important;
  margin-bottom: 6px !important;
  white-space: normal !important;
  word-break: break-word !important;
}

.sg-tt-footer {
  display: flex !important;
  flex-direction: column !important;
  align-items: stretch !important;
  gap: 6px !important;
  padding-top: 7px !important;
  margin-top: 6px !important;
  border-top: 1px solid rgba(255, 255, 255, 0.08) !important;
  white-space: normal !important;
}

.sg-tt-footer-row {
  display: flex !important;
  align-items: center !important;
  justify-content: flex-start !important;
  gap: 8px !important;
  flex-wrap: wrap !important;
}

.sg-tt-status-badge {
  display: inline-flex !important;
  align-items: center !important;
  font-size: 10px !important;
  font-weight: 600 !important;
  color: #10b981 !important;
  background: rgba(16, 185, 129, 0.15) !important;
  border: 1px solid rgba(16, 185, 129, 0.35) !important;
  padding: 2px 8px !important;
  border-radius: 5px !important;
  white-space: nowrap !important;
  line-height: 1.3 !important;
  width: fit-content !important;
}

.sg-tt-scale-txt {
  font-size: 11px !important;
  color: #cbd5e1 !important;
  line-height: 1.45 !important;
  white-space: normal !important;
  word-break: break-word !important;
  overflow-wrap: break-word !important;
  display: flex !important;
  align-items: flex-start !important;
  gap: 5px !important;
  background: rgba(255, 255, 255, 0.04) !important;
  padding: 6px 8px !important;
  border-radius: 6px !important;
  border: 1px solid rgba(255, 255, 255, 0.07) !important;
}

.sg-tt-scale-txt svg {
  width: 12px !important;
  height: 12px !important;
  vertical-align: -1px !important;
  flex-shrink: 0 !important;
  color: #C7A35D !important;
  margin-top: 2px !important;
}

.sg-tt-meta {
  display: flex !important;
  align-items: center !important;
  gap: 5px !important;
  font-size: 11px !important;
  color: #94a3b8 !important;
  font-weight: 500 !important;
}

.sg-tt-meta.sg-tt-dist {
  color: #C7A35D !important;
  font-weight: 700 !important;
}

.sg-tt-traffic.peak { color: #ef4444 !important; }
.sg-tt-traffic.offpeak { color: #10b981 !important; }

.sg-tt-title-wrap {
  display: flex !important;
  align-items: center !important;
  gap: 7px !important;
  flex: 1 1 auto !important;
  min-width: 0 !important;
}

.sg-tt-badges {
  display: flex !important;
  align-items: center !important;
  gap: 4px !important;
  flex-shrink: 0 !important;
}

.sg-tt-badge.is-code {
  font-weight: 800 !important;
}

.sg-tt-badge.is-type {
  font-weight: 600 !important;
}

/* ============================================================
   SG LUXURY AMENITY FLOATING PILLS (WITH NAME LABELS)
   Fix for 'mấy cái màu tiện ích cho Đẹp lên em, và để Label là Tên Tiện Ích luôn'
   ============================================================ */
.sg-amenity-div-icon {
  background: transparent !important;
  border: none !important;
  pointer-events: auto !important;
  overflow: visible !important;
}

.sg-amenity-badge-pill {
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
  transform: translate(-13px, -13px) !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;
  height: 26px !important;
  padding: 2px 10px 2px 2px !important;
  border-radius: 14px !important;
  backdrop-filter: blur(14px) !important;
  -webkit-backdrop-filter: blur(14px) !important;
  white-space: nowrap !important;
  cursor: pointer !important;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.7) !important;
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.2s ease !important;
  user-select: none !important;
  pointer-events: auto !important;
  will-change: transform !important;
}

.sg-amenity-badge-pill:hover {
  transform: translate(-13px, -13px) scale(1.08) !important;
  z-index: 9999 !important;
}

.sg-amb-icon {
  width: 22px !important;
  height: 22px !important;
  border-radius: 50% !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  color: #ffffff !important;
  flex-shrink: 0 !important;
}

.sg-amb-icon svg {
  width: 12px !important;
  height: 12px !important;
  fill: none !important;
  stroke: currentColor !important;
  stroke-width: 2.2 !important;
}

.sg-amb-content {
  display: flex !important;
  align-items: center !important;
  line-height: 1 !important;
}

.sg-amb-title {
  font-size: 11px !important;
  font-weight: 700 !important;
  color: #ffffff !important;
  letter-spacing: -0.15px !important;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif !important;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.8) !important;
}


/* ==========================================================================
   UPGRADES 1, 2, 4: PROJECT CONNECTIVITY, PRESENTATION MODE, EXPORT ZALO CARD
   KZEN HOLDINGS Master Operating Standards (Maximum Fidelity & Anti-Slop)
   ========================================================================== */

/* Top-Right Dock Buttons (Presentation & Export) */
.sg-dock-btn.is-pres {
  border-color: rgba(56, 189, 248, 0.4) !important;
  color: #38bdf8 !important;
}

.sg-dock-btn.is-pres:hover,
.sg-dock-btn.is-pres.active {
  background: rgba(56, 189, 248, 0.2) !important;
  border-color: #38bdf8 !important;
  color: #ffffff !important;
  box-shadow: 0 0 16px rgba(56, 189, 248, 0.35) !important;
}

.sg-dock-btn.is-export {
  border-color: rgba(199, 163, 93, 0.4) !important;
  color: #C7A35D !important;
}

.sg-dock-btn.is-export:hover {
  background: rgba(199, 163, 93, 0.2) !important;
  border-color: #C7A35D !important;
  color: #ffffff !important;
  box-shadow: 0 0 16px rgba(199, 163, 93, 0.35) !important;
}

/* Action button inside project popup card */
.sg-pop-actions {
  margin-top: 10px;
  padding-top: 8px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.sg-btn-analyze-connect {
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  background: linear-gradient(135deg, rgba(199, 163, 93, 0.15), rgba(199, 163, 93, 0.08));
  border: 1px solid rgba(199, 163, 93, 0.4);
  color: #ffffff;
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: -0.1px;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  text-decoration: none;
}

.sg-btn-analyze-connect:hover {
  background: linear-gradient(135deg, #C7A35D, #BC995B);
  border-color: #C7A35D;
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(199, 163, 93, 0.4);
  transform: translateY(-1px);
}

.sg-btn-analyze-connect svg {
  width: 13px;
  height: 13px;
  stroke: currentColor;
  stroke-width: 2.2;
  fill: none;
}

/* --------------------------------------------------------------------------
   UPGRADE 1: SLIM LUXURY PROJECT CONNECTIVITY CAPSULE BAR (APPLE GLASS)
   -------------------------------------------------------------------------- */
.sg-proj-connect-drawer {
  position: absolute;
  bottom: 18px;
  left: calc(50% + 170px);
  transform: translateX(-50%) translateY(140%);
  width: min(960px, calc(100vw - 380px));
  background: rgba(9, 23, 21, 0.92);
  backdrop-filter: blur(28px) saturate(200%);
  -webkit-backdrop-filter: blur(28px) saturate(200%);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 16px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.75), 0 0 1px rgba(255, 255, 255, 0.25);
  z-index: 1500;
  opacity: 0;
  pointer-events: none;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.28s ease;
}

.sg-proj-connect-drawer.is-open {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
  pointer-events: auto;
}

body.sidebar-closed .sg-proj-connect-drawer,
body.is-presentation-mode .sg-proj-connect-drawer {
  left: 50% !important;
  width: min(860px, calc(100vw - 48px)) !important;
}

.sg-pcd-inner {
  padding: 10px 16px 12px 16px;
}

/* Row 1: Slim Header */
.sg-pcd-top-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.sg-pcd-project-info {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  flex: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sg-pcd-tag {
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  color: #C7A35D;
  background: rgba(199, 163, 93, 0.14);
  border: 1px solid rgba(199, 163, 93, 0.35);
  padding: 2px 6px;
  border-radius: 4px;
  flex-shrink: 0;
}

.sg-pcd-title {
  font-size: 14.5px;
  font-weight: 800;
  color: #ffffff;
  margin: 0;
  line-height: 1;
  letter-spacing: -0.2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sg-pcd-subtitle {
  font-size: 11px;
  color: #94a3b8;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sg-pcd-status {
  font-size: 9.5px;
  font-weight: 700;
  color: #10b981;
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.3);
  padding: 2px 6px;
  border-radius: 999px;
  flex-shrink: 0;
}

.sg-pcd-top-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.sg-pcd-mini-btn {
  height: 28px;
  padding: 0 10px;
  border-radius: 7px;
  font-size: 11px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  cursor: pointer;
  transition: all 0.2s ease;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.06);
  color: #f1f5f9;
  white-space: nowrap;
}

.sg-pcd-mini-btn svg {
  width: 12px;
  height: 12px;
  stroke: currentColor;
  stroke-width: 2.2;
  fill: none;
}

.sg-pcd-mini-btn.is-route {
  background: rgba(199, 163, 93, 0.15);
  border-color: rgba(199, 163, 93, 0.4);
  color: #ffffff;
}

.sg-pcd-mini-btn.is-route:hover {
  background: #C7A35D;
  border-color: #C7A35D;
  box-shadow: 0 0 12px rgba(199, 163, 93, 0.4);
}

.sg-pcd-mini-btn.is-export:hover {
  background: rgba(255, 255, 255, 0.16);
  border-color: rgba(255, 255, 255, 0.3);
}

.sg-pcd-close {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #cbd5e1;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.sg-pcd-close:hover {
  background: rgba(255, 255, 255, 0.2);
  color: #ffffff;
}

.sg-pcd-close svg {
  width: 12px;
  height: 12px;
  stroke: currentColor;
  stroke-width: 2.2;
  fill: none;
}

/* Row 2: 3 Balanced Metric Pills */
.sg-pcd-metrics-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.sg-pcd-metric-pill {
  background: rgba(15, 26, 42, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  padding: 6px 10px;
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  transition: all 0.2s ease;
}

.sg-pcd-metric-pill:hover {
  background: rgba(18, 32, 52, 0.85);
  border-color: rgba(255, 255, 255, 0.16);
}

.sg-pcd-metric-pill.is-metro {
  border-left: 2.5px solid #00a982;
}

.sg-pcd-metric-pill.is-highway {
  border-left: 2.5px solid #f59e0b;
}

.sg-pcd-metric-pill.is-amenity {
  border-left: 2.5px solid #C7A35D;
}

.sg-pcd-pill-icon {
  width: 26px;
  height: 26px;
  border-radius: 7px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.sg-pcd-metric-pill.is-metro .sg-pcd-pill-icon {
  background: rgba(0, 169, 130, 0.14);
  color: #00a982;
}

.sg-pcd-metric-pill.is-highway .sg-pcd-pill-icon {
  background: rgba(245, 158, 11, 0.14);
  color: #f59e0b;
}

.sg-pcd-metric-pill.is-amenity .sg-pcd-pill-icon {
  background: rgba(199, 163, 93, 0.14);
  color: #C7A35D;
}

.sg-pcd-pill-icon svg {
  width: 14px;
  height: 14px;
  stroke: currentColor;
  stroke-width: 2.2;
  fill: none;
}

.sg-pcd-pill-text {
  min-width: 0;
  flex: 1;
}

.sg-pcd-pill-lbl {
  display: block;
  font-size: 8.5px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #94a3b8;
  line-height: 1;
  margin-bottom: 2px;
}

.sg-pcd-pill-val {
  display: flex;
  align-items: baseline;
  gap: 5px;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sg-pcd-pill-val strong {
  font-size: 12.5px;
  font-weight: 800;
  color: #ffffff;
  white-space: nowrap;
  flex-shrink: 0;
}

.sg-pcd-pill-dist {
  font-size: 10.5px;
  color: #cbd5e1;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

@media (max-width: 1024px) {
  .sg-proj-connect-drawer {
    left: 50% !important;
    width: min(840px, calc(100vw - 32px)) !important;
  }
}

@media (max-width: 768px) {
  .sg-pcd-metrics-row {
    grid-template-columns: 1fr;
    gap: 6px;
  }
  .sg-pcd-top-bar {
    flex-wrap: wrap;
    gap: 8px;
  }
}

/* --------------------------------------------------------------------------
   UPGRADE 2: PRESENTATION DOCK & CINEMATIC BAR
   -------------------------------------------------------------------------- */
.sg-pres-bar {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(140%);
  width: min(720px, calc(100vw - 32px));
  background: rgba(9, 23, 21, 0.92);
  backdrop-filter: blur(28px) saturate(200%);
  -webkit-backdrop-filter: blur(28px) saturate(200%);
  border: 1px solid rgba(56, 189, 248, 0.3);
  border-radius: 18px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.8), 0 0 24px rgba(56, 189, 248, 0.15);
  z-index: 1550;
  opacity: 0;
  pointer-events: none;
  overflow: hidden;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.35s ease;
}

.sg-pres-bar.is-open {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
  pointer-events: auto;
}

.sg-pres-progress-line {
  width: 100%;
  height: 3px;
  background: rgba(255, 255, 255, 0.1);
  overflow: hidden;
}

.sg-pres-progress-fill {
  width: 0%;
  height: 100%;
  background: linear-gradient(90deg, #38bdf8, #C7A35D);
  transition: width 0.08s linear;
}

.sg-pres-bar-content {
  padding: 12px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.sg-pres-info {
  min-width: 0;
  flex: 1;
}

.sg-pres-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 9.5px;
  font-weight: 800;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  color: #38bdf8;
  margin-bottom: 2px;
}

.sg-pres-pulse-dot {
  width: 7px;
  height: 7px;
  background: #38bdf8;
  border-radius: 50%;
  box-shadow: 0 0 8px #38bdf8;
  animation: sgPulse 1.6s infinite ease-in-out;
}

@keyframes sgPulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.8); }
}

.sg-pres-title-wrap {
  display: flex;
  align-items: baseline;
  gap: 8px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sg-pres-step {
  font-size: 11px;
  font-weight: 800;
  color: #C7A35D;
}

.sg-pres-proj-name {
  font-size: 15px;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: -0.2px;
}

.sg-pres-proj-meta {
  font-size: 11.5px;
  color: #94a3b8;
}

.sg-pres-controls {
  display: flex;
  align-items: center;
  gap: 8px;
}

.sg-pres-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.sg-pres-btn:hover {
  background: rgba(255, 255, 255, 0.18);
  border-color: rgba(255, 255, 255, 0.3);
  transform: scale(1.05);
}

.sg-pres-btn.is-play {
  width: 42px;
  height: 42px;
  background: linear-gradient(135deg, #C7A35D, #BC995B);
  border-color: #C7A35D;
  box-shadow: 0 0 16px rgba(199, 163, 93, 0.45);
}

.sg-pres-btn.is-play:hover {
  background: #BC995B;
  transform: scale(1.08);
}

.sg-pres-btn svg {
  width: 15px;
  height: 15px;
  stroke: currentColor;
  stroke-width: 2.2;
  fill: none;
}

.sg-pres-btn.is-play svg {
  fill: currentColor;
  stroke: none;
}

.sg-pres-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.sg-pres-action-btn,
.sg-pres-exit-btn {
  height: 34px;
  padding: 0 12px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  transition: all 0.2s ease;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.06);
  color: #cbd5e1;
}

.sg-pres-action-btn:hover {
  background: rgba(199, 163, 93, 0.2);
  border-color: #C7A35D;
  color: #ffffff;
}

.sg-pres-exit-btn:hover {
  background: rgba(239, 68, 68, 0.2);
  border-color: #ef4444;
  color: #ef4444;
}

.sg-pres-action-btn svg,
.sg-pres-exit-btn svg {
  width: 13px;
  height: 13px;
  stroke: currentColor;
  stroke-width: 2.2;
  fill: none;
}

/* Presentation Mode Fullscreen rules */
body.is-presentation-mode .sg-gis-sidebar,
body.is-presentation-mode #sgGisSidebar {
  transform: translateX(-100%) !important;
  pointer-events: none !important;
  opacity: 0 !important;
  visibility: hidden !important;
}

body.sidebar-closed .sg-proj-connect-drawer,
body.is-presentation-mode .sg-proj-connect-drawer {
  left: 50% !important;
  width: min(760px, calc(100vw - 48px)) !important;
}

body.is-presentation-mode #sidebarArrow {
  display: none !important;
}

/* --------------------------------------------------------------------------
   UPGRADE 4: TOAST NOTIFICATIONS ENGINE
   -------------------------------------------------------------------------- */
.sg-gis-toast-box {
  position: absolute;
  top: 62px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2100;
  pointer-events: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.sg-gis-toast {
  background: rgba(9, 23, 21, 0.94);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid rgba(199, 163, 93, 0.4);
  border-radius: 999px;
  padding: 9px 20px;
  color: #ffffff;
  font-size: 13px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.8), 0 0 16px rgba(199, 163, 93, 0.25);
  opacity: 0;
  transform: translateY(-16px);
  transition: all 0.32s cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: auto;
}

.sg-gis-toast.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.sg-gis-toast.is-error {
  border-color: rgba(239, 68, 68, 0.5);
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.8), 0 0 16px rgba(239, 68, 68, 0.25);
}

.sg-gis-toast.is-error .sg-toast-icon {
  color: #ef4444;
}

.sg-toast-icon {
  color: #10b981;
  display: flex;
  align-items: center;
  justify-content: center;
}

.sg-toast-icon svg {
  width: 15px;
  height: 15px;
  stroke: currentColor;
  stroke-width: 2.5;
  fill: none;
}

.sg-toast-msg {
  letter-spacing: -0.1px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .sg-pcd-metrics-grid {
    grid-template-columns: 1fr;
    gap: 8px;
  }
  .sg-pres-bar-content {
    flex-wrap: wrap;
    gap: 10px;
  }
}


/* === HANDOVER TIMELINE BADGES & FILTERS (MAXIMUM FIDELITY) === */
.sg-badge-handover {
  display: inline-flex !important;
  align-items: center !important;
  gap: 4px !important;
  font-size: 10.5px !important;
  font-weight: 700 !important;
  padding: 2px 7px !important;
  border-radius: 4px !important;
  letter-spacing: 0.2px !important;
  white-space: nowrap !important;
  line-height: 1.3 !important;
}

.sg-badge-handover.handed-over {
  background: rgba(16, 185, 129, 0.15) !important;
  color: #10B981 !important;
  border: 1px solid rgba(16, 185, 129, 0.35) !important;
}

.sg-badge-handover.under-construction {
  background: rgba(245, 158, 11, 0.15) !important;
  color: #F59E0B !important;
  border: 1px solid rgba(245, 158, 11, 0.35) !important;
}

.sg-badge-handover.upcoming {
  background: rgba(59, 130, 246, 0.15) !important;
  color: #60A5FA !important;
  border: 1px solid rgba(59, 130, 246, 0.35) !important;
}

.sg-proj-card-meta-row {
  display: flex !important;
  align-items: center !important;
  gap: 6px !important;
  margin-top: 3px !important;
  margin-bottom: 3px !important;
}

.sg-pop-handover-row {
  display: flex !important;
  align-items: center !important;
}

/* Status indicator dots - Pure Vector/CSS Zero Emoji */
.sg-badge-handover::before {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  margin-right: 5px;
  vertical-align: 1px;
}
.sg-badge-handover.handed-over::before {
  background: #22c55e;
}
.sg-badge-handover.under-construction::before {
  background: #eab308;
}
.sg-badge-handover.upcoming::before {
  background: #38bdf8;
}
