/* =========================================================
   OFERTY W SILNIKU – układ kart jak na wzorze
   ========================================================= */

/* --- pojedyncza oferta --- */
.itemOffers section.promotion-item {
  margin: 0 24px !important;
  padding: 24px 0 !important;
  background: #fff !important;
  border: 0 !important;
  border-bottom: 1px solid #e6e6e6 !important;
  box-shadow: none !important;
}
.itemOffers section.promotion-item:last-child {
  border-bottom: 0 !important;
}

/* --- usunięcie szarej ramki z szablonu --- */
.itemOffers section.promotion-item .main {
  border: 0 !important;
  padding: 0 !important;
  margin: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

/* --- siatka: [zdjęcie] [treść] [cena + przycisk] --- */
.itemOffers .promotion-in-item {
  display: grid !important;
  grid-template-columns: 1fr auto;
  grid-template-areas:
    "info price"
    "desc price";
  column-gap: 24px;
  align-items: start;
  width: 100% !important;
  float: none !important;
  padding: 0 !important;
}
.itemOffers .promotion-name-addons { grid-area: info; }
.itemOffers .promotion-description { grid-area: desc; }
.itemOffers .promotion-description p:empty { display: none; }

/* --- nazwa oferty --- */
.itemOffers a.promotion-name {
  display: block;
  margin-bottom: 12px;
  font-size: 19px;
  font-weight: 500;
  line-height: 1.4;
  color: #222 !important;
  text-decoration: none !important;
}

/* --- lista dodatków --- */
.itemOffers ul.addons-in-offer {
  padding-left: 0 !important;
  margin: 0;
  list-style: none;
}
.itemOffers ul.addons-in-offer li.room-item-details-element {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 8px;
  font-size: 14px;
  color: #444;
}
.itemOffers ul.addons-in-offer li.room-item-details-element i {
  font-size: 15px;
  color: #555;
}

/* --- cena i przycisk po prawej --- */
.itemOffers .virOfferPriceBut {
  grid-area: price;
  display: flex !important;
  flex-direction: column;
  align-items: flex-end;
  gap: 12px;
  float: none !important;
  width: auto !important;
  text-align: right;
}
.itemOffers .room-item-price {
  font-size: 26px;
  font-weight: 700;
  color: #555;
  white-space: nowrap;
}

/* --- przycisk WYBIERZ --- */
.itemOffers .virOfferPriceBut .offer-checkbox-wrapper {
  margin: 0 !important;
  padding: 0 !important;
  display: flex;
  justify-content: flex-end;
}
.itemOffers .virOfferPriceBut .btn-grenade {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  height: 42px !important;
  min-width: 110px;
  margin: 0 !important;
  padding: 0 20px !important;
  line-height: 1 !important;
  vertical-align: middle;
  text-align: center;
  background: #4d4d48 !important;
  border: 0 !important;
  border-radius: 4px !important;
  box-shadow: 0 2px 4px rgba(0, 0, 0, .25);
  color: #fff !important;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: .3px;
  text-transform: uppercase;
}
.itemOffers .virOfferPriceBut .btn-grenade:hover {
  background: #33332f !important;
}
.itemOffers .virOfferPriceBut .btn-grenade::before,
.itemOffers .virOfferPriceBut .btn-grenade::after {
  display: none !important;
}

/* =========================================================
   ZDJĘCIE – „Pobyt ze śniadaniem” (promocja id=1)
   ========================================================= */
.itemOffers section.promotion-item:has(a.promotion-name[data-url$="modal-promotion&id=1"]) .promotion-in-item {
  grid-template-columns: 190px 1fr auto;
  grid-template-areas:
    "img info price"
    "img desc price";
}
.itemOffers section.promotion-item:has(a.promotion-name[data-url$="modal-promotion&id=1"]) .promotion-in-item::before {
  content: "";
  grid-area: img;
  width: 190px;
  height: 150px;
  border-radius: 8px;
  background: url("https://client18615.idobooking.com/images/frontpageGallery/pictures/large/1/0/3.jpg") center / cover no-repeat;
}

/* =========================================================
   MOBILE
   ========================================================= */
@media (max-width: 767px) {
  .itemOffers section.promotion-item {
    margin: 0 12px !important;
  }
  .itemOffers .promotion-in-item,
  .itemOffers section.promotion-item:has(a.promotion-name[data-url$="modal-promotion&id=1"]) .promotion-in-item {
    grid-template-columns: 1fr;
    grid-template-areas:
      "img"
      "info"
      "desc"
      "price";
    row-gap: 14px;
  }
  .itemOffers section.promotion-item:has(a.promotion-name[data-url$="modal-promotion&id=1"]) .promotion-in-item::before {
    width: 100%;
    height: 190px;
  }
  .itemOffers .virOfferPriceBut {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }
}