/* GEO-20261008-001: integrated station. Corporate CI 1.8.4 / web-1.1.
   Shared tokens and Kanit fallback come from Platform; data colors retain meaning. */
body[data-workspace="geo"] { --geo-panel-width: 336px; }
body[data-workspace="geo"] main { min-width: 0; }
body[data-workspace="geo"] main > header { height: auto; min-height: 66px; }
body[data-workspace="geo"] .header-actions { flex-direction: row; align-items: center; }
.geo-filter-disclosure { border: 0; margin-top: 6px; }
.geo-filter-disclosure > summary { width: fit-content; cursor: pointer; color: var(--muted); font-size: 11px; padding: 3px 0; }
body[data-workspace="geo"] .geo-filter-disclosure:not([open]) #filter-secondary { display: none; }
body[data-workspace="geo"] #global-filters { padding: 10px 20px; }
body[data-workspace="geo"] .global-filter-main { grid-template-columns: minmax(140px,1fr) minmax(240px,1.2fr) minmax(135px,.8fr) auto; gap: 12px; }
body[data-workspace="geo"] #filter-secondary .toolbar { flex-wrap: wrap; }
body[data-workspace="geo"] #cohort { color: var(--ink); }
#geo .geo-layout { display: grid; grid-template-rows: auto minmax(0,1fr) auto; height: var(--geo-height,calc(100dvh - 225px)); min-height: 360px; overflow: hidden; background: var(--paper); }
#geo .geo-workbar { display: flex; align-items: center; gap: 12px; min-width: 0; padding: 10px 16px; background: white; border-bottom: 1px solid var(--line); }
#geo .map-toolbar { position: static; display: flex; align-items: center; flex: 1; min-width: 0; max-width: none; width: auto; overflow-x: auto; overscroll-behavior-x: contain; gap: 4px; padding: 0 0 3px; border: 0; border-radius: 0; background: transparent; scrollbar-width: thin; }
#geo .map-toolbar button { flex: 0 0 auto; display: flex; align-items: center; gap: 6px; min-height: 38px; padding: 8px 12px; border-radius: 8px; font-size: 12px; color: var(--muted); }
#geo .map-toolbar [data-deferred-menu] { display: none !important; }
#geo .map-toolbar button.active { background: var(--blue-wash); color: var(--navy); box-shadow: inset 0 -2px var(--navy); font-weight: 600; }
#geo .map-toolbar img { width: 22px; height: 22px; object-fit: contain; }
#geo .map-toolbar button:disabled { cursor: default; }
#geo .geo-workbar-actions { display: flex; gap: 6px; flex-shrink: 0; border-left: 1px solid var(--line); padding-left: 12px; }
#geo .geo-workbar-actions button { font-size: 11px; padding: 8px 10px; min-height: 38px; white-space: nowrap; }
#geo .geo-body { position: relative; display: grid; grid-template-columns: var(--geo-panel-width,336px) minmax(0,1fr); min-height: 0; min-width: 0; }
#geo .geo-inspector { display: flex; flex-direction: column; min-height: 0; min-width: 0; background: white; border-right: 1px solid var(--line); z-index: 700; }
#geo .geo-panel-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 9px 16px; border-bottom: 1px solid var(--line); color: var(--muted); font-size: 10px; letter-spacing: 1px; }
#geo .geo-panel-heading button { padding: 0; width: 30px; height: 30px; font-size: 20px; border: 0; }
#geo .geo-panel { position: static; inset: auto; width: auto; flex: 1; min-height: 0; overflow: auto; overscroll-behavior: contain; padding: 20px; border: 0; border-radius: 0; box-shadow: none; }
#geo .geo-panel h2 { font-size: 21px; line-height: 1.4; overflow-wrap: anywhere; }
#geo .geo-panel h3 { font-size: 14px; }
#geo .geo-panel .subtle { font-size: 12px; line-height: 1.65; }
#geo .geo-panel button { min-height: 36px; }
#geo .geo-panel input:not([type="checkbox"]), #geo .geo-panel select, #geo .geo-panel textarea { max-width: 100%; min-width: 0; }
#geo .geo-panel .product-card { padding: 14px; margin: 10px 0; }
#geo .geo-panel .lead-row { border: 1px solid var(--line); border-radius: 10px; padding: 11px; margin: 8px 0; align-items: flex-start; gap: 10px; }
#geo .lead-row > span:nth-child(2) { min-width: 0; flex: 1; }
#geo .lead-row small { line-height: 1.6; }
#geo .lead-row .number { width: 32px; height: 32px; }
#geo .geo-stats { padding: 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--paper); }
#geo .geo-stats strong { font-size: 25px; }
#geo .geo-stats small { font-size: 10px; }
#geo .geo-stats small img { object-fit: contain; vertical-align: middle; }
#geo .geo-map-stage { position: relative; min-width: 0; min-height: 0; overflow: hidden; isolation: isolate; z-index: 0; }
#geo #geo-map { position: absolute; inset: 0; width: 100%; height: 100%; font-family: var(--ui-font); }
#geo .geo-map-top { position: absolute; z-index: 650; top: 14px; left: 14px; right: 14px; display: flex; align-items: flex-start; gap: 10px; pointer-events: none; }
#geo .geo-map-top > * { pointer-events: auto; }
#geo #geo-scope-filters { position: static; flex: 1; display: flex; flex-wrap: wrap; align-items: flex-start; gap: 8px; max-width: none; min-width: 0; padding: 0; margin: 0; background: transparent; font-size: 12px; }
#geo #geo-scope-filters:empty { display: block; pointer-events: none; }
#geo #geo-scope-filters > details, #geo #geo-scope-filters > label { background: white; padding: 9px 12px; border: 1px solid var(--line); border-radius: 10px; box-shadow: 0 2px 8px #18344f12; margin: 0; }
#geo #geo-scope-filters details { max-width: min(290px,100%); max-height: min(300px,50vh); overflow: auto; }
#geo #geo-scope-filters summary { cursor: pointer; }
#geo #geo-scope-filters details label { display: flex; margin: 8px 0; }
#geo #geo-scope-filters select { width: auto; max-width: 120px; padding: 3px 5px; }
#geo .map-layers { position: relative; inset: auto; flex: 0 0 auto; min-width: 0; padding: 9px 12px; font-size: 12px; box-shadow: 0 2px 8px #18344f12; }
#geo .map-layers summary { white-space: nowrap; }
#geo .geo-layer-options { position: absolute; right: 0; top: calc(100% + 7px); width: 208px; background: white; padding: 10px 14px; border: 1px solid var(--line); border-radius: 10px; box-shadow: 0 4px 18px #18344f20; }
#geo .map-layers label { padding: 6px 0; font-size: 12px; }
#geo .map-layers input { accent-color: var(--navy); }
#geo .map-layers img { width: 24px; height: 24px; object-fit: contain; }
#geo .map-fit { position: absolute; top: auto; right: 12px; bottom: 110px; font-size: 11px; min-height: 36px; padding: 6px 10px; box-shadow: 0 2px 8px #18344f16; }
#geo .leaflet-bottom { bottom: 0; }
#geo .leaflet-control-zoom { margin-bottom: 20px; }
#geo .geo-map-legend { position: absolute; z-index: 600; bottom: 24px; left: 14px; right: 60px; width: fit-content; max-width: calc(100% - 76px); display: flex; flex-wrap: wrap; gap: 5px 12px; padding: 8px 12px; background: #fffffff2; border: 1px solid var(--line); border-radius: 8px; font-size: 10px; color: var(--muted); pointer-events: none; }
#geo .geo-map-legend span { display: inline-flex; align-items: center; gap: 5px; }
#geo .geo-map-legend i { width: 7px; height: 7px; border-radius: 50%; }
#geo .walk-dot { background: #0083c9; } #geo .book-dot { background: #178c79; }
#geo .map-status { position: static; inset: auto; padding: 7px 16px; background: white; border-top: 1px solid var(--line); border-radius: 0; font-size: 10px; line-height: 1.5; color: var(--muted); }
#geo.panel-collapsed .geo-body { grid-template-columns: minmax(0,1fr); }
#geo.panel-collapsed .geo-inspector { display: none; }
#geo .geo-place-pin { position: relative; display: block; width: 38px; height: 38px; }
#geo .geo-place-pin > img { width: 38px; height: 38px; object-fit: contain; filter: drop-shadow(0 2px 2px #10283b33); }
#geo .geo-place-pin > b { position: absolute; right: -4px; bottom: -2px; border: 2px solid white; background: #0083c9; color: white; font: 600 9px/16px var(--ui-font); min-width: 19px; text-align: center; border-radius: 10px; }
#geo .geo-place-pin.book > b { background: #178c79; }
#geo .geo-place-pin.unknown > b { background: #647c90; }
#geo .geo-customer-cluster { position: relative; display: grid; place-items: center; width: 48px; height: 48px; border: 3px solid white; border-radius: 50%; background: #e5f4fc; box-shadow: 0 3px 12px #10283b45; color: var(--navy); }
#geo .geo-customer-cluster.home { transform: translateX(-5px); }
#geo .geo-customer-cluster.work { transform: translateX(5px); background: #edf7f3; }
#geo .geo-customer-cluster > img { width: 31px; height: 31px; object-fit: contain; }
#geo .geo-customer-cluster > b { position: absolute; top: -8px; right: -8px; min-width: 24px; height: 24px; padding: 0 5px; border: 2px solid white; border-radius: 13px; background: var(--navy); color: white; font: 700 11px/20px var(--ui-font); text-align: center; box-sizing: border-box; }
#geo .geo-customer-cluster > small { position: absolute; left: 50%; bottom: -12px; transform: translateX(-50%); display: flex; align-items: center; gap: 3px; padding: 1px 5px; border: 1px solid var(--line); border-radius: 8px; background: #fffffff2; color: var(--muted); font: 700 8px/12px var(--ui-font); white-space: nowrap; }
#geo .geo-customer-cluster > small i { width: 5px; height: 5px; border-radius: 50%; }
#geo .geo-customer-cluster > small i.walk { background: #0083c9; }
#geo .geo-customer-cluster > small i.book { background: #178c79; }
#geo .geo-cluster-marker { z-index: 240!important; }
#geo .geo-project-pin { display: grid; place-items: center; width: 68px; height: 48px; border: 2px solid white; border-radius: 10px; background: white; box-shadow: 0 2px 9px #10283b33; }
#geo .geo-project-pin img { max-width: 60px; max-height: 40px; object-fit: contain; }
#geo .geo-empty { padding: 20px 10px; text-align: center; background: var(--paper); border-radius: 12px; }
#geo .geo-empty p { margin: 8px 0; }
#geo.geo-focus { position: fixed; inset: 0; z-index: 1000; background: white; }
#geo.geo-focus .geo-layout { height: 100dvh; min-height: 0; }
body.geo-focus-active { overflow: hidden; }
body.geo-focus-active #error:not([hidden]) { position: fixed; top: 65px; left: 20px; right: 20px; z-index: 1100; }
@media (max-width: 1150px) {
  body[data-workspace="geo"] { --geo-panel-width: 304px; }
  #geo .geo-workbar { flex-wrap: wrap; gap: 6px; padding: 8px 12px; }
  #geo .map-toolbar { flex-basis: 100%; }
  #geo .geo-workbar-actions { border: 0; padding: 0; margin-left: auto; }
  body[data-workspace="geo"] .global-filter-main { grid-template-columns: minmax(0,1fr) minmax(0,1fr); }
  body[data-workspace="geo"] .sidebar { position: fixed; width: 160px; }
  body[data-workspace="geo"] main { margin-left: 160px; }
}
@media (max-width: 760px) {
  body[data-workspace="geo"] .sidebar { position: static; width: 100%; height: auto; padding: 8px 12px; }
  body[data-workspace="geo"] .sidebar .ananda-brand { margin: 0; padding: 0; transform: none; }
  body[data-workspace="geo"] .ananda-brand img { width: 100px; }
  body[data-workspace="geo"] .workspace-label, body[data-workspace="geo"] .sidebar-footer, body[data-workspace="geo"] .data-nav { display: none; }
  body[data-workspace="geo"] .product-nav { display: flex; margin-top: 6px; overflow-x: auto; gap: 3px; }
  body[data-workspace="geo"] .product-nav button { font-size: 11px; padding: 6px 9px; min-height: 34px; white-space: nowrap; }
  body[data-workspace="geo"] .product-nav button img { display: none; }
  body[data-workspace="geo"] .product-nav button[data-view="ask"] { margin: 0; border: 0; }
  body[data-workspace="geo"] main { margin: 0; padding: 0; }
  body[data-workspace="geo"] main > header { padding: 8px 12px; min-height: 52px; gap: 6px; flex-wrap: wrap; }
  body[data-workspace="geo"] header h1 { font-size: 17px; }
  body[data-workspace="geo"] header .badge { display: none; }
  body[data-workspace="geo"] header > button { font-size: 10px; max-width: 100%; }
  body[data-workspace="geo"] #global-filters { padding: 8px 12px; }
  body[data-workspace="geo"] .global-filter-main { gap: 8px; }
  body[data-workspace="geo"] #clear-filters { grid-column: 1 / -1; justify-self: end; min-height: 28px; padding: 3px 7px; border: 0; }
  body[data-workspace="geo"] .geo-filter-disclosure { margin-top: -26px; }
  body[data-workspace="geo"] .geo-filter-disclosure > summary { max-width: calc(100% - 90px); min-height: 28px; padding: 4px 0; }
  body[data-workspace="geo"] .geo-filter-disclosure > fieldset { border: 0; padding: 8px 0; margin: 0; min-width: 0; font-size: 11px; }
  body[data-workspace="geo"] .global-filter-main fieldset { min-width: 0; }
  body[data-workspace="geo"] .date-range { display: flex; flex-wrap: wrap; gap: 4px; }
  body[data-workspace="geo"] .date-range input { min-width: 0; flex: 1; width: 100%; padding: 6px; }
  body[data-workspace="geo"] .date-range span { display: none; }
  body[data-workspace="geo"] .global-filter-main select { font-size: 12px; }
  #geo .geo-layout { min-height: 420px; }
  #geo .geo-workbar { padding: 6px 10px; }
  #geo .map-toolbar button { min-height: 40px; }
  #geo .geo-workbar-actions { width: 100%; justify-content: space-between; }
  #geo .geo-workbar-actions button { min-height: 36px; }
  #geo .geo-body { grid-template-columns: minmax(0,1fr); }
  #geo .geo-inspector { position: absolute; inset: 0; z-index: 700; border: 0; }
  #geo .geo-panel { padding: 16px; }
  #geo .geo-map-stage { grid-column: 1; grid-row: 1; }
  #geo .geo-map-top { top: 10px; left: 10px; right: 10px; gap: 6px; }
  #geo .map-layers { padding: 8px; font-size: 11px; }
  #geo #geo-scope-filters { font-size: 11px; }
  #geo #geo-scope-filters > details, #geo #geo-scope-filters > label { padding: 8px; }
  #geo .geo-map-legend span:last-child { display: none; }
  #geo .map-status { font-size: 9px; padding: 6px 10px; }
}
@media (prefers-reduced-motion: reduce) { #geo * { scroll-behavior: auto; } }

/* Original V1 project pin artwork and readable label geometry. */
.project-map-pin{filter:drop-shadow(0 4px 8px #001d5b55)}
.project-map-logo{display:grid;place-items:center;margin:auto;width:max-content;border:3px solid #fff;border-radius:12px;background:#e8f0fe;box-shadow:0 0 0 4px #0b57d0,0 3px 10px #001d5b66;overflow:hidden}
.project-map-label{position:absolute;top:calc(100% + 12px);left:50%;transform:translateX(-50%);display:grid;gap:2px;min-width:max-content;max-width:280px;padding:8px 14px 9px;border:3px solid #fff;border-radius:10px;background:#0b57d0;color:#fff;text-align:center;box-shadow:0 4px 12px #001d5b66;font-family:Tahoma,sans-serif;line-height:1.15;white-space:nowrap}
.project-map-label::before{content:"";position:absolute;bottom:100%;left:50%;transform:translateX(-50%);border:8px solid transparent;border-bottom-color:#fff}
.project-map-label::after{content:"";position:absolute;bottom:100%;left:50%;transform:translate(-50%,3px);border:6px solid transparent;border-bottom-color:#0b57d0}
.project-map-label small{font-size:10px;font-weight:500;letter-spacing:.04em;color:#dbe8ff}
.project-map-label strong{display:block;max-width:250px;overflow:hidden;text-overflow:ellipsis;font-size:13px;font-weight:700}

#geo .zone-presentation {position:static;width:auto;max-height:none;min-height:0;flex:1;overflow:auto;border:0;border-radius:0;box-shadow:none;font-family:var(--font-body,"Ananda UI",Arial,sans-serif)}
#geo .zone-presentation header {display:block;height:auto;min-height:0;padding:16px;color:var(--ink);background:var(--blue-wash)}
#geo .zone-presentation header>button {color:var(--navy)}
#geo .zone-presentation h2 {font-size:20px}
#geo .zone-presentation table {font-size:11px;table-layout:fixed}
#geo .zone-presentation thead,#geo .zone-presentation thead th,#geo .zone-presentation tbody tr:last-child th {background:var(--navy,#122f4e);color:#fff}
#geo .zone-presentation th,#geo .zone-presentation td {overflow-wrap:anywhere;padding:8px 5px}
#geo .zone-presentation .zone-presentation-body {padding:0 14px 14px}
#geo .estate-legend {position:absolute;right:74px;bottom:20px;left:auto;top:auto;z-index:500;max-width:calc(100% - 96px);width:290px;font-family:"Ananda UI",Arial,sans-serif}
#geo .estate-label-note {position:absolute;left:14px;bottom:62px;z-index:450;max-width:calc(100% - 100px)}
#geo .geo-map-legend {bottom:72px;max-width:calc(100% - 110px)}
#geo .project-map-label {font-family:"Ananda UI",Arial,sans-serif}
#geo .customer-pair-badge {position:absolute;top:-8px;padding:2px 5px;border:2px solid white;border-radius:12px;background:#123e68;color:white;font:700 10px Arial,sans-serif;max-width:140px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
#geo .estate-label {font-family:"Ananda UI",Arial,sans-serif}
#geo .zone-presentation[hidden],#geo .geo-panel[hidden] {display:none}
