﻿/* Grundlayout */
.entry-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.entry-row {
    display: grid;
    grid-template-columns: 1fr 2fr 1fr; /* 1/4 – 2/4 – 1/4 */
    gap: 16px;
    padding: 12px;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

/* Bild-Spalte */
.entry-image img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    border-radius: 8px;
    cursor: zoom-in;
}

/* Text / Notizen */
.entry-content {
    position: relative;
    cursor: pointer;
}

.entry-content[data-canedit="false"] {
        cursor: default;
}

.draggable-header {
    cursor: move;
    user-select: none;
}

.entry-notizen-scroll {
    max-height: 350px;
    overflow-y: auto;
    white-space: pre-wrap;
}

.entry-modal-date {
    font-size: 0.9rem;
    color: #6c757d;
    margin-bottom: 0.75rem;
}


.entry-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.entry-date {
    color: #777;
    font-size: 0.85rem;
}

.entry-meta-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 4px;
    gap: 8px;
}

.entry-reise {
    font-size: 0.9rem;
    color: #444;
    /* Platz begrenzen */
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    /* nimmt verfügbaren Platz */
    flex: 1;
}

.entry-notes {
    max-height: 6.5em; /* ca. 4–5 Zeilen */
    overflow-y: auto; /* Scrollbalken */
    padding-right: 6px; /* Platz für Scrollbar */
}

.entry-notes::-webkit-scrollbar {
    width: 6px;
}

.entry-notes::-webkit-scrollbar-thumb {
    background-color: rgba(0,0,0,0.2);
    border-radius: 4px;
}

.entry-notes::-webkit-scrollbar-track {
    background: transparent;
}


/* Karte */
.entry-map img {
    width: 100%;
    border-radius: 8px;
    border: 1px solid #ddd;
}

.mini-map {
    height: 180px;
    border-radius: 8px;
    overflow: hidden;
    cursor: zoom-in;
    border: 1px solid #ddd;
    touch-action: none;
}

.no-map {
    height: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #999;
    border: 1px dashed #ccc;
    border-radius: 8px;
}

/* Lösch-Button */
.entry-delete-btn {
    border: none;
    background: transparent;
    font-size: 20px;
    cursor: pointer;
    color: #666;
    /* verhindert Schrumpfen */
    flex-shrink: 0;
}

    .entry-delete-btn:hover {
        color: #c00;
    }

/* Wenn von der Editseite zurückgekommen wird  */
.entry-highlight {
    outline: 2px solid #10a37f;
    border-radius: 8px;
    transition: outline 0.3s ease;
}

/* Responsive */
@media (max-width: 900px) {
    .entry-row {
        grid-template-columns: 1fr;
    }
}
