/* ========================================
   INPUTFÄLT
======================================== */

input {
    padding: 10px 12px;

    border: 2px solid #444;
    border-radius: 4px;

    background: #ffffff;

    font-size: 15px;

    outline: none;

    transition:
        border-color 0.15s ease,
        box-shadow 0.15s ease;
}


input:focus {
    border-color: #777;

    box-shadow:
        0 0 0 2px rgba(0, 0, 0, 0.12);
}


/* ========================================
   DROPDOWN
======================================== */

select {
    padding: 9px 12px;

    border: 2px solid #444;
    border-radius: 4px;

    background: #ffffff;

    font-size: 15px;

    cursor: pointer;

    outline: none;
}


select:focus {
    border-color: #777;
}


/* ========================================
   ALLA KNAPPAR
======================================== */

button {
    padding: 10px 18px;

    border: 2px solid #222;
    border-radius: 3px;

    background: #555;

    color: white;

    font-size: 14px;
    font-weight: bold;

    cursor: pointer;

    box-shadow:
        inset 0 2px 0 rgba(255, 255, 255, 0.25),
        0 3px 0 #222;

    transition:
        transform 0.08s ease,
        background 0.15s ease;
}


/* ========================================
   HOVER
======================================== */

button:hover {
    background: #666;
}


/* ========================================
   NÄR KNAPP TRYCKS
======================================== */

button:active {
    transform: translateY(2px);

    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.2),
        0 1px 0 #222;
}


/* ========================================
   KART-KONTROLLPANEL
======================================== */

.map-controls-panel {
    width: calc(100% - 40px);

    margin: 0 auto 14px auto;
    padding: 16px;

    box-sizing: border-box;

    background: #d8d8d8;

    border: 3px solid #333;
    border-radius: 5px;

    box-shadow:
        inset 0 2px 0 rgba(255, 255, 255, 0.45),
        0 3px 0 #222;
}


/* ========================================
   SEED-RAD
======================================== */

.seed-row {
    display: flex;
    align-items: center;

    gap: 10px;
}


.seed-row label {
    font-weight: bold;

    white-space: nowrap;
}


.seed-row input {
    width: 280px;
}


#load-seed-button {
    white-space: nowrap;
}


/* ========================================
   PLATS-KONTROLLER
======================================== */

.place-controls {
    display: flex !important;

    align-items: flex-end;

    gap: 12px;

    margin-top: 16px;

    position: static !important;

    width: auto !important;
    max-width: none !important;

    padding: 0 !important;

    background: transparent !important;

    border: none !important;

    box-shadow: none !important;

    z-index: auto !important;
}


/* ========================================
   KONTROLL-GRUPP
======================================== */

.place-control-group {
    display: flex;

    flex-direction: column;

    gap: 5px;
}


.place-control-group label {
    margin: 0;

    font-size: 14px;
    font-weight: bold;
}


/* ========================================
   KATEGORI
======================================== */

.place-control-group select {
    min-width: 180px;
}


/* ========================================
   KOORDINATER
======================================== */

.coordinate-group input {
    width: 105px;

    box-sizing: border-box;
}


/* ========================================
   SPARA
======================================== */

.place-save-group {
    display: flex;

    align-items: flex-end;
}


.place-save-group button {
    min-width: 100px;

    background: #4f6f45;
}


.place-save-group button:hover {
    background: #5d8052;
}


/* ========================================
   MINA PLATSER
======================================== */

.saved-places-row {
    margin-top: 14px;
}


/* ========================================
   MINDRE SKÄRMAR
======================================== */

@media (max-width: 950px) {

    .place-controls {
        flex-wrap: wrap;
    }
}


@media (max-width: 700px) {

    .seed-row {
        flex-wrap: wrap;
    }


    .seed-row input {
        width: 100%;
    }


    .place-controls {
        align-items: stretch;

        flex-direction: column;
    }


    .place-control-group select,
    .coordinate-group input {
        width: 100%;
    }
}