/* ============================================================================
   Kuća za odmor Maslina — coastal/mediteran premium tema. Mobile-first.
   Boje, fontovi i razmaci su ovdje; sadržaj je u js/config.js.
   ========================================================================== */

:root {
  --sea:        #0e7c7b;   /* duboko more / teal */
  --sea-deep:   #0a5c5b;
  --terracotta: #cf6a4c;   /* topli akcent / CTA */
  --terracotta-d:#b9573b;
  --olive:      #7d8c5c;
  --sand:       #f7f1e6;   /* kremasta pozadina */
  --sand-2:     #efe6d6;
  --ink:        #2a2b29;   /* glavni tekst */
  --muted:      #6f6f68;
  --gold:       #e0a82e;
  --white:      #ffffff;

  --serif: "Cormorant Garamond", Georgia, serif;
  --sans:  "Inter", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;

  --maxw: 1140px;
  --radius: 14px;
  --shadow: 0 18px 40px -22px rgba(20, 40, 40, .45);
  --shadow-sm: 0 6px 20px -12px rgba(20, 40, 40, .4);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--sans);
  color: var(--ink);
  background: var(--sand);
  line-height: 1.65;
  font-weight: 400;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 22px; }

/* placeholder kad slika ne učita */
.img--fallback {
  background: linear-gradient(135deg, var(--sea) 0%, var(--olive) 100%);
  min-height: 180px;
}

/* ---------- Tipografija ---------- */
h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.12; color: var(--ink); }
.section { padding: 72px 0; }
.section__title {
  font-size: clamp(1.9rem, 5vw, 2.8rem);
  text-align: center;
  margin-bottom: 12px;
  position: relative;
}
.section__title::after {
  content: ""; display: block; width: 54px; height: 3px;
  background: var(--terracotta); border-radius: 3px; margin: 18px auto 0;
}
.section__title--light, .section__title--light::after { color: var(--white); }

/* ---------- Gumbi ---------- */
.btn {
  display: inline-block; cursor: pointer; border: none;
  font-family: var(--sans); font-weight: 600; font-size: .98rem;
  letter-spacing: .02em; padding: 15px 30px; border-radius: 50px;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}
.btn--primary { background: var(--terracotta); color: #fff; box-shadow: var(--shadow-sm); }
.btn--primary:hover { background: var(--terracotta-d); transform: translateY(-2px); box-shadow: var(--shadow); }

/* ============================ NAV ============================ */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  transition: background .3s ease, box-shadow .3s ease, padding .3s ease;
  padding: 16px 0;
}
.nav--scrolled { background: rgba(247, 241, 230, .96); box-shadow: var(--shadow-sm); backdrop-filter: blur(8px); padding: 9px 0; }
.nav__inner { display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.nav__brand {
  font-family: var(--serif); font-size: 1.35rem; font-weight: 700; color: #fff;
  text-shadow: 0 1px 8px rgba(0,0,0,.4); white-space: nowrap;
}
.nav--scrolled .nav__brand { color: var(--sea-deep); text-shadow: none; }

.nav__links { display: flex; align-items: center; gap: 4px; }
.nav__links a {
  color: #fff; text-shadow: 0 1px 6px rgba(0,0,0,.45);
  font-size: .92rem; font-weight: 500; padding: 8px 12px; border-radius: 8px;
}
.nav--scrolled .nav__links a { color: var(--ink); text-shadow: none; }
.nav__links a:hover { color: var(--terracotta); }
.nav__cta {
  background: var(--terracotta); color: #fff !important; text-shadow: none !important;
  padding: 9px 18px !important; border-radius: 50px; margin-left: 6px;
}
.nav__cta:hover { background: var(--terracotta-d); }

.nav__actions { display: flex; align-items: center; gap: 10px; }
.lang-toggle {
  background: rgba(255,255,255,.18); color: #fff; border: 1px solid rgba(255,255,255,.5);
  border-radius: 50px; padding: 6px 13px; font-weight: 600; font-size: .82rem;
  cursor: pointer; backdrop-filter: blur(4px);
}
.nav--scrolled .lang-toggle { color: var(--sea-deep); border-color: var(--sea); background: transparent; }

.nav__burger { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 6px; }
.nav__burger span { width: 24px; height: 2px; background: #fff; border-radius: 2px; transition: .25s; }
.nav--scrolled .nav__burger span { background: var(--ink); }
.nav__burger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__burger.open span:nth-child(2) { opacity: 0; }
.nav__burger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ============================ HERO ============================ */
.hero { position: relative; min-height: 100svh; display: flex; align-items: center; overflow: hidden; }
.hero__bg {
  position: absolute; inset: 0;
  background: linear-gradient(135deg, var(--sea) 0%, var(--sea-deep) 60%, var(--olive) 100%);
  background-size: cover; background-position: center;
  transform: scale(1.03);
}
.hero__overlay {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(10,40,40,.45) 0%, rgba(10,30,35,.30) 40%, rgba(10,40,45,.65) 100%);
}
.hero__content { position: relative; z-index: 2; color: #fff; text-align: center; padding-top: 80px; padding-bottom: 40px; }
.hero__eyebrow {
  text-transform: uppercase; letter-spacing: .28em; font-size: .8rem; font-weight: 600;
  margin-bottom: 18px; opacity: .92;
}
.hero__title { font-size: clamp(2.6rem, 9vw, 5rem); color: #fff; text-shadow: 0 2px 30px rgba(0,0,0,.35); margin-bottom: 16px; }
.hero__tagline { font-family: var(--serif); font-size: clamp(1.15rem, 3.4vw, 1.7rem); font-weight: 500; max-width: 620px; margin: 0 auto 34px; opacity: .96; }
.hero__cta { font-size: 1.05rem; padding: 16px 38px; }
.hero__scroll {
  position: absolute; bottom: 22px; left: 50%; transform: translateX(-50%); z-index: 2;
  color: #fff; font-size: 1.5rem; opacity: .8; animation: bob 2s ease-in-out infinite;
}
@keyframes bob { 0%,100% { transform: translate(-50%, 0); } 50% { transform: translate(-50%, 8px); } }

/* ============================ HIGHLIGHTS ============================ */
.section--highlights { background: var(--white); }
.intro {
  max-width: 760px; margin: 0 auto 56px; text-align: center;
  font-family: var(--serif); font-size: clamp(1.25rem, 3.2vw, 1.6rem);
  font-weight: 500; color: var(--ink); line-height: 1.5;
}
.highlights { list-style: none; display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; margin-top: 40px; }
.highlight {
  display: flex; flex-direction: column; align-items: center; text-align: center;
  gap: 12px; padding: 26px 14px; background: var(--sand); border-radius: var(--radius);
  transition: transform .2s ease, box-shadow .2s ease;
}
.highlight:hover { transform: translateY(-4px); box-shadow: var(--shadow-sm); }
.highlight__icon {
  width: 54px; height: 54px; display: grid; place-items: center; border-radius: 50%;
  background: rgba(14,124,123,.1);
}
.highlight__icon svg { width: 28px; height: 28px; fill: var(--sea); }
.highlight__label { font-weight: 500; font-size: .98rem; }

/* ============================ GALERIJA ============================ */
.section--gallery { background: var(--sand); }
.gallery { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin-top: 40px; }
.gallery__item {
  border: none; padding: 0; cursor: pointer; overflow: hidden; border-radius: var(--radius);
  aspect-ratio: 4/3; background: var(--sand-2); position: relative;
}
.gallery__item img { width: 100%; height: 100%; object-fit: cover; transition: transform .45s ease; }
.gallery__item:hover img { transform: scale(1.07); }

/* ============================ CIJENE ============================ */
.section--pricing { background: var(--white); }
.pricing { max-width: 760px; margin: 40px auto 0; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); }
.price-row { display: grid; grid-template-columns: 1.2fr 1.3fr .8fr; align-items: center; gap: 8px; padding: 16px 20px; background: var(--white); border-bottom: 1px solid var(--sand-2); }
.price-row:last-child { border-bottom: none; }
.price-row--head { background: var(--sea); color: #fff; font-weight: 600; text-transform: uppercase; letter-spacing: .05em; font-size: .82rem; }
.price-row__season { font-weight: 600; }
.price-row__dates { color: var(--muted); font-size: .92rem; }
.price-row__price { text-align: right; font-weight: 700; color: var(--terracotta); white-space: nowrap; }
.price-row--head .price-row__price { color: #fff; }
.pricing__notes { max-width: 760px; margin: 18px auto 0; text-align: center; color: var(--muted); font-size: .9rem; }

/* ============================ DIREKTNO ============================ */
.section--direct { background: linear-gradient(135deg, var(--sea-deep), var(--sea)); color: #fff; }
.direct { display: grid; gap: 40px; align-items: center; }
.direct__lead { font-family: var(--serif); font-size: 1.3rem; text-align: center; margin: 6px 0 30px; opacity: .95; }
.direct__points { display: grid; gap: 22px; margin-bottom: 32px; }
.direct__point { padding-left: 18px; border-left: 3px solid var(--terracotta); }
.direct__point h3 { color: #fff; font-size: 1.3rem; margin-bottom: 6px; }
.direct__point p { opacity: .92; font-size: .98rem; }
.direct__text > .btn { display: block; width: fit-content; margin: 0 auto; }
.direct__qr { display: flex; justify-content: center; }
.qr-card { background: #fff; padding: 18px; border-radius: var(--radius); text-align: center; box-shadow: var(--shadow); }
.qr-card img { width: 180px; height: 180px; border-radius: 6px; }
.qr-card--fallback img { display: none; }
.qr-card--fallback::before { content: "QR"; display: grid; place-items: center; width: 180px; height: 180px; background: var(--sand-2); color: var(--muted); border-radius: 6px; font-weight: 700; }
.qr-card__label { display: block; margin-top: 12px; color: var(--ink); font-weight: 600; font-size: .9rem; }

/* ============================ LOKACIJA ============================ */
.section--location { background: var(--sand); }
.location { display: grid; gap: 28px; margin-top: 40px; }
.location__map { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); }
.location__map iframe { width: 100%; height: 320px; border: 0; display: block; }
.location__maplink { display: block; text-align: center; padding: 10px; background: var(--white); color: var(--sea); font-weight: 600; font-size: .9rem; }
.location__addr { font-size: 1.4rem; margin-bottom: 18px; color: var(--sea-deep); }
.location__info h4 { font-family: var(--sans); text-transform: uppercase; letter-spacing: .08em; font-size: .82rem; color: var(--muted); margin-bottom: 12px; }
.nearby { list-style: none; }
.nearby li { display: flex; justify-content: space-between; gap: 14px; padding: 12px 0; border-bottom: 1px solid var(--sand-2); }
.nearby__dist { font-weight: 700; color: var(--terracotta); white-space: nowrap; }

/* ============================ RECENZIJE ============================ */
.section--reviews { background: var(--white); }
.reviews { display: grid; gap: 20px; margin-top: 40px; }
.review { background: var(--sand); border-radius: var(--radius); padding: 28px 26px; box-shadow: var(--shadow-sm); }
.review__stars { color: var(--gold); letter-spacing: 2px; margin-bottom: 12px; font-size: 1.05rem; }
.review__text { font-family: var(--serif); font-size: 1.2rem; line-height: 1.5; margin-bottom: 18px; color: var(--ink); }
.review__author { display: flex; flex-direction: column; }
.review__author strong { font-weight: 600; }
.review__author span { color: var(--muted); font-size: .9rem; }

/* ============================ FORMA ============================ */
.section--form { background: linear-gradient(180deg, var(--sand) 0%, var(--sand-2) 100%); }
.form-wrap { max-width: 760px; }
.form__lead { text-align: center; color: var(--muted); margin: 6px 0 34px; }
.form { background: var(--white); padding: 32px 26px; border-radius: var(--radius); box-shadow: var(--shadow); }
.form__row { display: grid; gap: 16px; margin-bottom: 16px; }
.form__field { display: flex; flex-direction: column; gap: 6px; }
.form__field > span { font-weight: 500; font-size: .9rem; color: var(--ink); }
.form input, .form textarea {
  font-family: var(--sans); font-size: 1rem; padding: 12px 14px; border: 1.5px solid var(--sand-2);
  border-radius: 10px; background: var(--sand); color: var(--ink); transition: border .15s ease, background .15s ease;
}
.form input:focus, .form textarea:focus { outline: none; border-color: var(--sea); background: #fff; }
.form textarea { resize: vertical; }
.form__submit { width: 100%; margin-top: 6px; }
.form__status { margin-top: 14px; text-align: center; font-size: .94rem; font-weight: 500; }
.form__status--ok { color: var(--sea-deep); }
.form__status--err { color: var(--terracotta-d); }
.form__status--demo { color: var(--olive); background: rgba(125,140,92,.12); padding: 12px; border-radius: 10px; }

/* ============================ FOOTER ============================ */
.footer { background: var(--sea-deep); color: rgba(255,255,255,.85); padding-top: 56px; }
.footer__grid { display: grid; gap: 32px; }
.footer__brand { color: #fff; font-size: 1.5rem; margin-bottom: 12px; }
.footer__demo { font-size: .86rem; opacity: .7; margin-bottom: 14px; }
.footer__reg { font-size: .86rem; }
.footer__reg span { color: rgba(255,255,255,.6); }
.footer__col h4 { color: #fff; font-family: var(--sans); text-transform: uppercase; letter-spacing: .08em; font-size: .8rem; margin-bottom: 16px; }
.footer__contact, .footer__rules { list-style: none; }
.footer__contact li, .footer__rules li { padding: 5px 0; font-size: .94rem; }
.footer__contact a:hover { color: var(--terracotta); }
.footer__social { display: flex; gap: 12px; }
.footer__social a { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 50%; background: rgba(255,255,255,.12); transition: background .2s ease; }
.footer__social a:hover { background: var(--terracotta); }
.footer__social svg { width: 20px; height: 20px; fill: #fff; }
.footer__bar { margin-top: 40px; padding: 20px 0; border-top: 1px solid rgba(255,255,255,.12); font-size: .85rem; text-align: center; opacity: .75; }

/* ============================ LIGHTBOX ============================ */
.lightbox { position: fixed; inset: 0; z-index: 200; background: rgba(10,20,22,.94); display: flex; align-items: center; justify-content: center; }
.lightbox[hidden] { display: none; }
.lightbox__img { max-width: 92vw; max-height: 86vh; border-radius: 8px; box-shadow: 0 20px 60px rgba(0,0,0,.5); }
.lightbox__close { position: absolute; top: 18px; right: 22px; background: none; border: none; color: #fff; font-size: 2.4rem; line-height: 1; cursor: pointer; }
.lightbox__nav { position: absolute; top: 50%; transform: translateY(-50%); background: rgba(255,255,255,.12); border: none; color: #fff; font-size: 1.5rem; width: 50px; height: 50px; border-radius: 50%; cursor: pointer; transition: background .2s; }
.lightbox__nav:hover { background: rgba(255,255,255,.28); }
.lightbox__nav--prev { left: 16px; }
.lightbox__nav--next { right: 16px; }

/* ============================ RESPONSIVE ============================ */
@media (max-width: 860px) {
  .nav__links {
    position: fixed; top: 0; right: -100%; height: 100vh; width: min(80vw, 320px);
    flex-direction: column; align-items: flex-start; justify-content: center; gap: 6px;
    background: var(--sea-deep); padding: 40px 32px; transition: right .3s ease; box-shadow: -10px 0 40px rgba(0,0,0,.3);
  }
  .nav__links.open { right: 0; }
  .nav__links a { color: #fff !important; text-shadow: none !important; font-size: 1.1rem; width: 100%; }
  .nav__cta { margin: 12px 0 0; }
  .nav__burger { display: flex; }
}

@media (min-width: 700px) {
  .highlights { grid-template-columns: repeat(4, 1fr); }
  .gallery { grid-template-columns: repeat(3, 1fr); }
  .form__row { grid-template-columns: 1fr 1fr; }
  .form__row:first-child { grid-template-columns: 1fr 1fr .7fr; }
  .reviews { grid-template-columns: repeat(2, 1fr); }
  .footer__grid { grid-template-columns: 2fr 1fr 1fr 1fr; }
}

@media (min-width: 920px) {
  .section { padding: 92px 0; }
  .direct { grid-template-columns: 1.4fr 1fr; }
  .direct__text > .btn { margin: 0; }
  .location { grid-template-columns: 1.3fr 1fr; align-items: start; }
  .location__map iframe { height: 400px; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; scroll-behavior: auto !important; }
}
