/* ============================================================
   KosovaJob redesign — Thirrje / calls listing (rfq.php)
   No dedicated Figma frame exists for /rfq. Derived from the token
   sheet + the two approved siblings this page is built out of:
     - new-ui/home.css      → the listing engine (.listCnt grids, .jobListHeaders
                              bars, .creativeSpaceCnt, .filtersHomeFilterTag);
                              the card is the shared KJJobCard (cards.css) since
                              2026-10-21 — see the note below.
     - new-ui/companies.css → the centered hero + search + empty-state
                              treatment of a public directory page.
   Loads on top of new-ui/tokens.css + base.css only (never style-v3.css).

   IMPORTANT: every legacy class below is emitted either by rfq.php's own
   loop or by the SHARED include homesearch.php / the shared AJAX endpoint
   updateFilterOptions.php — which must not be edited. They are re-skinned
   here, never renamed. The three filter <select>s are replaced wholesale by
   the AJAX response, so any label chrome must live on the WRAPPER
   (.jobSearchAreaLocation_* ::before) and never inside it.

   2026-10-21 — THE ADS ARE THE HOMEPAGE'S CARD (operator, production: "the
   design of the job ads here is not the same as on the rest of the site"):
   rfq.php prints kj-jobcard.php's KJJobCard (styled by new-ui/cards.css
   alone) in the homepage's two grids. The legacy tile rules that lived in
   "Listing" are gone; what is left there only lays the grids out, copied
   from new-ui/home.css (tests/kj-rfq-cards-2026.test.php compares them).
   ============================================================ */

/* ---------- Content container width ----------
   PDF p83 + p134 (both 1512-wide frames): the CONTENT container runs
   x=100..1411 => 1312px (gutter 100). Measured by raster row-scan:
     p83  y=215..389  -> first/last non-bg x = 100/1412 on 51 of 59 rows
     p134 y=700..999  -> first/last non-bg x = 100/1411 on 57 of 60 rows
   The page chrome uses a DIFFERENT, wider container in the same frames
   (p134 header y=46: x=74..1437), so this is scoped to rfq's own sections
   and never touches headerArea_new.php / footer_new.php.
   box-sizing is border-box globally, and base.css .kj-container carries
   `padding: 0 24px` at >=1100 — so 1312 content needs max-width 1360. The
   inherited --kj-container (1336) would leave only 1288 of content.
   2026-10-21: the HERO only. The list (.kj-main) sits in the chrome's own
   column (base.css .kj-nav-wrap--pub ~ * .kj-container: 1200 / --kj-b3-gutter)
   — the homepage's — so a card is exactly as wide as there (368 at 1440). */
.kj-rfq-hero > .kj-container { max-width: 1360px; }

/* ---------- Page background wash (same treatment as home.css) ---------- */
.kj-bg {
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 1100px;
  overflow: hidden;
  pointer-events: none;
  z-index: -1;
}
.kj-bg::before, .kj-bg::after {
  content: '';
  position: absolute;
  width: 682px;
  height: 682px;
  border-radius: 50%;
  background: var(--kj-gradient);
  filter: blur(182px);
  opacity: .08;
}
.kj-bg::before { top: 80px; left: -267px; }
.kj-bg::after  { top: 50px; right: -227px; }

/* ---------- Hero ---------- */
.kj-rfq-hero {
  position: relative;
  text-align: center;
  padding: 48px 0 8px;
}
.kj-rfq-hero .kj-container { position: relative; }
.kj-rfq-hero__title {
  max-width: 900px;
  margin: 0 auto;
  font-weight: 700;
  font-size: 48px;
  line-height: 1.18;
  color: #1E1E1E;
}
.kj-rfq-hero__title em {
  font-style: normal;
  background: var(--kj-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}
.kj-rfq-hero__sub {
  margin: 18px auto 0;
  max-width: 720px;
  font-weight: 600;
  font-size: 19px;
  line-height: 1.45;
  color: #919191;
}

/* free-text search pill (base .kj-search) — GET ?q= back onto /rfq */
.kj-rfq-search {
  max-width: 860px;
  margin: 32px auto 0;
  text-align: left;
}
.kj-rfq-search__ico { flex: 0 0 auto; }
.kj-rfq-search input { font-weight: 500; color: #383838; }
.kj-rfq-search input::placeholder { color: #919191; font-weight: 400; }

/* ---------- Applied-filter tags (legacy .filtersHomeCnt markup) ---------- */
.filtersHomeCnt {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
  margin: 24px auto 0;
  max-width: 980px;
}
.filtersHomeCntH {
  font-weight: 600;
  font-size: 13px;
  color: #383838;
}
.filtersHomeFilterTag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 12px;
  background: var(--kj-scrim-primary);
  border: 1px solid var(--kj-primary);
  color: var(--kj-primary);
  border-radius: var(--kj-r-pill);
  font-size: 13px;
  font-weight: 600;
}
.removeFilter { width: 14px; height: 14px; cursor: pointer; position: relative; flex: 0 0 auto; }
.removeFilter::before, .removeFilter::after {
  content: ''; position: absolute; top: 6px; left: 0; width: 14px; height: 2px;
  background: var(--kj-primary); border-radius: 2px;
}
.removeFilter::before { transform: rotate(45deg); }
.removeFilter::after  { transform: rotate(-45deg); }

/* ---------- Filter panel (SHARED include homesearch.php) ---------- */
.kj-rfq-filterbar {
  display: flex;
  justify-content: center;
  margin-top: 20px;
}
.kj-rfq-filterbtn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 48px;
  padding: 0 26px;
  border-radius: var(--kj-r-pill);
  background: var(--kj-surface-warm);
  border: 1px solid var(--kj-stroke);
  box-shadow: var(--kj-shadow-xs);
  font-weight: 600;
  font-size: 15px;
  color: #383838;
}
.kj-rfq-filterbtn:hover { border-color: var(--kj-primary); color: var(--kj-primary); }
.kj-rfq-filterbtn svg { transition: transform .2s ease; }
.kj-rfq-filterbtn.is-open { border-color: var(--kj-primary); color: var(--kj-primary); }
.kj-rfq-filterbtn.is-open svg { transform: rotate(180deg); }

.kj-rfq-filters {
  max-width: 1100px;
  margin: 20px auto 0;
  text-align: left;
}

.searchAreaCnt {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr)) auto;
  gap: 14px 16px;
  align-items: end;
  padding: 22px 24px 24px;
  background: var(--kj-surface-warm);
  border: 1px solid var(--kj-stroke);
  border-radius: var(--kj-r-xl);
  box-shadow: var(--kj-shadow-card);
}
.searchAreaCntH {
  grid-column: 1 / -1;
  font-weight: 700;
  font-size: 12px;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--kj-primary);
}

/* field wrapper. The <select> inside is swapped wholesale by
   updateFilterOptions.php, so the field label is a wrapper pseudo-element. */
.jobSearchAreaLocation {
  position: relative;
  min-width: 0;
  padding-top: 20px;
}
.jobSearchAreaLocation::before {
  position: absolute;
  top: 0; left: 2px;
  font-weight: 600;
  font-size: 12px;
  line-height: 1.2;
  color: #383838;
}
.jobSearchAreaLocation_jobPosition::before { content: 'Pozita e punës'; }
.jobSearchAreaLocation_cityID::before      { content: 'Qyteti'; }
.jobSearchAreaLocation_orariID::before     { content: 'Orari'; }
/* the English page (2026-10-22; rfq.php prints <html lang="en"> from the lang cookie): the site's own English for these boxes —
   homesearch.php's placeholders and 404.php's labels. The Albanian rules above are untouched. */
html[lang="en"] .jobSearchAreaLocation_jobPosition::before { content: 'Job position'; }
html[lang="en"] .jobSearchAreaLocation_cityID::before      { content: 'City'; }
html[lang="en"] .jobSearchAreaLocation_orariID::before     { content: 'Schedule'; }
.jobSearchAreaLocation.chosenActive { z-index: 40; }

/* pre-chosen fallback (the split-second before chosen.jquery.js runs, and
   for anyone with JS-heavy blockers) */
.jobSearchAreaLocation select.selectInput {
  width: 100%;
  height: 52px;
  padding: 8px 12px;
  border: 1px solid var(--kj-stroke);
  border-radius: var(--kj-r-md);
  background: #fff;
  font-size: 14px;
  color: #383838;
}

/* search button (legacy input.submitNone — NOT inside a <form>; its click
   handler in homesearch.php rewrites the query string) */
.submitNone {
  height: 52px;
  padding: 0 34px;
  border: 0;
  border-radius: var(--kj-r-pill);
  background: var(--kj-gradient);
  color: #fff;
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
  transition: filter .15s ease;
  -webkit-appearance: none;
  appearance: none;
}
.submitNone:hover { filter: brightness(1.05); }

.filterMoreTxt {
  grid-column: 1 / -1;
  font-size: 13px;
  line-height: 1.5;
  color: #919191;
}

/* "SHPALL KONKURS" (legacy .publishJobOpeningLink) */
.kj-rfq-publish { display: flex; justify-content: center; margin-top: 18px; }
.publishJobOpeningLink {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 44px;
  padding: 0 24px;
  border-radius: var(--kj-r-pill);
  border: 1px solid var(--kj-secondary);
  color: var(--kj-primary);
  font-weight: 600;
  font-size: 14px;
  letter-spacing: .02em;
  transition: background-color .15s ease;
}
.publishJobOpeningLink:hover { background: var(--kj-scrim-primary); }

/* ---------- Chosen re-skin (admin/css/chosen.css is the base) ---------- */
.searchAreaCnt .chosen-container {
  width: 100% !important;      /* beats chosen's inline width, incl. inside a
                                  collapsed mobile panel where it measures 0 */
  font-family: var(--kj-font);
  font-size: 14px;
  display: block;
}
.chosen-container-multi .chosen-choices {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  min-height: 52px;
  padding: 8px 12px;
  overflow: visible;
  border: 1px solid var(--kj-stroke);
  border-top: 1px solid var(--kj-stroke);
  border-radius: var(--kj-r-md);
  background: #fff;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.chosen-container-active .chosen-choices {
  border-color: var(--kj-primary);
  box-shadow: 0 0 0 3px rgba(255, 80, 103, 0.10);
}
.chosen-container-multi .chosen-choices li { float: none; }
.chosen-container-multi .chosen-choices li.search-choice {
  margin: 0;
  padding: 5px 26px 5px 11px;
  border: 1px solid var(--kj-primary);
  border-top: 1px solid var(--kj-primary);
  border-radius: var(--kj-r-pill);
  background: var(--kj-scrim-primary);
  background-image: none;
  box-shadow: none;
  color: var(--kj-primary);
  font-weight: 600;
  font-size: 12px;
  line-height: 1.35;
}
.chosen-container-multi .chosen-choices li.search-choice .search-choice-close {
  top: 50%;
  right: 8px;
  margin-top: -6px;
  width: 12px;
  height: 12px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none'%3E%3Cpath d='M6 6l12 12M18 6L6 18' stroke='%23FF5067' stroke-width='3' stroke-linecap='round'/%3E%3C/svg%3E") center / 10px no-repeat;
}
.chosen-container-multi .chosen-choices li.search-choice .search-choice-close:hover {
  background-position: center;
  opacity: .7;
}
.chosen-container-multi .chosen-choices li.search-field { flex: 1; min-width: 60px; }
.chosen-container-multi .chosen-choices li.search-field input[type="text"] {
  height: 30px;
  margin: 0;
  font-family: var(--kj-font);
  font-size: 14px;
  color: #919191;
}
.chosen-container .chosen-drop {
  margin-top: 6px;
  border: 1px solid var(--kj-stroke);
  border-top: 1px solid var(--kj-stroke);
  border-radius: var(--kj-r-md);
  box-shadow: 0 12px 32px rgba(16, 24, 40, 0.14);
  overflow: hidden;
}
.chosen-container .chosen-results {
  margin: 6px 4px 6px 0;
  padding: 0 0 0 6px;
  max-height: 280px;
  color: #383838;
}
.chosen-container .chosen-results li {
  padding: 9px 12px;
  border-radius: var(--kj-r-sm);
  font-size: 14px;
  line-height: 1.35;
}
.chosen-container .chosen-results li.highlighted {
  background: var(--kj-scrim-primary);
  color: var(--kj-primary);
}
.chosen-container .chosen-results li.group-result {
  padding: 14px 12px 6px;
  font-weight: 700;
  font-size: 11px;
  letter-spacing: .05em;
  text-transform: uppercase;
  color: #919191;
}
.chosen-container .chosen-results li.group-option { padding-left: 20px; }
.chosen-container .chosen-results li.no-results { background: transparent; color: #919191; }
.chosen-container-multi .chosen-drop .result-selected { color: var(--kj-text-disabled); }
/* legacy touch affordance injected by rfq.php's JS — chosen's own outside-click
   close covers it in the redesign, so it stays out of the layout */
.chosenCloseBtn { display: none; }

/* ---------- Top banner (Revive 791x250, desktop only) ---------- */
.kj-topad { display: flex; justify-content: center; padding: 28px 20px 0; }
.kj-topad .topAdsLeft {
  border-radius: var(--kj-r-lg);
  overflow: hidden;
  box-shadow: var(--kj-shadow-xs);
  max-width: 100%;
}
.kj-topad iframe { display: block; max-width: 100%; border: 0; }

/* ---------- Listing ---------- */
.kj-main { padding: 32px 0 0; }

.kj-rfq-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}
.kj-rfq-count { font-size: 15px; color: #919191; }
.kj-rfq-count b { color: #1E1E1E; font-weight: 700; }
.kj-rfq-clear {
  font-weight: 600;
  font-size: 14px;
  color: var(--kj-primary);
}
.kj-rfq-clear:hover { text-decoration: underline; }

/* ---- the cards: the homepage's grids (2026-10-21) ----
   Every ad is the shared KJJobCard (kj-jobcard.php; styled by new-ui/cards.css
   ALONE — no tile rule of this sheet reaches it). What follows only lays the
   grids out and is new-ui/home.css's, declaration for declaration: the section
   bars (an <h2> inside), the featured grid (`home` tiles + the ad tile pinned
   to the third column) and the standard grid (`compact` tiles). The legacy
   tile's rules (.jobListCnts > a, .jobListImage, .jobListTitle, the star, the
   old pill, the "load more" pill) went with the legacy tile. */

/* section header bar (legacy .jobListHeaders — home.css) */
.jobListHeaders {
  margin: 0 0 16px;
  padding: 14px 24px;
  background: #fff;
  border: 1px solid var(--kj-b3-stroke, #E2E7EF);
  border-radius: var(--kj-b1-r-md, 14px);
  box-shadow: var(--kj-shadow-sm, 0 2px 6px rgba(4, 30, 66, .07));
}
.jobListHeaders h2 {
  margin: 0;
  font-family: var(--kj-font, 'Plus Jakarta Sans', system-ui, sans-serif);
  font-size: var(--kj-fs-h3, 22px);
  font-weight: 700;
  line-height: var(--kj-lh-snug, 1.25);
  letter-spacing: -.01em;
  color: var(--kj-coral-600, #EE4753);
  text-align: center;
}
/* "Konkurset Standard" starts 40 px under the featured grid — the homepage's
   standard section (.kj-b1sec--std, padding-top 40) */
.listCnt.kj-feat + .jobListHeaders_s { margin-top: 40px; }

/* the two grids (home.css) */
.listCnt.kj-feat,
.listCnt.kj-std {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: stretch;
}
.listCnt.kj-feat { gap: 16px; }
.listCnt.kj-std  { gap: 14px; }

/* in-list ad tile (legacy .creativeSpaceCnt, Revive zone 1) — the featured
   grid only, pinned to the third column over three rows (home.css) */
.creativeSpaceCnt {
  position: relative;
  overflow: hidden;
  border-radius: 18px;
  background: var(--kj-b3-page, #F6F8FB);
  box-shadow: var(--kj-shadow-sm, 0 2px 6px rgba(4, 30, 66, .07));
  transition: transform .25s var(--kj-ease-out, cubic-bezier(.22, .61, .36, 1)), box-shadow .25s;
  min-height: 120px;
}
.creativeSpaceCnt:hover { transform: translateY(-3px); box-shadow: var(--kj-shadow-lg, 0 18px 40px -12px rgba(4, 30, 66, .18)); }
.creativeSpaceCnt ins,
.creativeSpaceCnt iframe,
.creativeSpaceCnt img,
.creativeSpaceCnt a { display: block; width: 100%; height: 100%; border: 0; }
.creativeSpaceCnt img { object-fit: cover; }
.kj-feat .creativeSpaceCnt { grid-column: 3; grid-row: span 3; }
.kj-feat .creativeSpaceCnt { align-self: stretch; }

/* ---------- Empty state ---------- */
.kj-rfq-empty {
  background: var(--kj-surface-warm);
  border: 1px solid var(--kj-stroke);
  border-radius: var(--kj-r-lg);
  box-shadow: var(--kj-shadow-xs);
  text-align: center;
  padding: 64px 24px;
}
.kj-rfq-empty__ico {
  width: 64px;
  height: 64px;
  margin: 0 auto 20px;
  border-radius: 50%;
  background: var(--kj-scrim-primary);
  display: flex;
  align-items: center;
  justify-content: center;
}
.kj-rfq-empty h2 {
  font-weight: 700;
  font-size: 22px;
  color: #1E1E1E;
}
.kj-rfq-empty p {
  margin: 10px auto 24px;
  max-width: 460px;
  font-size: 15px;
  line-height: 1.6;
  color: #919191;
}

/* ---------- Legacy mobile app banner (rendered by footer_new.php) ---------- */
.appBottomImgCnt { position: fixed; bottom: 0; left: 0; right: 0; z-index: 900; }
.appBottomImgCnt img { width: 100%; display: block; }
.appBottomImgCnt .closeNotifier {
  position: absolute; top: -14px; right: 10px;
  width: 28px; height: 28px; border-radius: 50%;
  background: var(--kj-text) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none'%3E%3Cpath d='M6 6l12 12M18 6L6 18' stroke='white' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E") center / 12px no-repeat;
  cursor: pointer;
}

/* ---------- Responsive ---------- */
@media (min-width: 1100px) {
  .kj-rfq-hero { padding-top: 56px; }
  .kj-rfq-hero__title { font-size: 52px; }
  /* the panel is always open on desktop — the toggle is mobile-only */
  .kj-rfq-filterbar { display: none; }
  .kj-rfq-filters { display: block !important; }
}
@media (max-width: 1099px) {
  /* collapsed by default on tablet/phone; .is-open is set by rfq.php's toggle */
  .kj-rfq-filters { display: none; }
  .kj-rfq-filters.is-open { display: block; }
  .searchAreaCnt { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .searchAreaCnt .submitNone { grid-column: 1 / -1; width: 100%; }
  /* the homepage's grids on a tablet (home.css) */
  .listCnt.kj-feat,
  .listCnt.kj-std { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .kj-feat .creativeSpaceCnt { grid-column: 2; grid-row: span 2; }
}
@media (max-width: 759px) {
  .kj-rfq-hero { padding: 32px 0 4px; }
  .kj-rfq-hero__title { font-size: 32px; }
  .kj-rfq-hero__sub { font-size: 16px; margin-top: 14px; }
  .kj-rfq-search { margin-top: 24px; height: 58px; padding-left: 18px; }
  .kj-rfq-search__ico { width: 20px; height: 20px; }

  .filtersHomeCnt { margin-top: 18px; }
  .searchAreaCnt { grid-template-columns: 1fr; padding: 18px 16px 20px; border-radius: var(--kj-r-lg); }

  .kj-main { padding-top: 24px; }
  /* the homepage's grids and bars on a phone (home.css): one column, the ad
     tile at its own ratio, the bars a glassy strip with a softer, smaller h2 */
  .listCnt.kj-feat,
  .listCnt.kj-std { grid-template-columns: minmax(0, 1fr); }
  .kj-feat .creativeSpaceCnt { grid-column: 1; grid-row: auto; aspect-ratio: 640 / 532; min-height: 0; }
  .jobListHeaders { padding: 10px 16px; background: rgba(255, 255, 255, .32); border-color: rgba(255, 255, 255, .7); box-shadow: none; -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
  .jobListHeaders h2 { font-size: 17px; color: rgba(238, 71, 83, .85); }
  .listCnt.kj-feat + .jobListHeaders_s { margin-top: 28px; }   /* home.css .kj-b1sec--std on a phone */
  .kj-rfq-empty { padding: 48px 20px; }
  .kj-rfq-empty h2 { font-size: 19px; }
}

@media (prefers-reduced-motion: reduce) {
  .creativeSpaceCnt { transition: none !important; }   /* home.css */
}
