/* Posao Theme: home, layout A ("Karta prvo"). List left, map right; map on top on a phone. */

.pt-home { display: grid; grid-template-columns: minmax(360px, 5fr) minmax(0, 7fr); height: calc(100vh - var(--pt-header-h)); min-height: 520px; }
.pt-home__list { overflow-y: auto; overflow-x: hidden; min-width: 0; padding: 18px 20px 24px; background: var(--pt-bg); }
.pt-home__head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 16px; margin-bottom: 12px; }
.pt-home__head h1 { font-size: clamp(20px, 2.2vw, 26px); letter-spacing: -.02em; margin: 0; }
.pt-home__count { margin: 0; color: var(--pt-muted); font-size: 14px; font-weight: 600; }

/* Row of trades. It scrolls sideways; arrows and fading edges say so.
   Without the script the arrows stay hidden and a thin scrollbar shows instead. */
.pt-railwrap { position: relative; margin-bottom: 6px; }
.pt-rail { display: flex; gap: 8px; overflow-x: auto; padding: 2px 0 10px; scrollbar-width: thin; scroll-behavior: smooth; }
.pt-railwrap--js .pt-rail { scrollbar-width: none; }
.pt-railwrap--js .pt-rail::-webkit-scrollbar { display: none; }
.pt-railwrap::before, .pt-railwrap::after { content: ""; position: absolute; top: 0; bottom: 10px; width: 56px; pointer-events: none; opacity: 0; transition: opacity .15s; z-index: 1; }
.pt-railwrap::before { left: 0; background: linear-gradient(90deg, var(--pt-bg) 35%, transparent); }
.pt-railwrap::after { right: 0; background: linear-gradient(270deg, var(--pt-bg) 35%, transparent); }
.pt-railwrap--start::before, .pt-railwrap--end::after { opacity: 1; }
.pt-railwrap__btn { position: absolute; top: 0; z-index: 2; width: 34px; height: 34px; display: grid; place-items: center; padding: 0; border: 1px solid var(--pt-border); border-radius: 50%; background: var(--pt-surface); color: var(--pt-navy); box-shadow: var(--pt-shadow); cursor: pointer; }
.pt-railwrap__btn:hover { border-color: var(--pt-navy); }
.pt-railwrap__btn[hidden] { display: none; }
.pt-railwrap__btn .pt-icon { width: 18px; height: 18px; }
.pt-railwrap__btn--prev { left: 0; }
.pt-railwrap__btn--next { right: 0; }
[data-theme="dark"] .pt-railwrap__btn { color: #c9cdff; }
.pt-rail .pt-chip { flex: none; white-space: nowrap; border: 1px solid var(--pt-border); background: var(--pt-surface); border-radius: var(--pt-pill); padding: 6px 12px; font-size: 13px; font-weight: 600; text-decoration: none; color: var(--pt-text); }
.pt-rail .pt-chip:hover { border-color: var(--pt-navy); }
.pt-rail .pt-chip[aria-current] { background: var(--pt-navy-50); border-color: var(--pt-navy); color: var(--pt-navy); }
[data-theme="dark"] .pt-rail .pt-chip[aria-current] { color: #c9cdff; }

/* Jobs near me (29 Nov 2026, as on Atrakcje dla dzieci): "U blizini" by the count, the map's locate
   button above the zoom buttons, the "you are here" dot and the distance on each card. */
.pt-near { display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 12px; border: 1px solid var(--pt-border); border-radius: var(--pt-pill); background: var(--pt-surface); color: var(--pt-text); font: inherit; font-size: 13px; font-weight: 700; cursor: pointer; }
.pt-near[hidden] { display: none; }
.pt-near .pt-icon { width: 16px; height: 16px; color: var(--pt-navy); }
.pt-near:hover { border-color: var(--pt-navy); }
.pt-near[aria-pressed="true"] { background: var(--pt-navy); border-color: var(--pt-navy); color: #fff; }
.pt-near[aria-pressed="true"] .pt-icon { color: #fff; }
.pt-home--locating .pt-near, .pt-home--locating .pt-locate { opacity: .6; cursor: progress; }
.pt-locate { position: absolute; right: 10px; bottom: 96px; z-index: 1000; width: 44px; height: 44px; display: grid; place-items: center; padding: 0; border: 1px solid var(--pt-border); border-radius: 12px; background: var(--pt-surface); color: var(--pt-navy); box-shadow: var(--pt-shadow); cursor: pointer; }
.pt-locate:hover { border-color: var(--pt-navy); }
.pt-locate .pt-icon { width: 22px; height: 22px; }
.pt-home--near .pt-locate { background: var(--pt-navy); color: #fff; border-color: var(--pt-navy); }
[data-theme="dark"] .pt-near .pt-icon, [data-theme="dark"] .pt-locate { color: #c9cdff; }
.pt-me { border-radius: 50%; background: #1d9bf0; border: 3px solid #fff; box-shadow: 0 0 0 8px rgba(29, 155, 240, .25); }
.pt-job__dist { font-weight: 700; color: var(--pt-text); }

/* Row of trade icons above the list and the map (29 Nov 2026, Just Join IT as the model). */
.pt-home--cats { grid-template-rows: auto minmax(0, 1fr); }
.pt-cats { grid-column: 1 / -1; min-width: 0; margin: 0; padding: 10px 16px 0; background: var(--pt-bg); border-bottom: 1px solid var(--pt-border); }
.pt-cats .pt-railwrap__btn { top: 22px; }
.pt-cats.pt-railwrap::before, .pt-cats.pt-railwrap::after { top: 0; bottom: 0; }
.pt-cats__rail { gap: 0; padding: 10px 0 8px; }
/* Centred when the whole row fits; when it does not, it still starts at the left edge and scrolls
   (auto margins, unlike justify-content: center, never push items out of reach). */
.pt-cats__rail > .pt-cat:first-child { margin-left: auto; }
.pt-cats__rail > .pt-cat:last-child { margin-right: auto; }
.pt-cat { flex: none; width: min-content; min-width: 92px; max-width: 104px; display: flex; flex-direction: column; align-items: center; gap: 6px; text-decoration: none; color: var(--pt-text); }
.pt-cat__icon { position: relative; width: 48px; height: 48px; flex: none; border-radius: 50%; background: var(--pt-surface); border: 2px solid transparent; box-shadow: var(--pt-shadow); display: grid; place-items: center; }
.pt-cat__icon img { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; object-position: 50% 6%; transform: scale(1.32); clip-path: circle(36% at 50% 38%); }
.pt-cat__icon > .pt-icon { width: 22px; height: 22px; color: var(--pt-navy); }
.pt-cat__count { position: absolute; top: -9px; right: -14px; min-width: 22px; padding: 1px 6px; border-radius: var(--pt-pill); background: var(--pt-surface); border: 1px solid var(--pt-border); font-size: 11px; font-weight: 700; line-height: 16px; text-align: center; color: var(--pt-text); }
.pt-cat__name { max-width: 104px; font-size: 12px; font-weight: 600; line-height: 1.2; text-align: center; overflow: hidden; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2; min-height: 2.4em; hyphens: manual; color: var(--pt-muted); }
.pt-cat:hover .pt-cat__icon { border-color: var(--pt-border); }
.pt-cat:hover .pt-cat__name { color: var(--pt-text); }
.pt-cat[aria-current] .pt-cat__icon { border-color: var(--pt-navy); }
.pt-cat[aria-current] .pt-cat__name { color: var(--pt-text); font-weight: 800; }
[data-theme="dark"] .pt-cat[aria-current] .pt-cat__icon { border-color: #c9cdff; }
[data-theme="dark"] .pt-cat__icon > .pt-icon { color: #c9cdff; }

.pt-jobs { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; }
.pt-job { display: grid; grid-template-columns: minmax(0, 1fr); gap: 6px; padding: 14px 16px; background: var(--pt-surface); border: 1px solid var(--pt-border); border-radius: var(--pt-radius); text-decoration: none; color: inherit; box-shadow: var(--pt-shadow); }
.pt-job:hover { border-color: var(--pt-orange); }
.pt-job--featured { border-color: var(--pt-orange); background: linear-gradient(0deg, var(--pt-surface), var(--pt-surface)) padding-box, var(--pt-orange-50); }
.pt-job__title { font-weight: 700; font-size: 16px; line-height: 1.3; letter-spacing: -.01em; }
.pt-job__star { color: var(--pt-orange); margin-right: 6px; }
.pt-job__star .pt-icon { width: 15px; height: 15px; fill: currentColor; }
.pt-job__meta { display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: 13px; color: var(--pt-muted); }
.pt-job__meta > span { display: inline-flex; align-items: center; gap: 4px; }
.pt-job__meta .pt-icon { width: 14px; height: 14px; color: var(--pt-orange); }
.pt-job__pay { font-weight: 800; font-size: 15px; line-height: 1.3; color: var(--pt-text); }
/* The card and its bookmark button (29 Nov 2026): the button sits beside the link, top right. */
.pt-jobcard { position: relative; }
.pt-jobcard > .pt-job { padding-right: 52px; height: 100%; }
.pt-job__save { position: absolute; top: 8px; right: 8px; width: 38px; height: 38px; display: grid; place-items: center; padding: 0; border: 0; border-radius: 50%; background: transparent; color: var(--pt-muted); cursor: pointer; }
.pt-job__save:hover { background: var(--pt-surface-2); color: var(--pt-text); }
.pt-job__save .pt-icon { width: 20px; height: 20px; }
.pt-job__save[aria-pressed="true"] { color: var(--pt-orange); }
.pt-job__save[aria-pressed="true"] .pt-icon { fill: currentColor; }
.pt-job__save[data-state="loading"] { opacity: .5; }
/* Bottom line: contract • hours • housing • EU papers (Just Join IT's "Senior • B2B • Full-time"). */
.pt-job__facts { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 0; margin-top: 4px; padding-top: 8px; border-top: 1px solid var(--pt-border); font-size: 13px; font-weight: 600; color: var(--pt-text); }
.pt-job__fact:not(:last-child)::after { content: "•"; margin: 0 8px; color: var(--pt-muted); font-weight: 400; }
.pt-job__fact--good { color: var(--pt-orange-700); }
[data-theme="dark"] .pt-job__fact--good { color: var(--pt-orange); }
.pt-jobs__empty { padding: 28px 16px; text-align: center; color: var(--pt-muted); background: var(--pt-surface); border: 1px dashed var(--pt-border); border-radius: var(--pt-radius); }
.pt-home__more { margin: 16px 0 0; text-align: center; }
.pt-home__more [hidden] { display: none; }

.pt-home .pt-crumb { font-size: 13px; color: var(--pt-muted); display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 8px; }
.pt-home .pt-crumb a { text-decoration: none; color: var(--pt-muted); }
.pt-home .pt-crumb a:hover { text-decoration: underline; color: var(--pt-text); }
.pt-rail .pt-chip[aria-current] { background: var(--pt-navy-50); border-color: var(--pt-navy); color: var(--pt-navy); }

/* Text and links of a listing page: what Google and a reader without the map get */
.pt-seoblk { background: var(--pt-surface); border: 1px solid var(--pt-border); border-radius: var(--pt-radius); padding: 18px; margin-top: 20px; font-size: 14.5px; }
.pt-seoblk p { margin: 0 0 12px; color: var(--pt-muted); }
.pt-seoblk h2 { font-size: 15px; margin: 14px 0 8px; letter-spacing: 0; }
.pt-seoblk__links { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 16px; }
.pt-seoblk__links a { color: var(--pt-text); font-weight: 600; text-decoration: none; }
.pt-seoblk__links a:hover { text-decoration: underline; }
.pt-seoblk__links span { color: var(--pt-muted); font-size: 13px; }


/* overflow: the map plugin's filter panel waits off to the side until it is opened. */
.pt-home__map { position: relative; background: var(--pt-surface-2); min-height: 0; z-index: 0; overflow: hidden; }
.pt-home__map > .pmm-lf-map, .pt-home__map .leaflet-container { position: absolute; inset: 0; height: 100% !important; width: 100%; }
/* Ordinary clusters are navy; featured ads keep the orange (star badge and their own small groups, map plugin 2.12.0). */
.pt-home__map { --pmm-featured: var(--pt-orange-600); --pmm-featured-hover: var(--pt-orange-700); }
.pt-home__map .pmm-lf-cluster:not(.pmm-lf-cluster--featured) { background: var(--pt-navy); }
.pt-home__map .pmm-lf-cluster:not(.pmm-lf-cluster--featured):hover { background: var(--pt-navy-700); }
.pt-home__mapnote { position: absolute; inset: 0; display: grid; place-items: center; margin: 0; color: var(--pt-muted); font-size: 14px; padding: 20px; text-align: center; }

/* The home page fills the screen; the footer follows below it. */
.home .pt-foot { margin-top: 0; }

@media (max-width: 47.99em) {
	.pt-home { grid-template-columns: minmax(0, 1fr); height: auto; min-height: 0; }
	.pt-home__map { height: 42vh; order: -1; }
	.pt-cats { order: -2; padding: 6px 8px 0; }
	.pt-home__list { overflow: visible; padding: 14px 12px 20px; }
}

/* The map's filter panel and its button (markup and behaviour from the map plugin) in the
   theme's look. Only colours, type and shapes are set here; where the panel sits and how it
   opens stay the plugin's. Under another theme the plugin's own look applies. */
.pt-site .pmm-filter-btn { height: 40px; padding: 0 16px; border: 1px solid var(--pt-border); border-radius: var(--pt-pill); background: var(--pt-surface); color: var(--pt-text); box-shadow: var(--pt-shadow); font-family: var(--pt-font); font-size: var(--pt-text-sm); font-weight: 700; }
.pt-site .pmm-filter-btn:hover, .pt-site .pmm-filter-btn:focus { background: var(--pt-surface); border-color: var(--pt-navy); }
.pt-site .pmm-filter-btn svg { width: 18px; height: 18px; color: var(--pt-navy); }
.pt-site .pmm-filter-btn__badge { background: var(--pt-orange-600); box-shadow: none; }
.pt-site .pmm-fs-btn { border: 1px solid var(--pt-border); border-radius: 50%; background: var(--pt-surface); color: var(--pt-text); box-shadow: var(--pt-shadow); }
.pt-site .pmm-fs-btn:hover, .pt-site .pmm-fs-btn:focus { background: var(--pt-surface); border-color: var(--pt-navy); }
.pt-site .pmm-filter-panel { background: var(--pt-surface); color: var(--pt-text); font-family: var(--pt-font); box-shadow: var(--pt-shadow-lg); }
.pt-site .pmm-filter-panel__header { padding: 16px 20px; border-bottom: 1px solid var(--pt-border); }
.pt-site .pmm-filter-panel__title { font-size: 18px; font-weight: 800; letter-spacing: -.02em; }
.pt-site .pmm-filter-panel__close { width: 36px; height: 36px; align-items: center; justify-content: center; border-radius: 50%; color: var(--pt-muted); }
.pt-site .pmm-filter-panel__close:hover { background: var(--pt-surface-2); color: var(--pt-text); }
.pt-site .pmm-filter-panel__body { padding: 18px 20px; }
.pt-site .pmm-filter-field { margin-bottom: 18px; }
.pt-site .pmm-filter-field__label { margin-bottom: 6px; color: var(--pt-text); font-size: var(--pt-text-sm); font-weight: 600; letter-spacing: 0; text-transform: none; }
.pt-site .pmm-filter-field__select, .pt-site .pmm-filter-field__input { min-height: 44px; padding: 10px 12px; border: 1px solid var(--pt-border); border-radius: var(--pt-radius-sm); background-color: var(--pt-surface); color: var(--pt-text); font-size: 15px; }
.pt-site .pmm-filter-field__select { padding-right: 36px; }
.pt-site .pmm-filter-field__select:focus, .pt-site .pmm-filter-field__input:focus { border-color: var(--pt-navy); box-shadow: 0 0 0 3px var(--pt-navy-50); }
.pt-site .pmm-filter-panel__footer { gap: 10px; padding: 14px 20px; border-top: 1px solid var(--pt-border); background: var(--pt-surface); }
.pt-site .pmm-filter-reset { padding: 12px 18px; border: 1px solid var(--pt-border); border-radius: var(--pt-pill); background: var(--pt-surface); color: var(--pt-text); font-size: var(--pt-text-sm); font-weight: 700; }
.pt-site .pmm-filter-reset:hover { background: var(--pt-surface-2); }
.pt-site .pmm-filter-apply { padding: 12px 18px; border-radius: var(--pt-pill); background: var(--pt-orange-600); font-size: 15px; font-weight: 700; }
.pt-site .pmm-filter-apply:hover { background: var(--pt-orange-700); }
@media (max-width: 768px) {
	/* The drawer sits on the theme's bottom menu, whose height is a token. */
	.pt-site .pmm-filter-panel { bottom: calc(var(--pt-bnav-h) + 6px + env(safe-area-inset-bottom, 0px)); border-radius: var(--pt-radius) var(--pt-radius) 0 0; }
	/* The map area is its own layer under the list; while the drawer is open it comes above the list's arrows. */
	.pt-home__map:has(.pmm-filter-panel--open) { z-index: 800; }
	.pt-site .pmm-filter-panel__header::before { background: var(--pt-border); }
	.pt-site .pmm-filter-btn { width: 40px; padding: 0; }
}

/* The row of trades as a framed filter bar: a white card, so it reads as a control
   and not as part of the heading. The chosen trade is a solid navy chip. */
.pt-railbar { margin-bottom: 14px; padding: 8px 10px; background: var(--pt-surface); border: 1px solid var(--pt-border); border-radius: var(--pt-radius); box-shadow: var(--pt-shadow); }
.pt-railbar .pt-railwrap { margin-bottom: 0; }
.pt-railbar .pt-rail { padding: 2px 0; }
.pt-railbar .pt-railwrap::before, .pt-railbar .pt-railwrap::after { bottom: 0; }
.pt-railbar .pt-railwrap::before { background: linear-gradient(90deg, var(--pt-surface) 35%, transparent); }
.pt-railbar .pt-railwrap::after { background: linear-gradient(270deg, var(--pt-surface) 35%, transparent); }
.pt-railbar .pt-railwrap__btn { top: 2px; }
.pt-railbar .pt-rail .pt-chip { padding: 7px 14px; background: var(--pt-surface-2); border-color: transparent; color: var(--pt-navy-700); }
.pt-railbar .pt-rail .pt-chip:hover { background: var(--pt-navy-50); border-color: var(--pt-navy); }
.pt-railbar .pt-rail .pt-chip[aria-current] { background: var(--pt-navy); border-color: var(--pt-navy); color: #fff; }
[data-theme="dark"] .pt-railbar .pt-rail .pt-chip { color: #c9cdff; }
[data-theme="dark"] .pt-railbar .pt-rail .pt-chip[aria-current] { color: #fff; }
@media (max-width: 720px) {
	.pt-railbar { padding: 6px 8px; }
}
