/* GoPaths-Style Zero-Key Interactive Route Blueprint + Google Map Embed */
.gp-map-card {
    background: rgba(17, 24, 39, 0.85);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 16px;
    overflow: hidden;
    margin-bottom: 1.25rem;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.35);
    display: flex;
    flex-direction: column;
}

.gp-map-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.03);
}

.gp-map-title-wrap {
    display: flex;
    flex-direction: column;
    gap: 0.12rem;
    min-width: 0;
}

.gp-map-title {
    font-size: 0.85rem;
    font-weight: 700;
    color: #f8fafc;
    display: flex;
    align-items: center;
    gap: 0.45rem;
}

.gp-map-meta {
    font-size: 0.72rem;
    color: #94a3b8;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.gp-map-controls {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    flex-shrink: 0;
}

.gp-btn {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #cbd5e1;
    border-radius: 8px;
    padding: 0.3rem 0.55rem;
    font-size: 0.7rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    text-decoration: none;
}

.gp-btn:hover,
.gp-btn.active {
    background: rgba(56, 189, 248, 0.18);
    border-color: rgba(56, 189, 248, 0.45);
    color: #38bdf8;
}

.gp-map-canvas {
    position: relative;
    width: 100%;
    height: 300px;
    background:
        radial-gradient(circle at 50% 45%, rgba(56, 189, 248, 0.10), transparent 70%),
        linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px),
        #0b1120;
    background-size: 100% 100%, 24px 24px, 24px 24px, 100% 100%;
    transition: height 0.25s ease;
    overflow: hidden;
}

.gp-map-card.expanded .gp-map-canvas {
    height: 460px;
}

.gp-svg-stage {
    width: 100%;
    height: 100%;
    display: block;
}

.gp-gmap-iframe {
    width: 100%;
    height: 100%;
    border: 0;
    display: none;
}

.gp-canvas-badge {
    position: absolute;
    bottom: 8px;
    left: 10px;
    background: rgba(15, 23, 42, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 6px;
    padding: 0.2rem 0.45rem;
    font-size: 0.65rem;
    color: #94a3b8;
    pointer-events: none;
}

.gp-map-strip {
    padding: 0.65rem 0.85rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    flex-direction: column;
    gap: 0.42rem;
    max-height: 205px;
    overflow-y: auto;
    background: rgba(15, 23, 42, 0.55);
}

.gp-stop-chip-row {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.36rem 0.5rem;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    cursor: pointer;
    transition: all 0.15s ease;
}

.gp-stop-chip-row:hover,
.gp-stop-chip-row.active {
    background: rgba(56, 189, 248, 0.14);
    border-color: rgba(56, 189, 248, 0.4);
}

.gp-stop-num {
    width: 20px;
    height: 20px;
    border-radius: 999px;
    color: #fff;
    font-size: 0.68rem;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.gp-stop-info {
    min-width: 0;
    flex: 1;
}

.gp-stop-name {
    font-size: 0.74rem;
    font-weight: 600;
    color: #e2e8f0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.gp-stop-time {
    font-size: 0.66rem;
    color: #94a3b8;
}

.gp-stop-actions {
    display: flex;
    gap: 0.3rem;
    flex-shrink: 0;
}

.gp-mini-link {
    font-size: 0.64rem;
    color: #38bdf8;
    background: rgba(56, 189, 248, 0.1);
    border: 1px solid rgba(56, 189, 248, 0.25);
    border-radius: 5px;
    padding: 0.12rem 0.35rem;
    text-decoration: none;
    font-weight: 600;
}

.gp-mini-link:hover {
    background: rgba(56, 189, 248, 0.22);
}

.gp-transit-leg {
    font-size: 0.66rem;
    color: #7dd3fc;
    padding-left: 1.75rem;
    display: flex;
    align-items: center;
    gap: 0.35rem;
    opacity: 0.9;
}

.gp-map-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    padding: 0.6rem 0.85rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.02);
    flex-wrap: wrap;
}

@keyframes gpDashFlow {
    to {
        stroke-dashoffset: -24;
    }
}

.gp-route-anim {
    animation: gpDashFlow 1.4s linear infinite;
}

/* Sticky right-column on desktop */
@media (min-width: 1024px) {
    .right-column,
    .sidebar-console {
        position: sticky;
        top: 1.25rem;
        align-self: start;
    }
}
