/* ---------- Fontovi ----------
   Fontovi su na našem serveru (assets/fonts), ne kod Googlea:
   posjetiočeva IP adresa ne ide trećoj strani (GDPR), a sajt je brži.
   Samo latinica (latin + latin-ext za č, ć, š, ž, đ). */
@font-face {
  font-family: 'Fraunces';
  font-style: normal;
  font-weight: 500 700;
  font-display: swap;
  src: url('../assets/fonts/fraunces-var-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Fraunces';
  font-style: normal;
  font-weight: 500 700;
  font-display: swap;
  src: url('../assets/fonts/fraunces-var-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('../assets/fonts/manrope-var-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('../assets/fonts/manrope-var-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* =========================================================
   apartmani.css – demo sajt "Apartmani Vista"
   Morska tema: tamna tirkizna, pijesak, svijetla pozadina.
   ========================================================= */

:root {
  --bg: #F4F8F9;
  --surface: #FFFFFF;
  --deep: #0F3D4A;        /* tamna tirkizna – hero, kartica za upit */
  --ink: #0F2A33;         /* najtamnija – tekst, demo traka, footer */
  --teal: #0F6A7E;        /* naglasak na svijetloj pozadini */
  --sand: #E9C98B;        /* pijesak – dugmad na tamnoj pozadini */
  --mist: #CFE3E8;        /* svijetli tekst na tamnoj pozadini */
  --line: #D6E3E7;
  --input-line: #B9CDD3;
  --muted: #44606A;

  --serif: 'Fraunces', serif;
  --sans: 'Manrope', system-ui, sans-serif;

  /* za demo.css */
  --banner-bg: var(--ink);
  --banner-text: #B9D3DA;
  --banner-link: var(--sand);
  --lang-idle: #B9D3DA;
  --lang-active: #FFFFFF;
  --lang-line: var(--sand);
  --menu-bg: var(--ink);
  --menu-line: #2A5563;
  --menu-text: var(--bg);
}

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
}

a { color: var(--ink); }
a:hover { color: var(--teal); }

/* =========================================================
   Elementi koji se ponavljaju
   ========================================================= */
.eyebrow {
  margin: 0;
  font-size: 13px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--teal);
  font-weight: 700;
}

.section-title {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(34px, 4.5vw, 56px);
  line-height: 1.05;
  font-weight: 600;
}

.media {
  overflow: hidden;
}

.media svg {
  display: block;
  width: 100%;
  height: 100%;
}

.section-inner {
  padding-top: 96px;
  padding-bottom: 96px;
}

/* =========================================================
   Navigacija – na tamnoj pozadini, kao dio heroja
   ========================================================= */
.nav-bar {
  background: var(--deep);
}

.nav {
  padding-top: 28px;
  display: flex;
  flex-wrap: wrap;
  gap: 14px 32px;
  align-items: center;
  justify-content: space-between;
}

.logo,
.logo:hover {
  font-family: var(--serif);
  font-size: 28px;
  font-weight: 600;
  color: var(--bg);
}

.nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 26px;
  align-items: center;
  font-size: 15px;
  font-weight: 500;
}

.nav-links > a:not(.nav-cta) {
  color: var(--mist);
}

.nav-links > a:not(.nav-cta):hover {
  color: var(--sand);
}

.nav-cta,
.nav-cta:hover {
  background: var(--sand);
  color: var(--ink);
  padding: 12px 22px;
  border-radius: 999px;
  font-weight: 700;
}

.nav-cta:hover {
  filter: brightness(1.06);
}

/* =========================================================
   Hero – ista tamna pozadina kao navigacija,
   pa izgledaju kao jedna cjelina
   ========================================================= */
.hero {
  background: var(--deep);
  color: var(--bg);
}

.hero-text {
  padding-top: 80px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.hero-eyebrow {
  color: var(--sand);
  font-weight: 600;
}

.hero-title {
  margin: 0;
  max-width: 880px;
  font-family: var(--serif);
  font-size: clamp(44px, 7vw, 92px);
  line-height: 1;
  font-weight: 600;
  text-wrap: balance;
}

.hero-lead {
  margin: 0;
  max-width: 560px;
  font-size: 19px;
  line-height: 1.6;
  color: var(--mist);
}

.hero-image-wrap {
  padding-top: 56px;
}

/* Zaobljeni samo gornji uglovi – slika "sjedi" na dnu heroja */
.hero-image {
  height: 320px;
  border-radius: 20px 20px 0 0;
}

/* =========================================================
   Traka za brzi upit – "pluta" preko dna heroja
   ========================================================= */
.quick {
  position: relative;   /* da bude iznad slike iz heroja */
}

.quick-bar {
  margin-top: -44px;    /* negativna margina povuče traku gore, preko slike */
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 20px 24px;
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: flex-end;
  box-shadow: 0 8px 24px rgba(15, 42, 51, 0.08);
}

.quick-field {
  flex: 1 1 160px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
}

.quick-field--small {
  flex-basis: 120px;
}

.quick-field input {
  width: 100%;
  min-height: 48px;
  padding: 12px 14px;
  border: 1px solid var(--input-line);
  border-radius: 10px;
  background: var(--surface);
  color: var(--ink);
  font: inherit;
  font-size: 16px;
  font-weight: 500;
  outline: none;
}

.quick-field input:focus {
  border-color: var(--teal);
}

.quick-btn,
.quick-btn:hover {
  flex: 1 1 180px;
  padding: 15px 24px;
  border-radius: 10px;
  background: var(--deep);
  color: var(--bg);
  font-weight: 700;
  text-align: center;
}

.quick-btn:hover {
  background: var(--teal);
}

/* =========================================================
   Apartmani (3 kartice)
   ========================================================= */
.apartments {
  padding-top: 112px;   /* malo više zbog trake koja viri gore */
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.section-head {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.apartment-grid {
  gap: 24px;
}

.apartment {
  min-width: 0;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 18px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.apartment-image {
  height: 220px;
}

.apartment-body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.apartment h3 {
  margin: 0;
  font-family: var(--serif);
  font-size: 26px;
  font-weight: 600;
}

.apartment-meta {
  margin: 0;
  font-size: 15px;
  color: var(--muted);
}

.apartment-price {
  margin: 6px 0 0;
  font-size: 16px;
}

.apartment-price b {
  font-size: 20px;
}

/* =========================================================
   Sadržaji (bijela traka)
   ========================================================= */
.amenities {
  background: var(--surface);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.amenities-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 48px;
}

.amenities-head {
  flex: 1 1 300px;
  min-width: 0;
}

.amenity-list {
  flex: 2 1 520px;
  min-width: 0;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 14px;
}

.amenity-list li {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 18px 20px;
  font-weight: 600;
}

/* =========================================================
   Lokacija
   ========================================================= */
.location {
  display: flex;
  flex-wrap: wrap;
  gap: 48px;
  align-items: center;
}

.location-text {
  flex: 1 1 360px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.location-text p {
  margin: 0;
  font-size: 17px;
  line-height: 1.65;
  color: var(--muted);
}

.location-map {
  flex: 1 1 360px;
  min-width: 0;
  height: 300px;
  border-radius: 18px;
}

/* =========================================================
   Upit (tamna kartica s formom)
   ========================================================= */
.enquiry {
  padding-bottom: 96px;
}

.enquiry-card {
  background: var(--deep);
  color: var(--bg);
  border-radius: 28px;
  padding: clamp(28px, 5vw, 64px);
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
}

.enquiry-info {
  flex: 1 1 320px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.enquiry-info p {
  margin: 0;
  font-size: 17px;
  line-height: 1.6;
  color: var(--mist);
}

.enquiry-form {
  flex: 1 1 320px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.enquiry-form .field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.enquiry-form label {
  font-size: 14px;
  font-weight: 600;
}

.enquiry-form input,
.enquiry-form textarea {
  width: 100%;
  padding: 14px 16px;
  border: 2px solid transparent;
  border-radius: 10px;
  background: var(--surface);
  color: var(--ink);
  font: inherit;
  font-size: 16px;
  outline: none;
}

.enquiry-form textarea {
  resize: vertical;   /* korisnik smije povećati polje samo u visinu */
  line-height: 1.5;
}

.enquiry-form input:focus,
.enquiry-form textarea:focus {
  border-color: var(--sand);
}

.enquiry-form button {
  margin-top: 4px;
  padding: 16px;
  border: 0;
  border-radius: 999px;
  background: var(--sand);
  color: var(--ink);
  font: inherit;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
}

.enquiry-form button:hover {
  filter: brightness(1.06);
}

/* =========================================================
   Footer
   ========================================================= */
.footer {
  background: var(--ink);
  color: #B9D3DA;
}

.footer-inner {
  padding-top: 28px;
  padding-bottom: 28px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
  justify-content: space-between;
  font-size: 14px;
}

/* =========================================================
   Mobitel
   ========================================================= */
@media (max-width: 560px) {
  .nav {
    padding-top: 20px;
  }

  .logo {
    font-size: 24px;
  }

  .hero-text {
    padding-top: 44px;
    gap: 18px;
  }

  .hero-title {
    font-size: clamp(38px, 11vw, 52px);
  }

  .hero-lead {
    font-size: 17px;
  }

  .hero-image-wrap {
    padding-top: 40px;
  }

  .hero-image {
    height: 200px;
    border-radius: 16px 16px 0 0;
  }

  /* Mreža 2 × 2:  Dolazak | Odlazak
                   Gostiju | Pošalji upit   */
  .quick-bar {
    margin-top: -28px;
    padding: 16px;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }

  .quick-field input {
    padding: 10px;   /* manje unutrašnjeg prostora, da datum stane u pola širine */
  }

  .quick-btn {
    padding: 13px 12px;
  }

  .section-inner {
    padding-top: 64px;
    padding-bottom: 64px;
  }

  /* Mora biti POSLIJE .section-inner, inače bi ono pregazilo padding-top */
  .apartments {
    padding-top: 72px;
    gap: 32px;
  }

  .amenities-inner,
  .location {
    gap: 32px;
  }

  .location-map {
    height: 240px;
  }

  .enquiry {
    padding-bottom: 64px;
  }

  .enquiry-card {
    border-radius: 20px;
    gap: 32px;
  }
}

/* Vrlo uski telefoni: datum ne staje u pola širine,
   pa su polja opet jedno ispod drugog */
@media (max-width: 380px) {
  .quick-bar {
    grid-template-columns: minmax(0, 1fr);
  }
}
