/* Light, cheerful theme. Change the palette here. */
:root {
  --bg: #fffaf2;          /* warm cream */
  --surface: #ffffff;
  --text: #1f2a37;
  --muted: #6b7280;
  --line: #f1e7d8;
  --field: #fff6ea;       /* inputs */
  --accent: #ff6b4a;      /* coral */
  --accent-dark: #e8502e;
  --si: #2f80ed;          /* Slovenia – sky blue */
  --it: #16a34a;          /* Italy – meadow green */
  --at: #ef4444;          /* Austria – red */
  --radius: 16px;
  --shadow: 0 1px 2px rgb(120 80 30 / .06), 0 8px 24px rgb(120 80 30 / .08);
  color-scheme: light;
}

* { box-sizing: border-box; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 15px/1.5 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
a { color: var(--accent-dark); }
.wrap { max-width: 1120px; margin: 0 auto; padding-inline: 20px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* Hero: sky → meadow → sun */
.hero {
  position: relative;
  background:
    radial-gradient(circle at 88% 18%, #fff3b0 0 60px, transparent 61px),      /* sun */
    radial-gradient(circle at 88% 18%, rgb(255 236 150 / .55) 0 110px, transparent 111px),
    linear-gradient(160deg, #a8e3ff 0%, #c9f2e3 55%, #fff1c7 100%);
  color: var(--text);
  padding: 52px 0 96px;
  overflow: hidden;
}
.hero::after {   /* mountains */
  content: "";
  position: absolute; left: 0; right: 0; bottom: -1px; height: 90px;
  background: var(--bg);
  clip-path: polygon(0 70%, 12% 35%, 22% 60%, 35% 15%, 48% 55%, 58% 30%, 70% 62%, 82% 25%, 92% 50%, 100% 35%, 100% 100%, 0 100%);
}
.hero .wrap { position: relative; z-index: 1; }
.hero-top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 22px; }
.logo { display: inline-flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; }
.logo { position: relative; }
/* What "Mladika" means: a small card under the logo on hover or keyboard focus */
.logo-tip {
  position: absolute; left: 0; top: calc(100% + 10px); z-index: 30;
  width: min(340px, calc(100vw - 40px)); padding: 12px 14px;
  background: var(--surface); color: var(--text); border-radius: 12px; box-shadow: 0 10px 30px rgb(60 30 0 / .2);
  font-size: 13.5px; font-weight: 400; line-height: 1.5;
  opacity: 0; visibility: hidden; translate: 0 -4px; transition: opacity .15s, translate .15s, visibility .15s;
  pointer-events: none;
}
.logo-tip strong { display: block; margin-bottom: 4px; font-size: 15px; color: #1f5f3a; }
.logo:hover .logo-tip, .logo:focus-visible .logo-tip { opacity: 1; visibility: visible; translate: 0 0; }
@media (prefers-reduced-motion: reduce) { .logo-tip { transition: none; } }
.logo-mark { width: 46px; height: 46px; flex: none; filter: drop-shadow(0 2px 3px rgb(30 80 40 / .18)); }
.logo-text { display: flex; flex-direction: column; line-height: 1.05; }  /* small "ZS Mladika" on top, big "Službe" below */
.logo-text strong { font-size: 13px; font-weight: 700; letter-spacing: .02em; color: #1f5f3a; }
.logo-text span { font-size: 24px; font-weight: 800; letter-spacing: -.01em; color: #ea580c; }
.hero .eyebrow { margin-bottom: 6px; }
.eyebrow.back { margin-top: 18px; }
.eyebrow {
  margin: 0; text-transform: uppercase; letter-spacing: .12em; font-size: 12px; font-weight: 700;
  color: #0f766e;
}
.lang-switch {
  display: inline-flex; padding: 4px; gap: 2px;
  background: rgb(255 255 255 / .7); border-radius: 99px; box-shadow: var(--shadow);
}
.lang-switch a {
  color: var(--text); text-decoration: none; font-size: 13px; font-weight: 600;
  padding: 5px 14px; border-radius: 99px;
}
.lang-switch a:hover { background: rgb(255 107 74 / .1); }
.lang-switch a[aria-current] { background: var(--accent); color: #fff; }
.hero h1 { margin: 0 0 14px; font-size: clamp(28px, 5vw, 46px); line-height: 1.1; letter-spacing: -.02em; }
.regions { margin: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.regions > span {
  background: rgb(255 255 255 / .75); padding: 4px 12px 4px 10px; border-radius: 99px;
  font-size: 14px; font-weight: 500;
}
.dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; margin-right: 6px; }
.dot-SI { background: var(--si); } .dot-IT { background: var(--it); } .dot-AT { background: var(--at); }

/* Filters */
.filters {
  position: sticky; top: 0; z-index: 5;
  margin-top: -56px;
  display: flex; flex-wrap: wrap; gap: 10px; align-items: center;
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 12px;
}
.search { flex: 1 1 260px; position: relative; }
.search svg {
  position: absolute; left: 12px; top: 50%; translate: 0 -50%;
  width: 18px; height: 18px; fill: none; stroke: var(--accent); stroke-width: 2.2; stroke-linecap: round;
}
.filters input, .filters select {
  width: 100%; height: 42px;
  font: inherit; color: var(--text);
  background: var(--field);
  border: 1px solid var(--line); border-radius: 12px;
  padding: 0 12px;
}
.filters input { padding-left: 38px; }
.filters input:focus, .filters select:focus { outline: 2px solid var(--accent); outline-offset: 1px; }
.select { flex: 1 1 160px; max-width: 220px; }
.reset { color: var(--muted); text-decoration: none; padding: 0 6px; font-size: 14px; }
.reset:hover { color: var(--accent-dark); }

/* Results */
#results { padding: 22px 0 8px; transition: opacity .15s; }
#results.loading { opacity: .5; }
.count { margin: 0 0 12px; color: var(--muted); font-size: 14px; font-weight: 500; }
.grid {
  list-style: none; margin: 0; padding: 0;
  display: grid; gap: 16px;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 330px), 1fr));
}
.card {
  display: flex; flex-direction: column; gap: 8px;
  background: var(--surface);
  border-top: 4px solid var(--cc, var(--accent));
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 16px 18px;
  transition: transform .15s, box-shadow .15s;
}
.card:hover { transform: translateY(-3px); box-shadow: 0 2px 4px rgb(120 80 30 / .06), 0 14px 32px rgb(120 80 30 / .12); }
.c-SI { --cc: var(--si); } .c-IT { --cc: var(--it); } .c-AT { --cc: var(--at); }
.card-top { display: flex; align-items: center; gap: 6px; font-size: 12px; }
.chip {
  padding: 2px 9px; border-radius: 99px; font-weight: 700;
  color: var(--cc); background: color-mix(in srgb, var(--cc) 12%, white);
}
.chip-muted { --cc: #8a6d3b; }
.posted { margin-left: auto; color: var(--muted); }
.card h2 { margin: 0; font-size: 17px; line-height: 1.3; letter-spacing: -.01em; }
.card h2 a { color: var(--text); text-decoration: none; }
.card h2 a:hover { color: var(--accent-dark); }
.card h2 a::after { content: " ↗"; color: var(--accent); font-size: 13px; }
.meta { margin: 0; display: flex; flex-wrap: wrap; gap: 4px 14px; color: var(--muted); font-size: 14px; }
.company { font-weight: 600; color: var(--text); }
.loc::before { content: "📍 "; }
/* Job photo: bleeds to the card edges, below the country-coloured top border */
.card { overflow: hidden; }
.card-photo { position: relative; flex: none; margin: -16px -18px 4px; background: var(--field); }
.card-photo img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; }
.card-photo figcaption { position: absolute; right: 6px; bottom: 6px; }
.card-photo figcaption a {
  font-size: 10.5px; color: #fff; text-decoration: none; background: rgb(0 0 0 / .45);
  padding: 2px 7px; border-radius: 99px; opacity: .85;
}
.card-photo figcaption a:hover { opacity: 1; }

/* Highlights: key facts at a glance */
.hl { list-style: none; margin: 2px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 5px; }
.hl li {
  font-size: 12.5px; font-weight: 600; line-height: 1.3; padding: 3px 9px; border-radius: 99px;
  background: #f3f6fb; color: #334155; border: 1px solid #e3e9f2;
}
.hl .hl-exp_years, .hl .hl-exp_needed { background: #fff1e6; border-color: #fed7aa; color: #9a3412; }
.hl .hl-no_exp, .hl .hl-apprentice { background: #e9f9ef; border-color: #bbf0cd; color: #166534; }
.hl [class*="hl-edu"] { background: #f1ecff; border-color: #ddd3fb; color: #5b34b0; }
.summary {
  margin: 0; color: var(--muted); font-size: 14px;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.edu { margin: 0; font-size: 13px; color: var(--muted); }
.tags { margin-top: auto; padding-top: 6px; display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.tag { font-size: 12px; padding: 3px 9px; border-radius: 8px; background: var(--field); border: 1px solid var(--line); }
.tag-salary { font-weight: 700; background: #fff4d6; border-color: #fde3a0; color: #8a5a00; }
.tag-lang { background: #e8f4ff; border-color: #cfe6fb; color: #1d5a94; font-weight: 600; }
.tag-lang-plus { background: #f3f8ec; border-color: #dcebc8; color: #4d6b22; }
.source { margin-left: auto; font-size: 11px; color: var(--muted); }

/* Category tags: one pastel per field */
.tag-cat { border-color: transparent; font-weight: 600; }
/* Clickable job properties: click sets that filter, keeps the others */
a.pick { color: inherit; text-decoration: none; cursor: pointer; }
a.pick:hover, a.pick:focus-visible { text-decoration: underline; text-underline-offset: 2px; }
.tag:has(> a.pick):hover, a.chip.pick:hover { filter: brightness(.95); box-shadow: 0 0 0 1px currentColor inset; }
.cat-hospitality   { background: #ffe4dc; color: #b23a1d; }
.cat-retail        { background: #fde7f3; color: #a3266f; }
.cat-construction  { background: #ffedd2; color: #9a4b00; }
.cat-manufacturing { background: #e6ecff; color: #3346a8; }
.cat-health        { background: #dcf7ec; color: #12704a; }
.cat-logistics     { background: #e0f2fe; color: #0b5f8a; }
.cat-office        { background: #efe7ff; color: #5b34b0; }
.cat-it            { background: #dff7fb; color: #0e6b7a; }
.cat-education     { background: #fff6c9; color: #7a5d00; }
.cat-services      { background: #f6e8ff; color: #8a2fb0; }
.cat-other         { background: #f1f1ee; color: #555; }

/* "Pomoč!" button + phrasebook dialog */
.help {
  font: inherit; font-size: 12px; font-weight: 800; cursor: pointer;
  color: #fff; background: #f97316; border: 0; border-radius: 8px; padding: 3px 10px;
  box-shadow: 0 1px 0 #c2410c;
}
.help:hover { background: #ea580c; }
.help:focus-visible { outline: 2px solid #c2410c; outline-offset: 2px; }
.help small { font-size: 10px; opacity: .85; }

.glossary {
  width: min(760px, calc(100vw - 32px)); max-height: min(86vh, 900px);
  padding: 0; border: 0; border-radius: var(--radius); box-shadow: 0 20px 60px rgb(60 30 0 / .3);
  background: var(--surface); color: var(--text);
}
.glossary[open] { display: flex; flex-direction: column; }
.glossary::backdrop { background: rgb(40 25 10 / .45); }
.glossary-body { display: flex; flex-direction: column; min-height: 0; padding: 18px 20px 14px; gap: 10px; }
.glossary-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.glossary-kicker { margin: 0; font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: #ea580c; }
.glossary-head h2 { margin: 2px 0 0; font-size: 22px; }
.glossary-close { font: inherit; font-size: 18px; border: 0; background: var(--field); border-radius: 50%; width: 36px; height: 36px; cursor: pointer; flex: none; }
.glossary-close:hover { background: #ffe1cc; }
.glossary-search input {
  width: 100%; height: 40px; font: inherit; padding: 0 12px;
  background: var(--field); border: 1px solid var(--line); border-radius: 12px;
}
.glossary-search input:focus { outline: 2px solid #f97316; outline-offset: 1px; }
.glossary-scroll { overflow: auto; min-height: 0; flex: 1; border: 1px solid var(--line); border-radius: 12px; }
.glossary table { width: 100%; border-collapse: collapse; font-size: 14px; }
.glossary th {
  position: sticky; top: 0; text-align: left; background: #fff1e6; color: #9a3412;
  font-size: 12px; text-transform: uppercase; letter-spacing: .05em; padding: 8px 10px;
}
.glossary td { padding: 7px 10px; border-top: 1px solid var(--line); vertical-align: top; }
.glossary tbody tr:nth-child(even) td { background: #fffcf7; }
.g-phrase { font-weight: 600; }
.g-pron { color: #c2410c; font-style: italic; }
.glossary-none { padding: 16px; text-align: center; color: var(--muted); }
.glossary-foot { margin: 0; font-size: 12px; color: var(--muted); }

.empty { text-align: center; padding: 48px 0; color: var(--muted); }
.footer { padding-block: 28px 40px; color: var(--muted); font-size: 13px; }

/* Statistics page */
.stats-head {
  background: linear-gradient(160deg, #a8e3ff 0%, #c9f2e3 60%, #fff1c7 100%);
  padding: 36px 0 28px;
}
.stats-head .eyebrow a { color: inherit; text-decoration: none; }
.stats-head h1 { margin: 6px 0 14px; font-size: clamp(26px, 4vw, 38px); letter-spacing: -.02em; }
.admin-badge { font-size: 13px; vertical-align: middle; background: #1f2a37; color: #fff; padding: 3px 10px; border-radius: 99px; letter-spacing: .04em; }
.period { display: inline-flex; gap: 2px; padding: 4px; background: rgb(255 255 255 / .75); border-radius: 99px; box-shadow: var(--shadow); }
.period a { color: var(--text); text-decoration: none; font-size: 13px; font-weight: 600; padding: 5px 14px; border-radius: 99px; }
.period a[aria-current] { background: var(--accent); color: #fff; }
.stats { padding-block: 24px 40px; display: flex; flex-direction: column; gap: 18px; }
.tiles { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 160px), 1fr)); }
.tile { background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow); padding: 14px 16px; display: flex; flex-direction: column; }
.tile-n { font-size: 30px; font-weight: 800; letter-spacing: -.02em; line-height: 1.1; }
.tile-l { color: var(--muted); font-size: 13px; }
.tile-admin { outline: 2px dashed #cbd5e1; outline-offset: -2px; }
.grid2 { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); }
.grid3 { display: grid; gap: 18px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); }
.panel { background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow); padding: 16px 18px; min-width: 0; }
.panel h2 { margin: 0 0 12px; font-size: 16px; }
.muted { color: var(--muted); }
.small { font-size: 12px; font-weight: 400; }

/* Day / hour column chart: one series, thin rounded columns, hover tooltip */
.daychart { position: relative; padding-left: 28px; }
.dc-peak { position: absolute; left: 0; top: -4px; font-size: 11px; color: var(--muted); }
.dc-cols { height: 140px; display: flex; align-items: flex-end; gap: 2px; border-bottom: 1px solid var(--line); border-top: 1px dashed var(--line); }
.dc-col { flex: 1; height: 100%; display: flex; align-items: flex-end; position: relative; outline: none; }
.dc-bar { width: 100%; max-width: 18px; margin-inline: auto; border-radius: 4px 4px 0 0; }
.dc-visitors .dc-bar { background: var(--si); }
.dc-clicks .dc-bar { background: var(--accent-dark); }
.dc-col:hover .dc-bar, .dc-col:focus .dc-bar { filter: brightness(.85); }
.dc-col:hover::after, .dc-col:focus::after {
  content: attr(data-tip); position: absolute; bottom: calc(100% + 6px); left: 50%; translate: -50% 0; z-index: 2;
  white-space: nowrap; background: #1f2a37; color: #fff; font-size: 12px; padding: 4px 8px; border-radius: 6px; pointer-events: none;
}
.dc-axis { display: flex; justify-content: space-between; font-size: 11px; color: var(--muted); padding-top: 4px; }
.table-view { margin-top: 10px; font-size: 13px; }
.table-view summary { cursor: pointer; color: var(--muted); }
.table-view table { margin-top: 8px; }

/* Ranked bar lists */
.barlist { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.barlist li { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr) auto; align-items: center; gap: 10px; font-size: 14px; }
.bl-label { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bl-track { height: 8px; background: var(--field); border-radius: 4px; overflow: hidden; }
.bl-bar { display: block; height: 100%; background: var(--si); border-radius: 4px; }
.bl-n { font-weight: 700; font-variant-numeric: tabular-nums; min-width: 2ch; text-align: right; }

.table-wrap { overflow-x: auto; }
.stats table { width: 100%; border-collapse: collapse; font-size: 14px; }
.stats th { text-align: left; font-size: 12px; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); padding: 6px 8px; border-bottom: 1px solid var(--line); }
.stats td { padding: 7px 8px; border-bottom: 1px solid var(--line); vertical-align: top; }
.stats .num { text-align: right; font-variant-numeric: tabular-nums; }
.events td { white-space: nowrap; }
.events td:nth-child(3) { white-space: normal; min-width: 220px; }
.privacy { color: var(--muted); font-size: 13px; margin: 0; }

@media (max-width: 560px) {
  .select { flex: 1 1 140px; max-width: none; }
  .hero { padding: 40px 0 88px; }
}

/* Map dialog: place name on a card → route in Google Maps */
.map-link { color: inherit; text-decoration: underline dotted; text-underline-offset: 3px; }
.map-link:hover, .map-link:focus-visible { color: #ea580c; text-decoration-style: solid; }
.loc .more { color: var(--muted); font-size: 12px; }
.map-dialog { width: min(920px, calc(100vw - 32px)); }
.map-from { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.map-from label { font-weight: 700; font-size: 14px; }
.map-from input { flex: 1 1 200px; font: inherit; padding: 8px 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--field); }
.map-from input:focus { outline: 2px solid #f97316; outline-offset: 1px; }
.map-from button { font: inherit; font-weight: 700; border: 0; border-radius: 10px; padding: 8px 14px; background: #f97316; color: #fff; cursor: pointer; }
.map-from button:hover { background: #ea580c; }
.map-frame { width: 100%; height: min(60vh, 520px); border: 0; border-radius: 12px; background: var(--field); }
.drive { font-size: 12px; font-weight: 700; color: #1f5f3a; background: #e6f4ea; padding: 1px 8px; border-radius: 99px; white-space: nowrap; }
.select-from { display: flex; align-items: center; gap: 6px; }
.select-from .from-label { font-size: 13px; font-weight: 700; color: #1f5f3a; white-space: nowrap; }

/* Guided tour: "?" button, spotlight and speech bubble */
.hero-actions { display: flex; align-items: center; gap: 10px; }
.tour-btn {
  width: 38px; height: 38px; border-radius: 50%; border: 0; cursor: pointer; flex: none;
  font-family: inherit; font-size: 18px; font-weight: 800; line-height: 1; color: #fff; background: #f97316;
  box-shadow: 0 2px 8px rgb(249 115 22 / .35);
}
.tour-btn:hover { background: #ea580c; }
.tour-btn:focus-visible { outline: 3px solid #fed7aa; outline-offset: 2px; }
.tour-spot {
  position: fixed; z-index: 60; border-radius: 12px; pointer-events: none;
  box-shadow: 0 0 0 3px #f97316, 0 0 0 9999px rgb(30 20 10 / .55);
  transition: top .3s, left .3s, width .3s, height .3s;
}
.tour-bubble {
  position: fixed; z-index: 61; width: min(340px, calc(100vw - 24px)); padding: 16px 18px 14px;
  background: #fff; border-radius: 14px; box-shadow: 0 12px 36px rgb(30 20 10 / .3);
  transition: top .3s, left .3s;
}
.tour-arrow {
  position: absolute; top: -8px; width: 16px; height: 16px; background: #fff;
  transform: translateX(-50%) rotate(45deg); border-radius: 3px;
}
.tour-bubble.above .tour-arrow { top: auto; bottom: -8px; }
.tour-count { margin: 0; font-size: 11px; font-weight: 800; letter-spacing: .08em; color: #ea580c; }
.tour-title { margin: 2px 0 6px; font-size: 18px; }
.tour-text { margin: 0 0 14px; font-size: 14.5px; line-height: 1.5; color: #3b2f25; }
.tour-actions { display: flex; align-items: center; gap: 8px; }
.tour-gap { flex: 1; }
.tour-actions button { font: inherit; font-size: 14px; font-weight: 700; border-radius: 10px; padding: 7px 14px; cursor: pointer; border: 0; }
.tour-actions .tour-skip { background: none; color: var(--muted); padding-inline: 4px; }
.tour-back { background: var(--field); color: #3b2f25; }
.tour-next { background: #f97316; color: #fff; }
.tour-next:hover { background: #ea580c; }
.tour-actions button:focus-visible { outline: 2px solid #f97316; outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) { .tour-spot, .tour-bubble { transition: none; } }

/* "Ostalo" filter: a button that opens a panel of checkboxes */
.more-filters { position: relative; flex: 0 0 auto; }
.more-filters summary {
  list-style: none; cursor: pointer; user-select: none;
  display: flex; align-items: center; gap: 8px; height: 42px; padding: 0 14px;
  background: var(--field); border: 1px solid var(--line); border-radius: 12px; font-weight: 600;
}
.more-filters summary::-webkit-details-marker { display: none; }
.more-filters summary::after { content: "▾"; color: var(--muted); font-size: 12px; }
.more-filters[open] summary { outline: 2px solid var(--accent); outline-offset: 1px; }
.more-filters summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
.more-n {
  min-width: 20px; height: 20px; padding: 0 6px; border-radius: 99px;
  background: var(--accent); color: #fff; font-size: 12px; font-weight: 800;
  display: inline-flex; align-items: center; justify-content: center;
}
.more-n[hidden] { display: none; }
.more-panel {
  position: absolute; left: 0; top: calc(100% + 8px); z-index: 20;
  width: 300px; max-height: min(70vh, 520px); overflow-y: auto;
  background: var(--surface); border: 1px solid var(--line); border-radius: 14px;
  box-shadow: var(--shadow); padding: 10px 14px 12px;
}
.more-group { border: 0; margin: 0 0 6px; padding: 0; }
.more-group legend { font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); padding: 6px 0 2px; }
.chk { display: flex; align-items: center; gap: 8px; padding: 5px 2px; cursor: pointer; font-size: 14px; border-radius: 8px; }
.chk:hover { background: var(--field); }
.filters .chk input { width: 18px; height: 18px; padding: 0; margin: 0; accent-color: var(--accent); flex: none; }
.chk .n { color: var(--muted); font-size: 13px; margin-left: auto; }
.chk:has(input:disabled) { opacity: .45; cursor: default; }
.more-clear {
  font: inherit; font-size: 13px; font-weight: 700; margin-top: 4px; float: right;
  border: 0; background: none; color: var(--accent-dark); cursor: pointer; padding: 4px 2px;
}
.more-clear:hover { text-decoration: underline; }
.hl a.pick { color: inherit; text-decoration: none; }
.hl a.pick:hover { text-decoration: underline; }
@media (max-width: 560px) {
  .more-filters { flex: 1 1 140px; }
  .more-filters summary { justify-content: space-between; }
  .more-panel { position: fixed; left: 16px; right: 16px; top: auto; width: auto; margin-top: 8px; }
}

/* Saved searches */
.save-btn {
  flex: 0 0 auto; height: 42px; padding: 0 14px; cursor: pointer;
  font: inherit; font-weight: 600; color: var(--text);
  background: var(--field); border: 1px solid var(--line); border-radius: 12px;
}
.save-btn:hover { border-color: #f5c26b; background: #fff1d6; }
.save-btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
.saved { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 12px; font-size: 14px; }
.saved[hidden] { display: none; }
.saved-head { font-weight: 700; color: var(--muted); }
.saved-item {
  display: inline-flex; align-items: center; max-width: 100%;
  background: #fff1d6; border: 1px solid #f5d79b; border-radius: 99px;
}
.saved-item a {
  color: var(--text); text-decoration: none; padding: 4px 4px 4px 12px; font-weight: 600;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 360px;
}
.saved-item a:hover { text-decoration: underline; }
.saved-item a[aria-current] { color: var(--accent-dark); }
.saved-item button {
  border: 0; background: none; cursor: pointer; color: var(--muted);
  font-size: 12px; padding: 4px 10px 4px 6px; border-radius: 99px;
}
.saved-item button:hover { color: var(--accent-dark); }
.saved-soon { color: var(--muted); font-size: 12px; }

/* Toast message */
.toast {
  position: fixed; left: 50%; bottom: 20px; translate: -50% 0; z-index: 60;
  max-width: min(520px, calc(100vw - 32px)); padding: 12px 16px;
  background: #1f2a37; color: #fff; border-radius: 12px; font-size: 14px;
  box-shadow: 0 10px 30px rgb(0 0 0 / .25);
}
.toast[hidden] { display: none; }

/* Suggestion dialog */
.idea-btn { background: #facc15; color: #1f2a37; box-shadow: 0 2px 8px rgb(250 204 21 / .4); font-size: 17px; }
.fb-dialog { width: min(520px, calc(100vw - 32px)); }
.fb-form { display: flex; flex-direction: column; gap: 12px; }
.fb-intro { margin: 0; color: var(--muted); }
.fb-form label { display: flex; flex-direction: column; gap: 4px; font-weight: 700; font-size: 14px; }
.fb-opt { font-weight: 400; color: var(--muted); }
.fb-form textarea, .fb-form input {
  font: inherit; font-weight: 400; padding: 8px 12px; resize: vertical;
  background: var(--field); border: 1px solid var(--line); border-radius: 10px;
}
.fb-form textarea:focus, .fb-form input:focus { outline: 2px solid #f97316; outline-offset: 1px; }
.fb-form .hp { position: absolute; left: -9999px; width: 1px; height: 1px; }
.fb-actions { display: flex; align-items: center; justify-content: flex-end; gap: 14px; flex-wrap: wrap; }
.fb-actions button {
  font: inherit; font-weight: 700; border: 0; border-radius: 10px; padding: 9px 18px;
  background: #f97316; color: #fff; cursor: pointer;
}
.fb-actions button:hover { background: #ea580c; }
.fb-actions button:disabled { opacity: .6; cursor: default; }
.fb-wa { font-weight: 700; color: #15803d; text-decoration: none; }
.fb-wa:hover { text-decoration: underline; }
.fb-status { margin: 0; color: #b91c1c; font-size: 14px; min-height: 1em; }
@media (max-width: 560px) {
  .save-btn { flex: 1 1 100px; }
  .saved-item a { max-width: 240px; }
}

/* Original text of a translated ad */
.orig { font-size: 13px; color: var(--muted); }
.orig summary { cursor: pointer; font-weight: 600; }
.orig div { margin-top: 4px; }

/* "Področja": a checkbox panel that looks like the other dropdowns */
.pick-filter { flex: 1 1 160px; max-width: 220px; min-width: 0; }
.pick-filter summary { font-weight: 400; justify-content: space-between; }
.pick-label { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.pick-filter .more-panel { width: 290px; }
@media (max-width: 560px) {
  .pick-filter { flex: 1 1 140px; max-width: none; }
  /* phones: every panel spans the filter bar (the page margin is 20px) */
  .more-filters .more-panel, .pick-filter .more-panel { left: 20px; right: 20px; width: auto; }
}

/* Machine-translated ad: a small globe, the explanation on hover */
.mt { cursor: help; font-size: 14px; line-height: 1; }

/* Results header: count + cards / list switch */
.results-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 12px; }
.results-head .count { margin: 0; }
.view-switch { display: inline-flex; padding: 3px; gap: 2px; background: var(--surface); border-radius: 99px; box-shadow: var(--shadow); }
.view-switch button {
  font: inherit; font-size: 13px; font-weight: 600; color: var(--text); cursor: pointer;
  border: 0; background: none; padding: 4px 12px; border-radius: 99px;
}
.view-switch button:hover { background: rgb(255 107 74 / .1); }
.view-switch button[aria-pressed="true"] { background: var(--accent); color: #fff; }
.view-switch button:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }

/* List view: one compact row per job, small photo (about 2 cm high) on the left */
.grid.list { grid-template-columns: 1fr; gap: 8px; }
.grid.list .card {
  display: grid; grid-template-columns: 100px minmax(0, 1fr) minmax(0, auto);
  grid-template-areas: "photo top tags" "photo title tags" "photo meta tags" "photo sum sum";
  align-items: center; gap: 2px 14px; padding: 8px 14px 8px 8px;
  border-top: 0; border-left: 4px solid var(--cc, var(--accent));
}
.grid.list .card:hover { transform: none; }
.grid.list .card-photo { grid-area: photo; margin: 0; align-self: center; border-radius: 10px; overflow: hidden; }
.grid.list .card-photo img { width: 100px; height: 75px; aspect-ratio: auto; }
.grid.list .card-photo figcaption { display: none; }
.grid.list .card-top { grid-area: top; }
.grid.list h2 { grid-area: title; font-size: 16px; }
.grid.list .meta { grid-area: meta; font-size: 13px; }
.grid.list .tags { grid-area: tags; margin: 0; padding: 0; justify-content: flex-end; max-width: 420px; }
.grid.list .source { display: none; }
.grid.list .summary { grid-area: sum; font-size: 13px; -webkit-line-clamp: 1; line-clamp: 1; }
.grid.list .hl, .grid.list .orig, .grid.list .edu { display: none; }
@media (max-width: 760px) {
  .grid.list .card { grid-template-columns: 76px minmax(0, 1fr); grid-template-areas: "photo top" "photo title" "photo meta" "sum sum" "tags tags"; }
  .grid.list .card-photo img { width: 76px; height: 60px; }
  .grid.list .tags { justify-content: flex-start; max-width: none; padding-top: 4px; }
}
