.dostepnosc.is-available {
  color: var(--global-palette10);
}

.dostepnosc.is-unavailable {
  color: var(--global-palette13);
}

.dostepnosc.is-unknown {
  color:  #0099ff;
}

.stan-wkrotce .q-cena, .stan-zrealizowane .q-cena {display: none !important;}

.unav {
  opacity: 0.6;
  pointer-events: none;
}

h1.title_dwd {
  position: relative;
  text-align: center;
  display: block;
}

.grid-i .stan-zrealizowane .photo .kt-inside-inner-col  {
  background-blend-mode: screen;
}

.kb-button.empty {
  opacity: 0.3;
  pointer-events: none;
}

.single-content h1, .single-content h2, .single-content h3, .single-content h4, .single-content h5, .single-content h6 {
  margin: 1em 0 .5em;
}


.inv-btn a:hover {
  padding-right: 25px !important;
}

/* badge */
h1.title_dwd::after {
  content: attr(data-status);
  position: absolute;
  top: 50%;
  left: 95%;
  transform: translateY(-50%);
  margin-left: 12px;
  padding: 4px 10px;
  font-size: 12px;
  letter-spacing: 2px;
  font-weight: 600;
  
  white-space: nowrap;
  top: -10px;
  text-transform: uppercase;
}

@media (max-width: 767px) {

  .kb-navigation.menu {
  border-top: none;
  border-bottom: none;
}
  
h1.title_dwd::after {
  content: attr(data-status);
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translateY(-50%);
  margin-left: 0;
  padding: 2px 8px;
  font-size: 11px;
  letter-spacing: 2px;
  font-weight: 600;
  white-space: nowrap;
  top: -25px;
  text-transform: uppercase;
  transform: translateX(-50%);
}
}

/* kolory statusów */
h1.title_dwd[data-status="Dostępny"]::after {
  background: var(--global-palette10);
  color: #fff;
}

h1.title_dwd[data-status="Wkrótce"]::after {
  background: #0099ff;
  color: #fff;
}

h1.title_dwd[data-status="Rezerwacja"]::after {
  background: #ff9900;
  color: #fff;
}

h1.title_dwd[data-status="Niedostępny"]::after {
  background: var(--global-palette13);
  color: #fff;
}
#top .cena-m {
  display: none;
}


.cena-m {
  font-size: 13px;
  line-height: 1em;
  display: block;
  opacity: 0.4;
}

/* Cena + H w jednej linii */
.csx-price-wrap {
  display: inline-flex;
  align-items: center;
}

/* Przycisk H */
.csx-price-history-btn {
  width: 20px;
  height: 20px;
  border-radius: 999px;
  border: none !important;
box-shadow: none !important;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  font-weight: 400;
  font-size: 11px;
  margin-left: 5px;
  cursor: pointer;
  background: var(--global-palette-btn-bg);
  padding: 0;
  padding-left: 2px;
  position: absolute;
 top: 0;
  right: 5px;
  color: #fff !important;
}

.single-dom .csx-price-history-btn {
  top:auto !important;
  right: 20px;
}


.csx-price-history-btn.is-active {
  color: #1e8e3e;
}
.csx-price-history-btn.is-inactive,
.csx-price-history-btn:disabled {
  color: #9aa0a6;
  pointer-events: none;
  opacity: 0.2;
}


/* Modal ZAWSZE ukryty bazowo */
.csx-phm {
  position: fixed;
  inset: 0;
  z-index: 9998;
  opacity: 0;
  pointer-events: none;
  transition: opacity 180ms ease;
}

/* Pokazujemy TYLKO gdy jest is-open */
.csx-phm.is-open {
  opacity: 1;
  pointer-events: auto;
}

.csx-phm__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
}

.csx-phm__title {
  text-transform: uppercase;
  font-weight: 800;
  padding-bottom: 10px;
  margin-bottom: 10px;
  border-bottom: 1px solid var(--global-palette6);
}


.csx-phm__panel {
  position: absolute;
  top: 50%;
  left: 50%;
  width: min(620px, calc(100vw - 32px));
  background: #fff;
  border-radius: 0px;
  padding: 35px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
  transform: translate(-50%, -50%) scale(0.98);
  transition: transform 180ms ease;
  z-index: 9999;
}


.csx-phm.is-open .csx-phm__panel {
  transform: translate(-50%, -50%) scale(1);
}

#top .csx-price-history-btn.is-active, #top .csx-price-history-btn:disabled, #pozostale .csx-price-history-btn.is-active, #pozostale .csx-price-history-btn:disabled  {
  display: none;
}


.csx-phm__item {
  justify-content: space-between;
  display: flex;
  margin-bottom: 5px;
  padding-bottom: 5px;
  border-bottom: 1px solid #eee;
  font-size: 15px;
}



.csx-phm__close {
  padding: 10px;
  width: 30px;
  height: 30px;
  position: absolute;
  right: -30px;
  border-radius: 4rem;
  top: -30px;
  color: #000;
  background: #fff;
  text-align: center;
  line-height: 0;
  font-size: 19px;
}

.opis_home {
  display: -webkit-box;
  display: box; /* fallback */
  -webkit-box-orient: vertical;
  box-orient: vertical;

  -webkit-line-clamp: 3;
  line-clamp: 3;

  overflow: hidden;
  text-overflow: ellipsis;
}


h5.sub {
  min-width: max-content;
  text-wrap: balance;
}

.opis p, .opis p br {
  margin-bottom: 25px !important;
}
.opis_home {
  margin: 25px 0px !important;
}

/* =========================================================
   Query 1483: wspólny scroll dla nagłówka + listy
   + stałe szerokości kolumn (jak desktop)
   ========================================================= */

@media (max-width: 1024px) {

  /* 0) GŁÓWNY SCROLLBOX = cały blok query (z nagłówkiem i listą) */
  .wp-block-kadence-query[data-id="1483"]{
    overflow-x: auto !important;
    overflow-y: visible !important;
    -webkit-overflow-scrolling: touch;
  }

  /* 1) Nagłówek (ten nad listą) ma być częścią tego scrolla */
  .wp-block-kadence-query[data-id="1483"] > .kb-row-layout-wrap.offer-tab{
    position: sticky; /* zostaje na górze podczas scrolla w dół */
    top: 0;
    z-index: 50;
  }

  /* 2) Lista – niech zachowuje max-content szerokość */
  .wp-block-kadence-query-card610_e4b5fa-ef .kb-query-grid-wrap{
    display: block !important;
    width: max-content !important;
    min-width: 100% !important;
  }

  /* 3) Każdy wiersz = jedna szerokość “tabeli” */
  .wp-block-kadence-query-card610_e4b5fa-ef .kb-query-grid-wrap > li{
    display: block !important;
    min-width: 1240px; /* musi pasować do sumy kolumn */
  }

  /* =======================================================
     SIATKA KOLUMN — nagłówek + wiersze (ta sama geometria)
     ======================================================= */

  @media (max-width: 1024px){

  /* nagłówek (offer-tab nad query) */
  .wp-block-kadence-query[data-id="1483"] > .kb-row-layout-wrap.offer-tab{
    min-width: 1240px; /* MUSI być taka sama jak w li */
    width: max-content;
  }

}

  /* wiersz główny: 3 grupy */
  .wp-block-kadence-query[data-id="1483"] .offer-tab > .kt-row-column-wrap{
    display: flex !important;
    flex-wrap: nowrap !important;
    align-items: stretch;
  }

  /* 3 grupy: [4 kol] [2 kol] [3 kol] */
  .wp-block-kadence-query[data-id="1483"] .offer-tab > .kt-row-column-wrap > .wp-block-kadence-column:nth-child(1){
    flex: 0 0 640px !important; max-width: 640px !important;
  }
  .wp-block-kadence-query[data-id="1483"] .offer-tab > .kt-row-column-wrap > .wp-block-kadence-column:nth-child(2){
    flex: 0 0 240px !important; max-width: 240px !important;
  }
  .wp-block-kadence-query[data-id="1483"] .offer-tab > .kt-row-column-wrap > .wp-block-kadence-column:nth-child(3){
    flex: 0 0 360px !important; max-width: 360px !important;
  }

  /* grupa 1: 4 kolumny */
  .wp-block-kadence-query[data-id="1483"]
  .offer-tab > .kt-row-column-wrap > .wp-block-kadence-column:nth-child(1)
  .kt-row-column-wrap{
    display: flex !important;
    flex-wrap: nowrap !important;
  }
  .wp-block-kadence-query[data-id="1483"]
  .offer-tab > .kt-row-column-wrap > .wp-block-kadence-column:nth-child(1)
  .kt-row-column-wrap > .wp-block-kadence-column:nth-child(1){ flex:0 0 260px !important; max-width:260px !important; }
  .wp-block-kadence-query[data-id="1483"]
  .offer-tab > .kt-row-column-wrap > .wp-block-kadence-column:nth-child(1)
  .kt-row-column-wrap > .wp-block-kadence-column:nth-child(2){ flex:0 0 180px !important; max-width:220px !important; }
  .wp-block-kadence-query[data-id="1483"]
  .offer-tab > .kt-row-column-wrap > .wp-block-kadence-column:nth-child(1)
  .kt-row-column-wrap > .wp-block-kadence-column:nth-child(3){ flex:0 0 120px  !important; max-width:120px  !important; }
  .wp-block-kadence-query[data-id="1483"]
  .offer-tab > .kt-row-column-wrap > .wp-block-kadence-column:nth-child(1)
  .kt-row-column-wrap > .wp-block-kadence-column:nth-child(4){ flex:0 0 80px  !important; max-width:80px  !important; }

  /* grupa 2: 2 kolumny */
  .wp-block-kadence-query[data-id="1483"]
  .offer-tab > .kt-row-column-wrap > .wp-block-kadence-column:nth-child(2)
  .kt-row-column-wrap{
    display: flex !important;
    flex-wrap: nowrap !important;
  }
  .wp-block-kadence-query[data-id="1483"]
  .offer-tab > .kt-row-column-wrap > .wp-block-kadence-column:nth-child(2)
  .kt-row-column-wrap > .wp-block-kadence-column{ flex:0 0 120px !important; max-width:120px !important; }

  /* grupa 3: 3 kolumny */
  .wp-block-kadence-query[data-id="1483"]
  .offer-tab > .kt-row-column-wrap > .wp-block-kadence-column:nth-child(3)
  .kt-row-column-wrap{
    display: flex !important;
    flex-wrap: nowrap !important;
  }
  .wp-block-kadence-query[data-id="1483"]
  .offer-tab > .kt-row-column-wrap > .wp-block-kadence-column:nth-child(3)
  .kt-row-column-wrap > .wp-block-kadence-column{ flex:0 0 120px !important; max-width:120px !important; }
}
