/* ===== CSS VARIJABLE ===== */
:root {
  --coral:       #e8614a;
  --coral-dark:  #c94e39;
  --coral-light: #fdecea;
  --teal:        #1a9e8f;
  --teal-dark:   #157a6e;
  --teal-light:  #e6f7f5;
  --amber:       #f0a500;
  --amber-dark:  #b07800;
  --amber-light: #fff8e6;
  --bg:          #f9f7f4;
  --text:        #1a1a2e;
  --text-muted:  #6b7280;
  --text-light:  #9ca3af;
  --border:      #e5e7eb;
  --shadow-sm:   0 1px 3px rgba(0,0,0,0.08);
  --shadow-md:   0 4px 16px rgba(0,0,0,0.10);
  --radius:      12px;
  --radius-lg:   18px;
  --font-d: 'Baloo 2', sans-serif;
  --font-b: 'Nunito', sans-serif;
}

/* ===== RESET ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-b);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }

/* ===== NAV ===== */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,0.96);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  padding: 0 1.5rem;
}
.nav-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 56px;
  gap: 1rem;
}
.nav-logo { font-family: var(--font-d); font-weight: 700; font-size: 1.05rem; color: var(--coral); }
.nav-links { display: flex; gap: 1.25rem; list-style: none; }
.nav-links a { font-size: 0.86rem; font-weight: 600; color: var(--text-muted); transition: color .2s; }
.nav-links a:hover { color: var(--coral); }

/* ===== HERO ===== */
.hero {
  background: linear-gradient(135deg, #1a1a2e 0%, #2a1a3e 45%, #0f3030 100%);
  color: white;
  padding: 3.5rem 1.5rem 2.75rem;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 20% 50%, rgba(232,97,74,.12) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(26,158,143,.10) 0%, transparent 40%);
  pointer-events: none;
}
.hero-inner { max-width: 1100px; margin: 0 auto; position: relative; }

.breadcrumb {
  font-size: 0.8rem;
  color: rgba(255,255,255,.5);
  margin-bottom: 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  flex-wrap: wrap;
}
.breadcrumb a { color: rgba(255,255,255,.65); transition: color .2s; }
.breadcrumb a:hover { color: white; }
.breadcrumb-sep { opacity: .35; }

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  background: rgba(232,97,74,.2);
  border: 1px solid rgba(232,97,74,.45);
  color: #ffb8a8;
  font-size: .8rem;
  font-weight: 700;
  padding: .3rem .85rem;
  border-radius: 20px;
  margin-bottom: 1rem;
  font-family: var(--font-d);
}
.hero h1 {
  font-family: var(--font-d);
  font-size: clamp(1.85rem, 4.5vw, 2.9rem);
  font-weight: 800;
  line-height: 1.12;
  margin-bottom: .85rem;
}
.hero h1 span { color: var(--coral); }
.hero-sub {
  font-size: 1rem;
  color: rgba(255,255,255,.72);
  max-width: 620px;
  margin-bottom: 2.25rem;
  line-height: 1.65;
}
.hero-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: .85rem;
  max-width: 580px;
}
.stat-box {
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.10);
  border-radius: var(--radius);
  padding: .85rem .75rem;
  text-align: center;
}
.stat-num {
  font-family: var(--font-d);
  font-size: 1.65rem;
  font-weight: 800;
  color: var(--coral);
  display: block;
  line-height: 1;
}
.stat-label {
  font-size: .7rem;
  color: rgba(255,255,255,.6);
  margin-top: .25rem;
  font-weight: 600;
}

/* ===== LAYOUT ===== */
.container { max-width: 1100px; margin: 0 auto; padding: 0 1.5rem; }

.section-header { margin: 3rem 0 1.5rem; }
.section-tag {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  font-size: .73rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .09em;
  color: var(--coral);
  margin-bottom: .5rem;
}
.section-tag.teal   { color: var(--teal); }
.section-tag.amber  { color: var(--amber-dark); }
.section-header h2 {
  font-family: var(--font-d);
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--text);
  margin-bottom: .45rem;
}
.section-header p { color: var(--text-muted); font-size: .94rem; max-width: 620px; }

/* ===== SECTION DIVIDER ===== */
.section-divider {
  border: none;
  border-top: 2px dashed var(--border);
  margin: 1rem 0 0;
}

/* ===== HERO IMAGE ===== */
.hero-image-wrap {
  width: 100%;
  max-height: 480px;
  overflow: hidden;
  background: #1a1a2e;
}
.hero-image {
  width: 100%;
  height: 480px;
  object-fit: cover;
  object-position: center;
  display: block;
}

/* ===== FILTER BAR ===== */
.filter-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 2rem;
  padding: 1rem 1.25rem;
  background: white;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  flex-wrap: wrap;
}
.filter-buttons {
  display: flex;
  align-items: center;
  gap: .5rem;
  flex-wrap: wrap;
}
.filter-label {
  font-size: .76rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: .06em;
  white-space: nowrap;
}
.filter-btn {
  border: 2px solid var(--border);
  background: white;
  color: var(--text-muted);
  font-family: var(--font-b);
  font-size: .84rem;
  font-weight: 600;
  padding: .42rem 1rem;
  border-radius: 20px;
  cursor: pointer;
  transition: all .2s;
  white-space: nowrap;
}
.filter-btn:hover   { border-color: var(--coral); color: var(--coral); }
.filter-btn.active  { background: var(--coral); border-color: var(--coral); color: white; }
.search-wrap { position: relative; flex-shrink: 0; }
.search-wrap input {
  border: 2px solid var(--border);
  background: white;
  border-radius: 20px;
  padding: .42rem 1rem .42rem 2.25rem;
  font-family: var(--font-b);
  font-size: .84rem;
  outline: none;
  width: 220px;
  transition: border-color .2s;
  color: var(--text);
}
.search-wrap input:focus { border-color: var(--teal); }
.search-icon {
  position: absolute;
  left: .75rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-light);
  width: 14px;
  height: 14px;
  pointer-events: none;
}

/* ===== HAMBURGER ===== */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  border-radius: 8px;
  transition: background .2s;
}
.hamburger:hover { background: var(--bg); }
.hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform .3s, opacity .3s;
}
.hamburger.open span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.hamburger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.hamburger.open span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* ===== MOBILE MENU ===== */
.mobile-menu {
  display: none;
  position: absolute;
  top: 56px;
  left: 0;
  right: 0;
  background: white;
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow-md);
  z-index: 99;
}
.mobile-menu.open { display: block; }
.mobile-menu ul   { list-style: none; padding: .4rem 0; }
.mobile-menu li a {
  display: block;
  padding: .85rem 1.5rem;
  font-family: var(--font-d);
  font-weight: 700;
  font-size: .92rem;
  color: var(--text);
  border-bottom: 1px solid var(--bg);
  transition: background .15s, color .15s;
}
.mobile-menu li:last-child a { border-bottom: none; }
.mobile-menu li a:hover { background: var(--bg); color: var(--coral); }

/* ===== CONTENT SECTIONS ===== */
.content-section { margin-bottom: .5rem; }

/* ===== CARDS GRID ===== */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(310px, 1fr));
  gap: 1.15rem;
  margin-bottom: 1rem;
}
.salon-card {
  background: white;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  padding: 1.2rem;
  box-shadow: var(--shadow-sm);
  transition: transform .2s, box-shadow .2s;
  display: flex;
  flex-direction: column;
  gap: .75rem;
}
.salon-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }

.card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: .5rem;
}
.card-badges { display: flex; gap: .3rem; flex-wrap: wrap; }
.badge {
  font-size: .68rem;
  font-weight: 700;
  padding: .2rem .55rem;
  border-radius: 9px;
  font-family: var(--font-d);
  white-space: nowrap;
}
.badge-mz     { background: var(--teal-light);  color: var(--teal-dark); }
.badge-female { background: #fce4ec; color: #ad1457; }
.badge-male   { background: #e3f2fd; color: #1565c0; }
.badge-barber { background: #fff3e0; color: #e65100; }
.badge-beauty { background: #f3e5f5; color: #6a1b9a; }
.badge-dog    { background: var(--teal-light);  color: var(--teal-dark); }
.badge-cat    { background: var(--amber-light); color: var(--amber-dark); }
.badge-full   { background: var(--coral-light); color: var(--coral-dark); }
.badge-warn   { background: #f3f4f6; color: var(--text-muted); }

.card-web-link {
  font-size: .68rem;
  color: var(--teal);
  font-weight: 700;
  border: 1.5px solid var(--teal);
  padding: .18rem .55rem;
  border-radius: 7px;
  transition: all .2s;
  white-space: nowrap;
  flex-shrink: 0;
}
.card-web-link:hover { background: var(--teal); color: white; }

.card-title {
  font-family: var(--font-d);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1.3;
  margin-bottom: .1rem;
}
.card-desc { font-size: .855rem; color: var(--text-muted); line-height: 1.55; }

.card-meta { display: flex; flex-direction: column; gap: .3rem; }
.meta-row {
  display: flex;
  align-items: flex-start;
  gap: .4rem;
  font-size: .8rem;
  color: var(--text-muted);
}
.meta-icon { flex-shrink: 0; font-size: .82rem; margin-top: 1px; line-height: 1.5; }

.card-tags { display: flex; flex-wrap: wrap; gap: .28rem; }
.tag {
  font-size: .67rem;
  font-weight: 600;
  padding: .15rem .48rem;
  border-radius: 6px;
  background: var(--bg);
  color: var(--text-muted);
  border: 1px solid var(--border);
}

.card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: .65rem;
  border-top: 1px solid var(--border);
  gap: .5rem;
  flex-wrap: wrap;
  margin-top: auto;
}
.booking-ok { font-size: .74rem; font-weight: 700; color: var(--teal); }
.booking-na { font-size: .74rem; font-weight: 700; color: var(--text-light); }

.phone-btn {
  display: inline-flex;
  align-items: center;
  gap: .3rem;
  background: var(--coral);
  color: white;
  font-size: .78rem;
  font-weight: 700;
  padding: .35rem .8rem;
  border-radius: 8px;
  transition: background .2s;
  font-family: var(--font-d);
  white-space: nowrap;
}
.phone-btn:hover        { background: var(--coral-dark); }
.phone-btn.ph-teal      { background: var(--teal); }
.phone-btn.ph-teal:hover{ background: var(--teal-dark); }

.phone-stack  { display: flex; flex-direction: column; gap: .2rem; align-items: flex-end; }
.phone-inline { display: flex; gap: .3rem; flex-wrap: wrap; justify-content: flex-end; }
.no-phone     { font-size: .74rem; color: var(--text-light); font-style: italic; }

.no-results {
  display: none;
  text-align: center;
  padding: 3rem 1rem;
  color: var(--text-muted);
  font-size: .94rem;
  background: white;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
}
.no-results.show { display: block; }

/* ===== MAP ===== */
.map-box {
  background: white;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  margin-bottom: 3rem;
}
.map-legend {
  padding: .7rem 1.25rem;
  display: flex;
  gap: 1.25rem;
  flex-wrap: wrap;
  border-bottom: 1px solid var(--border);
  background: #fafafa;
}
.legend-item { display: flex; align-items: center; gap: .4rem; font-size: .78rem; font-weight: 600; color: var(--text-muted); }
.legend-dot  { width: 12px; height: 12px; border-radius: 50%; flex-shrink: 0; }
.ld-frizeri  { background: var(--teal); }
.ld-barber   { background: var(--amber); }
.ld-grooming { background: var(--coral); }
#map { height: 460px; }
.map-note {
  padding: .7rem 1.25rem;
  font-size: .77rem;
  color: var(--text-light);
  border-top: 1px solid var(--border);
  background: #fafafa;
}

/* ===== SAVJETI ===== */
.tips-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.15rem;
  margin-bottom: 3rem;
}
.tip-card {
  background: white;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  padding: 1.25rem;
  box-shadow: var(--shadow-sm);
  display: flex;
  gap: .9rem;
  align-items: flex-start;
}
.tip-icon {
  width: 42px; height: 42px;
  border-radius: 11px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
}
.ti-1 { background: var(--coral-light); }
.ti-2 { background: var(--teal-light);  }
.ti-3 { background: var(--amber-light); }
.ti-4 { background: #f0e8ff; }
.ti-5 { background: #e8f5e9; }
.ti-6 { background: #e3f2fd; }
.ti-7 { background: #fce4ec; }
.ti-8 { background: #fff3e0; }
.tip-content h3 { font-family: var(--font-d); font-size: .93rem; font-weight: 700; margin-bottom: .25rem; }
.tip-content p  { font-size: .82rem; color: var(--text-muted); line-height: 1.55; }

/* ===== FAQ ===== */
.faq-list { display: flex; flex-direction: column; gap: .5rem; margin-bottom: 3rem; }
.faq-item {
  background: white;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.faq-q {
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  cursor: pointer;
  padding: 1rem 1.2rem;
  font-family: var(--font-d);
  font-size: .92rem;
  font-weight: 700;
  color: var(--text);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  transition: background .15s;
}
.faq-q:hover      { background: var(--bg); }
.faq-q.open       { color: var(--coral); }
.faq-arrow {
  flex-shrink: 0;
  font-size: 1.05rem;
  color: var(--text-muted);
  transition: transform .3s;
}
.faq-q.open .faq-arrow { transform: rotate(45deg); color: var(--coral); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .35s ease; }
.faq-a-inner {
  padding: 0 1.2rem 1rem;
  font-size: .88rem;
  color: var(--text-muted);
  line-height: 1.65;
}

/* ===== SHARE ===== */
.share-box {
  background: white;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  padding: 1.6rem;
  text-align: center;
  box-shadow: var(--shadow-sm);
  margin-bottom: 3rem;
}
.share-box h3 { font-family: var(--font-d); font-size: 1rem; font-weight: 700; margin-bottom: .35rem; }
.share-box p  { font-size: .84rem; color: var(--text-muted); margin-bottom: 1rem; }
.share-btns   { display: flex; gap: .55rem; justify-content: center; flex-wrap: wrap; }
.share-btn {
  display: inline-flex; align-items: center; gap: .4rem;
  padding: .45rem 1rem; border-radius: 9px;
  font-size: .81rem; font-weight: 700;
  cursor: pointer; border: 2px solid transparent;
  transition: all .2s; font-family: var(--font-b);
}
.s-fb    { background: #1877f2; color: white; }
.s-fb:hover    { background: #0d65d8; }
.s-viber { background: #665cac; color: white; }
.s-viber:hover { background: #5046a0; }
.s-wa    { background: #25d366; color: white; }
.s-wa:hover    { background: #1db954; }
.s-copy  { background: white; color: var(--text); border-color: var(--border); }
.s-copy:hover  { border-color: var(--coral); color: var(--coral); }

/* ===== UPDATE NOTE ===== */
.update-note {
  display: block;
  background: white;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  padding: .85rem 1.2rem;
  margin-bottom: 3rem;
  font-size: .81rem;
  color: var(--text-muted);
  line-height: 1.65;
  box-shadow: var(--shadow-sm);
}
.update-note a { color: var(--coral); font-weight: 700; }
.update-note a:hover { text-decoration: underline; }

/* ===== FOOTER ===== */
.site-footer {
  background: var(--text);
  color: rgba(255,255,255,.55);
  padding: 2rem 1.5rem;
  text-align: center;
}
.footer-links {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  flex-wrap: wrap;
  margin-bottom: .85rem;
}
.footer-links a { color: rgba(255,255,255,.7); font-size: .83rem; font-weight: 600; transition: color .2s; }
.footer-links a:hover { color: var(--coral); }
.footer-copy { font-size: .76rem; }

/* ===== SCROLL MARGIN – sticky nav kompenzacija ===== */
#frizeri, #muski, #grooming,
#mapa, #savjeti, #faq {
  scroll-margin-top: 70px;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  /* Hero */
  .hero-stats { grid-template-columns: repeat(2, 1fr); }

  /* Nav */
  .nav-links { display: none; }

  /* Filter bar */
  .filter-bar { flex-direction: column; align-items: stretch; }
  .filter-label { margin-bottom: .1rem; }
  .search-wrap { margin-left: 0; width: 100%; }
  .search-wrap input { width: 100%; }
  .map-legend { gap: .75rem; }

  /* Cards */
  .cards-grid { grid-template-columns: 1fr; }

  /* Section spacing — smanjen na mobilnom */
  .section-header { margin: 2rem 0 1.25rem; }
  .section-header h2 { font-size: 1.45rem; }

  /* Touch targets — min 44px visine za sve interaktivne elemente */
  .filter-btn {
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: .84rem;
    padding: .5rem 1rem;
  }
  .phone-btn {
    min-height: 44px;
    padding: .55rem .9rem;
    font-size: .82rem;
  }
  .share-btn {
    min-height: 44px;
    padding: .55rem 1rem;
  }
  .card-web-link {
    min-height: 36px;
    display: inline-flex;
    align-items: center;
    padding: .4rem .7rem;
  }

  /* Card footer – sprečava prelijevanje pri dva dugmeta */
  .card-footer {
    flex-direction: column;
    align-items: flex-start;
    gap: .6rem;
  }
  .phone-inline,
  .phone-stack {
    width: 100%;
    align-items: flex-start;
    justify-content: flex-start;
  }
  .phone-btn { width: 100%; justify-content: center; }

  /* Mapa – niža na mobilnom */
  #map { height: 320px; }

  /* Tips grid – jednostupac ispod 600px */
  .tips-grid { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .hero { padding: 2.25rem 1rem 2rem; }
  .container { padding: 0 1rem; }
  .hero h1 { font-size: 1.65rem; }
  .hero-sub { font-size: .92rem; }
  .stat-num { font-size: 1.4rem; }
  .stat-label { font-size: .65rem; }
  .section-header h2 { font-size: 1.3rem; }
  /* Sprečava horizontalni scroll zbog dugih adresa */
  .meta-row { word-break: break-word; }
  .card-title { font-size: .98rem; }
}

/* ===== RESPONSIVE OVERRIDES (hero image, hamburger, filter-bar) ===== */
@media (max-width: 768px) {
  /* Hero image */
  .hero-image-wrap { max-height: 240px; }
  .hero-image { height: 240px; }

  /* Hamburger visible */
  .hamburger { display: flex; }

  /* Filter bar — new structure */
  .filter-bar       { flex-direction: column; align-items: stretch; gap: .75rem; }
  .filter-buttons   { flex-wrap: wrap; gap: .4rem; }
  .search-wrap      { width: 100%; }
  .search-wrap input{ width: 100%; }
}
@media (max-width: 480px) {
  .hero-image-wrap { max-height: 180px; }
  .hero-image { height: 180px; }
}
