.offer-wrapper {
  font-family: inherit;
  margin: 0;
  max-width: 100%;
}

.filter-wrapper {
  background: linear-gradient(180deg, #ffffff 0%, #f6f4ff 100%);
  max-width: 100%;
  margin: 0 auto 24px auto;
  padding: 20px;
  box-shadow: 0 12px 28px rgba(37, 30, 85, 0.08);
  border-radius: 18px;
  border: 1px solid rgba(91, 45, 246, 0.16);
}

.filter-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: space-between;
  align-items: flex-start;
  position: relative;
  padding-right: 0;
}

.dropdown-field {
  flex: 1 1 22%;
  display: flex;
  flex-direction: column;
  position: relative;
}

.dropdown-field label {
  margin-bottom: 6px;
  font-weight: 700;
  color: #1f2937;
}

.filter-input,
.dropdown-toggle,
#date-range,
.extra-options select,
.extra-options input[type="number"] {
  width: 100%;
  padding: 12px 14px;
  font-size: 14px;
  border-radius: 12px;
  background: #fff;
  cursor: pointer;
  border: 1px solid #d7dbea;
  transition: border 0.2s ease, box-shadow 0.2s ease;
}

.filter-input:focus,
.dropdown-toggle:focus,
#date-range:focus,
.extra-options select:focus,
.extra-options input[type="number"]:focus {
  border-color: #5b2df6;
  box-shadow: 0 0 0 3px rgba(91, 45, 246, 0.15);
  outline: none;
}

.dropdown-panel {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  background: #fff;
  border: 1px solid #e3e7f5;
  border-top: none;
  max-height: 250px;
  overflow-y: auto;
  z-index: 1000;
  padding: 10px;
  box-shadow: 0 14px 26px rgba(37, 30, 85, 0.18);
  border-radius: 0 0 14px 14px;
}

.dropdown-panel.active {
  display: block;
}

.dropdown-panel label {
  display: flex;
  align-items: center;
  margin-bottom: 4px;
  font-size: 14px;
  padding: 4px 6px;
  border-radius: 8px;
}

.dropdown-panel label:hover {
  background: #f3f4ff;
}

.dropdown-panel label:active {
  background: #e9ecff;
}

.dropdown-panel input[type="checkbox"] {
  margin-right: 8px;
}

.filter-wrapper input[type="text"],
.filter-wrapper input[type="number"],
.filter-wrapper select {
  border: 1px solid #d7dbea;
  border-radius: 12px;
  padding: 12px 14px;
}

.filter-wrapper input[type="text"]:focus,
.filter-wrapper input[type="number"]:focus,
.filter-wrapper select:focus {
  border-color: #5b2df6;
  box-shadow: 0 0 0 3px rgba(91, 45, 246, 0.15);
  outline: none;
}

.filter-wrapper .filter-input,
.filter-wrapper .dropdown-toggle,
.filter-wrapper #date-range {
  height: 44px;
}

.dropdown-panel .section-heading {
  margin: 10px 0 6px;
  font-weight: 700;
  color: #4b2ee8;
  font-size: 13px;
}

.extra-options {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 10px;
}

.extra-options select,
.extra-options input[type="number"] {
  background: #fff;
}

.filter-wrapper .filter-input,
.filter-wrapper .dropdown-toggle,
.filter-wrapper #date-range,
.filter-wrapper .extra-options select,
.filter-wrapper .extra-options input[type="number"] {
  box-shadow: 0 10px 18px rgba(17, 24, 39, 0.06);
}

.filter-wrapper #date-range {
  border: 1px solid #d7dbea !important;
  background: #faf9ff !important;
}

.country-flag {
  display: inline-flex;
  align-items: center;
  margin: 0 6px 0 4px;
  font-size: 14px;
}

.reset-filters {
  position: absolute;
  right: -5px;
  top: -10px;
  cursor: pointer;
  font-size: 20px;
  color: #ef4444;
  background: #ffffff;
  border-radius: 999px;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(91, 45, 246, 0.16);
  box-shadow: 0 10px 18px rgba(37, 30, 85, 0.12);
  opacity: 0;
  pointer-events: none;
  transform: scale(0.9);
  visibility: hidden;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.reset-filters.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: scale(1);
  visibility: visible;
}

.reset-filters:hover {
  color: #dc2626;
  background: #fff5f5;
}

#offers-results {
  max-width: 100%;
  margin: 0 auto;
  margin-top: 0px !important;
}

.wrapper {
  max-width: 100%;
  margin: 0 auto;
  background: #fff;
  box-shadow: 0 0 20px rgba(0,0,0,0.08);
  border-radius: 16px;
  overflow-x: auto;
  overflow-y: hidden;
}

.offers-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.offers-table tr {
  border-bottom: 1px solid #e0e0e0;
  cursor: pointer;
  transition: background 0.2s ease-in-out;
}

.offers-table tr:hover {
  background: #f5f6ff;
}

.offers-table tr:active {
  background: #ecefff;
}

.offers-table td {
  padding: 8px 6px;
  vertical-align: middle;
}

.offers-disclaimer {
  padding: 10px 14px;
  font-size: 12px;
  color: #5b6475;
  background: #f7f8ff;
  border-bottom: 1px solid #e6e8f4;
  border-radius: 12px;
  margin: 12px 0 0;
}

.offers-table-static {
  margin-top: 12px;
}

.offers-skeleton {
  margin-top: 12px;
  display: grid;
  gap: 12px;
}

.skeleton-row {
  display: grid;
  grid-template-columns: 90px 1fr 90px;
  gap: 12px;
  align-items: center;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid #e6e8f4;
  background: #fff;
}

.skeleton-thumb {
  width: 80px;
  height: 80px;
  border-radius: 8px;
}

.skeleton-content,
.skeleton-price {
  display: grid;
  gap: 6px;
}

.skeleton-line,
.skeleton-thumb {
  background: linear-gradient(90deg, #eef0f6 0%, #f7f8ff 50%, #eef0f6 100%);
  background-size: 200% 100%;
  animation: skeletonShimmer 1.4s ease infinite;
}

.skeleton-line {
  height: 10px;
  border-radius: 999px;
}

.skeleton-line.w-60 { width: 60%; }
.skeleton-line.w-50 { width: 50%; }
.skeleton-line.w-40 { width: 40%; }
.skeleton-line.w-30 { width: 30%; }

@keyframes skeletonShimmer {
  0% { background-position: 0% 50%; }
  100% { background-position: 100% 50%; }
}

.load-more-wrapper {
  text-align: center;
  margin-top: 20px;
}

.button-load-more {
  padding: 12px 24px;
  cursor: pointer;
}

.offers-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
}

.offers-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid #e6e8f4;
  background: #ffffff;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.offers-list li:hover {
  background: #f5f6ff;
  box-shadow: 0 8px 16px rgba(37, 30, 85, 0.12);
  transform: translateY(-1px);
}

.offers-list li:active {
  transform: translateY(0);
  background: #ecefff;
}

.offers-list-main {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.offers-list-title {
  font-weight: 700;
  font-size: 14px;
  color: #111827;
}

.offers-list-meta {
  font-size: 12px;
  color: #6b7280;
}

.offers-list-price {
  font-weight: 700;
  color: #16a34a;
  font-size: 14px;
  white-space: nowrap;
}

img.thumbnail {
  border-radius: 4px !important;
  width: 80px;
  height: 80px;
  min-width: 80px;
  min-height: 80px;
  object-fit: cover;
  display: block;
  max-width: none;
}

.offers-table td:first-child {
  width: 90px;
  min-width: 90px;
}

.offers-table td.info-col-cell {
  width: 38%;
}

.offers-table td.details-col {
  width: 18%;
}

.offers-table td.departure-col {
  width: 16%;
}

.offers-table td.price-col {
  width: 18%;
}

.info-col {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.hotel-name {
  font-weight: bold;
  font-size: 13px;
  color: #222;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 190px;
}

.location {
  font-size: 12px;
  color: #666;
}

.details {
  font-size: 13px;
  color: #666;
  line-height: 1.8;
}

.departure-col {
  white-space: nowrap;
}

.departure-col .departure-badge,
.departure-col .own-transport-badge {
  margin-top: 0;
}

.departure-badge {
  display: inline-block;
  background: #5b2df6;
  color: white;
  font-size: 13px;
  padding: 2px 6px;
  border-radius: 4px;
  margin-top: 2px;
}

.own-transport-badge {
  display: inline-block;
  background: #ffc107;
  color: #000;
  font-size: 11px;
  padding: 2px 6px;
  border-radius: 4px;
  margin-top: 2px;
}

.board-badge {
  display: inline-block;
  background: #eef3fa;
  color: #333;
  font-size: 13px;
  padding: 2px 6px;
  border-radius: 4px;
  margin-top: 2px;
}

.departure-badge.departure-mobile,
.own-transport-badge.departure-mobile {
  display: none;
  margin-top: 4px;
}

.price-col {
  text-align: right;
  white-space: nowrap;
}

.price-col .price {
  font-weight: bold;
  font-size: 16px;
  color: #129d43;
}

.price-col .board {
  font-size: 12px;
  color: #666;
  margin-top: 5px;
}

.price-col .rating {
  font-size: 11px;
  color: #999;
  margin-top: 2px;
}

.price-col .days-count {
  font-size: 11px;
  color: #999;
  margin-top: 2px;
}

.days-count-mobile {
  display: none;
}

.days-count-desktop {
  font-size: 13px;
  color: #ffffff;
  margin-top: 4px;
  background: #6fcf74;
  display: inline-block;
  padding: 2px 6px;
  border-radius: 4px;
  margin-left: 6px;
}

.stars {
  color: #f4b400;
  font-size: 13px;
}

/* === MOBILE === */
@media (max-width: 768px) {
  .filter-grid {
    flex-direction: column;
    gap: 12px;
  }

  .dropdown-field {
    flex: 1 1 100%;
    width: 100%;
    margin-bottom: 10px;
  }

  .filter-input,
  .dropdown-toggle,
  #date-range,
  .dropdown-panel,
  .dropdown-field input[type="text"],
  .dropdown-field select,
  .dropdown-field input[type="number"] {
    width: 100% !important;
    box-sizing: border-box;
    max-width: 100%;
  }

  .dropdown-panel {
    position: relative;
    padding: 10px;
  }

  .reset-filters {
    margin: 0px auto 0 auto;
    display: block;
    text-align: center;
  }
}

/* Naprawa wyjeżdżającej listy wyników na mobile */
@media (max-width: 768px) {
  .offer-wrapper {
    overflow-x: hidden;
  }

  .offers-table-static {
    overflow: hidden;
  }

  .wrapper {
    max-width: 100%;
    overflow-x: auto;
  }

  .offers-table {
    width: 100%;
    table-layout: auto;
    word-wrap: break-word;
  }

  .offers-table td {
    word-break: break-word;
  }

  .offers-table td.price-col {
    padding-right: 10px;
    width: 70px;
  }

  .offers-table td.info-col-cell {
    width: auto;
  }

  .offers-table td.details-col {
    display: none !important;
  }

  .details-mobile {
    display: block !important;
  }

  .details {
    font-size: 12px;
  }

  .departure-badge {
    font-size: 11px;
  }

  .offers-table td.departure-col {
    display: none !important;
  }

  .skeleton-row {
    grid-template-columns: 90px 1fr;
  }

  .skeleton-price {
    display: none;
  }

  img.thumbnail {
    width: 76px;
    height: 76px;
    min-width: 76px;
    min-height: 76px;
  }

  .offers-table td:first-child {
    width: 76px;
    min-width: 76px;
  }

  .departure-col {
    display: none;
  }

  .departure-badge.departure-mobile,
  .own-transport-badge.departure-mobile {
    display: inline-block;
  }

  .days-count-mobile {
    display: block;
  }

  .days-count-desktop {
    display: none;
  }
}

#load-more-btn:hover {
  background-color: #5b2df6;
}

    .nested-options {
      margin-left: 20px;
      display: none;
    }
    .has-children > label {
      font-weight: bold;
      cursor: pointer;
      display: flex;
      align-items: center;
      user-select: none;
    }
    .has-children > label svg.arrow {
      width: 12px;
      height: 12px;
      color: #d3d3d3;
      transition: transform 0.2s ease;
    }
    .has-children.expanded > label svg.arrow {
      transform: rotate(-90deg);
    }
    .partial-checked {
      background-color: #ffe6e6;
      border-radius: 4px;
    }

input,
select,
textarea {
  font-size: 16px !important;
}

.section-heading {
  margin-top: 12px;
  margin-bottom: 6px;
  font-weight: bold;
  font-size: 16px;
}

.info-col {
  display: flex;
  flex-direction: column;
  gap: 0px;
}

.info-col > * {
  margin: 0 !important;
  padding: 0 !important;
  line-height: 1.2;
}

.details-col {
  vertical-align: middle;
}

.details-mobile {
  display: none;
  font-size: 12px;
  color: #666;
  margin-top: 6px;
  line-height: 1.3;
}

.details-mobile .board-badge,
.details-mobile .departure-badge,
.details-mobile .own-transport-badge {
  margin-left: 0;
}

.details-line {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
}


@media (max-width: 768px) {
  .offers-table td.info-col-cell {
    width: auto;
  }

  .details-mobile {
    display: block !important;
  }

  .offers-table td.details-col,
  .offers-table td.departure-col {
    display: none !important;
  }
}

.price-col > * {
  margin: 0 !important;
  padding: 0 !important;
  line-height: 1.2;
}

.details > * {
  margin: 0 !important;
  line-height: 1.2;
}

.offers-table tr {
  border-bottom: 1px solid #f2f2f2;
}

.offers-table,
.offers-table td,
.offers-table th {
  border: none !important;
  border-collapse: collapse;
}

img.thumbnail {
  border-radius: 4px !important;
  width: 70px;
  height: 70px;
  object-fit: cover;
}

.offer-wrapper input[type=email], input[type=number], input[type=password], input[type=reset], input[type=search], input[type=tel], input[type=text], input[type=url], select, textarea {
    color: #9ca3af;
    padding: .75em;
    height: auto;
    border-width: 1px;
    border-style: solid;
    border-color: #e6eeff;
    border-radius: 2px;
    background: var(--ast-comment-inputs-background);
    box-shadow: none;
    box-sizing: border-box;
    transition: all .2s linear;
}

#load-more-button:hover {
  background-color: #5b2df6;
}
