/* ============================================================
   Apartmani Dajčić — demo stranica
   Šareno-profesionalna paleta izvedena iz stvarnih motiva:
   termalna voda (teal), žuta fasada (sun), ruže (rose), kamen (cream)
   ============================================================ */
:root {
  --teal: #0e7c86;
  --teal-dark: #0a5b63;
  --teal-ink: #073c42;
  --sun: #f7b731;
  --sun-dark: #e29e0c;
  --rose: #d9447a;
  --rose-dark: #b53161;
  --cream: #fdf9f0;
  --cream-2: #f6efdf;
  --ink: #2b2b33;
  --ink-soft: #5a5a66;
  --white: #ffffff;
  --radius: 18px;
  --shadow: 0 10px 30px rgba(20, 40, 50, .12);
  --font: 'Outfit', 'Segoe UI', sans-serif;
  --font-hand: 'Caveat', cursive;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { font-family: var(--font); color: var(--ink); background: var(--cream); line-height: 1.6; }
img { max-width: 100%; display: block; }
a { color: var(--teal); text-decoration: none; }

.wrap { max-width: 1120px; margin: 0 auto; padding: 0 22px; }

h1, h2, h3 { line-height: 1.15; font-weight: 700; }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.5rem); margin-bottom: .6em; }
h3 { font-size: 1.25rem; }

.kicker {
  display: inline-block; font-weight: 800; text-transform: uppercase;
  letter-spacing: .16em; font-size: .8rem; padding: .3em 1em;
  border-radius: 999px; margin-bottom: 1em;
}
.kicker--teal { background: rgba(14,124,134,.12); color: var(--teal); }
.kicker--sun  { background: rgba(247,183,49,.18); color: var(--sun-dark); }
.kicker--rose { background: rgba(217,68,122,.12); color: var(--rose); }
.sec--teal .kicker--sun, .sec--dark .kicker--sun { background: rgba(247,183,49,.25); color: var(--sun); }

.lead { max-width: 46em; color: var(--ink-soft); font-size: 1.06rem; margin-bottom: 2em; }
.sec--teal .lead { color: #d4ecee; }

.btn {
  display: inline-block; padding: .8em 1.8em; border-radius: 999px;
  font-weight: 700; font-size: 1rem; border: 0; cursor: pointer;
  transition: transform .15s, box-shadow .15s; font-family: var(--font);
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(0,0,0,.2); }
.btn--sun { background: var(--sun); color: #513c00; }
.btn--ghost { background: rgba(255,255,255,.14); color: #fff; border: 2px solid rgba(255,255,255,.7); }

/* ---------- header ---------- */
.topbar {
  position: sticky; top: 0; z-index: 50;
  background: rgba(253,249,240,.92); backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(14,124,134,.12);
}
.topbar__in { display: flex; align-items: center; justify-content: space-between; padding-top: 10px; padding-bottom: 10px; }
.brand { display: flex; flex-direction: column; align-items: flex-start; gap: 3px; color: var(--ink); }
.brand__logo { height: 30px; width: auto; display: block; }
.brand__sub { font-style: normal; font-size: .74rem; color: var(--ink-soft); line-height: 1; }
.stars { color: var(--sun-dark); letter-spacing: .1em; }

.nav { display: flex; gap: 4px; align-items: center; }
.nav a {
  padding: .45em .9em; border-radius: 999px; color: var(--ink);
  font-weight: 600; font-size: .95rem; transition: background .15s;
}
.nav a:hover { background: rgba(14,124,134,.1); color: var(--teal); }
.nav__cta { background: var(--teal); color: #fff !important; }
.nav__cta:hover { background: var(--teal-dark) !important; }

.burger { display: none; background: none; border: 0; cursor: pointer; padding: 8px; }
.burger span { display: block; width: 26px; height: 3px; margin: 5px 0; background: var(--teal); border-radius: 2px; transition: .2s; }

/* ---------- hero ---------- */
.hero { position: relative; color: #fff; overflow: hidden; }
.hero__bg { position: absolute; inset: 0; }
.hero__bg img { width: 100%; height: 100%; object-fit: cover; }
.hero__bg::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(120deg, rgba(7,60,66,.88) 0%, rgba(14,124,134,.72) 45%, rgba(217,68,122,.35) 100%);
}
.hero__in { position: relative; z-index: 1; padding: 90px 22px 120px; }
.hero__kicker { font-family: var(--font-hand); font-size: 1.5rem; color: var(--sun); margin-bottom: .4em; }
.hero h1 { font-size: clamp(2.2rem, 5.5vw, 3.8rem); font-weight: 800; margin-bottom: .35em; }
.hero .hl { color: var(--sun); }
.hero__sub { max-width: 34em; font-size: 1.12rem; color: #eaf6f7; margin-bottom: 1.6em; }
.hero__cta { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 2.6em; }
.hero__facts { display: flex; gap: 12px; list-style: none; flex-wrap: wrap; }
.hero__facts li {
  background: rgba(255,255,255,.13); border: 1px solid rgba(255,255,255,.25);
  border-radius: var(--radius); padding: 12px 20px; backdrop-filter: blur(4px);
}
.hero__facts b { display: block; font-size: 1.5rem; color: var(--sun); line-height: 1.1; }
.hero__facts span { font-size: .84rem; color: #dff0f2; }
.hero__wave { position: absolute; bottom: -1px; left: 0; width: 100%; height: 70px; z-index: 2; }

/* ---------- info strip ---------- */
.strip { background: var(--cream); padding: 34px 0 10px; }
.strip__in { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.strip__item {
  background: var(--white); border-radius: var(--radius); padding: 18px;
  box-shadow: var(--shadow); border-top: 4px solid var(--teal);
}
.strip__item:nth-child(2) { border-top-color: var(--sun); }
.strip__item:nth-child(3) { border-top-color: var(--rose); }
.strip__item:nth-child(4) { border-top-color: var(--teal); }
.strip__item i { font-style: normal; font-size: 1.5rem; }
.strip__item b { display: block; margin: 4px 0 2px; }
.strip__item span { font-size: .86rem; color: var(--ink-soft); }

/* ---------- sekcije ---------- */
.sec { padding: 80px 0; }
.sec--cream { background: var(--cream-2); }
.sec--teal { background: linear-gradient(160deg, var(--teal-ink), var(--teal-dark)); color: #f0fafa; }
.sec--dark { background: #22303a; color: #f0f4f6; }

/* ---------- units ---------- */
.unit {
  display: grid; grid-template-columns: 1.05fr 1fr; gap: 34px;
  background: var(--white); border-radius: calc(var(--radius) + 6px);
  box-shadow: var(--shadow); overflow: hidden; margin-bottom: 34px;
}
.unit--flip { grid-template-columns: 1fr 1.05fr; }
.unit--flip .unit__media { order: 2; }
.unit__media { position: relative; min-height: 320px; cursor: zoom-in; }
.unit__media > img { width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0; transition: transform .4s; }
.unit__media:hover > img { transform: scale(1.04); }
.unit__count {
  position: absolute; left: 14px; bottom: 12px; z-index: 2;
  background: rgba(0,0,0,.55); color: #fff; font-size: .82rem;
  padding: .3em .9em; border-radius: 999px;
}
.unit__badge {
  position: absolute; top: 14px; left: 14px; z-index: 2;
  background: var(--rose); color: #fff; font-weight: 700; font-size: .84rem;
  padding: .35em 1em; border-radius: 999px; box-shadow: 0 4px 12px rgba(0,0,0,.25);
}
.unit__body { padding: 34px 34px 30px 0; }
.unit--flip .unit__body { padding: 34px 0 30px 34px; }
.unit__head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: .8em; }
.tag { font-size: .8rem; font-weight: 700; padding: .3em .95em; border-radius: 999px; }
.tag--teal { background: var(--teal); color: #fff; }
.tag--soft { background: var(--cream-2); color: var(--ink-soft); }
.unit__body > p { color: var(--ink-soft); margin-bottom: 1em; }
.unit__beds { list-style: none; display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: 1.1em; font-size: .95rem; font-weight: 600; }
.unit__amens { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 1.3em; }
.unit__amens span {
  font-size: .8rem; padding: .3em .85em; border-radius: 999px;
  background: rgba(14,124,134,.08); color: var(--teal-dark); font-weight: 600;
}
.unit__price { font-size: 1.05rem; }
.unit__price b { font-size: 1.5rem; color: var(--rose); }
.unit__price small { color: var(--ink-soft); font-size: .82rem; }

.note {
  background: rgba(247,183,49,.14); border-left: 4px solid var(--sun);
  padding: 14px 20px; border-radius: 0 var(--radius) var(--radius) 0;
  color: #6a5313; max-width: 52em; margin-top: 6px;
}
.sec--cream .note { background: rgba(255,255,255,.75); }

/* ---------- kućni red ---------- */
.rules { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 26px; }
.rule {
  background: var(--white); border-radius: var(--radius); padding: 20px;
  box-shadow: 0 4px 14px rgba(20,40,50,.07);
}
.rule i { font-style: normal; font-size: 1.6rem; }
.rule b { display: block; margin: 6px 0 2px; }
.rule span { font-size: .87rem; color: var(--ink-soft); }

/* ---------- cijene ---------- */
.deals { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-bottom: 40px; }
.deal {
  position: relative; background: var(--white); border-radius: calc(var(--radius) + 4px);
  padding: 30px 26px; box-shadow: var(--shadow); text-align: center;
}
.deal--pop { outline: 3px solid var(--sun); transform: scale(1.03); }
.deal__ribbon {
  position: absolute; top: -14px; left: 50%; transform: translateX(-50%);
  background: var(--sun); color: #513c00; font-weight: 800; font-size: .78rem;
  text-transform: uppercase; letter-spacing: .08em; padding: .35em 1.2em; border-radius: 999px;
}
.deal__pct { font-size: 2.6rem; font-weight: 800; line-height: 1; margin-bottom: .3em; }
.deal__pct--teal { color: var(--teal); }
.deal__pct--sun { color: var(--sun-dark); }
.deal__pct--rose { color: var(--rose); }
.deal p { color: var(--ink-soft); font-size: .95rem; }

.advent {
  display: grid; grid-template-columns: 1.2fr 1fr; gap: 0; overflow: hidden;
  background: linear-gradient(135deg, #7c1f3f, var(--rose-dark));
  color: #fff; border-radius: calc(var(--radius) + 6px); box-shadow: var(--shadow);
  margin-bottom: 30px;
}
.advent__txt { padding: 36px; align-self: center; }
.advent__txt h3 { font-size: 1.5rem; margin-bottom: .5em; }
.advent__txt p { color: #ffd9e6; }
.advent__txt b { color: #fff; }
.advent img { width: 100%; height: 100%; object-fit: cover; min-height: 220px; }

.pay { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.pay__opt { padding: .45em 1.1em; border-radius: 999px; font-weight: 600; font-size: .92rem; }
.pay__opt--yes { background: rgba(14,124,134,.1); color: var(--teal-dark); }
.pay__opt--no { background: rgba(0,0,0,.06); color: var(--ink-soft); text-decoration: line-through; }

/* ---------- toplice ---------- */
.mosaic {
  display: grid; grid-template-columns: repeat(3, 1fr); grid-auto-rows: 190px;
  gap: 14px; margin-bottom: 36px; cursor: zoom-in;
}
.mosaic figure { position: relative; border-radius: var(--radius); overflow: hidden; margin: 0; }
.mosaic__a { grid-row: span 2; grid-column: span 2; }
.mosaic img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.mosaic figure:hover img { transform: scale(1.05); }
.mosaic figcaption {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 24px 16px 12px;
  background: linear-gradient(transparent, rgba(0,0,0,.65));
  color: #fff; font-size: .88rem; font-weight: 600;
}
.twocol { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-bottom: 40px; }
.card-x {
  background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.16);
  border-radius: var(--radius); padding: 26px;
}
.card-x h3 { color: var(--sun); margin-bottom: .5em; }
.card-x p { color: #d4ecee; font-size: .97rem; }
.card-x a { color: var(--sun); text-decoration: underline; }

.subhead { margin-bottom: 1em; color: #fff; }
.dist { max-width: 42em; }
.dist__row { display: flex; align-items: baseline; gap: 12px; padding: 9px 0; }
.dist__row span { color: #d4ecee; }
.dist__row i { flex: 1; border-bottom: 2px dotted rgba(255,255,255,.3); }
.dist__row b { color: var(--sun); white-space: nowrap; }

/* ---------- o nama ---------- */
.onama { display: grid; grid-template-columns: 1.1fr 1fr; gap: 50px; align-items: center; }
.onama__txt p { margin-bottom: 1em; color: var(--ink-soft); }
.onama__txt p b { color: var(--ink); }
.onama__facts { list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 1.4em; }
.onama__facts li {
  background: var(--white); border-radius: 12px; padding: 12px 16px;
  font-size: .9rem; font-weight: 600; box-shadow: 0 3px 10px rgba(20,40,50,.07);
}
.onama__pics { position: relative; min-height: 430px; cursor: zoom-in; }
.onama__pics .p1 {
  width: 78%; aspect-ratio: 4/4.4; object-fit: cover; border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.onama__pics .p2 {
  position: absolute; right: 0; bottom: -20px; width: 55%; aspect-ratio: 1;
  object-fit: cover; border-radius: var(--radius); border: 6px solid var(--cream);
  box-shadow: var(--shadow);
}
.onama__pics .unit__count { left: auto; right: 10px; top: 10px; bottom: auto; }

/* ---------- recenzije ---------- */
.quotes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.quote {
  background: var(--white); border-radius: calc(var(--radius) + 4px); padding: 28px;
  box-shadow: var(--shadow); position: relative;
}
.quote::before {
  content: '„'; position: absolute; top: -6px; left: 18px;
  font-family: Georgia, serif; font-size: 4rem; line-height: 1; color: var(--sun);
}
.quote p { font-size: .97rem; color: var(--ink-soft); margin: 14px 0 16px; }
.quote cite { font-style: normal; font-weight: 700; font-size: .9rem; }
.quote cite span { font-weight: 400; color: var(--ink-soft); }

/* ---------- kontakt ---------- */
.contact { display: grid; grid-template-columns: 1fr 1.05fr; gap: 40px; }
.contact__addr { font-size: 1.05rem; margin-bottom: 1.2em; color: #cfdbe2; }
.contact__line {
  display: flex; align-items: center; gap: 10px; color: #fff; font-weight: 600;
  font-size: 1.05rem; padding: 8px 0;
}
.contact__line small { color: #9fb3bf; font-weight: 400; }
.contact__line:hover { color: var(--sun); }
.contact__langs { margin: 14px 0 20px; color: #9fb3bf; }
.contact__langs span {
  display: inline-block; background: rgba(255,255,255,.12); border-radius: 6px;
  padding: .15em .6em; margin-left: 6px; font-weight: 700; font-size: .85rem; color: #fff;
}
.contact__map iframe { width: 100%; height: 240px; border: 0; border-radius: var(--radius); }
.contact__map a { display: inline-block; margin-top: 8px; color: var(--sun); font-size: .9rem; }

.contact__form {
  background: var(--white); color: var(--ink); border-radius: calc(var(--radius) + 6px);
  padding: 32px; box-shadow: var(--shadow);
}
.contact__form h3 { margin-bottom: .8em; }
.contact__form label { display: block; font-weight: 600; font-size: .88rem; margin-bottom: 14px; }
.contact__form input, .contact__form select, .contact__form textarea {
  width: 100%; margin-top: 5px; padding: .7em .9em; border: 2px solid #e3ddcc;
  border-radius: 10px; font-family: var(--font); font-size: .95rem; background: var(--cream);
}
.contact__form input:focus, .contact__form select:focus, .contact__form textarea:focus {
  outline: none; border-color: var(--teal);
}
.contact__dates { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.form-ok { margin-top: 14px; background: rgba(14,124,134,.1); color: var(--teal-dark); padding: 12px 16px; border-radius: 10px; font-weight: 600; }

/* ---------- footer ---------- */
.foot { background: #1a252d; color: #b9c6ce; padding: 40px 0; }
.foot__in { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.foot__brand { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; }
.foot__logo { height: 34px; width: auto; filter: invert(1); opacity: .95; }
.foot__nav { display: flex; gap: 18px; flex-wrap: wrap; }
.foot__nav a { color: #b9c6ce; font-size: .92rem; }
.foot__nav a:hover { color: var(--sun); }
.foot__note { text-align: right; font-size: .95rem; }
.foot__note small { color: #7e8f9a; }

/* ---------- lightbox ---------- */
.lb {
  position: fixed; inset: 0; z-index: 100; background: rgba(10,20,25,.93);
  display: flex; align-items: center; justify-content: center;
}
.lb[hidden] { display: none; }
.lb figure { max-width: min(1100px, 88vw); max-height: 86vh; margin: 0; }
.lb img { max-width: 100%; max-height: 80vh; object-fit: contain; border-radius: 10px; }
.lb figcaption { color: #cfdbe2; text-align: center; padding-top: 10px; font-size: .9rem; }
.lb button {
  position: absolute; background: rgba(255,255,255,.12); color: #fff; border: 0;
  border-radius: 50%; width: 52px; height: 52px; font-size: 1.6rem; cursor: pointer;
  transition: background .15s;
}
.lb button:hover { background: var(--teal); }
.lb__close { top: 20px; right: 20px; }
.lb__prev { left: 18px; top: 50%; transform: translateY(-50%); }
.lb__next { right: 18px; top: 50%; transform: translateY(-50%); }

/* ---------- reveal ---------- */
.rv { opacity: 0; transform: translateY(24px); transition: opacity .6s, transform .6s; }
.rv.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .rv { opacity: 1; transform: none; transition: none; } }

/* ---------- responsive ---------- */
@media (max-width: 960px) {
  .strip__in, .rules { grid-template-columns: 1fr 1fr; }
  .deals, .quotes { grid-template-columns: 1fr; }
  .deal--pop { transform: none; }
  .unit, .unit--flip { grid-template-columns: 1fr; }
  .unit--flip .unit__media { order: 0; }
  .unit__media { min-height: 250px; }
  .unit__body, .unit--flip .unit__body { padding: 26px; }
  .onama { grid-template-columns: 1fr; }
  .onama__pics { min-height: 0; margin-bottom: 20px; }
  .advent { grid-template-columns: 1fr; }
  .advent img { order: -1; max-height: 220px; }
  .contact { grid-template-columns: 1fr; }
  .mosaic { grid-template-columns: 1fr 1fr; grid-auto-rows: 160px; }
  .twocol { grid-template-columns: 1fr; }
}
@media (max-width: 700px) {
  .nav {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    background: var(--cream); flex-direction: column; align-items: stretch;
    padding: 12px 22px 18px; border-bottom: 1px solid rgba(14,124,134,.15);
    box-shadow: 0 14px 24px rgba(0,0,0,.12);
  }
  .nav.open { display: flex; }
  .nav a { padding: .8em 1em; }
  .burger { display: block; }
  .strip__in, .rules { grid-template-columns: 1fr; }
  .hero__in { padding: 64px 22px 100px; }
  .hero__facts b { font-size: 1.2rem; }
  .mosaic { grid-template-columns: 1fr; }
  .mosaic__a { grid-column: span 1; }
  .foot__in { flex-direction: column; text-align: center; }
  .foot__brand { align-items: center; }
  .foot__note { text-align: center; }
  .brand__logo { height: 26px; }
  .contact__dates { grid-template-columns: 1fr; }
  .onama__pics .p2 { bottom: 10px; }
}
