/* drevozaodvoz.cz prototype styles. Palette and type are cousins of boudakaci.cz
   (ink green, lime, paper, Barlow) and katalogarboristu.cz (forest, bark, amber, rounded cards). */
:root {
  --ink: #10261d;
  --ink-soft: #1a382b;
  --paper: #f3f1e9;
  --paper-deep: #e9e4d7;
  --surface: #fffef8;
  --lime: #d8f36b;
  --lime-ink: #10261d;
  --forest: #2f5d3a;
  --bark: #8a5a2b;
  --amber: #c98a2b;
  --amber-bg: #f6e6c8;
  --amber-ink: #6e4710;
  --muted: #5c6862;
  --line: rgba(16, 38, 29, .14);
  --shadow: 0 18px 50px rgba(15, 31, 24, .12);
  --radius: 22px;
  --container: 1180px;
  --header-bg: #10261d;
  --on-header: #f3f1e9;
  --focus: #2f5d3a;
  --tile-filter: none;
  color-scheme: light;
}
/* Dark: follows the OS unless the user pinned Light; a pinned Dark is data-theme="dark". */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --ink: #ece9dd; --ink-soft: #cfd6c8; --paper: #0e1511; --paper-deep: #16211b; --surface: #17231c;
    --forest: #8cc59a; --bark: #d8b193; --amber: #e0a345; --amber-bg: #3a2c12; --amber-ink: #eab865;
    --muted: #a3ada6; --line: rgba(236, 233, 221, .16); --shadow: 0 18px 50px rgba(0, 0, 0, .5);
    --header-bg: #0a100c; --on-header: #ece9dd; --focus: #d8f36b;
    --tile-filter: invert(1) hue-rotate(180deg) brightness(.85) contrast(.9);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --ink: #ece9dd; --ink-soft: #cfd6c8; --paper: #0e1511; --paper-deep: #16211b; --surface: #17231c;
  --forest: #8cc59a; --bark: #d8b193; --amber: #e0a345; --amber-bg: #3a2c12; --amber-ink: #eab865;
  --muted: #a3ada6; --line: rgba(236, 233, 221, .16); --shadow: 0 18px 50px rgba(0, 0, 0, .5);
  --header-bg: #0a100c; --on-header: #ece9dd; --focus: #d8f36b;
  --tile-filter: invert(1) hue-rotate(180deg) brightness(.85) contrast(.9);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; }
body { margin: 0; background: var(--paper); color: var(--ink); line-height: 1.6;
  font-family: Barlow, ui-sans-serif, system-ui, "Segoe UI", sans-serif; text-rendering: optimizeLegibility; overflow-x: hidden; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
img, svg { display: block; max-width: 100%; }
h1, h2, h3 { font-family: "Barlow Semi Condensed", Barlow, sans-serif; font-weight: 700; line-height: 1.12; margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: clamp(2.3rem, 7vw, 4.2rem); }
h2 { font-size: clamp(1.7rem, 4.5vw, 2.6rem); }
h3 { font-size: 1.3rem; }
p { margin: 0 0 1em; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 6px; }
.container { width: min(calc(100% - 32px), var(--container)); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; }
.eyebrow { text-transform: uppercase; letter-spacing: .12em; font-weight: 700; font-size: .85rem; color: var(--forest); margin-bottom: .6rem; }
.muted { color: var(--muted); }

/* header */
.site-header { background: var(--header-bg); color: var(--on-header); position: sticky; top: 0; z-index: 1000; }
.header-row { display: flex; align-items: center; justify-content: space-between; min-height: 64px; gap: 12px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-family: "Barlow Semi Condensed", sans-serif; font-weight: 700; font-size: 1.3rem; min-height: 44px; }
.brand img { width: 38px; height: 38px; border-radius: 10px; }
.brand b { color: #d8f36b; font-weight: 700; }
.nav { display: flex; align-items: center; gap: 6px; }
.nav a:not(.btn) { text-decoration: none; padding: 10px 14px; border-radius: 999px; min-height: 44px; display: inline-flex; align-items: center; font-weight: 600; }
.nav a:not(.btn):hover { background: rgba(255,255,255,.1); }
.menu-toggle { display: none; background: transparent; border: 1.5px solid rgba(255,255,255,.35); color: inherit; border-radius: 12px; width: 46px; height: 46px; cursor: pointer; align-items: center; justify-content: center; }
.theme-switch { display: inline-flex; background: rgba(255,255,255,.1); border-radius: 999px; padding: 3px; }
.theme-switch button { background: transparent; border: 0; border-radius: 999px; padding: 0 12px; min-height: 40px; min-width: 40px; cursor: pointer; font-weight: 600; font-size: .9rem; color: inherit; }
.theme-switch button[aria-pressed="true"] { background: #d8f36b; color: #10261d; }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 24px; border-radius: 999px; border: 2px solid transparent;
  font-weight: 700; font-size: 1.05rem; text-decoration: none; cursor: pointer; background: var(--lime); color: var(--lime-ink); transition: transform .15s, box-shadow .15s; }
.btn:hover { transform: translateY(-1px); box-shadow: 0 8px 20px rgba(0,0,0,.18); }
.btn-ghost { background: transparent; border-color: var(--line); color: var(--ink); }
.btn-ghost:hover { box-shadow: none; border-color: var(--ink); }
.btn-dark { background: var(--ink); color: var(--paper); }
.btn-block { width: 100%; }

/* hero */
.hero { padding: 40px 0 28px; background: radial-gradient(900px 400px at 85% -10%, rgba(216,243,107,.35), transparent 70%), var(--paper); }
.hero-grid { display: grid; gap: 28px; grid-template-columns: 1fr; align-items: center; }
.hero p.lead { font-size: 1.25rem; color: var(--muted); max-width: 40ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 8px; }
.hero h1 em { font-style: normal; background: var(--lime); color: var(--lime-ink); padding: 0 .2em; border-radius: .2em; box-decoration-break: clone; -webkit-box-decoration-break: clone; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.stat { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 14px; }
.stat b { display: block; font-family: "Barlow Semi Condensed", sans-serif; font-size: 2rem; line-height: 1; }
.stat span { color: var(--muted); font-size: .92rem; }

/* map */
.section { padding: 44px 0; }
.section-alt { background: var(--paper-deep); }
.section-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 12px; margin-bottom: 18px; }
.section-head h2 { margin: 0; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { background: var(--surface); border: 1.5px solid var(--line); border-radius: 999px; padding: 0 16px; min-height: 44px; cursor: pointer; font-weight: 600; }
.chip[aria-pressed="true"] { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.map-wrap { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow); position: relative; }
#map, #mini-map, #pick-map { width: 100%; height: 380px; background: var(--paper-deep); z-index: 1; }
#mini-map, #pick-map { height: 260px; }
.leaflet-tile-pane { filter: var(--tile-filter); }
.pin { width: 30px; height: 30px; border-radius: 50% 50% 50% 0; transform: rotate(-45deg); border: 3px solid #fff; box-shadow: 0 3px 8px rgba(0,0,0,.4); }
.pin.odvoz { background: #5e9a2f; } .pin.pokaceni { background: #c98a2b; }
.pin.arborist { box-shadow: 0 0 0 3px #10261d, 0 3px 8px rgba(0,0,0,.4); }
.legend { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 10px; color: var(--muted); font-size: .95rem; }
.legend i { display: inline-block; width: 12px; height: 12px; border-radius: 50%; margin-right: 6px; }
.leaflet-popup-content a { color: #10261d; font-weight: 700; }

/* cards */
.cards { display: grid; gap: 18px; grid-template-columns: 1fr; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column;
  text-decoration: none; transition: transform .15s, box-shadow .15s; }
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.card-img { aspect-ratio: 16/10; background: var(--paper-deep); position: relative; }
.card-img svg { width: 100%; height: 100%; }
.card-body { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.card-body h3 { margin: 0; }
.meta { color: var(--muted); display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: .98rem; }
.badge { display: inline-flex; align-items: center; min-height: 28px; padding: 0 12px; border-radius: 999px; font-weight: 700; font-size: .85rem; }
.badge.odvoz { background: var(--lime); color: var(--lime-ink); }
.badge.pokaceni { background: var(--amber-bg); color: var(--amber-ink); }
.badge.arborist { background: var(--ink); color: var(--paper); }
.card-img .badges { position: absolute; left: 12px; top: 12px; display: flex; gap: 6px; flex-wrap: wrap; }
.empty { padding: 30px; text-align: center; color: var(--muted); border: 2px dashed var(--line); border-radius: var(--radius); }

/* steps */
.steps { display: grid; gap: 16px; grid-template-columns: 1fr; counter-reset: s; }
.step { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.step::before { counter-increment: s; content: counter(s); display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--lime); color: var(--lime-ink); font-weight: 700; font-size: 1.3rem; font-family: "Barlow Semi Condensed", sans-serif; margin-bottom: 12px; }
.step p { margin: 0; color: var(--muted); }

.band { background: #1a382b; color: #f3f1e9; border-radius: var(--radius); padding: 28px; display: grid; gap: 14px; }
.band h2, .band h3 { margin: 0; }
.band p { margin: 0; color: #cfd6c8; }
.band a.link { color: #d8f36b; font-weight: 700; }
.band .btn { align-self: start; }

/* notices */
.notice { border-radius: 16px; padding: 14px 16px; background: var(--amber-bg); color: var(--amber-ink); border: 1px solid rgba(201,138,43,.4); }

/* detail */
.crumbs { padding: 12px 0 0; }
.crumbs a { display: inline-flex; align-items: center; min-height: 44px; font-weight: 600; }
.detail { display: grid; gap: 24px; grid-template-columns: 1fr; padding: 8px 0 44px; }
.gallery { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); aspect-ratio: 16/10; background: var(--paper-deep); margin-bottom: 18px; }
.gallery svg { width: 100%; height: 100%; }
.facts { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 18px 0; }
.fact { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 12px 14px; }
.fact span { display: block; color: var(--muted); font-size: .88rem; }
.fact b { font-size: 1.1rem; }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; margin-bottom: 16px; }
.contact-reveal { font-size: 1.3rem; font-weight: 700; margin: 8px 0 0; }
.report { display: inline-flex; align-items: center; min-height: 44px; color: var(--muted); }

/* form */
.form { display: grid; gap: 18px; max-width: 720px; }
.field label, .field legend { display: block; font-weight: 700; margin-bottom: 6px; padding: 0; }
.field .hint { color: var(--muted); font-size: .92rem; margin-top: 4px; }
input[type=text], input[type=tel], input[type=date], input[type=email], input[type=search], input[type=password], select, textarea {
  width: 100%; min-height: 48px; padding: 10px 14px; background: var(--surface); border: 1.5px solid var(--line); border-radius: 14px; }
textarea { min-height: 96px; resize: vertical; }
fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
.row2 { display: grid; gap: 14px; grid-template-columns: 1fr; }
.choice { display: grid; gap: 10px; grid-template-columns: 1fr; }
.choice label { display: flex; gap: 12px; align-items: flex-start; border: 1.5px solid var(--line); background: var(--surface); border-radius: 16px; padding: 12px 14px; cursor: pointer; min-height: 48px; margin: 0; font-weight: 600; }
.choice label small { display: block; font-weight: 400; color: var(--muted); }
.choice input { width: 22px; height: 22px; margin-top: 2px; accent-color: var(--forest); flex: none; }
.choice label:has(input:checked) { border-color: var(--forest); box-shadow: 0 0 0 2px var(--forest) inset; }
.check { display: flex; gap: 12px; align-items: flex-start; min-height: 44px; font-weight: 400 !important; }
.check input { width: 22px; height: 22px; margin-top: 3px; accent-color: var(--forest); flex: none; }
.drop { display: grid; place-items: center; gap: 4px; text-align: center; border: 2px dashed var(--line); border-radius: 18px; padding: 24px 16px; cursor: pointer; background: var(--surface); min-height: 120px; position: relative; }
.drop:hover { border-color: var(--forest); }
.drop input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.drop img { max-height: 200px; border-radius: 12px; }
.hp { position: absolute; left: -9999px; }

/* footer */
.site-footer { background: var(--header-bg); color: var(--on-header); padding: 34px 0; margin-top: 20px; }
.site-footer .cols { display: grid; gap: 18px; grid-template-columns: 1fr; }
.site-footer a { display: inline-flex; align-items: center; min-height: 40px; }
.site-footer .small { color: #a3ada6; font-size: .9rem; }
.site-footer h3 { font-size: 1.05rem; margin-bottom: .2em; }

@media (min-width: 720px) {
  .cards { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(3, 1fr); }
  .row2 { grid-template-columns: 1fr 1fr; }
  .choice { grid-template-columns: 1fr 1fr; }
  .site-footer .cols { grid-template-columns: 2fr 1fr 1fr; }
  .band { grid-template-columns: 1fr auto; align-items: center; padding: 34px; }
  #map { height: 480px; }
}
@media (min-width: 1000px) {
  .cards { grid-template-columns: repeat(3, 1fr); }
  .hero { padding: 64px 0 44px; }
  .hero-grid { grid-template-columns: 1.3fr 1fr; gap: 48px; }
  .detail { grid-template-columns: 1.4fr 1fr; gap: 36px; }
  .detail aside { position: sticky; top: 90px; align-self: start; }
}
@media (max-width: 860px) {
  .menu-toggle { display: inline-flex; }
  .nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--header-bg); flex-direction: column; align-items: stretch; padding: 12px 16px 18px; border-top: 1px solid rgba(255,255,255,.12); }
  .nav.open { display: flex; }
  .nav a:not(.btn) { padding: 12px 14px; }
  .theme-switch { align-self: flex-start; margin-top: 8px; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }
.leaflet-bar a, .leaflet-touch .leaflet-bar a { width: 40px !important; height: 40px !important; line-height: 40px !important; }
[hidden] { display: none !important; }

/* ---- MVP additions ---- */
.skip-link { position: absolute; left: 8px; top: -60px; z-index: 2000; background: var(--lime); color: var(--lime-ink); padding: 10px 16px; border-radius: 10px; font-weight: 700; }
.skip-link:focus { top: 8px; }
.pt0 { padding-top: 0; } .pb30 { padding-bottom: 30px; } .mt10 { margin-top: 10px; } .mt30 { margin-top: 30px; }
.mb8 { margin-bottom: 8px; } .mb10 { margin-bottom: 10px; }
.h-md { font-size: clamp(2rem, 5vw, 3rem); }
.h-sm { font-size: 1.5rem; }
.lead-narrow { max-width: 56ch; }
.normal { font-weight: 400; }
.note { margin: 12px 0 0; font-size: .92rem; }
.prewrap { white-space: pre-wrap; overflow-wrap: anywhere; }
.narrow { max-width: 720px; }
.accent { color: #d8f36b; }
.on-dark { color: var(--lime); }
.inline { display: inline; margin: 0; }
.linklike { background: none; border: 0; padding: 0; color: inherit; font: inherit; text-decoration: underline; cursor: pointer; min-height: 40px; }
.stack > * + * { margin-top: .5rem; }
.gallery img { width: 100%; height: 100%; object-fit: cover; display: block; }
.card-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.gallery-thumbs { display: flex; gap: 8px; flex-wrap: wrap; margin: -6px 0 16px; }
.gallery-thumbs img { width: 96px; height: 64px; object-fit: cover; border-radius: 10px; border: 1px solid var(--line); display: block; }
.alert { border-radius: 14px; padding: 12px 16px; margin: 0 0 14px; border: 1px solid var(--line); }
.alert-error { background: #fde8e6; color: #7a1a12; border-color: #e8b4ae; }
.alert-ok { background: #e6f4dc; color: #1f4a14; border-color: #b8d9a6; }
:root[data-theme="dark"] .alert-error { background: #3a1a17; color: #f1b8b1; border-color: #6b2f29; }
:root[data-theme="dark"] .alert-ok { background: #1b3216; color: #b9e3a8; border-color: #35592b; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .alert-error { background: #3a1a17; color: #f1b8b1; border-color: #6b2f29; }
  :root:not([data-theme="light"]) .alert-ok { background: #1b3216; color: #b9e3a8; border-color: #35592b; }
}
.field-error { color: #b3261e; margin: 4px 0 0; font-weight: 600; }
:root[data-theme="dark"] .field-error { color: #f1a49d; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .field-error { color: #f1a49d; } }
.filters { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 14px; align-items: end; }
.filters select, .filters input[type=search], .filters input[type=text] { min-height: 44px; min-width: 200px; width: auto; flex: 1 1 200px; }
.filters label { display: grid; gap: 4px; font-weight: 600; }
.thumbs { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 10px; }
.thumb { display: grid; gap: 4px; font-size: .9rem; }
.thumb img { width: 120px; height: 80px; object-fit: cover; border-radius: 10px; border: 1px solid var(--line); }
.previews { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 8px; }
.previews img { width: 96px; height: 64px; object-fit: cover; border-radius: 10px; border: 1px solid var(--line); }
.secret-link { display: flex; gap: 8px; flex-wrap: wrap; margin: 12px 0; }
.secret-link input { flex: 1 1 260px; min-height: 44px; }
.actions { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-top: 12px; }
.actions form { margin: 0; }
.inline-form { display: flex; gap: 8px; flex-wrap: wrap; }
.inline-form input { min-height: 44px; min-width: 200px; }
.btn-danger { background: #b3261e; color: #fff; }
.btn-danger:hover { background: #8f1e18; }
.danger-zone { margin-top: 24px; }
.status p { margin: 0; }
.panel.success { border-color: #b8d9a6; }
.queue-item .gallery-thumbs { margin: 8px 0; }
.legal ul { padding-left: 1.2rem; }
.legal li { margin-bottom: .4rem; }
.contact-reveal a { text-decoration: underline; }
.report-form { margin-top: 10px; }
.report-form .btn { justify-self: start; }
details summary { cursor: pointer; }

/* logs */
.log-table { display: grid; gap: 4px; font-size: .88rem; }
.log-row { display: grid; grid-template-columns: 8.5em 6.5em 9em 1fr; gap: 8px; padding: 6px 10px; background: var(--surface); border: 1px solid var(--line); border-radius: 8px; }
.log-row .log-msg { overflow-wrap: anywhere; }
.log-row pre { grid-column: 1 / -1; margin: 4px 0 0; overflow: auto; font-size: .8rem; }
.log-warning { border-left: 4px solid var(--amber); }
.log-error, .log-fatal { border-left: 4px solid #b3261e; }
.log-tail { background: var(--surface); border: 1px solid var(--line); padding: 12px; border-radius: 10px; overflow: auto; max-height: 420px; font-size: .8rem; }
.log-files { padding-left: 1.2rem; }
.log-files li { margin-bottom: 6px; display: flex; gap: 10px; flex-wrap: wrap; }
@media (max-width: 720px) { .log-row { grid-template-columns: 1fr 1fr; } .log-row .log-msg { grid-column: 1 / -1; } }
