/* Mein-Rosapineta Karteneditor V5 – Direkt auf der Karte erfassen */

.tap-add-panel {
    position: absolute;
    z-index: 2400;
    inset: 0;
    display: grid;
    place-items: end center;
    padding: 18px max(12px, var(--safe-right)) calc(18px + var(--safe-bottom)) max(12px, var(--safe-left));
    background: rgba(5, 24, 52, .28);
    backdrop-filter: blur(3px);
}
.tap-add-panel[hidden] { display: none !important; }
.tap-add-card {
    width: min(680px, 100%);
    max-height: min(78dvh, 760px);
    overflow: auto;
    padding: 17px;
    border: 1px solid rgba(255,255,255,.74);
    border-radius: 26px;
    background: rgba(255,255,255,.98);
    box-shadow: 0 26px 75px rgba(2,28,65,.32);
}
.tap-add-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 13px;
}
.tap-add-head > div { min-width: 0; }
.tap-add-head small {
    display: block;
    margin-bottom: 4px;
    color: #2a82bd;
    font-size: 10px;
    font-weight: 950;
    letter-spacing: 1.25px;
}
.tap-add-head strong {
    display: block;
    color: #102a55;
    font-size: 26px;
    line-height: 1.08;
}
.tap-add-head span {
    display: block;
    margin-top: 5px;
    color: #71839a;
    font-size: 11px;
}
.tap-add-head button {
    flex: 0 0 auto;
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 13px;
    color: #173f70;
    background: #edf5fd;
    font-size: 27px;
    cursor: pointer;
}
.tap-add-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}
.tap-add-grid > button {
    min-width: 0;
    display: grid;
    grid-template-columns: 56px minmax(0,1fr);
    gap: 12px;
    align-items: center;
    padding: 14px;
    border: 1px solid #d4e3ef;
    border-radius: 18px;
    color: #102a55;
    background: linear-gradient(145deg,#fff,#f3f9ff);
    text-align: left;
    cursor: pointer;
}
.tap-add-grid > button:hover,
.tap-add-grid > button:focus-visible {
    border-color: #7eb8e2;
    background: #edf7ff;
    outline: 0;
}
.tap-add-grid b {
    width: 56px;
    height: 56px;
    display: grid;
    place-items: center;
    border-radius: 17px;
    background: #e8f4ff;
    font-size: 29px;
}
.tap-add-grid span { min-width: 0; }
.tap-add-grid strong {
    display: block;
    font-size: 16px;
    line-height: 1.2;
}
.tap-add-grid small {
    display: block;
    margin-top: 4px;
    color: #667c95;
    font-size: 12px;
    line-height: 1.35;
}
.tap-add-card > p {
    margin: 13px 2px 1px;
    color: #6a7d95;
    font-size: 12px;
    line-height: 1.45;
}

.tap-map-help {
    position: absolute;
    z-index: 970;
    left: 50%;
    bottom: calc(20px + var(--safe-bottom));
    transform: translateX(-50%);
    display: grid;
    grid-template-columns: 38px auto;
    column-gap: 9px;
    align-items: center;
    min-width: 260px;
    padding: 9px 13px;
    border: 1px solid rgba(20,75,132,.14);
    border-radius: 16px;
    color: #173e72;
    background: rgba(255,255,255,.96);
    box-shadow: 0 10px 28px rgba(5,42,88,.2);
    transition: opacity .45s ease, transform .45s ease;
    pointer-events: none;
}
.tap-map-help > span {
    grid-row: 1 / 3;
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    border-radius: 12px;
    color: #fff;
    background: linear-gradient(145deg,#1e6bd7,#37b4dc);
    font-size: 24px;
}
.tap-map-help strong { font-size: 13px; }
.tap-map-help small { color: #6b8098; font-size: 10px; }
.tap-map-help.fade {
    opacity: 0;
    transform: translate(-50%, 8px);
}

/* Stellplatz-Auswahl noch verständlicher */
.quick-unit-form select[name="unit_type"],
.quick-unit-form select[name="accommodation_id"] {
    font-weight: 800;
}
.quick-unit-form select[name="accommodation_id"] option {
    font-weight: 700;
}
.quick-model-card strong {
    font-size: 16px;
}
.quick-model-badges span {
    padding: 6px 9px;
    font-size: 11px;
}

@media (max-width: 760px) {
    .tap-add-panel {
        place-items: end stretch;
        padding: 8px 7px calc(7px + var(--safe-bottom));
    }
    .tap-add-card {
        width: 100%;
        max-height: min(82dvh, 720px);
        padding: 14px;
        border-radius: 25px 25px 18px 18px;
    }
    .tap-add-head strong { font-size: 23px; }
    .tap-add-grid { grid-template-columns: 1fr; gap: 8px; }
    .tap-add-grid > button {
        grid-template-columns: 50px minmax(0,1fr);
        padding: 11px 12px;
    }
    .tap-add-grid b {
        width: 50px;
        height: 50px;
        border-radius: 15px;
        font-size: 26px;
    }
    .tap-add-grid strong { font-size: 15px; }
    .tap-add-grid small { font-size: 12px; }
    .tap-map-help {
        left: 8px;
        right: 78px;
        bottom: calc(11px + var(--safe-bottom));
        min-width: 0;
        transform: none;
    }
    .tap-map-help.fade { transform: translateY(8px); }
}
