/* --- Układ pełnoekranowy (TT3) --- */
html, body { height: 100%; margin: 0; }


/* Header / Footer bez dodatkowych odstępów */
.wp-site-blocks > .wp-block-template-part:first-child,
.wp-site-blocks > .wp-block-template-part:last-child {
  margin: 0 !important;
  padding: 0 !important;
}

/* Treść jako elastyczna kolumna */
.wp-site-blocks > main,
.wp-site-blocks > .wp-block-group,
.wp-site-blocks > .wp-block-post-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 0;
}

/* Wrapper mapy + mapa */
.nm-wrap {
  position: relative;
  flex: 1;
  display: flex;
  min-height: 0;
}
#neuromapa {
  flex: 1;
  width: 100%;
  height: 100%;   /* mapa wypełnia nm-wrap */
  min-height: 85vh; /* bezpieczne minimum na wypadek braku flex */
}

/* ===========================
   POPUP – układ wg wytycznych
   =========================== */

/* Tło + bazowy kolor tekstu (Leaflet/Mapbox) */
.leaflet-popup-content-wrapper,
.leaflet-popup-tip,
.mapboxgl-popup-content,
.mapboxgl-popup-tip {
  background-color: #f2f3e7 !important;
  color: #123f44 !important;
  border-radius: 10px;
  border: 1px solid rgba(0,0,0,0.1);
  box-shadow: 0 6px 18px rgba(0,0,0,0.18);
}

.neuropopup {
  color: #123f44;
  font-family: system-ui, sans-serif;
  font-size: 14px;
  line-height: 1.5;
  position: relative;
}

/* Wyrównanie zawartości Leaflet wewnątrz okienka */
.leaflet-popup-content {
  margin: 10px 12px; /* wewnętrzny padding */
}

/* Wiersz 1: tytuł (lewo) + odznaki (prawo) */
.neuropopup .nm-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: nowrap;         /* uniemożliwia przerzucenie ikon pod tytuł */
}

/* Nazwa miejsca (h3 fallback zostawiony ze starego pliku) */
.neuropopup .nm-title,
.neuropopup h3 {
  margin: 0;
  padding-right: 48px;   /* przestrzeń na dwie ikony */
  font-size: 18px;
  font-weight: 800;
  line-height: 1.2;
  color: #123f44;
}

/* Odznaki – same ikony, bez tekstu */
.neuropopup .nm-badges {
 position: absolute;
  top: 0px;              /* dopasuj w razie potrzeby (wysokość tytułu) */
  right: 10px;
  display: flex;
  gap: 6px;
  align-items: center;
  font-size: 0;          /* reset spacji między emoji */
}


/* Wiersz 2: ikony cech pod tytułem */
.neuropopup .nm-features {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 10px;
  margin: 2px 0 8px 0;
}
.neuropopup .nm-feature,
.neuropopup .nm-features img,
.neuropopup .nm-features svg,
.neuropopup .nm-features i {
  width: 18px;
  height: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #123f44;
  fill: #123f44;
}

/* Wiersz 3: opis */
.neuropopup .nm-desc {
  margin: 6px 0 8px 0;
  font-size: 14px;
  line-height: 1.5;
  color: #123f44;
}

/* Wiersz 4: adres – z ikonką markera (CSS ::before) */
.neuropopup .nm-address {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin: 0 0 8px 0;
  font-weight: 600;
}
.neuropopup .nm-address::before {
  content: "";
  display: inline-block;
  width: 16px;
  height: 16px;
  margin-right: 4px;
  background-image: url('/wp-content/uploads/neuromapa-cechy/pinezka.png');
  background-size: contain;
  background-repeat: no-repeat;
  vertical-align: middle;
}
/* Wiersz 5: ikony – social + WWW (na samym dole) */
.neuropopup .nm-socials {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 12px;
  margin-top: 6px;
}
.neuropopup .nm-social,
.neuropopup .nm-website {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  color: #123f44;
}
.neuropopup .nm-social .nm-icon,
.neuropopup .nm-website .nm-icon {
  width: 18px;
  height: 18px;
  display: inline-block;
  color: #123f44;
  fill: #123f44;
}
.neuropopup .nm-social:hover,
.neuropopup .nm-website:hover {
  text-decoration: underline;
}

/* ===========================
   POPUP – ikony cech z tytułami
   =========================== */

/* kontener */
.neuropopup .nm-features {
  margin-top: 12px !important;
  margin-bottom: 10px !important;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 12px;
  justify-content: flex-start;
  align-items: flex-start;
}

/* każdy element (ikona + podpis) */
.neuropopup .nm-feature-item {
  flex: 0 0 calc(25% - 10px);  /* 4 elementy w rzędzie (100% / 5 = 20%) */
  max-width: calc(25% - 10px);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

/* same ikonki cech */
.neuropopup .nm-feature {
  width: 36px !important;
  height: 36px !important;
  border-radius: 50%;
  display: inline-block;
  object-fit: contain;
  margin-bottom: 4px;
  transition: transform 0.2s ease;
}

/* podpis pod ikoną – lepsze łamanie */
.neuropopup .nm-feature-label {
  font-size: 10px;
  line-height: 1.15;
  text-align: center;
  max-width: 68px;          /* ciut szerzej na tekst */
  hyphens: auto;            /* pozwól przeglądarce ładnie dzielić wyraz */
  word-break: normal;       /* nie łam w dowolnym miejscu (to robiło "ch" w osobnym wierszu) */
  overflow-wrap: break-word;
}

/* lekki efekt przy najechaniu */
.neuropopup .nm-feature:hover {
  transform: scale(1.1);
}

@media (max-width: 480px) {
  .neuropopup .nm-feature-item {
    flex: 0 0 calc(50% - 10px); /* 2 kolumny w rzędzie */
    max-width: calc(50% - 10px);
  }
}

/*
/* ===========================
   Panel filtrów
   =========================== */

/* --- Panel filtrów --- */
#neuromapa-filters {
  position: absolute;
  top: 10px; left: 10px;
  z-index: 1000;
  display: flex; gap: 12px;
  background: rgba(242, 243, 231, 0.7);
  border: 2px solid rgba(0,0,0,0.2);
  border-radius: 4px;
  padding: 6px;
  font-family: system-ui, sans-serif;
  font-size: 13px;
  box-shadow: 0 1px 5px rgba(0,0,0,0.3);
}
#neuromapa-filters fieldset { border: none; margin: 0; padding: 0; background: transparent; min-width: 180px; }
#neuromapa-filters legend {
  font-weight: 600; font-size: 13px;
  background: #f4f4f4; border: 1px solid rgba(0,0,0,0.2);
  border-radius: 3px; padding: 4px 8px; cursor: pointer;
  display: flex; justify-content: space-between; align-items: center;
}
#neuromapa-filters legend::after { content: "▶"; margin-left: 6px; font-size: 11px; transition: transform .3s ease; }
#neuromapa-filters fieldset.open legend::after { transform: rotate(90deg); }
#neuromapa-filters .filter-options { max-height: 0; overflow: hidden; transition: max-height .3s ease; padding: 0 6px; }
#neuromapa-filters fieldset.open .filter-options { max-height: 400px; padding: 6px; }
#neuromapa-filters label { display: block; margin: 3px 0; }
#neuromapa-filters input[type="checkbox"] { margin-right: 5px; accent-color: #1976d2; }
.filter-actions { margin-bottom: 4px; }
.filter-actions button {
  background: #fff; border: 1px solid rgba(0,0,0,0.2);
  border-radius: 3px; padding: 2px 6px; font-size: 12px; cursor: pointer;
}
.filter-actions button:hover { background: #f0f0f0; }

@media (max-width: 900px) {
  #neuromapa-filters { flex-direction: column; max-width: 90%; }
}
*/

/* ===========================
   /zglos-strone/ – motyw kolorów i ozdobna linia
   =========================== */

/* 1) Ograniczamy stylowanie do tej jednej strony (po ID) */
body.page-id-29 {
  background: #123f44;         /* tło całej strony */
  color: #f2f3e7;              /* domyślny kolor tekstu */
}

/* 2) Dekoracyjna przerywana linia w prawym górnym rogu (SVG jako tło) */
body.page-id-29::after {
  content: "";
  position: fixed;             /* trzyma się rogu ekranu */
  top: 0;
  right: 0;
  width: 60vw;                 /* wielkość można dostroić */
  height: 100vh;
  pointer-events: none;
  background:
    url("data:image/svg+xml;utf8,\
<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 600 400'>\
  <path d='M360,0 \
           C330,22 300,42 295,75 \
           C290,108 330,116 342,86 \
           C354,58 320,46 308,70 \
           C296,96 332,124 372,142 \
           S500,170 560,190 \
           S600,510 800,200' \
        fill='none' stroke='%23f2f3e7' stroke-width='4' \
        stroke-dasharray='10 10' stroke-linecap='round'/>\
</svg>") no-repeat right top;
  background-size: contain;
  opacity: 0.9;
  z-index: 0;
}

/* 3) Upewniamy się, że treść jest nad dekoracją */
body.page-id-29 .wp-site-blocks,
body.page-id-29 main,
body.page-id-29 .entry-content {
  position: relative;
  z-index: 1;
}

/* ===========================
   Formularz ACF na stronie /zglos-strone/
   =========================== */

body.page-id-29 .acf-form {
  background: transparent !important;
  color: #f2f3e7 !important;
}

/* Etkiety */
body.page-id-29 .acf-label label {
  color: #f2f3e7 !important;
  font-weight: 600;
}

/* Pola tekstowe, URL, e-mail, selecty, textarea */
body.page-id-29 .acf-field input[type="text"],
body.page-id-29 .acf-field input[type="email"],
body.page-id-29 .acf-field input[type="url"],
body.page-id-29 .acf-field input[type="number"],
body.page-id-29 .acf-field input[type="tel"],
body.page-id-29 .acf-field select,
body.page-id-29 .acf-field textarea {
  background-color: #f2f3e7 !important;  /* jasne tło */
  color: #123f44 !important;             /* ciemny tekst */
  border: 2px solid #123f44 !important; 
  border-radius: 4px !important;
  padding: 10px 12px !important;
  box-shadow: none !important;
  width: 100%;
}

/* Placeholdery */
body.page-id-29 .acf-field input::placeholder,
body.page-id-29 .acf-field textarea::placeholder {
  color: #123f44 !important;
  opacity: .7;
}

/* Checkboxy / radio */
body.page-id-29 .acf-field input[type="checkbox"],
body.page-id-29 .acf-field input[type="radio"] {
  accent-color: #123f44 !important;
}

/* Focus – żółta poświata */
body.page-id-29 .acf-field input:focus,
body.page-id-29 .acf-field select:focus,
body.page-id-29 .acf-field textarea:focus {
  outline: 2px solid #f2f307 !important;
  outline-offset: 1px;
}

/* Odstęp między opisem a ikonami cech sensorycznych */
body.page-id-29 .acf-field[data-name="kategoria_miejsca"] .description,
body.page-id-29 .acf-field[data-name="cechy_sensoryczne"] .description,
body.page-id-29 .acf-field[data-name="lokalizacja"] .description,
body.page-id-29 .acf-field[data-name="wyroznienie_medal"] .description, 
body.page-id-29 .acf-field[data-name="wyroznienie_serduszko"] .description {
    margin-bottom: 18px !important; 
    color: #f2f3e7 !important;
}

/* Przycisk wysyłania */
body.page-id-29 .acf-form input[type="Zgłoś Miejsce"],
body.page-id-29 .acf-form button[type="Zgłoś Miejsce"] {
  background: #f2f3e7 !important;
  color: #123f44 !important;
  border: none !important;
  border-radius: 6px !important;
  padding: 10px 18px !important;
  font-weight: 700 !important;
  cursor: pointer !important;
}

body.page-id-29 .acf-form input[type="Zgłoś Miejsce"]:hover,
body.page-id-29 .acf-form button[type="Zgłoś Miejsce"]:hover {
  filter: brightness(0.95);
}

/* Pola "grupowe" i repeaterowe – lekkie marginesy */
body.page-id-29 .acf-field {
  margin-bottom: 14px;
}

/* Ukryj techniczny hidden input ACF, aby nie zajmował miejsca w siatce */
body.page-id-29 .acf-checkbox-list input[type="hidden"],
body.page-id-29 .acf-field-checkbox input[type="hidden"] {
  display: none !important;
}

/* Jeśli siatka ma gap między elementami, usuń też ewentualny „pusty slot” */
body.page-id-29 .acf-checkbox-list {
  display: flex !important;
  flex-wrap: wrap;
  gap: 10px;
  align-items: flex-start;
}

/* Ukrycie ikony globu w polach ACF typu URL */
.acf-url .acf-icon.-globe,
.acf-input-wrap.acf-url .acf-icon.-globe {
    display: none !important;
}

/* Ikona przed etykietą – Facebook */
body.page-id-29 .acf-field[data-name="facebook_url"] > .acf-label label::before {
  content: "";
  display: inline-block;
  width: 20px;
  height: 20px;
  margin-right: 8px;
  background-image: url("/wp-content/uploads/neuromapa-cechy/logo_fb_jasne.svg");
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
  vertical-align: middle;
}

/* Ikona przed etykietą – Instagram */
body.page-id-29 .acf-field[data-name="instagram_url"] > .acf-label label::before {
  content: "";
  display: inline-block;
  width: 20px;
  height: 20px;
  margin-right: 8px;
  background-image: url("/wp-content/uploads/neuromapa-cechy/logo_IG_jasne.svg");
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
  vertical-align: middle;
}

/* Ikona przed etykietą – WWW (np. pinezka/globus) */
body.page-id-29 .acf-field[data-name="www"] > .acf-label label::before {
  content: "";
  display: inline-block;
  width: 20px;
  height: 20px;
  margin-right: 8px;
  background-image: url("/wp-content/uploads/neuromapa-cechy/pinezka_jasna.svg");
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
  vertical-align: middle;
}


/* =============================================== */
/* USUNIĘCIE KRESEK (Linii) MIĘDZY POLAMI ACF     */
/* Dotyczy wszystkich pól formularza ACF frontend  */
/* =============================================== */

/* 1. Główne obramowanie pól */
.acf-field {
  border: none !important;
  border-top: none !important;
  border-bottom: none !important;
  background: transparent !important;
  box-shadow: none !important;
  position: relative;
}

/* 2. ACF rysuje kreski pseudo-elementem ::before – wyłącz go */
.acf-field::before {
  content: none !important;
  display: none !important;
  background: none !important;
  border: none !important;
}

/* 3. W niektórych motywach kreski są rysowane przez ::after */
.acf-field::after {
  content: none !important;
  display: none !important;
  background: none !important;
  border: none !important;
}

/* 4. Wyłącz linie w kontenerach (np. grupach i repeaterach) */
.acf-fields {
  border: none !important;
  border-top: none !important;
  background: transparent !important;
  box-shadow: none !important;
}
.acf-fields::before,
.acf-fields::after {
  content: none !important;
  display: none !important;
  background: none !important;
  border: none !important;
}

/* 5. Ostatni detal: w niektórych ACF wersjach pseudo-linia ma kolor przez background-color */
.acf-field::before,
.acf-field::after,
.acf-fields::before,
.acf-fields::after {
  background-color: transparent !important;
  border-color: transparent !important;
  outline: none !important;
}

/* 6. Zachowaj delikatny odstęp między sekcjami zamiast linii */
.acf-field {
  margin-bottom: 10px !important;
  padding-bottom: 10px !important;
}

/* 7. (Opcjonalnie) całkowicie usuń odstępy dla zwartych sekcji */
.acf-field:last-child {
  margin-bottom: 0 !important;
  padding-bottom: 0 !important;
}


/* Styl przycisku SUBMIT z formularza ACF Frontend */
.fea-submit-button.button.button-primary {
  background-color: #123f44 !important;
  color: #f2f3e7 !important;
  border: 3px solid #f2f3e7 !important;
  padding: 12px 28px !important;
  border-radius: 9999px !important;
  font-size: 16px !important;
  font-weight: 600 !important;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: background-color .2s ease, transform .15s ease;
  box-shadow: 0 4px 10px rgba(0,0,0,0.15);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* Hover */
.fea-submit-button.button.button-primary:hover {
  background-color: #0f373b !important;
  transform: translateY(-2px);
}

/* Active */
.fea-submit-button.button.button-primary:active {
  transform: translateY(0);
  background-color: #0c2c2f !important;
}

/* Wyrównanie do lewej jak pozostałe elementy formularza */
.acf-input .fea-submit-button {
  margin-top: 10px;
}


/* ===========================
   /o-projekcie/ – motyw kolorów i ozdobna linia
   =========================== */

/* 1) Ograniczamy stylowanie do tej jednej strony (po ID) */
body.page-id-244 {
  background: #123f44;         /* tło całej strony */
  color: #f2f3e7;              /* domyślny kolor tekstu */
}

/* 2) Dekoracyjna przerywana linia w prawym górnym rogu (SVG jako tło) */
body.page-id-244::after {
  content: "";
  position: fixed;             /* trzyma się rogu ekranu */
  top: 0;
  right: 0;
  width: 60vw;                 /* wielkość można dostroić */
  height: 100vh;
  pointer-events: none;
  background:
    url("data:image/svg+xml;utf8,\
<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 600 400'>\
  <path d='M360,0 \
           C330,22 300,42 295,75 \
           C290,108 330,116 342,86 \
           C354,58 320,46 308,70 \
           C296,96 332,124 372,142 \
           S500,170 560,190 \
           S600,510 800,200' \
        fill='none' stroke='%23f2f3e7' stroke-width='4' \
        stroke-dasharray='10 10' stroke-linecap='round'/>\
</svg>") no-repeat right top;
  background-size: contain;
  opacity: 0.9;
  z-index: 0;
}

/* 3) Upewniamy się, że treść jest nad dekoracją */
body.page-id-244 .wp-site-blocks,
body.page-id-244 main,
body.page-id-244 .entry-content {
  position: relative;
  z-index: 1;
}

/* ==========================================
   Stylizacja stopki Bootscore (Neuromapa)
   ========================================== */

/* Główne tło i tekst */
footer .bootscore-footer
 {
  background-color: #f2f3e7 !important;
  color: #123f44 !important;
}

/* Tło górnej stopki (Top Footer) */
.top-footer,
.footer-top {
    background-color: #123f44 !important;  /* Twój kolor */
    padding: 20px 0;
}
/* Pasek © 2025 - NEUROMAPA */
footer .bootscore-info{
    background-color: #123f44 !important;
    color: #f2f3e7 !important;
    border-top: none !important;
}

.bootscore-info small {
    color: #f2f3e7 !important;
}

/* ==========================================
   Stylizacja Naglowka
   ========================================== */

/* --- Wyróżnienie przycisku "Zgłoś miejsce" w menu --- */

/* Dopasowanie przez URL */
.navbar-nav li.menu-item a[href*="zglos-strone"],
.navbar-nav li.menu-item a[href*="dodaj-miejsce"] {
  background-color: #123f44 !important;
  color: #f2f3e7 !important;
  padding: 6px 16px !important;
  border-radius: 20px !important;
  font-weight: 600 !important;
  transition: all 0.3s ease;
}

/* Efekt hover/focus */
.navbar-nav li.menu-item a[href*="zglos-strone"]:hover,
.navbar-nav li.menu-item a[href*="dodaj-miejsce"]:hover {
  background-color: #0f353a !important;
  color: #9ea28f !important;
  text-decoration: none;
}

/* Odstęp między linkami w menu */
.navbar-nav li.menu-item {
  margin-right: 18px; 
}

/* Usuń odstęp po ostatnim elemencie */
.navbar-nav li.menu-item:last-child {
  margin-right: 0;
}


/* ==========================================
   Stylizacja przycisku powrotu do góry
   ========================================== */

/* Stylizacja przycisku powrotu do góry */
a.top-button,
.btn.top-button,
a.btn.btn-primary.top-button {
  background-color: #123f44 !important;  
  border: 1px solid #9ea28f !important;                 /* delikatne obramowanie */
  color: #f2f3e7 !important;                            /* kolor strzałki */
  border-radius: 10px !important;
  
  box-shadow: none !important;
  transition: all 0.3s ease;
}

/* Efekt hover – lekkie rozjaśnienie */
a.top-button:hover {
  background-color: rgba(18, 63, 68, 0.9) !important;
  color: #ffffff !important;
  transform: translateY(-2px);
}

/* ==========================================
   NOWY PANEL PROTOTYP
   ========================================== */

/* NOWY PANEL PROTOTYP */
.nm-floating-filters {
  /* position: fixed !important; */
  top: 5px; /* dopasuj do swojego headera */
  left: 5px;
  z-index: 990; /* nad mapą */
  font-family: system-ui, sans-serif;
}

/* lewa kolumna z kategoriami */
.nm-filter-cats {
  background: #f2f3e7;
  border-radius: 9999px;
  padding: 8px 6px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  box-shadow: 0 4px 12px rgba(0,0,0,.12);
}

.nm-cat-btn {
  background: transparent;
  border: none;
  outline: none;
  cursor: pointer;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  transition: background .2s ease;
}

.nm-cat-btn img {
  width: 26px;
  height: 26px;
  object-fit: contain;
}

.nm-cat-btn span {
  display: none; /* w wersji jak na screenie nazwy są w panelu, nie tu */
}

.nm-cat-btn.is-active,
.nm-cat-btn:hover {
  background: #123f44;
}

/* prawa tablica */
.nm-panel-title {
  font-size:14px;
  text-transform:uppercase;
  margin:0px 0 10px;
  color:#123f44;
  font-weight:600;
}

.nm-filter-panel {
  background: #f2f3e7;
  border-radius: 28px;
  padding: 14px 10px;
  min-width: 180px;
  box-shadow: 0 4px 12px rgba(0,0,0,.12);
}

.nm-filter-panel h4 {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: .02em;
  margin: 0 0 10px 0;
  color: #123f44;
}

.nm-feature-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(50px, 1fr));
  gap: 10px 12px;
  margin-bottom: 14px;
}

/* mniejsze dla Wyróżnienia */
.nm-feature-grid--small {
  grid-template-columns: repeat(2, minmax(80px, 1fr));
}

.nm-feature-pill {
  background: #123f44;
  border: none;
  border-radius: 9999px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px 6px 6px;
  color: #f2f3e7;
  cursor: default; /* na razie tylko podgląd */
}

.nm-feature-pill img {
  width: 26px;
  height: 26px;
  background: #f2f3e7;
  border-radius: 50%;
  object-fit: contain;
}

.nm-feature-pill span {
  font-size: 12px;
  line-height: 1.1;
}



/* responsywnie – żeby nie zasłaniało całej mapy na tel. */
@media (max-width: 768px) {
  .nm-floating-filters {
    transform: scale(.9);
    transform-origin: top left;
  }
}
@media (max-width: 580px) {
  .nm-floating-filters {
    position: static;
    margin: 10px;
  }
}

/* ===========================
   Panel kategorii – tło z lewej
   =========================== */
#nm-panel-wrap .nm-panel-cats {
  background: #f2f3e7;           /* to samo tło co panel cech */
  border-radius: 22px;
  padding: 10px 6px;
  box-shadow: 0 4px 12px rgba(0,0,0,.12);
  gap: 10px;
}

#nm-panel-wrap .nm-cat-btn img {
  width: 54px;
  height: auto;
  display: block;
}

/* ===========================
   Panel cech – 2 kolumny × 4 wiersze
   =========================== */
/* PANEL CECH – kontener */
#nm-panel-wrap .nm-panel-big {
  position: absolute;
  top: 0;
  left: 80px;
  background: #f2f3e7;
  border-radius: 24px;
  padding: 24px 20px 20px;
  min-width: 240px;       /* ← Twoja nowa szerokość */
  pointer-events: auto;
}

#nm-panel-wrap .nm-panel-big .nm-panel-features {
  display: grid !important;
  grid-template-columns: repeat(2, 1fr) !important; /* 2 kolumny */
  grid-template-rows: repeat(4, auto) !important;   /* 4 wiersze */
  gap: 12px 20px !important;                        /* odstępy: pionowy / poziomy */
  justify-items: center !important;                 /* wyśrodkowanie elementów w kolumnach */
  align-items: center !important;
  width: 100% !important;
  max-width: 320px !important;                      /* dostosuj do szerokości panelu */
  margin: 0 auto !important;                        /* wyśrodkuj całość */
}

/* pojedynczy kafelek cechy */
#nm-panel-wrap .nm-panel-big .nm-feature-pill {
  display: flex !important;
  flex-direction: column !important;  /* ikona nad podpisem */
  align-items: center !important;
  justify-content: flex-start !important;
  width: 78px !important;
  height: 78px !important;
  padding: 4px 6px !important;
  background: transparent !important;
  border: none !important;
  border-radius: 12px !important;
  box-sizing: border-box !important;
  color: #123f44 !important;
  cursor: pointer !important;
}

/* ikona */
#nm-panel-wrap .nm-panel-big .nm-feature-pill img {
  width: 34px !important;
  height: 34px !important;
  display: block !important;
  object-fit: contain !important;
  margin-bottom: 2px !important; /* odstęp ikona ↔ podpis */
}

/* podpis */
#nm-panel-wrap .nm-panel-big .nm-feature-pill span {
  color: #123f44 !important;
  font-size: 12px !important;
  line-height: 1.2 !important;
  text-align: center !important;
  white-space: normal !important;
  word-break: normal !important;
}

/* ===========================
   Wyróżnienia (Medal, Serduszko)
   =========================== */

/* kontener */
.nm-panel-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 10px;
}

/* ============================
   Panel CECHY – nagłówek + zwijanie
   ============================ */

#nm-panel-wrap .nm-filter-panel {
  position: relative;
}

/* wiersz: tytuł + strzałka */
#nm-panel-wrap .nm-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  white-space: nowrap;          /* ← zapobiega łamaniu tekstu */
  padding-right: 6px;           /* ← miejsce na strzałkę */
  cursor: pointer;      /* ← nagłówek wygląda jak klikany */
}

/* sam tytuł – zabieramy marginesy H3 */
#nm-panel-wrap .nm-panel-title {
  font-size: 14px;
  text-transform: uppercase;
  color: #123f44;
  margin: 0;              /* to jest kluczowe */
  font-weight: 600;
}


/* guzik ze strzałką */
#nm-panel-wrap .nm-panel-toggle {
  border: none;
  background: transparent;
  padding: 0;
  cursor: pointer;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

#nm-panel-wrap .nm-panel-toggle-arrow {
  font-size: 22px;
  color: #123f44;
}

/* ciało panelu, które zwijamy */
#nm-panel-wrap .nm-panel-body {
  overflow: hidden;
  max-height: 1000px;            /* "pełne" rozwinięcie */
  opacity: 1;
  transition:
    max-height .25s ease,
    opacity    .2s ease;
}

/* stan zwinięty */
#nm-panel-wrap .nm-panel-body.is-collapsed {
  max-height: 0;
  opacity: 0;
}

/* gdy zwinięte – wyłącz kliknięcia w środku */
#nm-panel-wrap .nm-panel-body.is-collapsed * {
  pointer-events: none;
}



/* ===========================
   Szerokość i maksymalna szerokość popupu
   =========================== */

.leaflet-popup-content-wrapper {
  max-width: 520px !important;   /* domyślnie ~300px */
  width: 460px !important;
}

.leaflet-popup-content {
 width: 100% !important;      /* zamiast stałej szerokości */
  max-width: none !important;  /* usuń wcześniejsze 420/480px */
  
}

/* Upewnij się, że nasze sekcje w popupie też mogą iść na pełną szerokość */
.neuropopup,
.neuropopup .nm-desc,
.neuropopup .nm-address,
.neuropopup .nm-socials {
  width: 100% !important;
  max-width: none !important;
  box-sizing: border-box;
}

/* (jeśli używasz siatki ikon) – tylko odstęp pod ikonami */
.neuropopup .nm-features { margin-bottom: 12px; }
@media (max-width: 600px) {
  .leaflet-popup-content-wrapper {
    width: 90vw !important;
    max-width: 90vw !important;
  }
}

/* 1) Treść popupu nie może przekraczać wrappera */
.leaflet-popup-content-wrapper {
  overflow: hidden;              /* utnie niesforne rzeczy, np. cienie */
}

/* 2) Zamiast margins => padding + box-sizing, szerokość w 100% wrappera */
.leaflet-popup-content {
  width: 100%;
  max-width: 100%;
  margin: 0;                     /* usuń wcześniejsze marginy */
  padding: 10px 10px 10px 10px;       /* wewnętrzne odstępy */
  box-sizing: border-box;        /* padding nie powiększa boxa */
}

/* 3) Sam kontener popupu i sekcje w środku też bez przekraczania */
.neuropopup,
.neuropopup .nm-desc,
.neuropopup .nm-address,
.neuropopup .nm-socials {
  max-width: 100%;
  width: 100%;
  box-sizing: border-box;
}

/* 4) Siatka ikon cech – pewne 4 kolumny, nie rozpycha szerokości */
.neuropopup .nm-features {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px 16px;
  margin: 12px 0 10px;
}
.neuropopup .nm-feature-item { width: 100%; max-width: 100%; }

/* 5) Obrazki w popupie nie mogą rosnąć poza komórkę */
.neuropopup img { max-width: 100%; height: auto; }

/* 6) Odznaki w prawym górnym rogu – zawsze w obrębie paddingu */
.neuropopup .nm-badges {
  position: absolute;
  top: 16px;                     /* dopasuj do paddingu z .leaflet-popup-content */
  right: 20px;
}

/* ===============================================
   ACF — Ikony cech sensorycznych OFF/ON  
   =============================================== */

/* wspólna baza — rozmiar ikon */
.acf-field[data-name="cechy_sensoryczne"] .nm-ico {
  width: 72px;
  height: 72px;
  display: inline-block;
  background-size: contain !important;
  background-repeat: no-repeat !important;
  background-position: center !important;
  cursor: pointer;
}

/* --------------------------------------------------
   1. Ciche miejsce (value="ciche_miejsce")
   -------------------------------------------------- */
.acf-field[data-name="cechy_sensoryczne"] 
  input[value="ciche"] + .nm-ico {
  background-image: url("/wp-content/uploads/ikony_on_off/c_cisza_w_off.svg");
}

.acf-field[data-name="cechy_sensoryczne"] 
  input[value="ciche"]:checked + .nm-ico {
  background-image: url("/wp-content/uploads/ikony_on_off/c_cisza_w_on.svg");
}

/* --------------------------------------------------
   2. Łatwy dojazd (value="latwy_dojazd")
   -------------------------------------------------- */
.acf-field[data-name="cechy_sensoryczne"] 
  input[value="latwy_dojazd"] + .nm-ico {
  background-image: url("/wp-content/uploads/ikony_on_off/c_dojazd_w_off.svg");
}

.acf-field[data-name="cechy_sensoryczne"] 
  input[value="latwy_dojazd"]:checked + .nm-ico {
  background-image: url("/wp-content/uploads/ikony_on_off/c_dojazd_w_on.svg");
}

/* --------------------------------------------------
   3. Strefa relaksu (value="strefa_relaksu")
   -------------------------------------------------- */
.acf-field[data-name="cechy_sensoryczne"] 
  input[value="strefa_relaksu"] + .nm-ico {
  background-image: url("/wp-content/uploads/ikony_on_off/c_relaks_w_off.svg");
}

.acf-field[data-name="cechy_sensoryczne"] 
  input[value="strefa_relaksu"]:checked + .nm-ico {
  background-image: url("/wp-content/uploads/ikony_on_off/c_relaks_w_on.svg");
}

/* --------------------------------------------------
   4. Pomocny personel (value="pomocny_personel")
   -------------------------------------------------- */
.acf-field[data-name="cechy_sensoryczne"] 
  input[value="pomocny_personel"] + .nm-ico {
  background-image: url("/wp-content/uploads/ikony_on_off/c_personel_w_off.svg");
}

.acf-field[data-name="cechy_sensoryczne"] 
  input[value="pomocny_personel"]:checked + .nm-ico {
  background-image: url("/wp-content/uploads/ikony_on_off/c_personel_w_on.svg");
}

/* --------------------------------------------------
   5. Brak intensywnych zapachów (value="brak_intensywnych_zapachow")
   -------------------------------------------------- */
.acf-field[data-name="cechy_sensoryczne"] 
  input[value="brak_zapachow"] + .nm-ico {
  background-image: url("/wp-content/uploads/ikony_on_off/c_zapachy_w_off.svg");
}

.acf-field[data-name="cechy_sensoryczne"] 
  input[value="brak_zapachow"]:checked + .nm-ico {
  background-image: url("/wp-content/uploads/ikony_on_off/c_zapachy_w_on.svg");
}

/* --------------------------------------------------
   6. Przygaszone światło (value="przygaszone_swiatlo")
   -------------------------------------------------- */
.acf-field[data-name="cechy_sensoryczne"] 
  input[value="przygaszone_swiatlo"] + .nm-ico {
  background-image: url("/wp-content/uploads/ikony_on_off/c_swiatlo_w_off.svg");
}

.acf-field[data-name="cechy_sensoryczne"] 
  input[value="przygaszone_swiatlo"]:checked + .nm-ico {
  background-image: url("/wp-content/uploads/ikony_on_off/c_swiatlo_w_on.svg");
}

/* --------------------------------------------------
   7. Jasna informacja (value="dostepnosc_informacyjna" / nowe: "jasna_informacja")
   -------------------------------------------------- */
.acf-field[data-name="cechy_sensoryczne"] 
  input[value="jasna_informacja"] + .nm-ico,
.acf-field[data-name="cechy_sensoryczne"] 
  input[value="dostepnosc_informacyjna"] + .nm-ico {
  background-image: url("/wp-content/uploads/ikony_on_off/c_info_w_off.svg");
}

.acf-field[data-name="cechy_sensoryczne"] 
  input[value="jasna_informacja"]:checked + .nm-ico,
.acf-field[data-name="cechy_sensoryczne"] 
  input[value="dostepnosc_informacyjna"]:checked + .nm-ico {
  background-image: url("/wp-content/uploads/ikony_on_off/c_info_w_on.svg");
}

/* --------------------------------------------------
   8. Organizacja przestrzeni (value="organizacja_przestrzeni")
   -------------------------------------------------- */
.acf-field[data-name="cechy_sensoryczne"] 
  input[value="organizacja_przestrzeni"] + .nm-ico {
  background-image: url("/wp-content/uploads/ikony_on_off/c_przestrzen_w_off.svg");
}

.acf-field[data-name="cechy_sensoryczne"] 
  input[value="organizacja_przestrzeni"]:checked + .nm-ico {
  background-image: url("/wp-content/uploads/ikony_on_off/c_przestrzen_w_on.svg");
}

/* =========================================================
   Zgłoś miejsce – pole "cechy_sensoryczne"
   Ukrywamy checkbox, zostawiamy tylko ikony .nm-ico
   ========================================================= */

/* 1. schowaj natywne checkboxy (pozostają klikalne przez <label>) */
body.page-id-29 .acf-field[data-name="cechy_sensoryczne"]
  .acf-checkbox-list input[type="checkbox"] {
  position: absolute;
  opacity: 0;
  pointer-events: none;
  width: 0;
  height: 0;
  margin: 0;
  padding: 0;
}

/* ikona nad podpisem */
body.page-id-29 .acf-field[data-name="cechy_sensoryczne"]
  .acf-checkbox-list label {
  display: inline-flex;
  flex-direction: column;    /* <<< IKONA NA GÓRZE, TEKST POD NIĄ */
  align-items: center;
  justify-content: flex-start;
  gap: 6px;                  /* odstęp IKONA–TEKST */
  margin-right: 14px;        /* odstęp między „kafelkami” cech */
  text-align: center;
  max-width: 100px;          /* żeby dłuższe podpisy ładnie się łamały */
  white-space: normal;
}

/* jeśli motyw dodawał własny pseudo-check do labela – wyłącz go */
body.page-id-29 .acf-field[data-name="cechy_sensoryczne"]
  .acf-checkbox-list label::before,
body.page-id-29 .acf-field[data-name="cechy_sensoryczne"]
  .acf-checkbox-list label::after {
  content: none !important;
}

@media (max-width: 700px) {
  body.page-id-29 .acf-field[data-name="cechy_sensoryczne"]
    .acf-checkbox-list label {
    width: 70px !important;
  }
}

/* Usuń obramowanie, outline i efekty focus/checked z sekcji ACF. Niebieskie obramowanie po click w ikone */
body.page-id-29 .acf-field[data-name="cechy_sensoryczne"],
body.page-id-29 .acf-field[data-name="cechy_sensoryczne"] .acf-input,
body.page-id-29 .acf-field[data-name="cechy_sensoryczne"] .acf-checkbox-list,
body.page-id-29 .acf-field[data-name="cechy_sensoryczne"] .acf-checkbox-list label,
body.page-id-29 .acf-field[data-name="cechy_sensoryczne"] input[type="checkbox"]:checked + .nm-ico {
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
}

/* ===============================================
   ZGŁOŚ MIEJSCE – ikony wyróżnień (medal/serduszko)
   =============================================== */

/* Ukryj natywne checkboxy, ale zostaw w formularzu */
body.page-id-29 .acf-field[data-name="wyroznienie_medal"] input[type="checkbox"],
body.page-id-29 .acf-field[data-name="wyroznienie_serduszko"] input[type="checkbox"] {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

/* Wspólna baza dla ikony wyróżnienia */
body.page-id-29 .acf-field[data-name="wyroznienie_medal"] .nm-badge-ico,
body.page-id-29 .acf-field[data-name="wyroznienie_serduszko"] .nm-badge-ico {
  display: inline-block;
  width: 72px;
  height: 72px;
  margin-top: 16px;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  cursor: pointer;
}

/* MEDAL – stan OFF / ON */
body.page-id-29 .acf-field[data-name="wyroznienie_medal"]
  input[type="checkbox"] + .nm-badge-ico {
  background-image: url("/wp-content/uploads/ikony_on_off/b_medal_off.svg");
}

body.page-id-29 .acf-field[data-name="wyroznienie_medal"]
  input[type="checkbox"]:checked + .nm-badge-ico {
  background-image: url("/wp-content/uploads/ikony_on_off/b_medal_on.svg");
}

/* SERDUSZKO – stan OFF / ON */
body.page-id-29 .acf-field[data-name="wyroznienie_serduszko"]
  input[type="checkbox"] + .nm-badge-ico {
  background-image: url("/wp-content/uploads/ikony_on_off/b_serduszko_off.svg");
}

body.page-id-29 .acf-field[data-name="wyroznienie_serduszko"]
  input[type="checkbox"]:checked + .nm-badge-ico {
  background-image: url("/wp-content/uploads/ikony_on_off/b_serduszko_on.svg");
}

/* Wyróżnienie medal / serduszko – ikona po lewej, tekst po prawej */
.acf-field[data-name="wyroznienie_medal"] .acf-input,
.acf-field[data-name="wyroznienie_serduszko"] .acf-input {
  display: flex;
  align-items: flex-start;
  gap: 24px;              /* odstęp ikona–tekst */
  flex-wrap: nowrap;
}

/* przycisk z ikoną – kolumna po lewej */
.acf-field[data-name="wyroznienie_medal"] .nm-badge-toggle,
.acf-field[data-name="wyroznienie_serduszko"] .nm-badge-toggle {
  order: 0;               /* najpierw ikona */
  flex-shrink: 0;
}

/* opis (szary tekst) – kolumna po prawej */
.acf-field[data-name="wyroznienie_medal"] .acf-input .description,
.acf-field[data-name="wyroznienie_serduszko"] .acf-input .description {
  order: 1;               /* potem tekst */
  max-width: 520px;       /* żeby nie rozjeżdżał układu */
  margin-top: 12px;       /* lekkie wyrównanie w pionie do ikony */
}

/* ukryty prawdziwy checkbox – zostaje, ale nie psuje układu */
.acf-field[data-name="wyroznienie_medal"] .nm-badge-checkbox,
.acf-field[data-name="wyroznienie_serduszko"] .nm-badge-checkbox {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

/* ===============================================
   ACF — Ikony kategorii w formularzu „Zgłoś miejsce”
   =============================================== */

/* chowamy natywny select (ale zostaje w DOM i trzyma wartość) */
body.page-id-29
  .acf-field[data-name="kategoria_miejsca"] .nm-cat-select-hidden {
  position: absolute;
  opacity: 0;
  pointer-events: none;
  width: 0;
  height: 0;
  margin: 0;
  padding: 0;
}

/* rząd kafelków z kategoriami */
body.page-id-29
  .acf-field[data-name="kategoria_miejsca"] .nm-cat-picker {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin-top: 16px;
}

/* pojedynczy kafelek z ikoną */
body.page-id-29 .nm-cat-toggle {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  background: transparent;
  border: none;
  padding: 4px;
  cursor: pointer;
  color: #f2f3e7;
}

/* ikona kategorii */
body.page-id-29 .nm-cat-icon {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  margin-bottom: 6px;
}

/* podpis pod ikoną */
body.page-id-29 .nm-cat-label {
  font-size: 12px;
  line-height: 1.2;
  text-align: center;
}

/* lekki efekt dla wybranej kategorii (opcjonalnie) */
body.page-id-29 .nm-cat-toggle.is-active .nm-cat-icon {
  filter: brightness(1.05);
}


/* ======================================================
   /Legenda/ – motyw kolorów i ozdobna linia
   ====================================================== */

/* 1) Ograniczamy stylowanie do tej jednej strony (po ID) */
body.page-id-485 {
  background: #123f44;         /* tło całej strony */
  color: #f2f3e7;              /* domyślny kolor tekstu */
}

/* 2) Dekoracyjna przerywana linia w prawym górnym rogu (SVG jako tło) */
body.page-id-485::after {
  content: "";
  position: fixed;             /* trzyma się rogu ekranu */
  top: 0;
  right: 0;
  width: 60vw;                 /* wielkość można dostroić */
  height: 100vh;
  pointer-events: none;
  background:
    url("data:image/svg+xml;utf8,\
<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 600 400'>\
  <path d='M360,0 \
           C330,22 300,42 295,75 \
           C290,108 330,116 342,86 \
           C354,58 320,46 308,70 \
           C296,96 332,124 372,142 \
           S500,170 560,190 \
           S600,510 800,200' \
        fill='none' stroke='%23f2f3e7' stroke-width='4' \
        stroke-dasharray='10 10' stroke-linecap='round'/>\
</svg>") no-repeat right top;
  background-size: contain;
  opacity: 0.9;
  z-index: 0;
}

/* 3) Upewniamy się, że treść jest nad dekoracją */
body.page-id-29 .wp-site-blocks,
body.page-id-29 main,
body.page-id-29 .entry-content {
  position: relative;
  z-index: 1;
}


* =============================================
   /Legenda/ – kategorie i strefa
  ============================================= */

.nm-legend {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.nm-legend-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 28px;
}

.nm-legend-icon {
  width: 64px;
  height: 64px;
  flex: 0 0 64px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.nm-legend-icon img {
  width: 64px !important;
  height: 64px !important;
  object-fit: contain;
  display: block;
}

.nm-legend-text h3 {
  margin: 0 0 4px;
  font-size: 18px;
  font-weight: 700;
  color: #f2f3e7;
}

.nm-legend-text p {
  margin: 0;
  font-size: 14px;
  line-height: 1.4;
}


/* Popup ZAWSZE ponad panelami filtrów */
.leaflet-pane.leaflet-popup-pane,
.leaflet-pane.leaflet-tooltip-pane,
.leaflet-popup {
  z-index: 999999 !important;
}

/* Panel filtrów – niżej niż popupy, ale nad markerami */
.nm-floating-filters {
  z-index: 1000 !important;
}

