/* Penzion Mlýn u Dubu – vlastní styly nad Bootstrap 5 */
:root {
  --mud-blue: #0083c6;
  --mud-blue-dark: #00669a;
  --mud-forest: #2e4a36;
  --mud-forest-dark: #1f3325;
  --mud-roof: #b9532b;
  --mud-cream: #f8f5ee;
  --mud-sand: #ede6d6;
  --mud-text: #24302a;
  --bs-body-color: var(--mud-text);
  --bs-body-bg: #fff;
  --bs-link-color: var(--mud-blue-dark);
  --bs-link-color-rgb: 0, 102, 154;
  --bs-link-hover-color: var(--mud-forest);
  --bs-link-hover-color-rgb: 46, 74, 54;
  --bs-border-radius: .75rem;
  --header-h: 72px;
}

html { scroll-padding-top: calc(var(--header-h) + 1rem); }
body {
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-text-size-adjust: 100%;
}
h1, h2, h3, .font-serif {
  font-family: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  font-weight: 600;
  color: var(--mud-forest-dark);
  letter-spacing: -.01em;
}
h1 { font-size: clamp(1.9rem, 5vw, 3rem); }
h2 { font-size: clamp(1.5rem, 3.6vw, 2.15rem); }
h3 { font-size: 1.25rem; }
.lead { font-size: 1.15rem; }

.skip-link {
  position: absolute; left: -999px; top: 0; z-index: 2000;
  background: #fff; padding: .5rem 1rem;
}
.skip-link:focus { left: 1rem; top: 1rem; }

/* ---------- Navigace ---------- */
.site-header {
  background: rgba(255, 255, 255, .97);
  box-shadow: 0 1px 0 rgba(0, 0, 0, .06);
  min-height: var(--header-h);
}
@supports (backdrop-filter: blur(8px)) {
  .site-header { background: rgba(255, 255, 255, .88); backdrop-filter: blur(8px); }
}
.site-header .navbar-brand img { height: 56px; width: auto; }
.site-header .brand-text { line-height: 1.1; }
.site-header .brand-text strong { font-family: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif; font-size: 1.1rem; color: var(--mud-forest-dark); display: block; }
.site-header .brand-text small { color: #6b746f; font-size: .78rem; }
.site-header .nav-link {
  font-weight: 500; color: var(--mud-text);
  padding: .65rem .9rem !important; border-radius: .5rem;
}
.site-header .nav-link:hover { color: var(--mud-blue-dark); background: var(--mud-cream); }
.site-header .nav-link.active { color: var(--mud-blue-dark); }
.site-header .nav-link.active::after {
  content: ""; display: block; height: 2px; background: var(--mud-blue); margin-top: 2px; border-radius: 2px;
}
.navbar-toggler { border: 0; padding: .6rem; }
.navbar-toggler:focus { box-shadow: 0 0 0 .2rem rgba(0, 131, 198, .3); }
@media (max-width: 991.98px) {
  .site-header .navbar-collapse { padding: .5rem 0 1rem; }
  .site-header .nav-link { font-size: 1.1rem; padding: .85rem 1rem !important; }
  .site-header .nav-link.active::after { display: none; }
  .site-header .nav-link.active { background: var(--mud-cream); }
}

/* ---------- Tlačítka ---------- */
.btn { --bs-btn-border-radius: 2rem; font-weight: 600; padding: .7rem 1.4rem; }
.btn-primary {
  --bs-btn-bg: var(--mud-blue); --bs-btn-border-color: var(--mud-blue);
  --bs-btn-hover-bg: var(--mud-blue-dark); --bs-btn-hover-border-color: var(--mud-blue-dark);
  --bs-btn-active-bg: var(--mud-blue-dark); --bs-btn-active-border-color: var(--mud-blue-dark);
}
.btn-forest {
  --bs-btn-color: #fff; --bs-btn-bg: var(--mud-forest); --bs-btn-border-color: var(--mud-forest);
  --bs-btn-hover-color: #fff; --bs-btn-hover-bg: var(--mud-forest-dark); --bs-btn-hover-border-color: var(--mud-forest-dark);
  --bs-btn-active-color: #fff; --bs-btn-active-bg: var(--mud-forest-dark);
}

/* ---------- Hero ---------- */
.hero {
  position: relative; color: #fff;
  min-height: min(88svh, 760px);
  display: flex; align-items: flex-end;
  background: var(--mud-forest-dark);
  overflow: hidden;
}
.hero > picture img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: 33% 45%;
}
@media (max-width: 767.98px) { .hero { min-height: 76svh; } }
.hero::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,.05) 30%, rgba(15,30,20,.75) 100%);
}
.hero .container { position: relative; z-index: 1; padding-bottom: clamp(2rem, 7vw, 4.5rem); }
.hero h1 { color: #fff; text-shadow: 0 2px 16px rgba(0,0,0,.35); max-width: 16em; }
.hero p { font-size: clamp(1.05rem, 2.4vw, 1.3rem); max-width: 34em; text-shadow: 0 1px 8px rgba(0,0,0,.4); }
.hero .eyebrow {
  display: inline-block; font-size: .85rem; letter-spacing: .12em; text-transform: uppercase;
  background: rgba(255,255,255,.16); border: 1px solid rgba(255,255,255,.3);
  padding: .3rem .8rem; border-radius: 2rem; margin-bottom: 1rem;
}

.page-hero {
  position: relative; color: #fff; background: var(--mud-forest-dark);
  padding: clamp(3.5rem, 12vw, 7rem) 0 clamp(1.75rem, 5vw, 3rem);
  overflow: hidden;
}
.page-hero img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .45;
}
.page-hero .container { position: relative; }
.page-hero h1 { color: #fff; margin: 0; }
.page-hero p { margin: .5rem 0 0; opacity: .9; }
.breadcrumb { --bs-breadcrumb-divider-color: rgba(255,255,255,.6); --bs-breadcrumb-item-active-color: rgba(255,255,255,.85); margin-bottom: .5rem; font-size: .9rem; }
.breadcrumb a { color: #fff; }

/* ---------- Sekce ---------- */
.section { padding: clamp(3rem, 8vw, 5.5rem) 0; }
.section-cream { background: var(--mud-cream); }
.section-forest { background: var(--mud-forest); color: #eef3ee; }
.section-forest h2, .section-forest h3 { color: #fff; }
.kicker { color: var(--mud-roof); font-weight: 700; text-transform: uppercase; letter-spacing: .1em; font-size: .8rem; margin-bottom: .5rem; }

.feature {
  height: 100%; background: #fff; border-radius: 1rem; padding: 1.4rem;
  box-shadow: 0 1px 2px rgba(0,0,0,.04), 0 6px 20px rgba(46,74,54,.07);
}
.feature .ico {
  width: 48px; height: 48px; border-radius: 50%;
  display: grid; place-items: center; margin-bottom: .9rem;
  background: rgba(0,131,198,.1); color: var(--mud-blue-dark);
}
.feature .ico svg { width: 24px; height: 24px; }
.feature h3 { font-size: 1.1rem; margin-bottom: .35rem; }
.feature p { margin: 0; color: #4c5852; font-size: .98rem; }

.rounded-photo { border-radius: 1rem; box-shadow: 0 10px 30px rgba(0,0,0,.12); width: 100%; height: auto; }

.check-list { list-style: none; padding: 0; margin: 0; }
.check-list li { position: relative; padding: .45rem 0 .45rem 2rem; border-bottom: 1px dashed rgba(0,0,0,.08); }
.check-list li:last-child { border-bottom: 0; }
.check-list li::before {
  content: ""; position: absolute; left: 0; top: .78rem; width: 1.2rem; height: 1.2rem; border-radius: 50%;
  background: var(--mud-forest) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='white'%3E%3Cpath d='M13.5 4.5 6.5 11.5 2.5 7.5l1-1 3 3 6-6z'/%3E%3C/svg%3E") center/0.8rem no-repeat;
}
@media (min-width: 768px) { .check-list.two-col { columns: 2; column-gap: 2.5rem; } .check-list.two-col li { break-inside: avoid; } }

.info-card {
  background: #fff; border-radius: 1rem; padding: 1.5rem;
  border-top: 4px solid var(--mud-blue);
  box-shadow: 0 6px 24px rgba(0,0,0,.06);
}
.info-card h3 { font-size: 1.15rem; }

/* ---------- Ceník ---------- */
.price-table { border-radius: 1rem; overflow: hidden; box-shadow: 0 6px 24px rgba(0,0,0,.07); margin: 0; }
.price-table thead th { background: var(--mud-blue); color: #fff; font-weight: 600; border: 0; padding: 1rem; }
.price-table td, .price-table th { padding: 1rem; vertical-align: middle; }
.price-table tbody th { font-weight: 600; }
.price-table .price { font-size: 1.25rem; font-weight: 700; color: var(--mud-forest-dark); white-space: nowrap; }
/* mobil: řádky ceníku jako karty */
@media (max-width: 575.98px) {
  .price-table, .price-table tbody, .price-table tr, .price-table th, .price-table td { display: block; width: 100%; }
  .price-table thead { display: none; }
  .price-table { box-shadow: none; background: transparent; }
  .price-table tr { background: #fff; border-radius: 1rem; margin-bottom: 1rem; box-shadow: 0 6px 24px rgba(0,0,0,.07); overflow: hidden; }
  .price-table tbody th { background: var(--mud-blue); color: #fff; font-size: 1.1rem; }
  .price-table td { display: flex; justify-content: space-between; align-items: center; border: 0; border-bottom: 1px solid #eee; }
  .price-table td::before { content: attr(data-label); color: #59645e; }
  .price-table tr td:last-child { border-bottom: 0; }
}

/* ---------- Galerie ---------- */
.gallery { --bs-gutter-x: .6rem; --bs-gutter-y: .6rem; }
.gallery-item {
  display: block; position: relative; overflow: hidden; border-radius: .6rem;
  aspect-ratio: 4 / 3; background: var(--mud-sand);
}
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.gallery-item:hover img, .gallery-item:focus-visible img { transform: scale(1.05); }
.gallery-item:focus-visible { outline: 3px solid var(--mud-blue); outline-offset: 2px; }

.lightbox .modal-content { background: rgba(10, 14, 12, .97); border: 0; border-radius: 0; }
.lightbox .modal-body { position: relative; display: flex; align-items: center; justify-content: center; padding: 0; height: 100%; touch-action: pan-y; }
.lightbox img { max-width: 100%; max-height: calc(100svh - 4rem); object-fit: contain; user-select: none; }
.lightbox .lb-btn {
  position: absolute; z-index: 2; border: 0; background: rgba(255,255,255,.12); color: #fff;
  width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center;
}
.lightbox .lb-btn:hover { background: rgba(255,255,255,.25); }
.lightbox .lb-btn svg { width: 24px; height: 24px; }
.lightbox .lb-prev { left: .75rem; top: 50%; transform: translateY(-50%); }
.lightbox .lb-next { right: .75rem; top: 50%; transform: translateY(-50%); }
.lightbox .lb-close { right: .75rem; top: .75rem; }
.lightbox .lb-count { position: absolute; left: 0; right: 0; bottom: .75rem; text-align: center; color: rgba(255,255,255,.75); font-size: .9rem; }
@media (max-width: 575.98px) { .lightbox .lb-prev, .lightbox .lb-next { top: auto; bottom: .5rem; transform: none; } }

/* ---------- Carousel (dřívější úvodní fotky) ---------- */
.strip-carousel { border-radius: 1rem; overflow: hidden; box-shadow: 0 10px 30px rgba(0,0,0,.12); }
.strip-carousel img { aspect-ratio: 12 / 5; object-fit: cover; width: 100%; height: auto; }

/* ---------- Kontakty, mapa ---------- */
.contact-line { display: flex; gap: .9rem; align-items: flex-start; padding: .75rem 0; }
.contact-line svg { flex: 0 0 22px; width: 22px; height: 22px; color: var(--mud-blue); margin-top: .2rem; }
.contact-line a { font-weight: 600; text-decoration: none; }
.map-wrap { border-radius: 1rem; overflow: hidden; box-shadow: 0 6px 24px rgba(0,0,0,.08); background: var(--mud-sand); aspect-ratio: 4 / 3; }
.map-wrap iframe { width: 100%; height: 100%; border: 0; display: block; }
@media (min-width: 992px) { .map-wrap { aspect-ratio: auto; height: 420px; } }

.links-list a { display: block; padding: 1rem 1.25rem; background: #fff; border-radius: .75rem; margin-bottom: .75rem; text-decoration: none; box-shadow: 0 2px 10px rgba(0,0,0,.05); }
.links-list a:hover { box-shadow: 0 6px 18px rgba(0,0,0,.1); }
.links-list small { display: block; color: #5d6862; }

/* ---------- Patička ---------- */
.site-footer { background: var(--mud-forest-dark); color: #cfd9d1; padding: 3.5rem 0 1.5rem; font-size: .97rem; }
.site-footer h2 { color: #fff; font-size: 1.15rem; }
.site-footer a { color: #fff; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.site-footer .footer-logo { width: 96px; height: auto; border-radius: .5rem; background: #fff; padding: 6px; }
.site-footer .copy { border-top: 1px solid rgba(255,255,255,.12); margin-top: 2.5rem; padding-top: 1.25rem; font-size: .85rem; color: #9fb0a4; }

/* ---------- Mobilní lišta Zavolat / E-mail ---------- */
.mobile-cta { display: none; }
@media (max-width: 767.98px) {
  .mobile-cta {
    display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 1030;
    background: #fff; box-shadow: 0 -4px 20px rgba(0,0,0,.12);
    padding: .5rem .75rem calc(.5rem + env(safe-area-inset-bottom)); gap: .5rem;
  }
  .mobile-cta a { flex: 1; display: flex; align-items: center; justify-content: center; gap: .45rem; padding: .7rem; border-radius: 2rem; font-weight: 600; text-decoration: none; }
  .mobile-cta svg { width: 20px; height: 20px; }
  .mobile-cta .call { background: var(--mud-blue); color: #fff; }
  .mobile-cta .mail { background: var(--mud-cream); color: var(--mud-forest-dark); }
  body { padding-bottom: calc(68px + env(safe-area-inset-bottom)); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}
