/* Common Parking Styles */
#parking-list {
    width: 100%;
    line-height: 1.4;
    display: table !important;
}

#parking-list .desktop-only {
    background-color: var(--primary);
    color: #fff;
    z-index: 999 !important;
}

#parking-list th {
    border-top: 0;
}

.parking-location,
.parking-routes {
    width: 30%;
}

#parking-list .parking-route {
    padding-bottom: 5px;
    display: inline-block;
}

.responsive-table td:first-child .parking-location-name {
    margin-bottom: 0;
}

/* Parking Filters */
#parking-data .dropdown-menu {
    z-index: 1021;
    transform: translate3d(5px, 35px, 0px) !important;
    padding-left: 0.5em;
    padding-right: 0.5em;
}

/* Bike Parking */
.agency img {
    max-width: 90px;
}

.bike-note {
    max-width: 200px;
    font-size: 0.9em;
}

/* Responsive tables */
@media screen and (max-width: 991px) {
    .responsive-table .desktop-only {
        display: none !important;
    }

    .responsive-table tr {
        display: grid;
        padding-bottom: 1em;
    }

    .responsive-table td {
        padding-top: 2.5em !important;
        position: relative;
        padding-left: 1.5em !important;
    }

    .responsive-table td:first-child {
        width: 100%;
        padding: 1em !important;
        text-align: center;
        background-color: #29856b;
        color: #fff;
        font-size: 1.1rem;
    }

    .responsive-table td:first-child .parking-location-name {
        margin-bottom: 0.25rem;
    }

    .responsive-table td:first-child .parking-location-link {
        font-size: 0.9rem;
        line-height: 1.1rem;
        font-weight: normal;
        margin-bottom: 0;
    }

    .responsive-table td:first-child .parking-location-link a {
        color: #f4f5f6;
    }

    .responsive-table td:before {
        content: attr(data-label);
        position: absolute;
        top: 1.25em;
        font-weight: bold;
        text-transform: uppercase;
        color: #666;
        font-size: 0.9em;
    }

    .responsive-table .parking-location {
        grid-column: 1 / 4;
        /* text-align: center; */
        font-weight: bold;
    }

    /* Bike Parking */
    .bike-parking tr {
        grid-template-columns: 1fr 1fr 2fr;
        grid-template-rows: auto auto;
    }

    .bike-parking .parking-types,
    .bike-parking .agency,
    .bike-parking .parking-routes {
        grid-row: 2 / 3;
    }

    .bike-parking .parking-types {
        grid-column: 1 / 2;
    }

    .bike-parking .agency {
        grid-column: 2 / 3;
        text-align: center;
    }

    .bike-parking .parking-routes {
        grid-column: 3 / 4;
        width: auto;
    }

    /* General Parking */
    .general-parking tr {
        grid-template-columns: 1fr 2fr 3fr;
        grid-template-rows: auto auto;
    }

    .general-parking .parking-routes {
        width: auto;
    }
}

@media screen and (max-width: 820px) {
    .bike-parking tr {
        grid-template-columns: 2fr 1fr 3fr;
    }

    .general-parking tr {
        grid-template-columns: 1fr 3fr;
        grid-template-rows: auto auto auto;
    }

    .general-parking .parking-spaces {
        grid-column: 1 / 2;
    }

    .general-parking .parking-routes {
        grid-column: 2 / 3;
    }

    .general-parking .parking-notes {
        grid-column: 1 / 3;
        grid-row: 3 / 4;
    }
}

@media screen and (max-width: 767px) {
    .bike-parking tr {
        grid-template-columns: 1fr 1fr;
        grid-template-rows: auto auto auto;
    }

    .bike-parking .parking-types {
        grid-column: 1 / 2;
    }

    .bike-parking .agency {
        grid-column: 2 / 3;
    }

    .bike-parking .parking-routes {
        grid-column: 1 / 4;
        grid-row: 3 / 4;
    }
}

@media screen and (max-width: 380px) {
    .bike-parking tr {
        grid-template-columns: 3fr 1fr;
        grid-template-rows: auto auto auto;
    }

    .responsive-table td {
        padding-left: 0.5em !important;
    }
}
