body,
html {
    font-size: 16px;
    font-weight: 400;
}

#map-container {
    position: relative;
}

#map {
    height: 50vh;
    width: 100%;
}

.tab {
    display: none;
}

.tab.active {
    display: block;
}

div#header a.active::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 2px;
    background-color: #79CDD0;
    transform: scaleX(1);
}

div#header {
    display: flex;
    justify-content: center;
    text-decoration: none;
    color: #939393;
    border-bottom: 1px solid #ccc;
    padding: 0;
}


div#header a {
    width: 100%;
    padding: 18px 12px;
    display: flex;
    justify-content: space-around;
    position: relative;
    color: #939393;
    cursor: pointer;
}

div#header a:hover svg,
a.nav-link.active svg {
    color: #79CDD0;
    fill: #79CDD0;
}

div#header a:hover {
    color: #79CDD0;
}

#header nav a::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 2px;
    background-color: #79CDD0;
    transition: width 0.3s ease;
    transform-origin: bottom right;
    transform: translateY(1px) scaleX(0);
}


#header nav a:hover::after {
    transform-origin: bottom left;
    transform: translateY(1px) scaleX(1);
}

.buses {
    display: flex;
    align-items: center;
}

.buses .bus_id {
    min-width: 40px;
    min-height: 40px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #79CDD0;
    color: #fff;
    margin: 0 10px;
    font-size: 1rem;
    line-height: 40px;
}

details>summary {
    list-style: none;
}

summary {
    display: flex;
    justify-content: space-between;
    padding: 14px 0;
    border-bottom: 1px solid #f3f3f3;
}

summary::-webkit-details-marker {
    display: none;
}

summary .icon_action {
    display: flex;
    align-items: center;
    cursor: pointer;
}

svg.feather.feather-heart {
    cursor: pointer;
}

details>p {
    margin: 0;
    padding: 20px;
    background: #f3f3f3;
}

summary div a {
    margin-right: 8px;
    text-decoration: none;
}

#header {
    bottom: 0;
    width: 100%;
    background-color: #fff;
    padding: 10px;
    box-shadow: 0px -5px 5px rgba(0, 0, 0, 0.1);
    display: flex;
    justify-content: space-between;
}

#header nav {
    display: flex;
    width: 100%;
    justify-content: space-between;
}

/* eta */
.list_eta {
    && div {
        width: 33.3333%;
        height: 100%;
        align-items: center;
        justify-content: center;
        text-align: center;
        border-right: 1px solid #ddd;
    }

    && :last-child {
        border-right: none !important;
    }
}


/* nav icon */
div#header a.nav-link:hover svg.feather.feather-search {
    fill: none;
}

div#header a.nav-link.active svg.feather.feather-search {
    fill: none;
}

input#searchInput {
    width: 100%;
    border-radius: 5px;
    border: 1px solid #ccc;
    margin-top: 10px;
    height: 40px;
    padding: 0 20px;
    outline: none;
}

.no-results-message,
.error-message {
    text-align: center;
    padding: 20px;
}

button {
    border: none;
    background: none;
}

button:focus {
    outline: none;
}

/* button address */
button.address {
    cursor: pointer;
}

.address.open svg {
    fill: #79CDD0;
}

.gm-style .gm-style-iw-c {
    padding: 0;
}

/* update checkbox hide map */
.hide-map {
    position: absolute;
    top: 0;
    height: 100%;
    width: 20px;
    left: 1%;
}

.label_hide-map {
    display: flex;
    align-items: center;
    height: 100%;
    top: 0;
    font-size: 16px;
    margin: 0;
}

.toggle-checkbox {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

.toggle-slot {
    font-size: 10px;
    position: relative;
    height: 3.5em;
    width: 7em;
    border: 0.5px solid #79CDD0;
    border-radius: 10em;
    background-color: white;
    transition: background-color 250ms;
    transform: scale(0.6);
}

.toggle-checkbox:checked~.toggle-slot {
    background-color: #79CDD0;
}

.toggle-button {
    transform: translate(0.3em, 0.25em);
    position: absolute;
    height: 3em;
    width: 3em;
    border-radius: 50%;
    background-color: #B8F2F2;
    box-shadow: inset 0px 0px 0px 0.75em #79CDD0;
    transition: background-color 250ms, border-color 250ms, transform 500ms cubic-bezier(.26, 2, .46, .71);
}

.toggle-checkbox:checked~.toggle-slot .toggle-button {
    background-color: #B8F2F2;
    box-shadow: inset 0px 0px 0px 0.75em white;
    transform: translate(3.65em, 0.25em);
}

.sun-icon {
    position: absolute;
    height: 6em;
    width: 6em;
    color: #79CDD0;
}

.sun-icon-wrapper {
    position: absolute;
    height: 6em;
    width: 6em;
    opacity: 1;
    transform: translate(2em, 2em) rotate(15deg);
    transform-origin: 50% 50%;
    transition: opacity 150ms, transform 500ms cubic-bezier(.26, 2, .46, .71);
}

.toggle-checkbox:checked~.toggle-slot .sun-icon-wrapper {
    opacity: 0;
    transform: translate(3em, 2em) rotate(0deg);
}

.moon-icon {
    position: absolute;
    height: 6em;
    width: 6em;
    color: white;
}

.moon-icon-wrapper {
    position: absolute;
    height: 6em;
    width: 6em;
    opacity: 0;
    transform: translate(11em, 2em) rotate(0deg);
    transform-origin: 50% 50%;
    transition: opacity 150ms, transform 500ms cubic-bezier(.26, 2.5, .46, .71);
}

.toggle-checkbox:checked~.toggle-slot .moon-icon-wrapper {
    opacity: 1;
    transform: translate(2em, 2em) rotate(-15deg);
}

.legend {
    gap: 20px;
}

.legend-item {
    display: flex;
    align-items: center;
}

.gm-style-iw-chr {
    display: none;
}

.gm-style-iw-d {
    overflow: unset !important;
    padding: 20px 16px 20px;
}

.list_eta div .occupancy {
    width: 20px;
    height: 20px;
}

.modal-backdrop.show {
    opacity: 0;
}

.blur-effect {
    transition: filter 0.3s ease-in-out;
    filter: blur(1px) !important;
}

.backgroundModal {
    background-color: rgba(255, 255, 255, 0.8);
    border-radius: 20px;
    padding: 16px;
}

.modal-header,
.routeName,
.modal-body,
.modal-footer {
    background-color: rgba(255, 255, 255, 0.8);
}

.modal-header {
    border-top-right-radius: 10px;
    border-top-right-radius: 10px;
    padding: 10px;
}

.modal-footer {
    border-bottom-right-radius: 10px;
    border-bottom-right-radius: 10px;
}

.modal-body__content {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px
}

.imgModal:hover {
    scale: 1.065;
    transition: scale 0.3s ease-in;
}

.imgModal {
    scale: 1;
    transition: scale 0.35s ease-in;
    cursor: pointer;
}

.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.full-screen-img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    cursor: pointer;
}

.closeButton,
.closeButton2 {
    position: relative;
    display: inline-block;
    letter-spacing: 0.165rem;
    color: #fff;
    background-color: rgba(121, 205, 208, 0.85);
    border-radius: 5px;
    transform: translateX(0.625rem);
    font-size: 1rem;
    overflow: hidden;
    z-index: 0;
    transition: color 0.4s ease-out;
}

.closeButton:hover,
.closeButton2:hover {
    transition: color 0.4s ease-out;
    background-color: #79cdd0;
    color: #000;
}

@media (max-width: 576px) {
    .label_hide-map {
        position: unset;
        justify-content: center;
    }

    .legend {
        flex-wrap: wrap;
        justify-content: center;
    }

    .list_eta div .occupancy {
        width: 16px;
        height: 16px;
    }

    .modal-body__content {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 10px
    }
}