/*
 * Ticketera Libre — selector público v3
 *
 * Una sola hoja controla toda la experiencia pública. El plano general es DOM
 * real (siempre visible); Konva se reserva para los puestos del sector abierto.
 */
:root {
    --tl-map-navy: #0b1030;
    --tl-map-blue: #2436b5;
    --tl-map-red: #ee2b4e;
    --tl-map-green: #0f9f6e;
    --tl-map-ink: #151936;
    --tl-map-muted: #69708f;
    --tl-map-line: #e3e7f0;
    --tl-map-soft: #f5f7fb;
    --tl-map-white: #ffffff;
    --tl-map-shadow: 0 28px 90px rgba(10, 17, 48, .24);
}

body.tl-modal-open {
    overflow: hidden !important;
}

.tl-open-venue-map {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 54px;
    padding: 13px 22px;
    border: 0;
    border-radius: 15px;
    background: var(--tl-map-blue);
    box-shadow: 0 10px 24px rgba(36, 54, 181, .2);
    color: #fff;
    font-family: "Schibsted Grotesk", Arial, sans-serif;
    font-size: 15px;
    font-weight: 800;
    line-height: 1.2;
    cursor: pointer;
    transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}

.tl-open-venue-map:hover {
    background: #1c2c9d;
    box-shadow: 0 13px 30px rgba(36, 54, 181, .28);
    transform: translateY(-1px);
}

.tl-venue-modal,
.tl-venue-modal * {
    box-sizing: border-box;
}

.tl-venue-modal {
    position: fixed;
    inset: 0;
    z-index: 999999;
    display: none;
    place-items: center;
    padding: 18px;
    background: rgba(8, 12, 35, .64);
    color: var(--tl-map-ink);
    font-family: "Schibsted Grotesk", Arial, sans-serif;
    -webkit-font-smoothing: antialiased;
}

.tl-venue-modal.is-open {
    display: grid;
}

.tl-venue-dialog {
    display: grid;
    grid-template-rows: auto auto minmax(0, 1fr) auto;
    width: min(1420px, 100%);
    height: min(900px, calc(100dvh - 36px));
    min-height: 590px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, .28);
    border-radius: 24px;
    background: var(--tl-map-white);
    box-shadow: var(--tl-map-shadow);
}

.tl-venue-dialog > header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    min-height: 68px;
    padding: 12px 20px 12px 24px;
    border-bottom: 1px solid var(--tl-map-line);
    background: #fff;
}

.tl-venue-dialog > header > div:first-child {
    min-width: 0;
}

.tl-venue-dialog header small {
    display: block;
    margin-bottom: 2px;
    color: var(--tl-map-blue);
    font-size: 9px;
    font-weight: 800;
    letter-spacing: .14em;
}

.tl-venue-dialog header h3 {
    max-width: 72vw;
    margin: 0;
    overflow: hidden;
    color: var(--tl-map-navy);
    font-family: "Baloo 2", "Schibsted Grotesk", Arial, sans-serif;
    font-size: clamp(19px, 2vw, 27px);
    font-weight: 800;
    line-height: 1.05;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.tl-venue-header-actions {
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    gap: 10px;
}

.tl-secure-purchase,
.tl-venue-hold-timer {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 34px;
    padding: 7px 11px;
    border-radius: 999px;
    font-size: 10px;
    font-weight: 800;
    white-space: nowrap;
}

.tl-secure-purchase {
    background: #ecfdf5;
    color: #087655;
}

.tl-secure-purchase > span {
    display: grid;
    width: 17px;
    height: 17px;
    place-items: center;
    border-radius: 50%;
    background: #0f9f6e;
    color: #fff;
}

.tl-venue-hold-timer {
    border: 1px solid #fed7aa;
    background: #fff7ed;
    color: #b45309;
}

.tl-venue-hold-timer[hidden] {
    display: none !important;
}

.tl-venue-dialog header button[data-venue-close] {
    display: grid;
    width: 40px;
    height: 40px;
    padding: 0;
    place-items: center;
    border: 1px solid var(--tl-map-line);
    border-radius: 12px;
    background: #fff;
    color: var(--tl-map-ink);
    font-size: 27px;
    font-weight: 400;
    line-height: 1;
    cursor: pointer;
}

.tl-venue-steps {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    width: min(600px, calc(100% - 48px));
    margin: 0 auto;
    padding: 8px 0;
    background: #fff;
}

.tl-venue-steps span {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    min-height: 34px;
    color: #8a90a9;
    font-size: 10px;
    font-weight: 800;
}

.tl-venue-steps span::before {
    position: absolute;
    top: 50%;
    right: 50%;
    left: -50%;
    height: 2px;
    background: #e6e8f0;
    content: "";
    transform: translateY(-50%);
}

.tl-venue-steps span:first-child::before {
    display: none;
}

.tl-venue-steps b {
    z-index: 1;
    display: grid;
    width: 24px;
    height: 24px;
    place-items: center;
    border-radius: 50%;
    background: #eef0f6;
    box-shadow: 0 0 0 5px #fff;
    color: #7e849e;
    font-size: 10px;
}

.tl-venue-steps .is-current {
    color: var(--tl-map-blue);
}

.tl-venue-steps .is-current b {
    background: var(--tl-map-blue);
    color: #fff;
}

.tl-venue-steps .is-done::before,
.tl-venue-steps .is-current::before {
    background: #adb8ef;
}

.tl-venue-steps .is-done b {
    background: #dcfce7;
    color: #087655;
}

.tl-venue-body {
    display: grid;
    min-height: 0;
    grid-template-columns: 288px minmax(0, 1fr);
    border-top: 1px solid var(--tl-map-line);
    background: var(--tl-map-soft);
}

.tl-venue-body > aside {
    min-width: 0;
    overflow: hidden auto;
    padding: 16px 13px 20px;
    border-right: 1px solid var(--tl-map-line);
    background: #fff;
    scrollbar-width: thin;
}

.tl-locality-panel-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 12px;
    padding: 2px 5px 10px;
}

.tl-locality-panel-heading strong {
    color: var(--tl-map-navy);
    font-family: "Baloo 2", "Schibsted Grotesk", Arial, sans-serif;
    font-size: 20px;
    font-weight: 800;
    line-height: 1;
}

.tl-locality-panel-heading small {
    color: var(--tl-map-muted);
    font-size: 9px;
    font-weight: 700;
}

.tl-sector-search {
    position: relative;
    display: block;
    margin: 0 3px 13px;
}

.tl-sector-search::before {
    position: absolute;
    top: 50%;
    left: 12px;
    color: #8990aa;
    content: "⌕";
    font-size: 18px;
    transform: translateY(-52%);
}

.tl-sector-search input {
    width: 100%;
    height: 40px;
    padding: 8px 12px 8px 34px;
    border: 1px solid var(--tl-map-line);
    border-radius: 12px;
    outline: none;
    background: #fafbfe;
    color: var(--tl-map-ink);
    font: 600 12px/1 "Schibsted Grotesk", Arial, sans-serif;
}

.tl-sector-search input:focus {
    border-color: #8290df;
    box-shadow: 0 0 0 3px rgba(36, 54, 181, .1);
}

.tl-venue-locality-title {
    margin: 15px 6px 6px;
    color: #8990aa;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.tl-venue-body aside .tl-venue-sector {
    position: relative;
    display: grid;
    width: 100%;
    min-height: 72px;
    margin: 0 0 7px;
    padding: 11px 12px 10px 38px;
    overflow: hidden;
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-rows: auto auto;
    gap: 3px 8px;
    border: 1px solid var(--tl-map-line);
    border-radius: 14px;
    background: #fff;
    color: var(--tl-map-ink);
    text-align: left;
    cursor: pointer;
    transition: border-color .16s ease, box-shadow .16s ease, transform .16s ease;
}

.tl-venue-body aside .tl-venue-sector:hover {
    border-color: #aab3e5;
    box-shadow: 0 7px 18px rgba(22, 29, 77, .08);
    transform: translateY(-1px);
}

.tl-venue-body aside .tl-venue-sector.is-active {
    border-color: var(--tl-map-blue);
    background: #f5f6ff;
    box-shadow: 0 0 0 2px rgba(36, 54, 181, .1);
}

.tl-venue-body aside .tl-venue-sector[hidden],
.tl-venue-body aside .tl-venue-sector.is-filtered {
    display: none !important;
}

.tl-venue-body aside .tl-venue-sector i {
    position: absolute;
    top: 14px;
    left: 13px;
    width: 14px;
    height: 42px;
    border-radius: 999px;
}

.tl-venue-sector-locality {
    display: none;
}

.tl-venue-body aside .tl-venue-sector b {
    align-self: end;
    min-width: 0;
    overflow: hidden;
    font-size: 13px;
    font-weight: 800;
    line-height: 1.2;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.tl-venue-body aside .tl-venue-sector small {
    align-self: end;
    color: var(--tl-map-blue);
    font-size: 12px;
    font-weight: 800;
    white-space: nowrap;
}

.tl-venue-body aside .tl-venue-avail {
    grid-column: 1 / -1;
    color: var(--tl-map-muted);
    font-size: 10px;
    font-style: normal;
    font-weight: 600;
}

.tl-venue-body aside .tl-venue-sector.is-soldout {
    opacity: .56;
    cursor: not-allowed;
}

.tl-venue-body > main {
    position: relative;
    min-width: 0;
    min-height: 0;
    padding: 15px;
    overflow: hidden;
}

.tl-venue-overview,
.tl-venue-detail {
    width: 100%;
    height: 100%;
    min-height: 0;
}

.tl-venue-overview {
    display: grid;
    grid-template-rows: auto minmax(0, 1fr);
    gap: 10px;
}

.tl-venue-overview[hidden],
.tl-venue-detail[hidden] {
    display: none !important;
}

.tl-overview-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    min-height: 45px;
    padding: 0 6px;
}

.tl-overview-toolbar strong,
.tl-overview-toolbar small {
    display: block;
}

.tl-overview-toolbar strong {
    margin-bottom: 2px;
    color: var(--tl-map-navy);
    font-size: 16px;
    font-weight: 800;
}

.tl-overview-toolbar small {
    color: var(--tl-map-muted);
    font-size: 10px;
}

.tl-overview-toolbar > span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--tl-map-muted);
    font-size: 9px;
    font-weight: 700;
    white-space: nowrap;
}

.tl-overview-toolbar > span i {
    color: var(--tl-map-blue);
    font-size: 16px;
    font-style: normal;
}

.tl-plan-shell {
    position: relative;
    min-height: 0;
    overflow: hidden;
    border: 1px solid var(--tl-map-line);
    border-radius: 20px;
    background:
        radial-gradient(circle at 50% 38%, rgba(36, 54, 181, .055), transparent 42%),
        linear-gradient(#fff, #fafbfe);
    box-shadow: 0 8px 22px rgba(15, 23, 42, .04);
}

.tl-plan-viewport {
    position: absolute;
    inset: 0;
    overflow: hidden;
    touch-action: none;
    user-select: none;
}

.tl-public-plan {
    position: absolute;
    top: 50%;
    left: 50%;
    overflow: hidden;
    border-radius: 16px;
    background: rgba(255, 255, 255, .82);
    box-shadow: inset 0 0 0 1px rgba(218, 223, 236, .84);
    transform-origin: 50% 50%;
    will-change: transform;
}

.tl-public-reference {
    position: absolute;
    inset: 0;
    z-index: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    opacity: var(--tl-reference-opacity, .55);
    pointer-events: none;
}

.tl-public-stage,
.tl-public-sector {
    position: absolute;
}

.tl-public-stage {
    z-index: 1;
    display: grid;
    place-items: center;
    border: 2px solid #2537b4;
    border-radius: 9px;
    background: var(--tl-map-navy);
    color: #fff;
    transform-origin: center;
}

.tl-public-stage b {
    max-width: 92%;
    overflow: hidden;
    font-size: clamp(7px, .8vw, 12px);
    letter-spacing: .1em;
    text-overflow: ellipsis;
    transform: rotate(calc(0deg - var(--rot, 0deg)));
    white-space: nowrap;
}

.tl-public-sector {
    z-index: 2;
    display: grid;
    min-width: 0;
    min-height: 0;
    padding: 0;
    place-items: center;
    border-width: 2px;
    border-style: solid;
    border-radius: 9px;
    outline: 0;
    transform-origin: center;
    cursor: pointer;
    transition: filter .14s ease, opacity .14s ease, box-shadow .14s ease;
}

.tl-public-sector:hover,
.tl-public-sector:focus-visible,
.tl-public-sector.is-preview {
    z-index: 4;
    filter: saturate(1.16) brightness(.99);
    box-shadow: 0 0 0 3px rgba(36, 54, 181, .16), 0 8px 18px rgba(11, 16, 48, .18);
}

.tl-public-sector.is-active {
    z-index: 5;
    box-shadow: 0 0 0 4px rgba(238, 43, 78, .18), 0 8px 24px rgba(11, 16, 48, .2);
    filter: saturate(1.2);
}

.tl-public-sector.is-soldout {
    filter: grayscale(.65);
    opacity: .48;
    cursor: not-allowed;
}

.tl-public-sector.is-poly {
    overflow: visible;
    border: 0;
    border-radius: 0;
    background: transparent !important;
}

.tl-sector-svg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    overflow: visible;
}

.tl-sector-label {
    position: relative;
    z-index: 2;
    display: block;
    max-width: 92%;
    padding: 2px 5px;
    border-radius: 6px;
    background: rgba(255, 255, 255, .72);
    color: var(--tl-map-ink);
    font-size: clamp(7px, .85vw, 12px);
    font-weight: 800;
    line-height: 1.05;
    text-align: center;
    text-shadow: 0 1px #fff;
    transform: rotate(calc(0deg - var(--rot, 0deg)));
}

.tl-public-sector.shape-round {
    border-radius: 50%;
}

.tl-public-sector.shape-arc {
    border-radius: 50% 50% 10px 10px;
}

.tl-public-sector.shape-trapezoid {
    clip-path: polygon(15% 0, 85% 0, 100% 100%, 0 100%);
}

.tl-public-sector.shape-trapezoid-inv {
    clip-path: polygon(0 0, 100% 0, 85% 100%, 15% 100%);
}

.tl-public-sector.shape-parallelogram {
    clip-path: polygon(22% 0, 100% 0, 78% 100%, 0 100%);
}

.tl-public-sector.shape-triangle {
    clip-path: polygon(50% 0, 100% 100%, 0 100%);
}

.tl-public-sector.shape-fan {
    clip-path: polygon(0 100%, 8% 52%, 22% 20%, 42% 4%, 50% 2%, 58% 4%, 78% 20%, 92% 52%, 100% 100%, 80% 74%, 58% 62%, 50% 60%, 42% 62%, 20% 74%);
}

.tl-public-stage.shape-runway {
    clip-path: polygon(0 0, 100% 0, 100% 52%, 58% 52%, 58% 100%, 42% 100%, 42% 52%, 0 52%);
}

.tl-public-stage.shape-t-stage {
    clip-path: polygon(0 0, 100% 0, 100% 42%, 58% 42%, 58% 100%, 42% 100%, 42% 42%, 0 42%);
}

.tl-public-stage.shape-cross-stage {
    clip-path: polygon(42% 0, 58% 0, 58% 36%, 100% 36%, 100% 58%, 58% 58%, 58% 100%, 42% 100%, 42% 58%, 0 58%, 0 36%, 42% 36%);
}

.tl-plan-help {
    position: absolute;
    bottom: 13px;
    left: 50%;
    z-index: 8;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    max-width: calc(100% - 130px);
    padding: 7px 11px;
    border: 1px solid rgba(226, 230, 240, .9);
    border-radius: 999px;
    background: rgba(255, 255, 255, .92);
    box-shadow: 0 5px 15px rgba(15, 23, 42, .08);
    color: #5f6684;
    font-size: 9px;
    font-weight: 700;
    line-height: 1.2;
    text-align: center;
    transform: translateX(-50%);
    white-space: nowrap;
}

.tl-plan-help b {
    color: var(--tl-map-blue);
}

.tl-plan-zoom,
.tl-detail-zoom {
    z-index: 10;
    display: flex;
    overflow: hidden;
    border: 1px solid var(--tl-map-line);
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 7px 20px rgba(15, 23, 42, .11);
}

.tl-plan-zoom {
    position: absolute;
    top: 13px;
    right: 13px;
}

.tl-plan-zoom button,
.tl-detail-zoom button {
    display: grid;
    width: 38px;
    height: 38px;
    padding: 0;
    place-items: center;
    border: 0;
    border-right: 1px solid var(--tl-map-line);
    background: #fff;
    color: var(--tl-map-navy);
    font: 800 18px/1 Arial, sans-serif;
    cursor: pointer;
}

.tl-plan-zoom button:last-child,
.tl-detail-zoom button:last-child {
    border-right: 0;
    font-size: 15px;
}

.tl-plan-zoom button:hover,
.tl-detail-zoom button:hover {
    background: #f3f5ff;
    color: var(--tl-map-blue);
}

.tl-venue-detail {
    display: grid;
    grid-template-rows: auto minmax(0, 1fr);
    gap: 10px;
}

.tl-detail-toolbar {
    display: grid;
    min-height: 62px;
    padding: 8px 10px;
    grid-template-columns: auto minmax(140px, 1fr) auto auto;
    align-items: center;
    gap: 12px;
    border: 1px solid var(--tl-map-line);
    border-radius: 16px;
    background: #fff;
}

.tl-detail-back {
    display: inline-flex;
    min-height: 40px;
    padding: 8px 12px;
    align-items: center;
    gap: 7px;
    border: 1px solid var(--tl-map-line);
    border-radius: 11px;
    background: #fff;
    color: var(--tl-map-navy);
    font-size: 11px;
    font-weight: 800;
    cursor: pointer;
}

.tl-detail-back span {
    color: var(--tl-map-blue);
    font-size: 18px;
}

.tl-detail-title {
    min-width: 0;
}

.tl-detail-title small,
.tl-detail-title strong,
.tl-detail-meta strong,
.tl-detail-meta small {
    display: block;
}

.tl-detail-title small {
    margin-bottom: 2px;
    color: #858ba3;
    font-size: 8px;
    font-weight: 800;
    letter-spacing: .12em;
}

.tl-detail-title strong {
    overflow: hidden;
    color: var(--tl-map-navy);
    font-size: 16px;
    font-weight: 800;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.tl-detail-meta {
    min-width: 112px;
    padding-right: 4px;
    text-align: right;
}

.tl-detail-meta strong {
    color: var(--tl-map-blue);
    font-size: 14px;
    font-weight: 800;
}

.tl-detail-meta small {
    margin-top: 2px;
    color: var(--tl-map-muted);
    font-size: 9px;
    font-weight: 600;
}

.tl-detail-actions {
    display: flex;
    align-items: center;
    gap: 7px;
}

.tl-detail-actions[hidden] {
    display: none !important;
}

.tl-detail-actions label {
    display: grid;
    min-width: 60px;
    grid-template-columns: auto 34px;
    align-items: center;
    gap: 5px;
    color: var(--tl-map-muted);
    font-size: 9px;
    font-weight: 800;
}

.tl-detail-actions input {
    width: 34px;
    height: 36px;
    padding: 4px 2px;
    border: 1px solid var(--tl-map-line);
    border-radius: 9px;
    outline: none;
    color: var(--tl-map-ink);
    font-size: 12px;
    font-weight: 800;
    text-align: center;
}

.tl-best-available,
.tl-clear-selection {
    min-height: 38px;
    padding: 8px 11px;
    border-radius: 10px;
    font-size: 10px;
    font-weight: 800;
    cursor: pointer;
}

.tl-best-available {
    border: 0;
    background: var(--tl-map-blue);
    color: #fff;
}

.tl-best-available span {
    margin-right: 4px;
}

.tl-clear-selection {
    border: 1px solid var(--tl-map-line);
    background: #fff;
    color: #606781;
}

.tl-detail-viewport {
    position: relative;
    min-height: 0;
    overflow: hidden;
    border: 1px solid var(--tl-map-line);
    border-radius: 20px;
    background:
        linear-gradient(rgba(225, 229, 240, .34) 1px, transparent 1px),
        linear-gradient(90deg, rgba(225, 229, 240, .34) 1px, transparent 1px),
        #fbfcfe;
    background-size: 28px 28px;
}

.tl-venue-seat-canvas {
    position: absolute;
    inset: 0;
    z-index: 2;
    overflow: hidden;
    touch-action: none;
}

.tl-venue-seat-canvas canvas {
    display: block !important;
}

.tl-detail-stage-cue {
    position: absolute;
    top: 12px;
    left: 50%;
    z-index: 5;
    display: flex;
    width: min(330px, 42%);
    align-items: center;
    gap: 8px;
    pointer-events: none;
    transform: translateX(-50%);
}

.tl-detail-stage-cue span {
    height: 1px;
    flex: 1;
    background: #aeb5cb;
}

.tl-detail-stage-cue b {
    color: #777e98;
    font-size: 8px;
    letter-spacing: .15em;
    white-space: nowrap;
}

.tl-detail-minimap {
    position: absolute;
    top: 13px;
    left: 13px;
    z-index: 8;
    display: grid;
    width: 190px;
    padding: 8px;
    grid-template-columns: minmax(0, 1fr);
    gap: 5px;
    border: 1px solid var(--tl-map-line);
    border-radius: 13px;
    background: rgba(255, 255, 255, .95);
    box-shadow: 0 7px 20px rgba(15, 23, 42, .11);
    color: var(--tl-map-ink);
    text-align: left;
    cursor: pointer;
}

.tl-detail-minimap > span {
    font-size: 8px;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.tl-detail-minimap > i {
    position: relative;
    display: block;
    width: 100%;
    aspect-ratio: var(--tl-mini-ratio, 2.2);
    overflow: hidden;
    border-radius: 7px;
    background: #f4f6fb;
    box-shadow: inset 0 0 0 1px #e1e5ee;
}

.tl-detail-minimap > small {
    color: var(--tl-map-blue);
    font-size: 8px;
    font-weight: 800;
}

.tl-mini-fallback,
.tl-mini-fallback-shapes,
.tl-mini-konva {
    position: absolute;
    inset: 0;
    display: block;
}

.tl-mini-fallback-image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.tl-mini-fallback-sector {
    position: absolute;
    display: block;
    border: 1px solid;
    border-radius: 2px;
    transform-origin: center;
}

.tl-mini-fallback-sector.is-active {
    z-index: 2;
    border-width: 2px;
    box-shadow: 0 0 0 2px rgba(238, 43, 78, .28);
}

.tl-mini-konva {
    display: none;
}

.tl-detail-zoom {
    position: absolute;
    right: 13px;
    bottom: 13px;
}

.tl-seat-legend {
    position: absolute;
    right: 13px;
    top: 13px;
    z-index: 7;
    display: flex;
    padding: 7px 9px;
    align-items: center;
    gap: 10px;
    border: 1px solid var(--tl-map-line);
    border-radius: 999px;
    background: rgba(255, 255, 255, .94);
    box-shadow: 0 5px 15px rgba(15, 23, 42, .08);
}

.tl-seat-legend span {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: #69708b;
    font-size: 8px;
    font-weight: 700;
    white-space: nowrap;
}

.tl-seat-legend i {
    width: 10px;
    height: 10px;
    border: 2px solid #fff;
    border-radius: 50%;
    background: #4255d4;
    box-shadow: 0 0 0 1px #cfd4e1;
}

.tl-seat-legend i.is-selected {
    background: #10b981;
}

.tl-seat-legend i.is-unavailable {
    background: #dfe3ea;
}

.tl-detail-boxes .tl-seat-legend i {
    width: 12px;
    height: 10px;
    border-radius: 4px 4px 5px 5px;
    box-shadow: 0 -3px 0 #6878db, 0 0 0 1px #cfd4e1;
}

.tl-detail-boxes .tl-seat-legend i.is-selected {
    box-shadow: 0 -3px 0 #047857, 0 0 0 1px #cfd4e1;
}

.tl-detail-boxes .tl-seat-legend i.is-unavailable {
    box-shadow: 0 -3px 0 #c7ccd6, 0 0 0 1px #cfd4e1;
}

.tl-detail-gesture {
    position: absolute;
    bottom: 17px;
    left: 50%;
    z-index: 5;
    padding: 6px 10px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .9);
    color: #737a95;
    font-size: 8px;
    font-weight: 700;
    pointer-events: none;
    transform: translateX(-50%);
    white-space: nowrap;
}

.tl-venue-loading {
    position: absolute;
    top: 50%;
    left: 50%;
    z-index: 20;
    min-width: 170px;
    padding: 13px 16px;
    border: 1px solid var(--tl-map-line);
    border-radius: 13px;
    background: #fff;
    box-shadow: 0 12px 30px rgba(15, 23, 42, .16);
    color: var(--tl-map-blue);
    font-size: 11px;
    font-weight: 800;
    text-align: center;
    transform: translate(-50%, -50%);
}

.tl-venue-loading[hidden] {
    display: none !important;
}

.tl-venue-loading.is-error {
    width: min(360px, calc(100% - 36px));
    color: #991b1b;
}

.tl-venue-loading.is-error > div {
    display: flex;
    margin-top: 10px;
    justify-content: center;
    gap: 7px;
}

.tl-venue-loading.is-error button {
    min-height: 36px;
    padding: 7px 11px;
    border: 0;
    border-radius: 9px;
    background: var(--tl-map-blue);
    color: #fff;
    font-size: 9px;
    font-weight: 800;
    cursor: pointer;
}

.tl-venue-loading.is-error button.is-secondary {
    border: 1px solid var(--tl-map-line);
    background: #fff;
    color: var(--tl-map-ink);
}

.tl-general-card {
    position: absolute;
    top: 50%;
    left: 50%;
    display: grid;
    width: min(680px, calc(100% - 40px));
    padding: 28px;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 24px;
    border: 1px solid var(--tl-map-line);
    border-radius: 22px;
    background: #fff;
    box-shadow: 0 18px 55px rgba(15, 23, 42, .12);
    transform: translate(-50%, -50%);
}

.tl-general-card-icon {
    display: grid;
    width: 62px;
    height: 62px;
    place-items: center;
    border-radius: 18px;
    background: color-mix(in srgb, var(--sector-color) 16%, #fff);
    color: var(--sector-color);
    font-size: 30px;
}

.tl-general-card-copy h4 {
    margin: 0 0 5px;
    color: var(--tl-map-navy);
    font-size: 20px;
    font-weight: 800;
}

.tl-general-card-copy p {
    margin: 0 0 8px;
    color: var(--tl-map-muted);
    font-size: 11px;
    line-height: 1.45;
}

.tl-general-card-copy > strong {
    color: #087655;
    font-size: 11px;
}

.tl-general-picker,
.tl-general-price {
    display: grid;
    gap: 6px;
}

.tl-general-picker > span,
.tl-general-price > span {
    color: var(--tl-map-muted);
    font-size: 8px;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.tl-general-picker > div {
    display: flex;
    overflow: hidden;
    border: 1px solid var(--tl-map-line);
    border-radius: 11px;
}

.tl-general-picker button {
    width: 38px;
    height: 38px;
    border: 0;
    background: #f5f6fa;
    color: var(--tl-map-blue);
    font-size: 19px;
    font-weight: 800;
    cursor: pointer;
}

.tl-general-picker input {
    width: 45px;
    height: 38px;
    border: 0;
    outline: 0;
    color: var(--tl-map-ink);
    font-size: 13px;
    font-weight: 800;
    text-align: center;
}

.tl-general-price {
    grid-column: 3;
    text-align: right;
}

.tl-general-price strong {
    color: var(--tl-map-blue);
    font-size: 17px;
}

.tl-detail-general .tl-detail-zoom,
.tl-detail-general .tl-seat-legend,
.tl-detail-general .tl-detail-gesture,
.tl-detail-general .tl-detail-stage-cue {
    display: none !important;
}

.tl-venue-dialog > footer {
    display: grid;
    min-height: 84px;
    padding: 10px 16px 10px 20px;
    grid-template-columns: minmax(0, 1fr) auto auto;
    align-items: center;
    gap: 20px;
    border-top: 1px solid var(--tl-map-line);
    background: #fff;
    box-shadow: 0 -10px 28px rgba(15, 23, 42, .04);
}

.tl-venue-selection {
    min-width: 0;
}

.tl-venue-selection > span,
.tl-venue-selection > strong {
    display: block;
}

.tl-venue-selection > span {
    color: var(--tl-map-muted);
    font-size: 9px;
    font-weight: 700;
}

.tl-venue-selection > span b {
    color: var(--tl-map-red);
    font-size: 11px;
}

.tl-venue-selection > strong {
    max-width: 100%;
    margin-top: 2px;
    overflow: hidden;
    color: var(--tl-map-ink);
    font-size: 12px;
    font-weight: 800;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.tl-selection-items {
    display: flex;
    max-width: 100%;
    margin-top: 5px;
    overflow: auto hidden;
    gap: 5px;
    scrollbar-width: none;
}

.tl-selection-items[hidden] {
    display: none !important;
}

.tl-selection-items::-webkit-scrollbar {
    display: none;
}

.tl-selection-chip {
    display: inline-flex;
    min-height: 27px;
    padding: 4px 6px 4px 8px;
    flex: 0 0 auto;
    align-items: center;
    gap: 7px;
    border: 1px solid #d9dded;
    border-radius: 999px;
    background: #f7f8fc;
    color: #4b526e;
    font-size: 8px;
    font-weight: 700;
    cursor: pointer;
}

.tl-selection-chip b {
    color: var(--tl-map-red);
    font-size: 14px;
}

.tl-venue-total {
    min-width: 160px;
    text-align: right;
}

.tl-venue-total > span,
.tl-venue-total > strong,
.tl-venue-total > small {
    display: block;
}

.tl-venue-total > span {
    color: var(--tl-map-muted);
    font-size: 8px;
    font-weight: 800;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.tl-venue-total > strong {
    margin-top: 1px;
    color: var(--tl-map-navy);
    font-size: 20px;
    font-weight: 800;
}

.tl-venue-total > small {
    max-width: 220px;
    margin-top: 1px;
    color: #9297aa;
    font-size: 7px;
    line-height: 1.25;
}

.tl-price-warning {
    color: #b45309 !important;
    font-weight: 800 !important;
}

.tl-confirm-seats {
    display: grid;
    min-width: 230px;
    min-height: 58px;
    padding: 9px 18px;
    place-content: center;
    border: 0;
    border-radius: 14px;
    background: var(--tl-map-red);
    box-shadow: 0 10px 24px rgba(238, 43, 78, .22);
    color: #fff;
    text-align: center;
    cursor: pointer;
}

.tl-confirm-seats > span,
.tl-confirm-seats > small {
    display: block;
}

.tl-confirm-seats > span {
    font-size: 13px;
    font-weight: 800;
}

.tl-confirm-seats > small {
    margin-top: 2px;
    font-size: 8px;
    font-weight: 600;
    opacity: .82;
}

.tl-confirm-seats:disabled {
    background: #e6e8ef;
    box-shadow: none;
    color: #9499aa;
    cursor: not-allowed;
}

.tl-venue-modal button:focus-visible,
.tl-venue-modal input:focus-visible {
    outline: 3px solid rgba(36, 54, 181, .24);
    outline-offset: 2px;
}

@media (max-width: 1120px) {
    .tl-venue-body {
        grid-template-columns: 250px minmax(0, 1fr);
    }

    .tl-detail-toolbar {
        grid-template-columns: auto minmax(120px, 1fr) auto;
    }

    .tl-detail-actions {
        grid-column: 1 / -1;
        justify-content: flex-end;
        margin-top: -4px;
    }

    .tl-venue-total > small {
        display: none;
    }
}

@media (max-width: 900px) {
    .tl-venue-modal {
        padding: 0;
        background: #fff;
    }

    .tl-venue-dialog {
        width: 100%;
        height: 100dvh;
        min-height: 0;
        border: 0;
        border-radius: 0;
        box-shadow: none;
    }

    .tl-venue-dialog > header {
        min-height: 56px;
        padding: max(8px, env(safe-area-inset-top)) 10px 8px 13px;
    }

    .tl-venue-dialog header small {
        display: none;
    }

    .tl-venue-dialog header h3 {
        max-width: 62vw;
        font-size: 18px;
    }

    .tl-secure-purchase,
    .tl-venue-hold-timer {
        display: none;
    }

    .tl-venue-dialog header button[data-venue-close] {
        width: 38px;
        height: 38px;
    }

    .tl-venue-steps {
        width: calc(100% - 24px);
        padding: 4px 0;
    }

    .tl-venue-steps span {
        min-height: 29px;
        gap: 4px;
        font-size: 9px;
    }

    .tl-venue-steps b {
        width: 20px;
        height: 20px;
        box-shadow: 0 0 0 3px #fff;
        font-size: 8px;
    }

    .tl-venue-body {
        display: flex;
        flex-direction: column;
        min-height: 0;
        overflow: hidden;
    }

    .tl-venue-body > main {
        order: 1;
        min-height: 0;
        padding: 7px 8px;
        flex: 1 1 auto;
    }

    .tl-venue-body > aside {
        display: flex;
        order: 2;
        min-height: 95px;
        padding: 8px 8px 9px;
        overflow: auto hidden;
        flex: 0 0 95px;
        align-items: stretch;
        gap: 7px;
        border-top: 1px solid var(--tl-map-line);
        border-right: 0;
        scrollbar-width: none;
    }

    .tl-venue-body > aside::-webkit-scrollbar {
        display: none;
    }

    .tl-locality-panel-heading,
    .tl-sector-search,
    .tl-venue-body > aside > .tl-venue-locality-title {
        display: none;
    }

    .tl-venue-body aside .tl-venue-sector {
        width: 158px;
        min-width: 158px;
        min-height: 77px;
        margin: 0;
        padding: 10px 9px 8px 31px;
        flex: 0 0 158px;
    }

    .tl-venue-body aside .tl-venue-sector i {
        top: 13px;
        left: 10px;
        width: 11px;
        height: 38px;
    }

    .tl-venue-sector-locality {
        display: block;
        grid-column: 1 / -1;
        overflow: hidden;
        color: #8a90a7;
        font-size: 7px;
        font-weight: 800;
        letter-spacing: .09em;
        text-overflow: ellipsis;
        text-transform: uppercase;
        white-space: nowrap;
    }

    .tl-venue-body aside .tl-venue-sector b {
        font-size: 11px;
    }

    .tl-venue-body aside .tl-venue-sector small {
        font-size: 10px;
    }

    .tl-venue-body aside .tl-venue-avail {
        font-size: 8px;
    }

    .tl-overview-toolbar {
        min-height: 37px;
        padding: 0 3px;
    }

    .tl-overview-toolbar strong {
        font-size: 13px;
    }

    .tl-overview-toolbar small {
        font-size: 8px;
    }

    .tl-overview-toolbar > span {
        display: none;
    }

    .tl-plan-shell {
        border-radius: 15px;
    }

    .tl-public-plan {
        border-radius: 10px;
    }

    .tl-plan-help {
        bottom: 9px;
        max-width: calc(100% - 110px);
        padding: 6px 8px;
        overflow: hidden;
        font-size: 8px;
        text-overflow: ellipsis;
    }

    .tl-plan-zoom {
        top: 9px;
        right: 9px;
    }

    .tl-plan-zoom button,
    .tl-detail-zoom button {
        width: 36px;
        height: 36px;
    }

    .tl-view-detail .tl-venue-body > aside {
        display: none;
    }

    .tl-view-detail .tl-venue-body > main {
        padding-bottom: 8px;
    }

    .tl-detail-toolbar {
        min-height: 54px;
        padding: 5px 6px;
        grid-template-columns: auto minmax(0, 1fr) auto;
        gap: 7px;
        border-radius: 13px;
    }

    .tl-detail-back {
        width: 40px;
        min-height: 40px;
        padding: 0;
        justify-content: center;
        font-size: 0;
    }

    .tl-detail-back span {
        font-size: 20px;
    }

    .tl-detail-title small {
        font-size: 7px;
    }

    .tl-detail-title strong {
        font-size: 13px;
    }

    .tl-detail-meta {
        min-width: 84px;
    }

    .tl-detail-meta strong {
        font-size: 11px;
    }

    .tl-detail-meta small {
        font-size: 7px;
    }

    .tl-detail-actions {
        grid-column: 1 / -1;
        justify-content: stretch;
        margin: 0;
        gap: 5px;
    }

    .tl-detail-actions label {
        min-width: 58px;
        grid-template-columns: auto 32px;
        font-size: 8px;
    }

    .tl-detail-actions input {
        width: 32px;
        height: 33px;
    }

    .tl-best-available {
        min-height: 34px;
        padding: 7px 9px;
        flex: 1;
        font-size: 9px;
    }

    .tl-clear-selection {
        min-height: 34px;
        padding: 7px 9px;
        font-size: 9px;
    }

    .tl-detail-viewport {
        border-radius: 15px;
    }

    .tl-detail-minimap {
        top: 8px;
        left: 8px;
        width: 126px;
        padding: 6px;
        gap: 3px;
    }

    .tl-detail-minimap > span {
        font-size: 6px;
    }

    .tl-detail-minimap > small {
        font-size: 6px;
    }

    .tl-detail-stage-cue {
        top: 9px;
        width: 34%;
    }

    .tl-seat-legend {
        top: 8px;
        right: 8px;
        padding: 5px 6px;
        gap: 6px;
    }

    .tl-seat-legend span {
        font-size: 6px;
    }

    .tl-seat-legend i {
        width: 8px;
        height: 8px;
    }

    .tl-detail-zoom {
        right: 8px;
        bottom: 8px;
    }

    .tl-detail-gesture {
        bottom: 11px;
        max-width: 52%;
        overflow: hidden;
        font-size: 7px;
        text-overflow: ellipsis;
    }

    .tl-general-card {
        width: calc(100% - 22px);
        padding: 17px;
        grid-template-columns: auto minmax(0, 1fr);
        gap: 13px;
        border-radius: 17px;
    }

    .tl-general-card-icon {
        width: 46px;
        height: 46px;
        border-radius: 13px;
        font-size: 23px;
    }

    .tl-general-card-copy h4 {
        font-size: 16px;
    }

    .tl-general-card-copy p {
        font-size: 9px;
    }

    .tl-general-picker {
        grid-column: 1 / 2;
    }

    .tl-general-price {
        grid-column: 2 / 3;
        align-self: end;
    }

    .tl-venue-dialog > footer {
        min-height: 72px;
        padding: 7px 8px calc(7px + env(safe-area-inset-bottom));
        grid-template-columns: minmax(0, 1fr) auto;
        gap: 8px;
    }

    .tl-venue-selection > span {
        font-size: 8px;
    }

    .tl-venue-selection > strong {
        max-width: 44vw;
        font-size: 9px;
    }

    .tl-selection-items {
        max-width: 44vw;
        margin-top: 3px;
    }

    .tl-selection-chip {
        min-height: 24px;
        padding: 3px 5px 3px 7px;
        font-size: 7px;
    }

    .tl-venue-total {
        position: absolute;
        right: 174px;
        min-width: 88px;
        text-align: right;
    }

    .tl-venue-total > span {
        font-size: 6px;
    }

    .tl-venue-total > strong {
        font-size: 14px;
    }

    .tl-venue-total > small {
        display: none;
    }

    .tl-confirm-seats {
        min-width: 158px;
        min-height: 52px;
        padding: 7px 10px;
        grid-column: 2;
    }

    .tl-confirm-seats > span {
        font-size: 11px;
    }

    .tl-confirm-seats > small {
        font-size: 7px;
    }
}

@media (max-width: 480px) {
    .tl-venue-steps span {
        font-size: 8px;
    }

    .tl-venue-dialog header h3 {
        max-width: 70vw;
        font-size: 16px;
    }

    .tl-sector-label {
        padding: 1px 3px;
        font-size: 7px;
    }

    .tl-public-stage b {
        font-size: 6px;
    }

    .tl-detail-minimap {
        width: 110px;
    }

    .tl-seat-legend span:nth-child(2) {
        display: none;
    }

    .tl-venue-selection > strong {
        display: none;
    }

    .tl-selection-items {
        max-width: 27vw;
    }

    .tl-venue-total {
        right: 158px;
    }

    .tl-confirm-seats {
        min-width: 146px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .tl-venue-modal *,
    .tl-venue-modal *::before,
    .tl-venue-modal *::after {
        scroll-behavior: auto !important;
        transition: none !important;
        animation: none !important;
    }
}
