/* ============================================
   Activities Page — Minimal additions
   Inherits from stay.css for grid, cards, toolbar, search
   ============================================ */

/* Kill page-level horizontal scroll (flip cards / selects can bleed) */
html {
    overflow-x: hidden;
    max-width: 100%;
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

body {
    overflow-x: hidden;
    max-width: 100%;
}

.hotel-search,
.hotel-toolbar,
.hotel-listing {
    overflow-x: clip;
    max-width: 100%;
}

.hotel-grid {
    overflow: hidden;
    max-width: 100%;
}

/* Allow filter fields to shrink instead of forcing page width */
.hotel-search__row {
    max-width: 100%;
}

.hotel-search__field {
    min-width: 0;
    flex: 1 1 10rem;
}

.hotel-search__field--action {
    flex: 0 0 auto;
}

.hotel-search__input,
.hotel-search__select,
.hotel-toolbar__sort {
    min-width: 0;
    max-width: 100%;
}

.hotel-toolbar__inner {
    max-width: 100%;
}

.hotel-toolbar__count {
    min-width: 0;
    overflow-wrap: anywhere;
}

/* Activity-specific card location with icon */
.hotel-card__location svg {
    display: inline;
    vertical-align: -1px;
    margin-right: 2px;
}

@media (max-width: 900px) {
    .hotel-search__row {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        align-items: end;
    }

    .hotel-search__field--action {
        grid-column: 1 / -1;
    }

    .hotel-search__field--action .hotel-search__btn {
        width: 100%;
    }
}

@media (max-width: 640px) {
    .hotel-search__row {
        grid-template-columns: 1fr;
    }
}
