/* Scoped to the restored IPF floor map and video gallery. */
#location.ipf-media-ready,
#videos.ipf-media-ready {
    height: auto;
    min-height: 0;
    padding: 64px 24px;
    scroll-margin-top: 88px;
}
#location.ipf-media-ready {
    background-color: #f9fdfe;
    background-size: max(100%, 1104px) 460px;
    background-position: center bottom;
    background-repeat: no-repeat;
}
#location.ipf-media-ready::after { display: none; }
.ipf-media-ready .ipf-media-heading {
    margin: 0 0 40px;
    font-size: clamp(2rem, 3.5vw, 3rem);
    font-weight: 700;
    line-height: 1.25;
    text-align: center;
}
#location.ipf-media-ready .map-container {
    width: 100%;
    max-width: 1200px;
    padding: clamp(16px, 2.5vw, 40px);
}
#location .ipf-map-preview {
    position: relative;
    display: block;
    width: 100%;
    padding: 0;
    border: 0;
    border-radius: 8px;
    overflow: hidden;
    cursor: zoom-in;
}
#location .ipf-map-preview img { display: block; width: 100%; height: auto; }
#location .ipf-map-preview-icon {
    position: absolute;
    top: 12px;
    right: 12px;
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    border: 2px solid #d1d5db;
    border-radius: 50%;
    background: #fff;
    color: #376d8a;
    box-shadow: 0 2px 8px #15375333;
}
#location .ipf-map-preview-icon svg { width: 24px; height: 24px; }
#location .ipf-map-actions { text-align: center; margin-top: 20px; }
#location.ipf-media-ready .ipf-floor-map-more { position: static; margin-top: 16px; }
#videos .ipf-video-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 28px;
    max-width: 1400px;
    margin: 0 auto;
}
#videos .ipf-video-card { min-width: 0; }
#videos .ipf-video-frame {
    position: relative;
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    border-radius: 12px;
    background: #000;
    box-shadow: 0 10px 18px #12344933;
}
#videos .ipf-video-frame img,
#videos .ipf-video-frame iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
    object-fit: contain;
}
#videos .ipf-video-play {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    background: #00000019;
}
#videos .ipf-video-play span {
    display: grid;
    place-items: center;
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: #c9382c;
    color: #fff;
    box-shadow: 0 4px 12px #0003;
    transition: transform .2s ease;
}
#videos .ipf-video-play svg { width: 28px; height: 28px; margin-left: 4px; }
#videos .video-play-button:hover .ipf-video-play span { transform: scale(1.08); }
#videos .ipf-video-card h4 { margin: 18px 0 0; color: #fff; font-size: 18px; font-weight: 700; line-height: 1.6; }
#videos .ipf-video-card h4 a { color: inherit; text-decoration: none; }
#videos .ipf-video-card h4 a:hover { text-decoration: underline; }
#location .ipf-map-preview:focus-visible,
#videos .video-play-button:focus-visible { outline: 3px solid #419bd7; outline-offset: 4px; }
#ipf-map-dialog {
    width: min(96vw, 1600px);
    max-width: 96vw;
    max-height: 94vh;
    max-height: 94dvh;
    margin: auto;
    padding: 0;
    border: 0;
    border-radius: 12px;
    background: #f9fdfe;
    color: #263c53;
    box-shadow: 0 20px 60px #0006;
}
#ipf-map-dialog::backdrop { background: #132a41c9; }
#ipf-map-dialog .ipf-map-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 12px 16px;
    background: #fff;
    border-bottom: 1px solid #c9d9e5;
}
#ipf-map-dialog h4 { margin: 0; font-size: 18px; font-weight: 700; }
#ipf-map-dialog .ipf-map-controls { display: flex; align-items: center; gap: 6px; }
#ipf-map-dialog button {
    min-width: 44px;
    height: 44px;
    padding: 0 10px;
    border: 1px solid #adc3d5;
    border-radius: 8px;
    background: #fff;
    color: #263c53;
    font: inherit;
    font-size: 18px;
    font-weight: 700;
    cursor: pointer;
}
#ipf-map-dialog button:hover { background: #e5f1f8; }
#ipf-map-dialog button:focus-visible { outline: 3px solid #419bd7; outline-offset: 2px; }
#ipf-map-dialog button:disabled { opacity: .4; cursor: default; }
#ipf-map-dialog output { min-width: 48px; text-align: center; font-size: 14px; }
#ipf-map-viewport {
    position: relative;
    height: min(76vh, 900px);
    height: min(76dvh, 900px);
    overflow: hidden;
    background: #e5edf3;
    touch-action: none;
    cursor: grab;
    user-select: none;
}
#ipf-map-viewport:active { cursor: grabbing; }
#ipf-map-zoom-image {
    position: absolute;
    top: 50%;
    left: 50%;
    display: block;
    max-width: none;
    max-height: none;
    transform: translate(-50%, -50%);
    transform-origin: center;
    pointer-events: none;
}
@media (max-width: 767px) {
    #location.ipf-media-ready, #videos.ipf-media-ready { padding: 40px 16px; }
    .ipf-media-ready .ipf-media-heading { margin-bottom: 28px; font-size: clamp(1.5rem, 5.8vw, 2rem); }
    #videos .ipf-video-grid { grid-template-columns: 1fr; gap: 32px; max-width: 520px; }
    #location.ipf-media-ready .map-container { padding: 12px; box-shadow: 8px 8px 10px #0091d326; }
    #ipf-map-dialog .ipf-map-toolbar { padding: 8px; }
    #ipf-map-dialog h4 { font-size: 16px; }
    #ipf-map-dialog .ipf-map-controls { gap: 4px; margin-left: auto; }
    #ipf-map-dialog button { padding: 0 6px; }
}
@media (prefers-reduced-motion: reduce) {
    #videos .ipf-video-play span { transition: none; }
}
