﻿/*
  Index page – map responsiveness
  Scope: .map-card--index only (avoids affecting Kontakt page map).
*/

.map-card--index {
    width: 100%;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 0 24px #4b6bf340;
    background: #fff;
    /* prevent flex overflow in .contact */
    min-width: 0;
    /* stable height across devices */
    height: clamp(220px, 40vw, 340px);
}

    .map-card--index .map-embed {
        width: 100%;
        height: 100%;
        display: block;
        border: 0;
    }

/* Desktop: map behaves as the 3rd column */
@media (min-width: 992px) {
    .contact .map-card--index {
        flex: 1 1 38%;
        max-width: 520px;
    }
}

/* Tablet / smaller: let it span full width under the form */
@media (max-width: 991px) {
    .contact .map-card--index {
        max-width: none;
        margin-top: 16px;
    }
}

/* Phone: keep it compact */
@media (max-width: 767px) {
    .contact .map-card--index {
        height: 260px;
        margin-top: 12px;
    }
}
