/* Shared responsive safeguards; Bootstrap grid is kept separate from the visual theme. */
img,
video,
iframe {
  max-width: 100%;
}
input,
select,
textarea {
  min-width: 0;
  max-width: 100%;
}
.shell,
.wrap,
.rental-main,
.rental-layout > *,
.rental-detail-layout > *,
.filters-layout > *,
.feed-grid > *,
.resort-grid > *,
.cards > *,
.grid > *,
.section-head > * {
  min-width: 0;
}
@media (max-width: 991.98px) {
  .tour-tabs {
    max-width: 100%;
    overflow-x: auto;
  }
}
@media (max-width: 767.98px) {
  .section-head {
    flex-wrap: wrap;
    gap: 16px;
  }
  .section-head .all {
    max-width: 100%;
    white-space: normal;
  }
  .rental-search label {
    flex: 1 1 180px;
    min-width: 0;
  }
  .rental-search input,
  .rental-search select {
    width: 100%;
  }
  .rental-mode {
    flex-wrap: wrap;
  }
}
@media (max-width: 575.98px) {
  .shell {
    padding-left: 16px;
    padding-right: 16px;
  }
  .top {
    height: auto;
    min-height: 64px;
    gap: 10px;
    flex-wrap: wrap;
    padding-top: 10px;
    padding-bottom: 10px;
  }
  .brand {
    gap: 8px;
    flex-wrap: wrap;
  }
  .section-head {
    display: flex !important;
    align-items: flex-start;
    flex-direction: column;
  }
  .tour-tabs {
    width: 100%;
    gap: 16px;
    flex-wrap: nowrap;
    overflow-x: auto;
    margin: 0;
  }
  .search-head,
  .calendar-head,
  .roundtrip-bottom,
  .currency-history-title {
    flex-wrap: wrap;
    gap: 12px;
  }
  .fields,
  .transfer-fields {
    grid-template-columns: minmax(0, 1fr) !important;
  }
  .agency-city {
    margin-left: 0;
    width: 100%;
  }
  .agency-city select {
    min-width: 0;
    width: 100%;
  }
  .filters-layout {
    grid-template-columns: minmax(0, 1fr) !important;
    overflow: visible !important;
  }
  .route-row {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 10px;
  }
  .route-row > * {
    min-width: 0;
    overflow-wrap: anywhere;
  }
  .post-head {
    flex-wrap: wrap;
    gap: 10px;
  }
  .composer-bottom {
    padding-left: 0;
    flex-wrap: wrap;
  }
  .composer-top textarea {
    width: 100%;
    min-width: 0;
  }
  .day {
    min-width: 0;
    padding: 5px 2px;
  }
  .day small {
    overflow-wrap: anywhere;
  }
  .rental-gallery {
    grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
  }
  .rental-specs {
    padding: 12px;
    gap: 8px;
  }
}
@media (max-width: 1199.98px) {
  #tours .section-head {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 16px;
  }
  #tours .section-head > div {
    min-width: 0;
  }
  #tours .tour-tabs {
    grid-column: 1/-1;
    grid-row: 2;
    width: 100%;
    white-space: normal;
    flex-wrap: wrap;
  }
}
@media (max-width: 575.98px) {
  .club-grid {
    grid-template-columns: minmax(0, 1fr) !important;
  }
}
