:root {
  --sand: #f3eadf;
  --beige: #efe4d6;
  --sea: #b7d8e8;
  --deep-sea: #3b738f;
  --white: #ffffff;
  --text: #2e3a3f;
  --wood: #c9a27e;
  --shadow: 0 10px 25px rgba(46, 58, 63, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Montserrat", sans-serif;
  color: var(--text);
  background: linear-gradient(180deg, #f8f2e9 0%, #ecf6fb 45%, #f8f2e9 100%);
}

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

.container {
  width: min(1140px, 92vw);
  margin: 0 auto;
}

.section {
  padding: 5rem 0;
}

.section:nth-of-type(even):not(.hero) {
  background: rgba(255, 255, 255, 0.45);
}

.section-full {
  min-height: 100vh;
}

h1,
h2,
h3 {
  line-height: 1.2;
  margin-top: 0;
}

h2 {
  font-size: clamp(1.8rem, 3vw, 2.6rem);
}

p {
  line-height: 1.8;
}

.section-intro {

}

.header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(201, 162, 126, 0.22);
}

.nav {
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.logo {
  text-decoration: none;
  color: var(--deep-sea);
  font-weight: 700;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 1rem;
  margin: 0;
  padding: 0;
  margin-left: auto;
  order: 2;
}

.lang-switch {
  display: flex;
  border: 1px solid rgba(59, 115, 143, 0.25);
  border-radius: 999px;
  overflow: hidden;
  margin-left: 0.8rem;
  order: 3;
  flex: 0 0 auto;
}

.lang-btn {
  border: 0;
  padding: 0.35rem 0.65rem;
  background: transparent;
  color: var(--deep-sea);
  cursor: pointer;
  font-weight: 600;
}

.lang-btn.active {
  background: var(--sea);
}

.nav-links a {
  text-decoration: none;
  color: var(--text);
  font-weight: 500;
  padding: 0.4rem 0.55rem;
  border-radius: 8px;
}

.nav-links a:hover {
  background: var(--sand);
}

.nav-links a[href*="booking.com"] {
  background: linear-gradient(135deg, #dcb48f, #e9caaa);
  color: #2f2017;
  font-weight: 700;
}

.menu-btn {
  display: none;
  border: 0;
  background: transparent;
  font-size: 1.5rem;
  color: var(--deep-sea);
}

.hero {
  position: relative;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: url("assets/05_Apartament_215-dea910d8-3d61-43b6-b8cf-03212eeb531a.png")
    center/cover no-repeat fixed;
}

.overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(16, 38, 49, 0.2),
    rgba(16, 38, 49, 0.62) 70%,
    rgba(16, 38, 49, 0.45)
  );
}

.waves {
  position: absolute;
  bottom: -25px;
  left: 0;
  width: 100%;
  height: 90px;
}

.waves span {
  position: absolute;
  left: 0;
  width: 200%;
  height: 100%;
  border-radius: 43%;
  background: rgba(255, 255, 255, 0.28);
  animation: waveMove 11s linear infinite;
}

.waves span:nth-child(2) {
  top: 20px;
  opacity: 0.45;
  animation-duration: 14s;
}

.waves span:nth-child(3) {
  top: 34px;
  opacity: 0.35;
  animation-duration: 17s;
}

@keyframes waveMove {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

.hero-content {
  position: relative;
  z-index: 1;
  color: var(--white);
  text-align: center;
  padding: 8rem 0 4rem;
}

.hero-kicker {
  letter-spacing: 0.15em;
  text-transform: uppercase;
  font-size: 0.8rem;
}

.hero h1 {
  font-size: clamp(2rem, 6vw, 4rem);
  margin-bottom: 1rem;
}

.hero-subtitle {
  font-size: clamp(1rem, 2vw, 1.25rem);
  max-width: 760px;
  margin: 0 auto 1.8rem;
}

.hero-actions,
.contact-actions {
  display: flex;
  gap: 0.8rem;
  justify-content: center;
  flex-wrap: wrap;
}

.btn {
  text-decoration: none;
  padding: 0.85rem 1.25rem;
  border-radius: 999px;
  font-weight: 600;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  background: linear-gradient(135deg, var(--wood), #e8c39f);
  color: #2f2017;
}

.btn-outline {
  border: 1px solid rgba(255, 255, 255, 0.7);
  color: var(--white);
}

.contact-section .btn-outline {
  border-color: rgba(59, 115, 143, 0.65);
  color: var(--deep-sea);
}

.map-box iframe {
  width: 100%;
  height: 260px;
  border: 0;
}

.mosaic {
  margin-top: 2rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 0.9rem;
}

.gallery-item {
  margin: 0;
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: var(--shadow);
  aspect-ratio: 4 / 3;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  cursor: zoom-in;
  transition: transform 0.25s ease;
}

.gallery-item:hover img {
  transform: scale(1.03);
}

.gallery-item figcaption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  color: var(--white);
  background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.55));
  padding: 2.1rem 0.7rem 0.7rem;
  font-weight: 500;
}

.gallery-item.wide {
  grid-column: span 1;
}

.gallery-item.tall {
  grid-row: span 1;
}

.zoom-hint {
  opacity: 0.72;
}

.parallax {
  background-attachment: fixed;
}

#apartament {
  background: linear-gradient(rgba(255, 255, 255, 0.86), rgba(255, 255, 255, 0.9)),
    url("assets/04_Apartament_215-f75ad251-9ad4-43fc-80de-08d02223ca84.png")
      center/cover fixed no-repeat;
}

#lokalizacja {
  background: linear-gradient(rgba(246, 243, 238, 0.9), rgba(246, 243, 238, 0.94)),
    url("assets/d714de03-cdce-4c73-8927-f31b73b02e8b-41eddbd8-5cef-45a2-8f9e-8d0211469bf3.png")
      center/cover fixed no-repeat;
}

.amenities-grid,
.equipment-grid {
  margin-top: 1.8rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1rem;
}

.experience-layout {
  margin-top: 1.8rem;
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: 1rem;
  align-items: start;
}

.experience-main {
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(183, 216, 232, 0.7);
  border-radius: 16px;
  padding: 1.3rem;
  box-shadow: var(--shadow);
}

.experience-main h3 {
  margin-bottom: 0.6rem;
}

.experience-points {
  display: grid;
  gap: 0.9rem;
}

.experience-point {
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(183, 216, 232, 0.7);
  border-radius: 14px;
  padding: 1rem;
  box-shadow: 0 10px 22px rgba(46, 58, 63, 0.08);
}

.experience-point h3 {
  font-size: 1.05rem;
  margin-bottom: 0.4rem;
}

.experience-tags {
  margin-top: 1rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.tag {
  background: rgba(183, 216, 232, 0.35);
  border: 1px solid rgba(183, 216, 232, 0.65);
  color: var(--deep-sea);
  padding: 0.55rem 0.75rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.95rem;
}

.amenity-card,
.equipment-card {
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(183, 216, 232, 0.7);
  border-radius: 14px;
  padding: 1.1rem;
  box-shadow: var(--shadow);
}

.amenity-card {
  text-align: center;
}

.amenity-card span {
  font-size: 1.5rem;
}

.location-list {
  list-style: none;
  padding: 0;
  display: grid;
  gap: 0.6rem;
}

.map-box {
  margin-top: 1.4rem;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.contact-section {
  text-align: center;
  background: linear-gradient(180deg, #f9f4eb, #eef8fd);
}

.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(13, 20, 23, 0.82);
  display: none;
  place-items: center;
  z-index: 1200;
  padding: 2rem;
}

.lightbox.open {
  display: grid;
}

.lightbox img {
  max-width: min(1100px, 92vw);
  max-height: 78vh;
  border-radius: 12px;
}

.lightbox p {
  color: var(--white);
  margin-top: 0.6rem;
}

.lightbox-close {
  position: absolute;
  right: 1rem;
  top: 1rem;
  border: 0;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  font-size: 1.2rem;
  cursor: pointer;
}

.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  border: 0;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  font-size: 1.3rem;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.9);
  color: #1b3f52;
}

.lightbox-prev {
  left: 1rem;
}

.lightbox-next {
  right: 1rem;
}

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s ease, transform 0.7s ease;
  transition-delay: var(--reveal-delay, 0s);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 900px) {
  .menu-btn {
    display: inline-block;
  }

  .nav-links {
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    background: rgba(255, 255, 255, 0.97);
    padding: 0.8rem;
    border-bottom: 1px solid rgba(201, 162, 126, 0.22);
  }

  .nav-links.open {
    display: flex;
  }

  .lang-switch {
    margin-left: 0;
  }

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

@media (max-width: 760px) {
  .hero {
    background-attachment: scroll;
  }

  #apartament,
  #lokalizacja,
  .parallax {
    background-attachment: scroll;
  }

  .section {
    padding: 4rem 0;
  }

  .map-box iframe {
    height: 220px;
  }

  .mosaic {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .experience-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 520px) {
  .mosaic {
    grid-template-columns: 1fr;
  }

  .lightbox-nav {
    width: 40px;
    height: 40px;
  }
}
