/* ═══════════════════════════════════════════════════════════════
   KLOPIO APP — feed, mapa, favoriti (v2 dizajn)
   Tokeni i osnovne komponente su u /assets/klopio.css
   ═══════════════════════════════════════════════════════════════ */

.app-body {
  background: radial-gradient(1000px 520px at 50% -140px, rgba(30, 70, 57, .45), transparent 70%), var(--bg);
  background-attachment: fixed;
  min-height: 100dvh;
  padding-bottom: calc(76px + env(safe-area-inset-bottom));
}
[data-theme="light"] .app-body { background: radial-gradient(1000px 520px at 50% -140px, rgba(240, 204, 85, .2), transparent 70%), var(--bg); }

.shell { max-width: 560px; margin: 0 auto; }
.app-col { min-width: 0; }

/* ── HEADER ── */
.app-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: calc(14px + env(safe-area-inset-top)) 16px 14px; }
.app-head .logo { font-size: 28px; }
.head-actions { display: flex; align-items: center; gap: 7px; }
.pill, .round {
  height: 40px; display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  border: 1px solid var(--line-2); background: color-mix(in srgb, var(--panel) 60%, transparent);
  border-radius: var(--r-pill); color: var(--text); cursor: pointer; transition: border-color .15s, color .15s, background .15s;
}
.pill { padding: 0 13px; font-size: 13px; font-weight: 600; }
.pill .ic { color: var(--muted); }
.pill-pro { border-color: var(--gold-line); color: var(--gold-text); }
.pill-pro .ic { color: var(--gold-text); }
.round { width: 40px; padding: 0; }
.round.gold { color: var(--gold-text); }
.pill:hover, .round:hover { border-color: var(--gold-line); }

/* ── LOKACIJA ── */
.location {
  display: flex; align-items: center; gap: 13px; width: calc(100% - 32px); margin: 0 16px 16px; padding: 12px 16px; min-height: 68px;
  border: 1px solid var(--line-2); border-radius: 16px; text-align: left; cursor: pointer;
  background: linear-gradient(110deg, color-mix(in srgb, #1b3a31 55%, var(--panel)), var(--panel));
}
[data-theme="light"] .location { background: var(--panel); }
.location:hover { border-color: var(--gold-line); }
.loc-pin { color: var(--gold-text); display: grid; }
.loc-text { flex: 1; min-width: 0; }
.loc-text small { display: block; font-size: 12px; color: var(--muted); margin-bottom: 2px; }
.loc-text strong { display: block; font-size: 16px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.loc-search { color: var(--muted); }

/* ── RADIJUS ── */
.filters { padding: 0 16px; }
.radius { display: flex; align-items: center; gap: 14px; margin-bottom: 14px; }
.radius label { font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.km { min-width: 50px; text-align: right; font-weight: 700; font-size: 14px; color: var(--gold-text); }
#radiusSlider { flex: 1; -webkit-appearance: none; appearance: none; height: 4px; border-radius: 4px; background: var(--line-2); outline: none; cursor: pointer; }
#radiusSlider::-webkit-slider-thumb { -webkit-appearance: none; width: 20px; height: 20px; border-radius: 50%; background: var(--bg); border: 3px solid var(--gold); box-shadow: 0 0 0 4px var(--gold-soft); }
#radiusSlider::-moz-range-thumb { width: 14px; height: 14px; border-radius: 50%; background: var(--bg); border: 3px solid var(--gold); }

/* ── CHIPS (native select stilizovan kao chip) ── */
.chips { display: flex; gap: 8px; overflow-x: auto; padding: 2px 0 6px; margin: 0 -16px; padding-inline: 16px; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chip {
  position: relative; flex: none; height: 44px; display: inline-flex; align-items: center; gap: 8px; padding: 0 14px;
  border: 1px solid var(--line-2); border-radius: 12px; background: var(--panel); color: var(--text);
  font-size: 13px; font-weight: 600; cursor: pointer; transition: border-color .15s, color .15s;
}
.chip .ic { width: 18px; height: 18px; color: var(--muted); }
.chip select {
  -webkit-appearance: none; appearance: none; border: 0; background: transparent; color: inherit;
  font: inherit; cursor: pointer; padding: 0 16px 0 0; outline: none;
  background-image: linear-gradient(45deg, transparent 50%, currentColor 50%), linear-gradient(135deg, currentColor 50%, transparent 50%);
  background-position: right 4px center, right 0 center; background-size: 4px 4px; background-repeat: no-repeat;
}
.chip select option { background: var(--panel); color: var(--text); }
.chip.active { border-color: var(--gold-line); color: var(--gold-text); background: var(--gold-soft); }
.chip.active .ic { color: var(--gold-text); }
.chip-osm .osm-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--muted-2); }
.chip-osm[aria-pressed="true"] { border-color: var(--osm-line); color: var(--osm); background: var(--osm-bg); }
.chip-osm[aria-pressed="true"] .osm-dot { background: var(--osm); box-shadow: 0 0 0 3px var(--osm-bg); }
.chip-reset { color: var(--muted); }

/* ── TABOVI ── */
.tabs { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: 8px; border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 30; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
.tab { position: relative; height: 54px; display: flex; align-items: center; justify-content: center; gap: 8px; border: 0; background: none; color: var(--muted); font-size: 14px; font-weight: 600; cursor: pointer; }
.tab .ic { width: 19px; height: 19px; }
.tab.tab-fav .ic { color: var(--red); }
.tab.active { color: var(--gold-text); }
.tab.active::after { content: ''; position: absolute; left: 18%; right: 18%; bottom: -1px; height: 2px; border-radius: 2px; background: var(--gold); }
.badge-count { min-width: 19px; height: 19px; padding: 0 5px; border-radius: 10px; background: var(--red); color: #fff; font-size: 11px; font-weight: 700; display: inline-grid; place-items: center; }

/* ── PROMO ── */
.promos { display: grid; gap: 10px; padding: 14px 16px 0; }
.promos:empty, .promos:not(:has(.promo:not([hidden]))) { display: none; }
.promo {
  position: relative; display: flex; align-items: center; gap: 12px; min-height: 76px; padding: 10px 40px 10px 12px;
  border: 1px solid var(--gold-line); border-radius: 16px; overflow: hidden;
  background: linear-gradient(110deg, color-mix(in srgb, #5a3e10 35%, var(--panel)), var(--panel));
}
[data-theme="light"] .promo { background: linear-gradient(110deg, rgba(240, 204, 85, .18), var(--panel)); }
.promo-plan { border-color: var(--line-2); background: var(--panel); }
.promo-img { width: 68px; height: 58px; object-fit: cover; object-position: left; border-radius: 10px; flex: none; }
.promo-icon { width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; flex: none; background: var(--panel-3); color: var(--blue); }
.promo-text { flex: 1; min-width: 0; }
.promo-text strong { display: block; font-size: 14px; margin-bottom: 3px; }
.promo-install .promo-text strong { color: var(--gold-text); }
.promo-text span { display: block; font-size: 12px; color: var(--muted); line-height: 1.35; }
.promo .btn-sm { flex: none; }
.promo-close { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); width: 30px; height: 30px; border: 0; background: none; color: var(--muted-2); cursor: pointer; display: grid; place-items: center; border-radius: 8px; }
.promo-close:hover { color: var(--text); background: var(--panel-3); }

/* ── BROJ REZULTATA ── */
.count { display: flex; align-items: center; justify-content: center; gap: 12px; padding: 20px 16px 12px; font-size: 14px; font-weight: 700; color: var(--text); }
.count::before, .count::after { content: ''; width: 36px; height: 1px; background: var(--line-2); }
.count:empty, .count:has(#resultCount:empty) { visibility: hidden; }

/* ── KARTICE ── */
.feed { padding: 0 12px; }
.card {
  position: relative; display: grid; grid-template-columns: minmax(118px, 40%) 1fr; gap: 12px;
  padding: 9px; margin-bottom: 10px; border: 1px solid var(--line); border-radius: 18px; cursor: pointer;
  background: linear-gradient(135deg, var(--panel), var(--bg-2)); box-shadow: 0 8px 22px rgba(0, 0, 0, .14);
  transition: border-color .15s, transform .15s var(--ease);
  animation: cardIn .35s var(--ease) both;
}
.card:hover { border-color: var(--line-2); }
.card:active { transform: scale(.995); }
@keyframes cardIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

.card-media { position: relative; height: 150px; border-radius: 13px; overflow: hidden; background: var(--panel-3); }
.card-media img { width: 100%; height: 100%; object-fit: cover; }
.thumb-ph {
  width: 100%; height: 100%; display: grid; place-items: center; align-content: center; gap: 6px; text-align: center;
  color: var(--muted); font-size: 11px; font-weight: 600;
  background:
    radial-gradient(120px 90px at 30% 20%, rgba(240, 204, 85, .14), transparent 70%),
    radial-gradient(140px 120px at 80% 100%, rgba(31, 90, 70, .45), transparent 70%),
    var(--panel-3);
}
.thumb-ph .ph-emoji { font-size: 38px; line-height: 1; filter: saturate(.9); }
.rank { position: absolute; left: 8px; top: 8px; min-width: 32px; height: 26px; padding: 0 7px; display: grid; place-items: center; border-radius: 8px; font-size: 12px; font-weight: 800; background: #3d4543; color: #e3e8e5; box-shadow: 0 4px 10px rgba(0, 0, 0, .25); }
.rank.r1 { background: var(--gold); color: var(--gold-ink); }
.rank.r2 { background: #b5bec4; color: #17201f; }
.rank.r3 { background: #c98450; color: #1c120a; }

.card-body { min-width: 0; padding: 4px 2px 2px 0; display: flex; flex-direction: column; }
.card-title { font-size: 17px; font-weight: 800; letter-spacing: -.02em; line-height: 1.2; margin: 0 44px 6px 0; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card-addr { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--muted); margin-bottom: 8px; min-width: 0; }
.card-addr .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--blue); flex: none; }
.card-addr span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.card-rating { display: flex; align-items: center; gap: 5px; font-size: 13px; font-weight: 700; margin-bottom: 8px; }
.card-rating .ic { width: 15px; height: 15px; color: var(--gold); fill: var(--gold); }
.card-rating .rv { color: var(--muted-2); font-weight: 500; }
.card-rating.none { color: var(--muted-2); font-weight: 500; font-size: 12px; }
.tags { display: flex; flex-wrap: wrap; gap: 5px; }
.tag { display: inline-flex; align-items: center; gap: 4px; height: 23px; padding: 0 8px; border-radius: var(--r-pill); border: 1px solid var(--line-2); color: var(--muted); font-size: 11px; font-weight: 600; white-space: nowrap; }
.tag .ic { width: 12px; height: 12px; }
.tag-dist { color: #ff9a4a; border-color: rgba(255, 138, 50, .38); background: rgba(255, 138, 50, .07); }
[data-theme="light"] .tag-dist { color: #b35a0c; }
.tag-open { color: var(--green); border-color: var(--green-line); background: var(--green-bg); }
.tag-closed { color: var(--red); border-color: rgba(239, 77, 109, .35); background: var(--red-bg); }
.tag-osm { color: var(--osm); border-color: var(--osm-line); background: var(--osm-bg); }
.tag-price { color: var(--gold-text); border-color: var(--gold-line); }
.card-desc { margin-top: auto; padding-top: 8px; font-size: 12px; color: var(--muted-2); line-height: 1.35; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.fav-btn { position: absolute; right: 9px; top: 9px; width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--line-2); background: var(--panel-2); color: var(--muted); display: grid; place-items: center; cursor: pointer; z-index: 2; transition: transform .15s, color .15s, border-color .15s; }
.fav-btn .ic { width: 18px; height: 18px; }
.fav-btn.active { color: var(--red); border-color: rgba(239, 77, 109, .45); }
.fav-btn.active .ic { fill: var(--red); }
.fav-btn.pop { animation: pop .3s var(--ease); }
@keyframes pop { 50% { transform: scale(1.25); } }

/* Reklama (samo Free) */
.house-ad { display: flex; align-items: center; gap: 12px; padding: 12px 14px; margin-bottom: 10px; border: 1px dashed var(--line-2); border-radius: 16px; background: var(--panel); position: relative; }
.ad-logo { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; font-size: 19px; font-weight: 800; letter-spacing: -.02em; flex: none; border: 1px solid; }
.ad-body { flex: 1; min-width: 0; }
.ad-name { font-weight: 700; font-size: 14px; }
.ad-tagline { font-size: 12px; color: var(--muted); }
.ad-cta { font-size: 12px; font-weight: 700; white-space: nowrap; }
.ad-label { position: absolute; right: 10px; top: 6px; font-size: 9px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted-2); }

/* Stanja (učitavanje, prazno, greška) */
.state { text-align: center; padding: 56px 20px; color: var(--muted); }
.state-ic { width: 64px; height: 64px; margin: 0 auto 16px; border-radius: 18px; display: grid; place-items: center; background: var(--panel); border: 1px solid var(--line-2); color: var(--gold-text); }
.state-ic .ic { width: 28px; height: 28px; }
.state h2 { color: var(--text); font-size: 18px; margin: 0 0 6px; }
.state p { margin: 0 auto; max-width: 300px; font-size: 14px; }
.state .btn { margin-top: 18px; }
.skel { height: 170px; border-radius: 18px; margin-bottom: 10px; border: 1px solid var(--line); background: linear-gradient(100deg, var(--panel) 30%, var(--panel-3) 50%, var(--panel) 70%); background-size: 300% 100%; animation: sk 1.3s infinite linear; }
@keyframes sk { from { background-position: 100% 0; } to { background-position: -100% 0; } }

.app-foot { display: flex; justify-content: center; gap: 8px; padding: 26px 16px 10px; font-size: 12px; color: var(--muted-2); }
.app-foot a:hover { color: var(--text); }

/* ── MAPA ── */
.map-col { display: none; padding: 12px 12px 0; }
body.map-mode .map-col { display: block; }
body.map-mode .feed, body.map-mode .count, body.map-mode .promos, body.map-mode .app-foot { display: none; }
#map { height: calc(100dvh - 330px - env(safe-area-inset-bottom)); min-height: 340px; border-radius: 18px; border: 1px solid var(--line-2); overflow: hidden; background: var(--panel-3); z-index: 1; }
.leaflet-container { font-family: var(--font); background: var(--panel-3); }
.leaflet-div-icon { background: none; border: 0; }
.pin { width: 34px; height: 34px; display: flex; align-items: center; justify-content: center; background: var(--gold); color: var(--gold-ink); border: 2px solid #fff; border-radius: 50% 50% 50% 0; transform: rotate(-45deg); box-shadow: 0 4px 12px rgba(0, 0, 0, .35); }
.pin span { transform: rotate(45deg); font: 800 11px/1 var(--font); }
.pin-osm { background: #2e8fd4; color: #fff; }
.pin.hl { background: #fff; color: #111; }
.leaflet-popup-content-wrapper { border-radius: 14px; background: var(--panel); color: var(--text); border: 1px solid var(--line-2); box-shadow: var(--shadow-lg); }
.leaflet-popup-tip { background: var(--panel); }
.leaflet-container a.leaflet-popup-close-button { color: var(--muted); }
.map-pop { display: flex; flex-direction: column; gap: 4px; min-width: 170px; }
.map-pop strong { font-size: 14px; }
.map-pop span { font-size: 12px; color: var(--muted); }
.map-pop button { margin-top: 8px; align-self: flex-start; }
.leaflet-bar a { background: var(--panel); color: var(--text); border-color: var(--line-2); }
.leaflet-bar a:hover { background: var(--panel-3); }
.leaflet-control-attribution { background: color-mix(in srgb, var(--panel) 80%, transparent) !important; color: var(--muted) !important; }
.leaflet-control-attribution a { color: var(--muted) !important; }
[data-theme="dark"] .leaflet-tile-pane, :root:not([data-theme="light"]) .leaflet-tile-pane { filter: invert(1) hue-rotate(180deg) brightness(.82) contrast(.92) saturate(.5); }

/* ── DONJA NAVIGACIJA ── */
.bottom-nav {
  position: fixed; left: 50%; bottom: 0; transform: translateX(-50%); z-index: 60; width: min(560px, 100%);
  display: grid; grid-template-columns: repeat(4, 1fr); height: calc(72px + env(safe-area-inset-bottom)); padding-bottom: env(safe-area-inset-bottom);
  background: color-mix(in srgb, var(--bg) 94%, transparent); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); border-top: 1px solid var(--line);
}
.bottom-nav > * { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 5px; border: 0; background: none; color: var(--muted); font-size: 11px; font-weight: 600; cursor: pointer; }
.bottom-nav .ic { width: 23px; height: 23px; }
.bottom-nav .active { color: var(--gold-text); }

/* ── SHEET (detalji, lokacija, iOS) ── */
.overlay { position: fixed; inset: 0; z-index: 80; background: rgba(0, 0, 0, .6); opacity: 0; pointer-events: none; transition: opacity .25s; backdrop-filter: blur(2px); }
.overlay.show { opacity: 1; pointer-events: auto; }
.sheet {
  position: fixed; left: 50%; bottom: 0; z-index: 90; width: min(560px, 100%); max-height: 88dvh; overflow-y: auto; overscroll-behavior: contain;
  transform: translate(-50%, 105%); transition: transform .32s var(--ease);
  background: var(--panel); border: 1px solid var(--line-2); border-bottom: 0; border-radius: 24px 24px 0 0;
  padding: 10px 18px calc(22px + env(safe-area-inset-bottom)); box-shadow: 0 -20px 60px rgba(0, 0, 0, .4);
}
.sheet.open { transform: translate(-50%, 0); }
.sheet-handle { width: 42px; height: 5px; border-radius: 5px; background: var(--line-2); margin: 0 auto 14px; }
.sheet-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.sheet-head h2 { font-size: 19px; margin: 0; letter-spacing: -.02em; }

.d-photo { width: 100%; height: 210px; object-fit: cover; border-radius: 16px; margin-bottom: 16px; }
.d-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.d-name { font-size: 23px; font-weight: 800; letter-spacing: -.03em; line-height: 1.15; margin: 0 0 6px; }
.d-addr { color: var(--muted); font-size: 14px; display: flex; gap: 6px; align-items: flex-start; margin-bottom: 14px; }
.d-addr .ic { width: 16px; height: 16px; margin-top: 2px; color: var(--blue); }
.d-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(90px, 1fr)); gap: 8px; margin: 14px 0; }
.d-stat { padding: 12px; border-radius: 14px; background: var(--panel-2); border: 1px solid var(--line); }
.d-stat b { display: block; font-size: 17px; letter-spacing: -.02em; }
.d-stat small { color: var(--muted); font-size: 11px; }
.d-info { display: grid; gap: 8px; margin: 4px 0 16px; font-size: 14px; }
.d-info a, .d-info div { display: flex; gap: 10px; align-items: center; color: var(--muted); min-width: 0; }
.d-info a { color: var(--gold-text); }
.d-info span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.d-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.d-actions .btn-gold { grid-column: 1 / -1; }
.d-fav.active { color: var(--red); border-color: rgba(239, 77, 109, .45); }
.d-fav.active .ic { fill: var(--red); }

.place-gps { width: 100%; display: flex; align-items: center; gap: 10px; padding: 14px; border-radius: 14px; border: 1px solid var(--gold-line); background: var(--gold-soft); color: var(--gold-text); font-weight: 700; cursor: pointer; margin-bottom: 12px; }
.place-search { position: relative; }
.place-search .ic { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--muted); }
.place-search .input { padding-left: 42px; }
.place-results { margin-top: 10px; min-height: 120px; }
.place-item { width: 100%; display: flex; align-items: center; gap: 12px; padding: 12px 6px; border: 0; border-bottom: 1px solid var(--line); background: none; text-align: left; cursor: pointer; border-radius: 0; }
.place-item:hover { background: var(--panel-2); }
.place-item .ic { color: var(--muted); }
.place-item b { display: block; font-size: 15px; }
.place-item small { color: var(--muted); font-size: 12px; }
.place-empty { color: var(--muted); font-size: 14px; padding: 14px 4px; }

.ios-body { display: flex; gap: 14px; align-items: center; margin-bottom: 16px; }
.ios-body img { border-radius: 14px; }
.ios-body strong { display: block; margin-bottom: 4px; }
.ios-body p { margin: 0; color: var(--muted); font-size: 14px; }
.ios-body .ic { vertical-align: -3px; color: var(--blue); }

/* ── TOAST ── */
.toast { position: fixed; left: 50%; bottom: calc(90px + env(safe-area-inset-bottom)); z-index: 100; transform: translate(-50%, 20px); opacity: 0; pointer-events: none; max-width: calc(100% - 32px); padding: 11px 16px; border-radius: 12px; background: var(--text); color: var(--bg); font-size: 14px; font-weight: 600; box-shadow: var(--shadow-lg); transition: opacity .2s, transform .25s var(--ease); }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ── ŠIROK EKRAN: lista levo, mapa desno ── */
@media (min-width: 1100px) {
  .app-body { padding-bottom: 0; }
  .shell { max-width: none; display: grid; grid-template-columns: 540px 1fr; gap: 0; min-height: 100dvh; }
  .app-col { border-right: 1px solid var(--line); padding-bottom: 20px; }
  .map-col { display: block !important; position: sticky; top: 0; height: 100dvh; padding: 14px; }
  #map { height: 100%; min-height: 0; }
  .tab-map, .bottom-nav { display: none !important; }
  .tabs { grid-template-columns: 1fr 1fr; }
  body.map-mode .feed, body.map-mode .count, body.map-mode .promos { display: revert; }
  .sheet { left: 270px; }
  .toast { left: 270px; bottom: 24px; }
}

@media (max-width: 380px) {
  .app-head .logo { font-size: 24px; }
  .pill { padding: 0 10px; }
  .round { width: 38px; }
  .head-actions { gap: 5px; }
  .card { grid-template-columns: 112px 1fr; }
  .card-media { height: 140px; }
  .card-title { font-size: 16px; }
  .promo { flex-wrap: wrap; }
}

/* v1.2 — otvorena aplikacija za goste */
.visually-hidden { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
@media (max-width: 360px) {
  body[data-plan="guest"] .app-head a.pill span { display: none; }
}

/* v1.3 — favoriti na nalogu */
.fav-nudge { margin: 0 0 14px; }
.d-note { display: grid; gap: 6px; margin: 0 0 16px; }
.d-note > span { display: flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted-2); }
.d-note > span .ic { color: var(--gold-text); }
.d-note textarea { width: 100%; resize: vertical; min-height: 64px; padding: 10px 12px; border-radius: 12px; border: 1px solid var(--line-2); background: var(--panel-2); color: var(--text); font: inherit; font-size: 14px; line-height: 1.45; }
.d-note textarea:focus { outline: none; border-color: var(--gold-line); }

/* v1.4 — Klopio ocene */
.card-kr { display: flex; align-items: center; gap: 5px; min-width: 0; margin: 2px 0 6px; font-size: 12px; white-space: nowrap; overflow: hidden; }
.card-kr .ic { width: 14px; height: 14px; color: var(--gold); fill: var(--gold); flex: none; }
.card-kr b { font-size: 13px; color: var(--gold-text); }
.card-kr .kr-n { color: var(--muted); font-weight: 600; flex: none; }
.card-kr .kr-q { color: var(--text); overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.d-actions [data-addlist] { grid-column: 1 / -1; }
.d-reviews { margin-top: 20px; padding-top: 18px; border-top: 1px solid var(--line); }
.d-reviews .skel-sm { height: 80px; }
.kr-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 10px; }
.kr-head h3 { margin: 0; font-size: 17px; letter-spacing: -.01em; }
.kr-avg { display: inline-flex; align-items: center; gap: 5px; font-weight: 800; color: var(--gold-text); }
.kr-avg .ic { color: var(--gold); fill: var(--gold); }
.kr-avg small { color: var(--muted); font-weight: 600; font-size: 12px; }
.kr-empty { color: var(--muted); font-size: 14px; margin: 0 0 12px; }
.kr-form { display: grid; gap: 10px; padding: 14px; border-radius: 14px; border: 1px solid var(--gold-line); background: var(--gold-soft); margin-bottom: 14px; }
.kr-form b { font-size: 14px; }
.kr-stars { display: flex; gap: 4px; }
.kr-stars button { width: 40px; height: 40px; border-radius: 10px; border: 1px solid var(--line-2); background: var(--panel); color: var(--muted-2); font-size: 22px; line-height: 1; cursor: pointer; }
.kr-stars button.on { color: var(--gold); border-color: var(--gold-line); }
.kr-form textarea { width: 100%; resize: vertical; padding: 10px 12px; border-radius: 12px; border: 1px solid var(--line-2); background: var(--panel); color: var(--text); font: inherit; font-size: 14px; line-height: 1.45; }
.kr-form textarea:focus { outline: none; border-color: var(--gold-line); }
.kr-actions { display: flex; align-items: center; gap: 14px; }
.kr-del { border: 0; background: none; color: var(--red); font-size: 13px; font-weight: 600; cursor: pointer; padding: 0; }
.kr-note { color: var(--muted-2); font-size: 11px; }
.kr-warn { margin: 0; font-size: 13px; color: var(--red); }
.kr-guest { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 14px; border: 1px dashed var(--gold-line); margin-bottom: 14px; }
.kr-guest p { margin: 0; flex: 1; font-size: 13px; color: var(--muted); }
.kr-guest .btn { flex: none; }
.kr-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.kr-item { padding: 12px 14px; border-radius: 12px; background: var(--panel-2); border: 1px solid var(--line); position: relative; }
.kr-top { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 10px; font-size: 13px; }
.kr-st { color: var(--gold); letter-spacing: 1px; }
.kr-top time { color: var(--muted-2); font-size: 12px; margin-left: auto; }
.kr-item p { margin: 6px 0 0; font-size: 14px; line-height: 1.5; overflow-wrap: anywhere; }
.kr-rep { border: 0; background: none; padding: 0; margin-top: 6px; color: var(--muted-2); font-size: 11px; cursor: pointer; }
.kr-rep:hover { color: var(--red); }

/* v1.4 — liste */
.list-bar { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; margin: 0 0 14px; padding-bottom: 2px; }
.list-bar::-webkit-scrollbar { display: none; }
.lchip { flex: none; display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 13px; border-radius: var(--r-pill); border: 1px solid var(--line-2); background: var(--panel); color: var(--text); font-size: 13px; font-weight: 600; cursor: pointer; white-space: nowrap; }
.lchip b { color: var(--muted-2); font-size: 11px; }
.lchip.active { border-color: var(--gold-line); background: var(--gold-soft); color: var(--gold-text); }
.lchip.active b { color: var(--gold-text); }
.lchip-add { border-style: dashed; color: var(--muted); }
.lnew { flex: none; display: inline-flex; }
.lform { display: flex; gap: 6px; flex: 1; min-width: 0; }
.lnew .lform { width: 260px; }
.lform .input { height: 36px; min-height: 36px; padding: 0 12px; font-size: 14px; flex: 1; min-width: 0; }
.list-head { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px; margin: 0 0 14px; padding: 12px 14px; border-radius: 14px; border: 1px solid var(--line); background: var(--panel); }
.list-head strong { font-size: 17px; letter-spacing: -.01em; }
.list-head .lform { flex-basis: 100%; }
.list-acts { display: flex; gap: 6px; flex-wrap: wrap; }
.l-del.confirm { background: var(--red); color: #fff; }
.ls-place { margin: -6px 0 12px; color: var(--muted); font-size: 14px; }
.ls-items { display: grid; gap: 6px; margin-bottom: 14px; }
.ls-item { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--line); background: var(--panel); cursor: pointer; }
.ls-item input { width: 18px; height: 18px; accent-color: var(--gold); }
.ls-item span { flex: 1; font-weight: 600; }
.ls-item small { color: var(--muted-2); }

/* v1.5 — poruka kad prvo učitavanje kraja traje duže */
.load-hint { margin: 0 0 12px; padding: 10px 14px; border-radius: 12px; background: var(--panel); border: 1px solid var(--line); color: var(--muted); font-size: 13px; line-height: 1.45; }

/* v1.6 — van pokrivenosti besplatne pretrage */
.state.outside p { max-width: 420px; margin-left: auto; margin-right: auto; }
.area-near { display: flex; align-items: center; justify-content: center; gap: 8px; margin: 4px 0 12px; color: var(--muted); font-size: 13px; }
.area-chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin: 0 auto 18px; max-width: 460px; }
.area-chip { display: inline-flex; align-items: center; gap: 5px; height: 34px; padding: 0 12px; border-radius: var(--r-pill); border: 1px solid var(--line-2); background: var(--panel); color: var(--text); font-size: 13px; font-weight: 600; cursor: pointer; }
.area-chip:hover { border-color: var(--gold-line); }
.area-chip.main { border-color: var(--gold-line); background: var(--gold-soft); color: var(--gold-text); height: 38px; padding: 0 14px; }
.area-chip small { color: var(--muted); font-weight: 600; }
