.rs-ta {
    --rs-ta-accent: #00a7d7;
    --rs-ta-text: #222;
    --rs-ta-muted: #626262;
    --rs-ta-border: rgba(35, 35, 35, .55);
    --rs-ta-shadow: 0 3px 12px rgba(0, 0, 0, .10);
    color: var(--rs-ta-text);
    width: 100%;
}

.rs-ta *,
.rs-ta *::before,
.rs-ta *::after {
    box-sizing: border-box;
}

.rs-ta-cantons {
    display: flex;
    flex-wrap: wrap;
    gap: 5px 2px;
    margin: 0 0 18px;
}

.rs-ta-canton-mobile {
    display: none;
    max-width: 430px;
    margin: 0 0 16px;
}

.rs-ta-canton-mobile label {
    display: block;
    margin-bottom: 7px;
    color: #555;
    font-size: 14px;
    font-weight: 600;
}

.rs-ta-canton-mobile input {
    display: block;
    width: 100%;
    height: 42px;
    border: 1px solid #b9b9b9;
    border-radius: 3px;
    background: #fff;
    color: #222;
    font: inherit;
    padding: 8px 12px;
}

.rs-ta-canton-mobile input:focus {
    border-color: var(--rs-ta-accent);
    outline: 2px solid rgba(0, 167, 215, .14);
    outline-offset: 0;
}

.rs-ta-all-cantons {
    display: block;
    margin: 8px auto 0;
    padding: 2px 4px;
    border: 0;
    background: transparent;
    color: #34638a;
    font: inherit;
    font-size: 14px;
    text-decoration: underline;
    cursor: pointer;
}

.rs-ta-filter {
    appearance: none;
    border: 0;
    background: transparent;
    color: #555;
    cursor: pointer;
    font: inherit;
    line-height: 1.25;
    padding: 7px 10px;
    border-radius: 0;
    transition: background-color .16s ease, color .16s ease;
}

.rs-ta-filter:hover,
.rs-ta-filter:focus-visible {
    color: #111;
    background: rgba(0, 167, 215, .09);
    outline: none;
}

.rs-ta-filter.is-active {
    color: #fff;
    background: var(--rs-ta-accent);
}

.rs-ta-filter span {
    opacity: .82;
}

.rs-ta-search {
    max-width: 760px;
    margin: 0 0 16px;
}

.rs-ta-search label {
    display: block;
    margin-bottom: 7px;
    color: #555;
    font-size: 14px;
}

.rs-ta-search-row {
    display: flex;
    align-items: stretch;
    gap: 8px;
}

.rs-ta-search input[type="search"] {
    min-width: 0;
    flex: 1 1 420px;
    height: 42px;
    border: 1px solid #b9b9b9;
    border-radius: 3px;
    background: #fff;
    color: #222;
    font: inherit;
    padding: 8px 12px;
}

.rs-ta-search input[type="search"]:focus {
    border-color: var(--rs-ta-accent);
    outline: 2px solid rgba(0, 167, 215, .14);
    outline-offset: 0;
}

.rs-ta-search-button,
.rs-ta-reset {
    appearance: none;
    border: 1px solid transparent;
    border-radius: 3px;
    cursor: pointer;
    font: inherit;
    padding: 8px 15px;
    transition: filter .16s ease, background-color .16s ease;
}

.rs-ta-search-button {
    background: #3ca74a;
    color: #fff;
}

.rs-ta-reset {
    background: #d9534f;
    color: #fff;
}

.rs-ta-search-button:hover,
.rs-ta-reset:hover,
.rs-ta-search-button:focus-visible,
.rs-ta-reset:focus-visible {
    filter: brightness(.94);
    outline: 2px solid rgba(0, 0, 0, .12);
    outline-offset: 2px;
}

.rs-ta-summary {
    margin: 0 0 14px;
    color: var(--rs-ta-muted);
    font-size: 14px;
}

.rs-ta-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 22px 24px;
    align-items: stretch;
}

.rs-ta-card {
    position: relative;
    min-width: 0;
    border: 1px solid var(--rs-ta-border);
    background: #fff;
    box-shadow: var(--rs-ta-shadow);
    transition: transform .16s ease, box-shadow .16s ease;
}

.rs-ta-card:hover,
.rs-ta-card:focus-within {
    transform: translateY(-1px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, .13);
}

.rs-ta-card-link {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    height: 100%;
    color: inherit !important;
    text-decoration: none !important;
}

.rs-ta-photo-wrap {
    position: relative;
    overflow: hidden;
    background: #f2f2f2;
    aspect-ratio: 4 / 3;
}

.rs-ta-photo {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.rs-ta-photo-placeholder {
    background: linear-gradient(135deg, #f1f1f1, #e6e6e6);
}

.rs-ta-canton-badges {
    position: absolute;
    top: 6px;
    right: 6px;
    z-index: 10;
    pointer-events: auto;
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 4px;
    max-width: calc(100% - 12px);
}

.rs-ta-canton-badge {
    position: relative;
    z-index: 11;
    appearance: none;
    max-width: 100%;
    background: rgba(255, 255, 255, .94);
    color: #333;
    border: 1px solid rgba(0, 0, 0, .08);
    border-radius: 0;
    cursor: pointer;
    pointer-events: auto;
    touch-action: manipulation;
    -webkit-tap-highlight-color: rgba(0, 167, 215, .12);
    font: inherit;
    padding: 4px 7px;
    font-size: 13px;
    line-height: 1.1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: background-color .16s ease, border-color .16s ease, color .16s ease;
}

.rs-ta-canton-badge:hover,
.rs-ta-canton-badge:focus-visible {
    background: #fff;
    border-color: var(--rs-ta-accent);
    color: #111;
    outline: 2px solid rgba(0, 167, 215, .16);
    outline-offset: 1px;
}

.rs-ta-card-title {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 1 1 auto;
    min-height: 74px;
    padding: 12px 14px;
    text-align: center;
    font-family: "Open Sans", "Arial Narrow", Arial, sans-serif;
    font-stretch: 75%;
    font-size: clamp(19px, 1.5vw, 23px);
    font-weight: 500;
    line-height: 1.2;
    color: #111;
}

.rs-ta-card[hidden] {
    display: none !important;
}

.rs-ta-empty {
    margin: 22px 0 0;
    padding: 16px 18px;
    border: 1px solid #ddd;
    background: #fafafa;
    color: #555;
}

.rs-ta-error {
    padding: 14px 16px;
    border: 1px solid #d7a7a7;
    background: #fff3f3;
    color: #842029;
}

@media (max-width: 1100px) {
    .rs-ta-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 820px) {
    .rs-ta-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 18px;
    }

    .rs-ta-search-row {
        flex-wrap: wrap;
    }

    .rs-ta-search input[type="search"] {
        flex-basis: 100%;
    }
}

@media (max-width: 650px) {
    .rs-ta-cantons {
        display: none;
    }

    .rs-ta-canton-mobile {
        display: block;
    }
}

@media (max-width: 520px) {
    .rs-ta-grid {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .rs-ta-search-button,
    .rs-ta-reset {
        flex: 1 1 auto;
    }

    .rs-ta-card-title {
        min-height: 66px;
        font-size: 20px;
    }
}
