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

.filter-wrapper {
  background: #fff;
  max-width: 100%;
  margin: 0 auto 30px auto;
  padding: 20px;
  box-shadow: 0 0 12px rgba(0, 0, 0, 0.05);
}

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

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

.dropdown-field label {
  margin-bottom: 6px;
}

.filter-input,
.dropdown-toggle,
#date-range {
  width: 90%;
  padding: 12px;
  font-size: 14px;
  border-radius: 3px;
  background: #fff;
  cursor: pointer;
}

.dropdown-panel {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  width: 90%;
  background: #fff;
  border: 1px solid #ccc;
  border-top: none;
  max-height: 250px;
  overflow-y: auto;
  z-index: 1000;
  padding: 10px;
  box-shadow: 0 5px 10px rgba(0,0,0,0.05);
}

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

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

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

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

.extra-options select,
.extra-options input[type="number"] {
  padding: 8px;
  font-size: 14px;
  border-radius: 6px;
  border: 1px solid #ccc;
}

.reset-filters {
  display: none;
  margin-left: auto;
  cursor: pointer;
  font-size: 20px;
  color: #888;
  margin-top: 35px;
}

#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.1);
}

.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: #f0f8ff;
}

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

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


.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: 220px;
}

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

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

.departure-badge {
  display: inline-block;
  background: #2a6df4;
  color: white;
  font-size: 11px;
  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: 11px;
  padding: 2px 6px;
  border-radius: 4px;
  margin-top: 2px;
}

.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;
}

.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) {
  .wrapper {
    max-width: 100%;
    overflow-x: auto;
  }

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

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

#load-more-btn:hover {
  background-color: #0d6efd;
}

    .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;
}

.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: #0d6efd;
}

