/* Posao Theme: base look of HivePress's own markup (pages, buttons, forms, popups).
   ListingHive used to style these. Account pages get their own pass in step 5. */

/* Page frame */
.hp-page { max-width: var(--pt-content); margin: 0 auto; padding: var(--pt-space-5) 20px; }
.hp-page__title { font-size: clamp(24px, 3vw, 34px); letter-spacing: -.02em; }
.hp-page__footer { margin-top: var(--pt-space-6); }
.hp-section__title { font-size: 20px; letter-spacing: -.02em; margin: 0 0 14px; }

/* Buttons */
.hp-page .button, .hp-modal .button, .hp-form__button, button.hp-form__button, .pt-site input[type="submit"].button {
	display: inline-flex; align-items: center; justify-content: center; gap: var(--pt-space-2);
	border: 1px solid var(--pt-border); border-radius: var(--pt-pill); padding: 10px 18px;
	font: inherit; font-weight: 700; font-size: var(--pt-text-sm); text-decoration: none; cursor: pointer;
	background: var(--pt-surface); color: var(--pt-text);
}
.hp-page .button--primary, .hp-modal .button--primary, .hp-form__button.button--primary, .hp-form__button.button-primary, .pt-site input[type="submit"].button--primary { background: var(--pt-orange-600); border-color: var(--pt-orange-600); color: #fff; }
.hp-page .button--primary:hover, .hp-modal .button--primary:hover, .hp-form__button.button-primary:hover { background: var(--pt-orange-700); border-color: var(--pt-orange-700); }
.hp-page .button--secondary, .hp-modal .button--secondary { background: var(--pt-navy); border-color: var(--pt-navy); color: #fff; }
.hp-page .button--large, .hp-modal .button--large { padding: 12px 22px; font-size: 15px; }
.hp-link { color: var(--pt-muted); text-decoration: none; font-size: var(--pt-text-sm); font-weight: 600; }
.hp-link:hover { color: var(--pt-text); }

/* Forms */
.hp-form__field { margin-bottom: var(--pt-space-4); }
.hp-field__label, .hp-form label { display: block; font-size: var(--pt-text-sm); font-weight: 600; margin-bottom: 6px; }
.hp-form input[type="text"], .hp-form input[type="email"], .hp-form input[type="password"], .hp-form input[type="number"], .hp-form input[type="url"], .hp-form input[type="tel"], .hp-form input[type="search"], .hp-form textarea, .hp-form select {
	width: 100%; max-width: 100%; min-height: 44px; padding: 10px 12px; border: 1px solid var(--pt-border); border-radius: var(--pt-radius-sm);
	font: inherit; background: var(--pt-surface); color: var(--pt-text);
}
.hp-form input:focus, .hp-form textarea:focus, .hp-form select:focus { outline: 0; border-color: var(--pt-navy); box-shadow: 0 0 0 3px var(--pt-navy-50); }
.hp-form__messages { font-size: var(--pt-text-sm); margin-bottom: var(--pt-space-3); }
.hp-form__footer { margin-top: var(--pt-space-4); }
.hp-form__actions { display: flex; flex-direction: column; gap: 8px; margin-top: var(--pt-space-3); font-size: var(--pt-text-sm); }

/* Dropdowns HivePress and WooCommerce build with select2 */
.select2-container--default .select2-selection--single, .select2-container--default .select2-selection--multiple { height: auto; min-height: 44px; border: 1px solid var(--pt-border); border-radius: var(--pt-radius-sm); background: var(--pt-surface); }
.select2-container--default .select2-selection--single .select2-selection__rendered { padding: 10px 36px 10px 12px; line-height: 22px; color: var(--pt-text); }
.select2-container--default .select2-selection--single .select2-selection__arrow { top: 0; right: 8px; height: 100%; }
.select2-container--default .select2-selection--multiple .select2-selection__rendered { display: flex; flex-wrap: wrap; gap: 6px; padding: 7px 8px; }
.select2-container--default .select2-selection--multiple .select2-selection__choice { margin: 0; border: 0; border-radius: 6px; padding: 4px 8px; background: var(--pt-navy-50); color: var(--pt-text); font-size: 13px; font-weight: 600; }
.select2-container--default.select2-container--focus .select2-selection--multiple, .select2-container--default.select2-container--open .select2-selection--single, .select2-container--default .select2-selection--single:focus { outline: 0; border-color: var(--pt-navy); box-shadow: 0 0 0 3px var(--pt-navy-50); }
.select2-dropdown { border: 1px solid var(--pt-border); border-radius: var(--pt-radius-sm); overflow: hidden; background: var(--pt-surface); color: var(--pt-text); box-shadow: var(--pt-shadow-lg); font-size: 15px; }
.select2-container--default .select2-results__option { padding: 8px 12px; }
.select2-container--default .select2-results__option--highlighted[aria-selected], .select2-container--default .select2-results__option--highlighted[data-selected] { background: var(--pt-navy); color: #fff; }
.select2-container--default .select2-results__option[aria-selected="true"], .select2-container--default .select2-results__option[data-selected="true"] { background: var(--pt-navy-50); color: var(--pt-text); }
.select2-container--default .select2-search--dropdown .select2-search__field { border: 1px solid var(--pt-border); border-radius: 8px; padding: 8px 10px; background: var(--pt-surface); color: var(--pt-text); }

/* Login, registration and password pages and popups */
.hp-form input[type="checkbox"], .hp-form input[type="radio"] { flex: none; width: 18px; height: 18px; margin: 0 6px 0 0; vertical-align: -3px; accent-color: var(--pt-navy); }
.hp-social-links { margin-bottom: var(--pt-space-4); }
.hp-social-links .gsi-material-button { display: flex; align-items: center; width: 100%; max-width: none; height: 44px; border: 1px solid var(--pt-border); border-radius: var(--pt-pill); background: var(--pt-surface); color: var(--pt-text); font-family: inherit; font-size: var(--pt-text-sm); font-weight: 700; text-decoration: none; box-shadow: none; }
.hp-social-links .gsi-material-button:hover { border-color: var(--pt-navy); box-shadow: none; }
.hp-social-links .gsi-material-button .gsi-material-button-contents { font-family: inherit; font-weight: 700; }
.hp-page .hp-form--narrow.hp-block { max-width: 420px; margin-inline: auto; padding: 28px; background: var(--pt-surface); border: 1px solid var(--pt-border); border-radius: var(--pt-radius); box-shadow: var(--pt-shadow); }
.hp-page__content:has(> .hp-form--narrow) > .hp-page__title { max-width: 420px; margin-inline: auto; }
.hp-form--narrow .hp-form__button { width: 100%; }
.hp-form--narrow .hp-form__actions { align-items: center; text-align: center; }
@media (max-width: 47.99em) {
	.hp-page .hp-form--narrow.hp-block { padding: 20px 16px; }
}

/* Popups (login, registration, message, report). Only while open in the popup layer:
   HivePress also uses the same element inline, for example around the account menu. */
.fancybox__content.hp-modal, .fancybox-content.hp-modal, .fancybox-slide > .hp-modal { background: var(--pt-surface); color: var(--pt-text); border-radius: var(--pt-radius); padding: 28px; width: 420px; max-width: calc(100vw - 32px); box-shadow: var(--pt-shadow-lg); }
.hp-modal__title { font-size: 20px; margin: 0 0 var(--pt-space-4); }
.hp-modal .hp-form__button { width: 100%; }

/* Account pages: the frame. The side menu is HivePress's account menu, so plugin items show by role.
   Each page's own content gets its pass in step 5. */
.hp-template--user-account-page .hp-row { row-gap: 16px; }
.hp-template--user-account-page .hp-widget--user-account-menu { margin: 0; }
.hp-menu--user-account ul { list-style: none; margin: 0; padding: 8px; display: grid; gap: 2px; background: var(--pt-surface); border: 1px solid var(--pt-border); border-radius: var(--pt-radius); box-shadow: var(--pt-shadow); }
.hp-menu--user-account a { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 12px; border-radius: 8px; text-decoration: none; color: var(--pt-text); font-weight: 600; font-size: 14.5px; }
.hp-menu--user-account a:hover { background: var(--pt-surface-2); }
.hp-menu--user-account .hp-menu__item--current a { background: var(--pt-navy-50); color: var(--pt-navy); }
[data-theme="dark"] .hp-menu--user-account .hp-menu__item--current a { color: #c9cdff; }
.hp-menu--user-account small { background: var(--pt-orange-600); color: #fff; border-radius: var(--pt-pill); min-width: 20px; padding: 0 6px; font-size: 12px; font-weight: 700; text-align: center; line-height: 20px; }
.hp-menu--user-account .hp-menu__item--user-logout a { color: var(--pt-muted); }

.hp-template--user-account-page .hp-page__content { min-width: 0; }
.hp-template--user-account-page .hp-page__title { margin: 0 0 16px; }
.hp-table { width: 100%; border-collapse: collapse; background: var(--pt-surface); border: 1px solid var(--pt-border); border-radius: var(--pt-radius); overflow: hidden; box-shadow: var(--pt-shadow); font-size: 15px; }
.hp-table th, .hp-table td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--pt-border); vertical-align: middle; }
.hp-table tr:last-child td { border-bottom: 0; }
.hp-table th { background: var(--pt-surface-2); font-size: 13px; }
.hp-table a { color: var(--pt-text); font-weight: 600; text-decoration: none; }
.hp-table a:hover { text-decoration: underline; }

/* Phone: the account menu is a row of chips that scrolls sideways (as in the mockup),
   instead of HivePress's button that opens the menu in a popup. */
@media (max-width: 47.99em) {
	.hp-template--user-account-page .hp-button--user-account-menu { display: none !important; }
	.hp-template--user-account-page .hp-widget--user-account-menu, .hp-template--user-account-page #user_account_menu_modal { display: block !important; }
	.hp-menu--user-account ul { display: flex; gap: 6px; overflow-x: auto; padding: 6px; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
	.hp-menu--user-account ul::-webkit-scrollbar { display: none; }
	.hp-menu--user-account li { flex: none; }
	.hp-menu--user-account a { padding: 8px 12px; white-space: nowrap; border: 1px solid var(--pt-border); border-radius: var(--pt-pill); }
	.hp-menu--user-account .hp-menu__item--current a { border-color: var(--pt-navy); }
	.hp-table { display: block; overflow-x: auto; }
}

/* Menus HivePress prints inside pages (tabs on an ad the user owns) */
.hp-menu--tabbed ul { display: flex; gap: 6px; list-style: none; margin: 0; padding: 0; flex-wrap: wrap; }
.hp-menu--tabbed a { display: block; padding: 8px 14px; border-radius: var(--pt-pill); text-decoration: none; font-weight: 600; font-size: var(--pt-text-sm); color: var(--pt-muted); }
.hp-menu--tabbed .hp-menu__item--current a { background: var(--pt-navy-50); color: var(--pt-navy); }
/* HivePress pulls its tab row out of the bar with negative margins and draws a line under the current tab;
   the tabs are pills here, so the row keeps its own height and the next row no longer runs into it. */
.hp-page__topbar .hp-menu--tabbed { margin-top: 0; margin-bottom: 0; }
.hp-page__topbar .hp-menu--tabbed .hp-menu__item { padding: 0; }
.hp-page__topbar .hp-menu--tabbed .hp-menu__item::before { content: none; }

/* Job cards wherever HivePress prints them */
.hp-listing--view-block { position: relative; background: var(--pt-surface); border: 1px solid var(--pt-border); border-radius: var(--pt-radius); box-shadow: var(--pt-shadow); padding: 16px; height: 100%; display: flex; flex-direction: column; gap: 10px; }
.hp-listing--view-block:hover { border-color: var(--pt-orange); }
.hp-listing--view-block .hp-listing__header:empty { display: none; }
.hp-listing--view-block .hp-listing__header { margin: 0; }
/* HivePress pins this badge to the corner of the card's picture (absolute, 32 px round). The cards
   have no picture here, so it landed on the title. It is a small label above the title instead;
   its word comes from the badge's own title attribute ("Istaknuto"). */
.hp-listing--view-block .hp-listing__featured-badge { display: inline-flex; align-items: center; gap: 5px; position: static; width: auto; height: auto; margin: 0 0 8px; background: var(--pt-orange-50); color: var(--pt-orange-700); border-radius: 6px; padding: 3px 8px; font-size: 12px; font-weight: 700; line-height: 1.3; }
.hp-listing--view-block .hp-listing__featured-badge::after { content: attr(title); }
.hp-listing--view-block .hp-listing__featured-badge .hp-icon { font-size: 11px; }
.hp-listing--view-block .hp-listing__content { display: flex; flex-direction: column; gap: 8px; }
.hp-listing--view-block .hp-listing__title { font-size: 16px; line-height: 1.3; margin: 0; letter-spacing: -.01em; }
.hp-listing--view-block .hp-listing__title a { color: var(--pt-text); text-decoration: none; }
/* The whole card is the link: the title's link is stretched over it; other links sit above. */
.hp-listing--view-block .hp-listing__title a::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.hp-listing--view-block a:not(.hp-listing__title a), .hp-listing--view-block .hp-listing__actions { position: relative; z-index: 1; }
.hp-listing--view-block .hp-listing__details--primary { font-size: 13px; color: var(--pt-muted); display: flex; flex-wrap: wrap; gap: 4px 12px; align-items: center; margin: 0; }
.hp-listing--view-block .hp-listing__details--primary a { color: var(--pt-muted); text-decoration: none; }
.hp-listing--view-block .hp-listing__location { display: inline-flex; align-items: center; gap: 4px; }
.hp-listing--view-block .hp-listing__location .pt-icon { width: 14px; height: 14px; color: var(--pt-orange); }
.hp-listing--view-block .hp-listing__attributes { margin: 0; font-size: 13px; color: var(--pt-muted); }
.hp-listing--view-block .hp-listing__attributes > .hp-row { display: block; margin: 0; }
.hp-listing--view-block .hp-listing__attributes > .hp-row > * { width: auto; max-width: none; padding: 0; }
.hp-listing--view-block .hp-listing__attributes:empty { display: none; }
.hp-listing--view-block .hp-listing__footer { margin-top: auto; padding-top: 10px; border-top: 1px solid var(--pt-border); display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.hp-listing--view-block .hp-listing__footer .hp-listing__attributes--primary { display: flex; flex-wrap: wrap; gap: 4px 12px; font-weight: 700; color: var(--pt-text); }
.hp-listing--view-block .hp-listing__footer .hp-icon { color: var(--pt-orange); }
.hp-listing--view-block .hp-listing__action--favorite { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--pt-border); color: var(--pt-muted); text-decoration: none; }
.hp-listing--view-block .hp-listing__action--favorite:hover, .hp-listing--view-block .hp-listing__action--favorite.hp-state-active { color: var(--pt-orange-600); border-color: var(--pt-orange); }
.hp-listing--view-block .phi-card { display: inline-flex; align-items: center; gap: 6px; flex-basis: 100%; }
.phi-badge { background: var(--pt-hzz-bg); color: var(--pt-hzz); border-radius: 6px; padding: 1px 7px; font-size: 11px; font-weight: 800; letter-spacing: .04em; }
.hp-grid > .hp-row { row-gap: 16px; }
.hp-grid__item { margin-bottom: 16px; }

/* The applications plugin's apply card takes its colours from these (it falls back to its old ones) */
:root {
	--pea-accent: var(--pt-orange-600);
	--pea-accent-hover: var(--pt-orange-700);
	--pea-border: var(--pt-border);
	--pea-bg: var(--pt-surface);
	--pea-text: var(--pt-text);
	--pea-radius: var(--pt-radius);
}
