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

.avante-lede {
    margin: 0 0 28px;
    max-width: 42rem;
    font-size: 1.05rem;
    line-height: 1.55;
    color: #3d4a63;
}

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

.activity-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.activity-filter {
    appearance: none;
    border: 1px solid #c9d3de;
    background: #fff;
    color: var(--avante-secondary-color);
    border-radius: 999px;
    padding: 7px 14px;
    font: inherit;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    cursor: pointer;
}

.activity-filter.is-active {
    background: var(--avante-secondary-color);
    border-color: var(--avante-secondary-color);
    color: #fff;
}

.activity-search input {
    width: min(280px, 100%);
    border: 1px solid #c9d3de;
    border-radius: 6px;
    padding: 9px 12px;
    font: inherit;
}

.activity-count {
    margin: 0 0 18px;
    color: #667;
    font-size: 0.9rem;
}

.activity-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 22px;
}

.activity-card {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.08), 0 10px 18px -8px rgba(0, 0, 0, 0.18);
    display: flex;
    flex-direction: column;
    min-height: 100%;
}

.activity-card-media {
    position: relative;
    aspect-ratio: 16 / 10;
    background: #d7e0e8;
    overflow: hidden;
}

.activity-card-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.activity-price-tag {
    position: absolute;
    right: 0;
    bottom: 14px;
    background: var(--avante-button-color);
    color: #fff;
    font-weight: 700;
    font-size: 0.92rem;
    padding: 8px 14px 8px 16px;
    clip-path: polygon(10px 0, 100% 0, 100% 100%, 10px 100%, 0 50%);
}

.activity-card-body {
    padding: 16px 18px 18px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex: 1;
}

.activity-kicker {
    margin: 0;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--avante-main-color);
}

.activity-card h2 {
    margin: 0;
    font-size: 1.15rem;
    line-height: 1.25;
    color: var(--avante-secondary-color);
}

.activity-operator {
    margin: 0;
    color: #556;
    font-size: 0.92rem;
}

.activity-desc {
    margin: 0;
    color: #444;
    font-size: 0.92rem;
    line-height: 1.45;
}

.activity-meta {
    margin-top: auto;
    padding-top: 10px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px 14px;
    font-size: 0.85rem;
}

.activity-meta a {
    color: var(--avante-secondary-color);
    text-decoration: none;
    font-weight: 600;
}

.activity-meta a:hover {
    color: var(--avante-main-color);
}

.activity-book {
    display: inline-block;
    margin-top: 8px;
    background: var(--avante-button-color);
    color: #fff !important;
    text-decoration: none;
    font-weight: 700;
    padding: 9px 16px;
    border-radius: 6px;
    align-self: flex-start;
    border: 0;
    font: inherit;
    cursor: pointer;
}

.activity-modal {
    position: fixed;
    inset: 0;
    background: rgba(16, 24, 48, 0.62);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
}

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

.activity-modal-card {
    position: relative;
    width: min(520px, 100%);
    max-height: 90vh;
    overflow: auto;
    background: #fff;
    border-radius: 8px;
    padding: 24px 24px 20px;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.22);
}

.activity-modal-close {
    position: absolute;
    top: 10px;
    right: 12px;
    width: 32px;
    height: 32px;
    border: 0;
    background: transparent;
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
    color: #334;
}

.activity-modal-card h2 {
    margin: 0 32px 12px 0;
    color: var(--avante-secondary-color);
    font-size: 1.35rem;
}

.activity-booking-overview {
    background: #f4f7f8;
    border-left: 4px solid var(--avante-main-color);
    padding: 10px 12px;
    margin-bottom: 16px;
}

.activity-booking-overview p {
    margin: 0;
    color: #334;
}

.activity-booking-overview p + p {
    margin-top: 4px;
    color: #667;
}

.activity-booking-form label {
    display: block;
    font-weight: 600;
    color: var(--avante-secondary-color);
    margin-bottom: 12px;
}

.activity-booking-form input,
.activity-booking-form select,
.activity-booking-form textarea {
    display: block;
    width: 100%;
    margin-top: 6px;
    padding: 8px 10px;
    border: 1px solid #ccd3dc;
    border-radius: 6px;
    font: inherit;
}

.activity-booking-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.activity-booking-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 8px;
}

.activity-booking-cancel {
    background: #fff;
    color: var(--avante-secondary-color);
    border: 1px solid #ccd3dc;
    border-radius: 6px;
    padding: 9px 16px;
    font: inherit;
    font-weight: 700;
    cursor: pointer;
}

.activity-booking-message {
    margin-top: 8px;
    padding: 12px;
    border-radius: 6px;
}

.activity-booking-message.is-ok {
    background: #e7f8f3;
    color: #145c4a;
}

.activity-booking-message.is-bad {
    background: #fff1f1;
    color: #8a1f1f;
}

@media (max-width: 640px) {
    .activity-booking-row {
        grid-template-columns: 1fr;
    }
}

.activity-empty,
.activity-loading,
.activity-error {
    grid-column: 1 / -1;
    text-align: center;
    padding: 40px 16px;
    color: var(--avante-main-color);
    font-weight: 600;
}

@media (max-width: 640px) {
    .activity-toolbar {
        display: block;
    }

    .activity-search {
        display: block;
        margin-top: 12px;
    }

    .activity-search input {
        width: 100%;
    }
}
