.ts-location-page {
    padding: calc(var(--ts-header-height, 150px) + 32px) 0 64px;
    color: var(--ts-text, #fff);
}

.ts-location-heading h1 {
    font-size: clamp(24px, 3vw, 36px);
    margin-bottom: 12px;
}

.ts-location-heading p {
    color: var(--ts-muted, #adb2bd);
    margin-bottom: 24px;
}
.ts-location-form {
    --ts-location-chevron: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%23909db2' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr) minmax(0, 1fr);
    gap: 16px;
    padding: 20px;
    border: 1px solid var(--ts-border, #34405b);
    border-radius: 20px;
    background: #071526;
}

.ts-location-field {
    display: flex;
    align-items: center;
    gap: 14px;
    min-width: 0;
    padding: 14px 16px;
    border: 1px solid var(--ts-border, #34405b);
    border-radius: 14px;
    background: rgba(255, 255, 255, .035);
}

.ts-location-field:focus-within {
    border-color: var(--ts-accent, #31d7a9);
}

.ts-location-field-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 42px;
    height: 42px;
    border-radius: 12px;
    background: rgba(49, 215, 169, .09);
    color: var(--ts-accent, #31d7a9);
}

.ts-location-field-content {
    flex: 1;
    min-width: 0;
}

.ts-location-form label {
    display: block;
    margin-bottom: 2px;
    font-size: 12px;
    line-height: 1.5;
    color: var(--ts-muted, #adb2bd);
    font-weight: 600;
}

.ts-location-form select {
    width: 100%;
    height: 44px;
    padding: 0 28px 0 0;
    border: 0;
    border-radius: 4px;
    color: inherit;
    background: transparent;
    appearance: none;
    background-image: var(--ts-location-chevron);
    background-position: right center;
    background-repeat: no-repeat;
    font-size: 16px;
    font-weight: 600;
    text-overflow: ellipsis;
}

.ts-location-form select option {
    background: #071526;
    color: #fff;
}

.ts-location-actions {
    grid-column: 1 / -1;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
}

.ts-location-form .ts-location-apply {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    width: auto;
    min-height: 48px;
    padding: 12px 20px;
    border: 0;
    border-radius: 12px;
    background: #31d7a9;
    color: #071526;
    font-weight: 700;
}

.ts-location-apply svg, .ts-location-reset svg {
    flex-shrink: 0;
}

.ts-location-form .ts-location-apply:hover:not(:disabled) {
    background: #5ae2bc;
}

.ts-location-reset {
    display: inline-flex;
    gap: 8px;
    min-height: 48px;
    align-items: center;
    color: var(--ts-muted, #adb2bd);
    font-size: 14px;
    line-height: 1.4;
}

.ts-location-reset:hover {
    color: var(--ts-text, #fff);
}

.ts-location-page :is(a, button, select):focus-visible {
    outline: 2px solid var(--ts-accent, #31d7a9);
    outline-offset: 4px;
}

.ts-location-page :disabled {
    opacity: .5;
    cursor: not-allowed;
}

.ts-location-results {
    margin: 32px 0 20px;
    font-size: 22px;
}

.ts-location-venue-picker {
    margin-top: 16px;
    border: 1px solid var(--ts-border, #34405b);
    border-radius: 16px;
    padding: 0 16px;
    background: #071526;
}

.ts-location-venue-picker summary {
    padding: 16px 0;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
}

.ts-location-venue-picker summary:focus-visible {
    outline: 2px solid var(--ts-accent, #31d7a9);
    outline-offset: 4px;
}

.ts-location-venue-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 12px;
    padding-bottom: 16px;
}

.ts-location-venue-tile {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    gap: 12px;
    padding: 16px 12px;
    border: 1px solid rgba(168, 181, 199, .18);
    border-radius: 12px;
    color: inherit;
    text-align: center;
    font-size: 13px;
    line-height: 1.4;
}

.ts-location-venue-tile img {
    width: 72px;
    height: 72px;
    padding: 6px;
    object-fit: contain;
    background: #fff;
    border-radius: 12px;
}

.ts-location-venue-tile span {
    overflow-wrap: anywhere;
}

.ts-location-venue-tile[hidden] {
    display: none;
}

.ts-location-venue-tile:hover, .ts-location-venue-tile[aria-current="page"] {
    border-color: var(--ts-accent, #31d7a9);
    color: var(--ts-accent, #31d7a9);
    background: rgba(49, 215, 169, .06);
}

.ts-location-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 24px;
}

.ts-location-card {
    min-width: 0;
    border: 1px solid rgba(168, 181, 199, .18);
    border-radius: 20px;
    background: #071526;
}

.ts-location-card > a {
    display: flex;
    flex-direction: column;
    height: 100%;
    padding: 10px;
    border-radius: inherit;
    color: inherit;
}

.ts-location-card:hover {
    border-color: var(--ts-accent, #31d7a9);
}

.ts-location-card-poster {
    overflow: hidden;
    border-radius: 12px;
    background: #10223a;
}
.ts-location-card img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 1494 / 1920;
    object-fit: contain;
}

.ts-location-card-body {
    display: flex;
    flex: 1;
    flex-direction: column;
    gap: 12px;
    min-width: 0;
    padding: 16px 6px 4px;
}

.ts-location-card h3 {
    font-size: 16px;
    line-height: 1.45;
    overflow-wrap: anywhere;
    margin: 0;
}

.ts-location-card .ts-location-card-date {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    line-height: 1.5;
    color: #a5ecd7;
}

.ts-location-card-hour {
    padding: 2px 6px;
    border-radius: 6px;
    background: rgba(49, 215, 169, .1);
}

.ts-location-card svg {
    flex-shrink: 0;
}

.ts-location-card .ts-location-card-venue {
    display: flex;
    align-items: flex-start;
    gap: 6px;
    margin: 0 0 4px;
    font-size: 13px;
    line-height: 1.5;
    color: #a7b4c8;
}

.ts-location-card-venue svg {
    margin-top: 2px;
}

.ts-location-card-venue span {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
    overflow-wrap: anywhere;
}

@media (min-width: 576px) {
    .ts-location-card h3 {
        display: -webkit-box;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 3;
        overflow: hidden;
    }
}

.ts-location-card-action {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: auto;
    padding-top: 12px;
    border-top: 1px solid rgba(168, 181, 199, .14);
    font-size: 13px;
    line-height: 1.5;
    font-weight: 600;
    color: var(--ts-accent, #31d7a9);
}

.ts-location-empty {
    text-align: center;
    padding: 40px 16px;
}

.ts-location-empty a {
    color: var(--ts-accent, #31d7a9);
    text-decoration: underline;
}

.ts-location-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 24px;
    margin-top: 32px;
}

.ts-location-pagination a {
    color: inherit;
    padding: 10px;
}

html.white-mode .ts-location-form,
html.white-mode .ts-location-card > a {
    background: #fff;
    color: #18283e;
}

html.white-mode .ts-location-card {
    background: #fff;
    border-color: #e0e5ef;
    box-shadow: 0 4px 16px rgba(24, 40, 62, .04);
}

html.white-mode .ts-location-card:hover {
    border-color: #126b56;
}

html.white-mode .ts-location-card-poster {
    background: #edf1f7;
}

html.white-mode .ts-location-venue-picker {
    background: #fff;
    color: #18283e;
}

html.white-mode .ts-location-venue-tile {
    border-color: #e0e5ef;
}

html.white-mode .ts-location-venue-tile:hover,
html.white-mode .ts-location-venue-tile[aria-current="page"] {
    border-color: #126b56;
    color: #126b56;
    background: #eef8f3;
}

html.white-mode .ts-location-card .ts-location-card-date {
    color: #126b56;
}

html.white-mode .ts-location-card-hour {
    background: #e4f3ed;
}

html.white-mode .ts-location-card-action {
    border-color: #e0e5ef;
    color: #126b56;
}

html.white-mode .ts-location-field {
    background: #f5f7fb;
}

html.white-mode .ts-location-form select {
    background: var(--ts-location-chevron) right center / 18px 18px no-repeat transparent !important;
    color: #18283e;
}

html.white-mode .ts-location-form select option {
    background: #fff;
    color: #18283e;
}

html.white-mode .ts-location-form label,
html.white-mode .ts-location-reset {
    color: #52627a;
}

html.white-mode .ts-location-field-icon {
    background: #e4f3ed;
    color: #126b56;
}

html.white-mode .ts-location-heading p,
html.white-mode .ts-location-card .ts-location-card-venue {
    color: #52627a;
}

html.white-mode .ts-location-apply {
    background: #126b56;
    color: #fff;
}

html.white-mode .ts-location-form .ts-location-apply:hover:not(:disabled) {
    background: #0b5745;
}

@media (max-width: 991px) {
    .ts-location-form {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .ts-location-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 16px;
    }

    .ts-location-venue-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 575px) {
    .ts-location-page {
        padding-top: calc(var(--ts-header-height, 140px) + 24px);
    }

    .ts-location-form {
        grid-template-columns: minmax(0, 1fr);
        padding: 16px;
        gap: 12px;
    }

    .ts-location-field {
        padding: 12px;
        gap: 12px;
    }

    .ts-location-actions {
        flex-wrap: wrap;
        gap: 8px;
    }

    .ts-location-form .ts-location-apply {
        width: 100%;
        order: -1;
    }

    .ts-location-reset {
        margin: 0 auto;
        min-height: 40px;
    }

    .ts-location-grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 12px;
    }

    .ts-location-venue-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .ts-location-card {
        border-radius: 16px;
    }

    .ts-location-card > a {
        flex-direction: row;
        align-items: flex-start;
        gap: 14px;
        padding: 12px;
    }

    .ts-location-card-poster {
        flex: 0 0 100px;
        border-radius: 10px;
    }

    .ts-location-card-body {
        padding: 0;
        gap: 8px;
        align-self: stretch;
    }

    .ts-location-card h3 {
        font-size: 15px;
    }

    .ts-location-card .ts-location-card-date {
        font-size: 11px;
        gap: 4px;
    }

    .ts-location-card .ts-location-card-venue {
        font-size: 12px;
    }

    .ts-location-card-action {
        font-size: 12px;
        padding-top: 8px;
    }
}
