/* Písma (uložená lokálně, bez načítání z Googlu) */
/* latin-ext */
@font-face {
  font-family: 'Nunito Sans';
  font-style: italic;
  font-weight: 400;
  font-stretch: 100%;
  font-display: swap;
  src: url(/assets/fonts/nunito-sans-italic-latin-ext.woff2) format('woff2');
  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-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Nunito Sans';
  font-style: italic;
  font-weight: 400;
  font-stretch: 100%;
  font-display: swap;
  src: url(/assets/fonts/nunito-sans-italic-latin.woff2) format('woff2');
  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;
}
/* latin-ext */
@font-face {
  font-family: 'Nunito Sans';
  font-style: normal;
  font-weight: 300 800;
  font-stretch: 100%;
  font-display: swap;
  src: url(/assets/fonts/nunito-sans-normal-latin-ext.woff2) format('woff2');
  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-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Nunito Sans';
  font-style: normal;
  font-weight: 300 800;
  font-stretch: 100%;
  font-display: swap;
  src: url(/assets/fonts/nunito-sans-normal-latin.woff2) format('woff2');
  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;
}
/* latin-ext */
@font-face {
  font-family: 'Oswald';
  font-style: normal;
  font-weight: 300 600;
  font-display: swap;
  src: url(/assets/fonts/oswald-normal-latin-ext.woff2) format('woff2');
  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-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Oswald';
  font-style: normal;
  font-weight: 300 600;
  font-display: swap;
  src: url(/assets/fonts/oswald-normal-latin.woff2) format('woff2');
  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;
}

/* ==========================================================================
   Pavelka Reality – vzhled webu
   ========================================================================== */
:root {
  --navy: #091d35;
  --navy-2: #1d2d42;
  --slate: #324158;
  --slate-light: #b8c3d1;
  --ice: #e4ecf2;
  --paper: #f4f6f8;
  --white: #fff;
  --text: #2b2b2b;
  --muted: #5d6673;
  --blue: #23739e;
  --accent: #f96f6c;
  --accent-strong: #e0423e;
  --radius: 4px;
  --wrap: 1140px;
  --head: "Oswald", "Arial Narrow", sans-serif;
  --body: "Nunito Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--white); color: var(--text); font: 400 17px/1.65 var(--body); }
img, video, iframe { display: block; max-width: 100%; }
img { height: auto; }
a { color: var(--blue); }
a:hover { color: var(--navy); }
h1, h2, h3 { font-family: var(--head); font-weight: 500; line-height: 1.2; color: var(--navy); margin: 0 0 .6em; }
h1 { font-size: clamp(1.9rem, 4vw, 2.8rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); }
h3 { font-size: 1.3rem; }
p { margin: 0 0 1em; }
ul { padding-left: 1.2em; }
li { margin-bottom: .35em; }
strong.hl, .hl { color: var(--blue); font-weight: 700; text-transform: uppercase; letter-spacing: .02em; }

.wrap { width: min(var(--wrap), 100% - 32px); margin-inline: auto; }
.wrap--narrow { width: min(860px, 100% - 32px); margin-inline: auto; }
.center { text-align: center; }
.skip { position: absolute; left: -999px; top: 0; background: var(--white); padding: 8px 12px; z-index: 100; }
.skip:focus { left: 8px; }
.icon { width: 40px; height: 40px; color: var(--accent-strong); }

/* --- Hlavička --------------------------------------------------------- */
.topbar { position: sticky; top: 0; z-index: 50; background: var(--navy); color: var(--white); }
.topbar__inner { width: min(1300px, 100% - 32px); margin-inline: auto; display: flex; align-items: center; justify-content: space-between; min-height: 60px; }
.brand-small { display: inline-flex; align-items: center; gap: 10px; color: var(--white); text-decoration: none;
  font: 500 15px/1 var(--head); text-transform: uppercase; letter-spacing: .04em; }
.brand-small img { width: 30px; height: auto; }
.brand-small:hover { color: var(--white); }
.nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 4px; }
.nav li { margin: 0; }
.nav a { display: block; padding: 8px 12px; color: var(--white); text-decoration: none; font-size: 15px; border-bottom: 2px solid transparent; }
.nav a:hover { color: var(--accent); }
.nav a[aria-current="page"] { color: var(--accent); border-bottom-color: var(--accent); }
.nav-toggle { display: none; background: none; border: 0; padding: 10px; cursor: pointer; }
.nav-toggle span { display: block; width: 24px; height: 2px; margin: 5px 0; background: var(--white); transition: transform .2s, opacity .2s; }

.masthead { background: var(--navy); color: var(--white); text-align: center; padding: 8px 16px 34px; }
.masthead img { width: 96px; margin: 0 auto 10px; }
.masthead__name { margin: 0; font: 500 clamp(1.8rem, 4.5vw, 3.2rem)/1.1 var(--head); text-transform: uppercase; letter-spacing: .02em; }

@media (max-width: 820px) {
  .nav-toggle { display: block; }
  .nav { position: absolute; left: 0; right: 0; top: 100%; background: var(--navy); display: none; border-top: 1px solid var(--slate); }
  .nav.is-open { display: block; }
  .nav ul { flex-direction: column; padding: 8px 16px 16px; }
  .nav a { padding: 12px 4px; font-size: 17px; border-bottom: 1px solid var(--navy-2); }
  .nav a[aria-current="page"] { border-bottom-color: var(--navy-2); }
  .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); }
  .masthead { padding-bottom: 22px; }
  .masthead img { width: 64px; }
}

/* --- Tlačítka a drobnosti ------------------------------------------- */
.btn { display: inline-block; padding: 12px 26px; background: var(--navy-2); color: var(--white); text-decoration: none;
  font: 500 16px/1.2 var(--head); letter-spacing: .04em; border: 0; border-radius: var(--radius); cursor: pointer; transition: background .2s; }
.btn:hover { background: var(--blue); color: var(--white); }
.btn--accent { background: var(--accent-strong); }
.btn--accent:hover { background: var(--accent); color: var(--navy); }
.eyebrow { font: 300 15px/1.6 var(--head); text-transform: uppercase; letter-spacing: .3em; color: var(--navy); margin-bottom: 1.2em; }
.eyebrow--light { color: var(--ice); }
.badge { font: 500 clamp(1.2rem, 2.5vw, 1.6rem)/1.2 var(--head); color: var(--blue); text-transform: uppercase; letter-spacing: .04em; margin-bottom: .4em; }

/* --- Sekce --------------------------------------------------------- */
.section { padding: clamp(48px, 7vw, 88px) 0; }
.section--ice { background: var(--ice); }
.section--paper { background: var(--paper); }
.section--slate { background: var(--slate-light); }
.section--navy { background: var(--navy); color: var(--ice); }
.section--navy h2, .section--navy h3 { color: var(--white); }
.section__title { text-align: center; margin-bottom: 1.2em; }
.section__title--spaced { letter-spacing: .2em; font-weight: 400; }
.prose { max-width: 860px; margin-inline: auto; }
.prose h3 { margin-top: 1.6em; }

/* Úvodní fotka */
.hero { position: relative; min-height: min(78vh, 640px); display: grid; place-items: center; text-align: center; color: var(--white);
  background: linear-gradient(rgba(9, 29, 53, .45), rgba(9, 29, 53, .6)), var(--bg) center / cover no-repeat; padding: 64px 16px; }
.hero h1 { color: var(--white); font-weight: 400; letter-spacing: .18em; font-size: clamp(1.5rem, 4vw, 2.6rem); margin-bottom: 1.2em; }
.hero p { max-width: 640px; margin: 0 auto 2em; font-size: 1.1rem; }
.hero .btn { background: var(--white); color: var(--navy); }
.hero .btn:hover { background: var(--accent); }

/* Pruh s fotkou */
.band { min-height: 320px; background: linear-gradient(rgba(9, 29, 53, .72), rgba(9, 29, 53, .72)), var(--bg) center / cover no-repeat;
  display: grid; place-items: center; text-align: center; color: var(--white); padding: 56px 16px; }
.band h1, .band h2 { color: var(--white); font-weight: 400; letter-spacing: .12em; margin: 0; }
@media (min-width: 900px) and (prefers-reduced-motion: no-preference) { .band, .hero { background-attachment: fixed; } }

/* Karty nabídek */
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(320px, 100%), 1fr)); gap: 28px; }
.card { display: flex; flex-direction: column; background: var(--white); color: var(--text); text-decoration: none; border-radius: var(--radius);
  overflow: hidden; box-shadow: 0 2px 14px rgba(9, 29, 53, .1); transition: transform .2s, box-shadow .2s; }
.card:hover { transform: translateY(-3px); box-shadow: 0 8px 28px rgba(9, 29, 53, .16); color: var(--text); }
.card__img { position: relative; aspect-ratio: 3 / 2; overflow: hidden; background: var(--ice); }
.card__img img { width: 100%; height: 100%; object-fit: cover; }
.card__badge { position: absolute; left: 12px; top: 12px; background: var(--navy); color: var(--white); font: 500 13px/1 var(--head);
  letter-spacing: .08em; text-transform: uppercase; padding: 7px 10px; border-radius: 2px; }
.card__body { padding: 20px 22px 24px; display: flex; flex-direction: column; flex: 1; }
.card__body h3 { font-size: 1.25rem; }
.card__body p { color: var(--muted); font-size: 15px; }
.card__more { margin-top: auto; color: var(--blue); font: 500 15px var(--head); letter-spacing: .03em; }

/* Prodané */
.sold-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.sold { margin: 0; text-align: center; }
.sold img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: var(--radius); }
.sold figcaption { margin-top: 10px; font-size: 15px; }
.sold figcaption span { display: block; font: 500 13px var(--head); letter-spacing: .12em; text-transform: uppercase; color: var(--accent-strong); }
@media (max-width: 900px) { .sold-grid { grid-template-columns: repeat(2, 1fr); } }

/* Reference */
.quotes { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); gap: 24px; }
.quote { margin: 0; padding: 28px; background: var(--navy-2); color: var(--ice); border-radius: var(--radius); position: relative; }
.quote::before { content: "“"; position: absolute; top: -6px; left: 18px; font: 500 72px/1 var(--head); color: var(--accent); }
.quote p { margin-top: 18px; font-size: 16px; }
.quote footer { font: 400 15px var(--head); letter-spacing: .06em; color: var(--white); }
.section--ice .quote, .section--paper .quote { background: var(--white); color: var(--text); box-shadow: 0 2px 14px rgba(9, 29, 53, .08); }
.section--ice .quote footer, .section--paper .quote footer { color: var(--navy); }

/* Kontakty s ikonami */
.contact-strip { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; text-align: center; }
.contact-strip h3 { margin: 12px 0 6px; font-size: 1.15rem; }
.contact-strip .icon { margin-inline: auto; }
.contact-strip p { margin: 0; }
@media (max-width: 700px) { .contact-strip { grid-template-columns: 1fr; gap: 32px; } }

/* Tým */
.team { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr)); gap: 32px; max-width: 860px; margin-inline: auto; }
.person { text-align: center; }
.person img { width: 220px; height: 220px; object-fit: cover; border-radius: 50%; margin: 0 auto 18px; }
.person h3 { margin-bottom: .2em; }
.person p { margin: 0 0 .3em; }
.person__role { color: var(--muted); }

/* --- Detail nemovitosti --------------------------------------------- */
.prop-hero { min-height: min(72vh, 600px); display: grid; place-items: center; padding: 48px 16px;
  background: var(--bg) center / cover no-repeat; }
.prop-hero__box { background: rgba(228, 236, 242, .82); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  padding: clamp(24px, 4vw, 44px) clamp(20px, 5vw, 56px); text-align: center; max-width: 760px; border-radius: var(--radius); }
.prop-hero__box h1 { margin: 0; }
.prop-hero__sub { margin: .8em 0 0; font-size: 1.05rem; color: var(--navy-2); }

.stats { background: var(--navy-2); color: var(--ice); padding: 36px 0; }
.stats__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 20px; text-align: center; }
.stats strong { display: block; font: 500 clamp(1.8rem, 3.5vw, 2.4rem)/1.1 var(--head); color: var(--white); }
.stats span { font-size: 15px; }

.gallery { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-bottom: 32px; }
.gallery__item { position: relative; display: block; aspect-ratio: 4 / 3; overflow: hidden; background: var(--ice); border-radius: 2px; }
.gallery__item img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s; }
.gallery__item:hover img { transform: scale(1.04); }
.gallery__item--more { display: none; }
.gallery__more { position: absolute; inset: 0; display: grid; place-items: center; background: rgba(9, 29, 53, .62); color: var(--white);
  font: 500 1.4rem var(--head); letter-spacing: .04em; }
.gallery:not(.has-js) .gallery__item--more { display: block; }
.gallery:not(.has-js) .gallery__more { display: none; }
@media (min-width: 700px) { .gallery--feature .gallery__item:first-child { grid-column: span 2; grid-row: span 2; } }
@media (max-width: 700px) { .gallery { grid-template-columns: repeat(2, 1fr); } .gallery--feature .gallery__item:first-child { grid-column: span 2; } }

.video { width: 100%; aspect-ratio: 16 / 9; background: #000; border-radius: var(--radius); }

.split { display: grid; grid-template-columns: 1fr 1.4fr; }
.split--reverse { grid-template-columns: 1.4fr 1fr; }
.split--reverse .split__text { order: 2; }
.split__text { padding: clamp(32px, 6vw, 72px) clamp(16px, 5vw, 64px); background: var(--paper); align-self: stretch; display: flex; flex-direction: column; justify-content: center; }
.split__media { background: var(--ice); }
.split__media img { width: 100%; height: 100%; object-fit: cover; }
.split__media--contain img { object-fit: contain; padding: 16px; }
@media (max-width: 860px) { .split, .split--reverse { grid-template-columns: 1fr; } .split--reverse .split__text { order: 0; } }

.rooms { width: 100%; border-collapse: collapse; font-size: 15px; margin-bottom: 1.4em; }
.rooms caption { text-align: left; font: 500 1.05rem var(--head); color: var(--navy); padding-bottom: 6px; }
.rooms td { padding: 5px 0; border-bottom: 1px solid #d5dde5; }
.rooms td:last-child { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(420px, 100%), 1fr)); gap: 24px; }
.plans figure { margin: 0; }
.plans img { width: 100%; border-radius: var(--radius); background: var(--white); }
.plans figcaption { font-size: 14px; color: var(--muted); margin-top: 6px; }
.info-box { background: var(--ice); border-left: 4px solid var(--blue); padding: 16px 20px; margin: 1.4em 0; border-radius: 0 var(--radius) var(--radius) 0; }

.address { display: grid; grid-template-columns: minmax(240px, 1fr) 2fr; background: var(--navy-2); }
.address__box { background: var(--ice); padding: 40px clamp(20px, 4vw, 48px); }
.address__box h2 { font-size: 1.7rem; }
.map { position: relative; min-height: 360px; }
.map iframe { width: 100%; height: 100%; min-height: 360px; border: 0; }
.map__link { position: absolute; right: 10px; bottom: 10px; background: var(--white); padding: 6px 10px; font-size: 13px; border-radius: 2px; box-shadow: 0 1px 6px rgba(0,0,0,.2); }
@media (max-width: 760px) { .address { grid-template-columns: 1fr; } }

/* --- Kontaktní formulář --------------------------------------------- */
.contact-form { background: var(--navy-2); color: var(--ice); padding: clamp(48px, 7vw, 80px) 0; }
.contact-form__grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 48px; }
.contact-form__lead a { color: var(--white); }
@media (max-width: 820px) { .contact-form__grid { grid-template-columns: 1fr; gap: 16px; } }
.form label { display: block; font-size: 14px; margin-bottom: 18px; color: var(--ice); }
.form input:not([type=radio]):not([type=checkbox]), .form textarea { display: block; width: 100%; margin-top: 4px; padding: 8px 2px; font: inherit; font-size: 16px;
  color: var(--white); background: transparent; border: 0; border-bottom: 1px solid var(--slate-light); border-radius: 0; }
.form textarea { border: 1px solid var(--slate-light); padding: 8px; resize: vertical; }
.form input:focus, .form textarea:focus { outline: none; border-color: var(--accent); }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.form__choices { border: 0; padding: 0; margin: 0 0 18px; display: flex; flex-wrap: wrap; gap: 4px 22px; font-size: 14px; }
.form__choices legend { float: left; margin-right: 16px; padding: 0; }
.form__choices label { margin: 0; display: inline-flex; align-items: center; gap: 6px; }
.form__choices input { accent-color: var(--accent); }
.form__status { margin: 14px 0 0; min-height: 1.5em; font-weight: 600; }
.form__status.is-ok { color: #8fe3a8; }
.form__status.is-err { color: var(--accent); }
.hp { position: absolute; left: -9999px; }

/* --- Patička -------------------------------------------------------- */
.footer { background: var(--navy); color: var(--ice); padding: 40px 0; font-size: 14px; }
.footer__grid { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.footer address { font-style: normal; line-height: 1.8; }
.footer a { color: var(--ice); }
.footer__small { margin: 12px 0 0; opacity: .7; }

/* --- Lightbox ------------------------------------------------------- */
.lightbox { position: fixed; inset: 0; z-index: 200; background: rgba(5, 14, 26, .94); display: grid; place-items: center; }
.lightbox[hidden] { display: none; }
.lightbox img { max-width: 94vw; max-height: 86vh; object-fit: contain; user-select: none; }
.lightbox button { position: absolute; background: rgba(255,255,255,.08); color: var(--white); border: 0; cursor: pointer; font: 300 44px/1 var(--body);
  width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; }
.lightbox button:hover { background: rgba(255,255,255,.2); }
.lightbox__close { top: 16px; right: 16px; }
.lightbox__prev { left: 16px; top: 50%; transform: translateY(-50%); }
.lightbox__next { right: 16px; top: 50%; transform: translateY(-50%); }
.lightbox__count { position: absolute; bottom: 14px; left: 0; right: 0; text-align: center; color: var(--ice); font-size: 14px; margin: 0; }
@media (max-width: 600px) { .lightbox__prev, .lightbox__next { top: auto; bottom: 8px; transform: none; } }

/* 404 */
.notfound { text-align: center; padding: 96px 16px; }

/* Doplňky pro obsah z administrace */
.center-text { text-align: center; margin-bottom: 28px; }
.center-text ul { text-align: left; display: inline-block; }
.info-box h3 { margin: 0 0 .4em; font-size: 1.15rem; }
.info-box p:last-child { margin-bottom: 0; }
.energy { display: inline-block; background: var(--paper); border: 1px solid #d5dde5; padding: 8px 14px; border-radius: var(--radius); font-size: 15px; }
.sold a { display: block; }
.prose h2 { margin-top: .2em; }
