/* Nature Glamping & Pool : glavni stylesheet. Koristi tokens.css varijable. */

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  color: var(--c-ink);
  background: var(--c-cream);
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3 { font-family: var(--font-display); font-weight: 600; line-height: 1.12; color: var(--c-ink); }
h1 { font-size: var(--fs-hero); margin: 0; }
h2 { font-size: var(--fs-h2); margin: 0 0 0.6em; }
h3 { font-size: var(--fs-h3); margin: 0 0 0.4em; }
p { margin: 0 0 1em; }
a { color: var(--c-wood-dark); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; display: block; }
:focus-visible { outline: 2px solid var(--c-green); outline-offset: 2px; border-radius: 4px; }

.container { width: min(100% - 2.5rem, var(--container)); margin-inline: auto; }
.section { padding-block: var(--space-section); }
.section--cream { background: var(--c-cream); }
.section--white { background: var(--c-white); }
.section--green { background: var(--c-green-soft); }
.eyebrow { text-transform: uppercase; letter-spacing: 0.14em; font-size: var(--fs-small);
  font-weight: 600; color: var(--c-green); margin: 0 0 0.6rem; }
.lead { font-size: 1.15rem; max-width: 60ch; }
.center { text-align: center; margin-inline: auto; }

/* Gumbi */
.btn { display: inline-flex; align-items: center; gap: 0.5rem; padding: 0.85rem 1.6rem;
  border-radius: var(--radius-pill); font-weight: 600; font-family: var(--font-body);
  font-size: 1rem; border: 2px solid transparent; cursor: pointer; transition: all var(--t-fast);
  text-decoration: none; }
.btn--primary { background: var(--c-wood); color: #fff; }
.btn--primary:hover { background: var(--c-wood-dark); transform: translateY(-2px);
  box-shadow: var(--shadow-lift); text-decoration: none; }
.btn--ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,0.7); }
.btn--ghost:hover { background: #fff; color: var(--c-ink); text-decoration: none; }
.btn--dark { background: var(--c-charcoal); color: #fff; }
.btn--dark:hover { background: #000; transform: translateY(-2px); text-decoration: none; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--c-charcoal);
  color: #fff; box-shadow: 0 2px 14px rgba(0,0,0,0.18); }
.site-header .container { display: flex; align-items: center; gap: 0.9rem;
  min-height: 66px; }
.brand { font-family: var(--font-display); font-size: 1.3rem; font-weight: 600;
  color: #fff; white-space: nowrap; }
.brand:hover { text-decoration: none; color: var(--c-wood); }
.nav { display: flex; gap: 0.1rem; margin-left: auto; flex-wrap: wrap; }
.nav a { color: rgba(255,255,255,0.85); padding: 0.4rem 0.55rem; border-radius: 8px;
  font-size: 0.9rem; transition: all var(--t-fast); white-space: nowrap; }
.nav a:hover { color: #fff; background: rgba(255,255,255,0.1); text-decoration: none; }
.nav a.active { color: var(--c-wood); font-weight: 600; }
.nav a.nav-book { background: var(--c-wood); color: #fff; margin-left: 0.3rem; }
.nav a.nav-book:hover { background: var(--c-wood-dark); }
.lang-switch { display: flex; gap: 0.15rem; align-items: center; }
.lang-switch a { color: rgba(255,255,255,0.6); font-size: 0.8rem; font-weight: 600;
  padding: 0.2rem 0.35rem; border-radius: 5px; }
.lang-switch a.active { color: #fff; background: rgba(255,255,255,0.14); }
.lang-switch a:hover { color: #fff; text-decoration: none; }
.nav-toggle { display: none; margin-left: auto; background: none; border: 0; color: #fff;
  font-size: 1.6rem; cursor: pointer; padding: 0.2rem 0.5rem; }

/* Hero */
.hero { position: relative; min-height: 82vh; display: flex; align-items: center;
  color: #fff; overflow: hidden; }
.hero__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.hero::after { content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(29,33,38,0.35) 0%, rgba(29,33,38,0.62) 100%); }
.hero__inner { max-width: 40rem; padding-block: 3rem; }
.hero h1 { color: #fff; text-shadow: 0 2px 20px rgba(0,0,0,0.3); }
.hero__sub { font-size: 1.25rem; margin: 1.1rem 0 1.8rem; color: rgba(255,255,255,0.95); }
.hero__cta { display: flex; gap: 0.8rem; flex-wrap: wrap; }

/* Kartice / mreze */
.grid { display: grid; gap: 1.5rem; }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }
.card { background: var(--c-white); border: 1px solid var(--c-line); border-radius: var(--radius);
  padding: var(--space-card); box-shadow: var(--shadow-card); transition: transform var(--t-med); }
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lift); }
.card__icon { width: 46px; height: 46px; color: var(--c-green); margin-bottom: 0.8rem; }
.card h3 { margin-bottom: 0.3rem; }
.card p { margin: 0; color: #555; }

/* Unit teaser (naslovnica) */
.unit { display: grid; grid-template-columns: 1.1fr 1fr; gap: 2.5rem; align-items: center; }
.unit--rev { grid-template-columns: 1fr 1.1fr; }
.unit--rev .unit__media { order: 2; }
.unit__media img { border-radius: var(--radius); box-shadow: var(--shadow-card);
  width: 100%; height: 100%; max-height: 460px; object-fit: cover; }
.unit__body h2 { margin-bottom: 0.5rem; }

/* Amenity lista */
.amenities { list-style: none; padding: 0; margin: 1.5rem 0 0;
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.7rem 1.5rem; }
.amenities li { position: relative; padding-left: 1.9rem; }
.amenities li::before { content: ""; position: absolute; left: 0; top: 0.35em;
  width: 1.1rem; height: 1.1rem; background: var(--c-green); border-radius: 50%;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='white' d='M9 16.17 4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z'/%3E%3C/svg%3E") center/contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='white' d='M9 16.17 4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z'/%3E%3C/svg%3E") center/contain no-repeat; }

/* Galerija */
.gallery-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.8rem; }
.gallery-grid button { border: 0; padding: 0; cursor: pointer; background: none; border-radius: var(--radius);
  overflow: hidden; aspect-ratio: 4/3; }
.gallery-grid img { width: 100%; height: 100%; object-fit: cover; transition: transform var(--t-med); }
.gallery-grid button:hover img { transform: scale(1.06); }

/* Lightbox */
.lightbox { position: fixed; inset: 0; z-index: 100; background: rgba(0,0,0,0.9);
  display: none; align-items: center; justify-content: center; padding: 2rem; }
.lightbox.open { display: flex; }
.lightbox img { max-width: 92vw; max-height: 88vh; border-radius: 8px; object-fit: contain; }
.lightbox__close, .lightbox__nav { position: absolute; background: rgba(255,255,255,0.12);
  color: #fff; border: 0; cursor: pointer; font-size: 2rem; width: 3rem; height: 3rem;
  border-radius: 50%; display: flex; align-items: center; justify-content: center; }
.lightbox__close { top: 1.2rem; right: 1.2rem; }
.lightbox__nav { top: 50%; transform: translateY(-50%); }
.lightbox__nav--prev { left: 1.2rem; }
.lightbox__nav--next { right: 1.2rem; }
.lightbox__close:hover, .lightbox__nav:hover { background: rgba(255,255,255,0.28); }

/* Sekcija naslova */
.section-head { max-width: 60ch; margin-bottom: 2.5rem; }
.section-head.center { margin-inline: auto; }

/* Page hero (uze, za unutarnje stranice) */
.page-hero { position: relative; color: #fff; padding-block: clamp(3rem, 8vw, 6rem);
  display: flex; align-items: flex-end; min-height: 42vh; overflow: hidden; }
.page-hero__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.page-hero::after { content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(29,33,38,0.2), rgba(29,33,38,0.6)); }
.page-hero h1 { color: #fff; }
.page-hero p { color: rgba(255,255,255,0.92); margin: 0.6rem 0 0; max-width: 50ch; }

/* Forma */
.form { display: grid; gap: 1.1rem; max-width: 640px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }
.field { display: flex; flex-direction: column; gap: 0.35rem; }
.field label { font-weight: 600; font-size: 0.9rem; }
.field input, .field select, .field textarea { font: inherit; padding: 0.7rem 0.85rem;
  border: 1.5px solid var(--c-line); border-radius: 10px; background: #fff; color: var(--c-ink); }
.field input:focus, .field select:focus, .field textarea:focus { outline: none;
  border-color: var(--c-green); box-shadow: 0 0 0 3px rgba(74,124,70,0.15); }
.field textarea { resize: vertical; min-height: 100px; }
.avail-note { font-weight: 600; padding: 0.6rem 0.9rem; border-radius: 10px; display: none; }
.avail-note.ok { display: block; background: var(--c-green-soft); color: var(--c-green); }
.avail-note.bad { display: block; background: #f7e4e0; color: var(--c-error); }
.form-msg { padding: 1rem 1.2rem; border-radius: 10px; display: none; }
.form-msg.ok { display: block; background: var(--c-green-soft); color: var(--c-green); }
.form-msg.bad { display: block; background: #f7e4e0; color: var(--c-error); }

/* Kontakt info */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: start; }
.contact-info { display: grid; gap: 1.1rem; }
.contact-info a { font-weight: 600; }
.map-embed { border: 0; width: 100%; height: 320px; border-radius: var(--radius); }
.contact-actions { display: flex; gap: 0.7rem; flex-wrap: wrap; margin-top: 0.4rem; }
.wa { background: #25d366; color: #fff; }
.wa:hover { background: #1eb457; text-decoration: none; }

/* FAQ */
.faq-list { max-width: 760px; margin-inline: auto; }
.faq-item { border-bottom: 1px solid var(--c-line); }
.faq-item summary { cursor: pointer; font-weight: 600; font-size: 1.08rem; padding: 1.1rem 0;
  list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; font-size: 1.5rem; color: var(--c-wood); transition: transform var(--t-fast); }
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item p { padding: 0 0 1.2rem; margin: 0; color: #555; }

/* Footer */
.site-footer { background: var(--c-charcoal); color: rgba(255,255,255,0.82); padding-block: 3rem 2rem; }
.site-footer .container { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 2rem; }
.site-footer h4 { font-family: var(--font-display); color: #fff; margin: 0 0 0.8rem; font-size: 1.15rem; }
.site-footer a { color: rgba(255,255,255,0.82); }
.site-footer a:hover { color: #fff; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.12); margin-top: 2rem; padding-top: 1.2rem;
  font-size: 0.85rem; color: rgba(255,255,255,0.55); text-align: center; }

/* Recenzije (naslovnica) */
.reviews-head { display: flex; flex-direction: column; align-items: center; gap: 1.1rem; text-align: center; }
.reviews-head h2 { margin: 0; }
.score-badges { display: flex; gap: 1rem; flex-wrap: wrap; justify-content: center; }
.score-badge { display: flex; align-items: center; gap: 0.6rem; background: var(--c-green-soft);
  border-radius: var(--radius); padding: 0.55rem 1rem; }
.score-badge__num { font-family: var(--font-display); font-weight: 600; font-size: 1.45rem;
  background: var(--c-green); color: #fff; border-radius: 10px; padding: 0.2rem 0.6rem; line-height: 1.1; }
.score-badge__label { font-size: var(--fs-small); font-weight: 600; color: var(--c-ink);
  text-align: left; max-width: 14ch; }
.review__text { font-style: italic; color: #444; margin-bottom: 1rem; }
.review__by { margin: 0; font-weight: 600; display: flex; flex-direction: column; }
.review__by span { font-weight: 400; color: #888; font-size: var(--fs-small); }

/* Kako do nas teaser (naslovnica) */
.loc-teaser { display: grid; grid-template-columns: 1.1fr 1fr; gap: 2.5rem; align-items: center; }
.loc-chips { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 0.8rem; }
.loc-chips li { background: var(--c-white); border: 1px solid var(--c-line); border-radius: var(--radius);
  padding: 0.8rem 1rem; display: flex; flex-direction: column; gap: 0.2rem; }
.loc-chips strong { font-family: var(--font-display); font-size: 1.2rem; color: var(--c-wood-dark); }
.loc-chips span { font-size: var(--fs-small); color: #666; }

/* Kako do nas stranica */
.loc-top { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: start; }
.distances { list-style: none; padding: 0; margin: 0; }
.distances li { display: flex; justify-content: space-between; gap: 1rem; padding: 0.7rem 0;
  border-bottom: 1px solid var(--c-line); }
.distances__val { font-weight: 600; color: var(--c-wood-dark); white-space: nowrap; }
.map-embed--large { height: 480px; }

/* Brojke (facts strip) */
.facts { list-style: none; margin: 2.6rem 0 0; padding: 0; display: grid;
  grid-template-columns: repeat(4, 1fr); gap: 1.2rem; }
.fact { display: flex; flex-direction: column; align-items: center; gap: 0.2rem; text-align: center; }
.fact__num { font-family: var(--font-display); font-size: 2.2rem; font-weight: 600; color: var(--c-wood-dark); line-height: 1; }
.fact__label { font-size: var(--fs-small); color: #666; }

/* Posebna ponuda */
.offer-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; margin-top: 2.5rem; }
.offer-card { background: var(--c-white); border: 1px solid var(--c-line); border-top: 4px solid var(--c-wood);
  border-radius: var(--radius); padding: var(--space-card); box-shadow: var(--shadow-card); }
.offer-card__price { font-family: var(--font-display); font-size: 2.6rem; font-weight: 600;
  color: var(--c-wood-dark); line-height: 1; display: flex; flex-direction: column; gap: 0.2rem; margin-bottom: 0.9rem; }
.offer-card__price span { font-family: var(--font-body); font-size: var(--fs-small); font-weight: 400; color: #666; }
.offer-card h3 { margin-bottom: 0.3rem; }

/* Responsive */
@media (max-width: 900px) {
  .nav-toggle { display: block; }
  .nav { display: none; position: absolute; top: 100%; left: 0; right: 0; flex-direction: column;
    background: var(--c-charcoal); padding: 0.8rem 1.25rem 1.25rem; gap: 0.2rem; }
  .nav.open { display: flex; }
  .nav a { padding: 0.7rem 0.5rem; }
  .site-header .container { position: relative; flex-wrap: wrap; }
}
@media (max-width: 960px) {
  .grid--3, .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .unit, .unit--rev { grid-template-columns: 1fr; }
  .unit--rev .unit__media { order: 0; }
  .contact-grid { grid-template-columns: 1fr; gap: 2rem; }
  .site-footer .container { grid-template-columns: 1fr 1fr; }
  .loc-top, .loc-teaser { grid-template-columns: 1fr; gap: 2rem; }
}
@media (max-width: 640px) {
  .nav-toggle { display: block; }
  .nav { display: none; position: absolute; top: 100%; left: 0; right: 0; flex-direction: column;
    background: var(--c-charcoal); padding: 0.8rem 1.25rem 1.25rem; gap: 0.2rem; }
  .nav.open { display: flex; }
  .nav a { padding: 0.7rem 0.5rem; }
  .site-header .container { position: relative; flex-wrap: wrap; }
  .grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .amenities { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .site-footer .container { grid-template-columns: 1fr; }
  .hero { min-height: 78vh; }
  .map-embed--large { height: 360px; }
  .facts { grid-template-columns: repeat(2, 1fr); gap: 1.6rem; }
  .offer-grid { grid-template-columns: 1fr; }
}
