/* ===== CSS VARIJABLE ===== */
:root {
  --red:         #e53935;
  --red-dark:    #b71c1c;
  --red-light:   #ffebee;
  --blue:        #1e88e5;
  --blue-dark:   #1565c0;
  --blue-light:  #e3f2fd;
  --purple:      #8e24aa;
  --purple-dark: #6a1b9a;
  --purple-light:#f3e5f5;
  --gold:        #fbbf3a;
  --bg:          #f9f7f5;
  --text:        #1a1a2e;
  --text-muted:  #5a5a7a;
  --text-light:  #9a9ab0;
  --border:      #e8e4f0;
  --shadow-sm:   0 1px 3px rgba(20,20,60,0.06);
  --shadow-md:   0 4px 16px rgba(20,20,60,0.10);
  --radius:      12px;
  --radius-lg:   18px;
  --font-d: 'Baloo 2', sans-serif;
  --font-b: 'Nunito', sans-serif;
}

*, *::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 — punom širinom, sticky ===== */
.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);
  display: inline-flex;
  flex-direction: column;
  line-height: 1.05;
  gap: 2px;
  white-space: nowrap;
}
.logo-main { font-weight: 800; font-size: .98rem; color: var(--red); letter-spacing: .005em; }
.logo-sub  { font-weight: 600; font-size: .65rem; color: var(--text-muted); letter-spacing: .06em; text-transform: lowercase; }
.nav-logo:hover .logo-main { color: var(--red-dark); }

.nav-links { display: flex; gap: 1.25rem; list-style: none; }
.nav-links a { font-size: .86rem; font-weight: 600; color: var(--text-muted); transition: color .2s; }
.nav-links a:hover { color: var(--red); }

/* ===== 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(--red); }

/* ===== HERO — punom širinom, izvan container-a ===== */
.hero {
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 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(229,57,53,.14) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(30,136,229,.10) 0%, transparent 40%);
  pointer-events: none;
}
.hero-inner {
  max-width: 1100px;
  margin: 0 auto;
  position: relative;
}

.breadcrumb {
  font-size: .8rem;
  color: rgba(255,255,255,.5);
  margin-bottom: 1.25rem;
  display: flex;
  align-items: center;
  gap: .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(251,191,58,.15);
  border: 1px solid rgba(251,191,58,.35);
  color: var(--gold);
  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(--gold); }
.hero-sub {
  font-size: 1rem;
  color: rgba(255,255,255,.74);
  max-width: 660px;
  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(--gold);
  display: block;
  line-height: 1;
}
.stat-label {
  font-size: .7rem;
  color: rgba(255,255,255,.6);
  margin-top: .25rem;
  font-weight: 600;
}

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

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

/* ===== SECTION HEADER ===== */
.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(--red);
  margin-bottom: .5rem;
}
.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: 660px; }

/* ===== 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: .8rem;
  font-weight: 700;
  color: var(--text-muted);
  white-space: nowrap;
}
.filter-btn {
  font-family: var(--font-d);
  font-weight: 700;
  font-size: .82rem;
  padding: .45rem 1rem;
  border-radius: 99px;
  border: 2px solid var(--border);
  background: white;
  color: var(--text-muted);
  cursor: pointer;
  transition: all .2s;
  white-space: nowrap;
}
.filter-btn:hover { border-color: var(--red); color: var(--red); }
.filter-btn.active { background: var(--red); border-color: var(--red); color: white; }

.search-wrap { position: relative; flex: 1; min-width: 180px; max-width: 320px; }
.search-icon {
  position: absolute;
  left: .75rem;
  top: 50%;
  transform: translateY(-50%);
  width: 16px;
  height: 16px;
  color: var(--text-light);
  pointer-events: none;
}
#search-input {
  width: 100%;
  padding: .52rem .75rem .52rem 2.25rem;
  border: 2px solid var(--border);
  border-radius: 99px;
  font-family: var(--font-b);
  font-size: .86rem;
  color: var(--text);
  background: var(--bg);
  transition: border-color .2s;
}
#search-input:focus { outline: none; border-color: var(--red); background: white; }

/* ===== NO RESULTS ===== */
.no-results {
  display: none;
  text-align: center;
  padding: 2rem;
  color: var(--text-muted);
  font-size: .9rem;
}
.no-results.show { display: block; }

/* ===== CARDS GRID ===== */
.salon-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.25rem;
}

/* ===== SALON CARD ===== */
.salon-card {
  background: white;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  padding: 1.25rem 1.25rem 1rem;
  transition: transform .2s, box-shadow .2s;
  display: flex;
  flex-direction: column;
  gap: .45rem;
}
.salon-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.card-badge {
  display: inline-block;
  font-family: var(--font-d);
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  padding: .2rem .65rem;
  border-radius: 99px;
  align-self: flex-start;
}
.badge-restoran { background: var(--red-light);    color: var(--red-dark); }
.badge-kafic    { background: var(--blue-light);   color: var(--blue-dark); }
.badge-klub     { background: var(--purple-light); color: var(--purple-dark); }

.salon-card h3 {
  font-family: var(--font-d);
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--text);
  line-height: 1.2;
}
.card-tagline {
  font-size: .82rem;
  color: var(--text-muted);
  line-height: 1.45;
}
.card-detail {
  display: flex;
  align-items: center;
  gap: .4rem;
  font-size: .82rem;
  color: var(--text-muted);
}
.det-icon { font-size: .9rem; flex-shrink: 0; }
.phone-link { color: var(--red); font-weight: 700; }
.phone-link:hover { text-decoration: underline; }
.web-link { color: var(--blue); font-weight: 600; font-size: .8rem; word-break: break-all; }
.web-link:hover { text-decoration: underline; }

.card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: .35rem;
  margin-top: .15rem;
}
.tag {
  font-size: .72rem;
  font-weight: 600;
  padding: .2rem .55rem;
  border-radius: 99px;
  background: var(--bg);
  color: var(--text-muted);
  border: 1px solid var(--border);
}

/* ===== MAPA ===== */
#mapa { margin-top: 1rem; }
.map-legend {
  display: flex;
  gap: 1.25rem;
  flex-wrap: wrap;
  margin-bottom: .75rem;
}
.leg-item { display: flex; align-items: center; gap: .4rem; font-size: .8rem; color: var(--text-muted); }
.leg-dot { width: 12px; height: 12px; border-radius: 50%; flex-shrink: 0; }
#map {
  height: 420px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

/* ===== TABELA ===== */
#uporedba { margin-top: 1rem; }
.table-wrap { overflow-x: auto; border-radius: var(--radius); box-shadow: var(--shadow-sm); }
table {
  width: 100%;
  border-collapse: collapse;
  background: white;
  font-size: .86rem;
}
thead th {
  background: var(--text);
  color: white;
  font-family: var(--font-d);
  font-weight: 700;
  font-size: .8rem;
  text-transform: uppercase;
  letter-spacing: .05em;
  padding: .75rem 1rem;
  text-align: left;
  white-space: nowrap;
}
tbody tr { border-bottom: 1px solid var(--border); transition: background .15s; }
tbody tr:last-child { border-bottom: none; }
tbody tr:hover { background: var(--bg); }
tbody td {
  padding: .75rem 1rem;
  color: var(--text);
  vertical-align: top;
}
tbody td:first-child { font-weight: 700; font-family: var(--font-d); }

/* ===== SAVJETI ===== */
#savjeti { margin-top: 1rem; }
.savjeti-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1rem;
}
.savjet-card {
  background: white;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  padding: 1.25rem;
  box-shadow: var(--shadow-sm);
}
.savjet-icon { font-size: 1.75rem; margin-bottom: .5rem; }
.savjet-card h3 {
  font-family: var(--font-d);
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: .4rem;
}
.savjet-card p { font-size: .84rem; color: var(--text-muted); line-height: 1.5; }

/* ===== FAQ ===== */
#faq { margin-top: 1rem; }
.faq-list { display: flex; flex-direction: column; gap: .6rem; }
.faq-item { background: white; border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.faq-q {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: .75rem;
  padding: 1rem 1.25rem;
  font-family: var(--font-d);
  font-size: .95rem;
  font-weight: 700;
  color: var(--text);
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
  transition: background .15s;
}
.faq-q:hover { background: var(--bg); }
.faq-q.open { color: var(--red); background: var(--red-light); }
.faq-arrow {
  font-size: 1.3rem;
  font-weight: 400;
  line-height: 1;
  flex-shrink: 0;
  transition: transform .25s;
  color: var(--text-light);
}
.faq-q.open .faq-arrow { transform: rotate(45deg); color: var(--red); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .3s ease; }
.faq-a-inner {
  padding: .85rem 1.25rem 1rem;
  font-size: .88rem;
  color: var(--text-muted);
  line-height: 1.6;
  border-top: 1px solid var(--border);
}

/* ===== SHARE ===== */
.share-box {
  margin: 2.5rem 0;
  padding: 2rem 1.75rem;
  background: linear-gradient(135deg, #1a1a2e 0%, #0f3460 100%);
  border-radius: var(--radius-lg);
  color: white;
  text-align: center;
}
.share-box h3 { font-family: var(--font-d); font-size: 1.3rem; font-weight: 800; margin-bottom: .4rem; }
.share-box p  { font-size: .88rem; color: rgba(255,255,255,.7); margin-bottom: 1.25rem; }
.share-btns { display: flex; gap: .75rem; justify-content: center; flex-wrap: wrap; }
.share-btn {
  font-family: var(--font-d);
  font-size: .86rem;
  font-weight: 700;
  padding: .6rem 1.25rem;
  border-radius: 99px;
  border: none;
  cursor: pointer;
  transition: opacity .2s, transform .15s;
}
.share-btn:hover { opacity: .9; transform: translateY(-1px); }
.s-fb    { background: #1877f2; color: white; }
.s-viber { background: #7360f2; color: white; }
.s-wa    { background: #25d366; color: white; }
.s-copy  { background: rgba(255,255,255,.15); color: white; border: 1px solid rgba(255,255,255,.25); }

/* ===== UPDATE NOTE ===== */
.update-note {
  margin-bottom: 2.5rem;
  padding: .9rem 0;
  font-size: .8rem;
  color: var(--text-light);
  line-height: 1.6;
  border-top: 1px solid var(--border);
}
.update-note a { color: var(--red); text-decoration: underline; }

/* ===== FOOTER ===== */
.site-footer {
  background: var(--text);
  color: rgba(255,255,255,.65);
  padding: 1.5rem;
  text-align: center;
}
.footer-links {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  flex-wrap: wrap;
  margin-bottom: .75rem;
}
.footer-links a { font-size: .86rem; font-weight: 600; color: rgba(255,255,255,.6); transition: color .2s; }
.footer-links a:hover { color: var(--gold); }
.footer-copy { font-size: .78rem; }

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .nav-links { display: none; }
  .hamburger { display: flex; }

  .hero { padding: 2.5rem 1rem 2rem; }
  .hero-stats { grid-template-columns: repeat(2, 1fr); max-width: 340px; }
  .hero-image { height: 240px; }

  .container { padding: 0 1rem; }
  .section-header { margin: 2rem 0 1rem; }
  .section-header h2 { font-size: 1.5rem; }

  .filter-bar { flex-direction: column; align-items: flex-start; }
  .search-wrap { max-width: 100%; width: 100%; }

  .salon-grid { grid-template-columns: 1fr; }
  .savjeti-grid { grid-template-columns: 1fr 1fr; }

  #map { height: 300px; }

  .share-box { padding: 1.5rem 1rem; }
}

@media (max-width: 480px) {
  .hero h1 { font-size: 1.65rem; }
  .hero-stats { grid-template-columns: repeat(2, 1fr); gap: .6rem; }
  .stat-num { font-size: 1.4rem; }
  .stat-label { font-size: .65rem; }

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

  /* Responsive tabela */
  table thead { display: none; }
  table, tbody, tr, td { display: block; }
  tr {
    margin-bottom: 1rem;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    background: white;
  }
  td {
    display: flex;
    justify-content: space-between;
    gap: .5rem;
    padding: .6rem 1rem;
    border-bottom: 1px solid var(--border);
    font-size: .82rem;
  }
  td:last-child { border-bottom: none; }
  td::before {
    content: attr(data-label);
    font-weight: 700;
    color: var(--text-muted);
    white-space: nowrap;
    flex-shrink: 0;
  }
}
