:root{
  --bg: #f7f7fb;
  --surface: #ffffff;
  --text: #0f172a;
  --muted: #475569;
  --muted2: #64748b;

  --brand: #0a2540;
  --brand2: #0b2f55;

  --border: rgba(15, 23, 42, 0.10);
  --shadow: 0 10px 22px rgba(15, 23, 42, 0.06);
  --shadow2: 0 14px 30px rgba(15, 23, 42, 0.10);

  --radius: 14px;
  --radius2: 18px;

  --container: 1100px;

  --flag-w: 32px;
  --flag-h: 20px;
}

*{ box-sizing: border-box; }
html{ scroll-behavior: smooth; }

body{
  margin: 0;
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
}

img{ max-width: 100%; display: block; }

.container{
  width: min(var(--container), calc(100% - 40px));
  margin: 0 auto;
}

/* =========================
   Header
========================= */
.site-header{
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(247, 247, 251, 0.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(15, 23, 42, 0.06);
}

.header-inner{
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 0;
}

/* Brand */
.brand{
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text);
  font-weight: 800;
  flex: 0 0 auto;
}

.brand-mark{
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: var(--brand);
  color: #fff;
  display: grid;
  place-items: center;
}

.brand-text{
  font-size: 1.05rem;
}
/* Brand: Upper Sea View Apartments */
.brand-title{
  display: grid;
  line-height: 1.05;
}

/* Footer brand - malo kompaktniji */
.brand--footer{
  gap: 10px;
  text-decoration: none;
}

.brand--footer .brand-text{
  font-size: 1rem;
}

.brand--footer .brand-sub{
  font-size: 0.72rem;
  margin-top: 2px;
}

/* U footeru ne treba hover background kao u nav-u */
.brand--footer:hover{
  background: transparent;
}

.brand-text{
  font-size: 1.05rem;
  letter-spacing: -0.01em;
}

.brand-sub{
  font-size: 0.78rem;
  font-weight: 800;
  color: var(--muted2);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-top: 2px;
}

/* malo proširi badge za USV */
.brand-mark{
  width: 46px;   /* bilo 38 */
  height: 38px;
  border-radius: 12px;
  background: var(--brand);
  color: #fff;
  display: grid;
  place-items: center;
  font-weight: 900;
  font-size: 0.85rem;
  letter-spacing: 0.06em;
}

/* Nav */
.site-nav{
  display: flex;
  align-items: center;
  gap: 12px;
  margin-left: auto;
  flex: 0 0 auto;
}

/* osnovni stil za linkove u navigaciji */
.site-nav a{
  text-decoration: none;
  color: var(--text);
  font-weight: 700;
  padding: 8px 10px;
  border-radius: 10px;
  white-space: nowrap;
  transition: background .18s ease, color .18s ease, transform .18s ease;
}

/* ✅ hover SAMO za obične linkove (ne za gumb) */
.site-nav a:not(.btn):hover{
  background: rgba(15, 23, 42, 0.06);
}

/* ✅ aktivni fokus (tipkovnica) za obične linkove */
.site-nav a:not(.btn):focus-visible{
  outline: none;
  box-shadow: 0 0 0 4px rgba(11, 74, 162, 0.14);
}

/* ✅ gumb u navigaciji ("Kontakt") – poseban hover da izgleda premium */
.site-nav .btn{
  padding: 10px 14px; /* neka ostane kao button */
}

/* hover efekt za button */
.site-nav .btn:hover{
  transform: translateY(-1px);
  box-shadow: var(--shadow);
}

/* da :hover iz običnih linkova nikad ne “pregazi” button */
.site-nav .btn{
  background-clip: padding-box;
}


/* Buttons */
.btn{
  padding: 10px 14px;
  border-radius: 12px;
  text-decoration: none;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 0;
}

.btn-primary{
  background: var(--brand);
  color: #fff !important;
}

.btn-primary:hover{
  background: var(--brand2);
}

.btn-ghost{
  border: 1px solid rgba(15, 23, 42, 0.12);
  color: var(--text);
  background: transparent;
}

.btn-sm{
  padding: 8px 10px;
  border-radius: 10px;
  font-weight: 700;
  font-size: 0.9rem;
}

/* Language icons */
.lang-icons{
  display: flex;
  align-items: center;
  gap: 6px;
  flex: 0 0 auto;
}

.lang-icon{
  display: inline-flex;
  padding: 4px 2px;
  border-bottom: 2px solid transparent;
  border-radius: 6px;
  line-height: 0;
}

.lang-icon img{
  width: var(--flag-w);
  height: var(--flag-h);
  border-radius: 6px;
  box-shadow: 0 4px 10px rgba(15, 23, 42, 0.10);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.lang-icon:hover img{
  transform: translateY(-2px);
  box-shadow: 0 8px 16px rgba(15, 23, 42, 0.16);
}

.lang-icon.active{
  border-bottom-color: #0b4aa2;
}

/* Mobile toggle button */
.nav-toggle{
  display: none;
  width: 44px;
  height: 40px;
  border: 1px solid rgba(15, 23, 42, 0.10);
  border-radius: 12px;
  background: var(--surface);
  cursor: pointer;
  padding: 0;
  flex: 0 0 auto;
}

.nav-toggle span{
  display: block;
  width: 18px;
  height: 2px;
  background: var(--text);
  margin: 4px auto;
  border-radius: 2px;
}

/* =========================
   Hero
========================= */
.hero{
  position: relative;
  min-height: 520px;
}

.hero-media{
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(90deg, rgba(10,37,64,.55), rgba(10,37,64,.20)),
    url("images/hero-2560x980.webp");
  background-size: cover;
  background-position: center;
}

.hero-inner{
  position: relative;
  z-index: 1;
  padding: 80px 0;
  color: #fff;
}

.hero-kicker{
  margin: 0 0 14px 0;
  opacity: .95;
  font-weight: 700;
}

.hero h1{
  margin: 0 0 10px 0;
  line-height: 1.15;
  font-size: clamp(2rem, 3vw, 3rem);
  letter-spacing: -0.02em;
}

.hero-sub{
  margin: 0 0 18px 0;
  max-width: 60ch;
  opacity: .95;
}

.hero-actions{
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}

.hero-badges{
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.badge{
  background: rgba(255,255,255,.14);
  border: 1px solid rgba(255,255,255,.22);
  padding: 6px 10px;
  border-radius: 999px;
  font-weight: 700;
  font-size: .95rem;
  backdrop-filter: blur(6px);
}

/* =========================
   Sections
========================= */
.section{
  padding: 54px 0;
}

.section h2{
  margin: 0 0 10px 0;
  letter-spacing: -0.01em;
}

.section-lead{
  margin: 0 0 22px 0;
  color: var(--muted);
  font-weight: 600;
}

.lead{
  color: var(--muted);
  font-weight: 600;
}

.muted{ color: var(--muted); }
.small{ font-size: .95rem; }

/* Cards */
.about-card,
.contact-card{
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius2);
  box-shadow: var(--shadow);
  padding: 18px;
}
/* About card photo (Vrsar image in "Brzi kontakt") */
/* About desna kartica: VEĆA slika, bez okvira (full-bleed) */
.about-card--photo{
  padding: 0;                 /* nema “okvira” */
  overflow: hidden;           /* da slika poštuje rounded corners kartice */
}

.about-photo{
  margin: 0;
}

.about-photo img{
  width: 100%;
  height: 300px;              /* ✅ VEĆE (desktop) - po potrebi 280/320 */
  object-fit: cover;          /* popuni prostor bez rastezanja */
  display: block;
}

/* Mobile */
@media (max-width: 760px){
  .about-photo img{
    height: 220px;
  }
}




/* Mobile */
@media (max-width: 760px){
  .about-photo img{
    height: 150px;
  }
}


/* Two-col (koristi se u About sekciji) */
.two-col{
  display: grid;
  grid-template-columns: 1.25fr .85fr;
  gap: 18px;
  align-items: start;
}

.about-actions{
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 12px;
}

/* Quick info */
.quick-info{
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 16px;
}

.qi{
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 12px;
  box-shadow: 0 6px 16px rgba(15, 23, 42, 0.05);
}

.qi-title{
  color: var(--muted2);
  font-weight: 700;
  font-size: .9rem;
}

.qi-value{
  font-weight: 800;
}

/* =========================
   Apartments
========================= */
.apartment-grid{
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 18px;
}

.apartment-card{
  background: var(--surface);
  border-radius: var(--radius2);
  box-shadow: var(--shadow);
  overflow: hidden;
  border: 1px solid var(--border);
  position: relative; /* for overlay link */
  transition: transform .20s ease, box-shadow .20s ease; /* hover lift */
}

.apartment-card:hover{
  transform: translateY(-4px);
  box-shadow: var(--shadow2);
}

/* overlay link - klik na cijelu karticu */
.card-link{
  position: absolute;
  inset: 0;
  z-index: 1;
  border-radius: var(--radius2);
}

/* sadržaj iznad overlay linka */
.apartment-top,
.apartment-body{
  position: relative;
  z-index: 2;
}

.apartment-top{
  overflow: hidden;
}

.apartment-img{
  width: 100%;
  height: 170px;
  object-fit: cover;
}

.apartment-img--lg{
  height: 210px;
}

.apartment-body{
  padding: 14px 14px 16px;
}

.apartment-head{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.apartment-head h3{
  margin: 0;
  font-size: 1.1rem;
}

.card-actions{
  display: flex;
  gap: 8px;
  align-items: center;
}

.apartment-desc{
  margin: 10px 0 10px;
  color: var(--muted);
}

.features{
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  color: var(--muted2);
  font-weight: 700;
  font-size: .95rem;
}

/* (opcionalno, ali izgleda profi) pill look za features
.features li{
  background: rgba(15, 23, 42, 0.03);
  border: 1px solid rgba(15, 23, 42, 0.08);
  padding: 6px 10px;
  border-radius: 999px;
}
*/

/* =========================
   Location (full width map)
========================= */
.map-wide{
  margin-top: 14px;
}

.map-embed{
  width: 100%;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: rgba(15, 23, 42, 0.03);
}

.map-embed iframe{
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

.map-embed--wide{
  height: 420px;
}

/* Adresa + GPS ispod mape */
.map-address{
  margin-top: 14px;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: var(--surface);
  box-shadow: 0 6px 16px rgba(15, 23, 42, 0.04);
}

.map-address-title{
  font-weight: 900;
  margin-bottom: 6px;
  letter-spacing: -0.01em;
}

.map-address-lines{
  color: var(--muted);
  font-weight: 600;
  line-height: 1.45;
}

.map-gps{
  margin-top: 10px;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
  color: var(--muted2);
  font-weight: 700;
}

.map-gps-label{
  font-weight: 900;
  color: var(--text);
}

.map-gps-coords{
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  background: rgba(15, 23, 42, 0.04);
  border: 1px solid rgba(15, 23, 42, 0.08);
  padding: 4px 8px;
  border-radius: 10px;
}

/* Gumb ispod mape (koristi postojeći .btn stil) */
.map-open{
  margin-top: 12px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

/* =========================
   Contact
========================= */
.contact-grid{
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 16px;
}

.contact-item{
  background: rgba(15, 23, 42, 0.03);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 12px;
}

.ci-title{
  color: var(--muted2);
  font-weight: 800;
  font-size: .9rem;
  margin-bottom: 4px;
}

.ci-value a{
  color: var(--brand);
  font-weight: 800;
  text-decoration: none;
}

.ci-value a:hover{
  text-decoration: underline;
}

/* Form */
.contact-form{
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}

.form-grid{
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.field{
  display: grid;
  gap: 6px;
}

.field-full{
  grid-column: 1 / -1;
}

label{
  font-weight: 800;
  color: var(--text);
  letter-spacing: -0.01em;
}

.req{
  color: #b42318;
  font-weight: 900;
}

.opt{
  color: var(--muted2);
  font-weight: 700;
  font-size: .9rem;
  margin-left: 6px;
}

input, textarea{
  width: 100%;
  font: inherit;
  padding: 11px 12px;
  border-radius: 12px;
  border: 1px solid rgba(15, 23, 42, 0.14);
  background: #fff;
  outline: none;
  transition: box-shadow .15s ease, border-color .15s ease;
}

input:focus, textarea:focus{
  border-color: rgba(11, 74, 162, 0.55);
  box-shadow: 0 0 0 4px rgba(11, 74, 162, 0.12);
}

textarea{
  resize: vertical;
  min-height: 120px;
}

.error{
  min-height: 18px;
  font-size: .9rem;
  font-weight: 700;
  color: #b42318;
}

.form-actions{
  margin-top: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

/* badge “Upit za Apartman …” iznad forme */
.selected-apartment{
  margin-top: 12px;
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(11, 74, 162, 0.08);
  border: 1px solid rgba(11, 74, 162, 0.18);
  font-weight: 800;
  color: var(--brand);
}

/* =========================
   Footer
========================= */
.site-footer{
  padding: 30px 0;
  border-top: 1px solid var(--border);
}

.footer-inner{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.footer-brand{
  font-weight: 900;
  display: flex;
  align-items: center;
  gap: 10px;
}

.footer-muted{
  color: var(--muted);
  margin-top: 6px;
}

.footer-right{
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.footer-right a{
  color: var(--muted2);
  text-decoration: none;
  font-weight: 800;
}

.footer-right a:hover{
  text-decoration: underline;
}

/* =========================
   Responsive
========================= */
@media (max-width: 900px){
  .two-col{
    grid-template-columns: 1fr;
  }
  .contact-grid{
    grid-template-columns: 1fr;
  }
}
/* ✅ Hover/active efekt za gumb "Otvori u Google Maps" (DESKTOP) */
.map-open{
  transition: transform .18s ease, box-shadow .18s ease, filter .18s ease;
}

.map-open:hover{
  transform: translateY(-2px);
  box-shadow: var(--shadow2);
  filter: brightness(1.03);
}

.map-open:active{
  transform: translateY(0);
  box-shadow: var(--shadow);
}

.map-open:focus-visible{
  outline: none;
  box-shadow: 0 0 0 4px rgba(11, 74, 162, 0.18), var(--shadow2);
}
@media (max-width: 760px){
  :root{
    --flag-w: 28px;
    --flag-h: 18px;
  }

  .nav-toggle{
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .site-nav{
    position: absolute;
    right: 20px;
    top: 64px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 16px;
    box-shadow: var(--shadow2);
    padding: 10px;
    display: none;
    flex-direction: column;
    gap: 6px;
    min-width: 180px;
  }

  .site-nav.open{
    display: flex;
  }

  .header-inner{
    position: relative;
  }

  .site-nav a{
    padding: 10px 12px;
  }

  .btn.btn-primary{
    width: 100%;
  }

  .form-grid{
    grid-template-columns: 1fr;
  }

  .form-actions{
    justify-content: stretch;
  }

  .form-actions .btn{
    width: 100%;
  }

  .apartment-img--lg{
    height: 190px;
  }

  .map-embed--wide{
    height: 300px;
  }

  .map-open{
    width: 100%;
  
}

.map-open:hover{
  transform: translateY(-2px);
  box-shadow: var(--shadow2);
  filter: brightness(1.03);
}

/* Kad klikne (active) – mali "press" efekt */
.map-open:active{
  transform: translateY(0);
  box-shadow: var(--shadow);
}
.map-open:focus-visible{
  outline: none;
  box-shadow: 0 0 0 4px rgba(11, 74, 162, 0.18), var(--shadow2);
}

@media (max-width: 420px){
  .header-inner{
    flex-wrap: wrap;
  }
  .site-nav{
    width: 100%;
    justify-content: center;
    margin-left: 0;
  }
  .lang-icons{
    margin-left: auto;
  }
}

}
