.kargas-app { min-height: 100vh; display: flex; flex-direction: column; }
.app-header { position: relative; z-index: 12; display: flex; flex: 0 0 66px; align-items: center; gap: 34px; padding: 0 25px; border-bottom: 1px solid var(--line); background: var(--surface); }
.brand { display: flex; flex: 0 0 220px; align-items: center; gap: 10px; }
.brand-symbol { display: grid; width: 33px; height: 33px; place-items: center; border-radius: 10px; color: white; background: var(--green-800); font-size: 17px; font-weight: 800; letter-spacing: -.08em; }
.brand-name { color: var(--ink); font-size: 14px; font-weight: 850; letter-spacing: .15em; }
.search-box { display: flex; width: min(500px, 48vw); height: 42px; align-items: center; gap: 11px; padding: 0 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--canvas); }
.search-wrap { position: relative; width: min(500px, 48vw); }
.search-wrap .search-box { width: 100%; }
.search-suggestions { position: absolute; top: calc(100% + 7px); left: 0; z-index: 15; width: 100%; max-height: min(55vh, 390px); overflow: auto; padding: 5px; border: 1px solid var(--line); border-radius: 11px; background: var(--surface); box-shadow: var(--shadow); }
.search-suggestions[hidden] { display: none !important; }
.suggestion-option { display: grid; width: 100%; gap: 4px; padding: 10px; border: 0; border-radius: 7px; color: var(--ink); background: transparent; cursor: pointer; text-align: left; }
.suggestion-option:hover, .suggestion-option[aria-selected="true"] { background: var(--green-50); }
.suggestion-option strong { font-size: 11px; }
.suggestion-option small { color: var(--muted); font-size: 9px; }
.search-box svg, .icon-button svg, .filter-button svg, .map-control svg, .mobile-filter-button svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.search-box svg { color: var(--muted); }
.search-box input { width: 100%; min-width: 0; border: 0; outline: 0; color: var(--ink); background: transparent; font: inherit; font-size: 12px; }
.search-box input::placeholder { color: #949d97; }
.search-box kbd { padding: 4px 6px; border: 1px solid var(--line); border-radius: 5px; color: var(--muted); background: var(--surface); font: 9px var(--font); white-space: nowrap; }
.header-actions { display: flex; align-items: center; gap: 11px; margin-left: auto; }
.demo-tag { display: inline-flex; align-items: center; gap: 6px; padding: 6px 8px; border-radius: 6px; color: #805b1a; background: #fbf4e2; font-size: 8px; font-weight: 800; letter-spacing: .1em; }
.demo-tag i, .demo-pulse { width: 6px; height: 6px; border-radius: 50%; background: #c39534; }
.icon-button, .profile-button { display: grid; flex: 0 0 34px; width: 34px; height: 34px; place-items: center; border: 0; border-radius: 9px; color: var(--ink-soft); background: transparent; cursor: pointer; }
.icon-button:hover { background: var(--canvas); }
.profile-button { border-radius: 50%; color: var(--green-900); background: var(--green-100); font-size: 12px; font-weight: 800; }
.map-workspace { display: grid; flex: 1; min-height: 0; grid-template-columns: 350px minmax(0, 1fr); }
.results-panel { position: relative; z-index: 4; display: flex; min-height: calc(100vh - 66px); flex-direction: column; border-right: 1px solid var(--line); background: var(--surface); transition: width .22s ease, opacity .18s ease; }
.panel-heading { display: flex; align-items: center; justify-content: space-between; padding: 23px 19px 15px; }
.overline { color: var(--green-800); font-size: 8px; font-weight: 800; letter-spacing: .13em; }
.panel-heading h1 { margin: 7px 0 0; font-size: 19px; font-weight: 680; letter-spacing: -.04em; }
.collapse-panel { font-size: 23px; }
.category-switch { display: flex; gap: 3px; padding: 4px; margin: 0 16px 16px; border: 1px solid var(--line); border-radius: 10px; background: var(--canvas); }
.category-button { display: inline-flex; min-height: 34px; flex: 1; align-items: center; justify-content: center; gap: 6px; padding: 0 8px; border: 1px solid transparent; border-radius: 7px; color: var(--ink-soft); background: transparent; cursor: pointer; font-size: 10px; font-weight: 650; white-space: nowrap; transition: background .16s ease, color .16s ease, box-shadow .16s ease; }
.category-button.active { border-color: var(--line); color: var(--green-900); background: var(--surface); box-shadow: 0 1px 3px rgba(20,45,30,.09); }
.category-button[data-category="charge"].active { color: var(--blue-800); }
.category-symbol { display: grid; width: 17px; height: 17px; place-items: center; border-radius: 50%; font-size: 10px; font-weight: 800; }
.product-select-label, .mobile-product-label, .filter-field { display: grid; gap: 6px; color: var(--muted); font-size: 9px; font-weight: 650; }
.product-select-label { padding: 0 17px 14px; }
.product-select-label select, .mobile-product-label select, .filter-field select, .filter-range input { width: 100%; min-height: 34px; padding: 0 9px; border: 1px solid var(--line); border-radius: 7px; color: var(--ink); background: var(--surface); font: inherit; font-size: 10px; }
.filter-field { margin: 10px 0; }
.filter-range { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.filter-range label { display: grid; gap: 6px; color: var(--muted); font-size: 9px; }
.reset-filters { width: 100%; min-height: 32px; margin-top: 8px; border: 1px solid var(--line); border-radius: 7px; color: var(--green-800); background: var(--surface); cursor: pointer; font-size: 10px; font-weight: 700; }
.all-symbol { font-size: 16px; }
.fuel-symbol { color: var(--green-800); background: var(--green-100); }
.charge-symbol { color: var(--blue-800); background: var(--blue-100); }
.category-button.active .category-symbol { color: var(--green-800); background: var(--green-100); }
.category-button[data-category="charge"].active .category-symbol { color: var(--blue-800); background: var(--blue-100); }
.quick-row { display: flex; align-items: center; justify-content: space-between; padding: 0 17px 14px; border-bottom: 1px solid var(--line); }
.filter-button, .sort-button, .mobile-filter-button { display: inline-flex; min-height: 32px; align-items: center; gap: 7px; padding: 0 9px; border: 1px solid var(--line); border-radius: 7px; color: var(--ink-soft); background: var(--surface); cursor: pointer; font-size: 10px; font-weight: 650; }
.filter-button svg, .mobile-filter-button svg { width: 15px; height: 15px; }
.filter-count { display: grid; width: 16px; height: 16px; place-items: center; border-radius: 50%; color: white; background: var(--green-800); font-size: 9px; }
.sort-button { border-color: transparent; color: var(--muted); }
.filter-popover { position: absolute; top: 148px; left: 16px; z-index: 10; width: min(310px, calc(100% - 32px)); padding: 15px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); box-shadow: var(--shadow); }
.popover-title { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; font-size: 12px; }
.plain-button { border: 0; color: var(--muted); background: none; cursor: pointer; font-size: 20px; }
.check-row { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 12px 0; border-top: 1px solid var(--line); cursor: pointer; }
.check-row span { display: grid; gap: 4px; }
.check-row strong { font-size: 10px; }
.check-row small, .popover-note { color: var(--muted); font-size: 9px; line-height: 1.45; }
.check-row input { width: 17px; height: 17px; accent-color: var(--green-800); }
.popover-note { margin: 7px 0 0; }
.results-heading { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 15px 18px 11px; }
.results-heading > div { display: grid; gap: 4px; }
.results-heading strong { font-size: 11px; }
.results-heading span:not(.demo-caption) { color: var(--muted); font-size: 9px; }
.demo-caption { color: #a27b31; font-size: 7px; font-weight: 800; letter-spacing: .1em; white-space: nowrap; }
.results-list { flex: 1; min-height: 100px; overflow: auto; overscroll-behavior: contain; }
.result-item { display: grid; width: 100%; grid-template-columns: 38px minmax(0,1fr) 20px; align-items: center; gap: 11px; padding: 12px 17px; border: 0; border-top: 1px solid var(--line); color: var(--ink); background: var(--surface); cursor: pointer; text-align: left; }
.result-item:hover, .result-item.selected { background: var(--green-50); }
.result-icon { display: grid; width: 36px; height: 36px; place-items: center; border-radius: 11px; color: var(--green-800); background: var(--green-100); font-size: 17px; font-weight: 800; }
.result-icon.charge { color: var(--blue-800); background: var(--blue-100); }
.result-text { display: grid; min-width: 0; gap: 5px; }
.result-text strong { overflow: hidden; font-size: 10px; font-weight: 650; text-overflow: ellipsis; white-space: nowrap; }
.result-text small { overflow: hidden; color: var(--muted); font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
.result-price { color: var(--green-800); font-size: 9px; font-weight: 750; white-space: nowrap; }
.list-limit-note { padding: 10px 16px; color: var(--muted); font-size: 9px; text-align: center; }
.result-open { color: var(--muted); font-size: 17px; }
.empty-state { padding: 28px 22px; color: var(--muted); font-size: 11px; line-height: 1.6; text-align: center; }
.panel-footer { display: flex; gap: 8px; padding: 12px 16px; border-top: 1px solid var(--line); }
.footer-link { display: flex; flex: 1; min-height: 36px; align-items: center; justify-content: center; gap: 7px; border: 1px solid var(--line); border-radius: 8px; color: var(--ink-soft); background: var(--surface); cursor: pointer; font-size: 10px; font-weight: 650; }
.footer-link span { color: var(--green-800); font-size: 15px; }
.map-stage { position: relative; min-width: 0; min-height: calc(100vh - 66px); overflow: hidden; background: #e8eee9; }
#map { position: absolute; inset: 0; }
.map-loading { position: absolute; inset: 0; z-index: 1; display: flex; align-items: center; justify-content: center; gap: 10px; color: var(--ink-soft); background: #e8eee9; font-size: 11px; }
.map-loading[hidden], .filter-count[hidden], .mobile-detail-content[hidden] { display: none !important; }
.loading-ring { width: 16px; height: 16px; border: 2px solid #cbd9cf; border-top-color: var(--green-800); border-radius: 50%; animation: spin .75s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.map-demo-banner { position: absolute; z-index: 2; top: 16px; left: 50%; display: flex; min-height: 32px; align-items: center; gap: 8px; padding: 0 12px; transform: translateX(-50%); border: 1px solid rgba(255,255,255,.82); border-radius: 999px; color: #315b42; background: rgba(255,255,255,.96); box-shadow: 0 2px 10px rgba(31,50,38,.08); font-size: 10px; font-weight: 650; letter-spacing: 0; white-space: nowrap; }
.map-controls { position: absolute; z-index: 3; top: 16px; right: 17px; display: flex; flex-direction: column; gap: 9px; }
.map-control { display: grid; width: 38px; height: 38px; place-items: center; border: 1px solid rgba(20,45,30,.09); border-radius: 9px; color: var(--ink-soft); background: var(--surface); box-shadow: 0 2px 9px rgba(20,45,30,.1); cursor: pointer; font-size: 21px; }
.map-control:hover { color: var(--green-800); background: var(--green-50); }
.zoom-controls { display: grid; overflow: hidden; border: 1px solid rgba(20,45,30,.09); border-radius: 9px; box-shadow: 0 2px 9px rgba(20,45,30,.1); }
.zoom-controls .map-control { border: 0; border-radius: 0; box-shadow: none; }
.zoom-controls .map-control + .map-control { border-top: 1px solid var(--line); }
.panel-reopen { position: absolute; z-index: 3; top: 15px; left: 15px; min-height: 38px; padding: 0 12px; border: 0; border-radius: 8px; color: var(--ink); background: var(--surface); box-shadow: 0 2px 9px rgba(20,45,30,.1); cursor: pointer; font-size: 10px; font-weight: 700; }
.panel-reopen span { padding-right: 7px; color: var(--green-800); }
.map-category-switch { display: none; }
.station-detail { position: absolute; z-index: 5; top: 65px; right: 17px; width: min(330px, calc(100% - 34px)); padding: 20px; border: 1px solid var(--line); border-radius: 13px; background: var(--surface); box-shadow: var(--shadow); }
.detail-close { position: absolute; top: 8px; right: 8px; font-size: 21px; }
.detail-kind { display: inline-flex; align-items: center; gap: 6px; padding: 6px 8px; border-radius: 6px; color: var(--green-800); background: var(--green-100); font-size: 8px; font-weight: 800; letter-spacing: .08em; }
.detail-kind.charge { color: var(--blue-800); background: var(--blue-100); }
.detail-prices { display: grid; gap: 8px; margin-top: 14px; font-size: 10px; }
.detail-prices > strong { font-size: 11px; }
.detail-price-row { display: flex; justify-content: space-between; gap: 10px; padding-top: 7px; border-top: 1px solid var(--line); }
.detail-price-row span { color: var(--ink-soft); }
.detail-price-row strong { white-space: nowrap; }
.detail-meta-column { flex-direction: column; gap: 7px; }
.detail-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.detail-actions a { color: var(--green-800); font-size: 10px; font-weight: 700; }
.detail-actions button { min-height: 30px; padding: 0 9px; border: 1px solid var(--line); border-radius: 7px; color: var(--green-800); background: var(--surface); cursor: pointer; font-size: 10px; font-weight: 700; }
.source-tag { color: #17623d; background: #e9f5ed; }
.source-tag i, .source-banner .demo-pulse { background: #2c9b5e; }
.source-banner { max-width: min(56%, 460px); overflow: hidden; color: #17623d; text-overflow: ellipsis; }
.station-detail h2 { padding-right: 18px; margin: 13px 0 6px; font-size: 16px; letter-spacing: -.025em; }
.station-detail p { margin: 0; color: var(--ink-soft); font-size: 10px; line-height: 1.5; }
.detail-notice { display: flex; gap: 8px; padding: 11px; margin-top: 15px; border-radius: 8px; color: #76571e; background: #fcf7e9; font-size: 9px; line-height: 1.5; }
.detail-meta { display: flex; justify-content: space-between; padding-top: 12px; margin-top: 12px; border-top: 1px solid var(--line); color: var(--muted); font-size: 9px; }
.mobile-sheet, .mobile-nav { display: none; }
.toast { position: fixed; right: 20px; bottom: 20px; z-index: 20; max-width: min(370px, calc(100vw - 32px)); padding: 12px 15px; transform: translateY(9px); border: 1px solid var(--line); border-radius: 9px; color: var(--ink); background: var(--surface); box-shadow: var(--shadow); opacity: 0; pointer-events: none; transition: .2s ease; font-size: 11px; }
.toast.visible { transform: translateY(0); opacity: 1; }
.local-dialog { width: min(520px, calc(100vw - 28px)); max-height: min(88dvh, 760px); padding: 0; overflow: auto; border: 1px solid var(--line); border-radius: 16px; color: var(--ink); background: var(--surface); box-shadow: 0 20px 70px rgba(10,30,18,.25); }
.local-dialog::backdrop { background: rgba(12,25,17,.48); backdrop-filter: blur(3px); }
.local-dialog-header { position: sticky; top: 0; z-index: 1; display: flex; align-items: center; justify-content: space-between; padding: 18px 20px 12px; border-bottom: 1px solid var(--line); background: var(--surface); }
.local-dialog-header h2 { margin: 5px 0 0; font-size: 20px; }
.local-tabs { display: flex; gap: 6px; padding: 12px 18px 0; }
.local-tabs button { min-height: 34px; padding: 0 13px; border: 1px solid var(--line); border-radius: 8px; color: var(--ink-soft); background: var(--surface); cursor: pointer; font-size: 11px; }
.local-tabs button.active { border-color: var(--green-800); color: white; background: var(--green-800); }
.local-view { padding: 14px 20px 20px; }
.vehicle-form { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.vehicle-form label, .cost-box label { display: grid; gap: 5px; color: var(--muted); font-size: 10px; font-weight: 650; }
.vehicle-form input, .vehicle-form select, .cost-box input, .cost-box select { width: 100%; min-height: 38px; padding: 0 10px; border: 1px solid var(--line); border-radius: 8px; color: var(--ink); background: var(--surface); font-size: 12px; }
.primary-action { min-height: 38px; grid-column: 1 / -1; border: 0; border-radius: 8px; color: white; background: var(--green-800); cursor: pointer; font-size: 11px; font-weight: 750; }
.local-list { display: grid; gap: 8px; margin-top: 12px; }
.local-card { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 11px 12px; border: 1px solid var(--line); border-radius: 9px; }
.local-card > div { display: grid; min-width: 0; gap: 4px; }
.local-card strong { overflow: hidden; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.local-card small, .local-empty { color: var(--muted); font-size: 9px; line-height: 1.5; }
.local-card button { flex: 0 0 auto; padding: 6px 8px; border: 1px solid var(--line); border-radius: 7px; color: var(--ink-soft); background: var(--surface); cursor: pointer; font-size: 9px; }
.cost-box { display: grid; gap: 9px; padding: 14px; margin-top: 16px; border-radius: 10px; background: var(--canvas); }
.cost-box h3 { margin: 0; font-size: 13px; }
.cost-box output { color: var(--green-800); font-size: 18px; font-weight: 800; }
.cost-box > small { color: var(--muted); font-size: 9px; line-height: 1.5; }
@media (max-width: 480px) { .vehicle-form { grid-template-columns: 1fr; } }
.maplibregl-ctrl-attrib { font-size: 9px !important; }
.maplibregl-ctrl-group { overflow: hidden; border-radius: 9px !important; }
.map-workspace.panel-collapsed { grid-template-columns: 0 minmax(0,1fr); }
.panel-collapsed .results-panel { width: 0; overflow: hidden; opacity: 0; border: 0; }
.panel-collapsed .panel-reopen { display: block; }
@media (max-width: 760px) {
  html, body { width: 100%; height: 100%; overflow: hidden; }
  .kargas-app { height: 100dvh; min-height: 0; overflow: hidden; }
  .app-header { flex: 0 0 56px; gap: 10px; padding: 0 13px; }
  .brand { flex-basis: auto; gap: 7px; }
  .brand-symbol { width: 30px; height: 30px; }
  .brand-name { font-size: 12px; }
  .search-wrap { position: absolute; top: 65px; left: 12px; z-index: 8; width: calc(100% - 24px); }
  .search-box { position: relative; top: auto; left: auto; width: 100%; height: 44px; border-color: rgba(20,45,30,.09); background: var(--surface); box-shadow: 0 3px 14px rgba(20,45,30,.11); }
  .search-box kbd { display: none; }
  .header-actions { gap: 5px; }
  .demo-tag { padding: 6px 8px; font-size: 7px; letter-spacing: .04em; }
  .icon-button, .profile-button { width: 31px; height: 31px; flex-basis: 31px; }
  .map-workspace { display: block; flex: 1; min-height: 0; }
  .results-panel { display: none; }
  .map-stage { width: 100%; height: 100%; min-height: 0; }
  .map-demo-banner { top: 119px; left: 12px; max-width: calc(100% - 66px); min-height: 29px; padding: 0 10px; transform: none; font-size: 9px; }
  .map-controls { top: 119px; right: 12px; gap: 7px; }
  .map-control { width: 35px; height: 35px; }
  .zoom-controls .map-control { width: 35px; height: 35px; }
  .map-category-switch { position: absolute; top: 157px; left: 12px; z-index: 3; display: flex; gap: 3px; padding: 3px; border: 1px solid rgba(20,45,30,.08); border-radius: 10px; background: rgba(255,255,255,.96); box-shadow: 0 2px 10px rgba(20,45,30,.12); }
  .map-category-switch .category-button { min-height: 32px; flex: 0 0 auto; padding: 0 9px; }
  .map-category-switch .category-button.active { background: var(--surface); }
  .panel-reopen { display: none !important; }
  .mobile-sheet { position: absolute; inset: auto 0 0; z-index: 6; display: flex; height: calc(100% - 205px); min-height: 148px; max-height: calc(100% - 90px); flex-direction: column; padding: 0 14px calc(78px + env(safe-area-inset-bottom)); transform: translateY(calc(100% - 139px)); border-radius: 17px 17px 0 0; background: var(--surface); box-shadow: 0 -5px 24px rgba(20,45,30,.12); transition: transform .25s cubic-bezier(.2,.75,.25,1); }
  .mobile-sheet[data-state="half"] { transform: translateY(40%); }
  .mobile-sheet[data-state="expanded"] { transform: translateY(0); }
  .mobile-sheet.has-detail { height: min(365px, calc(100% - 220px)); min-height: 300px; }
  .mobile-sheet[data-state="collapsed"] { transform: translateY(calc(100% - 126px)); }
  .sheet-handle { display: grid; flex: 0 0 27px; place-items: center; border: 0; background: none; cursor: grab; touch-action: none; }
  .sheet-handle span { width: 35px; height: 4px; border-radius: 4px; background: #d7ddd8; }
  .sheet-summary { display: flex; flex: 0 0 52px; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); }
  .sheet-summary > div { display: grid; gap: 4px; }
  .sheet-summary strong { font-size: 12px; }
  .sheet-summary small { color: var(--muted); font-size: 9px; }
  .mobile-filter-button { min-height: 34px; }
  .mobile-product-label { padding: 10px 0; }
  .mobile-results { min-height: 0; flex: 1; overflow: auto; overscroll-behavior: contain; }
  .mobile-results .result-item { padding: 12px 2px; }
  .mobile-nav { position: absolute; inset: auto 0 0; z-index: 9; display: grid; height: calc(58px + env(safe-area-inset-bottom)); grid-template-columns: repeat(5,1fr); padding: 5px 3px env(safe-area-inset-bottom); border-top: 1px solid var(--line); background: var(--surface); }
  .mobile-nav-item { display: grid; align-content: center; justify-items: center; gap: 3px; border: 0; color: var(--muted); background: transparent; cursor: pointer; }
  .mobile-nav-item span { font-size: 17px; font-weight: 750; line-height: 1; }
  .mobile-nav-item small { font-size: 8px; font-weight: 650; }
  .mobile-nav-item.active { color: var(--green-800); }
  .mobile-nav-item.active span { transform: translateY(-1px); }
  .station-detail { display: none !important; }
  .filter-popover.mobile-floating { position: fixed; top: 113px; right: 12px; left: auto; width: min(310px, calc(100vw - 24px)); }
  .toast { right: 12px; bottom: calc(69px + env(safe-area-inset-bottom)); }
  .maplibregl-ctrl-bottom-right { z-index: 8; bottom: calc(62px + env(safe-area-inset-bottom)) !important; }
}
@media (max-width: 380px) {
  .map-demo-banner { max-width: calc(100vw - 68px); overflow: hidden; text-overflow: ellipsis; }
  .map-category-switch .category-button { gap: 4px; padding: 0 7px; font-size: 9px; }
  .mobile-nav-item small { font-size: 7px; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; } }
