/* =====================================================================
   Apartmány Knížkovi – styl webu
   Aesthetic: moderní "venkovský" / Česká Kanada
   - teplá hliněná/lněná paleta, les a kámen jako akcenty
   - serifový display font (Fraunces) + čistý groteskní text (Manrope)
   - papírová textura, jemné stíny, zaoblené ale ne přecukrované
   ===================================================================== */

/* Fonty se načítají přes <link rel=preconnect>+<link> v hlavičce (rychlejší než @import). */

:root {
    --linen:      #f5efe3;   /* pozadí, len */
    --linen-2:    #efe7d6;
    --paper:      #fbf8f1;
    --ink:        #2d2a24;   /* text */
    --ink-soft:   #5c564a;
    --forest:     #3f5641;   /* lesní zeleň – primární akcent */
    --forest-2:   #4f6b51;
    --clay:       #b4623d;   /* hliněná oranžová – sekundární akcent */
    --clay-soft:  #c9764f;
    --stone:      #d9cfbb;   /* kámen / okraje */
    --gold:       #c9a14a;
    --shadow:     rgba(63, 86, 65, 0.12);
    --radius:     14px;
    --maxw:       1140px;
}

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

html { scroll-behavior: smooth; }

body {
    font-family: 'Manrope', system-ui, sans-serif;
    color: var(--ink);
    background-color: var(--linen);
    /* jemná papírová textura */
    background-image:
        radial-gradient(circle at 20% 10%, rgba(255,255,255,.5) 0, transparent 40%),
        radial-gradient(circle at 80% 90%, rgba(201,161,74,.06) 0, transparent 50%);
    line-height: 1.65;
    font-size: 17px;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
    font-family: 'Fraunces', Georgia, serif;
    font-weight: 500;
    line-height: 1.15;
    color: var(--ink);
    letter-spacing: -0.01em;
}

h1 { font-size: clamp(2.4rem, 6vw, 4.2rem); }
h2 { font-size: clamp(1.8rem, 4vw, 2.8rem); }
h3 { font-size: 1.35rem; }

a { color: var(--forest); text-decoration: none; transition: color .2s; }
a:hover { color: var(--clay); }

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

.eyebrow {
    display: inline-block;
    font-size: .82rem;
    letter-spacing: .18em;
    text-transform: uppercase;
    color: var(--clay);
    font-weight: 600;
    margin-bottom: .6rem;
}

/* ---------- navigace ---------- */
header.site {
    position: sticky; top: 0; z-index: 50;
    background: rgba(245, 239, 227, .88);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--stone);
}
.nav {
    display: flex; align-items: center; justify-content: space-between;
    padding: 14px 24px; max-width: var(--maxw); margin: 0 auto;
}
.brand { display: flex; align-items: center; gap: 12px; font-family: 'Fraunces', serif; font-size: 1.25rem; font-weight: 600; color: var(--ink); }
.brand .mark {
    width: 40px; height: 40px; border-radius: 10px;
    background: var(--forest); color: var(--linen);
    display: grid; place-items: center; font-weight: 600; letter-spacing: -1px;
}
.nav ul { list-style: none; display: flex; gap: 26px; align-items: center; }
.nav ul a { color: var(--ink-soft); font-weight: 500; font-size: .98rem; }
.nav ul a:hover { color: var(--forest); }
.nav-cta {
    background: var(--clay); color: var(--linen) !important;
    padding: 9px 18px; border-radius: 999px; font-weight: 600;
}
.nav-cta:hover { background: var(--clay-soft); }
.nav-toggle { display: none; background: none; border: 0; font-size: 1.6rem; cursor: pointer; color: var(--ink); }

/* ---------- hero ---------- */
.hero { position: relative; padding: 72px 0 60px; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 48px; align-items: center; }
.hero p.lead { font-size: 1.2rem; color: var(--ink-soft); margin: 1.2rem 0 1.8rem; max-width: 34ch; }
.hero-img {
    border-radius: var(--radius); overflow: hidden;
    box-shadow: 0 30px 60px -20px var(--shadow);
    transform: rotate(1.2deg);
    border: 6px solid var(--paper);
}
.hero-img img { width: 100%; display: block; aspect-ratio: 4/3.2; object-fit: cover; }

.btn {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 13px 24px; border-radius: 999px; font-weight: 600;
    font-size: 1rem; cursor: pointer; border: 0; transition: transform .15s, background .2s;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--forest); color: var(--linen); }
.btn-primary:hover { background: var(--forest-2); color: var(--linen); }
.btn-ghost { background: transparent; color: var(--forest); border: 1.5px solid var(--forest); }
.btn-ghost:hover { background: var(--forest); color: var(--linen); }
.btn-row { display: flex; gap: 14px; flex-wrap: wrap; }

/* ---------- pruh vlastností ---------- */
.facts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-top: 48px; }
.fact {
    background: var(--paper); border: 1px solid var(--stone);
    border-radius: var(--radius); padding: 18px 20px;
}
.fact b { display: block; font-family: 'Fraunces', serif; font-size: 1.15rem; }
.fact span { color: var(--ink-soft); font-size: .92rem; }

/* ---------- sekce ---------- */
section.block { padding: 76px 0; }
section.block.alt { background: var(--linen-2); }
.section-head { max-width: 56ch; margin-bottom: 40px; }
.section-head h1 { font-size: clamp(1.8rem, 4vw, 2.8rem); }
.section-head p { color: var(--ink-soft); margin-top: .8rem; }

/* karty apartmánů */
.units { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.unit-card {
    background: var(--paper); border: 1px solid var(--stone);
    border-radius: var(--radius); padding: 28px; box-shadow: 0 12px 30px -22px var(--shadow);
}
.unit-card h3 { margin-bottom: .4rem; }
.unit-card ul { list-style: none; margin: 16px 0; }
.unit-card li { padding: 6px 0 6px 26px; position: relative; color: var(--ink-soft); }
.unit-card li::before { content: '·'; position: absolute; left: 8px; color: var(--clay); font-weight: 700; font-size: 1.3rem; line-height: 1; }
.tag { display: inline-block; background: var(--forest); color: var(--linen); font-size: .8rem; padding: 4px 12px; border-radius: 999px; font-weight: 600; }

/* vybavení */
.amen { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 8px; }
.amen div { background: var(--paper); border: 1px solid var(--stone); border-radius: 10px; padding: 12px 16px; font-weight: 500; }

/* galerie */
.gallery { columns: 3; column-gap: 14px; }
.gallery img { width: 100%; margin-bottom: 14px; border-radius: 10px; display: block; break-inside: avoid; cursor: zoom-in; transition: filter .2s, transform .2s; }
.gallery img:hover { filter: brightness(1.04); transform: scale(1.01); }

/* lightbox */
.lightbox { position: fixed; inset: 0; z-index: 100; display: none; align-items: center; justify-content: center;
    background: rgba(45, 42, 36, .93); padding: 40px; backdrop-filter: blur(3px); }
.lightbox.open { display: flex; }
.lightbox img { max-width: 92vw; max-height: 86vh; border-radius: 10px; box-shadow: 0 30px 70px -20px rgba(0,0,0,.7); }
.lb-btn { position: absolute; background: rgba(245, 239, 227, .14); color: var(--linen); border: 0; cursor: pointer;
    display: grid; place-items: center; border-radius: 999px; transition: background .2s; line-height: 1; }
.lb-btn:hover { background: rgba(245, 239, 227, .28); }
.lb-close { top: 20px; right: 24px; width: 48px; height: 48px; font-size: 2rem; }
.lb-nav { top: 50%; transform: translateY(-50%); width: 54px; height: 54px; font-size: 2.2rem; }
.lb-prev { left: 20px; } .lb-next { right: 20px; }
.lb-caption { position: absolute; bottom: 22px; left: 0; right: 0; text-align: center; color: var(--linen); opacity: .85; font-size: .92rem; padding: 0 20px; }
@media (max-width: 560px){ .lb-nav { width: 44px; height: 44px; font-size: 1.8rem; } .lightbox { padding: 16px; } }

/* okolí */
.places { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.place { background: var(--paper); border: 1px solid var(--stone); border-radius: var(--radius); padding: 24px; }
.place h3 { color: var(--forest); margin-bottom: .4rem; }

/* kontakt */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; }
.contact-card { background: var(--paper); border: 1px solid var(--stone); border-radius: var(--radius); padding: 28px; }
.contact-card a { font-weight: 600; }

/* patička */
footer.site { background: var(--forest); color: var(--linen); padding: 48px 0 28px; margin-top: 40px; }
footer.site a { color: var(--linen); opacity: .9; }
footer.site a:hover { opacity: 1; color: var(--gold); }
.foot-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 32px; }
.foot-bottom { border-top: 1px solid rgba(255,255,255,.18); margin-top: 28px; padding-top: 18px; font-size: .88rem; opacity: .8; }

/* formuláře (rezervace, check-in, admin) */
.form-card { background: var(--paper); border: 1px solid var(--stone); border-radius: var(--radius); padding: 30px; max-width: 640px; }
label { display: block; font-weight: 600; margin: 14px 0 6px; font-size: .95rem; }
input, select, textarea {
    width: 100%; padding: 11px 14px; border: 1.5px solid var(--stone);
    border-radius: 10px; font-family: inherit; font-size: 1rem; background: var(--linen);
    color: var(--ink);
}
input:focus, select:focus, textarea:focus { outline: 0; border-color: var(--forest); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.note { color: var(--ink-soft); font-size: .9rem; }
.alert { padding: 14px 18px; border-radius: 10px; margin: 16px 0; }
.alert.ok { background: #e7f0e4; border: 1px solid var(--forest-2); color: var(--forest); }
.alert.err { background: #f6e3da; border: 1px solid var(--clay); color: var(--clay); }

/* ---------- rozšířený obsah titulní strany ---------- */
.hero-points { list-style: none; display: flex; flex-wrap: wrap; gap: 8px 22px; margin-top: 22px; }
.hero-points li { position: relative; padding-left: 24px; color: var(--ink-soft); font-weight: 500; }
.hero-points li::before { content: '✓'; position: absolute; left: 0; color: var(--forest); font-weight: 700; }

.content-split { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.text-card { background: var(--paper); border: 1px solid var(--stone); border-radius: var(--radius); padding: 28px; }
.text-card p + p { margin-top: .8rem; }
.text-card.accent { background: var(--forest); color: var(--linen); }
.text-card.accent h3 { color: var(--linen); }

.feature-list { list-style: none; margin: 14px 0 0; }
.feature-list li { position: relative; padding: 6px 0 6px 28px; color: var(--ink-soft); break-inside: avoid; }
.feature-list li::before { content: '✓'; position: absolute; left: 4px; top: 6px; color: var(--clay); font-weight: 700; }
.text-card.accent .feature-list li { color: var(--linen); opacity: .95; }
.text-card.accent .feature-list li::before { color: var(--gold); }

.feature-rows { display: flex; flex-direction: column; gap: 32px; margin-top: 44px; }
.feature-row { display: grid; grid-template-columns: 1.05fr 1fr; gap: 36px; align-items: center; }
.feature-row.reverse { direction: rtl; }
.feature-row.reverse > * { direction: ltr; }
.feature-row img { width: 100%; display: block; border-radius: var(--radius); border: 6px solid var(--paper); box-shadow: 0 24px 50px -28px var(--shadow); aspect-ratio: 4/3; object-fit: cover; }
.feature-row h3 { margin-bottom: .5rem; }
.feature-row p + p { margin-top: .7rem; color: var(--ink-soft); }

.info-grid { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }

.detail-strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-top: 30px; }
.detail-card { margin: 0; }
.detail-card img { width: 100%; display: block; border-radius: 10px; aspect-ratio: 4/3; object-fit: cover; }
.detail-card figcaption { font-size: .85rem; color: var(--ink-soft); margin-top: 8px; }

.pricing-grid { grid-template-columns: repeat(3, 1fr); }

.map-card { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--stone); min-height: 340px; box-shadow: 0 12px 30px -22px var(--shadow); }
.map-card iframe { width: 100%; height: 100%; min-height: 340px; border: 0; display: block; }

.service-band { background: var(--paper); border: 1px solid var(--stone); border-left: 5px solid var(--clay); border-radius: var(--radius); padding: 32px; display: flex; justify-content: space-between; align-items: center; gap: 28px; flex-wrap: wrap; }
.service-band .meta { display: flex; flex-direction: column; gap: 4px; color: var(--ink-soft); font-size: .92rem; text-align: right; }

/* responsivita */
@media (max-width: 900px) {
    .hero-grid, .contact-grid { grid-template-columns: 1fr; }
    .units, .field-row { grid-template-columns: 1fr; }
    .facts, .amen, .places { grid-template-columns: 1fr 1fr; }
    .foot-grid { grid-template-columns: 1fr; }
    .gallery { columns: 2; }
    .content-split, .pricing-grid, .feature-row, .feature-row.reverse { grid-template-columns: 1fr; }
    .feature-row.reverse { direction: ltr; }
    .detail-strip { grid-template-columns: 1fr 1fr; }
    .service-band { flex-direction: column; align-items: flex-start; }
    .service-band .meta { text-align: left; }
    .nav ul { display: none; }
    .nav ul.open { display: flex; position: absolute; top: 64px; right: 16px; flex-direction: column; background: var(--paper); padding: 18px 22px; border-radius: var(--radius); border: 1px solid var(--stone); box-shadow: 0 20px 40px -16px var(--shadow); }
    .nav-toggle { display: block; }
}
@media (max-width: 560px) {
    .facts, .amen, .places, .gallery { grid-template-columns: 1fr; columns: 1; }
    .feature-list[style*="columns"] { columns: 1 !important; }
}
