﻿:root {
    --poi-color: #FF9800;
    --train-color: #0288D1;
    --stranded-train-color: #F44336;
}

/*
 * Always set the map height explicitly to define the size of the div element
 * that contains the map.
 */
#map {
    height: 100%;
    width: 100%;
}

.material-symbols-outlined {
    font-variation-settings: 'FILL' 1, 'wght' 400, 'GRAD' 0, 'opsz' 24
}
/*
 * Property styles in unhighlighted state.
 */
.property {
    align-items: center;
    background-color: #FFFFFF;
    border-radius: 10%;
    color: #263238;
    display: flex;
    font-size: 14px;
    gap: 15px;
    height: auto;
    justify-content: center;
    padding: 4px;
    position: relative;
    position: relative;
    transition: all 0.3s ease-out;
    width: 60px;
}

    .property::after {
        border-left: 9px solid transparent;
        border-right: 9px solid transparent;
        border-top: 9px solid #FFFFFF;
        content: "";
        height: 0;
        left: 50%;
        position: absolute;
        top: 95%;
        transform: translate(-50%, 0);
        transition: all 0.3s ease-out;
        width: 0;
        z-index: 1;
    }

    .property .icon {
        align-items: center;
        display: flex;
        justify-content: center;
        color: #FFFFFF;
    }

        .property .icon svg {
            height: 20px;
            width: auto;
        }

    .property .details {
        display: none;
        flex-direction: column;
        flex: 1;
    }

    .property .subtitle {
        color: #FFFFFF;
    }

    .property .title {
        margin-bottom: 5px;
    }

    .property .item {
        color: #263238;
        font-size: 12px;
    }

    .property .features {
        align-items: flex-end;
        display: flex;
        flex-direction: row;
        gap: 10px;
    }

        .property .features > div {
            align-items: center;
            background: #F5F5F5;
            border-radius: 5px;
            border: 1px solid #ccc;
            display: flex;
            font-size: 10px;
            gap: 5px;
            padding: 5px;
        }

    /*
 * Property styles in highlighted state.
 */
    .property.highlight {
        background-color: #FFFFFF;
        border-radius: 8px;
        box-shadow: 10px 10px 5px rgba(0, 0, 0, 0.2);
        height: auto;
        padding: 8px 15px;
        width: auto;
    }

        .property.highlight::after {
            border-top: 9px solid #FFFFFF;
        }

        .property.highlight .details {
            display: flex;
        }

        .property.highlight .icon svg {
            width: 50px;
            height: 50px;
        }

        .property.highlight .subtitle {
            display: none;
        }


    /* Access Point Icon */ 
    .property.highlight:has(.access-point-marker-icon) .icon {
        color: var(--poi-color);
    }

    .property:not(.highlight):has(.access-point-marker-icon) {
        background-color: var(--poi-color);
    }

        .property:not(.highlight):has(.access-point-marker-icon)::after {
            border-top: 9px solid var(--poi-color);
        }

    /* Train Icon */
    .property.highlight:has(.train-marker-icon) .icon {
        color: var(--train-color);
    }

    .property:not(.highlight):has(.train-marker-icon) {
        background-color: var(--train-color);
    }

        .property:not(.highlight):has(.train-marker-icon)::after {
            border-top: 9px solid var(--train-color);
        }

    /* Stranded Train Icon */
    .property.highlight:has(.stranded-train-marker-icon) .icon {
        color: var(--stranded-train-color);
    }

    .property:not(.highlight):has(.stranded-train-marker-icon) {
        background-color: var(--stranded-train-color);
    }

        .property:not(.highlight):has(.stranded-train-marker-icon)::after {
            border-top: 9px solid var(--stranded-train-color);
        }



/* HTML marker styles */
.train-marker {
    background-color: #4285F4;
    border-radius: 8px;
    color: #FFFFFF;
    font-size: 12px;
    padding: 10px 15px;
    position: relative;
    transform: translate(0, -8px);
}

    .train-marker::after {
        content: "";
        position: absolute;
        left: 50%;
        top: 100%;
        transform: translate(-50%, 0);
        width: 0;
        height: 0;
        border-left: 8px solid transparent;
        border-right: 8px solid transparent;
        border-top: 8px solid #4285F4;
    }

.alerting-train-marker {
    background-color: #F44336;
    border-radius: 8px;
    color: #FFFFFF;
    font-size: 12px;
    padding: 10px 15px;
    position: relative;
    transform: translate(0, -8px);
}

    .alerting-train-marker::after {
        content: "";
        position: absolute;
        left: 50%;
        top: 100%;
        transform: translate(-50%, 0);
        width: 0;
        height: 0;
        border-left: 8px solid transparent;
        border-right: 8px solid transparent;
        border-top: 8px solid #F44336;
    }
