/* ========================================
   MINA PLATSER - OVERLAY
======================================== */

.place-list-overlay {
    display: none;

    position: fixed;

    top: 0;
    left: 0;

    width: 100%;
    height: 100%;

    z-index: 3000;

    background: rgba(0, 0, 0, 0.55);

    align-items: center;
    justify-content: center;

    padding: 20px;

    box-sizing: border-box;
}


/* ========================================
   MINA PLATSER - MODAL
======================================== */

.place-list-panel {
    display: block;

    width: 460px;
    max-width: 100%;

    max-height: 80vh;

    padding: 20px;

    box-sizing: border-box;

    background: #d8d8d8;

    border: 3px solid #333;
    border-radius: 5px;

    box-shadow:
        inset 0 2px 0 rgba(255, 255, 255, 0.5),
        0 4px 0 #222,
        0 12px 28px rgba(0, 0, 0, 0.45);
}


/* ========================================
   RUBRIK
======================================== */

.place-list-panel h2 {
    margin: 0 0 15px 0;

    text-align: center;

    font-size: 22px;
    letter-spacing: 1px;

    color: #222;
}


/* ========================================
   LISTAN
======================================== */

#place-list {
    margin-bottom: 15px;

    max-height: 55vh;

    overflow-y: auto;

    padding-right: 4px;
}


/* ========================================
   EN SPARAD PLATS
======================================== */

.place-list-item {
    padding: 10px;

    margin-bottom: 10px;

    background: #eeeeee;

    border: 2px solid #555;
    border-radius: 3px;

    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.55);
}


/* ========================================
   IKON + INFORMATION
======================================== */

.place-list-main {
    display: flex;

    align-items: center;

    gap: 12px;
}


/* ========================================
   IKON
======================================== */

.place-list-icon {
    width: 42px !important;
    height: 42px !important;

    min-width: 42px;
    max-width: 42px;

    min-height: 42px;
    max-height: 42px;

    object-fit: contain;

    image-rendering: pixelated;
}


/* ========================================
   INFORMATION
======================================== */

.place-list-info {
    flex: 1;
}


.place-list-info strong {
    display: block;

    margin-bottom: 4px;

    font-size: 16px;
}


/* ========================================
   KNAPPAR
======================================== */

.place-list-buttons {
    display: flex;

    gap: 8px;

    margin-top: 10px;
}


.place-list-buttons button {
    flex: 1;
}


/* ========================================
   VISA
======================================== */

.show-place-button {
    background: #555;
}


.show-place-button:hover {
    background: #666;
}


/* ========================================
   REDIGERA
======================================== */

.edit-list-place-button {
    background: #5d6848;
}


.edit-list-place-button:hover {
    background: #6d7954;
}


/* ========================================
   TA BORT
======================================== */

.delete-list-place-button {
    background: #7a3f3f;

    border-color: #3a1f1f;
}


.delete-list-place-button:hover {
    background: #934d4d;
}


/* ========================================
   STÄNG
======================================== */

#close-place-list-button {
    width: 100%;

    margin-top: 4px;
}


/* ========================================
   MINDRE SKÄRMAR
======================================== */

@media (max-width: 600px) {

    .place-list-overlay {
        padding: 12px;
    }


    .place-list-panel {
        width: 100%;

        max-height: 90vh;

        padding: 15px;
    }


    #place-list {
        max-height: 65vh;
    }


    .place-list-buttons {
        flex-direction: column;
    }
}