/* Google Map Canvas */
#map {
    width: 100%;
    height: 100%;
}

/* Drawer */
.drawer {
    position: absolute;
    top: 0 !important;
    right: 0 !important;
    margin: 0 !important;
    height: 100%;
    width: 50%;
    background: #ffffff;
    font-family: var(--font-secondary);
    transform: translateX(100%);
    transition: transform 0.35s ease;
    z-index: 9999999;
    display: flex;
    flex-direction: column;
    pointer-events: auto;
}

@media (min-width: 1055px) and (max-width: 1150px) {
    .drawer {
        width: 60%;
    }
}

@media (min-width: 831px) and (max-width: 900px) {
    .drawer {
        width: 60%;
    }
}

/* Drawer open state */
.drawer.open {
    transform: translateX(0);
    right: 0;
}

.drawer-body {
    position: relative;
    width: 100%;
    right: 0;
    opacity: 1;
    pointer-events: auto;
    flex: 1;
    overflow-y: auto;
    padding: 3rem 2.4rem;
}

/* Responsive adjustments */
@media (max-width: 830px) {
    .drawer {
        width: 100%;
    }

    .drawer-body {
        padding: 2rem 1.6rem;
    }
}

/* Category Tooltip Colors & Matching Triangle Tails */
.tooltip-public-road {
    background-color: #5673eb;
}

.tooltip-public-road::after {
    border-top-color: #5673eb;
}

.tooltip-shuttle {
    background-color: #9b59b6;
}

.tooltip-shuttle::after {
    border-top-color: #9b59b6;
}

.tooltip-corridor {
    background-color: #f1769f;
}

.tooltip-corridor::after {
    border-top-color: #f1769f;
}

.tooltip-cross-border {
    background-color: #fa9e5e;
}

.tooltip-cross-border::after {
    border-top-color: #fa9e5e;
}

.tooltip-test-track {
    background-color: #fbc260;
}

.tooltip-test-track::after {
    border-top-color: #fbc260;
}

.tooltip-simulator {
    background-color: #00d9a6;
}

.tooltip-simulator::after {
    border-top-color: #00d9a6;
}

/* Test site info drawer */
.test-site-info__back-button {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 1.4rem;
    cursor: pointer;
    margin-bottom: 2rem;
}

.test-site-info__back-button:hover {
    opacity: 0.8;
    transform: translateX(0.3rem);
    transition: all 0.3s ease;
}

.test-site-info__back-button img {
    width: 1.8rem;
}

.test-site-info__back-button p {
    text-transform: uppercase;
    font-weight: 700;
    font-size: 1.2rem;
    line-height: 1;
    color: var(--color-accent);
}

.test-site-info__title {
    font-size: 2.8rem;
    font-weight: 700;
    line-height: 1;
    color: var(--color-primary);
    margin-bottom: 2rem;
}

.test-site-info__content {
    font-size: 1.6rem;
    font-weight: 400;
    margin-bottom: 2rem;
    color: var(--text-color-muted);
}

.test-site-info__subtitle {
    font-size: 2.1rem;
    font-weight: 700;
    line-height: 1;
    color: var(--color-primary);
    margin-bottom: 2rem;
}

ul.test-site-info__projects {
    margin-bottom: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1.4rem;
}

.test-site-info__projects__item {
    background-color: #f6f6f6;
    padding: 1.2rem 2rem;
    border-radius: 6px;
    list-style: none;
}

.test-site-info__projects__item__header {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: clamp(1rem, 2vw, 2rem);
}

@media (max-width: 500px) {
    .drawer-body {
        padding: 1.6rem 0.8rem;
    }

    .test-site-info__projects__item {
        padding: 0.8rem 1.2rem;
        overflow-x: auto;
    }
}

.test-site-info__projects__item__logo {
    min-width: 7rem;
}

.test-site-info__projects__item__logo img {
    max-height: 3.5rem;
    max-width: 7rem;
    height: auto;
    width: auto;
    mix-blend-mode: multiply;
}

.test-site-info__projects__item__header h4,
.test-site-info__projects__item__footer h4 {
    font-size: 1rem;
    font-weight: 700;
    line-height: 1;
    color: #bdbdbd;
    letter-spacing: 0.5px;
    margin-bottom: 0.6rem;
    text-transform: uppercase;
}

.test-site-info__projects__item__header p,
.test-site-info__projects__item__footer p {
    font-size: 1.4rem;
    font-weight: 600;
    line-height: 1;
    color: var(--color-primary);
}

.test-site-info__projects__item__info,
.test-site-info__projects__item__dates {
    align-self: flex-start;
}

.test-site-info__projects__item__arrow {
    margin-left: auto;
    display: flex;
    align-items: center;
}

.test-site-info__projects__item__arrow__button {
    border: none;
    background: var(--color-accent);
    cursor: pointer;
    width: 2.4rem;
    height: 2.4rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-color-white);
    transition: all 0.3s ease;
}


.test-site-info__projects__item.active .test-site-info__projects__item__arrow__button {
    transform: rotate(180deg);
}

.test-site-info__projects__item__footer__container {
    display: grid;
    grid-template-rows: 0fr;
    transition: grid-template-rows 0.3s ease;
}

.test-site-info__projects__item.active .test-site-info__projects__item__footer__container {
    grid-template-rows: 1fr;
}

.test-site-info__projects__item__footer {
    overflow: hidden;
    display: flex;
    flex-direction: column;
    gap: 2rem;
    padding-top: 0;
    transition: padding 0.3s ease;
}

.test-site-info__projects__item.active .test-site-info__projects__item__footer {
    padding-top: 2rem;
}

.test-site-info__projects__item__footer__details {
    display: flex;
    flex-direction: row;
    align-items: top;
    gap: 2rem;
}

.test-site-info__projects__item__footer__project-link {
    padding: 1.2rem 2.4rem;
    border-radius: 10px;
    background-color: var(--color-accent);
    color: var(--text-color-white);
    border: 2px solid transparent;
    transition: all 0.3s ease;
    text-decoration: none;
    text-align: center;
    font-size: 1.4rem;
    font-weight: 600;
    line-height: 1;
}

.test-site-info__projects__item__footer__project-link:hover {
    background-color: var(--color-primary);
    opacity: 1;
}


/* Test site specific filter state */
.project-filter--disabled {
    opacity: 0.5;
    pointer-events: none;
    filter: grayscale(1);
}