/**
 * INDES Workshops – halls and venues block.
 *
 * Functional baseline only (layout, hidden state, info panel positioning), so
 * the block works in any theme. Visual styling belongs to the theme.
 */

.indes-halls-and-venues {
    margin-block: 1.5rem;
}

.indes-halls-and-venues .indes-halls-map-block {
    position: relative;
}

/* Small screens: the map is at least 80% of the viewport height, whatever height the editor set. */
@media (max-width: 47.99rem) {
    .indes-halls-and-venues .indes-halls-map {
        min-height: 80vh;
        min-height: 80dvh;
    }
}

.indes-venues__header {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1rem;
}

.indes-venues__heading {
    margin: 0;
}

.indes-venues__status:empty {
    margin: 0;
}

.indes-venues__list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(16rem, 1fr));
    gap: 1rem;
    margin: 1rem 0;
    padding: 0;
    list-style: none;
}

.indes-venues__card[data-lat] {
    cursor: pointer;
}

.indes-venues__card-head {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.indes-venues__swatch,
.indes-venue-panel__swatch {
    display: inline-block;
    width: 0.75rem;
    height: 0.75rem;
    border-radius: 50%;
}

.indes-venues__name {
    margin: 0;
}

.indes-venues__rooms {
    margin: 0.5rem 0 0;
    padding: 0;
    list-style: none;
}

.indes-venues__rooms li {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
}

.indes-venues__links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 1rem;
    margin-top: 0.75rem;
}

/* Info panel (injected into .indes-halls-map-block by the script):
   side panel over the map on desktop, bottom sheet on small screens.
   --venue-map-top / --venue-map-height are set from JS so it only covers the map.
   1.5rem stay free at the bottom for the basemap.at attribution. */
.indes-venue-panel {
    position: absolute;
    right: 0.5rem;
    bottom: 1.5rem;
    left: 0.5rem;
    z-index: 500;
    max-height: calc(var(--venue-map-height, 480px) * 0.65);
    overflow-y: auto;
    border-radius: 0.5rem;
    background: #fff;
    color: #000;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
}

.indes-venue-panel[hidden] {
    display: none;
}

.indes-venue-panel:focus {
    outline: none;
}

@media (min-width: 48rem) {
    .indes-venue-panel {
        top: calc(var(--venue-map-top, 0px) + 0.5rem);
        right: 0.5rem;
        bottom: auto;
        left: auto;
        width: min(24rem, 45%);
        max-height: none;
    }
}

.indes-venue-panel__close {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    width: 2rem;
    height: 2rem;
    border: 0;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.1);
    font-size: 1.25rem;
    line-height: 1;
    cursor: pointer;
}

.indes-venue-panel__body {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    padding: 1rem;
}

.indes-venue-panel__title {
    margin: 0;
    padding-right: 2rem;
}
