/* ================================================================
   FlyMag Route Map — frontend
   Rendered inside article content by the [flymag_route_map] shortcode.
   ================================================================ */

.flymag-rmap-block {
    margin: 1.75rem 0;
    background: #fff;
    border: 1px solid #e6e9ec;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}

.flymag-rmap-title {
    margin: 0;
    padding: 0.85rem 1.1rem;
    background: linear-gradient(135deg, #0a3d62 0%, #145080 100%);
    color: #fff !important;
    font-size: 1.05rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.flymag-rmap-title:before {
    content: '\f0e6';
    font-family: 'Font Awesome 5 Free', 'Font Awesome 6 Free';
    font-weight: 900;
    color: #e67e22;
    font-size: 0.95rem;
}

.flymag-rmap {
    width: 100%;
    background: #eaeef3;
    position: relative;
}
.flymag-rmap-loading {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #6b7785;
    font-size: 0.9rem;
    pointer-events: none;
}

.flymag-rmap-legend {
    padding: 0.75rem 1.1rem;
    background: #f7f9fc;
    border-top: 1px solid #e6e9ec;
    font-size: 0.9rem;
    color: #2c3e50;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem 0.8rem;
    line-height: 1.5;
}
.flymag-rmap-legend a {
    color: #0a3d62;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
}
.flymag-rmap-legend a:hover { color: #145080; text-decoration: underline; }
.flymag-rmap-legend strong {
    font-family: 'Roboto Mono', monospace;
    letter-spacing: 0.5px;
    color: #0a3d62;
}
.flymag-rmap-legend-sep { color: #95a5a6; font-size: 0.85rem; }
.flymag-rmap-legend-dot {
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: 2px solid #fff;
    box-shadow: 0 1px 2px rgba(0,0,0,0.25);
    vertical-align: middle;
}
.flymag-rmap-legend-dot-origin { background: #c0392b; }
.flymag-rmap-legend-dot-dest   { background: #e67e22; }

/* Leaflet pin styling — matches the concierge trip route pins */
.flymag-rmap-pin {
    background: transparent !important;
    border: none !important;
    /* Give the pin room to render its label without Leaflet clipping */
    overflow: visible !important;
    white-space: nowrap;
}
.flymag-rmap-pin-dot {
    display: inline-block;
    width: 12px;
    height: 12px;
    border: 2px solid #fff;
    border-radius: 50%;
    box-shadow: 0 1px 3px rgba(0,0,0,0.35);
    vertical-align: middle;
}
.flymag-rmap-pin-origin .flymag-rmap-pin-dot { background: #c0392b; width: 14px; height: 14px; }
.flymag-rmap-pin-dest   .flymag-rmap-pin-dot { background: #e67e22; }
.flymag-rmap-pin-label {
    display: inline-block;
    margin-left: 6px;
    padding: 2px 7px;
    background: rgba(255,255,255,0.96);
    color: #0a3d62;
    font-family: 'Roboto Mono', monospace;
    font-weight: 700;
    font-size: 0.75rem;
    letter-spacing: 0.5px;
    border-radius: 4px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.15);
    vertical-align: middle;
}
.flymag-rmap-pin-origin .flymag-rmap-pin-label {
    background: #c0392b;
    color: #fff;
}

@media (max-width: 600px) {
    .flymag-rmap-legend { font-size: 0.85rem; }
    .flymag-rmap-title { font-size: 0.98rem; padding: 0.7rem 0.9rem; }
}
