/* Locations Map Component Styles */
.map-wrapper {
    position: relative;
    aspect-ratio: 390 / 900;
    width: 100%;
    overflow: hidden;
}
.map-wrapper .inner-wrapper {
    position: relative;
    width: 100%;
    height: auto;
}
#map {
    position: relative;
    aspect-ratio: 390 / 400;
    width: 100%;
    height: auto;
    border: none;
    outline: none;
    transition: width 0.3s ease-in-out;
}
#map.active {
    width: 50%;
}
.map-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.6) 0%, rgba(0, 0, 0, 0) 20%);
    pointer-events: none;
}
@media(min-width: 768px) {
    .map-wrapper {
        aspect-ratio: 768 / 1000;
    }
    #map {
        aspect-ratio: 768 / 450;
    }
}
@media(min-width: 1200px) {
    .map-wrapper {
        aspect-ratio: 1800 / 920;
    }
    .map-wrapper .inner-wrapper {
        height: 100%;
    }
    #map {
        aspect-ratio: auto;
        height: 100%;
    }   
}
/* Map Header Styles */
.map-header {
    position: absolute;
    top: 0;
    right: 0;
    display: flex;
    justify-content: space-between;
    padding: 25px 40px 40px;
}
.btn-map-toggle {
    display: flex;
    align-items: center;
    gap: 15px;
    max-width: 100%;
    padding: 0;
    text-align: left;
    white-space: wrap;
    color: var(--color-blue-40);
    background: transparent;
    border: none;
    outline: none;
    box-shadow: none;
    transition: color 0.3s ease-in-out;
}
.btn-map-toggle:hover, .btn-map-toggle.active {
    color: var(--color-blue);
}
@media(min-width: 1200px) {
    .btn-map-toggle {
        color: var(--color-white-50);
    }
    .btn-map-toggle:hover, .btn-map-toggle.active {
        color: var(--color-white);
    }
}
.map-header.active .btn-map-toggle, .map-header.active .btn-map-toggle:hover {
    color: var(--color-blue);
}
.btn-map-toggle .btn-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 45px;
    height: 45px;
    background: var(--color-white-40);
    border-radius: 50%;
    transition: background 0.3s ease-in-out;
}
.btn-map-toggle.ship .btn-toggle {
    background: var(--color-orange-40);
}
.btn-map-toggle .btn-toggle::before {
    content: '';
    width: 5px;
    height: 5px;
    display: inline-block;
    background: var(--color-orange);
    transition: background 0.3s ease-in-out;
}
.btn-map-toggle.ship .btn-toggle::before {
    background: var(--color-white);
}
.btn-map-toggle.ship.active .btn-toggle {
    background: var(--color-orange);
}
.btn-map-toggle.ship.active .btn-toggle::before {
    background: var(--color-white);
}
.btn-map-toggle.crew.active .btn-toggle {
    background: var(--color-white);
}
.btn-map-toggle.crew.active .btn-toggle::before {
    background: var(--color-orange);
}
.list-toggles {
    display: flex;
    align-items: center;
    gap: 5px;
}
.btn-list-toggle {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    background: var(--color-orange-40);
    border-radius: 5px;
    padding: 0;
    border: none;
    outline: none;
    box-shadow: none;
    transition: background 0.3s ease-in-out;
}
.btn-list-toggle.active, .btn-list-toggle:hover {
    background: var(--color-orange);
}
.btn-list-toggle.map img {
    width: auto;
    height: 24px;
}
.btn-list-toggle.list img {
    width: auto;
    height: 16px;
}
/* Location List Styles */
.map-offcanvas {
    position: relative;
    aspect-ratio: 390 / 500;
    height: auto;
    background: var(--color-llblue);
    padding: 30px 10px 30px 20px;
}
.map-offcanvas.active {
    transform: translateX(0);
}
.location-list {
    position: relative;
    display: flex;
    flex-wrap: wrap;
}
.location-list .location-item {
    position: relative;
    width: 100%;
    padding: 20px;
    display: flex;
    flex-wrap: wrap;
    background: var(--color-white-40);
    border-radius: 8px;
    margin-bottom: 2px;
    cursor: pointer;
    transition: background 0.3s ease-in-out;
}
.location-list .location-item:hover, .location-list .location-item.active {
    background: var(--color-white);
}
.location-contact {
    display: flex;
    flex-direction: column;
}
.map-info-window a {
    user-select: none;
    -webkit-user-select: none;
    box-shadow: none!important;
    outline: none!important;
    background: transparent;
}
@media(min-width: 768px) {
    .map-offcanvas {
        padding: 40px;
        aspect-ratio: 768 / 550;
    }
}
@media(min-width: 1200px) {
    .map-offcanvas {
        position: absolute;
        aspect-ratio: auto;
        bottom: 0;
        right: 0;
        height: 100%;
        padding: 125px 40px 40px;
        transform: translateX(100%);
        will-change: transform;
        transition: transform 0.3s ease-in-out;
    }
}
/* Pin Styles */
.gm-style .gm-style-iw-c {
    user-select: none!important;
    padding: 20px !important;
    transform: translate3d(-12%, 8%, 0) !important;
}
.gm-style-iw-ch {
    display: none !important;
}
.gm-style-iw-chr {
    justify-content: end !important;
    position: absolute;
    top: 5px;
    right: 5px;
    z-index: 1;
}
.gm-ui-hover-effect {
    opacity: 1 !important;
    width: 40px !important;
    height: 40px !important;
    background: no-repeat center / 12px url('data:image/svg+xml;utf8,<svg width="12" height="12" viewBox="0 0 12 12" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M1 1L11 11" stroke="%23FB5F07" stroke-width="2" stroke-miterlimit="10"/><path d="M1 11L11 1" stroke="%23FB5F07" stroke-width="2" stroke-miterlimit="10"/></svg>') !important;
}
.gm-style .gm-style-iw-tc, .gm-ui-hover-effect span {
    display: none !important;
}