/* ============================================
QC Mission Map Styles
============================================ */

/* --------------------------------------------
Map Container
-------------------------------------------- */
.qc-map-container {
    position: relative;
}

/* Map Canvas */
#qc-map-canvas {
    display: none;
    width: 100%;
    min-height: 900px;
}

@media screen and (max-width: 500px) {
    #qc-map-canvas {
        height: 350px;
        min-height: 350px;
    }
}

/* --------------------------------------------
Map Disabled State
-------------------------------------------- */
#qc-map-disabled {
    display: none;
    text-align: center;
}

#qc-map-disabled h2 {
    text-transform: uppercase;
    font-family: inherit;
}

#qc-map-disabled p {
    font-weight: bold;
}

/* --------------------------------------------
Map Loader
-------------------------------------------- */
#qc-map-loader {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 200px;
}

#qc-map-loader svg {
    width: 48px;
    height: 48px;
    animation: qc-spin 3s linear infinite;
    transform-origin: center;
}

@keyframes qc-spin {
    100% {
        transform: rotate(360deg);
    }
}

/* --------------------------------------------
Map Legend
-------------------------------------------- */
.qc-map-container #qc-map-legend {
    display: none;
    position: absolute;
    bottom: 0;
    border: none;
    background-color: #fff;
    margin: 0px 0 15px 15px;
    box-shadow: 0 8px 24px rgba(149, 157, 165, 0.2);
    padding: 10px;
}

.qc-map-container #qc-map-legend > strong {
    display: block;
    font-size: 16px;
    margin-bottom: 10px;
}

.qc-map-container #qc-map-legend .qc-map-legend-inner {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.qc-map-container #qc-map-legend .qc-map-legend-inner div {
    display: flex;
    align-items: center;
}

.qc-map-container #qc-map-legend .qc-map-legend-inner dt {
    display: flex;
    width: 30px;
}

.qc-map-container #qc-map-legend .qc-map-legend-inner dd {
    font-size: 12px;
    font-weight: 600;
    margin: 0;
}

/* --------------------------------------------
Google Maps InfoWindow Customization
-------------------------------------------- */
.gm-style-iw.gm-style-iw-c,
.gm-style .gm-style-iw-d {
    padding: 0;
    overflow: hidden !important;
}

.gm-style-iw.gm-style-iw-c {
    border-radius: 15px;
}

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

/* Close Button */
.gm-style-iw.gm-style-iw-c button {
    position: absolute !important;
    top: 10px !important;
    right: 10px !important;
    background-color: #000 !important;
    opacity: 1 !important;
    border-radius: 50%;
}

.gm-style-iw.gm-style-iw-c button > span {
    background-color: #ffffff;
}

.gm-style-iw.gm-style-iw-c button:hover {
    background-color: #fff !important;
}

.gm-style-iw.gm-style-iw-c button:hover > span {
    background-color: #000;
}

/* --------------------------------------------
Info Bubble (Marker Popup)
-------------------------------------------- */
.qc-map-info-bulle {
    display: flex;
    flex-direction: column;
    padding: 0;
}

/* Image Wrapper */
.qc-map-info-bulle .img-wrapper {
    display: inherit;
    width: 350px;
    height: 160px;
}

.qc-map-info-bulle .img-wrapper > img {
    width: 100%;
    object-fit: cover;
}

/* Content */
.qc-map-info-bulle-inner {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 10px 20px 20px 20px;
    font-size: 14px;
}

/* Time/Status */
.qc-bubble-time {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    font-weight: 300;
}

.qc-bubble-time .qc-bubble-separator {
    display: flex;
    background-color: #EE0700;
    width: 5px;
    height: 5px;
    border-radius: 100%;
}

.qc-bubble-time .qc-bubble-status {
    text-transform: uppercase;
}

/* Title */
.qc-map-info-bulle h3 {
    max-width: 300px;
    margin: 0;
    font-size: 20px;
    color: #EE0700;
}

/* Link */
.qc-map-info-bulle a {
    font-size: 1.125rem;
}