/* Mein-Rosapineta Karteneditor V4 – Vor-Ort-Schnellerfassung */

.editor-page {
    font-size: 16px;
}

.editor-brand strong { font-size: 19px; }
.editor-brand small, .editor-user small { font-size: 10px; }
.editor-user strong { font-size: 14px; }
.save-state { font-size: 13px; }

.map-toolbar {
    gap: 6px;
    padding: 5px;
}
.map-toolbar button {
    min-height: 44px;
    padding: 9px 14px;
    font-size: 14px;
}
.map-toolbar .quick-list-open {
    color: #fff;
    background: linear-gradient(135deg,#0f5fc8,#29a6d5);
}

.map-actions button {
    width: 54px;
    height: 54px;
    font-size: 25px;
}
.map-actions button.gps-live-active {
    color: #fff;
    background: linear-gradient(145deg,#0d72df,#24b5dd);
    box-shadow: 0 0 0 5px rgba(24,119,237,.18), 0 12px 30px rgba(8,65,132,.32);
}

.gps-live-status {
    position: absolute;
    z-index: 980;
    top: 68px;
    left: calc(12px + var(--safe-left));
    display: flex;
    align-items: center;
    gap: 9px;
    min-height: 42px;
    padding: 8px 12px;
    border: 1px solid rgba(18,78,143,.15);
    border-radius: 14px;
    color: #173e72;
    background: rgba(255,255,255,.96);
    box-shadow: 0 8px 25px rgba(8,48,98,.17);
    font-size: 12px;
    font-weight: 850;
    backdrop-filter: blur(12px);
}
.gps-live-status .gps-dot {
    width: 11px;
    height: 11px;
    border-radius: 50%;
    background: #a9b7c7;
}
.gps-live-status.active .gps-dot {
    background: #1786ee;
    box-shadow: 0 0 0 5px rgba(23,134,238,.15);
}
.gps-live-status strong { font-size: 13px; }
.gps-live-status small { color: #6b7f99; font-size: 11px; font-weight: 750; }

/* Große, eigene Eintragsnavigation */
.quick-entry-panel {
    position: absolute;
    z-index: 1700;
    top: 66px;
    left: calc(12px + var(--safe-left));
    bottom: calc(12px + var(--safe-bottom));
    width: min(450px, calc(100% - 24px - var(--safe-left) - var(--safe-right)));
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid rgba(24,75,133,.18);
    border-radius: 24px;
    background: rgba(255,255,255,.98);
    box-shadow: 0 22px 60px rgba(7,37,81,.24);
    backdrop-filter: blur(18px);
}
.quick-entry-panel[hidden] { display: none !important; }
.quick-entry-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 17px 17px 12px;
    border-bottom: 1px solid #e1eaf3;
}
.quick-entry-head strong { display: block; font-size: 21px; }
.quick-entry-head small { display: block; margin-top: 3px; color: #6c7f98; font-size: 12px; }
.quick-entry-close {
    width: 40px;
    height: 40px;
    border: 0;
    border-radius: 12px;
    color: #153e71;
    background: #edf5fd;
    font-size: 25px;
    cursor: pointer;
}
.quick-entry-search {
    display: flex;
    align-items: center;
    gap: 9px;
    margin: 12px 14px 8px;
    padding: 0 13px;
    border: 1px solid #cdddea;
    border-radius: 14px;
    background: #f8fbfe;
}
.quick-entry-search input {
    width: 100%;
    min-height: 49px;
    border: 0;
    outline: 0;
    color: #102a55;
    background: transparent;
    font-size: 15px;
}
.quick-entry-filters {
    display: flex;
    gap: 7px;
    overflow-x: auto;
    padding: 3px 14px 11px;
    scrollbar-width: thin;
}
.quick-entry-filters button {
    flex: 0 0 auto;
    min-height: 37px;
    padding: 8px 12px;
    border: 1px solid #d4e1ed;
    border-radius: 999px;
    color: #365b83;
    background: #f7fbff;
    font-size: 12px;
    font-weight: 850;
    cursor: pointer;
}
.quick-entry-filters button.active {
    border-color: transparent;
    color: #fff;
    background: linear-gradient(135deg,#246cdb,#42b7dc);
}
.quick-entry-results {
    min-height: 0;
    overflow: auto;
    padding: 0 10px 14px;
}
.quick-entry-row {
    width: 100%;
    display: grid;
    grid-template-columns: 48px minmax(0,1fr) auto;
    gap: 11px;
    align-items: center;
    padding: 12px 10px;
    border: 0;
    border-bottom: 1px solid #e5edf4;
    color: #102a55;
    background: transparent;
    text-align: left;
    cursor: pointer;
}
.quick-entry-row:hover, .quick-entry-row:focus-visible {
    background: #f1f8ff;
    outline: 0;
}
.quick-entry-icon {
    width: 48px;
    height: 48px;
    display: grid;
    place-items: center;
    border-radius: 15px;
    background: #e9f4ff;
    font-size: 23px;
}
.quick-entry-copy { min-width: 0; }
.quick-entry-copy strong {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 15px;
    line-height: 1.25;
}
.quick-entry-copy small {
    display: block;
    margin-top: 4px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: #677b94;
    font-size: 12px;
    line-height: 1.3;
}
.quick-entry-arrow { color: #3b78b4; font-size: 24px; }
.quick-entry-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    margin-top: 6px;
}
.quick-entry-badges span,
.quick-model-badges span {
    padding: 4px 7px;
    border-radius: 999px;
    color: #245578;
    background: #eaf6fd;
    font-size: 10px;
    font-weight: 850;
}
.quick-entry-empty {
    padding: 35px 18px;
    color: #6c7f98;
    font-size: 14px;
    text-align: center;
}

/* Bestehende Suche ebenfalls besser lesbar */
.search-panel { width: min(450px, calc(100% - 105px)); }
.panel-head strong { font-size: 18px; }
.panel-head small { font-size: 12px; }
.search-field input { min-height: 49px; font-size: 15px; }
.search-result {
    grid-template-columns: 46px minmax(0,1fr);
    gap: 11px;
    padding: 12px;
}
.search-result > span { width: 46px; height: 46px; font-size: 22px; }
.search-result strong { font-size: 14px; }
.search-result small { font-size: 12px; }

/* Bearbeitung größer und klarer */
.editor-sheet { width: min(510px, calc(100% - 20px - var(--safe-left) - var(--safe-right))); }
.sheet-head small { font-size: 10px; }
.sheet-head h2 { font-size: 25px; }
.sheet-note { font-size: 14px; }
.form-grid label > span { font-size: 13px; }
.object-form input:not([type="hidden"]):not([type="radio"]),
.object-form select,
.object-form textarea {
    min-height: 50px;
    padding: 12px 13px;
    border-radius: 13px;
    font-size: 15px;
}
.object-form textarea { min-height: 96px; }
.position-actions button, .drawing-actions button {
    min-height: 47px;
    font-size: 13px;
}
.primary-save {
    min-height: 55px;
    font-size: 15px;
}
.position-card { padding: 12px; }
.position-card strong { font-size: 14px; }
.position-card small { font-size: 12px; }

/* Schnellerfassung Unterkunft / Stellplatz */
.quick-unit-form .form-grid {
    grid-template-columns: 1fr;
    gap: 12px;
}
.quick-unit-form .form-grid label.full,
.quick-unit-form .form-grid .full { grid-column: auto; }
.quick-flow {
    display: grid;
    grid-template-columns: repeat(4,1fr);
    gap: 6px;
    margin-bottom: 2px;
}
.quick-flow span {
    min-width: 0;
    padding: 8px 5px;
    border-radius: 11px;
    color: #45627f;
    background: #edf5fb;
    font-size: 10px;
    font-weight: 900;
    text-align: center;
}
.quick-flow span b {
    display: block;
    margin-bottom: 2px;
    color: #176fc2;
    font-size: 12px;
}
.quick-model-card {
    display: grid;
    gap: 7px;
    padding: 12px 13px;
    border: 1px solid #cfe0ed;
    border-radius: 15px;
    background: linear-gradient(145deg,#f9fdff,#eef8ff);
}
.quick-model-card strong { font-size: 15px; }
.quick-model-card small { color: #60758e; font-size: 12px; line-height: 1.4; }
.quick-model-badges { display: flex; flex-wrap: wrap; gap: 5px; }
.quick-provider-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 11px 13px;
    border: 1px solid #d7e4ee;
    border-radius: 14px;
    background: #f9fcff;
}
.quick-provider-card span { color: #61768e; font-size: 11px; font-weight: 800; }
.quick-provider-card strong { font-size: 13px; text-align: right; }
.quick-advanced {
    border: 1px solid #d8e5ef;
    border-radius: 14px;
    background: #fbfdff;
}
.quick-advanced > summary {
    padding: 12px 13px;
    color: #31557d;
    font-size: 13px;
    font-weight: 900;
    cursor: pointer;
}
.quick-advanced-content {
    display: grid;
    gap: 11px;
    padding: 0 12px 12px;
}
.quick-unit-form .file-field {
    padding: 14px;
    border-width: 2px;
    border-color: #8fc5e8;
    background: #eef8ff;
}
.quick-unit-form .file-field > span {
    font-size: 14px;
}
.quick-photo-preview {
    width: 100%;
    max-height: 190px;
    display: block;
    margin-top: 8px;
    border-radius: 12px;
    object-fit: cover;
}
.quick-live-location {
    border-color: #a7d9b8 !important;
    color: #12663a !important;
    background: #eefaf2 !important;
}

@media (min-width: 1100px) {
    .map-actions { right: 535px; }
    .search-panel { right: 535px; }
}

@media (max-width: 760px) {
    .editor-page { font-size: 16px; }
    .editor-brand strong { font-size: 17px; }
    .map-toolbar {
        max-width: calc(100% - 76px - var(--safe-left) - var(--safe-right));
        overflow-x: auto;
    }
    .map-toolbar button {
        flex: 0 0 auto;
        min-height: 42px;
        padding: 8px 11px;
        font-size: 13px;
    }
    .map-toolbar .quick-list-open span { display: inline; }
    .gps-live-status {
        top: 60px;
        left: calc(8px + var(--safe-left));
        min-height: 38px;
        max-width: calc(100% - 88px);
        padding: 7px 10px;
    }
    .gps-live-status strong { font-size: 12px; }
    .gps-live-status small { font-size: 10px; }
    .quick-entry-panel {
        top: 7px;
        left: calc(7px + var(--safe-left));
        right: calc(7px + var(--safe-right));
        bottom: calc(7px + var(--safe-bottom));
        width: auto;
        border-radius: 22px;
    }
    .quick-entry-head { padding: 15px 15px 11px; }
    .quick-entry-head strong { font-size: 20px; }
    .quick-entry-row { padding: 12px 8px; }
    .editor-sheet {
        max-height: min(78dvh, 760px);
    }
    .sheet-head h2 { font-size: 23px; }
    .sheet-body { padding-left: 14px; padding-right: 14px; }
    .quick-flow { grid-template-columns: repeat(2,1fr); }
    .object-form input:not([type="hidden"]):not([type="radio"]),
    .object-form select,
    .object-form textarea { font-size: 16px; }
}

@media (max-width: 390px) {
    .map-toolbar .quick-list-open span { display: inline; }
    .map-toolbar .quick-list-open { width: auto; min-width: 92px; }
    .quick-entry-row { grid-template-columns: 44px minmax(0,1fr) auto; }
    .quick-entry-icon { width: 44px; height: 44px; }
}
