/* City page: regular activities */
.rent-view-toggle-shell {
    position: relative;
    margin: 0 4px 16px;
}

.rent-view-toggle {
    display: flex;
    grid-template-columns: none;
    gap: 0px;
    margin: 0;
    padding: 0 4px 6px;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-behavior: auto;
    scroll-snap-type: x proximity;
    scrollbar-width: none;
    touch-action: pan-x;
    cursor: grab;
    -ms-overflow-style: none;
}

.rent-view-toggle::-webkit-scrollbar {
    display: none;
}

.rent-view-toggle.is-dragging {
    cursor: grabbing;
    scroll-snap-type: none;
}

.rent-view-toggle.is-dragging .rent-view-toggle__btn {
    pointer-events: none;
}

.rent-view-toggle__btn {
    flex: 0 0 calc((100% - 6px) / 2.12);
    min-width: 0;
    font-size: 0.82rem;
    line-height: 1.12;
    scroll-snap-align: start;
}

.rent-view-toggle__next {
    position: absolute;
    z-index: 2;
    top: 20px;
    right: 0;
    display: grid;
    width: 34px;
    height: 48px;
    place-items: center;
    border: 0;
    border-radius: 24px 0 0 24px;
    background: linear-gradient(90deg, rgba(246, 247, 251, 0.18), rgba(246, 247, 251, 0.96) 45%);
    color: #007aff;
    cursor: pointer;
    font-size: 2rem;
    line-height: 1;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.18s ease;
}

.rent-view-toggle__previous {
    position: absolute;
    z-index: 2;
    top: 20px;
    left: 0;
    display: grid;
    width: 34px;
    height: 48px;
    place-items: center;
    border: 0;
    border-radius: 0 24px 24px 0;
    background: linear-gradient(90deg, rgba(246, 247, 251, 0.96) 55%, rgba(246, 247, 251, 0.18));
    color: #007aff;
    cursor: pointer;
    font-size: 2rem;
    line-height: 1;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.18s ease;
}

.rent-view-toggle-shell.has-previous-tabs .rent-view-toggle__previous {
    opacity: 1;
    pointer-events: auto;
}

.rent-view-toggle-shell.has-more-tabs .rent-view-toggle__next {
    opacity: 1;
    pointer-events: auto;
}

.rent-view-toggle__icon {
    height: 64px;
    border-radius: 12px;
}

.activity-city-content {
    overflow-x: clip;
    padding-bottom: 28px;
}

.activity-city-links,
.activity-city-links__nearby,
.activity-city-links__all {
    display: flex;
    align-items: center;
}

.activity-city-links {
    justify-content: space-between;
    margin: 22px 4px 24px;
}

.activity-city-links__nearby {
    gap: 25px;
}

.activity-city-links__all {
    gap: 12px;
}

.activity-city-links a {
    color: #009dff;
    font-size: 1.5rem;
    text-decoration: none;
}

.activity-city-links__all img {
    display: block;
    width: 22px;
    height: 22px;
}

.activity-category-icons {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 8px;
    margin: 0 0 20px;
    overflow-x: clip;
}

.activity-category-icon {
    display: flex;
    min-width: 0;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    border: 0;
    background: transparent;
    color: #60636d;
    cursor: pointer;
    font: inherit;
    font-size: 0.66rem;
    line-height: 1.12;
    text-align: center;
}

.activity-category-icon > img {
    display: grid;
    width: 50px;
    height: 50px;
    place-items: center;
    border-radius: 50%;
    object-fit: cover;
}

.activity-category-icon.is-active > img {
    box-shadow: 0 0 0 3px rgba(0, 157, 255, 0.48);
}

.activity-category-icon.is-active {
    color: #007bd0;
    font-weight: 700;
}

.activity-city-actions {
    display: grid;
    grid-template-columns: 1fr;
    margin: 0 0 18px;
}

.activity-filter-toggle {
    min-height: 42px;
    border: 1px solid #0786d6;
    border-radius: 9px;
    background: #4ba5d8;
    color: #fff;
    cursor: pointer;
    font: inherit;
    font-size: 1.05rem;
    font-weight: 700;
}

.activity-filters {
    margin: 0 0 18px;
    padding: 14px;
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 3px 13px rgba(27, 42, 62, 0.08);
}

.activity-filters[hidden] {
    display: none;
}

.activity-filters__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
}

.activity-filters__head strong {
    font-size: 0.95rem;
}

.activity-filters__head button {
    border: 0;
    background: transparent;
    color: #007bd0;
    cursor: pointer;
    font: inherit;
    font-size: 0.82rem;
}

.activity-filter-group {
    margin-top: 12px;
}

.activity-filter-group[hidden] {
    display: none;
}

.activity-filter-group > span {
    display: block;
    margin-bottom: 7px;
    color: #636873;
    font-size: 0.77rem;
    font-weight: 600;
}

.activity-filter-group > div {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
}

.activity-filter-chip {
    border: 1px solid #d9dce3;
    border-radius: 999px;
    background: #f7f8fa;
    color: #3f434b;
    cursor: pointer;
    font: inherit;
    font-size: 0.78rem;
    line-height: 1.15;
    padding: 7px 10px;
}

.activity-filter-chip.is-active {
    border-color: #009dff;
    background: #009dff;
    color: #fff;
}

.activity-weekday-filters {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 3px;
    margin: 0 0 15px;
}

.activity-weekday-filters button {
    min-height: 35px;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: #30333a;
    cursor: pointer;
    font: inherit;
    font-size: 0.95rem;
}

.activity-weekday-filters button.is-active {
    background: #078df2;
    color: #fff;
}

.activity-city-list {
    display: grid;
    gap: 12px;
}

.activity-city-card {
    display: flex;
    min-width: 0;
    gap: 12px;
    padding: 10px;
    overflow: hidden;
    border: 1px solid rgba(26, 49, 79, 0.12);
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 5px 18px rgba(29, 39, 54, 0.08);
    color: inherit;
    text-decoration: none;
    transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.activity-city-card:focus-visible {
    outline: 3px solid rgba(0, 122, 255, 0.42);
    outline-offset: 2px;
}

.activity-city-card:hover {
    transform: translateY(-1px);
    box-shadow: 0 9px 22px rgba(29, 39, 54, 0.12);
}

.activity-city-card__image {
    flex: 0 0 96px;
    width: 96px;
    height: 128px;
    border-radius: 12px;
    background: #ede9fe;
    object-fit: cover;
}

.activity-city-card__image--fallback {
    display: grid;
    place-items: center;
    color: #4338ca;
    font-size: 2rem;
}

.activity-city-card__body {
    display: flex;
    min-width: 0;
    flex: 1 1 auto;
    flex-direction: column;
}

.activity-city-card__topline,
.activity-city-card__author-time,
.activity-city-card__bottom {
    display: flex;
    min-width: 0;
    align-items: center;
    gap: 6px;
    color: #68717e;
    font-size: 0.9rem;
    line-height: 1.2;
}

.activity-city-card__author-time > strong,
.activity-city-card__author-time > span,
.activity-city-card__bottom > span:first-child {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.activity-city-card__topline {
    justify-content: flex-end;
    min-height: 0;
}

.activity-city-card__price {
    flex: 0 0 auto;
    padding: 3px 8px;
    border-radius: 999px;
    background: #f2f4f6;
    color: #535a64;
    font-weight: 600;
}

.activity-city-card__price--free { background: #e7f8ed; color: #16813a; }
.activity-city-card__price--donat { background: #fff2d9; color: #a15b00; }
.activity-city-card__price--paid { background: #edf0ff; color: #314ab7; }

.activity-city-card h3 {
    display: -webkit-box;
    margin: 3px 0 3px;
    overflow: hidden;
    color: #151821;
    font-size: 1.2rem;
    font-weight: 700;
    line-height: 1.22;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.activity-city-card__description {
    display: -webkit-box;
    margin: 0 0 5px;
    overflow: hidden;
    color: #4d5561;
    font-size: 1rem;
    line-height: 1.35;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.activity-city-card__author-time {
    margin-top: 0;
    color: #17191f;
    font-size: 1rem;
}

.activity-city-card__author-time strong {
    font-weight: 700;
}

.activity-city-card__bottom {
    margin-top: 2px;
    color: #0075bc;
    font-size: 0.95rem;
    font-weight: 600;
}

.activity-city-empty {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 24px 18px;
    border-radius: 18px;
    background: #f0edff;
    color: #31366b;
    text-align: center;
}

.activity-city-empty span {
    color: #5d6281;
    font-size: 0.88rem;
    line-height: 1.4;
}

@media (max-width: 370px) {
    .rent-view-toggle__btn {
        font-size: 0.72rem;
    }

    .rent-view-toggle__icon {
        height: 54px;
    }

    .activity-city-card {
        gap: 10px;
        padding: 8px;
    }

    .activity-city-card__image {
        flex-basis: 78px;
        width: 78px;
        height: 116px;
    }
}
