/* ==========================================================================
   LUPIK / REGIONER — HERO (regioner-hero.css)
   UWAGA: plik zakładam w: themes/regioner-buddyboss-child/assets/css/regioner-hero.css
   dlatego ścieżka do ikony lupa.svg to: ../../images/ikony/lupa.svg
   ========================================================================== */

/* =========================================
   GŁÓWNY KONTENER HERO
   ========================================= */
.lupik-hero{
  position: relative;
  z-index: 10; /* stacking context: overflow (panel "Zaawansowane" + suggest) nad treścią poniżej */
  width: 100%;
  padding: 22px 0 18px;
  overflow: visible; /* ważne: dropdown "Zaawansowane" ma wychodzić nad treść strony */
}

.lupik-hero--directory{
  padding: 70px 0 16px;
}

/* tło full width */
.lupik-hero .lupik-hero__bg{
  position: absolute;
  inset: 0;
  background-image: var(--lupik-hero-bg);
  background-size: cover;
  background-position: center bottom;
  background-repeat: no-repeat;
  z-index: 0;
  pointer-events: none;
}

/* overlay – jasny, delikatny (bez przyciemnienia) */
.lupik-hero .lupik-hero__bg::after{
  content:"";
  position:absolute;
  inset:0;
  background:
    linear-gradient(90deg,
      rgba(248,250,252,0.92) 0%,
      rgba(248,250,252,0.62) 13%,
      rgba(248,250,252,0.08) 100%);
  z-index: 1;
  pointer-events: none;
}

.regioner-hero__inner{
  position: relative;
  z-index: 2;
  width: min(1240px, calc(100% - 32px));
  margin: 0 auto;
}

.lupik-hero__grid{
  display: grid;
  gap: 18px;
  align-items: end;
  min-width: 0;
}

@media (min-width: 992px){
  .lupik-hero .lupik-hero__grid{
    grid-template-columns: 1fr;
    max-width: 1200px;
    margin: 0 auto;
  }
}

@media (max-width: 991px){
  .lupik-hero .lupik-hero__grid{
    grid-template-columns: 1fr;
    gap: 18px;
  }
}

/* =========================================
   TREŚĆ SLIDE
   ========================================= */
.lupik-hero__content-row{
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 18px;
  align-items: end;
  min-width: 0;
}

.lupik-hero--directory .lupik-hero__content-row{
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}

@media (max-width: 991px){
  .lupik-hero__content-row{
    grid-template-columns: 1fr;
    align-items: start;
  }
}

.lupik-hero__content-text{ 
  min-width: 0; 
  margin-bottom: 44px;
}

.lupik-hero[data-lupik-hero="1"] .lupik-hero__content-text{
  position: relative;
  margin-bottom: 0;
  padding-bottom: 58px;
}

.lupik-hero[data-lupik-hero="1"] .lupik-hero__title-main{
  line-height: 1.15;
  min-height: 2.3em;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}
.lupik-hero[data-lupik-hero="1"] .lupik-hero__title-main-inner{
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.lupik-hero[data-lupik-hero="1"] .lupik-hero__title-sub{
  min-height: 3em;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.lupik-hero--directory .lupik-hero__content-text{
  margin-bottom: 20px;
}

.lupik-hero__kicker{
  margin: 0 0 8px;
  font-size: 12px;
  font-weight: 400;
  color: #2e2e2e;
  letter-spacing: .04em;
  display: none;
}

.lupik-hero__title{
  margin: 0 0 10px;
  line-height: 1.08;
}

.lupik-hero__title-main{
  display: block;
  font-size: clamp(22px, 3.0vw, 40px);
  font-weight: 700;
  color: #0284c7;
}

.lupik-hero__title-sub{
  display: block;
  font-family: 'Manrope', sans-serif;
  font-size: clamp(14px, 1.7vw, 20px);
  font-weight: 300;
  color: #334155;
  margin-top: 12px;
  line-height: 1.5em;
}

.lupik-hero__actions{
  margin-top: 10px;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.lupik-hero[data-lupik-hero="1"] .lupik-hero__actions{
  position: absolute;
  right: 0;
  bottom: 0;
  margin-top: 0;
  flex-wrap: nowrap;
}

@media (max-width: 991px){
  .lupik-hero[data-lupik-hero="1"] .lupik-hero__content-text{
    padding-bottom: 28px;
  }

  .lupik-hero[data-lupik-hero="1"] .lupik-hero__title-main,
  .lupik-hero[data-lupik-hero="1"] .lupik-hero__title-sub {
    max-width: calc(100% - 90px);
  }

  .lupik-hero[data-lupik-hero="1"] .lupik-hero__actions{
    left: 0;
    right: 0;
    gap: 12px;
    justify-content: center;
    flex-wrap: nowrap;
  }
  .page-template-page-regioner-directory .lupik-hero[data-lupik-hero="1"] .lupik-hero__actions{
    bottom: 12px;
  }
  .lupik-hero[data-lupik-hero="1"] .lupik-hero__action{
    font-size: 12px;
    padding: 8px 12px;
    min-height: 36px;
    white-space: nowrap;
  }
}

.lupik-hero__actions.is-hidden{
  display: none;
}

.lupik-hero__action{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 9px 16px;
  border-radius: 8px;
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.2;
  border: 1px solid transparent;
  transition: transform .15s ease, box-shadow .2s ease, background-color .2s ease, border-color .2s ease;
}

.lupik-hero__action.is-hidden{
  display: none;
}

.lupik-hero__action--primary{
  background: var(--lupik-hero-cta-primary-bg, #0284c7);
  border-color: var(--lupik-hero-cta-primary-bg, #0284c7);
  color: var(--lupik-hero-cta-primary-text, #fff);
  box-shadow: 0 10px 20px rgba(2,132,199,.2);
}

.lupik-hero__action--secondary{
  background: var(--lupik-hero-cta-secondary-bg, rgba(255,255,255,.9));
  border-color: rgba(15,23,42,.2);
  color: var(--lupik-hero-cta-secondary-text, #0f172a);
}

.lupik-hero__action:hover{
  transform: translateY(-1px);
}

.lupik-hero__action[aria-disabled="true"]{
  opacity: .45;
  pointer-events: none;
}

.lupik-hero__content-media{
  min-width: 0;
  display: flex;
  justify-content: flex-end;
  align-items: flex-end;
}

.lupik-hero__content-media.is-hidden{ display:none; }

.lupik-hero__content-media img{
  width: 100%;
  height: auto;
  max-width: 201px;
  display: block;
  object-fit: contain;
  transform: translateY(6px);
  margin-bottom: -23px;
}

@media (max-width: 991px){
  .lupik-hero__content-media{ justify-content: flex-start; }
  .lupik-hero__content-media img{
    max-width: 220px;
    transform: none;
  }
}

.lupik-hero__kicker{
  color: var(--lupik-hero-kicker, rgba(255,255,255,0.78));
}

.lupik-hero__title-main{
  color: var(--lupik-hero-title-main, #0284c7);
}

.lupik-hero__title-sub{
  color: var(--lupik-hero-title-sub, #334155);
}


/* =========================================
   SLIDER DOTS
   ========================================= */
.lupik-hero__slider{ margin-top: 14px; }

.lupik-hero__dots{
  display: flex;
  gap: 8px;
}

.lupik-hero__dot{
  width: 9px;
  height: 9px;
  border-radius: 999px;
  border: 0;
  background: rgba(15,23,42,0.18);
  cursor: pointer;
  padding: 0;
}

.lupik-hero__dot.is-active{
  background: rgba(15,23,42,0.55);
}

/* =========================================
   HERO: WYSZUKIWARKA (variant="hero")
   - 1 linia: fraza szeroka, miasto węższe, lupa.svg jako submit
   - "Zaawansowane" pod spodem w dropdownie nad treścią strony (bez zmiany wysokości HERO)
   ========================================= */
.lupik-hero .lupik-hero__searchwrap{
  margin: 12px 0 10px;
  max-width: 920px;
}

@media (max-width: 991px){
  .lupik-hero .lupik-hero__searchwrap{ max-width: 100%; }
}

/* reset dla widgetu w hero */
.lupik-hero .regioner-search-widget{
  box-shadow: none;
  border-radius: 0;
  background: transparent;
  border: 0;
}

/* kontener hero wariantu jako punkt odniesienia dla dropdownu */
.lupik-hero .regioner-search-widget--hero{
  position: relative;
}

/* układ 1 linii */
.lupik-hero .regioner-search-widget--hero .regioner-search-widget__inline-row{
  display: flex;
  align-items: stretch;
  gap: 10px;
  flex-wrap: nowrap;
}

.lupik-hero .regioner-search-widget--hero .regioner-search-widget__inline-row--secondary{
  margin-top: 10px;
}

.lupik-hero .regioner-search-widget--hero .regioner-search-widget__inline-row--secondary
.regioner-search-widget__field--topic{
  flex: 1 1 100%;
  min-width: 0;
}

.lupik-hero .regioner-search-widget--hero .regioner-search-widget__topic-row{
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
}

.lupik-hero .regioner-search-widget--hero .regioner-search-widget__topics{
  margin-top: 10px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.lupik-hero .regioner-search-widget--hero .regioner-search-widget__topic-chip{
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 600;
  background: #e0f2fe;
  color: #0f172a;
  border: 1px solid rgba(125,211,252,0.85);
  box-shadow: 0 6px 16px rgba(2,132,199,0.12);
}

.lupik-hero .regioner-search-widget--hero .regioner-search-widget__topic-chip-remove{
  font-weight: 700;
  color: #0f172a;
}

.lupik-hero .regioner-search-widget--hero .regioner-search-widget__topic-picker{
  border: none;
  background: rgba(255,255,255,0.92);
  color: #0f172a;
  border-radius: 7px;
  padding: 10px 14px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
}

.lupik-hero .regioner-search-widget--hero .regioner-search-widget__topic-picker:hover{
  background: #0284c7;
  color: #fff;
}

/* fraza największa */
.lupik-hero .regioner-search-widget--hero .regioner-search-widget__field--keyword{
  flex: 1 1 320px;
  min-width: 220px;
}

/* miasto mniejsze + near-me w środku */
.lupik-hero .regioner-search-widget--hero .regioner-search-widget__field--city{
  flex: 1.4 1 420px;
  min-width: 260px;
  position: relative;
}

/* Homepage hero: większe pole frazy, węższe pole obszaru */
@media (min-width: 992px){
  .lupik-hero:not(.lupik-hero--directory) .regioner-search-widget--hero .regioner-search-widget__field--keyword{
    flex: 1.55 1 520px;
    min-width: 320px;
  }

  .lupik-hero:not(.lupik-hero--directory) .regioner-search-widget--hero .regioner-search-widget__field--city{
    flex: 0.85 1 300px;
    min-width: 220px;
  }
}

.lupik-hero .regioner-search-widget--hero .regioner-search-widget__actions{
  flex: 0 0 auto;
  display: flex;
  align-items: stretch;
}

/* inputy (czytelne, eleganckie) */
.lupik-hero .regioner-search-widget--hero .regioner-search-widget__input{
  width: 100%;
  min-height: 44px;
  border: none;
  background: rgba(255,255,255,0.92);
  border-radius: 7px;
  padding: 10px 14px;
  font-size: 14px;
  font-weight: 400;
  color: #0f172a;
  outline: none;
}

.js-rg-keyword, .js-rg-city {
  border: none!important;
}

.lupik-hero .regioner-search-widget--hero .regioner-search-widget__input:focus{
  border-color: rgba(2,132,199,0.55);
  box-shadow: 0 10px 22px rgba(2,132,199,0.10);
}


/* submit: ikonka lupa.svg */
.lupik-hero .regioner-search-widget--hero .regioner-search-widget__submit--heroicon{
  width: 46px;
  min-width: 46px;
  height: 44px;
  border: 1px solid rgba(15,23,42,0.12);
  border-radius: 14px;
  background: rgba(255,255,255,0.92);
  padding: 0;
  cursor: pointer;
  position: relative;
}

.lupik-hero .regioner-search-widget--hero .regioner-search-widget__submit--heroicon::before{
  content: "";
  position: absolute;
  inset: 0;
  margin: auto;
  width: 18px;
  height: 18px;
  background-color: #0f172a;
  -webkit-mask: url("../../images/ikony/lupa.svg") center / contain no-repeat;
  mask: url("../../images/ikony/lupa.svg") center / contain no-repeat;
  opacity: .92;
}

.lupik-hero .regioner-search-widget--hero .regioner-search-widget__submit--heroicon:hover{
  background: #0284c7!important;
}

.lupik-hero .regioner-search-widget--hero .regioner-search-widget__submit--heroicon:active{
  transform: scale(0.98);
}

/* labelki ukryte TYLKO w górnym wierszu (w panelu Zaawansowane zostają normalne) */
.lupik-hero .regioner-search-widget--hero .regioner-search-widget__inline-row .regioner-search-widget__label{
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0,0,0,0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

/* sugestie niech będą nad innymi elementami */
.lupik-hero .regioner-search-widget--hero .regioner-search-widget__suggest{
  position: absolute;
  /* Musi być nad panelem "Zaawansowane" (ma z-index: 80). */
  z-index: 120;
  background: #fff;
  border-radius: 8px;
  margin-top: 3px;
  width: 100%;
  max-width: 420px;
}

.js-area-suggest {
  right: 20px;
}

ul.regioner-search-widget__suggest-list {
  list-style: none;
  margin: 0;
}

button.regioner-search-widget__suggest-item {
  background-color: transparent;
  color: #2e2e2e;
  border: none;
}

.regioner-search-widget__suggest-item--area-helper-note,
.regioner-search-widget__suggest-item--area-helper-clear{
  width: 100% !important;
  max-width: none !important;
  text-align: left !important;
  border-radius: 8px;
  padding: 8px 10px;
  line-height: 1.3;
}

.regioner-search-widget__suggest-item--area-helper-note{
  background: #f1f5f9 !important;
  color: #94a3b8 !important;
  font-size: 11px;
  font-weight: 500;
  cursor: default !important;
}

.regioner-search-widget__suggest-item--area-helper-clear{
  margin-top: 4px;
  background: #e2e8f0 !important;
  color: #475569 !important;
  font-size: 12px;
  font-weight: 600;
}

.regioner-search-widget__suggest-item--area-helper-clear:hover,
.regioner-search-widget__suggest-item--area-helper-clear:focus{
  background: #d5dee9 !important;
  color: #334155 !important;
}

.regioner-search-widget__suggest-item:hover, 
.regioner-search-widget__suggest-item:focus {
    background-color: #f0f9ff!important; 
    color: #0284c7!important;            
    outline: none;       
    cursor: pointer;
  width: 100%;
  max-width: 420px;
  text-align: left;
}

.regioner-search-widget__suggest-sub {
  display: none;
}

li.regioner-search-widget__suggest-group {
  display: none;
}

.regioner-search-widget__field--city .regioner-search-widget__input.is-disabled-by-area,
.regioner-search-widget__field--city.is-disabled-by-area .regioner-search-widget__input{
  background: #f8fafc !important;
  border-color: rgba(148,163,184,0.35) !important;
  color: #94a3b8 !important;
  cursor: not-allowed;
}

.regioner-search-widget__field--city.is-disabled-by-area .regioner-search-widget__near-me-link{
  opacity: 0.45;
  cursor: not-allowed;
  pointer-events: none;
}

.regioner-search-widget__topic-chip {
  font-size: 12px;
  margin-right: 10px;
}

button.regioner-search-widget__topic-chip-remove {
  background: transparent;
    border: none;
    color: #b35858;
    padding: 0;
}

/* ====== Dropdown: Zaawansowane (bez zmiany wysokości HERO) ====== */
.lupik-hero .regioner-search-widget--hero .regioner-search-widget__hero-advanced{
  margin-top: 8px;
  text-align: right;
}

.lupik-hero .regioner-search-widget--hero .regioner-search-widget__hero-advanced-summary{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  user-select: none;
  font-size: 13px;
  font-weight: 700;
  color: #334155;
  list-style: none;
}

.lupik-hero .regioner-search-widget--hero .regioner-search-widget__hero-advanced-summary::-webkit-details-marker{ display:none; }

.lupik-hero .regioner-search-widget--hero .regioner-search-widget__hero-advanced-summary::after{
  content: "▾";
  font-size: 12px;
  opacity: .75;
  transform: translateY(-1px);
}

.lupik-hero .regioner-search-widget--hero .regioner-search-widget__hero-advanced[open] .regioner-search-widget__hero-advanced-summary::after{
  content: "▴";
}


/* body jest absolutny => NIE zwiększa wysokości widgetu/hero */
.lupik-hero .regioner-search-widget--hero .regioner-search-widget__hero-advanced-body{
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  right: 0;
  z-index: 80;
  background: rgba(248,250,252,0.98);
  border: 1px solid rgba(148,163,184,0.18);
  border-radius: 16px;
  box-shadow: 0 18px 48px rgba(15,23,42,0.14);
  padding: 16px 16px 22px 16px;
  text-align: left;
  margin: -10px 0 0 0;
}

/* Home desktop: keep "Zaawansowane" layer above feed thumb overlays (+N badge). */
@media (min-width: 992px){
  .page-template-page-regioner-home .lupik-hero .regioner-hero__inner{
    z-index: 120;
  }

  .page-template-page-regioner-home .lupik-hero .regioner-search-widget--hero .regioner-search-widget__hero-advanced-body{
    z-index: 160;
  }
}

/* siatka pól w panelu */
.lupik-hero .regioner-search-widget--hero .regioner-search-widget__hero-grid{
  display: grid;
  gap: 14px;
}

.lupik-hero .regioner-search-widget--hero .regioner-search-widget__hero-row{
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 12px;
  align-items: end;
}

/* wiersz: obszar + akcje */
.lupik-hero .regioner-search-widget--hero .regioner-search-widget__hero-row--filters{
  grid-template-columns: minmax(0, 1fr) auto;
}

/* wiersz: kategorie (pełna szerokość) */
.lupik-hero .regioner-search-widget--hero .regioner-search-widget__hero-row--cats{
  grid-template-columns: minmax(0, 1fr);
}

/* label w panelu: normalnie, czytelnie */
.lupik-hero .regioner-search-widget--hero .regioner-search-widget__hero-advanced-body .regioner-search-widget__label{
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: #334155;
  margin: 0 0 6px;
}

/* select w panelu */
.lupik-hero .regioner-search-widget--hero .regioner-search-widget__select{
  width: 100%;
  min-height: 46px;
  border: 1px solid rgba(148,163,184,0.45);
  background: #ffffff;
  border-radius: 10px;
  padding: 10px 12px;
  font-size: 14px;
  font-weight: 500;
  color: #0f172a;
}

.lupik-hero .regioner-search-widget--hero .regioner-search-widget__hero-advanced-body
.regioner-search-widget__input{
  min-height: 46px;
  border-radius: 10px;
  border: 1px solid rgba(148,163,184,0.45);
  background: #ffffff;
}

.lupik-hero .regioner-search-widget--hero .regioner-search-widget__hero-advanced-body
.regioner-search-widget__input:focus,
.lupik-hero .regioner-search-widget--hero .regioner-search-widget__hero-advanced-body
.regioner-search-widget__select:focus{
  border-color: rgba(59,130,246,0.55);
  box-shadow: 0 0 0 3px rgba(59,130,246,0.15);
  outline: none;
}

/* checkbox (delikatnie) */
.lupik-hero .regioner-search-widget--hero .regioner-search-widget__checkbox{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
  font-size: 12px;
  font-weight: 400;
  color: #64748b;
}

.lupik-hero .regioner-search-widget--hero .regioner-search-widget__checkbox input{
  transform: translateY(0.5px);
}

/* akcje w panelu: Wyczyść + Szukaj */
.lupik-hero .regioner-search-widget--hero .regioner-search-widget__hero-actions{
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  padding-top: 2px;
}

.lupik-hero .regioner-search-widget--hero .regioner-search-widget__hero-actions--inline{
  padding-top: 0;
  align-self: end;
}

.lupik-hero .regioner-search-widget--hero .regioner-search-widget__clear{
  border: 1px solid rgba(15,23,42,0.10);
  background: rgba(15,23,42,0.03);
  color: #334155;
  border-radius: 7px;
  padding: 9px 12px;
  font-size: 13px;
  font-weight: 400;
  cursor: pointer;
}

.lupik-hero .regioner-search-widget--hero .regioner-search-widget__clear:hover{
  background: rgba(15,23,42,0.06);
}

.lupik-hero .regioner-search-widget--hero .regioner-search-widget__submit--hero-advanced-text{
  min-height: 40px;
  border: 1px solid #0284c7;
  background: #0284c7;
  color: #ffffff;
  border-radius: 7px;
  padding: 0 16px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}

.lupik-hero .regioner-search-widget--hero .regioner-search-widget__submit--hero-advanced-text:hover{
  background: #0270a9;
  border-color: #0270a9;
}

/* ====== Modal: wybór kategorii ====== */
.lupik-hero .regioner-search-widget--hero .regioner-search-widget__modal,
.regioner-search-widget__modal{
  position: fixed;
  inset: 0;
  display: none;
  z-index: 2147483000;
}

.lupik-hero .regioner-search-widget--hero .regioner-search-widget__modal--open,
.regioner-search-widget__modal--open{
  display: block;
}

.lupik-hero .regioner-search-widget--hero .regioner-search-widget__modal-overlay,
.regioner-search-widget__modal-overlay{
  position: absolute;
  inset: 0;
  background: rgba(15,23,42,0.35);
  backdrop-filter: blur(2px);
  z-index: 1;
}

.lupik-hero .regioner-search-widget--hero .regioner-search-widget__modal-dialog,
.regioner-search-widget__modal-dialog{
  position: relative;
  background: #fff;
  width: min(980px, calc(100vw - 32px));
  max-height: min(80vh, 760px);
  margin: 6vh auto 0;
  border-radius: 22px;
  box-shadow: 0 30px 90px rgba(15,23,42,0.22);
  padding: 24px 24px 18px;
  overflow: hidden;
  z-index: 2;
}

.lupik-hero .regioner-search-widget--hero .regioner-search-widget__modal-head-actions,
.regioner-search-widget__modal-head-actions{
  position: absolute;
  top: 12px;
  right: 14px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  z-index: 3;
}

.lupik-hero .regioner-search-widget--hero .regioner-search-widget__modal-save,
.regioner-search-widget__modal-save{
  height: 38px;
  padding: 0 12px;
  border-radius: 10px;
  border: 1px solid #0284c7;
  background: #0284c7;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
}

.lupik-hero .regioner-search-widget--hero .regioner-search-widget__modal-save:hover,
.regioner-search-widget__modal-save:hover{
  background: #0270a9;
  border-color: #0270a9;
}

.lupik-hero .regioner-search-widget--hero .regioner-search-widget__modal-close,
.regioner-search-widget__modal-close{
  position: absolute;
  top: 12px;
  right: 14px;
  width: 38px;
  height: 38px;
  border-radius: 12px;
  border: none;
  background: none;
  color: #0f172a;
  font-size: 24px;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  box-shadow: none;
}

.lupik-hero .regioner-search-widget--hero .regioner-search-widget__modal-head-actions .regioner-search-widget__modal-close,
.regioner-search-widget__modal-head-actions .regioner-search-widget__modal-close{
  position: static;
  top: auto;
  right: auto;
  flex: 0 0 38px;
}

.lupik-hero .regioner-search-widget--hero .regioner-search-widget__modal-close:hover,
.regioner-search-widget__modal-close:hover{
  background: #0284c7;
  color: #fff;
}

.lupik-hero .regioner-search-widget--hero .regioner-search-widget__modal-head h3,
.regioner-search-widget__modal-head h3{
  margin: 0 0 6px;
  font-size: 20px;
  color: #0f172a;
}

.lupik-hero .regioner-search-widget--hero .regioner-search-widget__modal-head,
.regioner-search-widget__modal-head{
  padding-right: 150px;
}

.lupik-hero .regioner-search-widget--hero .regioner-search-widget__modal-head p,
.regioner-search-widget__modal-head p{
  margin: 0 0 14px;
  color: #64748b;
  font-size: 13px;
}

.lupik-hero .regioner-search-widget--hero .regioner-search-widget__modal-tools,
.regioner-search-widget__modal-tools{
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  margin: 6px 0 16px;
}

.lupik-hero .regioner-search-widget--hero .regioner-search-widget__modal-search,
.regioner-search-widget__modal-search{
  flex: 1 1 240px;
}

.lupik-hero .regioner-search-widget--hero .regioner-search-widget__modal-search-input,
.regioner-search-widget__modal-search-input{
  width: 100%;
  min-height: 42px;
  border-radius: 10px;
  border: 1px solid rgba(148,163,184,0.35);
  padding: 8px 12px;
  font-size: 13px;
  color: #0f172a;
  background: #fff;
}

.lupik-hero .regioner-search-widget--hero .regioner-search-widget__modal-selected,
.regioner-search-widget__modal-selected{
  flex: 2 1 360px;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.lupik-hero .regioner-search-widget--hero .regioner-search-widget__modal-selected-label,
.regioner-search-widget__modal-selected-label{
  font-size: 12px;
  font-weight: 600;
  color: #64748b;
}

.lupik-hero .regioner-search-widget--hero .regioner-search-widget__modal-selected-list,
.regioner-search-widget__modal-selected-list{
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 6px 8px;
  border-radius: 12px;
  background: #f8fafc;
  border: 1px solid rgba(148,163,184,0.18);
  min-height: 40px;
  flex: 1 1 220px;
}

.lupik-hero .regioner-search-widget--hero .regioner-search-widget__modal-selected-chip,
.regioner-search-widget__modal-selected-chip{
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border-radius: 10px;
  padding: 4px 8px;
  font-size: 12px;
  background: #e0f2fe;
  color: #0f172a;
  border: 1px solid rgba(125,211,252,0.8);
}

.lupik-hero .regioner-search-widget--hero .regioner-search-widget__modal-selected-remove,
.regioner-search-widget__modal-selected-remove{
  border: 0;
  background: transparent;
  font-size: 14px;
  line-height: 1;
  cursor: pointer;
  color: #0f172a;
}

.lupik-hero .regioner-search-widget--hero .regioner-search-widget__modal-grid,
.regioner-search-widget__modal-grid{
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px 18px;
  padding-right: 6px;
  overflow: auto;
  max-height: calc(80vh - 140px);
}

.lupik-hero .regioner-search-widget--hero .regioner-search-widget__modal-group h4,
.regioner-search-widget__modal-group h4{
  margin: 0 0 10px;
  font-size: 14px;
  color: #0f172a;
  border-bottom: 1px solid rgba(148,163,184,0.25);
  padding-bottom: 6px;
}

.lupik-hero .regioner-search-widget--hero .regioner-search-widget__modal-group-title,
.regioner-search-widget__modal-group-title{
  display: flex;
  align-items: center;
  gap: 8px;
}

.lupik-hero .regioner-search-widget--hero .regioner-search-widget__modal-group-icon,
.regioner-search-widget__modal-group-icon{
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 36px;
}

.lupik-hero .regioner-search-widget--hero .regioner-search-widget__modal-group-icon img,
.regioner-search-widget__modal-group-icon img{
  width: 36px;
  height: 36px;
  object-fit: contain;
  display: block;
}

.lupik-hero .regioner-search-widget--hero .regioner-search-widget__modal-group-text,
.regioner-search-widget__modal-group-text{
  font-weight: 700;
}

.lupik-hero .regioner-search-widget--hero .regioner-search-widget__modal-list,
.regioner-search-widget__modal-list{
  display: grid;
  gap: 6px;
}

.lupik-hero .regioner-search-widget--hero .regioner-search-widget__modal-item,
.regioner-search-widget__modal-item{
  display: flex;
  align-items: center;
  gap: 8px;
  text-align: left;
  border: 1px solid transparent;
  background: #f8fafc;
  color: #0f172a;
  border-radius: 10px;
  padding: 8px 10px;
  font-size: 13px;
  cursor: pointer;
}

.lupik-hero .regioner-search-widget--hero .regioner-search-widget__modal-item-icon,
.regioner-search-widget__modal-item-icon{
  width: 20px;
  height: 20px;
  border-radius: 6px;
  background: #fff;
  border: 1px solid rgba(148,163,184,0.25);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 20px;
}

.lupik-hero .regioner-search-widget--hero .regioner-search-widget__modal-item-icon img,
.regioner-search-widget__modal-item-icon img{
  width: 16px;
  height: 16px;
  object-fit: contain;
  display: block;
}

.lupik-hero .regioner-search-widget--hero .regioner-search-widget__modal-item-label,
.regioner-search-widget__modal-item-label{
  display: inline-block;
  min-width: 0;
}

.lupik-hero .regioner-search-widget--hero .regioner-search-widget__modal-item.is-hidden,
.regioner-search-widget__modal-item.is-hidden{
  display: none;
}

.lupik-hero .regioner-search-widget--hero .regioner-search-widget__modal-group.is-hidden,
.regioner-search-widget__modal-group.is-hidden{
  display: none;
}

.lupik-hero .regioner-search-widget--hero .regioner-search-widget__modal-item--child,
.regioner-search-widget__modal-item--child{
  background: #ffffff;
  border-color: rgba(148,163,184,0.18);
}

.lupik-hero .regioner-search-widget--hero .regioner-search-widget__modal-item:hover,
.regioner-search-widget__modal-item:hover{
  border-color: rgba(2,132,199,0.35);
  background: #eef7ff;
  color: #0f172a;
}

.lupik-hero .regioner-search-widget--hero .regioner-search-widget__modal-item.is-selected,
.regioner-search-widget__modal-item.is-selected{
  background: #e0f2fe;
  color: #0f172a;
  border-color: #7dd3fc;
}

.lupik-hero .regioner-search-widget--hero .regioner-search-widget__modal-empty,
.regioner-search-widget__modal-empty{
  color: #64748b;
  font-size: 13px;
}

/* responsive */
@media (max-width: 820px){
  .lupik-hero .regioner-search-widget--hero .regioner-search-widget__inline-row{
    flex-wrap: wrap;
  }
  .lupik-hero .regioner-search-widget--hero .regioner-search-widget__field--keyword{
    flex: 1 1 100%;
    min-width: 0;
  }
  .lupik-hero .regioner-search-widget--hero .regioner-search-widget__field--city{
    flex: 1 1 calc(100% - 56px);
    min-width: 0;
  }

  .lupik-hero .regioner-search-widget--hero .regioner-search-widget__hero-row,
  .lupik-hero .regioner-search-widget--hero .regioner-search-widget__hero-row--filters{
    grid-template-columns: 1fr;
  }
  .lupik-hero .regioner-search-widget--hero .regioner-search-widget__hero-row--cats{
    grid-template-columns: 1fr;
  }

  .lupik-hero .regioner-search-widget--hero .regioner-search-widget__topic-row{
    grid-template-columns: 1fr;
  }
}

/* ===========================================================
   HERO — Zaawansowane: wymuś 2 kolumny (bez łamania)
   =========================================================== */

/* 1) Wymuś GRID na wierszach (to jest klucz, inaczej template-columns nie działa) */
.lupik-hero .regioner-search-widget--hero .regioner-search-widget__hero-row{
  display: grid !important;
  align-items: end;
  column-gap: 10px;
  row-gap: 10px;
  min-width: 0;
}

/* 2) Powiat + Miasto + Promień */
.lupik-hero .regioner-search-widget--hero .regioner-search-widget__hero-row--addr{
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr) 140px;
  align-items: end;
}

/* 3) Obszar + Akcje: elastyczne pole + stały blok akcji */
.lupik-hero .regioner-search-widget--hero .regioner-search-widget__hero-row--filters{
  grid-template-columns: minmax(0, 1fr) auto;
}

/* 3b) Kategorie: jedna kolumna */
.lupik-hero .regioner-search-widget--hero .regioner-search-widget__hero-row--cats{
  grid-template-columns: minmax(0, 1fr);
}

/* 4) Pozwól dzieciom się kurczyć (częsty winowajca łamania) */
.lupik-hero .regioner-search-widget--hero .regioner-search-widget__hero-row > .regioner-search-widget__field{
  min-width: 0 !important;
}

/* 5) Inputy/selecty nie mogą mieć ukrytego min-width */
.lupik-hero .regioner-search-widget--hero .regioner-search-widget__hero-advanced-body
.regioner-search-widget__input,
.lupik-hero .regioner-search-widget--hero .regioner-search-widget__hero-advanced-body
.regioner-search-widget__select{
  width: 100%;
  min-width: 0 !important;
  box-sizing: border-box;
}

.lupik-hero .regioner-search-widget--hero .regioner-search-widget__field--city-adv{
  min-width: 0;
  position: relative;
}

.lupik-hero .regioner-search-widget--hero .regioner-search-widget__field--area{
  position: relative;
}

.lupik-hero .regioner-search-widget--hero .regioner-search-widget__field--city-adv .regioner-search-widget__city-wrap{
  position: relative;
}

.lupik-hero .regioner-search-widget--hero .regioner-search-widget__field--city-adv .regioner-search-widget__input{
  padding-right: 40px;
}

.lupik-hero .regioner-search-widget--hero .regioner-search-widget__input.js-rg-location[readonly]{
  cursor: pointer;
}

.lupik-hero .regioner-search-widget--hero .regioner-search-widget__near-me-link{
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  width: 24px;
  height: 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  background: #e0f2fe;
  border-radius: 8px;
  padding: 0;
  cursor: pointer;
  font-size: 0;
  line-height: 0;
}

.lupik-hero .regioner-search-widget--hero .regioner-search-widget__near-me-link::before{
  content: "";
  display: block;
  width: 14px;
  height: 14px;
  margin: 0;
  background-color: #0f172a;
  -webkit-mask: url("../../images/ikony/lokalizacja.svg") center / contain no-repeat;
  mask: url("../../images/ikony/lokalizacja.svg") center / contain no-repeat;
  opacity: .85;
}

.lupik-hero .regioner-search-widget--hero .regioner-search-widget__field--radius-compact .regioner-search-widget__select{
  min-width: 0;
  padding-left: 10px;
  padding-right: 10px;
}

.lupik-hero .regioner-search-widget--hero .regioner-search-widget__field--area .regioner-search-widget__suggest,
.lupik-hero .regioner-search-widget--hero .regioner-search-widget__field--city-adv .regioner-search-widget__suggest{
  left: 0;
  right: auto;
  width: 100%;
  max-width: none;
}

/* 6) Jeśli gdzieś jest Select2 w środku (czasem dla kategorii/obszaru) – też niech nie wymusza szerokości */
.lupik-hero .regioner-search-widget--hero .regioner-search-widget__hero-advanced-body
.select2,
.lupik-hero .regioner-search-widget--hero .regioner-search-widget__hero-advanced-body
.select2-container{
  width: 100% !important;
  min-width: 0 !important;
}

/* 7) Mobile: dopiero tu łam do 1 kolumny */
@media (max-width: 820px){
  .lupik-hero .regioner-search-widget--hero .regioner-search-widget__hero-row--addr,
  .lupik-hero .regioner-search-widget--hero .regioner-search-widget__hero-row--filters{
    grid-template-columns: 1fr;
  }
  .lupik-hero .regioner-search-widget--hero .regioner-search-widget__hero-row--cats{
    grid-template-columns: 1fr;
  }
}
