.halls-main,
.halls-main * {
    box-sizing: border-box;
}

html,
body {
    min-height: 100%;
}

body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.halls-main {
    width: min(1220px, calc(100% - 30px));
    flex: 1 0 auto;
    margin: 0 auto;
    padding: 34px 0 56px;
}

.halls-intro,
.halls-panel-heading,
.hall-card-heading,
.hall-card-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
}

.halls-intro {
    margin-bottom: 24px;
    padding: 26px 28px;
    border: 1px solid #c9deed;
    border-radius: 18px;
    background: linear-gradient(135deg, #ffffff, #eef8ff);
    box-shadow: 0 10px 28px rgba(4, 47, 99, .08);
}

.halls-intro h2,
.halls-panel-heading h3,
.hall-card h3,
.halls-empty h3 {
    margin: 0;
    color: #06396f;
}

.halls-intro h2 {
    font-size: clamp(1.8rem, 4vw, 2.7rem);
    line-height: 1.05;
}

.halls-intro > div > p:last-child {
    max-width: 750px;
    margin: 8px 0 0;
    color: #56728c;
}

.halls-eyebrow {
    margin: 0 0 5px;
    color: #0874ba;
    font-size: .73rem;
    font-weight: 900;
    letter-spacing: .13em;
}

.halls-season-badge {
    flex: 0 0 auto;
    padding: 8px 15px;
    border-radius: 999px;
    background: #073f7a;
    color: #fff;
    font-size: .8rem;
    font-weight: 900;
}

.halls-preview-notice {
    margin: -8px 0 22px;
    padding: 13px 16px;
    border-left: 5px solid #d49300;
    border-radius: 9px;
    background: #fff6da;
    color: #765000;
}

.halls-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(380px, .95fr);
    align-items: start;
    gap: 22px;
}

.hall-browser {
    min-width: 0;
}

.hall-filter-panel {
    margin-bottom: 18px;
    padding: 18px;
    border: 1px solid #c9deed;
    border-radius: 16px;
    background: linear-gradient(135deg, #ffffff, #eef8ff);
    box-shadow: 0 9px 24px rgba(4, 47, 99, .08);
}

.hall-filter-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
}

.hall-filter-heading h3 {
    margin: 0;
    color: #06396f;
    font-size: 1.2rem;
}

.hall-filter-reset {
    flex: 0 0 auto;
    padding: 8px 11px;
    border: 1px solid #9fc8e4;
    border-radius: 8px;
    background: #fff;
    color: #075392;
    font-weight: 800;
    cursor: pointer;
}

.hall-filter-fields {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-top: 16px;
}

.hall-filter-fields label,
.hall-filter-fields label > span {
    display: block;
}

.hall-filter-fields label > span {
    margin-bottom: 5px;
    color: #173c61;
    font-size: .78rem;
    font-weight: 900;
}

.hall-filter-fields select {
    width: 100%;
    min-height: 44px;
    padding: 9px 34px 9px 11px;
    border: 1px solid #9fc8e4;
    border-radius: 8px;
    background: #fff;
    color: #073f73;
    font: inherit;
    font-weight: 700;
}

.hall-filter-fields select:disabled {
    background: #edf2f5;
    color: #7b8d9b;
}

.hall-filter-status {
    margin: 12px 0 0;
    color: #56728c;
    font-size: .82rem;
}

.halls-map-panel {
    position: sticky;
    top: 18px;
    overflow: hidden;
    border: 1px solid #c9deed;
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 12px 30px rgba(4, 47, 99, .10);
}

.halls-panel-heading {
    padding: 18px 20px;
    border-bottom: 1px solid #d8e7f2;
}

.halls-panel-heading > p {
    margin: 0;
    color: #60758d;
    font-size: .8rem;
    font-weight: 700;
}

.halls-marker-key {
    display: inline-block;
    width: 12px;
    height: 12px;
    margin-right: 6px;
    border: 3px solid #fff;
    border-radius: 50%;
    background: #0b64b5;
    box-shadow: 0 0 0 2px #0b64b5;
    vertical-align: -1px;
}

#hall-map {
    width: 100%;
    height: min(68vh, 670px);
    min-height: 500px;
    background: #e9f3f9;
}

.hall-map-message {
    margin: 0;
    padding: 15px 20px;
    background: #fff7df;
    color: #775000;
    font-weight: 700;
}

.hall-list {
    display: grid;
    gap: 18px;
}

.hall-card {
    overflow: hidden;
    border: 1px solid #c7ddec;
    border-top: 5px solid #0b64b5;
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 9px 24px rgba(4, 47, 99, .08);
    outline: none;
    scroll-margin-top: 18px;
    transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}

.hall-card[hidden] {
    display: none;
}

.hall-card:hover,
.hall-card:focus-visible,
.hall-card.is-selected {
    border-color: #168bd2;
    box-shadow: 0 14px 32px rgba(4, 78, 145, .20);
}

.hall-card.is-selected {
    transform: translateY(-2px);
}

.hall-card-body {
    padding: 20px;
}

.hall-card h3 {
    font-size: 1.35rem;
    line-height: 1.15;
}

.hall-card-pin {
    display: grid;
    width: 38px;
    height: 38px;
    flex: 0 0 38px;
    place-items: center;
    border-radius: 50%;
    background: #e6f4fd;
    color: #086bad;
    font-size: 1.3rem;
    font-weight: 900;
}

.hall-card address {
    margin: 7px 0 0;
    color: #526e87;
    font-style: normal;
}

.hall-photo-gallery {
    background: #eaf5fb;
}

/*.hall-primary-photo {
    display: block;
    width: 100%;
    height: auto;
    max-height: 420px;
    object-fit: contain;
    object-position: center;
}*/

.hall-primary-photo {
    display: block;
    width: 100%;
    height: auto;
    max-height: 480px;
    object-fit: contain;
    background: #eaf4fb;
}

.hall-photo-thumbs {
    display: flex;
    gap: 7px;
    overflow-x: auto;
    padding: 9px 11px 4px;
}

.hall-photo-thumb {
    width: 62px;
    height: 44px;
    flex: 0 0 62px;
    padding: 0;
    overflow: hidden;
    border: 2px solid transparent;
    border-radius: 6px;
    background: transparent;
    cursor: pointer;
}

.hall-photo-thumb.is-current {
    border-color: #0b64b5;
}

.hall-photo-thumb img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hall-photo-caption {
    margin: 0;
    padding: 5px 12px 10px;
    color: #60758d;
    font-size: .76rem;
}

.hall-team-section {
    margin-top: 16px;
    padding: 14px;
    border-radius: 11px;
    background: #eef7fd;
}

.hall-division-badge {
    display: inline-block;
    margin-top: 8px;
    padding: 5px 10px;
    border-radius: 999px;
    background: #073f7a;
    color: #fff;
    font-size: .72rem;
    font-weight: 900;
    letter-spacing: .03em;
}

.hall-match-night {
    display: block;
    color: #073f73;
    font-size: 1rem;
}

.hall-team-section small {
    display: block;
    margin-top: 6px;
    color: #60758d;
}

.hall-venue-section {
    margin-top: 18px;
    padding-top: 16px;
    border-top: 1px solid #d5e7f3;
}

.hall-venue-section h4 {
    margin: 0;
    color: #06396f;
    font-size: 1.08rem;
}

.hall-team-section h4 {
    margin: 0 0 8px;
    color: #173c61;
    font-size: .83rem;
}

.hall-team-list {
    display: grid;
    gap: 5px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.hall-team-list li {
    border-top: 1px solid #d5e7f3;
    padding-top: 6px;
}

.hall-team-list li:first-child {
    border-top: 0;
    padding-top: 0;
}

.hall-team-focus {
    display: flex;
    width: 100%;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    padding: 4px 0;
    border: 0;
    background: transparent;
    color: #073f73;
    text-align: left;
    cursor: pointer;
}

.hall-team-focus span {
    color: #486b88;
    font-size: .82rem;
    white-space: nowrap;
}

.hall-team-list small {
    display: block;
    color: #60758d;
}

.hall-visit-notes {
    display: grid;
    gap: 8px;
    margin: 16px 0 0;
}

.hall-visit-notes div {
    display: grid;
    grid-template-columns: 92px 1fr;
    gap: 10px;
}

.hall-visit-notes dt {
    color: #073f73;
    font-size: .78rem;
    font-weight: 900;
}

.hall-visit-notes dd {
    margin: 0;
    color: #526e87;
    font-size: .88rem;
}

.hall-card-actions {
    margin-top: 18px;
}

.hall-card-actions button,
.hall-card-actions a {
    min-height: 42px;
    padding: 10px 14px;
    border: 1px solid #0b64b5;
    border-radius: 8px;
    font-weight: 900;
    cursor: pointer;
}

.hall-card-actions button {
    background: #fff;
    color: #075392;
}

.hall-card-actions a {
    background: #0b64b5;
    color: #fff;
}

.hall-map-pending,
.hall-muted {
    color: #73879a;
    font-size: .85rem;
}

.halls-empty {
    padding: 38px;
    border: 1px dashed #9bbbd2;
    border-radius: 16px;
    background: rgba(255, 255, 255, .8);
    text-align: center;
}

.halls-empty p {
    margin-bottom: 0;
    color: #60758d;
}

.hall-map-marker {
    background: transparent;
    border: 0;
}

.hall-map-marker span {
    display: block;
    width: 24px;
    height: 24px;
    border: 4px solid #fff;
    border-radius: 50% 50% 50% 0;
    background: #0b64b5;
    box-shadow: 0 2px 8px rgba(3, 41, 78, .45);
    transform: rotate(-45deg);
    transition: background .15s ease, transform .15s ease;
}

.hall-map-marker.is-selected span {
    background: #e31b23;
    transform: rotate(-45deg) scale(1.2);
}

.hall-popup h4 {
    margin: 0 0 4px;
    color: #06396f;
    font-size: 1rem;
}

.hall-popup p,
.hall-popup ul {
    margin: 5px 0 0;
    padding: 0;
}

.hall-popup-team {
    width: 100%;
    margin-top: 4px;
    padding: 6px 8px;
    border: 1px solid #c7ddec;
    border-radius: 6px;
    background: #eef7fd;
    color: #073f73;
    font: inherit;
    font-weight: 700;
    text-align: left;
    cursor: pointer;
}

.hall-popup ul {
    list-style: none;
    color: #405f79;
    font-size: .82rem;
}

@media (max-width: 880px) {
    .halls-layout {
        grid-template-columns: 1fr;
    }

    .halls-map-panel {
        position: relative;
        top: auto;
    }

    #hall-map {
        height: 430px;
        min-height: 0;
    }
}

@media (max-width: 560px) {
    .halls-main {
        width: min(100% - 20px, 1220px);
        padding-top: 20px;
    }

    .halls-intro {
        align-items: flex-start;
        padding: 20px;
    }

    .halls-season-badge {
        display: none;
    }

    .halls-panel-heading > p {
        display: none;
    }

    #hall-map {
        height: 350px;
    }

    .hall-filter-heading {
        display: block;
    }

    .hall-filter-reset {
        width: 100%;
        margin-top: 12px;
    }

    .hall-filter-fields {
        grid-template-columns: 1fr;
    }

    .hall-primary-photo {
        max-height: 320px;
    }

    .hall-card-body {
        padding: 17px;
    }

    .hall-team-focus,
    .hall-card-actions {
        align-items: stretch;
        flex-direction: column;
    }

    .hall-team-focus span {
        white-space: normal;
    }

    .hall-card-actions > * {
        width: 100%;
        text-align: center;
    }

    .hall-visit-notes div {
        grid-template-columns: 1fr;
        gap: 2px;
    }
}
