﻿﻿.map-page-title {
    text-align: center;
    color: #007c00;
}

.station-subtitle {
    text-align: center !important;
    margin-top: 0 !important;
}

.header {
    position: relative;
}

    .header .go-back-link {
        position: absolute;
        top: calc(50% - 10px);
        left: 1rem;
        font-size: 1.25rem;
        text-transform: uppercase;
        text-decoration: none;
        color: #007c00;
        font-weight: 700;
        display: flex;
        align-items: center;
        line-height: 1rem;
    }

        .header .go-back-link img {
            width: 1.25rem;
        }

.map-filters-container {
    position: absolute;
    background: #ffffffdd;
    padding: 0.5rem 1rem;
    width: 155px;
    height: 185px;
    /*margin-top: 2rem;
    margin-bottom: 2rem;*/
}

    .map-filters-container .station-filter {
        display: flex;
        justify-content: center;
        align-items: center;
        cursor: pointer;
        width: fit-content;
        margin-left: 0rem;
        margin-right: 2rem;
        margin-bottom: 0.35rem;
        opacity: 0.4;
        -webkit-transition: opacity 0.5s ease-in-out;
        transition: opacity 0.5s ease-in-out;
    }

        .map-filters-container .station-filter:first-child {
            margin-top: 0.35rem;
        }

        .map-filters-container .station-filter h4 {
            margin: 0;
            margin-left: 0.5rem;
        }

        .map-filters-container .station-filter.active {
            opacity: 1;
        }

/*
 * MAP SPECIFICS
 */
.m-mapea-container .m-popup {
    border-radius: 1rem;
    box-shadow: 2px 2px 8px 2px rgb(0 0 0 / 53%);
}

    .m-mapea-container .m-popup .station-popup {
        min-width: 200px;
        width: max-content;
    }

        .m-mapea-container .m-popup .station-popup .station-name {
            margin: 0;
            color: #40723c;
            line-height: 1.5rem;
        }

        .m-mapea-container .m-popup .station-popup .station-campbell {
            margin: 0;
            font-weight: 900;
        }

        .m-mapea-container .m-popup .station-popup .station-location,
        .m-mapea-container .m-popup .station-popup .station-coordinates {
            padding: 0;
            font-size: 1.15rem;
            font-family: 'Poppins';
            font-weight: 400;
        }

        .m-mapea-container .m-popup .station-popup .station-details-link {
            font-family: 'Poppins';
            font-size: 1rem;
            font-weight: 600;
        }

/*
 * DETAILS PAGE
 */
.station-details-container {
    width: 100%;
    display: flex;
    background-color: #f8f5e6;
    padding: 2rem 3rem;
    justify-content: space-around;
    margin-top: 2rem;
    margin-bottom: 5rem;
}

    .station-details-container table {
        background-color: transparent !important;
    }

        .station-details-container table tr {
            background-color: transparent !important;
        }

        .station-details-container table td h3 {
            margin-bottom: 2rem;
            color: #40723c;
            line-height: 1.5rem;
        }

        .station-details-container table td {
            font-size: 1.2rem !important;
            font-weight: 400;
            color: black;
            border: none !important;
        }

            .station-details-container table td.station-data-title {
                font-weight: 900;
            }


        .station-details-container table tr.data-row td {
            border-bottom: solid 1px #40723c !important;
            padding-top: 1rem !important;
            padding-bottom: 1rem !important;
        }

        .station-details-container table tr.data-row:last-child td {
            border-bottom: none !important;
        }

.gradient-button {
    padding: 0.65rem 2rem;
    background: linear-gradient(to right, #40723c, #c7a200);
    color: white !important;
    opacity: 1 !important;
    font-size: 1rem;
    font-weight: 400;
    border-radius: 2rem;
    margin-left: 3rem;
    text-decoration: none !important;
    -webkit-transition: background 0.25s ease-in-out !important;
    transition: background 0.25s ease-in-out !important;
}

    .gradient-button:hover {
        background: black;
    }


/*
 * STATION DATA
 */
.station-data-container {
    max-width: 90vw;
    margin: 2rem auto 5rem auto;
}

    .station-data-container .station-data {
        overflow-x: auto;
    }

        .station-data-container .station-data table {
            width: 100%;
        }

            .station-data-container .station-data table thead tr {
                height: 3rem;
            }

            .station-data-container .station-data table th {
                background-color: #ccc;
                border: inset;
                text-align: center !important;
                min-width: 100px;
                vertical-align: middle !important;
                font-size: 1rem;
            }

            .station-data-container .station-data table td {
                text-align: center !important;
                min-width: 100px;
                vertical-align: middle !important;
                font-size: 1.1rem;
                height: 3rem;
            }

                .station-data-container .station-data table td:first-child {
                    font-weight: 700;
                    min-width: 120px !important
                }

                    .station-data-container .station-data table td:first-child a {
                        color: #40723c;
                        text-decoration: none;
                    }

                .station-data-container .station-data table th:last-child,
                .station-data-container .station-data table td:last-child {
                    /*min-width: 150px !important;*/
                    min-width: fit-content;
                }

            .station-data-container .station-data table tr:hover {
                background-color: #eee !important;
            }

            .station-data-container .station-data table .gradient-button {
                margin-left: 0px !important;
            }

        .station-data-container .station-data .no-data {
            text-align: center;
            font-size: large;
        }

    .station-data-container .loading img {
        display: block;
        margin: auto;
    }

.filter-toggler {
    cursor: pointer;
}

.filters-container {
    background-color: #f8f5e6;
    padding: 1rem;
    display: flex;
    justify-content: space-between;
}

    .filters-container input {
        padding: 1rem 1.5rem;
        border-radius: 2rem;
        font-size: 1rem;
    }

    .filters-container .fields-div-container {
        flex-grow: 1;
    }

    .filters-container > div {
        margin-left: 0.5rem;
    }

.date-container,
.fields-container {
    padding: 1rem 1.5rem;
    background-color: white;
    width: fit-content;
    border: solid #ccc 1px;
    border-radius: 2rem;
    min-width: 270px;
}

.fields-container {
    width: -webkit-fill-available;
}

    .date-container .date-container-header,
    .fields-container .fields-container-header {
        display: flex;
        width: 100%;
        justify-content: flex-start;
        align-items: center;
    }

        .date-container .date-container-header h5,
        .fields-container .fields-container-header h5 {
            margin: 0 0.5rem;
        }

        .date-container .date-container-header img:last-child,
        .fields-container .fields-container-header img:last-child {
            margin: auto 0 auto auto;
        }

#fieldsDiv > div {
    display: grid;
    max-height: 500px;
    overflow: auto;
}

#fieldsDiv .check-group {
    margin-top: 1rem;
}

#fieldsDiv .form-check {
    padding-left: 2.5rem !important;
}

    #fieldsDiv .form-check .form-check-input {
        padding: initial !important;
        width: 20px;
        height: 20px;
    }

#fieldsDiv .field-graph-options {
    margin-left: 0.5rem;
    margin-right: 0.5rem;
    font-size: small;
    display: inline;
    text-decoration: none;
    font-weight: 300;
}

#fieldsDiv span.field-graph-options {
    margin-left: 0;
    margin-right: 0;
}


#fieldsDiv a.field-graph-options:first-child {
    margin-left: 1rem;
}

#fieldsDiv a.field-graph-options.selected {
    font-weight: 700;
}

table tr .goto-day-button img {
    opacity: 0.4;
    -webkit-transition: opacity 0.25s ease-in-out;
    transition: opacity 0.25s ease-in-out;
}

table tr:hover .goto-day-button img {
    opacity: 1;
}

@media (max-width: 768px) {
    .map-page-title {
        font-size: 1.2rem;
        line-height: 1;
    }

    .station-subtitle {
        font-size: 1.1rem;
    }

    .header .go-back-link {
        display: none;
    }

    .filters-container {
        flex-wrap: wrap;
        margin-left: -12px;
    }

        .filters-container .date-container,
        .filters-container .fields-container {
            margin-bottom: 0.5rem;
            padding: 0.75rem 1.5rem;
        }

    .station-details-container {
        padding: 0.5rem;
    }

        .station-details-container .station-data {
            margin-bottom: 2rem;
        }
}


/*
    TO FIT DEVELOPMENT IN PRESIDENCIA
*/
.clima-full-row {
    width: 100vw !important;
}

    .clima-full-row .row_col_wrap_12.col.span_12 {
        width: 98vw !important;
    }

.header .go-back-link img {
    width: 1.25rem !important;
}

.date-container, .fields-container {
    padding: 1rem 1.5rem;
    background-color: white;
    width: fit-content;
    border: solid #ccc 1px;
    border-radius: 2rem;
    min-width: 345px;
}

.fields-container-header > img:first-child {
    height: 24px !important;
    aspect-ratio: 1;
}

.fields-container {
    width: -webkit-fill-available;
}
