:root{--geo-navy:#071638;--geo-navy-2:#10285d;--geo-blue:#0e76a8;--geo-cyan:#31a6c9;--geo-ink:#13233e;--geo-muted:#71819a;--geo-line:#e2e8f0;--geo-bg:#eef2f7}
html,body.map-page{margin:0;width:100%;height:100%;overflow:hidden;background:var(--geo-bg);font-family:Inter,system-ui,-apple-system,"Segoe UI",sans-serif;color:var(--geo-ink)}
.geo-app{height:100vh;width:100vw;display:flex;flex-direction:column;overflow:hidden}
.geo-topbar{height:76px;flex:0 0 76px;display:flex;align-items:center;gap:28px;padding:0 28px;background:var(--geo-navy);color:#fff;box-shadow:0 3px 18px #07163826;z-index:1000}
.geo-brand{display:flex;align-items:center;gap:11px;min-width:230px;text-decoration:none;color:#fff}.geo-brand-icon{width:42px;height:42px;display:grid;place-items:center;border-radius:11px;background:linear-gradient(145deg,#1b9ec1,#0e5c91);font-weight:950;font-size:15px;letter-spacing:-1px;box-shadow:inset 0 1px #ffffff50}.geo-brand-text{display:grid;gap:2px}.geo-brand-text strong{font-size:16px;letter-spacing:.12em;text-transform:uppercase}.geo-brand-text small{font-size:10px;letter-spacing:.19em;color:#9db2d0;font-weight:700;text-transform:uppercase}
.geo-mode-tabs{height:100%;display:flex;align-items:stretch;gap:8px}.mode-tab{position:relative;min-width:90px;border:0;background:transparent;color:#aebbd0;font:inherit;font-size:11px;font-weight:800;letter-spacing:.06em;cursor:pointer;padding:8px 13px;display:flex;align-items:center;justify-content:center;gap:8px}.mode-tab .mode-icon{font-size:21px}.mode-tab.active{color:#fff}.mode-tab.active:after{content:"";position:absolute;bottom:0;left:12px;right:12px;height:3px;background:#36b7db;border-radius:3px 3px 0 0}.mode-tab.disabled{opacity:.42;cursor:not-allowed}
.geo-standard-controls{display:flex;align-items:center;gap:12px;margin-left:auto}.geo-standard-controls label{display:grid;gap:5px}.geo-standard-controls label>span{font-size:9px;color:#8ea2c2;font-weight:800;letter-spacing:.14em}.geo-standard-controls select{height:35px;min-width:170px;max-width:240px;border:1px solid #33456d;background:#10244f;color:#fff;border-radius:7px;padding:0 10px;font:inherit;font-size:11px;font-weight:650}.geo-exit{color:#d9e6f5;text-decoration:none;border:1px solid #3e557f;border-radius:8px;padding:10px 14px;font-size:11px;font-weight:750;white-space:nowrap}.geo-exit:hover{background:#173365}
.geo-legendbar{height:43px;flex:0 0 43px;display:flex;align-items:center;justify-content:space-between;padding:0 20px 0 30px;background:#fff;border-bottom:1px solid #dce4ef;z-index:900}.geo-active-standard{display:flex;flex:1 1 auto;min-width:0;align-items:center;justify-content:center;gap:11px;font-size:11px;text-align:center}.geo-active-standard strong{font-size:11px;letter-spacing:.08em}.download-mark{font-size:20px;color:#e99a20;font-weight:900}.standard-trail{color:#8c9bb1;border-left:1px solid #d9e1eb;padding-left:12px;font-size:10px}.geo-legend{height:100%;display:flex;flex:0 0 auto;align-items:center;gap:0}.legend-title{font-size:10px;font-weight:800;color:#53647e;margin-right:13px}.legend-item{height:43px;min-width:44px;padding:0 12px;display:grid;place-items:center;background:var(--zone);color:#15223a;font-size:12px;font-weight:850;border-left:1px solid #ffffff88}.legend-item:last-child{border-right:1px solid #ffffff88}
.geo-stage{position:relative;flex:1;min-height:0;width:100%;overflow:hidden;background:#dbe5e9}#poland-map{position:absolute;inset:0;width:100%;height:100%;z-index:1}.leaflet-container{font-family:inherit;background:#dce7ea}.leaflet-control-zoom{border:0!important;box-shadow:0 4px 15px #0b234522!important}.leaflet-control-zoom a{border:0!important;color:#13233e!important}.leaflet-control-attribution{font-size:9px!important;background:#ffffffc9!important}
.geo-sidebar{position:absolute;z-index:600;left:0;top:0;bottom:0;width:336px;max-width:calc(100vw - 36px);overflow:auto;background:#fff;box-shadow:6px 0 25px #10254a19;border-right:1px solid #dce4ef;display:flex;flex-direction:column;scrollbar-width:thin;scrollbar-color:#c5d0df #f3f6fa}.sidebar-heading{display:flex;align-items:center;justify-content:space-between;padding:17px 18px 13px;border-bottom:1px solid var(--geo-line)}.mini-eyebrow{font-size:8px;font-weight:900;color:#0a83ad;letter-spacing:.18em}.sidebar-heading h1{margin:4px 0 0;font-size:20px;font-weight:850;letter-spacing:.015em;text-transform:uppercase;color:#0c1c3b}.live-dot{width:9px;height:9px;border-radius:50%;background:#27b67d;box-shadow:0 0 0 4px #27b67d1c}
.geo-search{position:relative;display:flex;align-items:center;gap:8px;margin:13px 14px 8px;background:#f3f6fa;border:1px solid #e1e7ef;border-radius:8px;padding:0 6px 0 11px;height:42px;box-sizing:border-box}.geo-search:focus-within{border-color:#36a5c7;box-shadow:0 0 0 3px #36a5c71c}.search-pin{color:#7788a1;font-size:18px}.geo-search input{flex:1;min-width:0;border:0;outline:0;background:transparent;font:inherit;font-size:12px;color:#15243f}.geo-search input::placeholder{color:#97a3b5}.geo-search button[type=submit]{border:0;background:#0d79a2;color:white;border-radius:6px;width:31px;height:30px;font-size:22px;line-height:1;cursor:pointer}.search-results{position:absolute;z-index:1500;top:calc(100% + 4px);left:0;right:0;background:#fff;border:1px solid #dce4ef;border-radius:8px;box-shadow:0 10px 25px #0a1d3a24;overflow:hidden}.search-result{display:block;width:100%;text-align:left;border:0;border-bottom:1px solid #edf1f6;background:#fff;padding:10px 12px;cursor:pointer;color:#13233e}.search-result:last-child{border-bottom:0}.search-result:hover,.search-result:focus{background:#eff8fb}.search-result strong{display:block;font-size:12px}.search-result small{display:block;color:#75859a;font-size:10px;margin-top:3px;line-height:1.35}
.sidebar-section{padding:5px 17px 0}.section-label{display:flex;align-items:center;justify-content:space-between;color:#63738b;font-size:9px;letter-spacing:.12em;font-weight:900;margin:9px 0 8px}.section-index{color:#a5b1c0;font-variant-numeric:tabular-nums}.data-table{border-top:1px solid #edf0f5}.data-row{display:grid;grid-template-columns:45% minmax(0,1fr);gap:9px;align-items:center;min-height:30px;border-bottom:1px solid #edf0f5;font-size:11px}.data-row span{color:#7c8aa0}.data-row strong{font-size:11px;font-weight:700;color:#263955;overflow-wrap:anywhere}.coord-block{background:#f6f8fb;border-radius:8px;margin:10px 0 0;padding:3px 10px}.coord-block .data-row:last-child{border-bottom:0}.coord-block .data-row{grid-template-columns:55% minmax(0,1fr)}
.zone-summary{margin:13px 0 0;border-top:1px solid #e8edf4;border-bottom:1px solid #e8edf4}.zone-summary-row{height:43px;display:flex;align-items:center;justify-content:space-between;padding:0 17px;border-bottom:1px solid #f0f3f7}.zone-summary-row:last-child{border-bottom:0}.zone-summary-row>span{font-size:11px;color:#5b6b83;font-weight:650}.zone-number{min-width:39px;height:31px;padding:0 10px;border-radius:6px;display:grid;place-items:center;font-size:17px;font-weight:900;color:#0b1933;font-variant-numeric:tabular-nums}.zone-number.wind{background:#f5e99a}.zone-number.snow{background:#8fccdf}
.terrain-section{padding:0 17px 12px;border-bottom:1px solid #e8edf4}.terrain-main-row{display:flex;align-items:center;justify-content:space-between;background:#f6f8fb;border-radius:8px;padding:10px 11px;margin-top:8px}.terrain-main-row>div{display:grid;gap:3px}.terrain-main-row small{font-size:9px;color:#7d8da4}.terrain-main-row strong{font-size:24px;line-height:1;color:#0c2d65;letter-spacing:-.04em}.terrain-tag{font-size:8px;letter-spacing:.1em;font-weight:900;color:#8d6920;background:#fff0c9;border-radius:4px;padding:5px 7px}.terrain-tag.ready{color:#087850;background:#dff7ed}.terrain-override-row{display:flex;align-items:center;justify-content:space-between;margin-top:9px;gap:8px}.terrain-override-row label{font-size:10px;color:#66768d}.terrain-override-row select{border:1px solid #d9e2ec;background:#fff;border-radius:5px;padding:6px 8px;font:inherit;font-size:11px;font-weight:750;color:#14284a}.terrain-detail{margin-top:8px;color:#62748c;font-size:10px;line-height:1.4}.terrain-bars{margin-top:9px;display:grid;gap:5px}.terrain-bar-row{display:grid;grid-template-columns:70px 1fr 22px;gap:6px;align-items:center;font-size:9px;color:#718198}.terrain-bar-track{height:5px;background:#edf1f6;border-radius:5px;overflow:hidden}.terrain-bar-fill{height:100%;background:linear-gradient(90deg,#0e8db4,#59c3bb);border-radius:5px}.terrain-bar-row strong{text-align:right;color:#263955}.terrain-source{margin:8px 0 0;color:#97a3b4;font-size:8px;line-height:1.4}
.norm-section{padding:0 17px 13px;border-bottom:1px solid #e8edf4}.norm-section>.section-label{margin-top:13px}.norm-group{margin-top:8px}.norm-group-title{display:flex;align-items:center;gap:7px;color:#0d78a3;font-size:10px;letter-spacing:.08em;font-weight:900}.norm-group-title small{margin-left:auto;font-size:8px;color:#98a5b5;letter-spacing:0;font-weight:600}.norm-symbol{width:21px;height:21px;border-radius:5px;display:grid;place-items:center;background:#e5f4f9;font-size:15px}.norm-data{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-top:7px;padding:8px 10px;background:var(--geo-navy);border-radius:6px;color:#fff}.norm-data span{font-size:9px;color:#b9c8df}.norm-data strong{font-size:17px;color:#fff;letter-spacing:-.02em;font-variant-numeric:tabular-nums}.snow-norm-group{margin-top:12px;padding-top:10px;border-top:1px solid #eef1f5}.snow-symbol{background:#e9f1fc}.norm-footnote{display:block;margin-top:9px;color:#98a4b3;font-size:8px;line-height:1.45}
.sidebar-status{padding:11px 17px 0;color:#77879e;font-size:9px;line-height:1.4;min-height:20px}.apply-location{display:flex;align-items:center;justify-content:space-between;margin:11px 17px 13px;border:0;border-radius:7px;background:linear-gradient(100deg,#0b315f,#087da4);color:white;padding:13px 14px;font:inherit;font-size:10px;font-weight:900;letter-spacing:.06em;box-shadow:0 5px 13px #0c41662a;cursor:pointer}.apply-location:disabled{opacity:.38;cursor:not-allowed;box-shadow:none}.apply-location strong{font-size:18px}.geometry-note{display:flex;gap:7px;align-items:flex-start;padding:10px 17px 15px;background:#f7f9fb;color:#9aa6b6;font-size:8px;line-height:1.45}.geometry-note span{color:#cb8b24;font-size:12px}
.map-float-tools{position:absolute;z-index:500;top:15px;left:354px;display:flex;gap:7px}.map-float-tools button{border:1px solid #dce5ed;background:#ffffffed;color:#36506e;border-radius:6px;padding:8px 11px;font:inherit;font-size:10px;font-weight:750;box-shadow:0 2px 8px #0b23451a;cursor:pointer}.map-float-tools button:hover,.map-float-tools button.active{color:#087ba5;border-color:#70bed6;background:#f0fbff}.map-scale-note{position:absolute;right:10px;bottom:8px;z-index:450;background:#ffffffd9;color:#66758b;font-size:9px;padding:5px 8px;border-radius:4px;pointer-events:none}
@media(max-width:1000px){.geo-topbar{gap:12px;padding:0 14px}.geo-brand{min-width:190px}.geo-standard-controls label:first-child{display:none}.geo-sidebar{width:310px}.map-float-tools{left:326px}}
@media(max-width:720px){.geo-topbar{height:auto;min-height:66px;flex-basis:auto;flex-wrap:wrap;padding:9px 12px;gap:8px}.geo-brand{min-width:auto;flex:1}.geo-brand-icon{width:34px;height:34px}.geo-brand-text strong{font-size:13px}.geo-brand-text small{font-size:9px}.geo-mode-tabs{order:3;width:100%;height:37px;justify-content:center}.mode-tab{min-width:70px;padding:4px 7px;font-size:9px}.mode-tab .mode-icon{font-size:15px}.geo-standard-controls{display:none}.geo-exit{padding:7px 10px;font-size:9px}.geo-legendbar{height:auto;min-height:38px;flex-basis:auto;padding:0 8px}.geo-active-standard{flex:1 1 auto;min-width:0;justify-content:center;font-size:9px;gap:6px}.standard-trail{display:none}.legend-title{display:none}.legend-item{min-width:28px;padding:0 8px;height:38px;font-size:10px}.geo-stage{min-height:0}.geo-sidebar{width:min(310px,calc(100vw - 28px));top:8px;bottom:8px;border-radius:0 10px 10px 0}.map-float-tools{top:auto;left:auto;right:10px;bottom:12px;flex-direction:column}.map-scale-note{display:none}}

.terrain-sector-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:5px;margin-top:8px}.terrain-sector{border:1px solid #e7edf3;border-radius:5px;padding:5px 4px;text-align:center;background:#fbfcfe}.terrain-sector strong{display:block;font-size:9px;color:#1e3554}.terrain-sector small{display:block;font-size:7px;color:#8392a6;margin-top:2px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.geo-search button[type=submit]{padding:0;box-shadow:none}
main.geo-stage{position:relative;flex:1;min-height:0;width:100%;max-width:none;margin:0;padding:0;overflow:hidden;background:#dbe5e9}
#map-location-note:not([hidden]){display:block;margin-top:6px;padding:10px 12px;border-left:3px solid #1692b5;border-radius:4px;background:#eaf6fa;color:#174b68;font-weight:650}

/* GEO-STREFA 1.6.10 — techniczny, kanciasty interfejs */
.geo-app *, .terrain-modal * { border-radius: 0 !important; }
.geo-brand-icon { border-radius: 0 !important; box-shadow: none; }
.geo-search, .geo-search button[type=submit], .search-results, .search-result,
.geo-standard-controls select, .geo-exit, .coord-block, .zone-number,
.terrain-category-tile, .terrain-override-row select, .norm-symbol, .norm-data,
.apply-location, .map-float-tools button, .terrain-modal-card, .terrain-modal-header button {
  border-radius: 0 !important;
}
.geo-topbar { gap: 20px; }
.geo-brand { min-width: 205px; }
.geo-mode-tabs { gap: 0; }
.mode-tab { min-width: 98px; }
.mode-tab.active:after { border-radius: 0 !important; }
.geo-standard-controls select { border-radius: 0 !important; }
.geo-legendbar { padding-right: 14px; }
.legend-item { min-width: 48px; }
.zone-summary-row { min-height: 43px; }
.zone-number.freeze { min-width: 58px; background: #b7bd82; }
.coord-block { margin-top: 9px; padding: 3px 10px; }
.coord-block .data-row:first-child { grid-template-columns: 30% minmax(0,1fr); }
.coord-block .data-row:last-child { grid-template-columns: 55% minmax(0,1fr); }
.coord-block #coordinates { white-space: nowrap; font-size: 10px; font-variant-numeric: tabular-nums; }
.terrain-category-tile {
  display: grid; grid-template-columns: 1fr auto 24px; align-items: center; gap: 9px;
  width: 100%; min-height: 43px; margin: 0; padding: 0 17px;
  border: 0; border-top: 1px solid #f0f3f7; background: #f6f8fb; color: #566982;
  text-align: left; cursor: pointer; font: inherit;
}
.terrain-category-tile > span:first-child { min-width: 0; font-size: 11px; font-weight: 650; }
.terrain-category-tile > strong {
  display: grid; place-items: center; min-width: 39px; height: 31px; padding: 0 8px;
  background: #e8eef5; color: #0c2d65; font-size: 18px; line-height: 1; font-weight: 900;
}
.terrain-toggle-icon {
  display: grid; place-items: center; width: 23px; height: 27px;
  background: #e8eef5; color: #0c2d65; font-size: 15px; line-height: 1; font-weight: 950;
}
.terrain-info-icon {
  display: grid; place-items: center; width: 22px; height: 22px;
  border: 1px solid #0d83ab; background: #fff; color: #0d83ab;
  font: 700 14px Georgia, serif;
}
.terrain-category-tile:hover, .terrain-category-tile:focus-visible { outline: 0; background: #eef8fb; box-shadow: inset 3px 0 #158bb1; }
.terrain-override-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 9px; }
.terrain-override-row label { font-size: 10px; color: #66768d; }
.terrain-override-row select { min-width: 106px; border: 1px solid #d9e2ec; background: #fff; padding: 6px 8px; color: #14284a; font: inherit; font-size: 11px; font-weight: 750; }
.norm-data { padding: 8px 10px; }
.norm-group-title .norm-symbol { border-radius: 0 !important; }
.freeze-norm-group { margin-top: 12px; padding-top: 10px; border-top: 1px solid #eef1f5; }
.freeze-symbol { background: #edf1e1; }
.apply-location {
  display: block; margin: 11px 17px 14px; min-height: 48px; border: 0;
  background: linear-gradient(100deg,#0b315f,#087da4); color: white;
  padding: 12px 14px; font: inherit; font-size: 12px; font-weight: 900;
  letter-spacing: .06em; box-shadow: 0 5px 13px #0c41662a; cursor: pointer;
}
.apply-location:disabled { opacity: .38; cursor: not-allowed; box-shadow: none; }
.map-float-tools { left: 354px; top: 15px; display: flex; gap: 0; box-shadow: 0 2px 8px #0b1c3720; }
.map-float-tools button {
  min-height: 38px; padding: 0 14px; border: 1px solid #d6e0e8; border-right-width: 0;
  background: #fff; color: #35516f; font: inherit; font-size: 11px; font-weight: 850;
  letter-spacing: .04em; cursor: pointer; box-shadow: none;
}
.map-float-tools button:last-child { border-right-width: 1px; }
.map-float-tools button:hover, .map-float-tools button.active { color: #087ea5; background: #e9f7fb; border-color: #68bfd5; }
.terrain-modal[hidden] { display: none !important; }
.terrain-modal { position: fixed; inset: 0; z-index: 3000; display: grid; place-items: center; padding: 22px; }
.terrain-modal-backdrop { position: absolute; inset: 0; background: rgba(5,18,42,.58); }
.terrain-modal-card {
  position: relative; z-index: 1; width: min(780px, calc(100vw - 32px));
  max-height: min(88vh, 920px); overflow: auto; padding: 20px 22px 18px;
  background: #fff; border: 1px solid #d6e0ea; box-shadow: 0 22px 70px #07163855;
}
.terrain-modal-header { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; padding-bottom: 12px; border-bottom: 1px solid #e2e8f0; }
.terrain-modal-header h2 { margin: 5px 0 0; color: #10244b; font-size: 20px; line-height: 1.2; }
.terrain-modal-header button { width: 32px; height: 32px; border: 1px solid #d8e0e9; background: #fff; color: #193454; font-size: 23px; line-height: 1; cursor: pointer; }
.terrain-modal-status { margin: 12px 0; color: #596d86; font-size: 11px; line-height: 1.45; }
.terrain-modal-counts { display: grid; grid-template-columns: repeat(5,minmax(0,1fr)); gap: 9px; padding: 10px 0 14px; border-bottom: 1px solid #e8edf3; }
.terrain-modal-count-row { display: grid; grid-template-columns: 1fr 22px; gap: 5px; align-items: center; font-size: 10px; color: #63748a; }
.terrain-modal-count-row span { grid-column: 1 / 3; }
.terrain-modal-count-row strong { text-align: right; color: #263955; }
.terrain-modal-count-track { height: 6px; background: #edf1f6; overflow: hidden; }
.terrain-modal-count-track i { display: block; height: 100%; background: linear-gradient(90deg,#0e8db4,#59c3bb); }
.terrain-modal-subtitle { margin: 15px 0 8px; color: #526780; font-size: 9px; font-weight: 900; letter-spacing: .12em; }
.terrain-modal-sectors { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 7px; }
.terrain-modal-sector { display: grid; gap: 4px; padding: 9px 10px; border: 1px solid #e1e8ef; background: #fbfcfe; }
.terrain-modal-sector strong { color: #122b4b; font-size: 15px; }
.terrain-modal-sector small { color: #8190a4; font-size: 9px; }
.terrain-modal-sector span { color: #596c83; font-size: 10px; }
.terrain-modal-limitations { margin: 13px 0 0; padding-top: 10px; border-top: 1px solid #e8edf3; color: #8b98a9; font-size: 9px; line-height: 1.45; }
.geo-sidebar { width: 336px; }
@media (max-width: 900px) {
  .geo-topbar { gap: 10px; padding: 0 12px; }
  .geo-brand { min-width: 170px; }
  .geo-brand-text strong { font-size: 13px; }
  .geo-brand-text small { font-size: 9px; }
  .mode-tab { min-width: 82px; padding-left: 8px; padding-right: 8px; font-size: 9px; }
  .geo-standard-controls { gap: 6px; }
  .geo-standard-controls select { min-width: 125px; max-width: 155px; font-size: 9px; }
  .geo-exit { display: none; }
}
@media (max-width: 720px) {
  .geo-topbar { min-height: 100px; height: auto; flex-basis: auto; flex-wrap: wrap; padding: 8px 10px 0; gap: 5px; }
  .geo-brand { flex: 1 1 100%; min-width: 0; }
  .geo-brand-icon { width: 31px; height: 31px; }
  .geo-mode-tabs { order: 2; width: 100%; height: 38px; justify-content: space-around; }
  .mode-tab { min-width: 0; padding: 4px 5px; font-size: 9px; }
  .mode-tab .mode-icon { font-size: 14px; }
  .geo-standard-controls { display: none; }
  .geo-legendbar { min-height: 37px; height: auto; flex-basis: auto; padding: 0 6px; }
  .geo-active-standard { gap: 5px; font-size: 9px; }
  .standard-trail { display: none; }
  .legend-title { display: none; }
  .legend-item { min-width: 30px; height: 37px; padding: 0 7px; font-size: 9px; }
  .geo-sidebar { top: 7px; bottom: 7px; width: min(318px, calc(100vw - 22px)); max-width: calc(100vw - 22px); }
  .map-float-tools { top: auto; left: auto; right: 8px; bottom: 10px; flex-direction: column; }
  .map-float-tools button { min-height: 34px; }
  .terrain-modal { padding: 8px; }
  .terrain-modal-card { width: calc(100vw - 16px); max-height: 90vh; padding: 14px; }
  .terrain-modal-counts { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .terrain-modal-sectors { grid-template-columns: repeat(3,minmax(0,1fr)); }
}

/* GEO-STREFA v1.6.12 — dopracowanie zgodnie z uwagami użytkownika */
/* Wszystkie elementy menu i okna analizy mają ostre narożniki. */
.geo-app *, .terrain-modal *, .leaflet-control, .leaflet-bar, .leaflet-bar a,
.leaflet-popup-content-wrapper, .leaflet-popup-tip {
  border-radius: 0 !important;
}

/* Współrzędne i wysokość są zwykłymi wierszami tabeli lokalizacji. */
.location-section > .data-row {
  display: grid;
  grid-template-columns: 45% minmax(0, 1fr);
  gap: 9px;
  align-items: center;
  min-height: 30px;
  border-bottom: 1px solid #edf0f5;
  font-size: 11px;
  padding: 0;
}
.location-section > .data-row > span { color: #7c8aa0; }
.location-section > .data-row > strong {
  min-width: 0;
  font-size: 11px;
  font-weight: 700;
  color: #263955;
  text-align: left;
  overflow-wrap: normal;
}
#coordinates { white-space: nowrap; font-size: 10px !important; font-variant-numeric: tabular-nums; }
#altitude { white-space: nowrap; }

/* Kafelek kategorii: etykieta po lewej, kwadratowa wartość po prawej. */
.terrain-category-tile {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  width: 100%;
  min-height: 43px;
  margin: 2px 0 0;
  padding: 0 9px 0 10px;
  border: 1px solid #e1e8f0;
  background: #f5f8fb;
  color: #566982;
  text-align: left;
  cursor: pointer;
  font: inherit;
}
.terrain-category-tile > span:first-child { padding: 0; font-size: 11px; font-weight: 650; }
.terrain-category-tile > strong {
  display: grid;
  place-items: center;
  flex: 0 0 39px;
  width: 39px;
  min-width: 39px;
  height: 31px;
  padding: 0;
  background: #e8eef5;
  color: #0c2d65;
  font-size: 18px;
  line-height: 1;
  font-weight: 900;
}
.terrain-category-tile:hover, .terrain-category-tile:focus-visible {
  border-color: #158bb1;
  outline: 0;
  background: #eef8fb;
}

/* Wartości normowe nie łamią jednostek do następnego wiersza. */
.norm-data {
  display: grid;
  grid-template-columns: minmax(0, 1fr) max-content;
  align-items: center;
  gap: 8px;
  min-width: 0;
  padding: 8px 10px;
}
.norm-data > span {
  min-width: 0;
  font-size: 8px;
  line-height: 1.2;
}
.norm-data > strong {
  display: block;
  white-space: nowrap;
  text-align: right;
  font-size: clamp(12px, 1.08vw, 15px);
  line-height: 1.1;
  letter-spacing: -.025em;
  font-variant-numeric: tabular-nums;
}
.norm-data > strong sub { font-size: 68%; }

/* Okno CORINE na środku ekranu; X wyśrodkowany we własnym przycisku. */
.terrain-modal { place-items: center; }
.terrain-modal-header { align-items: center; }
.terrain-modal-header button {
  display: grid;
  place-items: center;
  flex: 0 0 34px;
  width: 34px;
  height: 34px;
  padding: 0;
  line-height: 1;
  text-align: center;
}
.terrain-modal-choice {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 12px;
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid #e8edf3;
}
.terrain-modal-choice label { color: #596d86; font-size: 10px; font-weight: 700; }
.terrain-modal-choice select {
  min-width: 105px;
  height: 34px;
  border: 1px solid #d8e0e9;
  background: #fff;
  color: #14284a;
  padding: 0 8px;
  font: inherit;
  font-size: 11px;
  font-weight: 800;
}

/* Kwadratowy, spójny styl również w kontrolkach mapy i selectach norm. */
.geo-standard-controls select, .geo-search, .geo-search button[type=submit],
.search-results, .search-result, .geo-exit, .map-float-tools button,
.apply-location, .terrain-modal-card, .terrain-modal-header button,
.terrain-modal-choice select, .zone-number, .norm-data, .norm-symbol,
.terrain-category-tile { border-radius: 0 !important; }


/* GEO-STREFA 1.6.13 — precyzyjne wyrównanie tabeli lokalizacji. */
.location-section .data-table > .data-row {
  display: grid;
  grid-template-columns: 42% minmax(0, 1fr);
  gap: 9px;
  align-items: center;
  min-height: 30px;
  border-bottom: 1px solid #edf0f5;
  padding: 0;
}
.location-section .data-table > .data-row > span { color: #7c8aa0; }
.location-section .data-table > .data-row > strong {
  min-width: 0;
  text-align: left;
  overflow-wrap: anywhere;
  font-size: 11px;
  font-weight: 700;
  color: #263955;
}
#coordinates { white-space: nowrap; font-size: 10px !important; font-variant-numeric: tabular-nums; }
#altitude { white-space: nowrap; }
.geo-brand { cursor: default; }


/* v1.6.13 PATCH 1 — source DXF fidelity, CORINE h-scaling, map controls */
.geo-brand-text strong em { font-size: .72em; font-style: normal; font-weight: 800; letter-spacing: .08em; color: #7fd0e4; }
@media (min-width: 1201px) {
  .mode-tab { min-width: 127px; padding: 10px 17px; font-size: 14px; }
  .mode-tab .mode-icon { font-size: 27px; }
}
@media (min-width: 901px) and (max-width: 1200px) {
  .geo-topbar { gap: 12px; padding-left: 14px; padding-right: 14px; }
  .geo-brand { min-width: 180px; }
  .mode-tab { min-width: 108px; padding: 8px 10px; font-size: 11px; }
  .mode-tab .mode-icon { font-size: 23px; }
  .geo-standard-controls { gap: 7px; }
  .geo-standard-controls select { min-width: 130px; max-width: 170px; }
}
.terrain-modal-controls { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; margin: 15px 0 8px; }
.terrain-modal-controls .terrain-modal-subtitle { margin: 0; }
.terrain-height-field { display: flex; align-items: center; gap: 10px; color: #526780; font-size: 10px; font-weight: 800; }
.terrain-height-input-wrap { display: inline-flex; align-items: center; gap: 6px; border: 1px solid #cfdae6; background: #fff; padding: 4px 8px; color: #526780; }
.terrain-height-input-wrap input { width: 66px; border: 0; outline: 0; background: transparent; color: #142b4c; font: inherit; font-size: 12px; font-weight: 850; font-variant-numeric: tabular-nums; }
.terrain-height-input-wrap input:focus-visible { outline: 1px solid #1886aa; outline-offset: 2px; }
.terrain-height-input-wrap > span { font-size: 10px; font-weight: 800; }
.terrain-modal-sector span { overflow-wrap: anywhere; }
@media (max-width: 900px) {
  .mode-tab { min-width: 82px; padding-left: 8px; padding-right: 8px; font-size: 9px; }
  .mode-tab .mode-icon { font-size: 15px; }
}
@media (max-width: 720px) {
  .mode-tab { min-width: 0; padding: 4px 5px; font-size: 9px; }
  .mode-tab .mode-icon { font-size: 14px; }
  .terrain-modal-controls { align-items: flex-start; }
  .terrain-modal-controls .terrain-modal-subtitle { max-width: 100%; line-height: 1.5; }
  .terrain-height-field { width: 100%; justify-content: space-between; }
}

/* GEO-STREFA v1.6.13 PATCH 2 — czytelność odczytów i wysokość przy pinezce.
   Zmiany są celowo ograniczone do wybranych etykiet, bez skalowania całego UI. */
.sidebar-section .section-label { font-size: 10px; }
.location-section .data-table > .data-row > span,
.zone-summary-row > span { font-size: 12px; }
.location-section .data-table > .data-row > strong { font-size: 12px; }
#coordinates { font-size: 11px !important; }
#altitude { font-size: 12px; font-weight: 850; }
.zone-number { font-size: 19px; }
.norm-data > span { font-size: 9px; }
.norm-data > strong { font-size: clamp(13px, 1.15vw, 16px); }
.legend-title { font-size: 11px; }
.legend-item { font-size: 13px; }

.geo-marker-popup { min-width: 190px; display: grid; gap: 5px; color: #13233e; font-family: inherit; }
.geo-marker-popup-title { display: block; font-size: 14px; line-height: 1.25; font-weight: 850; }
.geo-marker-popup-coordinates { display: block; color: #53647e; font-size: 12px; font-variant-numeric: tabular-nums; }
.geo-marker-popup-elevation { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 4px; padding-top: 6px; border-top: 1px solid #e2e8f0; }
.geo-marker-popup-elevation span { color: #53647e; font-size: 11px; font-weight: 700; }
.geo-marker-popup-elevation b { color: #10285d; font-size: 14px; font-weight: 900; white-space: nowrap; font-variant-numeric: tabular-nums; }
.leaflet-popup-content { margin: 11px 13px; }
@media (max-width: 720px) {
  .location-section .data-table > .data-row > span,
  .zone-summary-row > span { font-size: 11px; }
  .location-section .data-table > .data-row > strong,
  #altitude { font-size: 11px; }
  .geo-marker-popup-title { font-size: 13px; }
  .geo-marker-popup-coordinates { font-size: 11px; }
  .geo-marker-popup-elevation span { font-size: 10px; }
  .geo-marker-popup-elevation b { font-size: 13px; }
}


/* Uzgodnione dopracowanie warstwy mapy — bez zmian w logice i danych. */
.geo-active-standard {
  flex: 0 0 336px;
  box-sizing: border-box;
  justify-content: flex-start;
  padding-left: 17px;
  text-align: left;
}
.geo-legend { align-items: center; }
.legend-title {
  align-self: center;
  margin-top: 0;
  margin-bottom: 0;
  line-height: 1.2;
}

/* Kafelki menu: jedna wartość kategorii w jednym, w pełni klikalnym przycisku. */
.terrain-category-tile {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  background: #f1f6fa;
}
.terrain-category-tile > strong { flex: 0 0 39px; }
.terrain-toggle-icon { display: none !important; }
.zone-number.freeze::before,
.zone-number.freeze::after { content: none !important; display: none !important; }

/* Czytelne, lekkie etykiety stref z parametrem w drugiej linii. */
.zone-hover-tooltip {
  padding: 7px 10px;
  border: 1px solid #d6e0e9;
  background: #ffffff;
  color: #263955;
  box-shadow: 0 3px 12px #10254a20;
  font-family: inherit;
  font-size: 12px;
  font-weight: 400;
  line-height: 1.35;
}
.zone-hover-tooltip::before { border-top-color: #d6e0e9; }
.zone-hover-tooltip-title,
.zone-hover-tooltip-value { font-weight: 400; }
.zone-hover-tooltip-value { margin-top: 3px; color: #5d6b7b; font-size: 11px; }
.zone-hover-tooltip-value sub { font-size: 72%; }

/* Atrybucje rozdzielone przestrzennie od skali i stopki Leaflet. */
.map-scale-note {
  left: 354px;
  right: auto;
  bottom: 8px;
  max-width: min(420px, calc(100% - 380px));
  white-space: normal;
  line-height: 1.25;
  text-align: left;
}
.leaflet-control-attribution { font-size: 9px !important; }

/* Pionowy suwak zoomu: ćwierć wysokości obszaru mapy, prawy dolny róg. */
.map-zoom-slider {
  position: absolute;
  z-index: 520;
  right: 13px;
  bottom: 64px;
  height: 25%;
  min-height: 90px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  gap: 5px;
  width: 34px;
  padding: 7px 4px;
  border: 1px solid #d5e0e9;
  background: #ffffffdf;
  box-shadow: 0 3px 12px #0b234522;
  box-sizing: border-box;
}
.map-zoom-slider input[type="range"] {
  display: block;
  flex: 1 1 auto;
  min-height: 0;
  width: 20px;
  height: 100%;
  margin: 0;
  padding: 0;
  accent-color: #0e76a8;
  cursor: ns-resize;
  writing-mode: vertical-lr;
  direction: rtl;
}
.map-zoom-endpoint {
  color: #38516c;
  font-size: 13px;
  font-weight: 700;
  line-height: 1;
  user-select: none;
}
.geo-marker-popup-elevation span {
  color: #263955;
  font-size: 13px;
  font-weight: 400;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.geo-marker-popup-elevation b { font-weight: 400; }

@media (max-width: 1000px) {
  .geo-active-standard { flex-basis: 310px; }
  .map-scale-note { left: 326px; max-width: min(380px, calc(100% - 352px)); }
}
@media (max-width: 720px) {
  .geo-active-standard {
    flex: 1 1 auto;
    min-width: 0;
    justify-content: flex-start;
    padding-left: 8px;
    text-align: left;
  }
  .map-scale-note { display: none; }
  .map-zoom-slider {
    right: 12px;
    bottom: 142px;
    height: 25%;
    min-height: 82px;
  }
}

/* Korekta wyrównania menu: wspólna szerokość kafelków i równe krawędzie. */
.zone-summary-row > .zone-number {
  box-sizing: border-box;
  flex: 0 0 39px;
  width: 39px;
  min-width: 39px;
  max-width: 39px;
  padding: 0;
  margin: 0;
  border-radius: 0 !important;
}
.zone-summary-row > .zone-number.freeze {
  flex-basis: 39px;
  width: 39px;
  min-width: 39px;
  max-width: 39px;
}
.terrain-category-tile {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 39px;
  align-items: center;
  box-sizing: border-box;
  width: 100%;
  min-width: 0;
  padding: 0 17px;
  margin: 0;
  gap: 0;
}
.terrain-category-tile > span:first-child {
  min-width: 0;
  padding: 0;
  text-align: left;
}
.terrain-category-tile > strong {
  box-sizing: border-box;
  width: 39px;
  min-width: 39px;
  max-width: 39px;
  height: 31px;
  padding: 0;
  margin: 0;
  justify-self: end;
}

/* Tytuł warstwy i norma w jednej linii, wyrównane do początku menu. */
.geo-active-standard {
  flex: 0 0 336px;
  min-width: 336px;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
  padding-left: 17px;
  text-align: left;
  white-space: nowrap;
  overflow: visible;
}
.geo-active-standard .download-mark {
  flex: 0 0 12px;
  width: 12px;
  text-align: center;
}
.geo-active-standard > strong {
  flex: 0 0 auto;
  white-space: nowrap;
}
.geo-active-standard .standard-trail {
  flex: 0 0 auto;
  white-space: nowrap;
  font-size: 9px;
  padding-left: 8px;
}
@media (max-width: 720px) {
  .geo-active-standard {
    flex: 1 1 100%;
    min-width: 0;
    padding-left: 10px;
    justify-content: flex-start;
  }
  .geo-active-standard .standard-trail { display: none; }
}


/* Dwie ostatnie korekty wskazane na zrzutach: wyrównanie oraz kursor nad strefą. */
.geo-legendbar { padding-left: 0; }
.terrain-category-tile > span:first-child { margin-left: 0; }
@media (max-width: 720px) {
  .geo-legendbar { padding-left: 0; }
  .geo-active-standard { padding-left: 17px; }
}


/* Nagłówek drugiej sekcji menu: charakterystyka stref. */
.zone-summary > .zone-summary-section-label {
  margin: 9px 17px 8px;
}

/* Interaktywne przyciski +/− suwaka zoomu oraz klasyczna, segmentowa podziałka mapy. */
.map-zoom-endpoint {
  appearance: none;
  display: grid;
  place-items: center;
  flex: 0 0 22px;
  width: 22px;
  height: 22px;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: #183451;
  box-shadow: none;
  font-family: inherit;
  font-size: 17px;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
}
.map-zoom-endpoint:hover { background: #eaf4f8; color: #087ba5; }
.map-zoom-endpoint:focus-visible { outline: 2px solid #1687b2; outline-offset: 1px; }
.map-scale-control {
  box-sizing: border-box;
  margin: 0 10px 8px 0;
  padding: 5px 7px 6px;
  border: 1px solid #aeb8c2;
  background: rgba(255,255,255,.92);
  color: #1d2733;
  box-shadow: 0 1px 4px rgba(13,30,48,.12);
  font-family: inherit;
  font-size: 9px;
  line-height: 1;
  pointer-events: none;
}
.map-scale-labels {
  position: relative;
  width: calc(100% - 20px);
  height: 13px;
  margin: 0 0 2px;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.map-scale-label {
  position: absolute;
  bottom: 0;
  transform: translateX(-50%);
}
.map-scale-label:first-child { transform: none; }
.map-scale-label:nth-last-child(2) { transform: translateX(-100%); }
.map-scale-unit {
  position: absolute;
  right: -19px;
  bottom: 0;
  padding-left: 2px;
  background: rgba(255,255,255,.92);
}
.map-scale-track {
  display: flex;
  width: calc(100% - 20px);
  height: 9px;
  box-sizing: border-box;
  border: 1px solid #27313a;
}
.map-scale-segment { flex: 1 1 25%; height: 100%; box-sizing: border-box; }
.map-scale-segment + .map-scale-segment { border-left: 1px solid #27313a; }
.map-scale-segment.is-dark { background: #20272e; }
.map-scale-segment.is-light { background: #fff; }

/* Kursor strzałki podczas wskazywania mapy; chwytanie tylko podczas przeciągania. */
#poland-map.leaflet-container,
#poland-map .leaflet-interactive,
#poland-map .leaflet-overlay-pane canvas,
#poland-map .leaflet-overlay-pane svg,
#poland-map .leaflet-overlay-pane path { cursor: default !important; }
body.leaflet-dragging #poland-map,
body.leaflet-dragging #poland-map *,
body.leaflet-dragging #poland-map .leaflet-drag-target { cursor: grabbing !important; }
