.event-detail {
    display: grid;
    gap: 32px;
    margin-bottom: 64px;
}

.event-detail__header {
    display: block;
    gap: 24px;
    padding: 32px;
    background: #ffffff;
    border-radius: 20px;
    box-shadow: 0 16px 40px rgba(15, 35, 95, 0.08);
    align-items: start;
}

.event-detail__header,
.event-detail__tickets {
    position: relative;
}

.event-detail__main {
    display: grid;
    gap: 16px;
}

.event-detail__label-group {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 24px;
    font-size: 14px;
    color: #4b5563;
}

.event-detail__datetime {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    background: rgba(25, 103, 210, 0.08);
    border-radius: 999px;
}

.event-detail__datetime--secondary {
    background: rgba(17, 24, 39, 0.05);
}

.event-detail__datetime-icon {
    font-size: 16px;
}

.event-detail__title {
    font-size: 32px;
    line-height: 1.2;
    font-weight: 700;
    margin: 0;
}

.event-detail__title-block {
    display: grid;
    gap: 4px;
}

.event-detail__title-subtitle {
    font-size: 15px;
    line-height: 1.2;
    color: #64748b;
    overflow-wrap: anywhere;
}

.event-detail__intro {
    margin: 0;
    font-size: 15px;
    line-height: 1.6;
    color: #4b5563;
    max-width: 760px;
}

.event-detail__meta {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 16px;
    margin: 0;
}

.event-detail__meta-item {
    display: grid;
    gap: 4px;
}

.event-detail__meta-item dt {
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #6b7280;
}

.event-detail__meta-item dd {
    margin: 0;
    font-size: 16px;
    color: #111827;
}

.event-detail__meta-value-stack {
    display: grid;
    gap: 2px;
}

.event-detail__meta-value-main,
.event-detail__meta-value-subtitle {
    display: block;
}

.event-detail__meta-value-subtitle {
    font-size: 14px;
    line-height: 1.35;
    color: #64748b;
}

.event-detail__location-icon {
    margin-right: 6px;
}

.event-detail__aside {
    display: grid;
    gap: 16px;
    justify-items: start;
}

.event-detail__cta-group {
    display: grid;
    gap: 10px;
    width: 100%;
}

.event-detail__venue {
    display: grid;
    gap: 0;
    width: 100%;
    grid-template-rows: auto 1fr auto;
    top: 0;
    left: 0;
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 16px 40px rgba(15, 35, 95, 0.08);
    padding: 15px;
}

.event-detail__venue-title {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    color: #111827;
}

.event-detail__map {
    position: relative;
    width: 100%;
    min-height: 300px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.event-detail__map svg {
    width: 100%;
    height: 100%;
}

.event-detail__map-message {
    padding: 24px;
    text-align: center;
    font-size: 14px;
    color: #4b5563;
}

.event-detail__map-links {
    display: grid;
    gap: 8px;
    width: 100%;
}

.event-detail__map-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: #2563eb;
    text-decoration: none;
}

.event-detail__map-link::after {
    content: "↗";
    font-size: 12px;
}

.event-detail__map-link:hover {
    text-decoration: underline;
}

.event-detail__map [data-map-highlight] {
    transition: fill 0.25s ease, stroke 0.25s ease, opacity 0.25s ease;
}

.event-detail__map [data-map-highlight] path,
.event-detail__map [data-map-highlight] polygon,
.event-detail__map [data-map-highlight] rect,
.event-detail__map [data-map-highlight] circle,
.event-detail__map [data-map-highlight] ellipse {
    fill: rgba(14, 165, 233, 0.42) !important;
    stroke: #0369a1 !important;
    stroke-width: 2 !important;
}

.event-detail__map [data-map-highlight] text,
.event-detail__map [data-map-highlight] tspan {
    fill: #111827 !important;
}

.event-detail__map svg.has-map-highlight [data-map-highlight] {
    opacity: 1 !important;
}

.event-detail__stat {
    background: rgba(16, 185, 129, 0.08);
    border-radius: 16px;
    padding: 12px 16px;
}

.event-detail__stat-label {
    display: block;
    font-size: 13px;
    color: #047857;
    margin-bottom: 4px;
}

.event-detail__stat-value {
    font-size: 20px;
    color: #065f46;
}

.event-detail__badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    font-size: 13px;
    border-radius: 999px;
    background: rgba(253, 186, 116, 0.25);
    color: #c2410c;
}

.event-detail__badge--popular::before {
    content: "★";
}

.event-detail__cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 20px;
    border-radius: 12px;
    font-weight: 600;
    text-decoration: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.event-detail__cta--primary {
    background: linear-gradient(135deg, #2563eb, #0ea5e9);
    color: #ffffff;
}

.event-detail__cta--secondary {
    background: #ffffff;
    color: #1d4ed8;
    border: 1px solid rgba(37, 99, 235, 0.18);
}

.event-detail__cta:hover {
    transform: translateY(-1px);
    box-shadow: 0 12px 24px rgba(37, 99, 235, 0.2);
}

.event-detail__aside-note {
    font-size: 13px;
    line-height: 1.5;
    color: #6b7280;
}

.event-detail__tickets {
    background: #ffffff;
    border-radius: 20px;
    box-shadow: 0 16px 40px rgba(15, 35, 95, 0.08);
    padding: 32px;
}

.event-detail__tickets-header {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 16px;
    align-items: center;
    margin-bottom: 24px;
}

.event-detail__tickets-title {
    font-size: 24px;
    font-weight: 700;
    margin: 0;
}

.event-detail__refresh {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: transparent;
    border: 1px solid rgba(17, 24, 39, 0.12);
    border-radius: 999px;
    padding: 10px 18px;
    font-size: 14px;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease;
}

.event-detail__refresh-icon {
    font-size: 16px;
}

.event-detail__refresh:hover,
.event-detail__refresh.is-loading {
    background: rgba(37, 99, 235, 0.08);
    color: #1d4ed8;
}

.event-detail__refresh.is-loading::after {
    content: "";
    width: 12px;
    height: 12px;
    border: 2px solid rgba(29, 78, 216, 0.3);
    border-top-color: #1d4ed8;
    border-radius: 50%;
    animation: event-detail-spin 0.8s linear infinite;
}

@keyframes event-detail-spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.event-detail__tickets-list {
    display: grid;
    gap: 20px;
}

.ticket-category-group {
    display: grid;
    gap: 16px;
}

.ticket-category-group__header {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: space-between;
    gap: 8px 16px;
    padding-bottom: 8px;
    border-bottom: 1px solid rgba(203, 213, 225, 0.75);
}

.ticket-category-group__title {
    margin: 0;
    font-size: 22px;
    font-weight: 700;
    color: #0f172a;
}

.ticket-category-group__title-stack {
    display: grid;
    gap: 4px;
}

.ticket-category-group__subtitle {
    font-size: 14px;
    line-height: 1.3;
    color: #64748b;
}

.ticket-category-group__meta {
    font-size: 13px;
    font-weight: 600;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.ticket-category-group__items {
    display: grid;
    gap: 16px;
}

.event-detail__alert {
    padding: 16px 20px;
    border-radius: 12px;
    background: rgba(37, 99, 235, 0.08);
    color: #1d4ed8;
    font-size: 15px;
}

.event-detail__alert--error {
    background: rgba(239, 68, 68, 0.1);
    color: #b91c1c;
}

.event-detail__alert--success {
    background: rgba(16, 185, 129, 0.12);
    color: #047857;
}

.event-detail__alert--info {
    background: rgba(14, 165, 233, 0.1);
    color: #0369a1;
}

.ticket-card {
    border: 1px solid rgba(17, 24, 39, 0.08);
    border-radius: 20px;
    padding: 24px;
    background: #ffffff;
    box-shadow: 0 12px 32px rgba(15, 35, 95, 0.08);
    display: grid;
    gap: 16px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    text-align: left;
}

.ticket-card:hover {
    border-color: rgba(37, 99, 235, 0.3);
    box-shadow: 0 16px 36px rgba(37, 99, 235, 0.14);
}

.ticket-card__header {
    display: grid;
    grid-template-columns: 92px minmax(0, 1fr) minmax(220px, 280px);
    align-items: flex-start;
    gap: 16px 24px;
}

.ticket-card__date-col {
    display: flex;
    align-items: flex-start;
    justify-content: center;
}

.ticket-card__content-col {
    display: grid;
    gap: 6px;
    min-width: 0;
    max-width: none;
    align-content: start;
}

.ticket-card__date-badge {
    display: inline-grid;
    justify-items: center;
    align-content: center;
    gap: 2px;
    width: fit-content;
    min-width: 76px;
    padding: 10px 12px;
    border: 1px solid rgba(203, 213, 225, 0.9);
    border-radius: 14px;
    background: #f8fafc;
}

.ticket-card__date-month {
    font-size: 14px;
    font-weight: 600;
    color: #374151;
}

.ticket-card__date-day {
    font-size: 22px;
    line-height: 1;
    font-weight: 700;
    color: #111827;
}

.ticket-card__date-year {
    font-size: 14px;
    font-weight: 700;
    color: #374151;
}

.ticket-card__date-fallback {
    font-size: 14px;
    line-height: 1.35;
    font-weight: 600;
    color: #111827;
    text-align: center;
}

.ticket-card__badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    font-size: 13px;
    font-weight: 600;
    border-radius: 999px;
    background: rgba(37, 99, 235, 0.12);
    color: #1d4ed8;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.ticket-card__badge::before {
    content: "★";
    font-size: 12px;
}

.ticket-card__badge--choice {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.16), rgba(56, 189, 248, 0.16));
    color: #047857;
}

.ticket-card__badge--value {
    background: linear-gradient(135deg, rgba(234, 179, 8, 0.16), rgba(249, 115, 22, 0.16));
    color: #b45309;
}

.ticket-card__badge--limited {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.16), rgba(249, 115, 22, 0.16));
    color: #b91c1c;
}

.ticket-card__title {
    margin: 0;
    font-size: 20px;
    font-weight: 700;
    color: #0f172a;
    line-height: 1.18;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.ticket-card__subtitle {
    margin-top: -2px;
    font-size: 13px;
    color: #64748b;
    line-height: 1.2;
    overflow-wrap: anywhere;
}

.ticket-card__tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 0;
    margin: 0;
    list-style: none;
}

.ticket-card__tag {
    display: inline-flex;
    align-items: center;
    padding: 6px 12px;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.05);
    color: #1f2937;
    font-size: 13px;
}

.ticket-card__header-meta {
    display: flex;
    flex-direction: column;
    gap: 12px;
    align-items: flex-end;
    min-width: 0;
    width: 100%;
}

.ticket-card__stock {
    font-size: 14px;
    color: #059669;
    font-weight: 600;
}

.ticket-card__price {
    display: grid;
    gap: 4px;
    justify-items: end;
    width: 100%;
}

.ticket-card__price-label {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #6b7280;
}

.ticket-card__price-value {
    font-size: 26px;
    font-weight: 700;
    color: #0ea5e9;
    line-height: 1.15;
    text-align: right;
    overflow-wrap: anywhere;
}

.ticket-card__price-note {
    font-size: 13px;
    color: #6b7280;
}

.ticket-card__cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 24px;
    border-radius: 12px;
    background: linear-gradient(135deg, #22c55e, #16a34a);
    color: #ffffff;
    font-weight: 600;
    text-decoration: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.ticket-card__cta--secondary {
    background: #ffffff;
    color: #166534;
    border: 1px solid rgba(34, 197, 94, 0.35);
}

.ticket-card__cta:hover {
    transform: translateY(-1px);
    box-shadow: 0 12px 24px rgba(22, 163, 74, 0.25);
}

.ticket-card__actions {
    display: grid;
    gap: 12px;
    justify-items: end;
    width: 100%;
}

.ticket-card__toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 18px;
    border: 1px solid rgba(37, 99, 235, 0.28);
    border-radius: 12px;
    background: #ffffff;
    color: #1d4ed8;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.ticket-card__toggle:hover {
    background: rgba(37, 99, 235, 0.06);
    border-color: rgba(37, 99, 235, 0.4);
}

.ticket-card__toggle[aria-expanded="true"] {
    background: rgba(37, 99, 235, 0.08);
}

.ticket-card__qty-label {
    display: grid;
    gap: 6px;
    font-size: 13px;
    color: #4b5563;
}

.ticket-card__qty-input {
    width: 110px;
    padding: 10px 12px;
    border-radius: 12px;
    border: 1px solid #d1d5db;
    font-size: 15px;
    color: #111827;
}

.ticket-card__description {
    font-size: 15px;
    color: #374151;
    line-height: 1.6;
}

.ticket-card__section {
    display: grid;
    gap: 14px;
    padding-top: 18px;
    border-top: 1px solid rgba(203, 213, 225, 0.7);
}

.ticket-card__details-panel {
    display: grid;
    gap: 0;
}

.ticket-card__details-panel[hidden] {
    display: none;
}

.ticket-card__section--perks {
    padding-top: 4px;
    border-top: 0;
    justify-self: start;
    width: 100%;
    margin-inline: 0;
}

.ticket-card__section--perks .ticket-card__section-title {
    text-align: left;
}

.ticket-card__section--perks .ticket-card__features {
    width: 100%;
    margin-inline: 0;
}

.ticket-card__section-title {
    margin: 0;
    font-size: 15px;
    font-weight: 700;
    color: #0f172a;
    line-height: 1.3;
}

.ticket-card__features {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 10px;
}

.ticket-card__feature {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 14px;
    color: #1f2937;
    overflow-wrap: normal;
}

.ticket-card__feature::before {
    content: "";
    flex: 0 0 20px;
    width: 20px;
    height: 20px;
    margin-top: 1px;
    border: 1.5px solid #111827;
    border-radius: 50%;
    background:
        radial-gradient(circle at 50% 50%, transparent 0 4px, #111827 4px 4.8px, transparent 4.8px 100%);
    opacity: 0.9;
}

.ticket-card__feature-label {
    font-weight: 500;
    color: #111827;
}

.ticket-card__feature-value {
    color: #4b5563;
}

.ticket-card__info-table {
    display: grid;
    gap: 2px;
}

.ticket-card__info-row {
    display: grid;
    grid-template-columns: minmax(150px, 220px) minmax(0, 1fr);
    gap: 18px;
    align-items: center;
    padding: 10px 12px;
    background: #f7f8fb;
}

.ticket-card__info-row:nth-child(even) {
    background: #ffffff;
}

.ticket-card__info-label {
    font-size: 13px;
    font-weight: 500;
    color: #1f2937;
}

.ticket-card__info-value {
    font-size: 14px;
    color: #1f2937;
    text-align: right;
}

.ticket-card__labels {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.ticket-card__labels li {
    padding: 6px 12px;
    border-radius: 999px;
    background: rgba(37, 99, 235, 0.08);
    color: #1d4ed8;
    font-size: 13px;
}

.ticket-card__supplier-note {
    padding: 0;
    background: transparent;
    border-radius: 0;
    font-size: 14px;
    color: #374151;
    line-height: 1.7;
}

.ticket-card__footer {
    display: flex;
    justify-content: flex-end;
}

.event-detail__booking-header {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 12px;
    align-items: center;
}

.event-detail__booking-help,
.event-detail__booking-validity {
    margin: 0 0 12px;
    font-size: 14px;
    color: #6b7280;
}

.event-detail__booking-summary {
    margin-bottom: 12px;
}

.event-detail__booking-form {
    display: grid;
    gap: 16px;
}

.event-detail__booking-guest-title {
    margin-bottom: 12px;
    font-size: 15px;
    font-weight: 700;
    color: #111827;
}

.event-booking-modal {
    position: fixed;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1050;
}

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

.event-booking-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
}

.event-booking-modal__dialog {
    position: relative;
    z-index: 1;
    width: min(100%, 720px);
    max-height: min(90vh, 900px);
    overflow-y: auto;
    padding: 20px;
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.2);
}

.event-booking-modal__close {
    position: absolute;
    top: 12px;
    right: 12px;
    border: none;
    background: transparent;
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
    color: #475569;
}

.event-detail__booking-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 12px;
}

.event-detail__booking-guest {
    padding: 14px;
    margin-bottom: 10px;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    background: #f8fafc;
}

.event-detail__booking-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 12px;
    font-size: 14px;
    color: #334155;
}

.event-detail__booking-field:last-child {
    margin-bottom: 0;
}

.event-detail__booking-field input,
.event-detail__booking-field textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #cbd5e1;
    border-radius: 10px;
    background: #fff;
    color: #0f172a;
}

.event-detail__booking-field input:focus,
.event-detail__booking-field textarea:focus,
.ticket-card__qty-input:focus,
.event-detail__refresh:focus,
.event-detail__cta:focus {
    outline: none;
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

body.modal-open {
    overflow: hidden;
}

.ticket-card__link {
    font-size: 14px;
    color: #2563eb;
    text-decoration: none;
}

.ticket-card__link:hover {
    text-decoration: underline;
}

@media (min-width: 1024px) {
    .event-detail__header {
        align-items: stretch;
    }

    .event-detail__aside {
        align-self: stretch;
    }

    .event-detail__map {
        min-height: 450px;
    }

    .event-detail__meta {
        grid-template-columns: repeat(2, minmax(200px, 1fr));
    }
}

@media (min-width: 1360px) {
    .event-detail__header {
    }

    .event-detail__map {
        min-height: 500px;
    }
}

@media (max-width: 767px) {
    .event-detail__header,
    .event-detail__tickets {
        padding: 24px;
    }

    .event-detail__title {
        font-size: 26px;
    }

    .ticket-card__header {
        grid-template-columns: 1fr;
    }

    .ticket-card__date-col {
        justify-content: flex-start;
    }

    .ticket-card__header-meta {
        align-items: flex-start;
        text-align: left;
        min-width: 0;
        width: 100%;
    }

    .ticket-card__price {
        justify-items: flex-start;
    }

    .ticket-card__actions {
        justify-items: stretch;
        width: 100%;
    }

    .ticket-card__toggle,
    .ticket-card__cta {
        width: 100%;
    }

    .ticket-card__qty-input {
        width: 100%;
    }

    .ticket-card__details {
        grid-template-columns: 1fr;
    }

    .ticket-category-group__title {
        font-size: 20px;
    }

    .ticket-card__date-badge {
        min-width: 72px;
        padding: 8px 10px;
    }

    .ticket-card__date-day {
        font-size: 22px;
    }

    .ticket-card__info-row {
        grid-template-columns: 1fr;
        gap: 6px;
    }

    .ticket-card__info-value {
        text-align: left;
    }

    .event-booking-modal {
        align-items: flex-end;
    }

    .event-booking-modal__dialog {
        width: 100%;
        max-width: none;
        border-radius: 18px 18px 0 0;
    }
}


.soccerfield {
  fill: green;
}
.svg-background {
  fill: none;
  stroke: #fff;
}
.stadium-ring {
  fill: #8a8582;
}
.svg-background-soccerstadiums {
  fill: white;
}
.track-drive-bbox {
  stroke: none;
  fill: none;
}
.track-drive {
  stroke: #455159;
  fill: none;
  stroke-width: 12.72px;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.track-border {
  stroke: #8a8582;
  fill: none;
  stroke-width: 25.44px;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.track-overlay {
  stroke: white;
  fill: none;
  stroke-width: 15.26px;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.starting-grid {
  stroke: white;
  fill: none;
}
.curve-red {
  fill: red;
}
.curve-grey {
  fill: grey;
}
.drive-arrow {
  fill: yellow;
}
.flag-white {
  fill: white;
}
.flag-black {
  fill: black;
}
.hide {
  fill: none;
  stroke: none;
}

.grandstand-legend,
.grandstand {
  fill: #9b8579;
}
.suite-legend,
.suite {
  fill: #0814ff;
}
.unavailable {
  fill: #a3a9af;
}
.general-admission-legend,
.general-admission {
  fill: #8dc63f;
}

.highlight{
    fill: #0ea5e9;
}
