:root {
  --ink: #102b2c;
  --text: #284647;
  --muted: #647c7d;
  --line: rgba(16, 43, 44, .12);
  --paper: #fff;
  --cream: #fbf8f0;
  --sage: #e7f0e8;
  --green: #2f705c;
  --deep: #174d42;
  --gold: #d7a846;
  --blue: #267d91;
  --shadow: 0 22px 60px rgba(16, 43, 44, .12);
  --shadow-soft: 0 12px 34px rgba(16, 43, 44, .08);
  --radius: 28px;
  --radius-sm: 18px;
  --max: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--text);
  font-family: Manrope, system-ui, -apple-system, "Segoe UI", sans-serif;
  line-height: 1.65;
  background:
    radial-gradient(900px 520px at 0 0, rgba(215, 168, 70, .15), transparent 62%),
    radial-gradient(900px 520px at 100% 2%, rgba(38, 125, 145, .13), transparent 58%),
    linear-gradient(180deg, #fff 0, var(--cream) 38%, #f4faf7 72%, #fff 100%);
}

a { color: inherit; }
img { display: block; max-width: 100%; }
button, input, select { font: inherit; }
.wrap { width: min(calc(100% - 30px), var(--max)); margin-inline: auto; }
.section { padding: 34px 0; scroll-margin-top: 90px; }
.section-head { max-width: 760px; margin-bottom: 22px; }
.section-head h2, .content-card h2 { margin: 0 0 10px; color: var(--ink); font-size: clamp(1.65rem, 5vw, 2.6rem); line-height: 1.12; }
.section-head p { margin: 0; color: var(--muted); }
.kicker { margin: 0 0 7px; color: var(--green); font-size: .74rem; font-weight: 900; letter-spacing: .11em; text-transform: uppercase; }

.topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, .91);
  backdrop-filter: blur(16px);
}
.topbar-inner { min-height: 70px; display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.brand { min-width: 0; display: flex; align-items: center; gap: 11px; text-decoration: none; }
.brand-mark {
  width: 45px; height: 45px; flex: 0 0 45px; display: grid; place-items: center;
  border-radius: 14px; color: #fff; background: linear-gradient(145deg, var(--deep), var(--blue));
  box-shadow: var(--shadow-soft); font-size: .72rem; font-weight: 900;
}
.brand-copy { min-width: 0; line-height: 1.12; }
.brand-copy strong { display: block; color: var(--ink); font-size: .92rem; }
.brand-copy span { display: block; margin-top: 4px; color: var(--muted); font-size: .66rem; font-weight: 800; }
.nav { display: none; gap: 7px; align-items: center; }
.nav a, .button {
  display: inline-flex; align-items: center; justify-content: center; min-height: 44px;
  padding: .72rem 1rem; border: 1px solid var(--line); border-radius: 999px;
  color: var(--ink); background: rgba(255, 255, 255, .86); font-weight: 850; text-decoration: none;
}
.button.primary { border-color: var(--deep); color: #fff; background: linear-gradient(135deg, var(--deep), var(--green)); }
.button.booking { border-color: #143b70; color: #fff; background: #123f78; }
.button.small { min-height: 40px; padding: .58rem .82rem; font-size: .83rem; }

.hero { padding: 20px 0 8px; }
.hero-shell {
  overflow: hidden; border: 1px solid var(--line); border-radius: 34px;
  background: rgba(255, 255, 255, .88); box-shadow: var(--shadow);
}
.hero-copy { padding: 25px; }
.breadcrumbs { display: flex; flex-wrap: wrap; gap: 7px; margin-bottom: 16px; color: var(--muted); font-size: .76rem; font-weight: 800; }
.breadcrumbs a { color: var(--deep); text-underline-offset: 3px; }
.eyebrow {
  display: inline-flex; margin-bottom: 13px; padding: .38rem .72rem; border-radius: 999px;
  color: #fff; background: var(--ink); font-size: .71rem; font-weight: 900; letter-spacing: .08em; text-transform: uppercase;
}
h1 { margin: 0; color: var(--ink); font-size: clamp(2.05rem, 9vw, 4.6rem); line-height: .99; letter-spacing: -.045em; }
.hero-copy > p { margin: 17px 0 0; max-width: 690px; color: var(--muted); font-size: 1.02rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 21px; }
.hero-media { position: relative; min-height: 290px; background: var(--sage); }
.hero-media img { width: 100%; height: 100%; min-height: 290px; object-fit: cover; }
.hero-badge {
  position: absolute; right: 16px; bottom: 16px; max-width: calc(100% - 32px);
  padding: 12px 14px; border-radius: 16px; color: #fff; background: rgba(16, 43, 44, .87);
  box-shadow: var(--shadow-soft); font-size: .78rem; font-weight: 800; backdrop-filter: blur(9px);
}

.booking-shell { margin-top: 18px; }
.booking-card {
  position: relative; overflow: hidden; padding: 22px; border: 1px solid rgba(215, 168, 70, .35);
  border-radius: 27px; color: #fff; background: linear-gradient(135deg, #123d37, #226d60);
  box-shadow: var(--shadow);
}
.booking-card::after {
  content: ""; position: absolute; width: 190px; height: 190px; right: -70px; top: -95px;
  border-radius: 50%; background: rgba(255, 255, 255, .08);
}
.booking-card h2 { position: relative; margin: 0 0 5px; color: #fff; font-size: 1.35rem; line-height: 1.2; }
.booking-card > p { position: relative; margin: 0 0 17px; color: rgba(255,255,255,.76); font-size: .86rem; }
.booking-form { position: relative; display: grid; gap: 10px; }
.field label { display: block; margin-bottom: 5px; color: rgba(255,255,255,.78); font-size: .72rem; font-weight: 850; }
.field input, .field select {
  width: 100%; min-height: 48px; padding: .7rem .78rem; border: 1px solid rgba(255,255,255,.2);
  border-radius: 13px; color: var(--ink); background: #fff; outline: none;
}
.booking-submit {
  min-height: 48px; align-self: end; border: 0; border-radius: 13px; color: #17322d;
  background: #f2c45f; font-weight: 950; cursor: pointer;
}
.affiliate-note { position: relative; margin-top: 12px; color: rgba(255,255,255,.67); font-size: .7rem; }

.quick-grid, .stay-grid, .feature-grid, .facts-grid { display: grid; gap: 15px; }
.quick-card, .content-card, .fact, .source-box {
  border: 1px solid var(--line); border-radius: var(--radius-sm); background: rgba(255,255,255,.87); box-shadow: var(--shadow-soft);
}
.quick-card { padding: 19px; }
.quick-card strong { display: block; color: var(--ink); font-size: 1.05rem; }
.quick-card span { display: block; margin-top: 4px; color: var(--muted); font-size: .82rem; }

.notice {
  padding: 17px 18px; border: 1px solid rgba(215, 168, 70, .38); border-left: 5px solid var(--gold);
  border-radius: 16px; color: #624d20; background: #fff9e9; font-size: .86rem;
}
.notice strong { color: #4e3b14; }

.comparison-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: rgba(255,255,255,.92);
  box-shadow: var(--shadow-soft);
  -webkit-overflow-scrolling: touch;
}
.comparison-table {
  width: 100%;
  min-width: 780px;
  border-collapse: collapse;
  font-size: .82rem;
}
.comparison-table th,
.comparison-table td {
  padding: 14px 15px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: middle;
}
.comparison-table th {
  color: var(--ink);
  background: #edf5ef;
  font-size: .7rem;
  font-weight: 900;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.comparison-table tr:last-child td { border-bottom: 0; }
.comparison-table tbody tr:hover { background: rgba(231,240,232,.52); }
.comparison-name { color: var(--deep); font-weight: 900; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.comparison-score { display: inline-flex; min-width: 42px; justify-content: center; padding: .25rem .42rem; border-radius: 10px; color: #fff; background: var(--deep); font-weight: 900; }
.table-note { margin: 10px 3px 0; color: var(--muted); font-size: .73rem; }

.stay-card {
  overflow: hidden; display: flex; flex-direction: column; border: 1px solid var(--line);
  border-radius: 24px; background: rgba(255,255,255,.92); box-shadow: var(--shadow-soft);
}
.stay-card-media { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: var(--sage); }
.stay-card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.stay-card:hover .stay-card-media img { transform: scale(1.025); }
.stay-type {
  position: absolute; left: 12px; top: 12px; padding: .34rem .62rem; border-radius: 999px;
  color: #fff; background: rgba(16, 43, 44, .88); font-size: .68rem; font-weight: 900; text-transform: uppercase;
}
.stay-body { flex: 1; display: flex; flex-direction: column; padding: 18px; }
.stay-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.stay-top h3 { margin: 0; color: var(--ink); font-size: 1.16rem; line-height: 1.2; }
.rating {
  flex: 0 0 auto; display: grid; min-width: 52px; min-height: 50px; place-items: center;
  border-radius: 14px 14px 14px 4px; color: #fff; background: var(--deep); font-weight: 950;
}
.review-count { margin: 5px 0 0; color: var(--muted); font-size: .72rem; text-align: right; }
.stay-meta { margin: 12px 0 0; display: flex; flex-wrap: wrap; gap: 6px; }
.chip { padding: .34rem .58rem; border-radius: 999px; color: var(--deep); background: var(--sage); font-size: .71rem; font-weight: 850; }
.stay-description { margin: 13px 0 0; color: var(--muted); font-size: .87rem; }
.price-line { margin-top: auto; padding-top: 15px; color: var(--ink); font-size: .82rem; }
.price-line strong { display: block; color: var(--deep); font-size: 1.12rem; }
.card-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 15px; }
.related-grid { display: grid; gap: 13px; }
.related-card {
  overflow: hidden;
  display: grid;
  grid-template-columns: 112px 1fr;
  min-height: 112px;
  border: 1px solid var(--line);
  border-radius: 18px;
  color: inherit;
  background: rgba(255,255,255,.9);
  box-shadow: var(--shadow-soft);
  text-decoration: none;
}
.related-card img { width: 112px; height: 100%; object-fit: cover; }
.related-copy { align-self: center; padding: 14px; }
.related-copy strong { display: block; color: var(--ink); line-height: 1.22; }
.related-copy span { display: block; margin-top: 5px; color: var(--muted); font-size: .74rem; }

.content-card { padding: 22px; }
.content-card p:first-child { margin-top: 0; }
.content-card p:last-child { margin-bottom: 0; }
.feature { padding: 18px; border: 1px solid var(--line); border-radius: 17px; background: rgba(255,255,255,.83); }
.feature h3 { margin: 0 0 6px; color: var(--ink); font-size: 1rem; }
.feature p { margin: 0; color: var(--muted); font-size: .84rem; }
.bullets { margin: 0; padding-left: 1.15rem; }
.bullets li + li { margin-top: 7px; }

.gallery { display: grid; gap: 9px; }
.gallery figure { margin: 0; overflow: hidden; border-radius: 18px; background: var(--sage); }
.gallery img { width: 100%; height: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.gallery figure:first-child { grid-column: 1 / -1; }
.photo-credit { margin: 10px 2px 0; color: var(--muted); font-size: .72rem; }

.detail-layout { display: grid; gap: 18px; align-items: start; }
.facts-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.fact { padding: 15px; box-shadow: none; }
.fact span { display: block; color: var(--muted); font-size: .69rem; font-weight: 800; text-transform: uppercase; }
.fact strong { display: block; margin-top: 4px; color: var(--ink); font-size: .93rem; line-height: 1.3; }
.source-box { padding: 19px; }
.source-box h3 { margin: 0 0 8px; color: var(--ink); font-size: 1rem; }
.source-box p { margin: 0; color: var(--muted); font-size: .82rem; }
.source-links { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 13px; }
.location-card {
  overflow: hidden;
  display: grid;
  border: 1px solid var(--line);
  border-radius: 25px;
  background: rgba(255,255,255,.9);
  box-shadow: var(--shadow-soft);
}
.location-visual {
  min-height: 230px;
  display: grid;
  place-items: center;
  padding: 25px;
  color: #fff;
  text-align: center;
  background:
    linear-gradient(135deg, rgba(23,77,66,.92), rgba(38,125,145,.8)),
    url("../bazeni/slike/terme-banovci-bazeni-pogled-iz-zraka.webp") center / cover;
}
.location-visual strong { display: block; font-size: clamp(1.5rem, 6vw, 2.5rem); line-height: 1.05; }
.location-visual span { display: block; margin-top: 8px; color: rgba(255,255,255,.8); font-size: .84rem; }
.location-copy { padding: 22px; }
.location-copy h3 { margin: 0 0 8px; color: var(--ink); font-size: 1.35rem; }
.location-copy p { margin: 0; color: var(--muted); font-size: .88rem; }
.location-copy .card-actions { margin-top: 17px; }

.faq { display: grid; gap: 10px; }
.faq details { border: 1px solid var(--line); border-radius: 16px; background: rgba(255,255,255,.9); box-shadow: var(--shadow-soft); }
.faq summary { padding: 16px 18px; color: var(--ink); font-weight: 900; cursor: pointer; }
.faq details p { margin: 0; padding: 0 18px 17px; color: var(--muted); font-size: .88rem; }

.footer { margin-top: 34px; padding: 32px 0; border-top: 1px solid var(--line); background: rgba(255,255,255,.62); }
.footer-grid { display: grid; gap: 18px; }
.footer strong { color: var(--ink); }
.footer p { margin: 6px 0 0; color: var(--muted); font-size: .8rem; }
.footer-links { display: flex; flex-wrap: wrap; gap: 8px 14px; align-content: start; }
.footer-links a { color: var(--deep); font-size: .82rem; font-weight: 850; }

@media (min-width: 640px) {
  .booking-form { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .booking-submit { grid-column: 1 / -1; }
  .quick-grid, .feature-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stay-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .gallery { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .gallery figure:first-child { grid-row: span 2; }
  .related-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .related-card { grid-template-columns: 1fr; }
  .related-card img { width: 100%; height: 150px; }
}

@media (min-width: 900px) {
  .nav { display: flex; }
  .hero-shell { display: grid; grid-template-columns: 1.02fr .98fr; min-height: 530px; }
  .hero-copy { align-self: center; padding: 48px; }
  .hero-media, .hero-media img { min-height: 530px; }
  .booking-card { padding: 25px 27px; }
  .booking-form { grid-template-columns: 1fr 1fr .68fr .68fr auto; }
  .booking-submit { grid-column: auto; min-width: 165px; }
  .quick-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .stay-grid.hotels { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stay-grid.apartments { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .detail-layout { grid-template-columns: minmax(0, 1.5fr) minmax(280px, .7fr); }
  .detail-sidebar { position: sticky; top: 92px; }
  .feature-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .location-card { grid-template-columns: .82fr 1.18fr; }
  .footer-grid { grid-template-columns: 1.3fr .7fr; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}
