/* Ahoj Radime — cestovní deník obytňákem */
:root {
  --paper: #f6f1e7;
  --paper-2: #efe7d8;
  --ink: #1f2a2e;
  --ink-soft: #5b6662;
  --sea: #1d5c6b;
  --sea-deep: #123f4a;
  --sun: #e08a3c;
  --line: #d9cdb8;
  --card: #fffdf8;
  --radius: 14px;
  --shadow: 0 10px 30px -18px rgba(18, 63, 74, .45);
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  font-family: var(--sans);
  background: var(--paper);
  color: var(--ink);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--sea); }
img { max-width: 100%; display: block; }

.wrap { width: min(1100px, 100% - 2.5rem); margin-inline: auto; }

/* ---------- horní lišta ---------- */
.topbar {
  position: sticky; top: 0; z-index: 10;
  background: rgba(246, 241, 231, .88);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.topbar .wrap { display: flex; align-items: center; justify-content: space-between; height: 62px; }
.brand { font-family: var(--serif); font-size: 1.25rem; font-weight: 700; color: var(--ink); text-decoration: none; }
.brand { display: flex; align-items: center; gap: .6rem; }
.brand-logo { width: 52px; height: 52px; display: block; flex: none; filter: drop-shadow(0 1px 2px rgba(0,0,0,.15)); }
.brand span span { color: var(--sun); }
.nav { display: flex; gap: 1.3rem; align-items: center; }
.nav a.active { color: var(--sea); font-weight: 600; }
.menu-btn { display: none; background: none; border: 1px solid var(--line); border-radius: 8px; font-size: 1.3rem; line-height: 1; padding: .35rem .6rem; color: var(--ink); cursor: pointer; }

/* rozbalovací menu Šibenik */
.dropdown { position: relative; }
.dropdown summary {
  list-style: none; cursor: pointer; white-space: nowrap;
  background: var(--sun); color: #fff; font-weight: 600; font-size: .9rem;
  padding: .4rem .9rem; border-radius: 99px;
}
.dropdown summary::-webkit-details-marker { display: none; }
.dropdown summary::after { content: " ▾"; }
.dropdown[open] summary::after { content: " ▴"; }
.dropdown summary:hover { background: #c9742a; }
.dropdown-menu {
  position: absolute; top: calc(100% + .5rem); left: 0; min-width: 210px; z-index: 20;
  background: var(--card); border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow);
  padding: .4rem; display: grid;
}
.dropdown-menu a { padding: .5rem .75rem; border-radius: 8px; color: var(--ink); }
.dropdown-menu a:hover { background: var(--paper-2); color: var(--sea); }
.nav a { color: var(--ink-soft); text-decoration: none; font-size: .95rem; }
.nav a:hover { color: var(--sea); }

/* ---------- úvod ---------- */
.hero {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(180deg, #f3d9b4 0%, #e9c79b 38%, #2b6f7d 38.2%, var(--sea-deep) 100%);
  color: #fff;
}
.hero .wrap { padding: 7rem 0 5.5rem; position: relative; z-index: 1; }
.hero .eyebrow {
  display: inline-block; font-size: .8rem; letter-spacing: .14em; text-transform: uppercase;
  color: var(--sea-deep); background: rgba(255,255,255,.7); padding: .3rem .75rem; border-radius: 99px;
}
.hero h1 {
  font-family: var(--serif);
  font-size: clamp(2.8rem, 8vw, 5.6rem);
  line-height: 1; letter-spacing: -.02em;
  margin: 1.6rem 0 1rem;
  text-shadow: 0 2px 24px rgba(0,0,0,.25);
}
.hero p { max-width: 34rem; font-size: clamp(1.05rem, 2.4vw, 1.3rem); color: rgba(255,255,255,.9); }
.hero-logo {
  position: absolute; z-index: 1;
  right: 7%; top: 2.2rem;
  width: clamp(120px, 24vw, 280px); height: auto;
  filter: drop-shadow(0 6px 18px rgba(0,0,0,.25));
}
@media (max-width: 700px) { .hero-logo { width: 110px; top: 1.2rem; right: 1rem; } }
.hero:has(.hero-billboard) .wrap { padding-top: .6rem; }
.hero-billboard { display: block; width: clamp(190px, 34vw, 460px); margin-bottom: 1.6rem; }
.hero-billboard img {
  display: block; width: 100%; height: auto;
  border: 5px solid #fff; border-radius: 14px;
  box-shadow: 0 10px 28px rgba(0,0,0,.28);
  transform: rotate(-2deg);
}
@media (max-width: 700px) { .hero:has(.hero-billboard) .wrap { padding-top: 0; } .hero-billboard { width: calc(100% - 135px); max-width: 260px; } .hero-billboard img { border-width: 3px; border-radius: 10px; } }
.road {
  position: absolute; left: 0; right: 0; bottom: 0; height: 46px;
  background: repeating-linear-gradient(90deg, rgba(255,255,255,.55) 0 28px, transparent 28px 56px) center/100% 3px no-repeat,
              #1a2b30;
}
.van { position: absolute; bottom: 26px; left: 8%; width: clamp(96px, 14vw, 150px); height: auto; z-index: 2; animation: drive 18s linear infinite; filter: drop-shadow(0 4px 3px rgba(0,0,0,.25)); }
@keyframes drive { from { left: -16%; } to { left: 104%; } }
@media (prefers-reduced-motion: reduce) { .van { animation: none; } }

/* ---------- sekce ---------- */
section { padding: 4.5rem 0; scroll-margin-top: 62px; }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 1rem; margin-bottom: 2rem; flex-wrap: wrap; }
.section-head h2 { font-family: var(--serif); font-size: clamp(1.8rem, 4vw, 2.5rem); line-height: 1.1; }
.section-head p { color: var(--ink-soft); max-width: 30rem; }

/* ---------- karty cest ---------- */
.trips { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 1.5rem; }
.trip {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; text-decoration: none; color: inherit; box-shadow: var(--shadow);
  display: flex; flex-direction: column; transition: transform .2s ease;
}
.trip:hover { transform: translateY(-4px); }
.trip .cover {
  aspect-ratio: 16 / 9; display: grid; place-items: center; font-size: 3.4rem;
  background: linear-gradient(160deg, #f4d7ae, #e0a868 45%, #1d5c6b 46%, #123f4a);
}
.trip .cover img { width: 100%; height: 100%; object-fit: cover; }
.trip .body { padding: 1.2rem 1.3rem 1.4rem; display: flex; flex-direction: column; gap: .4rem; flex: 1; }
.tag {
  align-self: flex-start; font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; font-weight: 600;
  padding: .2rem .6rem; border-radius: 99px; background: #fbe6cf; color: #8a4a12;
}
.tag.done { background: #d8ebe9; color: var(--sea-deep); }
.trip h3 { font-family: var(--serif); font-size: 1.4rem; line-height: 1.2; }
.trip .meta { color: var(--ink-soft); font-size: .92rem; }
.trip .more { margin-top: auto; padding-top: .6rem; color: var(--sea); font-weight: 600; font-size: .95rem; }

/* ---------- fotky ---------- */
.alt { background: var(--paper-2); border-block: 1px solid var(--line); }
.gallery { columns: 3 260px; column-gap: 1rem; }
.gallery figure { break-inside: avoid; margin-bottom: 1rem; border-radius: 10px; overflow: hidden; background: var(--card); cursor: zoom-in; box-shadow: var(--shadow); }
.gallery figcaption { font-size: .85rem; color: var(--ink-soft); padding: .55rem .8rem; }
.empty {
  border: 2px dashed var(--line); border-radius: var(--radius); padding: 2.5rem 1.5rem;
  text-align: center; color: var(--ink-soft); background: var(--card);
}
.empty strong { display: block; font-family: var(--serif); font-size: 1.3rem; color: var(--ink); margin-bottom: .3rem; }

.lightbox {
  position: fixed; inset: 0; background: rgba(10, 20, 24, .92); display: none;
  align-items: center; justify-content: center; padding: 2rem; z-index: 50; cursor: zoom-out;
}
.lightbox.open { display: flex; }
.lightbox img { max-height: 88vh; border-radius: 8px; }

/* ---------- o nás ---------- */
.about { display: grid; grid-template-columns: 1fr 1fr; gap: 2.5rem; align-items: center; }
.about .big { font-family: var(--serif); font-size: clamp(1.4rem, 3vw, 1.9rem); line-height: 1.35; }
.about ul { list-style: none; display: grid; gap: .7rem; }
.about li { background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: .8rem 1rem; }
@media (max-width: 760px) { .about { grid-template-columns: 1fr; } }
@media (max-width: 1000px) {
  .menu-btn { display: block; }
  .nav {
    display: none; position: absolute; top: 62px; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--paper); border-bottom: 1px solid var(--line); padding: .6rem 1.25rem 1rem;
    box-shadow: var(--shadow);
  }
  .topbar.open .nav { display: flex; }
  .nav > a { padding: .7rem 0; border-bottom: 1px solid var(--line); font-size: 1rem; }
  .dropdown { padding: .6rem 0; border-bottom: 1px solid var(--line); }
  .dropdown summary { display: inline-block; }
  .dropdown-menu { position: static; box-shadow: none; border: 0; background: none; padding: .4rem 0 0 .6rem; }
}

/* ---------- stránka cesty ---------- */
.trip-hero { background: linear-gradient(180deg, #f3d9b4, #e9c79b); padding: 4rem 0 3rem; border-bottom: 1px solid var(--line); }
.trip-hero .back { text-decoration: none; font-size: .95rem; }
.trip-hero h1 { font-family: var(--serif); font-size: clamp(2.2rem, 6vw, 4rem); line-height: 1.05; margin: 1rem 0 .6rem; }
.trip-hero .meta { color: var(--ink-soft); display: flex; gap: 1.2rem; flex-wrap: wrap; }
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 1rem; margin-top: 2rem; }
.fact { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 1rem 1.1rem; }
.fact b { display: block; font-size: .75rem; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-soft); font-weight: 600; }
.fact span { font-family: var(--serif); font-size: 1.15rem; }

.pdf-box { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.pdf-bar { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 1rem 1.2rem; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.pdf-bar strong { font-family: var(--serif); font-size: 1.15rem; }
.btn {
  display: inline-block; background: var(--sea); color: #fff; text-decoration: none; font-weight: 600;
  padding: .6rem 1.1rem; border-radius: 99px; font-size: .95rem;
}
.btn:hover { background: var(--sea-deep); }
.pdf-box iframe { width: 100%; height: 80vh; border: 0; display: block; background: #e8e2d6; }

/* ---------- místa k vidění ---------- */
.lead { font-family: var(--serif); font-size: clamp(1.15rem, 2.4vw, 1.4rem); line-height: 1.45; max-width: 46rem; }
.notice {
  background: #fbe6cf; border: 1px solid #f0c99c; color: #6b3a0e; border-radius: 12px;
  padding: 1rem 1.2rem; margin-top: 1.5rem; font-size: .95rem;
}
.notice b { color: #4f2a08; }
.cat-title { font-family: var(--serif); font-size: 1.5rem; margin: 2.8rem 0 1.1rem; display: flex; gap: .6rem; align-items: center; }
.places { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 1.1rem; }
.place { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 1.15rem 1.25rem 1.2rem; display: flex; flex-direction: column; gap: .45rem; }
.place h4 { font-family: var(--serif); font-size: 1.2rem; line-height: 1.25; }
.place p { color: var(--ink-soft); font-size: .95rem; }
.place .info { font-size: .85rem; color: var(--sea-deep); background: #e3efed; border-radius: 8px; padding: .45rem .65rem; }
.place .km { font-size: .78rem; letter-spacing: .06em; text-transform: uppercase; color: var(--sun); font-weight: 700; }
.place a.map { margin-top: auto; font-size: .9rem; font-weight: 600; text-decoration: none; padding-top: .3rem; }
.timeline { list-style: none; border-left: 3px solid var(--line); margin-left: .4rem; display: grid; gap: 1.1rem; }
.timeline li { position: relative; padding-left: 1.4rem; }
.timeline li::before { content: ""; position: absolute; left: -9px; top: .45rem; width: 15px; height: 15px; border-radius: 50%; background: var(--sun); border: 3px solid var(--paper); }
.timeline b { font-family: var(--serif); font-size: 1.15rem; display: block; }
.timeline span { color: var(--ink-soft); }

footer { padding: 2.5rem 0; color: var(--ink-soft); font-size: .9rem; text-align: center; }

/* Záložky na stránce cesty */
.trip-tabs { scroll-margin-top: 70px; background: var(--paper); border-bottom: 1px solid var(--line); }
.trip-tabs .wrap { display: flex; gap: .5rem; overflow-x: auto; padding-top: .7rem; padding-bottom: .7rem; }
.trip-tabs a { flex: none; text-decoration: none; color: var(--ink-soft); font-size: .95rem; padding: .5rem 1rem; border-radius: 999px; border: 1px solid var(--line); background: var(--card); white-space: nowrap; }
.trip-tabs a:hover { color: var(--sea); border-color: var(--sea); }
.trip-tabs a.active { background: var(--sea); border-color: var(--sea); color: #fff; }
main section[hidden] { display: none; }

/* Mapa kempů */
.camp-map-wrap { padding: 1.5rem 0 0; scroll-margin-top: 70px; }
.camp-map { height: 460px; border-radius: var(--radius); border: 1px solid var(--line); box-shadow: var(--shadow); z-index: 1; }
.camp-map-note { color: var(--ink-soft); font-size: .88rem; margin-top: .6rem; }
.camp-map-note .dot { display: inline-block; width: .8rem; height: .8rem; border-radius: 50%; vertical-align: -1px; border: 2px solid #fff; box-shadow: 0 0 0 1px var(--line); }
.dot-zima { background: #1d5c6b; }
.dot-velka-auta { background: #e08a3c; }
.dot-fkk { background: #c9971c; }
.show-on-map { align-self: flex-start; margin-top: .2rem; background: none; border: 1px solid var(--line); border-radius: 999px; padding: .3rem .8rem; font: inherit; font-size: .85rem; color: var(--sea); cursor: pointer; }
.show-on-map:hover { border-color: var(--sea); }
@media (max-width: 760px) { .camp-map { height: 340px; } }

/* fotka jako obálka cesty */
.trip .cover { position: relative; overflow: hidden; }
.trip .cover img { position: absolute; inset: 0; }
.dot-terme { background: #b0477a; }
.place .tested { align-self: flex-start; background: #d8ebe9; color: var(--sea-deep); font-size: .82rem; font-weight: 600; padding: .2rem .65rem; border-radius: 999px; }
