/* ============================================================
   Levné ubytování Hradec Králové — styl
   Mobile-first, bez závislostí.
   ============================================================ */

:root {
  --teal: #0f766e;
  --teal-dark: #115e59;
  --teal-700: #0d6b63;
  --ink: #1f2933;
  --muted: #5b6770;
  --line: #e4e8eb;
  --bg: #ffffff;
  --bg-soft: #f5f7f8;
  --yellow: #f4b400;
  --green: #2e9e5b;
  --busy: #e2574c;
  --radius: 14px;
  --shadow: 0 6px 24px rgba(15, 23, 42, .08);
  --shadow-lg: 0 18px 50px rgba(15, 23, 42, .16);
  --maxw: 1120px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

a { color: var(--teal); text-decoration: none; }

.container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 20px;
}

h1, h2, h3 { line-height: 1.2; margin: 0 0 .4em; }

.section-title { font-size: clamp(1.5rem, 4vw, 2.1rem); font-weight: 800; }
.section-sub { color: var(--muted); max-width: 100ch; margin: 0 0 1.8rem; }

.brand-logo {
    max-width: 6rem;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  font-weight: 600;
  font-size: 1rem;
  padding: .85rem 1.4rem;
  border-radius: 999px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform .12s ease, box-shadow .12s ease, background .12s ease;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--teal); color: #fff; box-shadow: var(--shadow); }
.btn-primary:hover { background: var(--teal-dark); }
.btn-ghost { background: transparent; color: var(--teal); border-color: var(--teal); }
.btn-ghost:hover { background: rgba(15,118,110,.07); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 40;
  background: rgba(255,255,255,.92);
  backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.brand { display: flex; align-items: center; gap: .6rem; color: var(--ink); font-weight: 600; }
.brand-mark { width: 26px; height: 26px; border-radius: 7px;
  background: linear-gradient(135deg, var(--yellow), var(--green)); display: inline-block; }
.brand-text { font-size: 1.02rem; }
.brand-text strong { color: var(--teal); }
.nav { display: flex; align-items: center; gap: 1.4rem; }
.nav a { color: var(--ink); font-weight: 500; }
.nav a:hover { color: var(--teal); }
.nav-phone { font-weight: 600 !important; color: var(--teal) !important; }
.nav-toggle { display: none; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--ink); margin: 5px 0; transition: .2s; }

/* ---------- Hero ---------- */
.hero { background: linear-gradient(180deg, var(--bg-soft), #fff); padding: clamp(2.5rem, 6vw, 4.5rem) 0; }
.hero-inner { display: grid; grid-template-columns: 1.1fr .9fr; gap: 3rem; align-items: center; }
.eyebrow { text-transform: uppercase; letter-spacing: .12em; font-size: .8rem; font-weight: 700; color: var(--teal); margin: 0 0 .5rem; }
.hero h1 { font-size: clamp(1.9rem, 5vw, 3rem); font-weight: 800; letter-spacing: -.02em; }
.lead { font-size: 1.12rem; color: var(--muted); max-width: 52ch; }
.hero-cta { display: flex; flex-wrap: wrap; gap: .8rem; margin: 1.6rem 0 1.4rem; }
.hero-chips { list-style: none; display: flex; flex-wrap: wrap; gap: .6rem .9rem; padding: 0; margin: 0; }
.hero-chips li { background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: .4rem .85rem; font-size: .9rem; font-weight: 500; box-shadow: 0 1px 2px rgba(0,0,0,.03); }
.hero-media img { border-radius: 18px; box-shadow: var(--shadow-lg); aspect-ratio: 4/3; object-fit: cover; width: 100%; }

/* ---------- Benefits ---------- */
.benefits { padding: 2.5rem 0; }
.benefit-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.2rem; }
.benefit { background: var(--bg-soft); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.4rem; }
.benefit .bi { font-size: 1.7rem; }
.benefit h3 { font-size: 1.05rem; margin: .5rem 0 .3rem; }
.benefit p { margin: 0; color: var(--muted); font-size: .95rem; }

/* ---------- Apartments ---------- */
.apartments { padding: 3rem 0; }
.apt-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 2rem; }
.apt-card { border: 1px solid var(--line); border-radius: 18px; overflow: hidden; background: #fff; box-shadow: var(--shadow); display: flex; flex-direction: column; }
.apt-cover { position: relative; aspect-ratio: 16/10; overflow: hidden; }
.apt-cover img { width: 100%; height: 100%; object-fit: cover; cursor: pointer; transition: transform .4s ease; }
.apt-cover:hover img { transform: scale(1.04); }
.apt-badge { position: absolute; top: 12px; left: 12px; background: #fff; color: var(--ink); font-weight: 700; font-size: .82rem; padding: .35rem .7rem; border-radius: 999px; box-shadow: 0 2px 8px rgba(0,0,0,.12); }
.apt-badge::before { content: ""; display: inline-block; width: 9px; height: 9px; border-radius: 50%; margin-right: .4rem; vertical-align: middle; }
.apt-badge.zluty::before { background: var(--yellow); }
.apt-badge.zeleny::before { background: var(--green); }
.apt-body { padding: 1.3rem 1.4rem 1.5rem; display: flex; flex-direction: column; gap: .9rem; flex: 1; }
.apt-body h3 { font-size: 1.3rem; margin: 0; }
.apt-specs { display: flex; flex-wrap: wrap; gap: .5rem; list-style: none; padding: 0; margin: 0; }
.apt-specs li { background: var(--bg-soft); border-radius: 8px; padding: .3rem .7rem; font-size: .88rem; font-weight: 500; }
.apt-price { background: linear-gradient(135deg, #f0faf6, #eef6ff); border: 1px solid var(--line); border-radius: 12px; padding: .8rem 1rem; }
.apt-price-main { display: flex; align-items: baseline; gap: .4rem; }
.apt-price-from { color: var(--muted); font-size: .9rem; }
.apt-price-main strong { font-size: 1.7rem; font-weight: 800; color: var(--teal); letter-spacing: -.01em; }
.apt-price-unit { color: var(--muted); font-size: .95rem; }
.apt-price-note { color: var(--muted); font-size: .82rem; margin-top: .25rem; }
.apt-desc { color: var(--muted); margin: 0; font-size: .96rem; }
.apt-thumbs { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; }
.apt-thumbs img { aspect-ratio: 1; object-fit: cover; border-radius: 8px; cursor: pointer; }
.apt-thumbs .more { position: relative; }
.apt-thumbs .more span { position: absolute; inset: 0; background: rgba(15,23,42,.55); color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 700; border-radius: 8px; cursor: pointer; }
.apt-card .btn { align-self: flex-start; margin-top: auto; }

/* ---------- Availability / calendar ---------- */
.availability { padding: 3rem 0; background: var(--bg-soft); }
.cal-controls { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem; margin-bottom: 1rem; }
.cal-controls-left { display: flex; align-items: center; gap: .6rem; flex-wrap: wrap; }
.cal-controls label { font-weight: 600; }
.cal-controls select { padding: .55rem .8rem; border-radius: 10px; border: 1px solid var(--line); font: inherit; background: #fff; }
.cal-nav { display: flex; align-items: center; gap: .8rem; margin-left: auto; }
.cal-nav button { width: 38px; height: 38px; border-radius: 10px; border: 1px solid var(--line); background: #fff; font-size: 1.3rem; cursor: pointer; line-height: 1; }
.cal-nav button:hover { background: #fff; border-color: var(--teal); color: var(--teal); }
#calMonthLabel { font-weight: 700; min-width: 9.5rem; text-align: center; text-transform: capitalize; }
.cal-legend { display: flex; flex-wrap: wrap; gap: 1.2rem; margin: .4rem 0 1rem; font-size: .9rem; color: var(--muted); }
.cal-legend .dot { display: inline-block; width: 12px; height: 12px; border-radius: 50%; margin-right: .4rem; vertical-align: middle; }
.dot.free { background: #cfe9d8; border: 1px solid var(--green); }
.dot.busy { background: var(--busy); }
.dot.turn { background: linear-gradient(to bottom right, var(--busy) 0 50%, #cfe9d8 50% 100%); border: 1px solid var(--green); }
.dot.sel { background: var(--teal); }
.calendar { display: flex; flex-wrap: wrap; gap: 1.4rem; }
.cal-month { flex: 1 1 320px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; }
.cal-month-title { font-weight: 700; text-transform: capitalize; text-align: center; margin-bottom: .7rem; }
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; }
.cal-dow { text-align: center; font-size: .78rem; font-weight: 700; color: var(--muted); padding: 4px 0; text-transform: uppercase; }
.cal-cell { position: relative; min-height: 58px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px; border-radius: 9px; font-size: .92rem; font-weight: 500; background: #f3faf6; color: var(--ink); cursor: pointer; border: 1px solid transparent; transition: .12s; }
.cal-cell:hover:not(.empty):not(.busy):not(.past) { border-color: var(--teal); }
.cal-cell.empty { background: transparent; cursor: default; }
.cal-cell.past { color: #c2c9ce; background: #fafbfb; cursor: not-allowed; }
.cal-cell.busy { background: var(--busy); color: #fff; cursor: not-allowed; }
/* turnover dny – rozpůlené diagonálně (obsazená polovina = den předání) */
.cal-cell.turn-start { background: linear-gradient(to bottom right, var(--busy) 0 50%, #f3faf6 50% 100%); color: var(--ink); }
.cal-cell.turn-end { background: linear-gradient(to bottom right, #f3faf6 0 50%, var(--busy) 50% 100%); color: var(--ink); cursor: pointer; }
.cal-cell.turn-end:hover, .cal-cell.turn-start:hover { border-color: var(--teal); }
.cal-cell.turn-start .cal-num, .cal-cell.turn-end .cal-num { text-shadow: 0 0 3px rgba(255,255,255,.95), 0 0 2px rgba(255,255,255,.95); }
.cal-cell.sel { background: var(--teal); color: #fff; }
.cal-cell.inrange { background: #b9e3d1; }
.cal-num { line-height: 1; }
.cal-price { font-size: .62rem; font-weight: 700; color: var(--teal); white-space: nowrap; }
.cal-cell.sel .cal-price, .cal-cell.inrange .cal-price { color: #08443e; }
.cal-minlos { position: absolute; top: 2px; right: 3px; font-size: .55rem; font-weight: 700; color: var(--muted); }
.cal-hint { color: var(--muted); font-size: .9rem; margin-top: .9rem; }
.cal-loading { width: 100%; text-align: center; color: var(--muted); padding: 1.5rem 0; }

/* přepínač měny */
.currency-toggle { display: inline-flex; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; background: #fff; }
.cur-btn { padding: .5rem .85rem; border: 0; background: #fff; font: inherit; font-weight: 700; cursor: pointer; color: var(--muted); }
.cur-btn + .cur-btn { border-left: 1px solid var(--line); }
.cur-btn.is-active { background: var(--teal); color: #fff; }

/* souhrn vybraného termínu pod kalendářem */
.cal-summary { margin-top: 1rem; }
.cal-sum-hint { color: var(--muted); }
.cal-sum-err { color: var(--busy); font-weight: 600; background: #fdecec; border: 1px solid #f3b8b8; border-radius: 12px; padding: .8rem 1rem; }
.cal-sum-ok { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 1.1rem 1.2rem; box-shadow: var(--shadow); }
.cal-sum-line { margin-bottom: .6rem; }
.cal-sum-rows { margin: .2rem 0 .7rem; }
.cal-sum-row { display: flex; justify-content: space-between; gap: 1rem; padding: .2rem 0; }
.cal-sum-row-total { border-top: 1px solid var(--line); margin-top: .35rem; padding-top: .55rem; font-size: 1.1rem; font-weight: 700; }
.cal-sum-alt { color: var(--muted); font-size: .9rem; font-weight: 500; }
.cal-sum-note { font-size: .82rem; color: var(--muted); margin-bottom: .9rem; }
.cal-sum-cta { margin-top: .2rem; }

/* ---------- Form ---------- */
.enquiry { padding: 3rem 0; }
.form { max-width: 720px; background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 1.8rem; box-shadow: var(--shadow); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.field { display: flex; flex-direction: column; margin-bottom: 1rem; }
.field label { font-weight: 600; font-size: .92rem; margin-bottom: .35rem; }
.field input, .field select, .field textarea {
  font: inherit; padding: .7rem .8rem; border: 1px solid var(--line);
  border-radius: 10px; background: #fff; color: var(--ink); width: 100%;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--teal); box-shadow: 0 0 0 3px rgba(15,118,110,.15);
}
.form-summary { background: var(--bg-soft); border: 1px solid var(--line); border-radius: 12px; padding: .9rem 1.1rem; margin-bottom: 1.3rem; }
.form-summary .fs-apt { font-size: 1.02rem; margin-bottom: .15rem; }
.form-summary .fs-dates { color: var(--muted); }
.form-summary .fs-price { font-weight: 700; margin-top: .3rem; }
.form-summary .fs-alt { color: var(--muted); font-weight: 500; font-size: .9rem; }
.hp { position: absolute; left: -9999px; height: 0; overflow: hidden; }
.form-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem; margin-top: .5rem; }
.form-note { font-size: .82rem; color: var(--muted); margin: 0; max-width: 40ch; }
.form-status { margin: 1rem 0 0; font-weight: 600; }
.form-status.ok { color: var(--green); }
.form-status.err { color: var(--busy); }

/* ---------- Contact / footer ---------- */
.contact { padding: 3rem 0; background: var(--bg-soft); }
.contact-lines a { font-weight: 600; line-height: 2; }
.map-links { display: flex; flex-wrap: wrap; gap: .6rem; margin: .2rem 0 0; }
.map-links a { display: inline-flex; align-items: center; gap: .4rem; background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: .45rem .9rem; font-size: .9rem; font-weight: 600; }
.map-links a:hover { border-color: var(--teal); }
.provozovatel { margin-top: 1.6rem; padding-top: 1.2rem; border-top: 1px solid var(--line); }
.provozovatel h3 { font-size: .8rem; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); margin: 0 0 .4rem; }
.provozovatel p { margin: 0; color: var(--muted); font-size: .92rem; line-height: 1.7; }
.site-footer { padding: 1.8rem 0; background: var(--ink); color: #cbd2d9; font-size: .9rem; }
.site-footer a { color: #fff; }

/* ---------- Lightbox ---------- */
.lightbox { position: fixed; inset: 0; background: rgba(10,15,20,.92); z-index: 100; display: none; align-items: center; justify-content: center; }
.lightbox.open { display: flex; }
.lightbox img { max-width: 92vw; max-height: 86vh; border-radius: 10px; box-shadow: var(--shadow-lg); }
.lightbox button { position: absolute; background: rgba(255,255,255,.14); color: #fff; border: 0; cursor: pointer; border-radius: 50%; width: 48px; height: 48px; font-size: 1.5rem; line-height: 1; transition: background .15s; }
.lightbox button:hover { background: rgba(255,255,255,.3); }
.lb-close { top: 18px; right: 18px; }
.lb-prev { left: 14px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 14px; top: 50%; transform: translateY(-50%); }

/* ============================================================
   Mobil
   ============================================================ */
@media (max-width: 880px) {
  .nav {
    position: fixed; inset: 64px 0 auto 0; flex-direction: column; gap: 0;
    background: #fff; border-bottom: 1px solid var(--line);
    padding: .5rem 20px 1rem; transform: translateY(-130%); transition: transform .25s ease;
    box-shadow: var(--shadow);
  }
  .nav.open { transform: translateY(0); }
  .nav a { padding: .8rem 0; width: 100%; border-bottom: 1px solid var(--line); }
  .nav-toggle { display: block; }
  .nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

  .hero-inner { grid-template-columns: 1fr; gap: 1.8rem; }
  .hero-media { order: -1; }
  .benefit-grid { grid-template-columns: 1fr 1fr; }
  .apt-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; gap: 0; }
  .cal-nav { margin-left: 0; width: 100%; justify-content: space-between; }
}

@media (max-width: 480px) {
  .benefit-grid { grid-template-columns: 1fr; }
  .cal-month { padding: 10px; }
  .cal-grid { gap: 4px; }
  .cal-cell { font-size: .82rem; border-radius: 7px; min-height: 46px; }
  .cal-price { font-size: .58rem; }
  .form { padding: 1.2rem; }
}
