﻿
:root {
  color-scheme: light;
  --river: #2f5d62;
  --pine: #23404a;
  --sand: #f1e6d0;
  --clay: #c8795a;
  --mist: #f7f5f1;
  --ink: #1e2a2f;
  --soft-ink: #3f4f55;
  --glass: rgba(255, 255, 255, 0.7);
  --shadow: 0 20px 60px rgba(30, 42, 47, 0.12);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Plus Jakarta Sans', sans-serif;
  color: var(--ink);
  background: radial-gradient(circle at top, #fdfbf6 0%, #f3e9d7 35%, #e7eef1 100%);
  line-height: 1.6;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  width: 100%;
  display: block;
  border-radius: 18px;
}

.container {
  width: min(1120px, 92%);
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(18px);
  background: rgba(255, 255, 255, 0.75);
  border-bottom: 1px solid rgba(35, 64, 74, 0.12);
}

.header-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 0 4px;
  gap: 10px;
  transition: padding 0.35s ease;
}

.brand {
  display: flex;
  align-items: center;
  gap: 6px;
}

.brand-link {
  text-decoration: none;
}

.brand-logo {
  width: 72px;
  height: 72px;
  object-fit: contain;
}

.brand-text {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.brand-name {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 700;
  font-size: 20px;
}

.brand-sub {
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--soft-ink);
}

.site-nav {
  display: flex;
  gap: 18px;
  font-size: 14px;
  transition: opacity 0.25s ease, transform 0.25s ease, max-height 0.25s ease;
}

.site-nav a {
  position: relative;
  padding-bottom: 6px;
}

.site-nav a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 2px;
  background: var(--clay);
  transition: width 0.3s ease;
}

.site-nav a:hover::after {
  width: 100%;
}

.lang-toggle {
  display: flex;
  gap: 8px;
  transition: opacity 0.25s ease, transform 0.25s ease, max-height 0.25s ease;
}

.lang-btn {
  border: 1px solid rgba(35, 64, 74, 0.2);
  background: white;
  padding: 6px 10px;
  border-radius: 999px;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}


.lang-btn.is-active {
  background: var(--river);
  color: white;
  border-color: var(--river);
}

.lang-flag {
  width: 16px;
  height: 11px;
  border-radius: 2px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  object-fit: cover;
  flex-shrink: 0;
}

.hero {
  position: relative;
  min-height: 78vh;
  display: flex;
  align-items: center;
  background-image: url('img/web2/Superior%20apartman/Slika%201.jpg');
  background-size: cover;
  background-position: center;
  color: white;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, rgba(28, 51, 59, 0.85), rgba(47, 93, 98, 0.55));
}

.hero-content {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
  gap: 32px;
  padding: 110px 0 90px;
}

.hero-tag {
  font-size: 14px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.75);
  margin-bottom: 18px;
}

.hero h1 {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(36px, 4vw, 56px);
  line-height: 1.1;
  margin-bottom: 18px;
}

.hero-sub {
  font-size: 18px;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 28px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.btn {
  padding: 12px 24px;
  border-radius: 999px;
  font-weight: 600;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-primary {
  background: var(--clay);
  color: white;
  box-shadow: 0 10px 30px rgba(200, 121, 90, 0.35);
}

.btn-ghost {
  border: 1px solid rgba(255, 255, 255, 0.5);
  color: white;
}

.btn:hover {
  transform: translateY(-2px);
}

.hero-cards {
  display: grid;
  gap: 16px;
}

.hero-card {
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 20px 22px;
  border-radius: 18px;
  backdrop-filter: blur(8px);
}

.hero-card span {
  display: block;
  font-size: 14px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 8px;
}

.hero-card strong {
  font-size: 18px;
  line-height: 1.4;
}

.page-hero {
  padding: 42px 0 14px;
  background: linear-gradient(140deg, rgba(47, 93, 98, 0.12), rgba(200, 121, 90, 0.1));
}

.page-hero .container {
  max-width: 900px;
}

.page-hero h1 {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(34px, 4vw, 52px);
  margin-bottom: 12px;
}

.page-hero p {
  color: var(--soft-ink);
  max-width: 680px;
}

.section {
  padding: 90px 0;
}

.about-section {
  padding: 60px 0;
}

.compact-section {
  padding: 60px 0;
}

.section.alt {
  background: var(--mist);
}

.split {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 40px;
  align-items: center;
}

.section h2 {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(28px, 3vw, 42px);
  margin-bottom: 16px;
}

.section p {
  color: var(--soft-ink);
}

.pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.pill {
  padding: 8px 14px;
  background: rgba(47, 93, 98, 0.12);
  border-radius: 999px;
  font-size: 13px;
}

.image-stack {
  display: grid;
  gap: 18px;
}

.image-stack img {
  width: 100%;
  height: 100%;
  max-height: 680px;
  object-fit: cover;
}

.apt-row {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: 32px;
  align-items: center;
  margin-bottom: 60px;
  content-visibility: auto;
  contain-intrinsic-size: 600px 400px;
}

.apt-row.reverse {
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
}

.apt-row.reverse .apt-media {
  order: 2;
}

.apt-row.reverse .apt-details {
  order: 1;
}

.apt-media {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--shadow);
}


.apt-media.reveal-media {
  opacity: 0;
  transition: opacity 0.9s ease;
  will-change: opacity;
}

.apt-media.reveal-media.is-inview {
  opacity: 1;
  will-change: auto;
}

.apt-media.slider.reveal-media,
.apt-media.slider.reveal-media.is-inview {
  opacity: 1;
  transition: none;
  will-change: auto;
}

.apt-media img {
  border-radius: 0;
}

.slider {
  aspect-ratio: 4 / 3;
  position: relative;
}

.swap-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transform: none;
  transition: opacity 1s cubic-bezier(0.22, 1, 0.36, 1);
  z-index: 0;
}

.swap-img.is-active {
  opacity: 1;
  z-index: 2;
}

.swap-img.is-fading {
  opacity: 0;
  z-index: 1;
}

.slider.slider--initializing .swap-img {
  transition: none !important;
  opacity: 0;
}

.slider.slider--initializing .swap-img.is-active {
  opacity: 1;
}

.slider-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 36px;
  height: 36px;
  border-radius: 999px;
  border: none;
  background: rgba(255, 255, 255, 0.5);
  backdrop-filter: blur(6px);
  border: 1px solid rgba(255, 255, 255, 0.45);
  color: var(--ink);
  font-size: 18px;
  cursor: pointer;
  display: grid;
  place-items: center;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
  opacity: 0.55;
  transition: opacity 0.2s ease, background 0.2s ease;
  z-index: 9999;
  pointer-events: auto;
  visibility: visible !important;
  display: grid !important;
}

.slider-btn.prev {
  left: 12px;
}

.slider-btn.next {
  right: 12px;
}

.slider-btn:hover {
  opacity: 0.9;
  background: rgba(255, 255, 255, 0.85);
}

.slider-btn:focus-visible {
  outline: 2px solid var(--clay);
  outline-offset: 2px;
}

.apt-details h2 {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(24px, 2.8vw, 34px);
  margin-bottom: 12px;
}

.apt-list {
  list-style: none;
  margin-top: 18px;
  display: grid;
  gap: 8px;
  color: var(--soft-ink);
}

.apt-list li::before {
  content: '•';
  color: var(--clay);
  margin-right: 10px;
}


.section-head {
  text-align: center;
  margin-bottom: 42px;
}

.section-actions {
  margin-top: 26px;
  display: flex;
  justify-content: center;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 22px;
}

.card {
  padding: 26px;
  border-radius: 20px;
  background: white;
  box-shadow: var(--shadow);
}

.card h3 {
  font-size: 20px;
  margin-bottom: 12px;
}

.card-meta {
  display: block;
  margin-top: 16px;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--river);
}

.amenities-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 14px;
  margin-top: 28px;
}

.amenity {
  background: white;
  padding: 14px 16px;
  border-radius: 14px;
  border: 1px solid rgba(35, 64, 74, 0.12);
}

.info-card {
  background: linear-gradient(140deg, rgba(47, 93, 98, 0.08), rgba(200, 121, 90, 0.08));
  padding: 28px;
  border-radius: 24px;
  border: 1px solid rgba(47, 93, 98, 0.12);
}

.info-list {
  margin-top: 18px;
  display: grid;
  gap: 10px;
  font-size: 16px;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
}

.gallery-grid .zoomable {
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 1.2s ease, transform 1.2s ease;
  will-change: opacity, transform;
}

.gallery-grid .zoomable.is-loaded,
.gallery-grid .zoomable.is-inview {
  opacity: 1;
  transform: translateY(0);
}

.gallery-grid .zoomable:nth-child(1) { transition-delay: 0.05s; }
.gallery-grid .zoomable:nth-child(2) { transition-delay: 0.12s; }
.gallery-grid .zoomable:nth-child(3) { transition-delay: 0.19s; }
.gallery-grid .zoomable:nth-child(4) { transition-delay: 0.26s; }
.gallery-grid .zoomable:nth-child(5) { transition-delay: 0.33s; }
.gallery-grid .zoomable:nth-child(6) { transition-delay: 0.4s; }
.gallery-grid .zoomable:nth-child(7) { transition-delay: 0.47s; }
.gallery-grid .zoomable:nth-child(8) { transition-delay: 0.54s; }

.gallery-grid img {
  height: auto;
}

.review-slider {
  position: relative;
  background: #fbf6ec;
  border: 1px solid rgba(92, 76, 61, 0.08);
  border-radius: 22px;
  padding: 20px 48px;
  overflow: hidden;
  min-height: 0;
}

.reviews-section {
  background: #f3efe4;
}

.review-track {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  align-items: stretch;
}

.review-slide {
  display: none;
  text-align: left;
  animation: review-fade 0.6s ease;
  background: #fffaf1;
  border: 1px solid rgba(92, 76, 61, 0.1);
  border-radius: 18px;
  padding: 18px 20px;
  height: 100%;
}

.review-slide.is-visible {
  display: block;
}

.review-name {
  margin: 0 0 8px;
  font-size: 1.15rem;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.review-flag {
  width: 18px;
  height: 12px;
  border-radius: 2px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  object-fit: cover;
}

.review-stars {
  color: #c29a4a;
  letter-spacing: 2px;
  font-size: 1.1rem;
  margin-bottom: 10px;
}

.review-body {
  margin: 0;
  color: #3f3529;
  line-height: 1.6;
}

.review-note {
  margin-top: 10px;
  font-size: 12px;
  color: rgba(63, 53, 41, 0.6);
}

.review-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  border: none;
  width: 36px;
  height: 36px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.7);
  color: #3f3529;
  cursor: pointer;
  opacity: 0.7;
  transition: opacity 0.2s ease, background 0.2s ease;
}

.review-btn:hover {
  opacity: 1;
  background: rgba(255, 255, 255, 0.95);
}

.review-btn.prev {
  left: 18px;
}

.review-btn.next {
  right: 18px;
}

@keyframes review-fade {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.location-card {
  margin-top: 20px;
  padding: 16px 18px;
  background: white;
  border-radius: 16px;
  border: 1px dashed rgba(35, 64, 74, 0.2);
  font-weight: 600;
}

.map-card {
  background: white;
  border-radius: 24px;
  box-shadow: var(--shadow);
  padding: 28px;
}

.map-embed {
  width: 100%;
  height: 280px;
  border: 0;
  border-radius: 18px;
}

.map-link {
  display: inline-flex;
  margin-top: 14px;
  padding: 10px 18px;
  border-radius: 999px;
  border: 1px solid rgba(35, 64, 74, 0.2);
  font-weight: 600;
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 22px;
}

.contact-card {
  background: white;
  padding: 26px;
  border-radius: 22px;
  box-shadow: var(--shadow);
}

.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 10px;
  margin-bottom: 12px;
}

.btn-dark {
  border-color: rgba(35, 64, 74, 0.3);
  color: var(--ink);
}

.contact-phone {
  display: inline-block;
  margin: 12px 0;
  font-size: 24px;
  font-weight: 700;
  color: var(--river);
}

.site-footer {
  padding: 30px 0 50px;
  text-align: center;
  font-size: 14px;
  color: var(--soft-ink);
}

.zoomable {
  cursor: zoom-in;
}

.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(18, 26, 30, 0.8);
  display: grid;
  place-items: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
  z-index: 20;
  padding: 24px;
}

.lightbox.is-open {
  opacity: 1;
  pointer-events: auto;
}

.lightbox-image {
  max-width: min(92vw, 1200px);
  max-height: 82vh;
  border-radius: 18px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
}

.lightbox-close {
  position: absolute;
  top: 24px;
  right: 24px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: none;
  background: white;
  color: var(--ink);
  font-size: 28px;
  cursor: pointer;
}

.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 900px) {
  .header-wrap {
    flex-wrap: wrap;
  }

  .site-nav {
    flex-wrap: wrap;
    justify-content: center;
    max-height: 120px;
    overflow: hidden;
  }

  .lang-toggle {
    max-height: 60px;
    overflow: hidden;
  }

  .site-header.is-compact .site-nav,
  .site-header.is-compact .lang-toggle {
    max-height: 0;
    opacity: 0;
    transform: translateY(-8px);
    pointer-events: none;
  }

  .site-header.is-compact .header-wrap {
    padding-top: 4px;
    padding-bottom: 4px;
  }

  .hero-content {
    grid-template-columns: 1fr;
    padding: 100px 0 80px;
  }

  .split {
    grid-template-columns: 1fr;
  }

  .image-stack img {
    max-height: 520px;
  }

  .apt-row,
  .apt-row.reverse {
    grid-template-columns: 1fr;
  }

  .apt-row.reverse .apt-media,
  .apt-row.reverse .apt-details {
    order: unset;
  }

  .review-slider {
    padding: 18px 42px;
    min-height: 0;
  }

  .review-track {
    grid-template-columns: 1fr;
  }

}

@media (max-width: 600px) {
  .site-nav {
    gap: 12px;
    font-size: 13px;
  }

  .hero-actions {
    flex-direction: column;
    align-items: flex-start;
  }

  .slider-btn {
    width: 30px;
    height: 30px;
    font-size: 16px;
    opacity: 0.5;
  }

  .slider-btn.prev {
    left: 8px;
  }

  .slider-btn.next {
    right: 8px;
  }

  .review-slider {
    padding: 16px 46px;
    min-height: 0;
  }

  .review-btn {
    width: 30px;
    height: 30px;
  }

  .review-flag {
    width: 16px;
    height: 11px;
  }

  .review-btn.prev {
    left: 12px;
  }

  .review-btn.next {
    right: 12px;
  }
}
