/*
Theme Name:  gradnja.shop — Klasici
Theme URI:   https://gradnja.shop
Author:      gradnja.shop
Author URI:  https://gradnja.shop
Description: Craigslist-inspirirani oglasnik za građevinarstvo u Hrvatskoj. Tekst-prvi, brz, funkcionalan. IBM Plex Mono tipografija, tri-stupčani layout, dense listing rows.
Version:     2.0.0
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 7.4
License:     GPL-2.0-or-later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: gradnja-shop
Tags:        custom-menu, featured-images, translation-ready
*/

/* ─────────────────────────────────────────────
   CUSTOM PROPERTIES
───────────────────────────────────────────── */
:root {
  --bg:        #f7f4ee;
  --bg2:       #edeae3;
  --bg3:       #e4e0d8;
  --border:    #c8c3b8;
  --border2:   #dedad3;
  --text:      #1a1a18;
  --text2:     #444440;
  --text3:     #888880;
  --link:      #1a4a8c;
  --link-vis:  #6b2c8c;
  --link-hov:  #c43a00;
  --accent:    #c43a00;
  --green:     #1a7a1a;
  --mono:      'IBM Plex Mono', 'Courier New', monospace;
  --sans:      'IBM Plex Sans', sans-serif;
  --max-w:     1280px;
  --pad:       16px;
}

/* ─────────────────────────────────────────────
   RESET & BASE
───────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 13px; }
body {
  font-family: var(--sans);
  background: var(--bg);
  color: var(--text);
  line-height: 1.4;
  min-height: 100vh;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--link); text-decoration: none; }
a:hover { color: var(--link-hov); text-decoration: underline; }
a:visited { color: var(--link-vis); }
a:visited:hover { color: var(--link-hov); }
ul { list-style: none; }

h1, h2, h3, h4, h5 {
  font-family: var(--mono);
  font-weight: 600;
  line-height: 1.2;
  color: var(--text);
}

/* ─────────────────────────────────────────────
   LAYOUT HELPERS
───────────────────────────────────────────── */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
}

.page-wrap {
  display: grid;
  grid-template-columns: 200px 1fr 220px;
  max-width: var(--max-w);
  margin: 0 auto;
  border-left: 1px solid var(--border2);
  border-right: 1px solid var(--border2);
  min-height: calc(100vh - 200px);
}

/* ─────────────────────────────────────────────
   TOPBAR
───────────────────────────────────────────── */
.topbar {
  background: var(--text);
  color: #aaa;
  font-family: var(--mono);
  font-size: 11px;
  padding: 4px var(--pad);
  display: flex;
  justify-content: space-between;
  align-items: center;
  letter-spacing: 0.02em;
}
.topbar a { color: #bbb; text-decoration: none; }
.topbar a:hover { color: #fff; }
.topbar a:visited { color: #bbb; }
.topbar-left { display: flex; gap: 14px; flex-wrap: wrap; }
.topbar-right { display: flex; gap: 12px; flex-shrink: 0; }

/* ─────────────────────────────────────────────
   SITE HEADER
───────────────────────────────────────────── */
.site-header {
  border-bottom: 2px solid var(--text);
  padding: 10px var(--pad);
  display: flex;
  align-items: baseline;
  gap: 20px;
  background: var(--bg);
  position: sticky;
  top: 0;
  z-index: 200;
}

.site-logo {
  font-family: var(--mono);
  font-weight: 600;
  font-size: 22px;
  color: var(--text);
  letter-spacing: -0.03em;
  white-space: nowrap;
  line-height: 1;
  text-decoration: none;
}
.site-logo:hover { text-decoration: none; color: var(--text); }
.site-logo:visited { color: var(--text); }
.site-logo .dot { color: var(--accent); }
.site-logo .sub {
  font-size: 10px;
  color: var(--text3);
  font-weight: 400;
  letter-spacing: 0.05em;
  margin-left: 4px;
  vertical-align: baseline;
}

/* Primary nav */
.primary-nav {
  display: flex;
  gap: 0;
  flex: 1;
  flex-wrap: wrap;
  border-left: 1px solid var(--border);
  padding-left: 20px;
  list-style: none;
}
.primary-nav li a {
  font-size: 12px;
  color: var(--text2);
  padding: 2px 10px 2px 0;
  border-right: 1px solid var(--border2);
  margin-right: 10px;
  white-space: nowrap;
  text-decoration: none;
}
.primary-nav li a:hover { color: var(--link-hov); text-decoration: none; }
.primary-nav li.current-menu-item a { color: var(--accent); font-weight: 600; }

/* Header search */
.header-search {
  display: flex;
  gap: 3px;
  align-items: center;
  flex-shrink: 0;
}
.header-search input[type="search"] {
  font-family: var(--mono);
  font-size: 12px;
  background: #fff;
  border: 1px solid var(--border);
  padding: 4px 8px;
  outline: none;
  width: 200px;
  color: var(--text);
}
.header-search input[type="search"]:focus { border-color: var(--link); }
.header-search button {
  font-family: var(--mono);
  font-size: 11px;
  background: var(--text);
  color: #fff;
  border: none;
  padding: 4px 12px;
  cursor: pointer;
  letter-spacing: 0.04em;
  white-space: nowrap;
  height: 28px;
}
.header-search button:hover { background: var(--accent); }

/* Post button */
.btn-post {
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 600;
  background: var(--accent);
  color: #fff !important;
  padding: 5px 14px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  text-decoration: none !important;
  flex-shrink: 0;
  white-space: nowrap;
  line-height: 1.6;
}
.btn-post:hover { background: var(--text); }

/* Mobile menu toggle */
.menu-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text);
  padding: 3px 8px;
  cursor: pointer;
  font-family: var(--mono);
  font-size: 14px;
}

/* ─────────────────────────────────────────────
   TICKER
───────────────────────────────────────────── */
.price-ticker {
  background: var(--text);
  overflow: hidden;
  white-space: nowrap;
  padding: 4px 0;
  position: relative;
}
.price-ticker::before,
.price-ticker::after {
  content: '';
  position: absolute;
  top: 0; bottom: 0;
  width: 40px;
  z-index: 2;
  pointer-events: none;
}
.price-ticker::before { left: 0; background: linear-gradient(to right, var(--text), transparent); }
.price-ticker::after  { right: 0; background: linear-gradient(to left, var(--text), transparent); }

.ticker-inner {
  display: inline-flex;
  animation: gradnja-ticker 40s linear infinite;
}
.price-ticker:hover .ticker-inner { animation-play-state: paused; }

.ticker-item {
  font-family: var(--mono);
  font-size: 11px;
  color: #aaa;
  padding: 0 24px;
  display: inline-flex;
  gap: 6px;
  align-items: center;
}
.ticker-item .up   { color: #6dba6d; }
.ticker-item .down { color: #e07070; }
.ticker-item .flat { color: #888; }
.ticker-sep { color: #333; font-family: var(--mono); font-size: 11px; padding: 0 2px; }

@keyframes gradnja-ticker {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ─────────────────────────────────────────────
   STAT BAR
───────────────────────────────────────────── */
.stat-bar {
  background: var(--bg2);
  border-bottom: 1px solid var(--border);
  padding: 5px var(--pad);
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--text3);
}
.stat-item {
  padding: 0 20px 0 0;
  margin-right: 20px;
  border-right: 1px solid var(--border2);
  display: flex;
  gap: 5px;
  align-items: baseline;
}
.stat-item:last-child { border-right: none; margin-left: auto; }
.stat-num { font-size: 14px; font-weight: 600; color: var(--text); }

/* ─────────────────────────────────────────────
   LOCATION BAR
───────────────────────────────────────────── */
.location-bar {
  background: var(--bg2);
  border-bottom: 1px solid var(--border);
  padding: 5px var(--pad);
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--text3);
}
.location-bar a { color: var(--link); font-size: 11px; }
.location-bar a:hover { color: var(--link-hov); }
.loc-sep { color: var(--border); }

/* ─────────────────────────────────────────────
   BREADCRUMBS
───────────────────────────────────────────── */
.breadcrumbs {
  padding: 6px var(--pad);
  font-family: var(--mono);
  font-size: 11px;
  color: var(--text3);
  display: flex;
  gap: 6px;
  align-items: center;
  border-bottom: 1px solid var(--border2);
  background: var(--bg);
  flex-wrap: wrap;
}
.breadcrumbs a { color: var(--link); }
.breadcrumbs .sep { color: var(--border); }
.breadcrumbs .current { color: var(--text2); }

/* ─────────────────────────────────────────────
   LEFT SIDEBAR
───────────────────────────────────────────── */
.sidebar-left {
  border-right: 1px solid var(--border);
  padding: 14px 12px;
  align-self: start;
  position: sticky;
  top: 56px;
  max-height: calc(100vh - 60px);
  overflow-y: auto;
}

.sidebar-section { margin-bottom: 18px; }

.sidebar-title {
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text3);
  border-bottom: 1px solid var(--border2);
  padding-bottom: 5px;
  margin-bottom: 8px;
}

.sidebar-links { list-style: none; }
.sidebar-links li { margin-bottom: 3px; }
.sidebar-links li a {
  color: var(--link);
  font-size: 12px;
  display: flex;
  justify-content: space-between;
  gap: 4px;
  padding: 1px 0;
}
.sidebar-links li a:hover { color: var(--link-hov); text-decoration: underline; }
.sidebar-links li a:visited { color: var(--link-vis); }
.sidebar-links li.active > a { color: var(--accent); font-weight: 600; }
.sidebar-links .cnt {
  color: var(--text3);
  font-family: var(--mono);
  font-size: 11px;
  flex-shrink: 0;
}

/* Filter form */
.filter-form { display: flex; flex-direction: column; gap: 7px; }
.filter-label {
  font-family: var(--mono);
  font-size: 10px;
  color: var(--text3);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  display: block;
  margin-bottom: 3px;
}
.filter-control {
  width: 100%;
  font-family: var(--mono);
  font-size: 12px;
  background: #fff;
  border: 1px solid var(--border);
  padding: 4px 6px;
  color: var(--text);
  outline: none;
  appearance: none;
  -webkit-appearance: none;
}
.filter-control:focus { border-color: var(--link); }
.filter-btn {
  font-family: var(--mono);
  font-size: 11px;
  background: var(--link);
  color: #fff;
  border: none;
  padding: 6px 8px;
  cursor: pointer;
  text-align: left;
  letter-spacing: 0.03em;
  width: 100%;
}
.filter-btn:hover { background: var(--accent); }

/* ─────────────────────────────────────────────
   MAIN CONTENT
───────────────────────────────────────────── */
.main-content { min-width: 0; }

/* ─────────────────────────────────────────────
   CATEGORY GRID (homepage)
───────────────────────────────────────────── */
.cat-grid-wrap {
  padding: 14px var(--pad);
  border-bottom: 1px solid var(--border);
}
.cat-grid-label {
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text3);
  margin-bottom: 12px;
}
.cat-columns {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0 24px;
}
.cat-col-head {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 600;
  color: var(--text);
  border-bottom: 1px solid var(--border2);
  padding-bottom: 4px;
  margin-bottom: 6px;
  display: flex;
  align-items: baseline;
  gap: 5px;
}
.cat-col-head a { color: var(--text); text-decoration: none; }
.cat-col-head a:hover { color: var(--link-hov); text-decoration: underline; }
.cat-col ul { list-style: none; }
.cat-col ul li { margin-bottom: 2px; }
.cat-col ul li a {
  font-size: 12px;
  color: var(--link);
  display: flex;
  justify-content: space-between;
  padding: 1px 0;
}
.cat-col ul li a:hover { color: var(--link-hov); text-decoration: underline; }
.cat-col ul li a .n {
  color: var(--text3);
  font-family: var(--mono);
  font-size: 11px;
  flex-shrink: 0;
}

/* ─────────────────────────────────────────────
   LISTING ROWS
───────────────────────────────────────────── */
.listing-section { border-bottom: 1px solid var(--border); }

.listing-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 7px var(--pad);
  border-bottom: 1px solid var(--border);
  background: var(--bg2);
}
.listing-header h2 {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text2);
}
.listing-header a { font-family: var(--mono); font-size: 11px; color: var(--link); }

.sort-bar {
  display: flex;
  align-items: center;
  gap: 2px;
  padding: 4px var(--pad);
  border-bottom: 1px solid var(--border2);
  background: var(--bg);
  font-family: var(--mono);
  font-size: 11px;
  color: var(--text3);
  flex-wrap: wrap;
}
.sort-bar > span { margin-right: 4px; }
.sort-bar a {
  color: var(--text2);
  padding: 2px 8px;
  border: 1px solid transparent;
  text-decoration: none;
}
.sort-bar a.active {
  border-color: var(--border);
  background: var(--bg2);
  color: var(--text);
}
.sort-bar a:hover { color: var(--link-hov); text-decoration: none; }

.listing-row {
  display: flex;
  align-items: baseline;
  padding: 5px var(--pad);
  border-bottom: 1px solid var(--border2);
  line-height: 1.35;
  transition: background 0.08s;
  gap: 0;
}
.listing-row:hover { background: #fff; }
.listing-row.featured { background: #fffef0; }
.listing-row.featured .row-title { font-weight: 600; }

.row-date {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--text3);
  min-width: 88px;
  flex-shrink: 0;
  white-space: nowrap;
}
.row-badges {
  min-width: 54px;
  flex-shrink: 0;
  display: flex;
  gap: 2px;
  align-items: center;
}
.badge {
  font-family: var(--mono);
  font-size: 9px;
  padding: 1px 4px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  line-height: 1.4;
  border: 1px solid;
  white-space: nowrap;
}
.badge-top   { color: #8a6000; border-color: #c89000; background: #fffbe6; }
.badge-novo  { color: #1a7a1a; border-color: #2a9a2a; background: #f0fff0; }
.badge-hitno { color: #c43a00; border-color: #c43a00; background: #fff4f0; }
.badge-prem  { color: #3a3aaa; border-color: #5a5acc; background: #f0f0ff; }

.row-title {
  flex: 1;
  font-size: 13px;
  color: var(--link);
  padding: 0 10px;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.listing-row:hover .row-title { text-decoration: underline; }

.row-price {
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 600;
  color: var(--text);
  min-width: 92px;
  text-align: right;
  flex-shrink: 0;
  white-space: nowrap;
}
.row-price.inquiry { color: var(--text3); font-weight: 400; }

.row-loc {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--text3);
  min-width: 80px;
  text-align: right;
  flex-shrink: 0;
  padding-left: 8px;
  white-space: nowrap;
}
.row-cat {
  font-family: var(--mono);
  font-size: 10px;
  color: var(--text3);
  min-width: 150px;
  text-align: right;
  flex-shrink: 0;
  padding-left: 8px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.listing-more {
  text-align: center;
  padding: 8px;
  border-top: 1px solid var(--border2);
}
.listing-more a { font-family: var(--mono); font-size: 12px; color: var(--link); }

/* ─────────────────────────────────────────────
   ARCHIVE PAGE (list view)
───────────────────────────────────────────── */
.archive-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 6px var(--pad);
  border-bottom: 1px solid var(--border2);
  background: var(--bg2);
  font-family: var(--mono);
  font-size: 11px;
}
.archive-count { color: var(--text2); }
.sort-select {
  font-family: var(--mono);
  font-size: 11px;
  background: var(--bg);
  border: 1px solid var(--border);
  padding: 3px 8px;
  color: var(--text);
  cursor: pointer;
  outline: none;
}

/* ─────────────────────────────────────────────
   NEWS STRIP
───────────────────────────────────────────── */
.news-strip { border-bottom: 1px solid var(--border); }
.news-strip-head {
  background: var(--bg2);
  border-bottom: 1px solid var(--border2);
  padding: 5px var(--pad);
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.news-strip-head h3 {
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text2);
}
.news-strip-head a { font-family: var(--mono); font-size: 11px; color: var(--link); }

.news-row {
  display: flex;
  align-items: baseline;
  padding: 4px var(--pad);
  border-bottom: 1px solid var(--border2);
  gap: 10px;
  font-size: 12px;
  transition: background 0.08s;
}
.news-row:hover { background: #fff; }
.news-date {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--text3);
  min-width: 90px;
  flex-shrink: 0;
  white-space: nowrap;
}
.news-tag {
  font-family: var(--mono);
  font-size: 10px;
  background: var(--bg2);
  border: 1px solid var(--border2);
  padding: 1px 5px;
  color: var(--text3);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  white-space: nowrap;
  flex-shrink: 0;
}
.news-link { color: var(--link); }
.news-link:hover { color: var(--link-hov); text-decoration: underline; }

/* ─────────────────────────────────────────────
   SINGLE OGLAS
───────────────────────────────────────────── */
.single-oglas-wrap {
  display: grid;
  grid-template-columns: 1fr 260px;
}

.single-main { padding: var(--pad); border-right: 1px solid var(--border); }

.single-title {
  font-family: var(--mono);
  font-size: 18px;
  font-weight: 600;
  line-height: 1.25;
  margin-bottom: 10px;
}
.single-meta {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--text3);
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  padding: 6px 0;
  border-top: 1px solid var(--border2);
  border-bottom: 1px solid var(--border2);
  margin-bottom: 14px;
}
.single-meta b { color: var(--text2); font-weight: 500; }
.single-price {
  font-family: var(--mono);
  font-size: 26px;
  font-weight: 600;
  margin-bottom: 16px;
}
.single-price small { font-size: 13px; font-weight: 400; color: var(--text3); }
.single-price.inquiry { font-size: 16px; color: var(--text3); font-weight: 400; }

.single-attrs {
  border: 1px solid var(--border2);
  margin-bottom: 16px;
}
.attr-row {
  display: flex;
  border-bottom: 1px solid var(--border2);
}
.attr-row:last-child { border-bottom: none; }
.attr-key {
  font-family: var(--mono);
  background: var(--bg2);
  padding: 5px 10px;
  min-width: 120px;
  font-size: 10px;
  color: var(--text3);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  border-right: 1px solid var(--border2);
  flex-shrink: 0;
}
.attr-val { padding: 5px 10px; font-size: 12px; color: var(--text); }

.single-desc {
  font-size: 13px;
  line-height: 1.7;
  color: var(--text);
  white-space: pre-line;
  border-top: 1px solid var(--border2);
  padding-top: 14px;
}

/* Single sidebar */
.single-sidebar { padding: var(--pad); }
.contact-box { border: 1px solid var(--border); margin-bottom: 12px; }
.contact-box-head {
  background: var(--text);
  color: #fff;
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 6px 10px;
}
.contact-box-body { padding: 10px; }
.contact-tel {
  font-family: var(--mono);
  font-size: 16px;
  font-weight: 600;
  color: var(--text);
  display: block;
  margin-bottom: 8px;
  text-decoration: none;
}
.contact-tel:hover { color: var(--link-hov); text-decoration: underline; }

.btn-contact {
  display: block;
  font-family: var(--mono);
  font-size: 11px;
  text-align: center;
  padding: 7px 10px;
  margin-bottom: 4px;
  cursor: pointer;
  border: 1px solid;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  text-decoration: none;
  transition: all 0.1s;
}
.btn-contact-primary {
  background: var(--link);
  color: #fff !important;
  border-color: var(--link);
}
.btn-contact-primary:hover { background: var(--accent); border-color: var(--accent); text-decoration: none; }
.btn-contact-ghost {
  background: transparent;
  color: var(--text2) !important;
  border-color: var(--border);
}
.btn-contact-ghost:hover { border-color: var(--text2); text-decoration: none; }

/* Contact form */
.contact-form { margin-top: 10px; }
.cf-group { margin-bottom: 8px; }
.cf-label {
  display: block;
  font-family: var(--mono);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text3);
  margin-bottom: 3px;
}
.cf-control {
  width: 100%;
  font-family: var(--mono);
  font-size: 12px;
  background: #fff;
  border: 1px solid var(--border);
  padding: 5px 7px;
  color: var(--text);
  outline: none;
}
.cf-control:focus { border-color: var(--link); }
textarea.cf-control { resize: vertical; min-height: 80px; }

/* ─────────────────────────────────────────────
   RIGHT SIDEBAR
───────────────────────────────────────────── */
.sidebar-right {
  border-left: 1px solid var(--border);
  padding: 14px 12px;
  align-self: start;
  position: sticky;
  top: 56px;
}

/* Price table */
.price-table {
  width: 100%;
  font-family: var(--mono);
  font-size: 11px;
  border-collapse: collapse;
}
.price-table td { padding: 3px 0; border-bottom: 1px solid var(--border2); }
.price-table tr:last-child td { border-bottom: none; }
.price-table .p-name { color: var(--text2); }
.price-table .p-val  { text-align: right; white-space: nowrap; }
.p-up   { color: var(--green); }
.p-down { color: var(--accent); }
.p-flat { color: var(--text3); }

/* ─────────────────────────────────────────────
   COUNTY / CITY TREE
───────────────────────────────────────────── */
.zup-item { margin-bottom: 1px; }

.zup-row {
  display: flex !important;
  align-items: baseline;
  gap: 0;
  padding: 2px 0 !important;
  color: var(--link) !important;
  font-size: 12px;
}
.zup-row:hover { color: var(--link-hov) !important; }

.zup-toggle {
  font-size: 9px;
  color: var(--text3);
  cursor: pointer;
  margin-right: 4px;
  flex-shrink: 0;
  transition: transform 0.15s;
  display: inline-block;
  width: 10px;
  user-select: none;
}
.zup-toggle.open { transform: rotate(90deg); }

.zup-name { flex: 1; }

.zup-item.active > .zup-row { color: var(--accent) !important; font-weight: 600; }
.zup-item.active > .zup-row .zup-toggle { color: var(--accent); }

.city-list {
  display: none;
  list-style: none;
  padding-left: 14px;
  margin-bottom: 4px;
  border-left: 1px solid var(--border2);
  margin-left: 10px;
}
.city-list.open { display: block; }

.city-list li { margin-bottom: 1px; }
.city-list li a {
  font-size: 11px;
  color: var(--text2);
  display: flex;
  justify-content: space-between;
  padding: 2px 0;
}
.city-list li a:hover { color: var(--link-hov); text-decoration: underline; }
.city-list li.active a { color: var(--accent); font-weight: 600; }
.city-list .cnt { font-size: 10px; color: var(--text3); font-family: var(--mono); }

/* Location breadcrumb in listing row */
.row-loc-full {
  font-family: var(--mono);
  font-size: 10px;
  color: var(--text3);
  min-width: 130px;
  text-align: right;
  flex-shrink: 0;
  padding-left: 8px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.row-loc-full .city  { color: var(--text2); }
.row-loc-full .sep   { color: var(--border); margin: 0 2px; }

/* Active filter badge in toolbar */
.active-filter-tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-family: var(--mono);
  font-size: 10px;
  background: var(--bg2);
  border: 1px solid var(--border);
  padding: 2px 6px;
  color: var(--text2);
  margin-left: 8px;
}
.active-filter-tag a {
  color: var(--accent);
  font-size: 11px;
  text-decoration: none;
  font-weight: 700;
}
.active-filter-tag a:hover { text-decoration: none; color: var(--text); }
.pagination {
  display: flex;
  justify-content: center;
  gap: 2px;
  padding: 16px var(--pad);
  border-top: 1px solid var(--border2);
  font-family: var(--mono);
  font-size: 12px;
}
.pagination a,
.pagination span.current {
  padding: 3px 9px;
  border: 1px solid var(--border);
  color: var(--link);
  text-decoration: none;
}
.pagination a:hover { border-color: var(--link-hov); color: var(--link-hov); }
.pagination span.current { background: var(--text); color: #fff; border-color: var(--text); }
.pagination .page-numbers.dots { border: none; color: var(--text3); }

/* ─────────────────────────────────────────────
   WIDGETS
───────────────────────────────────────────── */
.widget { margin-bottom: 18px; }
.widget-title {
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text3);
  border-bottom: 1px solid var(--border2);
  padding-bottom: 5px;
  margin-bottom: 8px;
}

/* ─────────────────────────────────────────────
   FOOTER
───────────────────────────────────────────── */
.site-footer { border-top: 2px solid var(--text); margin-top: 20px; }

.footer-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  border-bottom: 1px solid var(--border);
}
.footer-col {
  padding: 12px 14px;
  border-right: 1px solid var(--border2);
}
.footer-col:last-child { border-right: none; }
.footer-col-title {
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text);
  margin-bottom: 8px;
}
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 4px; }
.footer-col ul li a { font-size: 12px; color: var(--link); }
.footer-col ul li a:hover { color: var(--link-hov); text-decoration: underline; }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 7px var(--pad);
  font-family: var(--mono);
  font-size: 10px;
  color: var(--text3);
  background: var(--bg2);
  flex-wrap: wrap;
  gap: 8px;
}
.footer-bottom a { color: var(--text3); }
.footer-bottom a:hover { color: var(--link-hov); text-decoration: underline; }

/* ─────────────────────────────────────────────
   UTILITIES
───────────────────────────────────────────── */
.section-header-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 7px var(--pad);
  border-bottom: 1px solid var(--border);
  background: var(--bg2);
}
.section-header-bar h2 {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text2);
}
.section-header-bar a { font-family: var(--mono); font-size: 11px; color: var(--link); }

/* ─────────────────────────────────────────────
   RESPONSIVE
───────────────────────────────────────────── */
@media (max-width: 1060px) {
  .page-wrap { grid-template-columns: 180px 1fr; }
  .sidebar-right { display: none; }
  .cat-columns { grid-template-columns: repeat(3, 1fr); }
  .row-cat { display: none; }
}

@media (max-width: 768px) {
  html { font-size: 12px; }
  .page-wrap { grid-template-columns: 1fr; }
  .sidebar-left { display: none; }
  .sidebar-left.open { display: block; position: static; max-height: none; border-right: none; border-bottom: 1px solid var(--border); }
  .primary-nav { display: none; }
  .primary-nav.open { display: flex; flex-direction: column; position: absolute; top: 52px; left: 0; right: 0; background: var(--bg); border-bottom: 1px solid var(--border); padding: 8px 16px; z-index: 300; }
  .menu-toggle { display: block; }
  .cat-columns { grid-template-columns: repeat(2, 1fr); }
  .row-loc { display: none; }
  .row-price { min-width: 70px; }
  .single-oglas-wrap { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
  .header-search { display: none; }
}

@media (max-width: 480px) {
  .cat-columns { grid-template-columns: 1fr 1fr; }
  .site-logo .sub { display: none; }
  .stat-bar { display: none; }
  .footer-grid { grid-template-columns: 1fr; }
}
