:root {
    --ink: #2D2925;
    --muted: #746d65;
    --soft: #f8f5ee;
    --cream: #f3eee3;
    --sand: #e7dcc9;
    --line: #2D2925;
    --white: #ffffff;
    --green: #375735;
    --yellow: #F9F5EF;
    --green-soft: #dff3e8;
    --amber: #c98b2c;
    --amber-soft: #fff1d6;
    --sold: #b8b0a5;
    --shadow: 0 24px 80px rgba(45, 41, 37, 0.12);
    --radius-xl: 28px;
    --radius-2xl: 40px;
    --container: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: var(--ink);
    background: var(--soft);
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, textarea { font: inherit; }

.container {
    width: min(var(--container), calc(100% - 40px));
    margin-inline: auto;
}

.site-header {
    position: fixed;
    inset: 0 0 auto;
    z-index: 50;
    border-bottom: 1px solid rgba(45, 41, 37, 0.08);
    background: rgba(255, 255, 255, 1);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 27px 0;
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 130px;
}

.brand-mark {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border-radius: 16px;
    background: var(--white);
    border: 1px solid var(--line);
    font-weight: 800;
    color: var(--ink);
    box-shadow: 0 10px 30px rgba(45, 41, 37, 0.08);
}

.brand img {
    width: auto;
    height: 55px;
}

.brand-name {
    display: none;
    font-family: "Playfair Display", serif;
    color: var(--ink);
    font-size: 22px;
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 30px;
    color: var(--ink);
    font-size: 16px;
    font-weight: 500;
}

.main-nav a { transition: color 0.2s ease; }
.main-nav a:hover { color: var(--ink); }

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    border: 0;
    border-radius: 999px;
    padding: 13px 22px;
    font-weight: 600;
    font-size: 14px;
    letter-spacing: 0.05em;
    text-align: center;
    text-transform: uppercase;
    cursor: pointer;
    transition: transform 0.22s ease, background 0.22s ease, color 0.22s ease, border-color 0.22s ease;
}

.btn-primary {
    background: var(--ink);
    color: var(--white);
    box-shadow: 0 14px 40px rgba(45, 41, 37, 0.14);
}
.btn-white {
    background: var(--white);
    color: var(--ink);
    border: 1px solid var(--line);
    box-shadow: 0 14px 40px rgba(45, 41, 37, 0.10);
}

.btn-green {
    background: var(--green);
    color: #fff;
    border: 1px solid var(--green);
    box-shadow: 0 14px 40px rgba(45, 41, 37, 0.10);
}
.btn-green:hover {
    background: var(--white);
    color: var(--green);
    border: 1px solid var(--green);
    box-shadow: 0 14px 40px rgba(45, 41, 37, 0.10);
}
.btn-ghost {
    background: rgba(255, 255, 255, 0.68);
    color: var(--ink);
    border: 1px solid rgba(45, 41, 37, 0.12);
    backdrop-filter: blur(12px);
}

.hero {
    position: relative;
    min-height: 100vh;
    padding: 100px 0 0px;
    overflow: hidden;
    background: var(--cream);
}

.hero-slider,
.hero-slider .swiper-wrapper,
.hero-slider .swiper-slide { height: 100vh; min-height: 720px; }

.hero-slide-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    transform: scale(1.04);
}

.hero-slide-bg::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(248, 245, 238, 0.76), rgba(248, 245, 238, 0.56), rgba(248, 245, 238, 0.34));
}

.hero-content {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    height: 100%;
    padding-top: 90px;
}

.hero-copy {
    max-width: 780px;
    color: var(--ink);
    animation: riseIn 0.9s ease both;
}

.eyebrow {
    display: inline-flex;
    margin: 0 0 22px;
    border-radius: 999px;
    padding: 9px 15px 9px 0;
    color: var(--ink);
    font-size: 14px;
    font-weight: 800;
    letter-spacing: 0.22em;
    text-transform: uppercase;
}

h1, h2 {
    font-family: "Playfair Display", Georgia, serif;
    margin: 0;
    letter-spacing: -0.04em;
    line-height: 0.98;
}

h1 { font-size: clamp(48px, 8vw, 84px); }
h2 { font-size: clamp(40px, 5.2vw, 72px); }

.green-h2 {
    color: var(--green);
}

.hero-copy p:not(.eyebrow) {
    max-width: 680px;
    margin: 28px 0 0;
    color: var(--ink);
    font-size: clamp(18px, 2vw, 22px);
    line-height: 1.65;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 36px;
}

.hero-stats {
    position: absolute;
    left: 50%;
    bottom: 50px;
    z-index: 4;
    width: min(var(--container), calc(100% - 40px));
    transform: translateX(-50%);
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    overflow: hidden;
    border: 1px solid rgba(45, 41, 37, 0.10);
    border-radius: 32px;
    background: rgba(255, 255, 255, 0.78);
    box-shadow: var(--shadow);
    backdrop-filter: blur(18px);
}

.stat {
    padding: 22px;
    color: var(--ink);
    border-left: 1px solid rgba(45, 41, 37, 0.10);
    text-align: center;
}

.stat:first-child { border-left: 0; }
.stat strong { display: block; font-size: clamp(24px, 3vw, 34px); }
.stat span { display: block; margin-top: 6px; color: var(--muted); font-size: 14px; }

.swiper-pagination-bullet { background: rgba(45, 41, 37, 0.35); }
.swiper-pagination-bullet-active { background: var(--ink); }

section { padding: 100px 0; }
.section-grid {
    display: grid;
    grid-template-columns: 0.95fr 1.05fr;
    gap: 56px;
    align-items: end;
}

.section-label {
    margin: 0 0 18px;
    color: var(--ink);
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.24em;
    text-transform: uppercase;
}

.lead {
    margin: 0;
    color: var(--ink);
    font-size: 18px;
    line-height: 1.8;
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-top: 52px;
}

.benefit-card {
    min-height: 280px;
    border-radius: var(--radius-xl);
    background: rgba(255, 255, 255, 0.78);
    padding: 30px;
    box-shadow: 0 16px 50px rgba(45, 41, 37, 0.06);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.benefit-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow);
}

.icon-box {
    width: 52px;
    height: 52px;
    display: grid;
    place-items: center;
    margin-bottom: 24px;
    border-radius: 18px;
    background: var(--cream);
    color: var(--ink);
    font-size: 24px;
}

.benefit-card h3,
.process-card h3 {
    margin: 0;
    font-size: 21px;
}

.benefit-card p,
.process-card p {
    margin: 14px 0 0;
    color: var(--muted);
    line-height: 1.7;
}

.plots-section {
    background: #FCFBFA;
    color: var(--ink);
}

.plots-layout {
    display: grid;
    gap: 46px;
    align-items: start;
}

.plots-info {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 40px;
}

.plots-info .lead { color: var(--muted); margin-top: 26px; }

.parcel-detail {
    margin-top: 32px;
    border-radius: 32px;
    background: rgba(255, 255, 255, 0.82);
    padding: 26px;
    box-shadow: var(--shadow);
    backdrop-filter: blur(16px);
}

.parcel-detail-head {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    align-items: flex-start;
}

.muted { color: var(--muted); font-size: 14px; }
.parcel-detail h3 { margin: 4px 0 0; font-size: 20px; }

.badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid transparent;
    border-radius: 999px;
    padding: 6px 12px;
    font-size: 14px;
    font-weight: 800;
    white-space: nowrap;
}

.badge.available { background: var(--green-soft); color: #136243; border-color: rgba(47, 143, 103, 0.22); }
.badge.reserved { background: var(--amber-soft); color: #8a5a12; border-color: rgba(201, 139, 44, 0.24); }
.badge.sold { background: #eee9e1; color: #6e665e; border-color: rgba(45, 41, 37, 0.10); }

.parcel-meta {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-top: 24px;
}

.meta-box {
    border-radius: 22px;
    background: var(--soft);
    padding: 17px;
}

.meta-box span { display: block; color: var(--muted); font-size: 13px; }
.meta-box strong { display: block; margin-top: 5px; color: var(--ink); font-size: 24px; }
.parcel-detail .btn { width: 100%; margin-top: 24px; }

.legend {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 20px;
    color: var(--muted);
    font-size: 14px;
}

.legend span {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.7);
    padding: 9px 13px;
}

.dot { width: 10px; height: 10px; border-radius: 999px; }
.dot.available { background: var(--green); }
.dot.reserved { background: var(--amber); }
.dot.sold { background: var(--sold); }

.map-card {

}

.map-wrap {
    position: relative;
}

.map-base {
}

.parcel-svg {
    position: absolute;
    inset: 0;
    z-index: 2;
    width: 100%;
    height: 100%;
}

.image-map {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.image-map g .free {
    fill: #3a8935;
}
.image-map g .reserved {
    fill: var(--amber);
}
.image-map g .reserved.active {
    fill: #ff9a00;
}
.image-map g .active {
    fill: #83d97d;
}

.image-map g .sold.active {
    cursor: not-allowed;
    fill: #f9f5ef;
}

.image-map g .noactive {
    fill: #f9f5ef !important;
}

.image-map .st3 {
    cursor: pointer;
    transition: fill 0.18s ease, stroke-width 0.18s ease;
    outline: none;
}

.parcel-label {
    pointer-events: none;
    fill: rgba(45, 41, 37, 0.9);
    font-size: 2.6px;
    font-weight: 800;
    text-anchor: middle;
}

.map-tag {
    position: absolute;
    z-index: 3;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid var(--line);
    padding: 13px 16px;
    color: var(--ink);
    font-size: 14px;
    font-weight: 800;
    box-shadow: 0 16px 38px rgba(45, 41, 37, 0.10);
    backdrop-filter: blur(12px);
}

.map-tag.top { top: 24px; left: 24px; }
.map-tag.bottom { right: 24px; bottom: 24px; }

.gallery-section {
    padding: 100px 0;
    background: var(--soft);
    overflow: hidden;
}

.gallery-head {
    display: flex;
    justify-content: space-between;
    align-items: end;
    gap: 32px;
    margin-bottom: 42px;
}

.gallery-head .lead { max-width: 430px; }

.gallery-full {
    width: 100vw;
    margin-left: calc(50% - 50vw);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    grid-auto-rows: 300px;
    gap: 12px;
    padding: 0 12px 12px;
}

.gallery-item {
    overflow: hidden;
    border-radius: 28px;
    background: var(--sand);
    box-shadow: 0 12px 40px rgba(45, 41, 37, 0.08);
    margin: 0;
}

.gallery-item:first-child { grid-column: span 2; grid-row: span 2; }
.gallery-item:nth-child(4),.gallery-item:nth-child(9),.gallery-item:nth-child(10) { grid-column: span 2; }
.gallery-item:nth-child(6) { grid-column: span 2; }
.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.35s ease;
}
.gallery-item:hover img { transform: scale(1.04); }




/* Styl pro pozadí lightboxu - nyní funguje jako perfektní centrovací kontejner */
.lightbox {
  display: none; /* Schovaný jako výchozí */
  position: fixed;
  z-index: 9999; /* Aby byl vždy úplně nahoře */
  left: 0;
  top: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(0, 0, 0, 0.9); /* Tmavé poloprůhledné pozadí */
  
  /* Flexbox se postará o vycentrování na střed */
  display: none; 
  align-items: center;     /* Vertikální centrování */
  justify-content: center; /* Horizontální centrování */
}

/* Aktivní stav lightboxu (zobrazí se pomocí JS) */
.lightbox.active {
  display: flex; /* Přepne z 'none' na 'flex' pro aktivaci centrování */
}

/* Obal pro obrázek a popisek, který drží obsah pohromadě přesně uprostřed */
.lightbox-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  max-width: 90%;
  max-height: 90%;
}

/* Styl pro velký obrázek */
.lightbox-content {
  max-width: 100%;
  max-height: 80vh; /* Maximální výška je 80 % výšky obrazovky, aby zbyl čas na popisek */
  object-fit: contain; /* Obrázek se nedeformuje a zachová si poměr stran */
  border-radius: 4px;
  animation: zoomIn 0.3s ease;
}

/* Popisek pod obrázkem */
.lightbox-caption {
  color: #fff;
  margin-top: 15px;
  font-size: 1.1rem;
  font-family: sans-serif;
  text-align: center;
  width: 100%;
}

/* Zavírací tlačítko (křížek) */
.lightbox-close {
  position: absolute;
  top: 20px;
  right: 35px;
  color: #fff;
  font-size: 40px;
  font-weight: bold;
  background: none;
  border: none;
  cursor: pointer;
  transition: color 0.2s;
}

.lightbox-close:hover {
  color: #bbb;
}

/* Společný styl pro obě navigační šipky */
.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%); /* Vertikální vycentrování šipek */
  background: rgba(0, 0, 0, 0.3);
  color: #fff;
  border: none;
  font-size: 30px;
  padding: 15px 20px;
  cursor: pointer;
  user-select: none;
  transition: background 0.2s, color 0.2s;
  z-index: 10000; /* Šipky musí být nad obrázkem */
  border-radius: 4px;
}

.lightbox-nav:hover {
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
}

/* Umístění levé a pravé šipky */
.lightbox-prev {
  left: 20px;
}

.lightbox-next {
  right: 20px;
}

/* Skrytí šipek na malých mobilech, aby nepřekážely přes fotku (volitelné) */
@media (max-width: 576px) {
  .lightbox-nav {
    padding: 10px 15px;
    font-size: 24px;
  }
  .lightbox-prev { left: 5px; }
  .lightbox-next { right: 5px; }
}

/* Animace pro zvětšení obrázku */
@keyframes zoomIn {
  from { transform: scale(0.95); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

.contact-owner {
    background: #fff;
    margin-top: -100px;
}

.contact-owner > div {
    display: flex;
    justify-content: space-between;
}

.contact-owner > div > div {
    font-family: "Playfair Display", Georgia, serif;
    margin: 0;
    letter-spacing: -0.04em;
    line-height: 0.98;
}

.process-section { background: var(--white); }
.process-grid { 
    display: grid; 
    grid-template-columns: 
    repeat(3, 1fr); gap: 24px; 
    margin-top: 100px
}
.process-text-grid { 
    display: grid; 
    grid-template-columns: 1fr; 
    gap: 24px; 
    margin-top: 100px
}
.process-card {
    border-radius: 32px;
    background: #fff;
    padding: 34px;
}
.process-number { color: var(--green); font-size: 15px; font-weight: 800; }

.contact-section {
    position: relative;
    overflow: hidden;
    background: #fff;
    color: var(--ink);
}   

.contact-grid {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 54px;
    align-items: center;
}

.contact-grid .lead { margin-top: 26px; color: var(--muted); }
.contact-phone { margin-top: 32px; }

.contact-form {
    border-radius: 40px;
    background: rgba(255, 255, 255, 0.84);
    padding: 34px;
    box-shadow: var(--shadow);
    backdrop-filter: blur(16px);
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.field.full { grid-column: span 2; }
label span {
    display: block;
    margin-bottom: 8px;
    color: var(--muted);
    font-size: 14px;
    font-weight: 700;
}

input, textarea {
    width: 100%;
    border: 1px solid #ebebeb;
    border-radius: 20px;
    background: var(--white);
    padding: 14px 16px;
    color: var(--ink);
    outline: none;
}

input:focus, textarea:focus { box-shadow: 0 0 0 3px rgba(45, 41, 37, 0.08); }
textarea { min-height: 130px; resize: vertical; }
.form-note { margin: 14px 0 0; color: var(--muted); text-align: center; font-size: 12px; }

@keyframes riseIn {
    from { opacity: 0; transform: translateY(26px); }
    to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 1099px) {
    .plots-info {
        grid-template-columns: 1fr;
    }
}
@media (max-width: 1024px) {
    .main-nav { display: none; }
    .benefits-grid { grid-template-columns: repeat(2, 1fr); }
    .section-grid, .plots-layout, .contact-grid { grid-template-columns: 1fr; }
    .plots-info { position: static; }
    .gallery-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 720px) {
    .container { width: min(100% - 28px, var(--container)); }
    .brand img { display: none; }
    .brand-name { display: block; }
    .header-inner { padding: 12px 0; }
    .site-header .btn { padding: 11px 14px; font-size: 13px; }
    .hero-slider, .hero-slider .swiper-wrapper, .hero-slider .swiper-slide { min-height: 840px; }
    .hero-content { align-items: flex-start; padding-top: 134px; }
    .hero-slide-bg::after { background: linear-gradient(180deg, rgba(248,245,238,0.98), rgba(248,245,238,0.82), rgba(248,245,238,0.58)); }
    .hero-stats { grid-template-columns: repeat(2, 1fr); bottom: 18px; border-radius: 24px; }
    .stat { padding: 16px; }
    section { padding: 72px 0; }
    .benefits-grid, .process-grid, .parcel-meta, .form-grid { grid-template-columns: 1fr; }
    .field.full { grid-column: auto; }
    .gallery-section { padding-top: 72px; }
    .gallery-head { display: block; }
    .gallery-head .lead { margin-top: 20px; }
    .gallery-grid { grid-template-columns: 1fr; grid-auto-rows: 260px; padding: 0 8px 8px; gap: 8px; }
    .gallery-item:first-child, .gallery-item:nth-child(4), .gallery-item:nth-child(6) { grid-column: auto; grid-row: auto; }
    .gallery-item { border-radius: 22px; }
    .parcel-detail-head { flex-direction: column; }
}