/* sozopoltur.net — clean seaside static site */
:root {
  --sea: #0b6b8c;
  --sea-dark: #085069;
  --sand: #f6f2ea;
  --ink: #22303a;
  --muted: #5c6b76;
  --line: #e3ded4;
  --radius: 14px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", sans-serif;
  color: var(--ink);
  background: #fff;
  line-height: 1.6;
}
img { max-width: 100%; display: block; }
a { color: var(--sea); text-decoration: none; }
a:hover { color: var(--sea-dark); }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
  padding: 0.6rem 1.2rem;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.nav-side { display: flex; gap: 1.1rem; justify-self: start; }
.site-nav { display: flex; gap: 1.4rem; justify-self: center; }
.site-nav a { color: var(--ink); font-weight: 500; padding: 0.25rem 0; border-bottom: 2px solid transparent; }
.site-nav a:hover { color: var(--sea); border-bottom-color: var(--sea); }
.site-nav .nav-home { display: flex; align-items: center; }
.site-nav .nav-home svg { display: block; margin-top: -4px; }
.langs { display: flex; gap: 0.15rem; justify-self: end; }
.lang {
  padding: 0.2rem 0.55rem; border-radius: 8px;
  font-weight: 700; font-size: 0.85rem; color: var(--muted);
}
.lang.active { background: var(--sea); color: #fff; }
.nav-toggle {
  display: none; border: 1px solid var(--line); background: #fff;
  border-radius: 8px; padding: 0.35rem 0.6rem; font-size: 1.1rem; cursor: pointer;
}
.mobile-nav { display: none; }
.nav-home-mobile { display: none; }

/* Hero */
.hero {
  background-size: cover; background-position: center 100%;
  min-height: 62vh;
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: 2rem 1.2rem 2.4rem;
  color: #fff;
  position: relative;
}
.hero::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.05), rgba(0,0,0,0.55));
}
.hero > * { position: relative; max-width: 46rem; }
.hero h1 { margin: 0 0 0.4rem; font-size: clamp(1.8rem, 5vw, 3rem); letter-spacing: 0.06em; }
.hero p { font-size: 1.1rem; text-shadow: 0 1px 4px rgba(0,0,0,0.6); }

/* Home property cards */
.home-props {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.2rem; padding: 1.6rem 1.2rem 2.4rem; max-width: 1000px; margin: 0 auto;
}
.prop-card {
  position: relative; min-height: 280px; border-radius: var(--radius);
  background-size: cover; background-position: center;
  display: flex; align-items: flex-end;
  box-shadow: 0 6px 18px rgba(0,0,0,0.12);
  transition: transform 0.15s ease;
}
.prop-card:hover { transform: translateY(-3px); }
.prop-card-label {
  display: block; width: 100%;
  padding: 0.8rem 1rem;
  background: linear-gradient(180deg, transparent, rgba(0,0,0,0.65));
  color: #fff; font-weight: 700; font-size: 1.25rem;
  border-radius: 0 0 var(--radius) var(--radius);
}

/* Property pages */
.prop-hero { max-width: 860px; margin: 0 auto; padding: 2rem 1.2rem 0.5rem; }
.prop-hero h1 { color: var(--sea-dark); margin: 0 0 1rem; }
.prop-intro p { margin: 0.45rem 0; }
.rules-line { margin-top: 0.8rem; font-weight: 500; }
.units-heading {
  max-width: 860px; margin: 1.6rem auto 0.6rem; padding: 0 1.2rem;
  color: var(--sea-dark); font-size: 1.5rem;
}

.unit {
  max-width: 860px; margin: 0 auto 2rem; padding: 0 1.2rem;
}
.unit-body {
  background: var(--sand);
  border-radius: var(--radius);
  padding: 1.2rem 1.4rem 1.4rem;
}
.unit-body h3 { margin: 0.6rem 0 0.4rem; color: var(--sea-dark); font-size: 1.35rem; }
.unit-body > p { margin: 0 0 1rem; }

/* Carousel strip (unit galleries): 3 across, slides horizontally */
.carousel {
  position: relative; margin: 0 0 10px; user-select: none;
  overflow: hidden;
}
.carousel-track {
  display: flex; gap: 8px;
  transition: transform 0.25s ease;
}
.carousel figure {
  margin: 0; flex: 0 0 calc((100% - 16px) / 3);
  border-radius: 10px; overflow: hidden; cursor: zoom-in;
}
.carousel img {
  width: 100%; aspect-ratio: 4 / 3; object-fit: cover;
}
@media (max-width: 760px) {
  .carousel figure { flex-basis: calc((100% - 8px) / 2); }
}
.car-btn {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 42px; height: 42px; border: none; border-radius: 50%;
  background: rgba(255, 255, 255, 0.92); color: var(--sea);
  font-size: 1.15rem; cursor: pointer; z-index: 5;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
  transition: background 0.15s ease, opacity 0.15s ease;
}
.car-btn:hover { background: #fff; }
.car-btn[disabled] { opacity: 0.25; cursor: default; }
.car-prev { left: 6px; }
.car-next { right: 6px; }

/* Galleries */
.gallery {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 8px; margin: 0 0 10px;
}
.gallery figure { margin: 0; border-radius: 10px; overflow: hidden; cursor: zoom-in; }
.gallery img {
  width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4 / 3;
  transition: transform 0.15s ease;
}
.gallery img:hover { transform: scale(1.03); }

/* Price tables */
.price-wrap { margin-top: 0.4rem; }
.prices {
  width: 100%; border-collapse: collapse; background: #fff;
  border-radius: 10px; overflow: hidden; font-size: 0.95rem;
}
.prices th, .prices td { padding: 0.5rem 0.7rem; text-align: left; }
.prices thead th { background: var(--sea); color: #fff; font-weight: 600; }
.prices tbody tr:nth-child(even) { background: #fbfaf7; }
.prices tbody tr:hover { background: #eef6f9; }
.price-note { font-size: 0.85rem; color: var(--muted); margin: 0.5rem 0 0; }

/* Generic page (rules/contact) */
.page { max-width: 760px; margin: 0 auto; padding: 2rem 1.2rem 3rem; }
.page h1 { color: var(--sea-dark); margin-top: 0; }
.rule { margin-bottom: 1.4rem; }
.rule h3 { margin: 0 0 0.3rem; color: var(--sea); }
.rule p { margin: 0.35rem 0; }

/* Contact */
.contact-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1rem; }
.contact-card {
  background: var(--sand); border-radius: var(--radius); padding: 1.1rem 1.3rem;
}
.contact-card h3 { margin: 0 0 0.4rem; color: var(--sea-dark); }
.contact-actions { display: flex; flex-wrap: wrap; gap: 0.8rem; margin: 1.4rem 0; }
.contact-social { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 1.4rem; }
.social-btn {
  display: flex; flex-direction: column; align-items: center; gap: 0.45rem;
  background: var(--sand); color: var(--ink);
  padding: 1.3rem 2.2rem; min-width: 160px;
  border-radius: var(--radius); font-weight: 600;
  transition: background 0.15s ease, color 0.15s ease, transform 0.15s ease;
}
.social-btn:hover { background: var(--sea); color: #fff; transform: translateY(-3px); }
.social-btn svg { width: 44px; height: 44px; }
.social-name { font-size: 1.05rem; }
.social-handle { font-size: 0.85rem; color: var(--muted); font-weight: 400; }
.social-btn:hover .social-handle { color: #d8ecf4; }

/* Buttons */
.btn {
  display: inline-block; margin-top: 0.6rem;
  padding: 0.55rem 1rem; border-radius: 10px;
  border: 1px solid var(--sea); color: var(--sea); font-weight: 600;
  background: #fff; transition: all 0.15s ease;
}
.btn:hover { background: var(--sea); color: #fff; }
.btn-primary { background: var(--sea); color: #fff; }
.btn-primary:hover { background: var(--sea-dark); border-color: var(--sea-dark); color: #fff; }

/* Footer */
.site-footer {
  background: var(--sea-dark); color: #cfe6f0;
  padding: 1.8rem 1.2rem; margin-top: 2rem;
}
.footer-inner {
  max-width: 900px; margin: 0 auto;
  display: flex; flex-wrap: wrap; gap: 1.5rem; justify-content: space-between;
}
.site-footer p { margin: 0.25rem 0; font-size: 0.92rem; }
.site-footer a { color: #fff; text-decoration: underline; }
.footer-brand { font-weight: 700; font-size: 1.1rem; }
.footer-social { display: flex; gap: 1.2rem; align-items: center; }
.footer-social a { display: inline-flex; align-items: center; gap: 0.4rem; }
.footer-social svg { width: 17px; height: 17px; flex: none; }

/* Lightbox */
.lightbox {
  display: none; position: fixed; inset: 0; z-index: 100;
  background: rgba(10, 18, 24, 0.94);
  align-items: center; justify-content: center;
}
.lightbox.open { display: flex; }
.lightbox img { max-width: 92vw; max-height: 86vh; border-radius: 8px; }
.lb-btn {
  position: absolute; z-index: 101;
  background: rgba(255,255,255,0.12); color: #fff;
  border: none; border-radius: 50%; width: 46px; height: 46px;
  font-size: 1.4rem; cursor: pointer;
}
.lb-close { top: 14px; right: 14px; }
.lb-prev { left: 12px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 12px; top: 50%; transform: translateY(-50%); }

/* Mobile */
@media (max-width: 760px) {
  .site-header { display: flex; justify-content: flex-end; align-items: center; gap: 0.7rem; }
  .nav-side, .site-nav { display: none; }
  .nav-home-mobile { display: block; margin-right: auto; }
  .nav-home-mobile .nav-home { display: flex; padding: 0.35rem 0.5rem; color: var(--ink); }
  .nav-home-mobile .nav-home:hover { color: var(--sea); }
  .nav-home-mobile .nav-home svg { display: block; }
  .nav-toggle { display: block; order: 1; }
  .langs { order: 2; }
  .mobile-nav {
    display: none;
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column;
    background: #fff; border-bottom: 1px solid var(--line);
    padding: 0.4rem 1.2rem 0.8rem;
  }
  body.nav-open .mobile-nav { display: flex; }
  .mobile-nav a { padding: 0.55rem 0; border-bottom: 1px solid var(--line); color: var(--ink); font-weight: 500; }
  .mobile-nav a:last-child { border-bottom: none; }
  .mobile-nav a:hover { color: var(--sea); }
}
