/* Posao Theme: the job page, on HivePress's markup. Source: the accepted mockup. */

.hp-listing--view-page.hp-row { align-items: flex-start; row-gap: 20px; }

/* Head */
.hp-listing--view-page .hp-listing__title { font-size: clamp(24px, 3.2vw, 36px); letter-spacing: -.02em; line-height: 1.15; margin: 0 0 12px; }
.hp-listing--view-page .hp-listing__details--primary { display: flex; flex-wrap: wrap; gap: 6px 16px; align-items: center; font-size: 14px; color: var(--pt-muted); margin-bottom: 16px; }
.hp-listing--view-page .hp-listing__details--primary a { color: var(--pt-muted); text-decoration: none; font-weight: 600; }
/* The date is one size with the place and the trade, so the three sit on one line of text. */
.hp-listing--view-page .hp-listing__details--primary .hp-listing__created-date { font-size: inherit; line-height: inherit; }
.hp-listing--view-page .hp-listing__details--primary a:hover { color: var(--pt-text); text-decoration: underline; }
.hp-listing--view-page .hp-listing__details--primary .hp-icon { color: var(--pt-orange); margin-right: 4px; }

/* Row with the owner's tabs, share and save */
.hp-listing--view-page .hp-page__topbar { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 10px 16px; padding: 12px 0; margin-bottom: 20px; border-top: 1px solid var(--pt-border); border-bottom: 1px solid var(--pt-border); }
.hp-listing--view-page .hp-listing__actions--secondary { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; margin-left: auto; }
.hp-listing--view-page .hp-listing__actions--secondary .hp-listing__action { display: inline-flex; align-items: center; gap: 6px; }

.pt-share { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: 13px; }
.pt-share__label { display: inline-flex; align-items: center; gap: 6px; color: var(--pt-muted); font-weight: 600; }
.pt-share__label .pt-icon, .pt-share__btn .pt-icon { width: 16px; height: 16px; }
.pt-share__link, .pt-share__btn { display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--pt-border); background: var(--pt-surface); color: var(--pt-text); border-radius: var(--pt-pill); padding: 5px 12px; font: inherit; font-size: 13px; font-weight: 600; text-decoration: none; cursor: pointer; }
.pt-share__link .pt-icon { width: 15px; height: 15px; }
.pt-share__link--facebook .pt-icon { color: #0866ff; }
.pt-share__link--whatsapp .pt-icon { color: #25d366; }
.pt-share__link--viber .pt-icon { color: #7360f2; }
.pt-share__link:hover, .pt-share__btn:hover { border-color: var(--pt-navy); }
/* The phone's own share sheet replaces the links on a phone, where it exists. */
.pt-share__btn { display: none; }

/* Save */
.hp-listing--view-page .hp-listing__actions--secondary .hp-listing__action--favorite { border: 1px solid var(--pt-border); background: var(--pt-surface); color: var(--pt-text); border-radius: var(--pt-pill); padding: 5px 12px; font-size: 13px; font-weight: 600; text-decoration: none; }
.hp-listing--view-page .hp-listing__actions--secondary .hp-listing__action--favorite:hover { border-color: var(--pt-navy); }
.hp-listing--view-page .hp-listing__actions--secondary .hp-listing__action--favorite .hp-icon { color: var(--pt-orange-600); }
.hp-listing--view-page .hp-listing__location { display: inline-flex; align-items: center; gap: 4px; }
.hp-listing--view-page .hp-listing__location .pt-icon { width: 16px; height: 16px; color: var(--pt-orange); }

/* Key facts */
.hp-listing--view-page .hp-listing__attributes--secondary { margin: 0 0 24px; }
.hp-listing--view-page .hp-listing__attributes--secondary > .hp-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 0; }
.hp-listing--view-page .hp-listing__attributes--secondary > .hp-row > * { width: auto; max-width: none; padding: 0; flex: none; }
.hp-listing--view-page .hp-listing__attributes--secondary .hp-listing__attribute { background: var(--pt-surface); border: 1px solid var(--pt-border); border-radius: var(--pt-radius-sm); padding: 12px 14px; font-size: 14.5px; height: 100%; display: flex; align-items: flex-start; gap: 10px; }
.hp-listing--view-page .hp-listing__attributes--secondary .hp-icon { color: var(--pt-navy); margin-top: 3px; }
[data-theme="dark"] .hp-listing--view-page .hp-listing__attributes--secondary .hp-icon { color: #c9cdff; }

/* Description */
.hp-listing--view-page .hp-listing__description { font-size: 16.5px; line-height: 1.7; }
.hp-listing--view-page .hp-listing__description h2 { font-size: 21px; margin: 28px 0 8px; }
.hp-listing--view-page .hp-listing__description h3 { font-size: 18px; margin: 22px 0 6px; }
.hp-listing--view-page .hp-listing__description p { margin: 0 0 14px; }
.hp-listing--view-page .hp-listing__description ul, .hp-listing--view-page .hp-listing__description ol { margin: 0 0 14px; padding-left: 22px; }
.hp-listing--view-page .hp-listing__description li::marker { color: var(--pt-orange); }
.hp-listing--view-page .hp-listing__description img { border-radius: var(--pt-radius-sm); }

/* Side column: ways to apply, facts, employer */
.hp-listing--view-page .hp-page__sidebar { display: grid; gap: 14px; }
.hp-listing--view-page .hp-page__sidebar > * { margin: 0; }
.hp-listing--view-page .hp-page__sidebar .hp-widget, .hp-listing--view-page .hp-page__sidebar .hp-vendor { background: var(--pt-surface); border: 1px solid var(--pt-border); border-radius: var(--pt-radius); box-shadow: var(--pt-shadow); padding: 18px; }

.hp-listing--view-page .pea-apply-box { margin-top: 0; scroll-margin-top: calc(var(--pt-header-h) + 16px); }
.hp-listing--view-page .pea-apply-box .ff-btn-submit { width: 100%; border-radius: var(--pt-pill) !important; }
.hp-listing--view-page .pea-apply-box input[type="text"], .hp-listing--view-page .pea-apply-box input[type="email"], .hp-listing--view-page .pea-apply-box textarea { border-radius: var(--pt-radius-sm); }
.hp-listing--view-page .hp-whatsapp-block, .hp-listing--view-page .hp-external-link-block { margin: 0 !important; }
.hp-listing--view-page .hp-external-link-block .button { border-radius: var(--pt-pill) !important; }

.pt-applymore { display: grid; gap: 10px; }
.pt-applymore .pt-btn { width: 100%; padding: 12px 18px; font-size: 15px; }
.pt-applymore .pt-btn .pt-icon { width: 18px; height: 18px; }
.pt-btn--wa { background: #128c4a; color: #fff; }
.pt-btn--wa:hover { background: #0e6f3b; }
.pt-applymore__note { margin: 0; font-size: 12px; line-height: 1.4; color: var(--pt-muted); text-align: center; }

/* Side boxes: net pay calculator, free application */
.pt-jobside { display: grid; gap: 8px; padding: 14px 16px; border: 1px solid var(--pt-border); border-radius: var(--pt-radius-sm); background: var(--pt-surface); }
.pt-jobside b { display: flex; align-items: center; gap: 8px; font-size: 15px; color: var(--pt-text); }
.pt-jobside b .pt-icon { width: 18px; height: 18px; flex: none; }
.pt-jobside p { margin: 0; font-size: 13px; line-height: 1.45; color: var(--pt-muted); }
.pt-jobside .pt-btn { width: 100%; }
.pt-jobside .pt-btn .pt-icon { width: 16px; height: 16px; }
.pt-jobside--trust { background: var(--pt-surface-2); }
.pt-jobside--trust b .pt-icon { color: #128c4a; }
.pt-jobside__link { font-size: 13px; font-weight: 700; color: var(--pt-text); }
.pt-jobside__links { display: flex; flex-wrap: wrap; gap: 6px 16px; }

/* Place of work */
.pt-jobmap { margin-top: 28px; }
.pt-jobmap h2 { font-size: 21px; margin: 0 0 6px; }
.pt-jobmap__place { display: flex; align-items: center; gap: 6px; margin: 0 0 12px; color: var(--pt-muted); font-size: 15px; }
.pt-jobmap__place .pt-icon { color: var(--pt-orange); }
.pt-jobmap__map { height: 280px; border-radius: var(--pt-radius); border: 1px solid var(--pt-border); background: var(--pt-surface-2); overflow: hidden; z-index: 0; }

.hp-listing--view-page .hp-listing__attributes--primary { display: grid; gap: 10px; font-size: 15px; }
/* "O poslodavcu": the employer below the ad (inc/job-page.php). */
.pt-jobemp { margin-top: 32px; }
.pt-jobemp > h2 { font-size: 19px; margin: 0 0 12px; letter-spacing: -.02em; }
.pt-jobemp__box { background: var(--pt-surface); border: 1px solid var(--pt-border); border-radius: var(--pt-radius); box-shadow: var(--pt-shadow); padding: 20px; }
.pt-jobemp__head { display: flex; align-items: center; gap: 14px; }
.pt-jobemp__logo { width: 64px; height: 64px; flex: none; border-radius: 14px; border: 1px solid var(--pt-border); object-fit: contain; background: #fff; }
.pt-jobemp__logo--letter { display: grid; place-items: center; background: var(--pt-navy-50); color: var(--pt-navy); font-size: 26px; font-weight: 800; }
.pt-jobemp__name { display: block; font-size: 18px; font-weight: 800; letter-spacing: -.01em; color: var(--pt-text); text-decoration: none; overflow-wrap: anywhere; }
.pt-jobemp__name:hover { text-decoration: underline; }
.pt-jobemp__ads { margin: 2px 0 0; color: var(--pt-muted); font-size: 13.5px; }
.pt-jobemp__facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin: 16px 0 0; }
.pt-jobemp__facts > div { background: var(--pt-surface-2); border-radius: var(--pt-radius-sm); padding: 10px 12px; }
.pt-jobemp__facts dt { color: var(--pt-muted); font-size: 12.5px; }
.pt-jobemp__facts dd { margin: 2px 0 0; font-weight: 700; font-size: 14.5px; overflow-wrap: anywhere; }
.pt-jobemp__text { margin: 16px 0 0; font-size: 15px; line-height: 1.6; }
.pt-jobemp__gallery { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin-top: 16px; }
.pt-jobemp__gallery img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--pt-radius-sm); display: block; }
.pt-jobemp__actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
@media (max-width: 47.99em) {
	.pt-jobemp__facts { grid-template-columns: 1fr; }
	.pt-jobemp__gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.pt-jobemp__actions .pt-btn { width: 100%; }
}
/* HivePress sets these rows to 120 % text, centred, with wide padding: in a narrow side column
   "Prijavi se do:" and its date were squeezed until the date broke inside the year. The row keeps
   the box's text size and a label and its value wrap as whole pieces. */
.hp-listing--view-page .hp-listing__attributes--primary .hp-listing__attribute { display: flex; flex-wrap: wrap; gap: 2px 8px; align-items: baseline; overflow-wrap: anywhere; font-size: inherit; text-align: left; padding: 10px 14px; border-radius: var(--pt-radius-sm, 10px); }
.hp-listing--view-page .hp-listing__attributes--primary .hp-icon { color: var(--pt-orange); }
.hp-listing--view-page .hp-listing__attributes--primary .hp-listing__attribute--placa-plata { font-size: 20px; font-weight: 800; letter-spacing: -.01em; }

.hp-listing--view-page .hp-listing__actions--primary { display: grid; gap: 10px; }
.hp-listing--view-page .hp-listing__actions--primary .button { width: 100%; }
.hp-listing--view-page .hp-listing__action--report { justify-self: center; }

.hp-listing--view-page .hp-vendor { text-align: center; display: grid; gap: 8px; }
.hp-listing--view-page .hp-vendor__image img { width: 84px; height: 84px; object-fit: contain; border-radius: 16px; border: 1px solid var(--pt-border); background: #fff; }
.hp-listing--view-page .hp-vendor__name { font-size: 16px; margin: 0; }
.hp-listing--view-page .hp-vendor__name a { color: var(--pt-text); text-decoration: none; }
.hp-listing--view-page .hp-vendor__details { font-size: 13px; color: var(--pt-muted); }
.hp-listing--view-page .hp-vendor__footer { font-size: 14px; }
.hp-listing--view-page .hp-vendor__online-badge { display: none; }
.pt-employer-more { width: 100%; }
.pt-employer-more .pt-icon { width: 16px; height: 16px; }

/* Imported ads (HZZ): the import plugin prints its own blocks; here only the frame */
.pt-job-imported .phi-apply, .pt-job-imported .phi-details { background: var(--pt-surface); border: 1px solid var(--pt-border); border-radius: var(--pt-radius); padding: 18px; margin: 0 0 20px; }
.pt-job-imported .hp-page__sidebar .phi-apply { margin: 0; box-shadow: var(--pt-shadow); border-top: 4px solid var(--pt-hzz); }
.pt-job-imported .phi-apply__button { width: 100%; text-align: center; }
.pt-job-imported .phi-source { background: var(--pt-hzz-bg); color: var(--pt-hzz); border-radius: var(--pt-radius-sm); padding: 10px 14px; margin: 0 0 16px; font-size: 14px; }
.pt-job-imported .phi-source a { color: inherit; font-weight: 700; }
.pt-job-imported .phi-apply__button { border-radius: var(--pt-pill); }

/* Related ads */
.hp-template--listing-view-page .hp-page__footer { border-top: 1px solid var(--pt-border); padding-top: var(--pt-space-6); }

@media (max-width: 47.99em) {
	.pt-share--native .pt-share__btn { display: inline-flex; }
	.pt-share--native .pt-share__link, .pt-share--native .pt-share__label { display: none; }
	.hp-listing--view-page .hp-listing__attributes--secondary > .hp-row { grid-template-columns: 1fr; }
	.hp-listing--view-page .hp-page__topbar { justify-content: flex-start; }
	.hp-listing--view-page .hp-listing__actions--secondary { margin-left: 0; }
	.pt-jobbar--apply { display: flex; align-items: center; gap: 10px; position: fixed; left: 12px; right: 12px; bottom: calc(var(--pt-bnav-h) + 10px + env(safe-area-inset-bottom)); z-index: 800; background: var(--pt-orange-600); color: #fff; border-radius: var(--pt-pill); padding: 12px 16px; font-weight: 700; font-size: 15px; text-decoration: none; box-shadow: var(--pt-shadow-lg); }
	.pt-jobbar--apply span { flex: 1; }
	.pt-job-own .pt-foot { padding-bottom: calc(var(--pt-bnav-h) + 64px); }
}
@media (min-width: 48em) {
	.pt-jobbar--apply { display: none; }
}
