/* ============================================================
   CSS VARIJABLE — Središnje mjesto za sve boje, fontove i razmake
   ============================================================ */
:root {
  /* Paleta boja */
  --color-white: #ffffff;
  --color-off-white: #fafaf8;
  --color-bg-light: #f5f4f0;
  --color-bg-section: #f0ede6;
  --color-beige: #e8e0d0;
  --color-beige-dark: #d4c9b5;
  --color-gray-100: #f7f7f7;
  --color-gray-200: #eeeeee;
  --color-gray-300: #dddddd;
  --color-gray-400: #aaaaaa;
  --color-gray-500: #888888;
  --color-gray-700: #444444;
  --color-gray-900: #1a1a1a;
  --color-text: #2c2c2c;
  --color-text-light: #6b6b6b;

  /* Naglašena boja (CTA gumbi, akcenti) */
  --color-accent: #8b6f47;
  --color-accent-dark: #6d5435;
  --color-accent-light: #a98b63;

  /* WhatsApp zelena */
  --color-whatsapp: #25d366;
  --color-whatsapp-dk: #1da851;

  /* Tipografija */
  --font-serif: "Cormorant Garamond", Georgia, serif;
  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, sans-serif;

  /* Veličine fonta */
  --text-xs: 0.75rem;
  --text-sm: 0.875rem;
  --text-base: 1rem;
  --text-lg: 1.125rem;
  --text-xl: 1.25rem;
  --text-2xl: 1.5rem;
  --text-3xl: 1.875rem;
  --text-4xl: 2.25rem;
  --text-5xl: 5rem;
  --text-6xl: 3.75rem;
  --text-7xl: 4.5rem;

  /* Razmaci */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;
  --space-24: 6rem;
  --space-32: 8rem;

  /* Border radius */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-full: 9999px;

  /* Sjene */
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.06), 0 1px 2px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 10px 40px rgba(0, 0, 0, 0.12);
  --shadow-xl: 0 20px 60px rgba(0, 0, 0, 0.16);

  /* Tranzicije */
  --transition-fast: 0.15s ease;
  --transition-base: 0.3s ease;
  --transition-slow: 0.6s ease;

  /* Navigacija visina */
  --nav-height: 72px;

  /* Maksimalna širina containera */
  --container-max: 1200px;
  --container-pad: clamp(var(--space-4), 5vw, var(--space-12));
}

/* ============================================================
   RESET I GLOBALNI STILOVI
   ============================================================ */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-sans);
  color: var(--color-text);
  background-color: var(--color-white);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

a {
  color: inherit;
  text-decoration: none;
}

ul,
ol {
  list-style: none;
}

button {
  cursor: pointer;
  border: none;
  background: none;
  font-family: inherit;
}

svg {
  width: 2rem;
  height: 2rem;
  font-size: 10rem;
}

/* ============================================================
   UTILITY — Container i sekcije
   ============================================================ */
.container {
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--container-pad);
}

/* Zajednički stil za naslove sekcija */
.section-header {
  text-align: center;
  margin-bottom: var(--space-16);
}

.section-tag {
  display: inline-block;
  font-family: var(--font-sans);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: var(--space-4);
}

.section-title {
  font-family: var(--font-serif);
  font-size: clamp(var(--text-3xl), 5vw, var(--text-5xl));
  font-weight: 400;
  color: var(--color-gray-900);
  line-height: 1.15;
  margin-bottom: var(--space-4);
}

.section-subtitle {
  font-size: var(--text-lg);
  color: var(--color-text-light);
  max-width: 560px;
  margin-inline: auto;
  line-height: 1.7;
}

/* ============================================================
   GUMBI (BUTTONS)
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-4) var(--space-8);
  border-radius: var(--radius-full);
  font-family: var(--font-sans);
  font-size: var(--text-sm);
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  transition: all var(--transition-base);
  cursor: pointer;
  position: relative;
  overflow: hidden;
  white-space: nowrap;
}

.btn::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.15);
  opacity: 0;
  transition: opacity var(--transition-fast);
}

.btn:hover::after {
  opacity: 1;
}

.btn-primary {
  background: var(--color-accent);
  color: var(--color-white);
  box-shadow: 0 4px 20px rgba(139, 111, 71, 0.35);
}

.btn-primary:hover {
  background: var(--color-accent-dark);
  box-shadow: 0 6px 28px rgba(139, 111, 71, 0.45);
  transform: translateY(-2px);
}

.btn-secondary {
  background: transparent;
  color: var(--color-white);
  border: 1.5px solid rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(8px);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: var(--color-white);
  transform: translateY(-2px);
}

.btn-full {
  width: 100%;
  justify-content: center;
}

.btn-text {
  flex: 1;
}
.btn-icon {
  font-style: normal;
}

/* ============================================================
   SCROLL ANIMACIJE — elementi se pojavljuju pri scrollanju
   ============================================================ */
[data-animate] {
  opacity: 0;
  transform: translateY(32px);
  transition:
    opacity 0.7s ease,
    transform 0.7s ease;
}

[data-animate="fade-right"] {
  transform: translateX(-32px);
}
[data-animate="fade-left"] {
  transform: translateX(32px);
}

[data-animate].is-visible {
  opacity: 1;
  transform: translate(0, 0);
}

/* ============================================================
   NAVIGACIJA
   ============================================================ */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--nav-height);
  transition:
    background var(--transition-base),
    box-shadow var(--transition-base);
}

/* Navigacija pri scrollu postaje bijela */
.navbar.scrolled {
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(20px);
  box-shadow: var(--shadow-sm);
}

.nav-container {
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--container-pad);
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  font-family: var(--font-serif);
  font-size: var(--text-xl);
  font-weight: 500;
  color: var(--color-white);
  transition: color var(--transition-base);
  letter-spacing: 0.02em;
}

.nav-logo span {
  color: var(--color-beige);
}

.navbar.scrolled .nav-logo {
  color: var(--color-gray-900);
}
.navbar.scrolled .nav-logo span {
  color: var(--color-accent);
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: var(--space-8);
}

.nav-link {
  font-size: var(--text-sm);
  font-weight: 400;
  color: rgba(255, 255, 255, 0.85);
  letter-spacing: 0.04em;
  transition: color var(--transition-fast);
  position: relative;
}

.nav-link::after {
  content: "";
  position: absolute;
  bottom: -4px;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--color-accent);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform var(--transition-base);
}

.nav-link:hover {
  color: var(--color-white);
}
.nav-link:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

.navbar.scrolled .nav-link {
  color: var(--color-gray-700);
}
.navbar.scrolled .nav-link:hover {
  color: var(--color-accent);
}

/* CTA gumb u navigaciji */
.nav-cta {
  background: var(--color-accent);
  color: var(--color-white) !important;
  padding: var(--space-2) var(--space-6);
  border-radius: var(--radius-full);
  transition:
    background var(--transition-fast),
    transform var(--transition-fast) !important;
}

.nav-cta::after {
  display: none;
}
.nav-cta:hover {
  background: var(--color-accent-dark) !important;
  transform: translateY(-1px);
}

/* Hamburger gumb za mobitel */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: var(--space-2);
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--color-white);
  transition: all var(--transition-base);
  transform-origin: center;
}

.navbar.scrolled .nav-toggle span {
  background: var(--color-gray-900);
}

/* Animacija hamburger → X */
.nav-toggle.is-open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.nav-toggle.is-open span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}
.nav-toggle.is-open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ============================================================
   HERO SEKCIJA
   ============================================================ */
.hero {
  position: relative;
  height: 100svh;
  min-height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  transform: scale(1.05);
  transition: transform 8s ease-out;
  will-change: transform;
}

.hero-bg.is-loaded {
  transform: scale(1);
}

/* Tamni overlay za čitljivost teksta */
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.2) 0%,
    rgba(0, 0, 0, 0.45) 50%,
    rgba(0, 0, 0, 0.6) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  color: var(--color-white);
  padding-inline: var(--container-pad);
  max-width: 800px;
}

.hero-tag {
  display: inline-block;
  font-size: var(--text-xs);
  font-weight: 500;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--color-beige);
  margin-bottom: var(--space-6);
  opacity: 0;
  animation: heroFadeUp 1s ease 0.3s forwards;
}

.hero-title {
  font-family: var(--font-serif);
  font-size: clamp(var(--text-5xl), 12vw, var(--text-7xl));
  font-weight: 300;
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin-bottom: var(--space-6);
  opacity: 0;
  animation: heroFadeUp 1s ease 0.5s forwards;
}

.hero-subtitle {
  font-size: clamp(var(--text-base), 2vw, var(--text-xl));
  font-weight: 300;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: var(--space-10);
  line-height: 1.6;
  opacity: 0;
  animation: heroFadeUp 1s ease 0.7s forwards;
}

.hero-actions {
  display: flex;
  gap: var(--space-4);
  justify-content: center;
  flex-wrap: wrap;
  opacity: 0;
  animation: heroFadeUp 1s ease 0.9s forwards;
}

@keyframes heroFadeUp {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Indikator scrollanja */
.scroll-indicator {
  position: absolute;
  bottom: var(--space-8);
  left: 50%;
  transform: translateX(-50%);
  z-index: 1;
}

.scroll-line {
  width: 1px;
  height: 60px;
  background: linear-gradient(to bottom, transparent, rgba(255, 255, 255, 0.6));
  margin-inline: auto;
  animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
  0%,
  100% {
    opacity: 0.3;
    transform: scaleY(0.8);
  }
  50% {
    opacity: 1;
    transform: scaleY(1);
  }
}

/* ============================================================
   STATISTIKE SEKCIJA
   ============================================================ */
.stats {
  background: var(--color-gray-900);
  padding: var(--space-12) 0;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-1);
}

.stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: var(--space-8) var(--space-4);
  position: relative;
}

.stat-item + .stat-item::before {
  content: "";
  position: absolute;
  left: 0;
  top: 25%;
  bottom: 25%;
  width: 1px;
  background: rgba(255, 255, 255, 0.1);
}

.stat-number {
  font-family: var(--font-serif);
  font-size: clamp(var(--text-3xl), 5vw, var(--text-5xl));
  font-weight: 300;
  color: var(--color-white);
  line-height: 1;
  margin-bottom: var(--space-2);
}

.stat-label {
  font-size: var(--text-sm);
  font-weight: 400;
  color: var(--color-gray-400);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* ============================================================
   GALERIJA
   ============================================================ */
.gallery {
  padding: var(--space-24) 0;
  background: var(--color-off-white);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: auto;
  gap: var(--space-3);
}

/* Prva (velika) slika zauzima dva stupca */
.gallery-item--large {
  grid-column: span 2;
  grid-row: span 2;
}

.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-md);
  cursor: pointer;
  background: var(--color-gray-200);
  aspect-ratio: 4/3;
}

.gallery-item--large {
  aspect-ratio: unset;
}

.gallery-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  display: block;
}

.gallery-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.35);
  opacity: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity var(--transition-base);
}

.gallery-zoom {
  color: var(--color-white);
  font-size: 2.5rem;
  font-weight: 300;
  line-height: 1;
  transform: scale(0.7) rotate(-45deg);
  transition: transform var(--transition-base);
}

.gallery-item:hover .gallery-img {
  transform: scale(1.06);
}
.gallery-item:hover .gallery-overlay {
  opacity: 1;
}
.gallery-item:hover .gallery-zoom {
  transform: scale(1) rotate(0deg);
}

/* Focus stilovi za pristupačnost */
.gallery-item:focus-within .gallery-overlay {
  opacity: 1;
}

/* ============================================================
   LIGHTBOX
   ============================================================ */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 20000;
  background: rgba(0, 0, 0, 0.95);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-8);
  opacity: 0;
  transition: opacity var(--transition-base);
}

.lightbox:not([hidden]) {
  display: flex;
  opacity: 1;
}

.lightbox[hidden] {
  display: none;
}

.lightbox-content {
  position: relative;
  max-width: 90vw;
  max-height: 85vh;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.lightbox-img {
  max-width: 100%;
  max-height: 80vh;
  object-fit: contain;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-xl);
}

.lightbox-caption {
  color: rgba(255, 255, 255, 0.7);
  font-size: var(--text-sm);
  margin-top: var(--space-4);
  text-align: center;
}

.lightbox-counter {
  position: absolute;
  top: var(--space-6);
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255, 255, 255, 0.6);
  font-size: var(--text-sm);
  letter-spacing: 0.1em;
}

/* Lightbox gumbi */
.lightbox-close,
.lightbox-prev,
.lightbox-next {
  position: absolute;
  color: var(--color-white);
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-full);
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  transition:
    background var(--transition-fast),
    transform var(--transition-fast);
  z-index: 1;
  backdrop-filter: blur(4px);
}

.lightbox-close {
  top: var(--space-4);
  right: var(--space-4);
  font-size: 1.8rem;
}
.lightbox-prev {
  left: var(--space-4);
  top: 50%;
  transform: translateY(-50%);
}
.lightbox-next {
  right: var(--space-4);
  top: 50%;
  transform: translateY(-50%);
}

.lightbox-close:hover {
  background: rgba(255, 255, 255, 0.25);
}
.lightbox-prev:hover,
.lightbox-next:hover {
  background: rgba(255, 255, 255, 0.25);
}

/* ============================================================
   O APARTMANU
   ============================================================ */
.about {
  padding: var(--space-24) 0;
  background: var(--color-white);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(var(--space-12), 8vw, var(--space-24));
  align-items: center;
}

.about-text {
  font-size: var(--text-lg);
  color: var(--color-text-light);
  line-height: 1.8;
  margin-bottom: var(--space-6);
}

.about-specs {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-4);
  margin-top: var(--space-10);
  padding-top: var(--space-10);
  border-top: 1px solid var(--color-gray-200);
}

.spec-item {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.spec-icon {
  font-size: 1.5rem;
  flex-shrink: 0;
}

.spec-item > div {
  display: flex;
  flex-direction: column;
}

.spec-value {
  font-family: var(--font-serif);
  font-size: var(--text-lg);
  font-weight: 500;
  color: var(--color-gray-900);
  line-height: 1.2;
}

.spec-label {
  font-size: var(--text-xs);
  color: var(--color-text-light);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* Slika desne strane */
.about-image {
  position: relative;
}

.about-img {
  width: 100%;
  height: 600px;
  object-fit: cover;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-xl);
}

.about-badge {
  position: absolute;
  bottom: var(--space-8);
  left: calc(-1 * var(--space-8));
  background: var(--color-white);
  padding: var(--space-4) var(--space-6);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  display: flex;
  flex-direction: column;
}

.badge-number {
  font-family: var(--font-serif);
  font-size: var(--text-2xl);
  font-weight: 500;
  color: var(--color-accent);
  line-height: 1.1;
}

.badge-text {
  font-size: var(--text-xs);
  color: var(--color-text-light);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* ============================================================
   SADRŽAJI (AMENITIES)
   ============================================================ */
.amenities {
  padding: var(--space-24) 0;
  background: var(--color-bg-section);
}

.amenities-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-6);
}

.amenity-card {
  background: var(--color-white);
  padding: var(--space-8);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  transition:
    transform var(--transition-base),
    box-shadow var(--transition-base);
  border: 1px solid transparent;
}

.amenity-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: var(--color-beige);
}

.amenity-icon {
  font-size: 2rem;
  margin-bottom: var(--space-4);
  display: block;
}

.amenity-title {
  font-family: var(--font-serif);
  font-size: var(--text-xl);
  font-weight: 500;
  color: var(--color-gray-900);
  margin-bottom: var(--space-2);
}

.amenity-text {
  font-size: var(--text-sm);
  color: var(--color-text-light);
  line-height: 1.6;
}

/* ============================================================
   LOKACIJA
   ============================================================ */
.location {
  padding: var(--space-24) 0;
  background: var(--color-white);
}

.location-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: clamp(var(--space-10), 6vw, var(--space-20));
  align-items: start;
}

.location-description {
  font-size: var(--text-lg);
  color: var(--color-text-light);
  line-height: 1.8;
  margin-bottom: var(--space-10);
}

.distances {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.distance-item {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  padding: var(--space-4) 0;
  border-bottom: 1px solid var(--color-gray-200);
}

.distance-item:last-child {
  border-bottom: none;
}

.distance-icon {
  font-size: 1.3rem;
  flex-shrink: 0;
  width: 32px;
  text-align: center;
}

.distance-info {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex: 1;
}

.distance-name {
  font-size: var(--text-base);
  color: var(--color-text);
  font-weight: 400;
}

.distance-value {
  font-size: var(--text-sm);
  color: var(--color-accent);
  font-weight: 500;
}

.map-container {
  height: 480px;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--color-gray-200);
}

.map-container iframe {
  display: block;
}

/* ============================================================
   KONTAKT SEKCIJA
   ============================================================ */
.contact {
  padding: var(--space-24) 0;
  background: var(--color-bg-light);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: clamp(var(--space-10), 6vw, var(--space-20));
  align-items: start;
}

.contact-info-title {
  font-family: var(--font-serif);
  font-size: var(--text-2xl);
  font-weight: 400;
  color: var(--color-gray-900);
  margin-bottom: var(--space-8);
}

.contact-method {
  display: flex;
  align-items: flex-start;
  gap: var(--space-4);
  margin-bottom: var(--space-6);
}

.contact-method-icon {
  font-size: 1.3rem;
  flex-shrink: 0;
  margin-top: 2px;
}

.contact-method-label {
  display: block;
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-text-light);
  margin-bottom: var(--space-1);
}

.contact-method-value {
  font-size: var(--text-base);
  color: var(--color-accent);
  transition: color var(--transition-fast);
}

.contact-method-value:hover {
  color: var(--color-accent-dark);
}

.contact-note {
  margin-top: var(--space-8);
  padding: var(--space-6);
  background: var(--color-beige);
  border-radius: var(--radius-lg);
  border-left: 3px solid var(--color-accent);
}

.contact-note p {
  font-size: var(--text-sm);
  color: var(--color-text-light);
  line-height: 1.7;
}

/* Forma */
.contact-form-wrapper {
  background: var(--color-white);
  padding: clamp(var(--space-8), 5vw, var(--space-12));
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: var(--space-6);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-6);
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.form-label {
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--color-gray-700);
  letter-spacing: 0.02em;
}

.required {
  color: var(--color-accent);
}

.form-input {
  width: 100%;
  padding: var(--space-4) var(--space-4);
  border: 1.5px solid var(--color-gray-200);
  border-radius: var(--radius-md);
  font-family: var(--font-sans);
  font-size: var(--text-base);
  color: var(--color-text);
  background: var(--color-white);
  transition:
    border-color var(--transition-fast),
    box-shadow var(--transition-fast);
  outline: none;
  appearance: none;
  -webkit-appearance: none;
}

.form-input::placeholder {
  color: var(--color-gray-400);
}

.form-input:focus {
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px rgba(139, 111, 71, 0.12);
}

.form-input.is-invalid {
  border-color: #e53e3e;
  box-shadow: 0 0 0 3px rgba(229, 62, 62, 0.1);
}

.form-select {
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: var(--space-10);
  cursor: pointer;
}

.form-textarea {
  resize: vertical;
  min-height: 120px;
  line-height: 1.6;
}

.form-error {
  font-size: var(--text-xs);
  color: #e53e3e;
  min-height: 1em;
}

/* ============================================================
   WHATSAPP SEKCIJA
   ============================================================ */
.whatsapp-section {
  padding: var(--space-20) 0;
  background: linear-gradient(135deg, #0d1f0f 0%, #1a3a1e 100%);
  position: relative;
  overflow: hidden;
}

.whatsapp-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    ellipse at 70% 50%,
    rgba(37, 211, 102, 0.12) 0%,
    transparent 60%
  );
  pointer-events: none;
}

.whatsapp-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-8);
  flex-wrap: wrap;
}

.whatsapp-title {
  font-family: var(--font-serif);
  font-size: clamp(var(--text-2xl), 4vw, var(--text-4xl));
  font-weight: 300;
  color: var(--color-white);
  line-height: 1.2;
  margin-bottom: var(--space-3);
}

.whatsapp-subtitle {
  font-size: var(--text-lg);
  color: rgba(255, 255, 255, 0.65);
  line-height: 1.6;
}

.whatsapp-btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-4);
  background: var(--color-whatsapp);
  color: var(--color-white);
  padding: var(--space-5) var(--space-10);
  border-radius: var(--radius-full);
  font-size: var(--text-lg);
  font-weight: 500;
  white-space: nowrap;
  transition: all var(--transition-base);
  box-shadow: 0 8px 32px rgba(37, 211, 102, 0.35);
  flex-shrink: 0;
  padding-right: 1rem;
}

.whatsapp-btn:hover {
  background: var(--color-whatsapp-dk);
  transform: translateY(-3px);
  box-shadow: 0 12px 40px rgba(37, 211, 102, 0.5);
}

.whatsapp-icon {
  flex-shrink: 0;
}

/* Plutajući WhatsApp gumb */
.whatsapp-float {
  position: fixed;
  bottom: var(--space-8);
  right: var(--space-8);
  z-index: 999;
  width: 60px;
  height: 60px;
  background: var(--color-whatsapp);
  color: var(--color-white);
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 24px rgba(37, 211, 102, 0.4);
  transition: all var(--transition-base);
  opacity: 0;
  transform: scale(0.8);
  pointer-events: none;
}

.whatsapp-float.is-visible {
  opacity: 1;
  transform: scale(1);
  pointer-events: auto;
}

.whatsapp-float:hover {
  background: var(--color-whatsapp-dk);
  transform: scale(1.1);
  box-shadow: 0 8px 32px rgba(37, 211, 102, 0.5);
}

/* Pulsni efekt oko plutajućeg gumba */
.whatsapp-float::before {
  content: "";
  position: absolute;
  inset: -4px;
  border-radius: var(--radius-full);
  background: var(--color-whatsapp);
  opacity: 0;
  animation: waPulse 2.5s ease-in-out infinite;
}

@keyframes waPulse {
  0% {
    opacity: 0.4;
    transform: scale(1);
  }
  100% {
    opacity: 0;
    transform: scale(1.6);
  }
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  background: var(--color-gray-900);
  padding-top: var(--space-20);
  padding-bottom: var(--space-8);
  color: var(--color-white);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: clamp(var(--space-8), 6vw, var(--space-16));
  padding-bottom: var(--space-12);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  margin-bottom: var(--space-8);
}

.footer-logo {
  font-family: var(--font-serif);
  font-size: var(--text-2xl);
  font-weight: 400;
  color: var(--color-white);
  display: inline-block;
  margin-bottom: var(--space-4);
}

.footer-logo span {
  color: var(--color-accent-light);
}

.footer-tagline {
  font-size: var(--text-sm);
  color: var(--color-gray-500);
  line-height: 1.7;
  max-width: 280px;
}

.footer-heading {
  font-family: var(--font-sans);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-gray-400);
  margin-bottom: var(--space-6);
}

.footer-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.footer-link {
  font-size: var(--text-sm);
  color: var(--color-gray-500);
  transition: color var(--transition-fast);
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.footer-link:hover {
  color: var(--color-white);
}

.footer-bottom {
  text-align: center;
}

.footer-copyright {
  font-size: var(--text-xs);
  color: var(--color-gray-500);
  letter-spacing: 0.04em;
}

/* ============================================================
   RESPONZIVNI DIZAJN — Tablet (max 1024px)
   ============================================================ */
@media (max-width: 1024px) {
  .about-grid {
    grid-template-columns: 1fr;
    gap: var(--space-12);
  }

  .about-image {
    order: -1;
  }

  .about-img {
    height: 400px;
  }

  .about-badge {
    left: var(--space-4);
    bottom: var(--space-4);
  }

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

  .location-grid {
    grid-template-columns: 1fr;
  }

  .map-container {
    height: 380px;
  }

  .contact-grid {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
  .footer-brand {
    grid-column: span 2;
  }
}

/* ============================================================
   RESPONZIVNI DIZAJN — Mobitel (max 768px)
   ============================================================ */
@media (max-width: 768px) {
  :root {
    --nav-height: 60px;
  }

  /* Navigacija — hamburger izbornik */
  .nav-toggle {
    display: flex;
  }

  .nav-menu {
    position: fixed;
    top: var(--nav-height);
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    flex-direction: column;
    gap: 0;
    padding: var(--space-4) 0 var(--space-8);
    transform: translateY(-110%);
    opacity: 0;
    transition:
      transform var(--transition-base),
      opacity var(--transition-base);
    box-shadow: var(--shadow-lg);
    pointer-events: none;
  }

  .nav-menu.is-open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .nav-link {
    display: block;
    color: var(--color-gray-700) !important;
    padding: var(--space-4) var(--container-pad);
    font-size: var(--text-base);
    border-bottom: 1px solid var(--color-gray-100);
  }

  .nav-cta {
    margin: var(--space-4) var(--container-pad) 0;
    text-align: center;
    display: block;
    border-radius: var(--radius-md) !important;
  }

  /* Hero */
  .hero-actions {
    flex-direction: column;
    align-items: center;
  }
  .btn {
    width: 100%;
    max-width: 280px;
    justify-content: center;
  }

  /* Statistike */
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0;
  }

  .stat-item:nth-child(odd) + .stat-item::before {
    display: none;
  }

  .stat-item:nth-child(2)::before,
  .stat-item:nth-child(4)::before {
    display: block;
  }

  .stat-item:nth-child(3),
  .stat-item:nth-child(4) {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
  }

  /* Galerija — jedna kolona na mobilima */
  .gallery-grid {
    grid-template-columns: 1fr;
  }
  .gallery-item--large {
    grid-column: span 1;
    grid-row: span 1;
  }
  .gallery-item {
    aspect-ratio: 16/9;
  }

  /* Specifikacije */
  .about-specs {
    grid-template-columns: 1fr;
  }

  /* Sadržaji */
  .amenities-grid {
    grid-template-columns: 1fr;
  }

  /* Forma redovi */
  .form-row {
    grid-template-columns: 1fr;
  }

  /* WhatsApp sekcija */
  .whatsapp-content {
    flex-direction: column;
    text-align: center;
  }
  .whatsapp-btn {
    width: 100%;
    max-width: 360px;
    justify-content: center;
  }

  /* Footer */
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .footer-brand {
    grid-column: span 1;
  }

  /* Plutajući gumb — manji na mobilima */
  .whatsapp-float {
    bottom: var(--space-4);
    right: var(--space-4);
    width: 52px;
    height: 52px;
  }
}

/* ============================================================
   RESPONZIVNI DIZAJN — Mali mobitel (max 480px)
   ============================================================ */
@media (max-width: 480px) {
  .contact-form-wrapper {
    padding: var(--space-6);
  }
  .about-img {
    height: 300px;
  }
  .map-container {
    height: 300px;
  }
}

/* ============================================================
   PRISTUPAČNOST — prefers-reduced-motion
   Isključuje animacije korisnicima koji preferiraju smanjeno kretanje
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  html {
    scroll-behavior: auto;
  }

  [data-animate] {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* ============================================================
   KARTICE APARTMANA
   ============================================================ */
.apt-cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-8);
}

/* Svaka kartica je klikabilna */
.apt-card {
  background: var(--color-white);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  cursor: pointer;
  transition:
    transform var(--transition-base),
    box-shadow var(--transition-base);
  border: 1px solid var(--color-gray-200);
  outline: none;
}

.apt-card:hover,
.apt-card:focus-visible {
  transform: translateY(-8px);
  box-shadow: var(--shadow-xl);
  border-color: var(--color-beige-dark);
}

/* Slika kartice */
.apt-card-img-wrap {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4/3;
}

.apt-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  display: block;
}

.apt-card:hover .apt-card-img {
  transform: scale(1.07);
}

/* Tamni overlay s CTA tekstom */
.apt-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.6) 0%,
    rgba(0, 0, 0, 0.1) 60%
  );
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding-bottom: var(--space-6);
  opacity: 0;
  transition: opacity var(--transition-base);
}

.apt-card:hover .apt-card-overlay {
  opacity: 1;
}

.apt-card-cta {
  color: var(--color-white);
  font-size: var(--text-sm);
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-bottom: 1px solid rgba(255, 255, 255, 0.6);
  padding-bottom: 2px;
}

/* Badge (oznaka) u gornjem desnom kutu slike */
.apt-card-badge {
  position: absolute;
  top: var(--space-4);
  right: var(--space-4);
  background: var(--color-white);
  color: var(--color-gray-700);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: var(--space-1) var(--space-3);
  border-radius: var(--radius-full);
  box-shadow: var(--shadow-sm);
}

/* Istaknuta oznaka (popular) — zlatna */
.apt-card-badge--featured {
  background: var(--color-accent);
  color: var(--color-white);
}

/* Tijelo kartice */
.apt-card-body {
  padding: var(--space-6) var(--space-8) var(--space-8);
}

.apt-card-title {
  font-family: var(--font-serif);
  font-size: var(--text-2xl);
  font-weight: 400;
  color: var(--color-gray-900);
  margin-bottom: var(--space-3);
}

.apt-card-desc {
  font-size: var(--text-sm);
  color: var(--color-text-light);
  line-height: 1.7;
  margin-bottom: var(--space-5);
}

/* Specifikacije na kartici */
.apt-card-specs {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2) var(--space-4);
  padding-top: var(--space-4);
  border-top: 1px solid var(--color-gray-100);
}

.apt-spec {
  display: flex;
  align-items: center;
  gap: var(--space-1);
  font-size: var(--text-xs);
  color: var(--color-text-light);
  font-weight: 500;
}

/* ============================================================
   MODALNI PROZORI APARTMANA
   ============================================================ */

/* Pozadinski overlay */
.apt-modal {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(6px);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  opacity: 0;
  transition: opacity var(--transition-base);
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: clamp(var(--space-4), 4vw, var(--space-12)) var(--space-4);
}

/* Vidljivo stanje */
.apt-modal:not([hidden]) {
  display: flex;
  opacity: 1;
}

.apt-modal[hidden] {
  display: none;
}

/* Bijeli unutarnji prozor */
.apt-modal-inner {
  background: var(--color-white);
  border-radius: var(--radius-xl);
  width: 100%;
  max-width: 960px;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-xl);
  transform: translateY(24px);
  transition: transform var(--transition-base);
  animation: modalSlideIn 0.4s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

@keyframes modalSlideIn {
  from {
    opacity: 0;
    transform: translateY(40px) scale(0.97);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* Gumb za zatvaranje modala */
.apt-modal-close {
  position: absolute;
  top: var(--space-4);
  right: var(--space-4);
  z-index: 10;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(8px);
  color: var(--color-gray-700);
  font-size: 1.6rem;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-md);
  transition:
    background var(--transition-fast),
    transform var(--transition-fast);
}

.apt-modal-close:hover {
  background: var(--color-white);
  transform: scale(1.1);
}

/* Hero slika unutar modala */
.apm-hero {
  position: relative;
  height: clamp(220px, 35vw, 380px);
  overflow: hidden;
}

.apm-hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.apm-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.1) 0%,
    rgba(0, 0, 0, 0.55) 100%
  );
}

.apm-hero-text {
  position: absolute;
  bottom: var(--space-8);
  left: var(--space-8);
  color: var(--color-white);
}

.apm-tag {
  display: inline-block;
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-beige);
  margin-bottom: var(--space-2);
}

.apm-title {
  font-family: var(--font-serif);
  font-size: clamp(var(--text-3xl), 5vw, var(--text-5xl));
  font-weight: 300;
  line-height: 1.1;
}

/* Tijelo modala — opis + galerija */
.apm-body {
  padding: clamp(var(--space-6), 5vw, var(--space-12));
  display: flex;
  flex-direction: column;
  gap: var(--space-10);
}

.apm-desc {
  font-size: var(--text-lg);
  color: var(--color-text-light);
  line-height: 1.8;
  margin-bottom: var(--space-6);
}

/* Specifikacije unutar modala */
.apm-specs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-4);
  padding: var(--space-6);
  background: var(--color-bg-light);
  border-radius: var(--radius-lg);
  margin-bottom: var(--space-8);
}

.apm-spec-item {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.apm-spec-icon {
  font-size: 1.3rem;
  flex-shrink: 0;
}

.apm-spec-item > div {
  display: flex;
  flex-direction: column;
}

.apm-spec-val {
  font-family: var(--font-serif);
  font-size: var(--text-lg);
  font-weight: 500;
  color: var(--color-gray-900);
  line-height: 1.2;
}

.apm-spec-lbl {
  font-size: var(--text-xs);
  color: var(--color-text-light);
  text-transform: uppercase;
  letter-spacing: 0.07em;
}

/* CTA gumb unutar modala */
.apm-cta-btn {
  display: inline-flex;
  margin-top: var(--space-2);
}

/* Galerija unutar modala */
.apm-gallery-section {
}

.apm-gallery-title {
  font-family: var(--font-serif);
  font-size: var(--text-2xl);
  font-weight: 400;
  color: var(--color-gray-900);
  margin-bottom: var(--space-6);
}

/* Grid galerije — isti stil kao glavna galerija */
.apm-gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-3);
}

.apm-gallery-item--large {
  grid-column: span 2;
  grid-row: span 2;
}

.apm-gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-md);
  cursor: pointer;
  background: var(--color-gray-200);
  aspect-ratio: 4/3;
}

.apm-gallery-item--large {
  aspect-ratio: unset;
  min-height: 200px;
}

.apm-gallery-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  display: block;
}

.apm-gallery-item:hover .apm-gallery-img {
  transform: scale(1.06);
}
.apm-gallery-item:hover .gallery-overlay {
  opacity: 1;
}
.apm-gallery-item:hover .gallery-zoom {
  transform: scale(1) rotate(0deg);
}

/* ── Responsive za kartice i modale ────────────────────── */
@media (max-width: 1024px) {
  .apt-cards-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .apm-specs {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .apt-cards-grid {
    grid-template-columns: 1fr;
  }

  .apm-gallery-grid {
    grid-template-columns: 1fr 1fr;
  }
  .apm-gallery-item--large {
    grid-column: span 2;
    grid-row: span 1;
    aspect-ratio: 16/9;
  }

  .apm-hero-text {
    left: var(--space-4);
    bottom: var(--space-4);
  }
  .apm-specs {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  .apm-gallery-grid {
    grid-template-columns: 1fr;
  }
  .apm-gallery-item--large {
    grid-column: span 1;
    aspect-ratio: 16/9;
  }
  .apm-specs {
    grid-template-columns: 1fr 1fr;
  }
  .apt-card-body {
    padding: var(--space-4) var(--space-5) var(--space-6);
  }
}

/* ============================================================
   PRINT STILOVI
   ============================================================ */
@media print {
  .navbar,
  .whatsapp-float,
  .scroll-indicator {
    display: none;
  }
  .hero {
    height: auto;
    padding: 3rem 0;
  }
  .hero-bg {
    display: none;
  }
  .hero-overlay {
    display: none;
  }
  .hero-content {
    color: var(--color-gray-900);
  }
}
