:root {
  --navy: #274060;
  --navy-dark: #1b2d47;
  --sand: #E1C9A9;
  --sand-light: #f0e6d8;
  --ink: #20344e;
  --bg: #f7f5f1;
  --white: #fff;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "IBM Plex Sans", Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
}

h1, h2, h3 {
  font-family: "Alegreya Sans", Georgia, serif;
  color: var(--navy);
  margin: 0 0 .5em;
}

a { color: inherit; }

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

.container { max-width: 1100px; margin: 0 auto; padding: 0 20px; }

/* ---------- Hero (split: panel + photo, jak w oryginalnej wersji strony) ---------- */
.hero-split {
  display: flex;
  min-height: 100vh;
  padding: 0; /* nadpisuje ogólną regułę "section { padding: 70px 0; }" poniżej */
}
.hero-split__panel {
  flex: 0 0 42%;
  max-width: 42%;
  background: var(--white);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 40px 48px 56px;
}
.hero-split__logo img { width: 104px; display: block; }
.hero-split__text h1 {
  font-size: clamp(1.9rem, 3.4vw, 2.6rem);
  line-height: 1.15;
  margin: 0 0 .3em;
}
.hero-split__subtitle { color: #5d7088; margin: 0 0 1.6em; font-size: 1rem; }

.hero-split__photo { flex: 1; position: relative; overflow: hidden; }
.hero-split__photo img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* Hamburger + rozwijane menu (bez JS – checkbox hack) */
.nav-toggle-checkbox { position: absolute; opacity: 0; pointer-events: none; }
.hamburger {
  position: absolute;
  top: 24px;
  right: 28px;
  z-index: 20;
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  background: rgba(20, 30, 46, .35);
  border-radius: 4px;
}
.hamburger svg { width: 20px; height: 20px; fill: var(--white); }
.dropdown-nav {
  position: absolute;
  top: 74px;
  right: 28px;
  z-index: 20;
  background: var(--navy);
  border-radius: 6px;
  padding: 10px 0;
  min-width: 190px;
  box-shadow: 0 10px 30px rgba(0,0,0,.3);
  display: none;
  flex-direction: column;
}
.dropdown-nav a {
  padding: 10px 22px;
  color: var(--sand-light);
  text-decoration: none;
  font-size: .95rem;
}
.dropdown-nav a:hover { background: rgba(255,255,255,.08); color: var(--white); }
.nav-toggle-checkbox:checked ~ .dropdown-nav { display: flex; }

/* Pionowa zakładka "Rezerwacja online" przy lewej krawędzi ekranu */
.booking-tab {
  position: fixed;
  left: 0;
  top: 120px;
  z-index: 40;
  background: var(--navy);
  color: var(--white);
  text-decoration: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 18px 9px;
  border-radius: 0 4px 4px 0;
  box-shadow: 2px 0 10px rgba(0,0,0,.15);
}
.booking-tab__text {
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  font-size: .82rem;
  letter-spacing: .04em;
  margin-bottom: 14px;
  white-space: nowrap;
}
.booking-tab__icon {
  width: 26px;
  height: 26px;
  background: #3fae7a;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.booking-tab__icon svg { width: 16px; height: 16px; fill: var(--white); }

@media (max-width: 860px) {
  .hero-split { flex-direction: column; min-height: auto; }
  .hero-split__panel { max-width: 100%; flex: none; order: 2; padding: 32px 24px 40px; }
  .hero-split__photo { order: 1; height: 56vh; }
  .booking-tab { display: none; }
}

.btn {
  display: inline-block;
  background: var(--sand);
  color: var(--navy-dark);
  padding: 13px 32px;
  border-radius: 4px;
  text-decoration: none;
  font-weight: 600;
  border: none;
  font-size: 1rem;
  cursor: pointer;
}
.btn:hover { background: var(--white); }
.btn--outline {
  background: transparent;
  color: var(--navy);
  border: 1.5px solid var(--navy);
  padding: 12px 34px;
  border-radius: 999px;
  text-transform: uppercase;
  letter-spacing: .08em;
  font-size: .82rem;
}
.btn--outline:hover { background: var(--navy); color: var(--white); }

/* ---------- Sections ---------- */
section { padding: 70px 0; }
section.alt { background: var(--white); }
section.section--navy { background: var(--navy); color: var(--white); }
section.section--navy .section-title { color: var(--white); }
.section-title { text-align: center; margin-bottom: 10px; }
.section-kicker {
  text-align: center;
  text-transform: uppercase;
  letter-spacing: .12em;
  font-size: .8rem;
  color: var(--navy);
  opacity: .7;
  margin-bottom: 8px;
}
.section-kicker--light { color: var(--sand-light); opacity: .9; }
.lede { max-width: 760px; margin: 0 auto 2.5em; text-align: center; color: #44586f; }
.lede--light { color: var(--sand-light); }

.apartments-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 28px;
  margin-bottom: 2.5em;
}
.apartment-card {
  background: var(--white);
  border-radius: 8px;
  padding: 26px 28px;
  box-shadow: 0 2px 10px rgba(39,64,96,.08);
  border-top: 4px solid var(--sand);
}
.apartment-card h3 { margin-bottom: .4em; }
.amenities-note {
  background: var(--sand-light);
  border-radius: 8px;
  padding: 22px 26px;
  text-align: center;
  color: var(--navy-dark);
}

/* ---------- Gallery (CSS-only lightbox) ---------- */
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  gap: 10px;
}
.gallery a { position: relative; overflow: hidden; border-radius: 6px; display: block; aspect-ratio: 4/3; }
.gallery a img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .3s ease;
}
.gallery a:hover img { transform: scale(1.06); }

.gallery--circle {
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  justify-items: center;
}
.gallery--circle a { border-radius: 50%; aspect-ratio: 1/1; max-width: 260px; }

/* ---------- Kontakt: mapa + formularz ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}
.map-embed iframe {
  width: 100%;
  height: 460px;
  border: 0;
  border-radius: 4px;
  display: block;
}
@media (max-width: 860px) {
  .contact-grid { grid-template-columns: 1fr; }
  .map-embed iframe { height: 320px; }
}

.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(16, 24, 38, .92);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 30px;
  opacity: 0;
  visibility: hidden;
  transition: opacity .2s ease;
  z-index: 100;
}
.lightbox:target { opacity: 1; visibility: visible; }
.lightbox img { max-width: 100%; max-height: 90vh; border-radius: 4px; }
.lightbox .close {
  position: absolute;
  top: 18px;
  right: 24px;
  color: var(--white);
  font-size: 2rem;
  text-decoration: none;
  line-height: 1;
}

/* ---------- Attractions ---------- */
.attractions-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}
.attraction-card {
  background: var(--white);
  border-radius: 8px;
  padding: 22px 24px;
  box-shadow: 0 2px 10px rgba(39,64,96,.08);
}
.attraction-card h3 { font-size: 1.05rem; }
.attraction-card ul { margin: 0; padding-left: 1.1em; }
.attraction-card li { margin-bottom: .5em; }

/* ---------- Contact ---------- */
.form-group { margin-bottom: 18px; }
.form-group label { display: block; color: var(--navy); font-weight: 600; margin-bottom: 8px; font-size: .92rem; }
.form-group input[type=email],
.form-group textarea {
  width: 100%;
  padding: 13px 14px;
  border: none;
  background: var(--sand-light);
  border-radius: 4px;
  font-family: inherit;
  font-size: 1rem;
  color: var(--ink);
}
.form-group input[type=email]::placeholder { color: #8a95a3; }
.form-group textarea { min-height: 120px; resize: vertical; }
.form-group--checkbox { display: flex; align-items: flex-start; gap: 10px; }
.form-group--checkbox label { font-weight: 400; margin: 0; }
.form-group--checkbox input { margin-top: 4px; }
.honeypot { position: absolute; left: -9999px; top: -9999px; opacity: 0; height: 0; width: 0; }
.form-banner {
  display: none;
  padding: 12px 16px;
  border-radius: 4px;
  margin-bottom: 18px;
  font-size: .92rem;
}
.form-banner.show { display: block; }
.form-banner--error { background: #fdecec; color: #9a2222; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--navy-dark);
  color: var(--sand-light);
  text-align: center;
  padding: 36px 20px;
  font-size: .9rem;
}
.site-footer a { color: var(--sand); text-decoration: none; }
.site-footer .social { margin-bottom: 14px; display: inline-flex; gap: 14px; }
.site-footer .social svg { width: 26px; height: 26px; fill: var(--sand-light); }
.site-footer .social a:hover svg { fill: var(--white); }

@media (max-width: 640px) {
  section { padding: 50px 0; }
}

/* Przełącznik języka, bezpośredni kontakt i karty „Najważniejsze informacje” (tools/build_tatra.py) */
.hero-split__top { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.lang-switch { font-size: .9rem; font-weight: 600; color: var(--navy); text-decoration: none; border-bottom: 1px solid currentColor; }
.lang-switch:hover { color: #5d7088; }
.contact-direct { margin: 0 0 1.4em; line-height: 1.8; }
.contact-direct a { color: var(--navy); font-weight: 600; }
.info-grid .attraction-card p { margin: 0; }
