
* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: Arial, sans-serif;
    background-color: #f4f5f7;
    color: #222;
}

header {
    padding: 20px;
    background-color: #263b35;
    color: white;
}

header h1 {
    margin: 0 0 8px;
}

header p {
    margin: 0;
}

main {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 20px;
    padding: 20px;
}

#mapSection,
#stallSection {
    background-color: white;
    padding: 16px;
    border-radius: 10px;
}

#map {
    width: 100%;
    height: 600px;
    border-radius: 8px;
}


/* Kartan selite */
#mapLegend {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
    padding: 12px 4px 0;
}

.legendItem {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
}

.legendMarker {
    width: 13px;
    height: 13px;
    background-color: #3388ff;
    border: 2px solid white;
    border-radius: 50%;
    box-shadow: 0 0 2px #333;
}

.legendParking {
    width: 18px;
    height: 13px;
    background-color: rgba(57, 139, 209, 0.35);
    border: 2px solid #2673b8;
    border-radius: 2px;
}


.koju {
    padding: 12px;
    margin-bottom: 10px;
    border: 1px solid #ddd;
    border-radius: 8px;
    cursor: pointer;
}

.koju h3 {
    margin: 0 0 5px;
}

.koju p {
    margin: 0;
}

.koju-highlight {
    background-color: #e1f1e8;
    border-color: #36845b;
}

/* Mobiililaitteet */

/* Mobiililaitteet */
@media (max-width: 700px) {

    header {
        padding: 16px;
    }

    header h1 {
        font-size: 23px;
    }

    header p {
        font-size: 14px;
        line-height: 1.5;
    }

    main {
        display: flex;
        flex-direction: column;
        gap: 12px;
        padding: 10px;
    }

    #mapSection,
    #stallSection {
        padding: 12px;
        border-radius: 8px;
    }

    #map {
        height: 55vh;
        min-height: 300px;
        max-height: 500px;
    }

    #mapLegend {
        gap: 12px;
    }

    .legendItem {
        font-size: 13px;
    }

    .koju {
        padding: 15px;
        margin-bottom: 8px;
    }

    .koju h3 {
        font-size: 17px;
    }

    .koju p {
        font-size: 14px;
    }
}
