.mdsws-offers-wrap { display: block; position: relative; }

/* Global loader: covers the whole viewport but stays under the fixed header.
   The header in many themes uses very high z-index (e.g. 99999), so we keep this lower. */
.mdsws-global-loader{
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 99990;
  background: rgba(255, 255, 255, 0.78);
  backdrop-filter: blur(3px);
  pointer-events: none; /* visual only; do not block header/scroll */
}
.mdsws-page-loading .mdsws-global-loader{ display:flex; }
/* Prevent duplicate loaders: when the global loader is active, hide the list overlay underneath. */
.mdsws-page-loading .mdsws-loading-overlay{ display:none !important; }

/* Page-level loader (shown when filters/sort reload the offers list) */
.mdsws-loading-overlay{
  position: absolute;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 30;
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(3px);
  border-radius: 12px;
}

.mdsws-flight-loader{
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap:14px;
  min-width:160px;
  min-height:160px;
  padding:18px;
}
.mdsws-flight-loader__orbit{
  position:relative;
  width:120px;
  height:120px;
  scale: 0.7;
}
.mdsws-flight-loader__orbit > span{
  position:absolute;
  inset:0;
  transform:rotate(calc(18deg * var(--i)));
}
.mdsws-flight-loader__orbit > span::before{
  content:"";
  position:absolute;
  top:0;
  left:0;
  width:12px;
  height:12px;
  border-radius:50%;
  background:#1096F7;
  box-shadow:0 0 0 4px rgba(16,150,247,0.10);
  transform:scale(0);
  animation:mdsws-flight-pulse 2s linear infinite;
  animation-delay:calc(0.1s * var(--i));
}
.mdsws-flight-loader__plane-wrap{
  position:absolute;
  inset:0;
  animation:mdsws-flight-rotate 2s linear infinite;
  animation-delay:-1s;
}
.mdsws-flight-loader__plane{
  position:absolute;
  top: 114px;
  left: 69px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:44px;
  height:44px;
  font-size:34px;
  line-height:1;
  color:#0F172A;
  transform: rotate(170deg);
  text-shadow:0 3px 10px rgba(15,23,42,0.15);
}
.mdsws-flight-loader__text,
.mdsws-variants-loader__inner{
  font-size:14px;
  font-weight:600;
  line-height:1.3;
  color:#0F172A;
  text-align:center;
}

@keyframes mdsws-flight-pulse{
  0%{ transform:scale(0); opacity:.55; }
  10%{ transform:scale(1.15); opacity:1; }
  80%,100%{ transform:scale(0); opacity:.15; }
}

@keyframes mdsws-flight-rotate{
  0%{ transform:rotate(10deg); }
  100%{ transform:rotate(370deg); }
}
  to   { transform: rotate(360deg); }


/* While loading, dim filters and prevent accidental double-clicks */
.mdsws-page-loading .mdsws-filters-acc,
.mdsws-page-loading .mdsws-filters-actions,
.mdsws-page-loading .mdsws-filter{
  opacity: .65;
  pointer-events: none;
}
.mdsws-offers--favorites .mdsws-hotel{
  margin-bottom: 30px;
}
/* Toolbar (sorting) */
.mdsws-offers-toolbar{
  display:flex;
  align-items:center;
  justify-content: end;
  gap: 10px;
  margin: 0 0 12px 0;
}
.mdsws-offers-toolbar__label{ font-size: 14px; opacity: .9; }
.mdsws-offers-sort{
  min-width: 180px;
  padding: 8px 10px;
  border: 1px solid #E1E1E1;
  border-radius: 5px;
  background: #fff;
  width: unset;
  font-size: 14px;
}

/* Custom sort dropdown (Bootstrap-styled) */
.mdsws-offers-sort--hidden{ display:none !important; }

.mdsws-sort-dropdown .mdsws-sort-btn{
  min-width: 180px;
  padding: 8px 10px;
  border: 1px solid #E1E1E1 !important;
  border-radius: 5px !important;
  background: #fff !important;
  font-size: 14px;
  width: unset;
  display: flex;
  align-items: center;
  gap: 8px;
}
.mdsws-sort-dropdown .mdsws-sort-btn:focus{
  box-shadow: 0 0 0 .15rem rgba(212,175,55,.25) !important;
}


.mdsws-sort-dropdown{ position: relative; }
.mdsws-sort-dropdown .mdsws-sort-menu{
  display: none;
  position: absolute;
  right: 0;
  top: 100%;
  z-index: 1000;
  min-width: 180px;
  background: #fff;
  border: 1px solid #E1E1E1;
  border-radius: 10px;
  padding: 6px;
  margin-top: 6px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.12);
}
.mdsws-sort-dropdown .mdsws-sort-menu.show{ display: block; }

.mdsws-sort-dot{
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #d4af37;
  display: inline-block;
  opacity: 0;
  flex: 0 0 10px;
}
.mdsws-sort-dot.is-on{ opacity: 1; }

.mdsws-sort-btn-label{
  flex: 1 1 auto;
  min-width: 0;
  text-align: left;
}

/* Menu items: dot + label */
.mdsws-sort-menu .mdsws-sort-item{
  display:flex;
  align-items:center;
  gap: 8px;
}
.mdsws-dot,
.mdsws-dot-spacer{
  width: 10px;
  height: 10px;
  border-radius: 50%;
  display:inline-block;
  flex: 0 0 10px;
}
.mdsws-dot{ background: #d4af37; }
.mdsws-dot-spacer{ background: transparent; }

.mdsws-sort-menu .mdsws-sort-item.active{
  background: rgba(212,175,55,.14);
  color: inherit;
}

.mdsws-offers-list { display: grid; gap: 30px; }
.mdsws-hotel{
    box-shadow: 0px 10px 30px 0px rgba(0, 0, 0, 0.16);
    border-radius: 20px;
    width: 100%;
    overflow: hidden;
}

.mdsws-hotel__top{
  display:flex;
  gap: 0px;
  align-items: stretch;
}

.mdsws-hotel__thumb{
    width: 420px;
    flex: 0 0 420px;
    min-height: 100%;
    aspect-ratio: 430 / 300;
}

.mdsws-hotel__thumb img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 0px;
  display:block;
}

.mdsws-hotel__thumb--placeholder{
  width: 100%;
  height: 300px;
  border-radius: 0;
  background: #f1f1f1;
  border: 1px dashed #d5d5d5;
}

.mdsws-hotel__content{
  flex: 1 1 auto;
  min-width: 0;
  display:flex;
  flex-direction:column;
  padding:30px;
  align-items: start;
  justify-content: center;
}

.mdsws-hotel__loc{
  font-size: 14px;
  opacity: .85;
  margin: 0 0 6px 0;
}

.mdsws-hotel__title{
  margin: 0;
  font-size: 18px;
  font-weight: 500;
  line-height: 1.2;
}

.mdsws-hotel__stars{
  font-size: 23px;
  letter-spacing: 1px;
  opacity: .9;
  margin: 0 0 5px 0;
  color: #D2B13D;
}

.mdsws-hotel__desc{
  font-size: 14px;
  line-height: 1.45;
  opacity: .9;
  margin: 0 0 12px 0;
}

.mdsws-hotel__desc--loading{ opacity: .65; }

.mdsws-hotel__bottom{
  margin-top: auto;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 14px;
  margin-top: 0;
  width: 100%;
}

.mdsws-hotel__pills{
  display:flex;
  gap: 8px;
  flex-wrap:wrap;
}

.mdsws-pill{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap: 5px;
  padding: 10px;
  border-radius: 999px;
  background: #F5F6F6;
  font-size: 14px;
  line-height: 1;
  white-space: nowrap;
  border: 1px solid #E1ECEF;
}


/* Wrapper dla "Liczba osób" + znacznik "Polecane" za całą pigułką */
.mdsws-pillwrap{
  display:inline-flex;
  align-items:center;
  gap: 6px;
}

/* Złota kropka "Polecane" (za pigułką "Liczba osób") */
.mdsws-featured-dot{
  display:inline-block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #D2B13D;
  box-shadow: 0 0 0 1px rgba(0,0,0,.06);
}

.mdsws-hotel__cta{
  display:flex;
  align-items:center;
  gap: 12px;
}

.mdsws-hotel__pricepp{
  font-weight: 400;
  font-size: 18px;
  color: #D2B13D;
  white-space: nowrap;
  display: flex;
  align-items: center;
  justify-content: end;
  margin-bottom: 15px;
  width: 100%;
}

.mdsws-hotel__pricemin30{
  font-weight: 400;
  font-size: 12px;
  color: #6b7280;
  white-space: nowrap;
  display: flex;
  align-items: center;
  justify-content: end;
  margin-top: -10px;
  margin-bottom: 15px;
  width: 100%;
}

.mdsws-hotel__btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding: 11px 40px;
  border-radius: 5px;
  background: #1096F7;
  color: #fff;
  text-decoration: none;
  font-weight: 400;
  white-space: nowrap;
  font-size: 14px;
}
.mdsws-hotel__btn:hover{ filter: brightness(0.95); }

/* @media (max-width: 860px){
  .mdsws-hotel__top{ flex-direction: column; }
  .mdsws-hotel__thumb{ width: 100%; flex: 1 1 auto; }
  .mdsws-hotel__thumb img,
  .mdsws-hotel__thumb--placeholder{ height: 220px; }
  .mdsws-hotel__bottom{ align-items:flex-start; flex-direction: column; }
  .mdsws-hotel__cta{ width: 100%; justify-content: space-between; }
} */
.mdsws-offers-loader, .mdsws-offers-end { display: none !important; padding: 12px; border: 1px dashed #ccc; border-radius: 8px; text-align: center; margin-top: 12px; }
.mdsws-offers-sentinel { height: 1px; }
.mdsws-offers--error { padding: 12px; border: 1px solid #cc0000; border-radius: 8px; }


/* Load more button (fallback / explicit UX) */
.mdsws-offers-more{
  display:inline-block;
  margin: 12px 0;
  padding: 10px 14px;
  border: 1px solid #111;
  border-radius: 8px;
  background: #fff;
  cursor: pointer;
}
.mdsws-offers-more:hover{ filter: brightness(0.98); }

/* Debug (widoczne tylko przy ?mdsws_debug=1 dla admina) */
.mdsws-hotel__thumb--debug,
.mdsws-debug-img,
.mdsws-img-debug{
  margin-top: 6px;
  font-size: 12px;
  line-height: 1.25;
  color: #8a1f11;
}

.mdsws-hotel__thumb--debug{
  padding: 6px 8px;
  border: 1px dashed #d1a7a1;
  border-radius: 8px;
  background: #fff6f5;
}

/* Filters (np. [mds_filtry_wyzywienie]) */
.mdsws-filters{ margin: 0 0 12px 0; }
.mdsws-filter{ position: relative; display: inline-block; }
.mdsws-filter__button{
  display:inline-flex;
  align-items:center;
  justify-content:space-between;
  min-width: 240px;
  padding: 10px 12px;
  border: 1px solid #d8d8d8;
  border-radius: 8px;
  background: #fff;
  cursor: pointer;
}
.mdsws-filter__panel{
  position: absolute;
  z-index: 50;
  top: calc(100% + 6px);
  left: 0;
  width: 320px;
  max-width: 90vw;
  background: #fff;
  border: 1px solid #d8d8d8;
  border-radius: 10px;
  box-shadow: 0 8px 28px rgba(0,0,0,0.12);
  padding: 10px;
}
.mdsws-filter__panel[hidden]{ display:none; }
.mdsws-filter__list{ max-height: 280px; overflow:auto; margin: 0 0 10px 0; padding: 0; list-style:none; }
.mdsws-filter__item{ display:flex; gap:10px; align-items:flex-start; padding: 8px 6px; border-radius: 8px; }
.mdsws-filter__item:hover{ background: #f6f6f6; }
.mdsws-filter__actions{ display:flex; gap: 10px; justify-content:flex-end; }
.mdsws-filter__actions button{
  padding: 9px 12px;
  border-radius: 8px;
  border: 1px solid #111;
  background: #fff;
  cursor: pointer;
}
.mdsws-filter__actions button.mdsws-filter__apply{ background:#111; color:#fff; }
.mdsws-filter__hint{ font-size: 12px; opacity: .75; margin-top: 6px; }


/* Accordion filters (sidebar-style, no popups) */
.mdsws-filters-acc{
  display:block;
  margin: 0 0 12px 0;
}
.mdsws-acc{
  border: none;
  border-radius: 0px;
  background: transparent;
  margin: 0 0 10px 0;
  overflow: hidden;
}
.mdsws-acc__summary{
  list-style:none;
  cursor:pointer;
  padding: 5px 0;
  font-weight: 500;
  display:flex;
  align-items:center;
  justify-content:start;
  gap:0;
}
.mdsws-acc__summary::-webkit-details-marker{ display:none; }
.mdsws-acc__summary:after{
  content:"";
  display:inline-block;
  width: 10px;
  height: 6px;
  margin-left: 10px;
  opacity: .75;
  vertical-align: middle;
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
  background-image: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%229.674%22%20height%3D%225.897%22%20viewBox%3D%220%200%209.674%205.897%22%3E%3Cpath%20id%3D%22arrow%22%20d%3D%22M-18792%2C1324.29l4.3%2C4.306%2C2.693-2.691%2C1.615-1.615%22%20transform%3D%22translate%28-18782.857%201329.657%29%20rotate%28180%29%22%20fill%3D%22none%22%20stroke%3D%22%23000%22%20stroke-width%3D%221.5%22%2F%3E%3C%2Fsvg%3E");
 transform: rotate(180deg);
}

.mdsws-acc[open] .mdsws-acc__summary:after{
  transform: rotate(0deg);
}

.mdsws-acc__body{
  padding: 0;
  border-top: none;
}
.mdsws-acc__loading,
.mdsws-acc__error{
  font-size: 13px;
  opacity: .9;
}
.mdsws-acc__opt{
  display:flex;
  align-items:center;
  gap: 12px;
  padding: 5px 0;
  cursor:pointer;
}
.mdsws-acc__opt input{
  width: 20px;
  height: 20px;
  margin-top: 0px;
  flex: 0 0 20px;
  border: 1px solid #BCD4DC;
  border-radius: 2px;
  position:relative
}
.mdsws-acc__opt input:after{
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
  border: 1px solid #BCD4DC;
  border-radius: 2px;
  background-color: #fff;;
}
.mdsws-acc__opt input:before{
    content: '';
    position: absolute;
  width: 12px;
  height: 8px;
  left:50%;
  top:50%;
  transform: translate(-50%, -50%);
background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
  z-index: 9;
  opacity: 0;
  background-image: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2212.135%22%20height%3D%228.702%22%20viewBox%3D%220%200%2012.135%208.702%22%3E%3Cpath%20id%3D%22check%22%20d%3D%22M-18792%2C1324.29l4.3%2C4.306%2C4.475-4.71%2C2.281-2.4%22%20transform%3D%22translate%2818792.531%20-1320.969%29%22%20fill%3D%22none%22%20stroke%3D%22%23000%22%20stroke-width%3D%221.5%22%2F%3E%3C%2Fsvg%3E");
}
.mdsws-acc__opt input:checked:before{

  opacity: 1;
 
}
.mdsws-acc__opt span{
  display:block;
  line-height: 1.2;
}
.mdsws-acc__opt em{ font-style: normal; opacity: .7; }

.mdsws-acc__row{
  display:flex;
  gap: 10px;
  margin: 0 0 10px 0;
  
}
.mdsws-acc__field{
  display:flex;
  flex-direction:column;
  gap: 4px;
  width: calc(50% - 5px);
}
.mdsws-acc__field span{ font-size: 12px; opacity: .8; }
.mdsws-acc__field input{
  border: 1px solid #E1E1E1;
  border-radius: 5px;
  padding: 8px 10px;
}

/* Filters panel actions */
.mdsws-filters-actions{
  display:flex;
  justify-content:flex-end;
  margin: 8px 0 0 0;
}
.mdsws-filters-reset{
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid #d8d8d8;
  background: #fff;
  cursor: pointer;
  font-weight: 400;
  color: #6e6e6e;
  font-size: 14px;
}
.mdsws-filters-reset:hover{ background: #f7f7f7; }
.mdsws-acc__apply-price{
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid #111;
  background: #111;
  color: #fff;
  cursor: pointer;
}


/* Offer details page */
.mdsws-offer-details-page{ display:block; }
.mdsws-offer-hero{
  display:flex;
  flex-direction:row;
  gap: 30px;
  align-items:start;

}
@media (max-width: 920px){
  .mdsws-offer-hero{ grid-template-columns: 1fr; }
}
.mdsws-offer-hero__media{
  border: 0;
  border-radius: 0;
  background: transparent;
  overflow: visible;
  width: calc(50% - 15px);
}
.mdsws-offer-hero__placeholder{
  width:100%;
  height: 360px;
  background:#f1f1f1;
  border-radius: 22px;
}

/* Offer gallery (main + thumbs) */
.mdsws-offer-gallery{ display:block; position: relative;}
.mdsws-offer-gallery__main{
  border: 0;
  padding: 0;
  width: 100%;
  background: transparent;
  cursor: pointer;
  display:block;
  position: relative;
}
.mdsws-offer-gallery__main-img{
  width:100%;
  height: 420px;
  object-fit: cover;
  display:block;
  border-radius: 22px;
}
@media (max-width: 640px){
  .mdsws-offer-gallery__main-img{ height: 260px; }
}

.mdsws-offer-gallery__thumbs{
  display: flex;
  gap: 15px;
  padding: 0 0 6px;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  touch-action: pan-x;
  position: relative;
  scrollbar-width: none;
}

.mdsws-offer-gallery__thumbs::-webkit-scrollbar{
  display: none;
}

.mdsws-offer-gallery__thumb{
  flex: 0 0 auto;
  touch-action: manipulation;
}

.mdsws-offer-gallery:after{
  content: '';
  position: absolute;
  bottom:0;
  right: 0;
  width: 100px;
  height: 128px;
  background: linear-gradient(90deg,rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 1) 100%);
  pointer-events: none;
}

.mdsws-offer-gallery__thumbs.is-dragging{
  cursor: grabbing;
  user-select: none;
}
.mdsws-offer-gallery__thumbs.is-dragging *{
  user-select: none;
}
.mdsws-offer-gallery__thumb{
  border: 0;
  padding: 0;
  background: transparent;
  cursor: pointer;
  position: relative;
  flex: 0 0 auto;

}
.mdsws-offer-gallery__thumb img{
  width: 175px;
  height: 113px;
  object-fit: cover;
  display:block;
  border-radius: 10px !important;
  border: 2px solid #fff !important;
}
.mdsws-offer-gallery__thumb.is-active img{
  border: 2px solid #D2B13D !important;
}
.mdsws-offer-gallery__thumb.is-more img{
  filter: blur(0px);
  opacity: .65;
}
.mdsws-offer-gallery__more{
  position:absolute;
  inset: 0;
  display:flex;
  align-items:center;
  justify-content:center;
  font-weight: 700;
  border-radius: 14px;
  background: rgba(255,255,255,.55);
  color: #111;
}

/* Lightbox */
.mdsws-lightbox{
  position: fixed;
  inset: 0;
  z-index: 99999;
  background: rgba(0,0,0,.82);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 18px;
}
.mdsws-lightbox.is-open{ display:flex; }
.mdsws-lightbox__img{
  max-width: min(1100px, 96vw);
  max-height: 86vh;
  width: auto;
  height: auto;
  border-radius: 14px;
  display:block;
}
.mdsws-lightbox__btn{
  position: absolute;
  border: 0;
  background: rgba(255,255,255,.12);
  color: #fff;
  cursor: pointer;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  display:flex;
  align-items:center;
  justify-content:center;
  font-size: 24px;
}
.mdsws-lightbox__btn:hover{ background: rgba(255,255,255,.20); }
.mdsws-lightbox__close{ top: 18px; right: 18px; }
.mdsws-lightbox__prev{ left: 18px; }
.mdsws-lightbox__next{ right: 18px; }
.mdsws-lightbox__caption{
  position:absolute;
  bottom: 18px;
  left: 18px;
  right: 18px;
  text-align:center;
  color: rgba(255,255,255,.85);
  font-size: 13px;
}

.mdsws-offer-hero__info{
  background:#fff;
  padding-top: 30px;
  padding-left: 115px;
  width: calc(50% - 15px);
}
.mdsws-offer-title{ margin: 0; font-size: 18px; }
.mdsws-offer-sub{ display:flex; flex-wrap:wrap; gap: 10px; opacity:1; margin-bottom: 0px; }
.mdsws-offer-stars{ letter-spacing:1px; color: #D2B13D; font-size: 24px;}

.mdsws-offer-meta{ margin: 0 0 12px 0; }
.mdsws-offer-meta div{ display:flex; justify-content:space-between; gap: 10px; padding: 0; }
.mdsws-offer-meta dt{ font-weight:600; opacity:.85; }
.mdsws-offer-meta dd{ margin: 0; text-align:right; }

/* Offer details meta (layout wg makiety: 2 linie dla Wylot/Powrót) */
.mdsws-offer-meta--project .mdsws-offer-meta__row{
  padding: 9px 0;
  border-bottom: 1px solid #eaeaea;
}
.mdsws-offer-meta--project dt{
  font-weight: 400;
  opacity: 1;
}
.mdsws-offer-meta--project dd{
  text-align: right;
}
.mdsws-offer-meta--project .mdsws-offer-meta__main{
  font-weight: 700;
  display:block;
}
.mdsws-offer-meta--project .mdsws-offer-meta__sub{
  font-weight: 700;
  display:block;
  margin-top: 2px;
}

.mdsws-offer-note{ margin: 6px 0 0; font-size: 14px; line-height: 1.4; }
.mdsws-offer-note strong{ font-weight: 600; }

/* TripAdvisor inline (pod notką TFG w prawym panelu) */
.mdsws-tripadvisor-inline{ margin: 8px 0 0; font-size: 14px; line-height: 1.25; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.mdsws-tripadvisor-inline__rating{ font-weight: 700; }
.mdsws-tripadvisor-inline__stars{ color: #f2b203; letter-spacing: 1px; }
.mdsws-tripadvisor-inline__reviews{ color: #666; font-size: 13px; }

.mdsws-offer-price{ display:flex; justify-content:space-between; align-items:baseline; gap: 10px; padding: 10px 12px; border-radius: 12px; border: 1px solid #111; background:#111; color:#fff; margin: 10px 0; }
.mdsws-offer-price__label{ opacity:.85; }
.mdsws-offer-price__value{ font-weight:700; }

.mdsws-offer-attrs{ margin-top: 10px; }
.mdsws-offer-attrs__title{ font-weight: 700; margin-bottom: 6px; }
.mdsws-offer-attrs ul{ margin: 0; padding-left: 18px; }

.mdsws-offer-section{
  border: 1px solid #e5e5e5;
  border-radius: 12px;
  background:#fff;
  margin: 0 0 12px 0;
  overflow:hidden;
}
.mdsws-offer-section > summary{
  list-style:none;
  cursor:pointer;
  padding: 12px 14px;
  font-weight:700;
  display:flex;
  align-items:center;
  justify-content:space-between;
}
.mdsws-offer-section > summary::-webkit-details-marker{ display:none; }
.mdsws-offer-section > summary:after{ content:"▾"; opacity:.7; }
.mdsws-offer-section[open] > summary:after{ content:"▴"; }
.mdsws-offer-section > *:not(summary){ padding: 12px 14px 14px 14px; }

.mdsws-offer-muted{ opacity:.85; font-size: 14px; }

.mdsws-offer-table-wrap{ overflow:auto; margin-top: 20px; }
.mdsws-offer-table{ width:100%; border-collapse:collapse; min-width: 1344px; }
.mdsws-offer-table th, .mdsws-offer-table td{ padding: 10px 10px; border-bottom: 1px solid #f0f0f0; text-align:left; font-size: 14px; }
.mdsws-offer-table th{ background:#fafafa; font-weight:700; }
.mdsws-offer-table__price{ font-weight:700; white-space:nowrap; }
.mdsws-offer-table tr.is-current{ background:#f6fbff; }

.mdsws-offer-btn{
  display:inline-block;
  padding: 8px 10px;
  border: 1px solid #111;
  border-radius: 10px;
  background:#fff;
  text-decoration:none;
  white-space:nowrap;
}

.mdsws-offer-accordion{ display:block; }
.mdsws-offer-acc{ border: 1px solid #f0f0f0; border-radius: 12px; margin: 0 0 10px 0; overflow:hidden; }
.mdsws-offer-acc summary{ padding: 10px 12px; cursor:pointer; font-weight:600; list-style:none; display:flex; justify-content:space-between; align-items:center; }
.mdsws-offer-acc summary::-webkit-details-marker{ display:none; }
.mdsws-offer-acc summary:after{ content:"▾"; opacity:.7; }
.mdsws-offer-acc[open] summary:after{ content:"▴"; }
.mdsws-offer-acc__body{ padding: 10px 12px 12px 12px; border-top: 1px solid #f0f0f0; }

.mdsws-offer-gallery{ 
  display:flex; 
  flex-direction: column;
  gap: 15px; }
@media (max-width: 1024px){ .mdsws-offer-gallery{ grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 640px){ .mdsws-offer-gallery{ grid-template-columns: repeat(2, 1fr); } }
.mdsws-offer-gallery img{ width:100%; 

  object-fit: cover;
   border-radius: 20px;
    border: 1px solid #ececec; 
    display:block;
    aspect-ratio: 8/5;
  }

.mdsws-offer-map iframe{ width:100%; height: 360px; border: 0; border-radius: 12px; }
@media (max-width: 640px){ .mdsws-offer-map iframe{ height: 260px; } }
.mdsws-offer-map__link{ margin-top: 8px; }


/* Offer details: variants table filters */
.mdsws-variants-table thead{

}
.mdsws-variants-filters{
 background:#f5f7f8;
  padding:8px 8px;
  border-radius: 20px;
}
.mdsws-variants-table thead tr.mdsws-variants-filters th{
 
  vertical-align:middle;
  border-radius: 0;
}
.mdsws-variants-table thead tr.mdsws-variants-filters select{
  width:100%;
  max-width:100%;
  padding:3px 8px;
  border:1px solid #DCDCDC;
  border-radius:5px;
  background:#fff;
  font-size:14px;
}
.mdsws-variants-table td.mdsws-offer-table__diff,
.mdsws-variants-table th.mdsws-offer-table__diff{
  text-align:right;
  white-space:nowrap;
}
.mdsws-variants-table td.mdsws-offer-table__sum,
.mdsws-variants-table th.mdsws-offer-table__sum{
  text-align:right;
  white-space:nowrap;
}
.mdsws-variants-price-link{
  text-decoration:none;
  font-weight:500;
  color: #D2B13D;
}

.mdsws-variants-table tbody tr[data-href]{
  cursor:pointer;
}

.mdsws-variants-table td.mdsws-offer-table__pick,
.mdsws-variants-table th.mdsws-offer-table__pick{
  text-align:right;
  white-space:nowrap;
}

.mdsws-variants-pick{
  display:inline-block;
  padding:8px 10px;
  border-radius:3px;
  text-decoration:none;
  border:1px solid #d7dde3;
  background:#fff;
}

.mdsws-variants-pick:hover{
  background:#f5f7f8;
}
.mdsws-variants-more-wrap{
  display:flex;
  justify-content:flex-end;
  padding:12px 0 0;
}
.mdsws-variants-more{
  border:0;
  padding:10px 14px;
  border-radius:3px;
  cursor:pointer;
}


/* Offer details: booking panel (obłożenie + pokoje + "Dalej") */
.mdsws-booking{
margin-top: 60px;
  display: flex;
  flex-direction: row;
  align-items: start;
  flex-wrap: wrap;
}
.mdsws-booking__occupancy{
  display:flex;
  flex-wrap:wrap;
  gap:12px;
  align-items:center;
}
.mdsws-booking__label{ font-weight:500; font-size: 18px; margin-right:4px; width: 100%; }
.mdsws-booking__ctrl{ display:flex; 
  flex-direction:column;
  align-items:start; gap:8px; }
.mdsws-booking__pax{ font-weight:400; font-size: 14px; color: #545454;}
.mdsws-booking__btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:30px;
  height:30px;
  text-decoration:none;
  line-height:1;
  color: #545454;
}
.mdsws-booking__count-wrapper{
  display: flex;
  align-items: center;
  justify-content: start;
  border: 1px solid #E1E1E1;
  border-radius: 5px;
  padding: 5px 0;
}
.mdsws-booking__count{ min-width: 22px; text-align:center; font-weight:600; }
.mdsws-booking__rooms{ width: 100%; display: flex; flex-direction: column; align-items: start; gap: 30px;}
.mdsws-booking__empty{ padding: 12px; opacity:.85; }

.mdsws-room-option{
  display:flex;
  align-items:stretch;
  justify-content:space-between;
  gap:14px;
  padding:30px;
  box-shadow: 0px 0px 40px rgba(0, 0, 0, 0.10);
  width: 100%;
  border-radius: 20px;
}
.mdsws-room-option:last-child{ border-bottom:0; }
.mdsws-room-option__left{ min-width: 180px; }
.mdsws-room-option__name{ font-weight:500; margin-bottom:2px; }
.mdsws-room-option__pp{ opacity:1; font-size: 14px; }
.mdsws-room-option__min30{ opacity:.85; font-size: 13px; margin-top: 4px; }
.mdsws-room-option__right{ display:flex; align-items:center; gap:14px; margin-left:auto; }
.mdsws-room-option__sum{ text-align:right; white-space:nowrap; color: #D2B13D; }
.mdsws-room-option__sum span{ opacity:.85; margin-right:6px; }
.mdsws-room-option__next{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:11px 40px;
  border-radius:5px;
  background:#1096F7;
  color:#fff;
  text-decoration:none;
  white-space:nowrap;
}
.mdsws-room-option__next:hover{ filter: brightness(0.95); }

@media (max-width: 640px){
  .mdsws-room-option{ flex-direction:column; }
  .mdsws-room-option__right{ justify-content:space-between; }
}
.mdsws-offer-sections{
  margin-top: 100px;
}
.mdsws-offer-text__title{
  font-size: 18px;
}
.mdsws-offer-desc{
  position: relative;
}

.mdsws-offer-desc__content{
  overflow: hidden;
  max-height: 260px;              /* musi odpowiadać data-collapsed jeśli nie użyjesz JS */
  transition: max-height .25s ease;
  position: relative;
}

/* gradient na dole gdy zwinięte */
.mdsws-offer-desc.is-collapsed .mdsws-offer-desc__content:after{
  content:"";
  position:absolute;
  left:0; right:0; bottom:0;
  height:230px;
  pointer-events:none;
  background: linear-gradient(to bottom, rgba(255,255,255,0), #fff);
}

.mdsws-offer-desc__toggle{
  position: absolute;
  left: 50%;
  bottom: 12px;
  transform: translateX(-50%);
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid #E1ECEF;
  background: #F5F6F6;
  cursor: pointer;
}

/* po rozwinięciu nie zasłaniamy treści */
.mdsws-offer-desc.is-expanded .mdsws-offer-desc__toggle{
  position: static;
  transform: none;
  margin: 0 auto;
  display: flex;
}
.mdsws-offer-map-section{
  margin: 0 auto;
  margin-top: 75px;
  width: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
}
.mdsws-offer-map-section h2{
  text-align: center;
}
.mdsws-offer-map{
  width: 100%;
  margin-top: 20px;

}
.mdsws-offer-map iframe{
    box-shadow: 0px 20px 40px rgba(0, 0, 0, 0.10);

}
/* Badge: rezerwowalność (BookV4) */
.mdsws-hotel__thumb { position: relative; }
.mdsws-hotel__badge {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 3;
  padding: 6px 10px;
  font-size: 12px;
  line-height: 1;
  border-radius: 999px;
  background: rgba(0,0,0,0.65);
  color: #fff;
  backdrop-filter: blur(2px);
}
.mdsws-hotel__badge--ok { background: rgba(0, 128, 0, 0.75); }
.mdsws-hotel__badge--no { background: rgba(160, 0, 0, 0.75); }
.mdsws-hotel__badge--unknown { background: rgba(0,0,0,0.45); }
.mdsws-filters-float{
  position: fixed;
  bottom: 20px;
  right: 20px;
    width: 70px;
    height: 70px;
  background-color: #D2B13D;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  cursor: pointer;
  z-index: 9999;
  color: #fff;
  font-size: 12px;
  display:none;
}
.mdsws-filters-close{
  display: none;
}

.mdsws-offer-section-table{
  margin-top: 110px;
}
@media (max-width: 1453px){
  .mdsws-hotel__bottom{
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
  .mdsws-hotel__pricepp{
    justify-content: start;
  }
  .mdsws-offer-hero__info{
    padding-left:0;
  }
}

@media (max-width: 1199px){
  .mdsws-filters-acc{
    width: 100%;
    height: 100%;
    position: fixed;
    top:0;
    left:0;
    z-index: 9999999 ;
    background-color: #fff;
    padding: 130px 50px 110px 50px;
    display: none;
    overflow-y: scroll;
  }
  .mdsws-filters-acc.active{
    display: block;
  }
  .mdsws-filters-close{
    display: block;
    position: absolute;
    top: 110px;
    right: 60px;
    font-size: 18px;
    cursor: pointer;
  }
  .mdsws-filters-float{
    display: flex;
  }
  .mdsws-field label{
    font-size: 12px;
  }
  .mdsws-offer-gallery__main-img{
    height: 320px;
  }
  .mdsws-booking{
    flex-direction: column;
    gap: 20px;
  }
  .mdsws-offer-map-section{
    width: 75%;
  }
}

@media (max-width: 991px){
  .mdsws-search-grid{
    display: flex !important;
    flex-direction: row !important;
    align-items: start !important;
    justify-content: start !important;
    flex-wrap: wrap !important;
  }
  .mdsws-field{
    width: calc(50% - 6px);
  }
  .mdsws-hotel__thumb{
width: 290px;
    flex: 0 0 290px;
  }
  .mdsws-offer-hero__media{
    width: 100%;
  }
  .mdsws-offer-hero__info{
    width: 100%;
    padding-top: 0;
  }
  .mdsws-offer-hero{
    flex-direction: column;
    gap: 30px;
  }
  .mdsws-booking{
    margin-top:40px;
  }
  .mdsws-room-option{
    flex-direction: column;
    padding: 15px;
  }
  .mdsws-room-option__right{
    margin-left:0;
  }
  .mdsws-offer-sections{
    margin-top: 40px;
  }
  .mdsws-offer-map-section{
    width: 100%;
    margin-top: 40px;
  }
}

@media (max-width: 767px){
  .mdsws-field{
    width: 100%;
  }
  .mdsws-filters-acc{
      padding: 110px 20px 30px 20px;
  }
  .mdsws-filters-close{
    right: 30px;
  }
  .mdsws-hotel__top{
    flex-direction: column;
  }
    .mdsws-hotel__thumb{
    width: 100%;
    flex: 0 0 100%;
    aspect-ratio: 16 / 9;
  }
}


@media (max-width: 575px){
.mdsws-search-form{
  padding: 15px;
}
.mdsws-hotel__content{
  padding:  15px;
}
.mdsws-hotel__stars{
  margin-bottom: 0;
}
.mdsws-hotel__desc{
  margin-bottom: 5px
}
.mdsws-hotel__pricepp{
  margin-bottom: 5px;
}
  .mdsws-offer-gallery__main img{
height: unset;
  }
  .mdsws-offer-gallery__thumb img{
    height: 80px;
  }
}

.mx-ac-group--static{
  display: none;
}

/* ===== Ulubione oferty ===== */
.mdsws-fav-btn{
  border: 1px solid #d1d5db;
  background: #fff;
  border-radius: 999px;
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  line-height: 1;
  font-size: 18px;
  padding: 0;
}

.mdsws-fav-btn.is-active{
      border-color: #D2B13D;
    background: #D2B13D;
    color: #fff;
}
.mdsws-offers--favorites .mdsws-fav-btn.is-active{
  border-color: #D2B13D;
  background: #D2B13D;
  color: #fff;
}
.mdsws-fav-btn:focus{ outline: none; box-shadow: 0 0 0 2px rgba(17,24,39,0.25); }

/* Widok "Ulubione": zamiast ikonki serca pokazujemy tekst pod przyciskiem "Zobacz ofertę" */
.mdsws-hotel__cta--favorites{
  flex-direction: row-reverse;
  align-items: flex-end;
  gap: 10px;
}

.mdsws-fav-btn--remove{
  width: auto;
  height: auto;
  border: none;
  background: transparent;
  padding: 0;
  border-radius: 0;
  font-size: 12px;
  color: #6b7280;
}
.mdsws-fav-btn--remove:hover{ text-decoration: underline; }



/* Favorites icon with count badge */
.mdsws-fav-icon{
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}
.mdsws-fav-badge{
  position: absolute;
  top: -6px;
  right: -6px;
  min-width: 18px;
  height: 18px;
  padding: 0 4px;
  border-radius: 999px;
  font-size: 12px;
  line-height: 18px;
  text-align: center;
  font-weight: 700;
  background: #111;
  color: #fff;
}


.mdsws-pill__code{font-size:11px;font-weight:600;margin:0 6px;display:inline-block;vertical-align:middle;opacity:.75}

.mdsws-pill__code--prefix{margin:0 6px 0 0;}

.mdsws-transport-label{
  display: none;
}

/* Offer details: variants block loader overlay */
.mdsws-offer-table-wrap--variants{ position: relative; }
.mdsws-variants-loader{
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,0.94);
  backdrop-filter: blur(3px);
  z-index: 20;
}
.mdsws-variants-loader .mdsws-flight-loader{
  min-width: 180px;
  min-height: 180px;
}
.mdsws-variants-table.is-loading{ filter: blur(0); }
.mdsws-variants-table.is-loading select{ pointer-events: none; opacity: .6; }
.mdsws-variants-more-wrap{ position: relative; z-index: 5; }
