/* =========================================================
   Palackého 203 Úpice — styly
   Vizuál vychází z webu jilemnice-dolenka.cz (DM Sans, tmavá #292C33, zlatá #C9A84C).
   ========================================================= */
/* Písmo DM Sans je uložené přímo na webu (licence SIL OFL) – nenačítá se z Google Fonts. */
@font-face { font-family: 'DM Sans'; font-style: normal; font-display: swap; font-weight: 100 1000;
  src: url('../fonts/dm-sans-latin-ext-wght-normal.woff2') format('woff2-variations');
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: 'DM Sans'; font-style: normal; font-display: swap; font-weight: 100 1000;
  src: url('../fonts/dm-sans-latin-wght-normal.woff2') format('woff2-variations');
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
:root {
  --bg-dark: #292C33; --bg-light: #F7F7F5; --gold: #C9A84C; --gold-dark: #B3923A;
  --text-dark: #292C33; --text-light: #FFFFFF; --text-sec: #5A5E66;
  --border: rgba(41,44,51,0.15);
  --font: 'DM Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
}
html { scroll-behavior: smooth; }
body { font-family: var(--font); background: var(--bg-light); color: var(--text-dark); font-size: 16px; line-height: 1.7; font-weight: 300; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }

/* ---------- LOGO ---------- */
.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text-dark); font-weight: 700; font-size: 22px; letter-spacing: -0.035em; line-height: 1; white-space: nowrap; }
.logo svg { width: 30px; height: 30px; flex-shrink: 0; }
.logo b { font-weight: 700; color: var(--gold); }
.logo--light { color: #FFFFFF; }

/* ---------- NAV ---------- */
nav { position: fixed; top: 0; left: 0; right: 0; z-index: 100; display: flex; justify-content: space-between; align-items: center; padding: 0 5vw; height: 68px; background: rgba(255,255,255,0.97); backdrop-filter: blur(8px); border-bottom: 1px solid rgba(41,44,51,0.08); transition: box-shadow 0.3s; }
nav.scrolled { box-shadow: 0 2px 20px rgba(41,44,51,0.1); }
.nav-links { display: flex; align-items: center; gap: 2rem; list-style: none; }
.nav-links a { text-decoration: none; color: var(--text-sec); font-size: 13px; font-weight: 500; letter-spacing: 0.04em; text-transform: uppercase; transition: color 0.2s; }
.nav-links a:hover { color: var(--gold-dark); }
.nav-cta { background: var(--bg-dark); color: #FFFFFF !important; padding: 8px 20px; text-decoration: none; font-size: 13px; font-weight: 500; letter-spacing: 0.06em; text-transform: uppercase; transition: background 0.2s, color 0.2s; white-space: nowrap; }
.nav-cta:hover { background: var(--gold) !important; color: var(--text-dark) !important; }
.nav-back { display: flex; align-items: center; gap: 8px; text-decoration: none; color: var(--text-sec); font-size: 13px; font-weight: 500; letter-spacing: 0.05em; text-transform: uppercase; transition: color 0.2s; }
.nav-back:hover { color: var(--gold-dark); }
.nav-back svg { width: 16px; height: 16px; stroke: currentColor; fill: none; stroke-width: 1.5; }
.burger { display: none; flex-direction: column; gap: 5px; cursor: pointer; background: none; border: none; padding: 8px; }
.burger span { display: block; width: 24px; height: 1.5px; background: var(--bg-dark); }
.mobile-menu { display: none; position: fixed; top: 68px; left: 0; right: 0; background: #FFFFFF; border-bottom: 1px solid rgba(41,44,51,0.08); z-index: 99; padding: 1.5rem 5vw 2rem; flex-direction: column; gap: 1.2rem; }
.mobile-menu.open { display: flex; }
.mobile-menu a { text-decoration: none; color: var(--text-dark); font-size: 17px; padding-bottom: 1rem; border-bottom: 1px solid rgba(41,44,51,0.08); }

/* ---------- HERO ---------- */
.hero { min-height: 100vh; display: flex; align-items: flex-end; padding: 120px 5vw 8vh; background: var(--bg-dark); position: relative; overflow: hidden; }
.hero-bg { position: absolute; inset: 0; background:
    linear-gradient(90deg, rgba(41,44,51,0.86) 0%, rgba(41,44,51,0.62) 32%, rgba(41,44,51,0.10) 58%, rgba(41,44,51,0) 100%),
    linear-gradient(180deg, rgba(41,44,51,0) 0%, rgba(41,44,51,0.10) 55%, rgba(41,44,51,0.70) 100%),
    url('../uploads/hero.webp') left 12%/cover no-repeat; }
.hero-deco { position: absolute; top: 96px; left: 5vw; color: rgba(255,255,255,0.10); pointer-events: none; z-index: 1; }
.hero-content { position: relative; z-index: 2; max-width: 640px; }
.hero-tag { display: inline-block; font-size: 12px; font-weight: 500; letter-spacing: 0.12em; text-transform: uppercase; color: rgba(255,255,255,0.85); border: 1px solid rgba(255,255,255,0.3); padding: 6px 14px; margin-bottom: 1.5rem; background: rgba(41,44,51,0.25); }
.hero h1 { font-size: clamp(2.5rem, 5.2vw, 4.4rem); font-weight: 600; line-height: 1.05; letter-spacing: -0.03em; color: #FFFFFF; margin-bottom: 1.5rem; text-wrap: balance; }
.hero-sub { font-size: 17px; color: rgba(255,255,255,0.88); font-weight: 300; max-width: 520px; margin-bottom: 2.25rem; }
.hero-pills { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 2.5rem; }
.pill { background: rgba(41,44,51,0.35); border: 1px solid rgba(255,255,255,0.25); color: #FFFFFF; padding: 7px 16px; font-size: 13px; font-weight: 400; backdrop-filter: blur(4px); }
.hero-ctas { display: flex; gap: 1rem; flex-wrap: wrap; }

/* ---------- BUTTONS ---------- */
.btn-primary { display: inline-block; background: var(--gold); color: var(--text-dark); padding: 14px 32px; text-decoration: none; font-size: 14px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; transition: background 0.2s; border: none; cursor: pointer; font-family: var(--font); text-align: center; }
.btn-primary:hover { background: var(--gold-dark); }
.btn-outline { display: inline-block; border: 1px solid rgba(255,255,255,0.45); color: #FFFFFF; padding: 14px 32px; text-decoration: none; font-size: 14px; font-weight: 500; letter-spacing: 0.06em; text-transform: uppercase; transition: border-color 0.2s, background 0.2s; }
.btn-outline:hover { border-color: #FFFFFF; background: rgba(255,255,255,0.08); }
.btn-dark { display: inline-block; background: var(--bg-dark); color: #FFFFFF; padding: 14px 32px; text-decoration: none; font-size: 14px; font-weight: 500; letter-spacing: 0.06em; text-transform: uppercase; transition: background 0.2s, color 0.2s; border: none; cursor: pointer; font-family: var(--font); }
.btn-dark:hover { background: var(--gold); color: var(--text-dark); }
.btn-secondary { display: block; width: 100%; background: transparent; color: var(--text-dark); padding: 13px 24px; text-decoration: none; font-family: var(--font); font-size: 13px; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; text-align: center; border: 1px solid rgba(41,44,51,0.25); transition: border-color 0.2s, color 0.2s; cursor: pointer; }
.btn-secondary:hover { border-color: var(--gold-dark); color: var(--gold-dark); }
.btn-block { display: block; width: 100%; }

/* ---------- SECTIONS ---------- */
section { padding: 100px 5vw; }
.section-label { font-size: 11px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold-dark); margin-bottom: 1rem; }
.section-title { font-size: clamp(2rem, 4vw, 3rem); font-weight: 600; line-height: 1.1; letter-spacing: -0.03em; color: var(--text-dark); margin-bottom: 1.2rem; text-wrap: balance; }
.section-intro { font-size: 16px; color: var(--text-sec); max-width: 600px; line-height: 1.8; font-weight: 300; }

/* ---------- BENEFITS ---------- */
.benefits-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2px; margin-top: 3.5rem; background: rgba(41,44,51,0.1); border: 1px solid rgba(41,44,51,0.1); }
.benefit-card { background: var(--bg-light); padding: 2rem 1.75rem; display: flex; flex-direction: column; gap: 0.75rem; transition: background 0.2s; }
.benefit-card:hover { background: #F2F2F0; }
.benefit-icon { width: 44px; height: 44px; background: var(--bg-dark); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.benefit-icon svg { width: 22px; height: 22px; stroke: var(--gold); fill: none; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.benefit-title { font-weight: 600; font-size: 15px; color: var(--text-dark); letter-spacing: -0.01em; }
.benefit-desc { font-size: 14px; color: var(--text-sec); line-height: 1.65; font-weight: 300; }

/* ---------- FOTO GRID ---------- */
.foto-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 2.5rem; }
.foto-grid button { border: 0; padding: 0; background: var(--bg-dark); cursor: zoom-in; display: block; overflow: hidden; }
.foto-grid img { width: 100%; aspect-ratio: 4/3; object-fit: cover; display: block; transition: opacity 0.2s, transform 0.5s; }
.foto-grid button:hover img { opacity: 0.9; transform: scale(1.02); }

/* ---------- FINANCOVÁNÍ (tmavá sekce) ---------- */
.dark-wrap { background: var(--bg-dark); color: #FFFFFF; position: relative; overflow: hidden; }
.dark-wrap .section-title { color: #FFFFFF; }
.dark-wrap .section-label { color: var(--gold); }
.dark-wrap .section-intro { color: rgba(255,255,255,0.7); }
.dark-deco { position: absolute; bottom: 40px; right: 5vw; color: rgba(255,255,255,0.04); pointer-events: none; }
.dark-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: start; position: relative; z-index: 1; }
.steps { margin-top: 2.5rem; display: flex; flex-direction: column; }
.step { display: flex; gap: 1.25rem; padding: 1.5rem 0; border-bottom: 1px solid rgba(255,255,255,0.1); }
.step-num { font-size: 2rem; font-weight: 600; color: var(--gold); line-height: 1; min-width: 32px; padding-top: 2px; letter-spacing: -0.02em; }
.step-body h4 { font-size: 15px; font-weight: 600; color: #FFFFFF; margin-bottom: 0.3rem; letter-spacing: -0.01em; }
.step-body p { font-size: 14px; color: rgba(255,255,255,0.68); font-weight: 300; line-height: 1.65; }
.highlight-box { background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.12); padding: 1.5rem; margin-top: 2rem; }
.highlight-box:first-child { margin-top: 0; }
.highlight-box p { font-size: 14px; color: rgba(255,255,255,0.78); line-height: 1.7; font-weight: 300; }
.highlight-box h4 { font-size: 15px; font-weight: 600; color: #FFFFFF; margin-bottom: 0.4rem; }
.big-number { font-size: 3.5rem; font-weight: 600; color: var(--gold); line-height: 1; display: block; margin-bottom: 0.6rem; letter-spacing: -0.03em; }

/* ---------- CTA BAND ---------- */
.cta-band { background: var(--gold); padding: 60px 5vw; display: flex; justify-content: space-between; align-items: center; gap: 2rem; flex-wrap: wrap; }
.cta-band h3 { font-size: clamp(1.6rem, 3vw, 2.4rem); font-weight: 600; color: var(--text-dark); max-width: 620px; line-height: 1.15; letter-spacing: -0.02em; text-wrap: balance; }
.cta-band--dark { background: var(--bg-dark); }
.cta-band--dark h3 { color: #FFFFFF; }
.btn-cta-outline { display: inline-block; border: 2px solid var(--text-dark); color: var(--text-dark); padding: 13px 30px; text-decoration: none; font-size: 14px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; transition: background 0.2s, color 0.2s; }
.btn-cta-outline:hover { background: var(--text-dark); color: var(--gold); }

/* ---------- CENÍK ---------- */
.cenik-wrap { background: var(--bg-light); }
.cenik-table-wrap { margin-top: 3rem; overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
.cenik-table thead th { text-align: left; font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--gold-dark); font-weight: 600; padding: 0 14px 12px; border-bottom: 1px solid rgba(41,44,51,0.15); white-space: nowrap; }
.cenik-table tbody tr { border-bottom: 1px solid rgba(41,44,51,0.1); transition: background 0.15s; cursor: pointer; }
.cenik-table tbody tr:hover { background: rgba(41,44,51,0.04); }
.cenik-table tbody tr.neaktivni td { color: rgba(90,94,102,0.75); }
.cenik-table tbody tr.neaktivni td:first-child { color: rgba(41,44,51,0.7); }
.cenik-table tbody tr.prodano { opacity: 0.45; }
.cenik-table tbody td { padding: 16px 14px; color: var(--text-sec); font-weight: 300; white-space: nowrap; }
.cenik-table tbody td:first-child { font-weight: 600; color: var(--text-dark); }
.cenik-table .price-col { font-size: 17px; font-weight: 600; color: var(--text-dark); letter-spacing: -0.01em; }
.cenik-table tr.neaktivni .price-col { font-size: 14px; font-weight: 300; }
.cenik-note { font-size: 13px; color: var(--text-sec); margin-top: 1.25rem; }
.badge { display: inline-block; padding: 3px 10px; border-radius: 2px; font-size: 12px; font-weight: 400; white-space: nowrap; }
.badge-volny, .status-volny { background: rgba(37,204,48,0.12); color: #1a7a1f; }
.badge-rezervovano, .status-rezervovano { background: rgba(180,130,20,0.14); color: #7a5500; }
.badge-prodano, .status-prodano { background: rgba(41,44,51,0.08); color: #5A5E66; }
.badge-pronajem, .status-pronajem { background: rgba(52,96,160,0.10); color: #2f5a94; }
.badge-nadotaz, .status-nadotaz { background: rgba(41,44,51,0.06); color: #5A5E66; }
.detail-link { color: var(--text-dark); font-size: 12px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; border-bottom: 1px solid var(--text-dark); padding-bottom: 1px; text-decoration: none; transition: color 0.2s, border-color 0.2s; white-space: nowrap; }
.detail-link:hover { color: var(--gold-dark); border-color: var(--gold-dark); }

/* ---------- LOKALITA ---------- */
.lokalita-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 5rem; align-items: center; }
.lokalita-points { margin-top: 2rem; display: flex; flex-direction: column; }
.lokalita-point { display: flex; align-items: flex-start; gap: 1rem; padding: 1rem 0; border-bottom: 1px solid rgba(41,44,51,0.1); }
.lokalita-point .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--gold); flex-shrink: 0; margin-top: 11px; }
.lokalita-point p { font-size: 15px; font-weight: 300; color: var(--text-sec); }
.lokalita-point strong { color: var(--text-dark); font-weight: 600; }
.lokalita-img { width: 100%; object-fit: cover; display: block; }
.lokalita-img-main { aspect-ratio: 3/2; }
.lokalita-img-wide { aspect-ratio: 16/7; }

/* ---------- KONTAKT ---------- */
.kontakt-person { display: flex; gap: 1.5rem; align-items: center; background: white; border: 1px solid rgba(41,44,51,0.15); padding: 1.75rem 2rem; margin: 2.5rem 0; max-width: 440px; }
.person-avatar { width: 80px; height: 80px; border-radius: 50%; background: var(--bg-dark); display: flex; align-items: center; justify-content: center; font-size: 24px; font-weight: 700; color: var(--gold); flex-shrink: 0; overflow: hidden; }
.person-avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
.person-info h4 { font-size: 16px; font-weight: 600; color: var(--text-dark); margin-bottom: 3px; }
.person-info .person-pozice { font-size: 13px; color: var(--text-sec); font-weight: 300; margin-bottom: 6px; }
.person-info a { font-size: 14px; font-weight: 500; color: var(--text-dark); text-decoration: none; display: block; line-height: 1.6; transition: color 0.2s; }
.person-info a:hover { color: var(--gold-dark); }
.kontakt-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 5rem; align-items: start; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-group.full { grid-column: 1 / -1; }
.form-group label { font-size: 12px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-sec); }
.form-group input, .form-group select, .form-group textarea { border: 1px solid rgba(41,44,51,0.25); background: white; padding: 12px 14px; border-radius: 0; font-family: var(--font); font-size: 15px; font-weight: 300; color: var(--text-dark); outline: none; transition: border-color 0.2s; width: 100%; -webkit-appearance: none; appearance: none; }
.form-group select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%235A5E66' stroke-width='1.5'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 36px; }
.form-group input:focus, .form-group select:focus, .form-group textarea:focus { border-color: var(--gold); }
.form-group textarea { resize: vertical; min-height: 100px; }
.form-note { font-size: 13px; color: var(--text-sec); font-weight: 300; margin-top: 0.75rem; }
.form-note a { color: var(--text-dark); }
.form-msg { display: none; margin-top: 1rem; padding: 12px 14px; font-size: 14px; border: 1px solid rgba(180,60,40,0.3); background: rgba(180,60,40,0.06); color: #8a2f1f; }
.form-msg.show { display: block; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ---------- FOOTER ---------- */
footer { background: var(--bg-dark); padding: 60px 5vw 40px; display: flex; justify-content: space-between; align-items: flex-start; flex-wrap: wrap; gap: 2rem; }
.footer-info p { font-size: 14px; color: rgba(255,255,255,0.55); font-weight: 300; line-height: 1.8; }
.footer-info a { color: rgba(255,255,255,0.55); text-decoration: none; }
.footer-info a:hover { color: var(--gold); }

/* ---------- ANIMACE ---------- */
.js .fade-in { opacity: 0; transform: translateY(24px); transition: opacity 0.7s ease, transform 0.7s ease; }
.js .fade-in.visible { opacity: 1; transform: translateY(0); }
@media (prefers-reduced-motion: reduce) { .js .fade-in { opacity: 1; transform: none; transition: none; } html { scroll-behavior: auto; } }

/* =========================================================
   DETAIL BYTU
   ========================================================= */
.page-detail nav { height: 64px; }
.gallery-wrap { margin-top: 64px; background: var(--bg-dark); }
.gallery-hero { height: min(62vh, 620px); min-height: 320px; width: 100%; position: relative; overflow: hidden; cursor: zoom-in; border: 0; padding: 0; display: block; background: #33363D; }
.gallery-hero img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s; display: block; }
.gallery-hero:hover img { transform: scale(1.02); }
.gallery-count { position: absolute; bottom: 16px; right: 16px; background: rgba(41,44,51,0.8); color: #FFFFFF; font-size: 12px; padding: 5px 12px; letter-spacing: 0.06em; }
.gallery-thumbs { display: flex; gap: 3px; height: 90px; overflow-x: auto; scrollbar-width: none; background: var(--bg-dark); padding: 3px 3px 0; }
.gallery-thumbs::-webkit-scrollbar { display: none; }
.gallery-thumb-item { flex-shrink: 0; height: 84px; aspect-ratio: 4/3; overflow: hidden; cursor: pointer; border: 2px solid transparent; padding: 0; background: #33363D; transition: border-color 0.15s; }
.gallery-thumb-item.active { border-color: var(--gold); }
.gallery-thumb-item img { width: 100%; height: 100%; object-fit: cover; display: block; transition: opacity 0.2s; }
.gallery-thumb-item:hover img { opacity: 0.75; }

.content-wrap { max-width: 1200px; margin: 0 auto; padding: 3.5rem 5vw 6rem; display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 4rem; align-items: start; }
.content-wrap > * { min-width: 0; }
.byt-tag { font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold-dark); font-weight: 600; margin-bottom: 0.5rem; }
.byt-title { font-size: clamp(2.2rem, 4vw, 3.2rem); font-weight: 600; line-height: 1.05; letter-spacing: -0.03em; color: var(--text-dark); }
.byt-subtitle { font-size: 16px; color: var(--text-sec); font-weight: 300; margin-top: 0.4rem; }
.byt-header { display: flex; justify-content: space-between; align-items: flex-start; gap: 2rem; margin-bottom: 2.5rem; flex-wrap: wrap; }
.byt-status { display: inline-flex; align-items: center; gap: 7px; padding: 6px 14px; border-radius: 2px; font-size: 13px; font-weight: 500; white-space: nowrap; align-self: flex-start; margin-top: 4px; }
.status-volny::before { content: ''; display: block; width: 7px; height: 7px; border-radius: 50%; background: #1a8a1f; }

.specs-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2px; background: rgba(41,44,51,0.1); border: 1px solid rgba(41,44,51,0.1); margin-bottom: 3rem; }
.spec-item { background: var(--bg-light); padding: 1.25rem 1.1rem; display: flex; flex-direction: column; gap: 4px; }
.spec-label { font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--gold-dark); font-weight: 600; }
.spec-value { font-size: 1.6rem; font-weight: 600; color: var(--text-dark); line-height: 1.1; letter-spacing: -0.02em; }
.spec-unit { font-size: 13px; color: var(--text-sec); font-weight: 300; line-height: 1.4; }

.tabs { display: flex; border-bottom: 1px solid rgba(41,44,51,0.15); margin-bottom: 2.5rem; overflow-x: auto; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tab-btn { background: none; border: none; border-bottom: 2px solid transparent; padding: 10px 20px 10px 0; font-family: var(--font); font-size: 13px; font-weight: 500; letter-spacing: 0.07em; text-transform: uppercase; color: var(--text-sec); cursor: pointer; margin-bottom: -1px; transition: color 0.2s, border-color 0.2s; white-space: nowrap; }
.tab-btn.active { color: var(--text-dark); border-bottom-color: var(--gold); }
.tab-panel { display: none; } .tab-panel.active { display: block; }
.popis-text p { font-size: 15px; color: var(--text-sec); line-height: 1.85; font-weight: 300; margin-bottom: 1.2rem; }
.popis-text strong { color: var(--text-dark); font-weight: 600; }
.sub-label { font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold-dark); font-weight: 600; margin: 2rem 0 0.9rem; }
.vyhody-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0.75rem; margin-top: 0.5rem; }
.vyhoda-item { display: flex; align-items: flex-start; gap: 10px; padding: 0.9rem 1rem; background: #FFFFFF; border: 1px solid rgba(41,44,51,0.12); }
.vyhoda-item svg { width: 15px; height: 15px; stroke: var(--gold-dark); fill: none; stroke-width: 2; flex-shrink: 0; margin-top: 3px; }
.vyhoda-item span { font-size: 13px; color: var(--text-sec); font-weight: 300; line-height: 1.5; }
.dispozice-wrap { background: #FFFFFF; border: 1px solid rgba(41,44,51,0.12); padding: 2rem; display: flex; flex-direction: column; gap: 1.5rem; }
.plan-switch { display: flex; gap: 0; align-self: flex-start; border: 1px solid rgba(41,44,51,0.2); }
.plan-switch button { background: #fff; border: 0; padding: 7px 16px; font-family: var(--font); font-size: 12px; font-weight: 500; letter-spacing: 0.07em; text-transform: uppercase; color: var(--text-sec); cursor: pointer; }
.plan-switch button.active { background: var(--bg-dark); color: #fff; }
.floor-plan { background: #FFFFFF; min-height: 220px; display: flex; align-items: center; justify-content: center; color: var(--text-sec); font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; overflow: hidden; border: 0; padding: 0; width: 100%; }
.floor-plan.has-img { cursor: zoom-in; }
.floor-plan.empty { background: var(--bg-light); aspect-ratio: 16/7; text-align: center; padding: 1.5rem; line-height: 1.7; }
.floor-plan img { width: 100%; max-height: 560px; object-fit: contain; display: block; }
.data-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.data-table th { text-align: left; font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--gold-dark); font-weight: 600; padding: 0 0 10px; border-bottom: 1px solid rgba(41,44,51,0.12); }
.data-table th:last-child { text-align: right; }
.data-table td { padding: 12px 0; border-bottom: 1px solid rgba(41,44,51,0.08); color: var(--text-sec); font-weight: 300; vertical-align: top; }
.data-table td:first-child { color: var(--text-dark); font-weight: 500; padding-right: 1rem; }
.data-table td:last-child { text-align: right; font-size: 15px; color: var(--text-dark); font-weight: 600; letter-spacing: -0.01em; white-space: nowrap; }
.data-table .num { display: inline-flex; align-items: center; justify-content: center; width: 22px; height: 22px; margin-right: 10px; border-radius: 50%; background: #2B4EF2; color: #fff; font-size: 12px; font-weight: 600; }
.data-table .total-row td { border-bottom: none; padding-top: 16px; font-weight: 600; color: var(--text-dark); }
.data-table.params td:last-child { font-size: 14px; white-space: normal; }
.table-note { font-size: 13px; color: var(--text-sec); line-height: 1.6; }
.standard-sections { display: flex; flex-direction: column; gap: 2rem; }
.standard-section h4 { font-size: 13px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--gold-dark); margin-bottom: 1rem; padding-bottom: 0.5rem; border-bottom: 1px solid rgba(41,44,51,0.1); }
.standard-list { list-style: none; display: flex; flex-direction: column; gap: 0.6rem; }
.standard-list li { display: flex; align-items: flex-start; gap: 10px; font-size: 14px; color: var(--text-sec); font-weight: 300; line-height: 1.5; }
.standard-list li::before { content: ''; display: block; width: 5px; height: 5px; border-radius: 50%; background: var(--gold); flex-shrink: 0; margin-top: 8px; }

.sidebar { position: sticky; top: 84px; }
.price-card { background: #FFFFFF; border: 1px solid rgba(41,44,51,0.15); padding: 1.75rem; margin-bottom: 1rem; }
.price-label { font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--gold-dark); font-weight: 600; margin-bottom: 1rem; }
.price-main { font-size: 2.5rem; font-weight: 600; color: var(--text-dark); line-height: 1.05; margin-bottom: 0.25rem; letter-spacing: -0.03em; }
.price-main.na-vyzadani { font-size: 1.9rem; }
.price-sub { font-size: 13px; color: var(--text-sec); }
.price-divider { border: none; border-top: 1px solid rgba(41,44,51,0.1); margin: 1.25rem 0; }
.price-row { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; margin-bottom: 0.75rem; }
.price-row:last-of-type { margin-bottom: 0; }
.price-row-label { font-size: 13px; color: var(--text-sec); font-weight: 300; }
.price-row-value { font-size: 14px; font-weight: 600; color: var(--text-dark); letter-spacing: -0.01em; text-align: right; }
.price-card .btn-primary { display: block; width: 100%; padding: 15px 24px; font-size: 13px; letter-spacing: 0.08em; margin-bottom: 0.75rem; }
.price-card .btn-secondary { margin-bottom: 0.75rem; }
.price-note { font-size: 12px; color: var(--text-sec); text-align: center; line-height: 1.5; margin-top: 0.5rem; }
.agent-card { background: #FFFFFF; border: 1px solid rgba(41,44,51,0.12); padding: 1.25rem 1.5rem; display: flex; gap: 1rem; align-items: center; margin-top: 1rem; }
.agent-avatar { width: 46px; height: 46px; border-radius: 50%; background: var(--bg-dark); display: flex; align-items: center; justify-content: center; font-size: 15px; font-weight: 600; color: var(--gold); flex-shrink: 0; overflow: hidden; }
.agent-avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
.agent-info h4 { font-size: 14px; font-weight: 600; color: var(--text-dark); margin-bottom: 1px; letter-spacing: -0.01em; }
.agent-info p { font-size: 12px; color: var(--text-sec); font-weight: 300; line-height: 1.5; }
.agent-info a { color: var(--gold-dark); text-decoration: none; font-size: 13px; display: block; line-height: 1.5; }

.form-section { background: #FFFFFF; padding: 80px 5vw; }
.form-inner { max-width: 640px; margin: 0 auto; }
.form-section .section-title { font-size: clamp(1.8rem, 3vw, 2.4rem); }
.form-section .form-group input, .form-section .form-group select, .form-section .form-group textarea { background: var(--bg-light); }

.similar-section { background: var(--bg-light); padding: 80px 5vw; }
.similar-section .section-title { font-size: clamp(1.8rem, 3vw, 2.4rem); }
.similar-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2px; background: rgba(41,44,51,0.1); border: 1px solid rgba(41,44,51,0.1); margin-top: 2.5rem; }
.similar-card { background: var(--bg-light); text-decoration: none; display: flex; flex-direction: column; transition: background 0.2s; }
.similar-card:hover { background: #FFFFFF; }
.similar-img { aspect-ratio: 4/3; background: #33363D; overflow: hidden; }
.similar-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.similar-body { padding: 1.25rem 1.25rem 1.5rem; }
.similar-name { font-size: 1.3rem; font-weight: 600; color: var(--text-dark); margin-bottom: 0.25rem; letter-spacing: -0.02em; }
.similar-meta { font-size: 13px; color: var(--text-sec); font-weight: 300; margin-bottom: 0.75rem; }
.similar-price { font-size: 1.15rem; font-weight: 600; color: var(--gold-dark); letter-spacing: -0.02em; }
.similar-filler { background: #E4E4E2; }

.not-found { max-width: 640px; margin: 0 auto; padding: 180px 5vw 120px; text-align: center; }

/* ---------- LIGHTBOX ---------- */
.lightbox { display: none; position: fixed; inset: 0; background: rgba(41,44,51,0.96); z-index: 999; align-items: center; justify-content: center; }
.lightbox.open { display: flex; }
.lightbox-inner { max-width: 1100px; width: 90%; position: relative; }
.lightbox-img { width: 100%; height: min(74vh, 733px); display: flex; align-items: center; justify-content: center; }
.lightbox-img img { max-width: 100%; max-height: 100%; object-fit: contain; display: block; }
.lightbox-img.plan img { background: #fff; }
.lightbox-close { position: absolute; top: -44px; right: 0; background: none; border: none; color: rgba(255,255,255,0.6); font-size: 32px; line-height: 1; cursor: pointer; font-family: var(--font); font-weight: 300; padding: 4px 8px; }
.lightbox-close:hover { color: #FFFFFF; }
.lightbox-footer { display: flex; justify-content: space-between; align-items: center; margin-top: 12px; gap: 1rem; }
.lightbox-caption, .lightbox-counter { font-size: 13px; color: rgba(255,255,255,0.55); font-weight: 300; }
.lb-prev, .lb-next { position: absolute; top: 50%; transform: translateY(-50%); background: rgba(41,44,51,0.7); border: none; color: #FFFFFF; font-size: 24px; width: 48px; height: 48px; cursor: pointer; display: flex; align-items: center; justify-content: center; backdrop-filter: blur(4px); transition: background 0.2s, color 0.2s; z-index: 10; }
.lb-prev { left: -64px; } .lb-next { right: -64px; }
.lb-prev:hover, .lb-next:hover { background: var(--gold); color: var(--text-dark); }

/* =========================================================
   TEXTOVÉ STRÁNKY (zásady, děkujeme)
   ========================================================= */
.text-page { max-width: 760px; margin: 0 auto; padding: 150px 5vw 100px; }
.text-page h1 { font-size: clamp(2rem, 4vw, 2.8rem); font-weight: 600; letter-spacing: -0.03em; line-height: 1.1; margin-bottom: 1.5rem; }
.text-page h2 { font-size: 1.2rem; font-weight: 600; letter-spacing: -0.01em; margin: 2.2rem 0 0.6rem; }
.text-page p, .text-page li { font-size: 15px; color: var(--text-sec); line-height: 1.85; }
.text-page p { margin-bottom: 1rem; }
.text-page ul { margin: 0 0 1rem 1.2rem; }
.text-page a { color: var(--text-dark); }
.text-page .btn-primary { margin-top: 1rem; color: var(--text-dark); }

/* =========================================================
   RESPONZIVITA
   ========================================================= */
@media (max-width: 1100px) {
  .lb-prev { left: 8px; } .lb-next { right: 8px; }
  .benefits-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 900px) {
  .content-wrap { grid-template-columns: minmax(0, 1fr); gap: 2.5rem; padding-top: 2.5rem; }
  .sidebar { position: static; }
  .specs-grid { grid-template-columns: repeat(2, 1fr); }
  .similar-grid { grid-template-columns: 1fr; }
  .similar-filler { display: none; }
  .vyhody-grid { grid-template-columns: 1fr; }
  .page-detail nav .nav-cta { display: none; }
  .gallery-hero { height: 300px; min-height: 0; }
}
@media (max-width: 820px) {
  .nav-links { display: none; } .burger { display: flex; }
  .dark-inner, .lokalita-grid, .kontakt-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .form-grid { grid-template-columns: 1fr; }
  .cta-band { flex-direction: column; text-align: center; }
  section { padding: 70px 5vw; }
  .foto-grid { grid-template-columns: repeat(2, 1fr); }
  .benefits-grid { grid-template-columns: 1fr; }
  .hero { padding-top: 250px; min-height: 0; }
  .hero-bg { background:
    linear-gradient(180deg, rgba(41,44,51,0) 0, rgba(41,44,51,0.10) 150px, rgba(41,44,51,0.88) 320px, #292C33 372px),
    url('../uploads/hero.webp') 70% 68px/auto 306px no-repeat, #292C33; }
  .hero h1 { font-size: 2.35rem; margin-bottom: 1rem; }
  .hero-tag { margin-bottom: 1rem; font-size: 11px; }
  .hero-sub { font-size: 16px; margin-bottom: 1.5rem; }
  .hero-pills { margin-bottom: 1.75rem; gap: 8px; }
  .hero-deco { display: none; }
  .dispozice-wrap { padding: 1.25rem; }
  .kontakt-person { padding: 1.25rem; gap: 1rem; }

  /* ceník jako karty */
  .cenik-table thead { display: none; }
  .cenik-table, .cenik-table tbody, .cenik-table tr, .cenik-table td { display: block; width: 100%; }
  .cenik-table tbody tr { border: 1px solid rgba(41,44,51,0.12); background: #fff; margin-bottom: 12px; padding: 14px 16px 16px; display: grid; grid-template-columns: 1fr 1fr; column-gap: 16px; }
  .cenik-table tbody td { padding: 5px 0; white-space: normal; font-size: 14px; }
  .cenik-table tbody td::before { content: attr(data-label); display: block; font-size: 10px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--gold-dark); font-weight: 600; }
  .cenik-table tbody td:first-child { grid-column: 1 / -1; font-size: 18px; padding-bottom: 8px; }
  .cenik-table tbody td:first-child::before, .cenik-table tbody td.td-link::before { display: none; }
  .cenik-table tbody td.td-link { grid-column: 1 / -1; padding-top: 10px; }
  .cenik-table tbody td.td-empty { display: none; }
}
@media (max-width: 480px) {
  .logo { font-size: 19px; } .logo svg { width: 26px; height: 26px; }
  .hero-ctas a { width: 100%; text-align: center; }
  .pill { font-size: 12px; padding: 6px 12px; }
}
