/* Konfigurátor reliéfní mapy (mapa.html). Doplňuje style.css. */
.map-layout { display: grid; gap: 40px; padding: 24px 0 24px; align-items: start; }
@media (min-width: 980px) { .map-layout { grid-template-columns: 6fr 5fr; gap: 56px; } .map-media { position: sticky; top: 16px; } }
.map-media, .map-config { min-width: 0; }

/* přepínače (druh náhledu, zdroj území) */
.tabs { display: flex; padding: 1px 0 0 1px; margin-bottom: 12px; }
.tabs button { margin: -1px 0 0 -1px; border: 1px solid var(--ink); background: transparent; padding: 9px 14px; font: 500 13px/1.2 var(--mono); color: var(--ink); cursor: pointer; border-radius: 0; flex: 0 1 auto; }
.tabs button:hover { background: var(--paper-2); }
.tabs button[aria-selected="true"] { background: var(--ink); color: var(--paper); }
@media (max-width: 420px) { .tabs button { flex: 1 1 0; padding-inline: 8px; } }

/* mapový list kolem náhledu */
.sheet-row { display: flex; justify-content: space-between; gap: 4px 12px; flex-wrap: wrap; font: 500 11px/1.4 var(--mono); letter-spacing: 0.04em; color: var(--ink-2); padding: 6px 0; }
.map-stage .stage-pane { position: absolute; inset: 0; }
.map-stage .stage-pane canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
#preview2d { cursor: default; touch-action: auto; }
.map-stage .stage-pane .stage-note { position: absolute; left: auto; top: auto; right: 10px; bottom: 10px; }
.map-stage #note2d { top: 10px; left: 10px; right: auto; bottom: auto; }
.map-stage .stage-pane .loading { position: absolute; inset: 0; margin: 0; }
.map-media-hint { font-size: 14px; color: var(--ink-2); margin: 10px 6px 0; }
@media (max-width: 979px) { .map-stage { max-width: 560px; margin-inline: auto; } }

/* konfigurace */
.map-config h1 { font-size: clamp(38px, 5vw, 56px); margin-bottom: 12px; }
.map-tagline { font-size: 17px; color: var(--ink-2); margin: 0 0 18px; max-width: 30em; }
.map-sub { font: 500 11px/1.4 var(--mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-2); margin: 18px 0 10px; }
.map-hint { margin: 0 0 14px; }
.dropzone { display: grid; gap: 4px; justify-items: center; text-align: center; border: 1px dashed var(--ink); padding: 26px 16px; background: var(--white); cursor: pointer; }
.dropzone strong { font-weight: 600; }
.dropzone:hover, .dropzone.drag { border-style: solid; background: var(--paper-2); }
.dropzone.has-file { border-style: solid; box-shadow: inset 4px 0 0 var(--signal); }
.dropzone input { display: none; }
.gpx-file { margin: 12px 0 0; display: flex; gap: 12px; align-items: baseline; flex-wrap: wrap; font: 500 13px/1.4 var(--mono); }
.gpx-file span { word-break: break-all; }
.route-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: 10px; border-top: 1px solid var(--ink); }
.route-stats div { padding: 8px 10px 8px 0; border-bottom: 1px solid var(--hair); }
.route-stats div + div { border-left: 1px solid var(--hair); padding-left: 10px; }
.route-stats b { display: block; font: 500 18px/1.3 var(--mono); }
.route-stats b:first-child { color: var(--ink); }
.route-stats span { font: 500 10.5px/1.4 var(--mono); letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-2); }
.gpx-help { margin-top: 10px; border-top: 1px solid var(--hair); }
.help-list { font-size: 14px; color: var(--ink-2); padding-left: 18px; margin: 0 0 10px; }
.help-list li { margin-bottom: 4px; }
.dem-status { margin: 12px 0 0; font: 500 12px/1.5 var(--mono); display: flex; flex-wrap: wrap; gap: 6px 12px; align-items: center; color: var(--ink-2); }
.dem-status.is-error { color: var(--err); }
.dem-status.is-ok { color: var(--forest); }
.seg-shape button { justify-content: flex-start; align-items: center; }
.shape-icon { display: inline-flex; width: 20px; height: 20px; color: var(--ink-2); }
.shape-icon svg { width: 20px; height: 20px; }
.seg button[aria-pressed="true"] .shape-icon { color: var(--signal); }
#statsCheckWrap { margin-top: 6px; }
#exagSeg { grid-template-columns: repeat(2, minmax(0, 1fr)); }
#sizeSeg { grid-template-columns: repeat(4, minmax(0, 1fr)); }
#sizeSeg button { flex-direction: column; align-items: flex-start; }
@media (max-width: 520px) { #sizeSeg { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* cena a košík */
.map-buy { margin-top: 22px; border: 1px solid var(--ink); padding: 0 16px 16px; }
.map-buy .big-price { border-top: 0; margin: 0 0 16px; }
.map-buy .btn { margin-bottom: 12px; }
.map-added { margin: 0 0 12px; }
.map-added a { font-weight: 600; }
.attribution { font: 500 11px/1.5 var(--mono); color: var(--ink-2); margin: 12px 0 0; padding-top: 10px; border-top: 1px solid var(--hair); }
.map-info { margin-top: 24px; border-top: 1px solid var(--ink); }
.info-list { padding-left: 18px; margin: 0; }
.info-list li { margin-bottom: 4px; }
.map-info ul.small { padding-left: 18px; }
@media (max-width: 420px) { .route-stats b { font-size: 15px; } }
#shapeSeg { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 420px) { #shapeSeg button { padding-inline: 8px; gap: 6px; font-size: 14px; } }
