/* Crew chat — location pin map modal (Windy + navigation links) */

.loc-map-modal {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    background: rgba(2, 6, 23, 0.82);
    backdrop-filter: blur(4px);
}

.loc-map-modal[hidden] {
    display: none !important;
}

.loc-map-modal__dialog {
    width: min(920px, 100%);
    max-height: min(88vh, 720px);
    display: flex;
    flex-direction: column;
    border-radius: 10px;
    border: 1px solid rgba(56, 189, 248, 0.28);
    background: #0f172a;
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.45);
    overflow: hidden;
}

.loc-map-modal__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.65rem 0.85rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.loc-map-modal__title {
    margin: 0;
    font-size: 0.78rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #38bdf8;
}

.loc-map-modal__coords {
    margin: 0.15rem 0 0;
    font-size: 0.68rem;
    color: #94a3b8;
}

.loc-map-modal__close {
    font-family: inherit;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(2, 6, 23, 0.6);
    color: #e2e8f0;
    border-radius: 6px;
    padding: 0.35rem 0.65rem;
    cursor: pointer;
    font-size: 0.68rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.loc-map-modal__body {
    position: relative;
    min-height: min(52vh, 420px);
    flex: 1;
    background: #0a1628;
}

.loc-map-modal__body iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: none;
}

.loc-map-pin {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -100%);
    z-index: 2;
    font-size: 1.75rem;
    pointer-events: none;
    filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.55));
}

.loc-map-modal__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    padding: 0.65rem 0.85rem 0.85rem;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.loc-map-modal__actions a {
    font-size: 0.68rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    text-decoration: none;
    color: #38bdf8;
    padding: 0.4rem 0.65rem;
    border-radius: 6px;
    border: 1px solid rgba(56, 189, 248, 0.3);
    background: rgba(56, 189, 248, 0.08);
}

.loc-map-modal__actions a:hover {
    background: rgba(56, 189, 248, 0.16);
}

.community-loc-chip {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    margin: 0 0.75rem 0.35rem;
    padding: 0.35rem 0.55rem;
    border-radius: 6px;
    border: 1px solid rgba(56, 189, 248, 0.28);
    background: rgba(56, 189, 248, 0.08);
    font-size: 0.68rem;
    color: #bae6fd;
}

.community-loc-chip button {
    font-family: inherit;
    border: none;
    background: transparent;
    color: #94a3b8;
    cursor: pointer;
    font-size: 0.75rem;
}

.community-msg__loc {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.15rem;
    margin-top: 0.35rem;
    padding: 0.45rem 0.55rem;
    border-radius: 6px;
    border: 1px solid rgba(56, 189, 248, 0.25);
    background: rgba(14, 165, 233, 0.08);
    cursor: pointer;
    font-family: inherit;
    text-align: left;
    width: 100%;
    max-width: 280px;
}

.community-msg__loc:hover {
    border-color: rgba(56, 189, 248, 0.45);
    background: rgba(14, 165, 233, 0.14);
}

.community-msg__loc-title {
    font-size: 0.68rem;
    font-weight: 700;
    color: #38bdf8;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.community-msg__loc-coords {
    font-size: 0.62rem;
    color: #94a3b8;
}

.community-msg__source {
    display: inline-block;
    margin-top: 0.25rem;
    font-size: 0.58rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #64748b;
}

.cc-zoleo-note {
    margin: 0.75rem 0 0;
    padding: 0.55rem 0.65rem;
    border-left: 2px solid rgba(148, 163, 184, 0.45);
    font-size: 0.68rem;
    line-height: 1.45;
    color: #94a3b8;
}
