.ts-location-page {
    --lf-text: #f3f6ff;
    --lf-muted: #a4b3cd;
    --lf-surface: #0c2140;
    --lf-field: #071a34;
    --lf-accent: #65e2c1;
    --lf-line: rgb(164 179 205 / 16%);
    --lf-soft: rgb(101 226 193 / 8%);
    padding: calc(var(--ts-header-height, 150px) + 24px) 0 80px;
    color: var(--lf-text);
}
.ts-location-page *, .ts-location-page *::before, .ts-location-page *::after { box-sizing: border-box; }
.ts-location-heading { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-bottom: 20px; }
.ts-location-heading-copy { min-width: 0; }
.ts-location-page .ts-location-heading h1 { margin: 0 0 8px; color: var(--lf-text); font-size: clamp(26px, 2.7vw, 36px); font-weight: 750; line-height: 1.2; letter-spacing: -.025em; }
.ts-location-heading p { margin: 0; color: var(--lf-muted); font-size: 15px; line-height: 1.6; max-width: 650px; }
.ts-location-heading-art { display: block; flex: 0 0 220px; color: #9087ff; }
.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.45fr) minmax(0, 1.1fr);
    gap: 12px;
    padding: 18px;
    border: 0;
    border-radius: 20px;
    background: var(--lf-surface);
    box-shadow: 0 10px 32px rgb(0 5 24 / 12%);
}
.ts-location-field { display: flex; align-items: center; gap: 12px; min-width: 0; padding: 10px 14px; border: 1px solid transparent; border-radius: 13px; background: var(--lf-field); transition: border-color .15s ease, background-color .15s ease; }
.ts-location-field:focus-within { border-color: var(--lf-accent); background: var(--lf-field); }
.ts-location-field-icon { display: grid; place-items: center; flex: 0 0 38px; height: 38px; border-radius: 11px; background: var(--lf-soft); color: var(--lf-accent); }
.ts-location-field:nth-child(2) .ts-location-field-icon { color: #b9a7ff; background: rgb(151 114 255 / 11%); }
.ts-location-field:nth-child(3) .ts-location-field-icon { color: #efc874; background: rgb(239 200 116 / 10%); }
.ts-location-field-content { flex: 1; min-width: 0; }
.ts-location-form label { display: block; margin: 0; color: var(--lf-muted); font-size: 12px; font-weight: 500; line-height: 1.5; }
.ts-location-form select { display: block; width: 100%; min-width: 0; height: 44px; margin: 0; padding: 0 24px 0 0; border: 0; border-radius: 0; appearance: none; color: var(--lf-text); background: var(--ts-location-chevron) right center / 18px 18px no-repeat transparent; font-size: 15px; font-weight: 650; line-height: 1.4; text-overflow: ellipsis; }
.ts-location-form select option { background: var(--lf-surface); color: var(--lf-text); }
.ts-location-actions { grid-column: 1 / -1; display: flex; justify-content: space-between; align-items: center; gap: 12px; padding-top: 2px; }
.ts-location-form .ts-location-apply { display: inline-flex; align-items: center; justify-content: center; gap: 12px; width: auto; min-height: 50px; padding: 12px 24px; border: 0; border-radius: 12px; background: #6153e8; color: #fff; font-size: 15px; font-weight: 700; line-height: 1.4; box-shadow: 0 4px 14px rgb(81 64 215 / 18%); transition: background-color .15s ease, transform .15s ease; }
.ts-location-form .ts-location-apply:hover:not(:disabled) { background: #5143d0; transform: translateY(-1px); }
.ts-location-apply svg, .ts-location-reset svg { flex-shrink: 0; }
.ts-location-page .ts-location-reset { display: inline-flex; gap: 8px; min-height: 48px; align-items: center; padding: 8px 10px; border-radius: 10px; color: var(--lf-muted); font-size: 13px; line-height: 1.4; text-decoration: none; }
.ts-location-page .ts-location-reset:hover { color: var(--lf-text); background: var(--lf-field); }
.ts-location-page :is(a, button, select, summary):focus-visible { outline: 3px solid var(--lf-accent); outline-offset: 3px; }
.ts-location-page :disabled { opacity: .5; cursor: not-allowed; }
.ts-location-results { display: flex; align-items: center; gap: 10px; margin: 28px 0 18px; color: var(--lf-text); font-size: 20px; font-weight: 700; line-height: 1.4; }
.ts-location-results::before { content: ""; width: 4px; height: 21px; flex: 0 0 4px; border-radius: 4px; background: var(--lf-accent); }
.ts-location-venue-picker { margin-top: 12px; padding: 0 18px; border: 0; border-radius: 14px; background: var(--lf-surface); }
.ts-location-venue-picker summary { display: flex; align-items: center; justify-content: space-between; gap: 14px; min-height: 60px; padding: 12px 0; list-style: none; cursor: pointer; color: var(--lf-text); font-size: 14px; font-weight: 600; line-height: 1.4; }
.ts-location-venue-picker summary::-webkit-details-marker { display: none; }
.ts-location-venue-picker-label { display: flex; align-items: center; gap: 10px; }
.ts-location-venue-picker-label > svg { flex: 0 0 22px; color: var(--lf-accent); }
.ts-location-venue-chevron { flex: 0 0 18px; color: var(--lf-muted); transition: transform .2s ease; }
.ts-location-venue-picker[open] .ts-location-venue-chevron { transform: rotate(180deg); }
.ts-location-venue-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; padding: 4px 0 18px; }
.ts-location-page .ts-location-venue-tile { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: flex-start; gap: 10px; min-width: 0; padding: 14px 10px; border: 1px solid transparent; border-radius: 13px; background: var(--lf-field); color: var(--lf-text); text-align: center; text-decoration: none; font-size: 13px; line-height: 1.45; transition: border-color .2s ease, background-color .2s ease; }
.ts-location-venue-tile img { width: 64px; height: 64px; padding: 5px; object-fit: contain; background: #fff; border-radius: 50%; }
.ts-location-venue-tile span { overflow-wrap: anywhere; }
.ts-location-venue-tile[hidden] { display: none; }
.ts-location-page .ts-location-venue-tile:hover, .ts-location-page .ts-location-venue-tile[aria-current="page"] { border-color: var(--lf-accent); background: var(--lf-soft); color: var(--lf-accent); }
.ts-location-venue-tile[aria-current="page"]::after { content: "\2713"; position: absolute; right: 8px; top: 8px; display: grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; background: var(--lf-accent); color: var(--lf-surface); font-weight: 800; }
.ts-location-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 22px; }
.ts-location-card { min-width: 0; border: 0; border-radius: 17px; background: var(--lf-surface); box-shadow: 0 4px 20px rgb(0 5 24 / 9%); }
.ts-location-card > a { display: flex; flex-direction: column; height: 100%; padding: 8px; border-radius: inherit; color: var(--lf-text); text-decoration: none; }
.ts-location-card-poster { overflow: hidden; border-radius: 11px; background: var(--lf-field); }
.ts-location-card img { display: block; width: 100%; height: auto; aspect-ratio: 1494 / 1920; object-fit: contain; transition: transform .25s ease; }
.ts-location-card:hover img { transform: scale(1.025); }
.ts-location-card-body { display: flex; flex: 1; flex-direction: column; gap: 10px; min-width: 0; padding: 14px 9px 7px; }
.ts-location-card h3 { margin: 0; color: var(--lf-text); font-size: 16px; font-weight: 700; line-height: 1.45; overflow-wrap: anywhere; }
.ts-location-card .ts-location-card-date { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; color: var(--lf-accent); font-size: 12px; line-height: 1.5; }
.ts-location-card-hour { padding: 2px 7px; border-radius: 5px; background: var(--lf-soft); font-weight: 650; }
.ts-location-card svg { flex-shrink: 0; }
.ts-location-card .ts-location-card-venue { display: flex; align-items: flex-start; gap: 5px; margin: 0; color: var(--lf-muted); font-size: 12px; line-height: 1.5; }
.ts-location-card-venue svg { margin-top: 1px; }
.ts-location-card-venue span { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; overflow-wrap: anywhere; }
.ts-location-card-action { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: auto; padding-top: 12px; color: var(--lf-accent); font-size: 13px; line-height: 1.5; font-weight: 600; }
.ts-location-empty { margin-top: 24px; padding: 40px 20px; border-radius: 16px; background: var(--lf-surface); text-align: center; }
.ts-location-empty p { color: var(--lf-muted); }
.ts-location-page .ts-location-empty a { display: inline-flex; align-items: center; min-height: 48px; padding: 8px 14px; border-radius: 10px; background: var(--lf-soft); color: var(--lf-accent); text-decoration: none; font-weight: 600; }
.ts-location-pagination { display: flex; justify-content: center; align-items: center; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.ts-location-page .ts-location-pagination a { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 10px 18px; border-radius: 12px; background: var(--lf-surface); color: var(--lf-text); text-decoration: none; font-size: 14px; }
.ts-location-pagination > span { color: var(--lf-muted); font-size: 13px; }
html.white-mode .ts-location-page { --lf-text: #18283e; --lf-muted: #52627a; --lf-surface: #fff; --lf-field: #f2f5fa; --lf-accent: #126b56; --lf-line: rgb(82 98 122 / 15%); --lf-soft: #e6f4ef; }
html.white-mode .ts-location-heading-art { color: #7565dc; }
html.white-mode .ts-location-form { box-shadow: 0 6px 24px rgb(24 40 62 / 5%); }
html.white-mode .ts-location-card { box-shadow: 0 4px 16px rgb(24 40 62 / 5%); }
html.white-mode .ts-location-field:nth-child(2) .ts-location-field-icon { color: #7451bb; background: #eee9f8; }
html.white-mode .ts-location-field:nth-child(3) .ts-location-field-icon { color: #8d5c17; background: #fbf1df; }
html.white-mode .ts-location-form select { background: var(--ts-location-chevron) right center / 18px 18px no-repeat transparent !important; color: var(--lf-text); }
@media (max-width: 991px) {
    .ts-location-page { padding-top: 18px; padding-bottom: 100px; }
    .ts-location-heading-art { display: none; }
    .ts-location-heading { margin-bottom: 18px; }
    .ts-location-heading p { font-size: 14px; }
    .ts-location-form { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .ts-location-field:nth-child(2) { grid-column: 1 / -1; grid-row: 2; }
    .ts-location-field:nth-child(3) { grid-column: 2; grid-row: 1; }
    .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 .ts-location-heading h1 { font-size: 25px; line-height: 1.25; }
    .ts-location-form { grid-template-columns: minmax(0, 1fr); padding: 12px; gap: 8px; border-radius: 16px; }
    .ts-location-field, .ts-location-field:nth-child(2), .ts-location-field:nth-child(3) { grid-column: auto; grid-row: auto; padding: 4px 10px; gap: 8px; }
    .ts-location-field-content { display: grid; grid-template-columns: 72px minmax(0, 1fr); align-items: center; gap: 8px; }
    .ts-location-field-icon { flex-basis: 32px; height: 34px; border-radius: 10px; }
    .ts-location-field-icon svg { width: 21px; height: 21px; }
    .ts-location-form select { height: 44px; font-size: 14px; }
    .ts-location-form label { font-size: 11px; }
    .ts-location-actions { display: grid; grid-template-columns: 48px minmax(0, 1fr); gap: 8px; padding-top: 4px; }
    .ts-location-page .ts-location-reset { width: 48px; height: 50px; min-height: 50px; padding: 0; justify-content: center; background: var(--lf-field); }
    .ts-location-reset-text { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; }
    .ts-location-form .ts-location-apply { width: 100%; gap: 8px; padding: 11px 10px; font-size: 14px; }
    .ts-location-venue-picker { padding: 0 14px; }
    .ts-location-venue-picker summary { min-height: 48px; font-size: 13px; }
    .ts-location-results { font-size: 18px; margin-top: 16px; }
    .ts-location-grid { grid-template-columns: minmax(0, 1fr); gap: 12px; }
    .ts-location-card { border-radius: 14px; }
    .ts-location-card > a { flex-direction: row; align-items: flex-start; gap: 12px; padding: 10px; }
    .ts-location-card-poster { flex: 0 0 100px; border-radius: 9px; }
    .ts-location-card-body { padding: 0; gap: 7px; 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-venue { font-size: 12px; }
    .ts-location-card-action { font-size: 12px; padding-top: 8px; }
    .ts-location-venue-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
    .ts-location-venue-tile img { width: 56px; height: 56px; }
    .ts-location-pagination { gap: 6px; }
    .ts-location-page .ts-location-pagination a { padding: 10px 12px; font-size: 13px; }
}
@media (min-width: 576px) {
    .ts-location-card h3 { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; overflow: hidden; }
}
@media (prefers-reduced-motion: reduce) {
    .ts-location-page *, .ts-location-page *::before, .ts-location-page *::after { transition: none !important; }
    .ts-location-card:hover img, .ts-location-form .ts-location-apply:hover:not(:disabled) { transform: none; }
}
