/* Trade Map Interface */
.map-interface {
    display: flex;
    flex-direction: row;
    min-height: 600px;
    background: #0f172a;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid var(--border-color);
}

.map-visualization {
    flex: 1;
    position: relative;
    background: #0f172a;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Map Regions - LIGHTER & MORE VISIBLE */
.map-region {
    cursor: pointer;
    transition: all 0.3s ease;
}

.map-region rect {
    fill: rgba(212, 175, 55, 0.12);
    stroke: rgba(212, 175, 55, 0.5);
    stroke-width: 1.5;
    transition: all 0.3s ease;
}

.map-region:hover rect {
    fill: rgba(212, 175, 55, 0.25);
    stroke: var(--accent-gold);
    stroke-width: 2.5;
    filter: drop-shadow(0 0 15px rgba(212, 175, 55, 0.8));
}

.map-region text {
    fill: #ffffff;
    font-size: 14px;
    font-weight: bold;
    text-anchor: middle;
    pointer-events: none;
    letter-spacing: 1.5px;
    text-shadow: 0 0 10px rgba(0, 0, 0, 0.9);
}

/* Route Line */
.route-line {
    fill: none;
    stroke: var(--accent-gold);
    stroke-width: 2;
    stroke-dasharray: 8 4;
    opacity: 0.7;
    transition: all 0.3s ease;
}

/* HUD Panel */
.hud-panel {
    background: rgba(15, 23, 42, 0.95);
    border-left: 1px solid #334155;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    color: #e2e8f0;
    width: 340px;
    min-width: 340px;
}

.hud-header {
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(212, 175, 55, 0.2);
}

.hud-search {
    position: relative;
    margin-bottom: 1.5rem;
}

.hud-search input {
    width: 100%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid #334155;
    color: #fff;
    padding: 0.6rem 2.5rem 0.6rem 0.75rem;
    font-family: 'Courier New', monospace;
    font-size: 0.85rem;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.hud-search input:focus {
    outline: none;
    border-color: var(--accent-gold);
    box-shadow: 0 0 12px rgba(212, 175, 55, 0.3);
}

.search-icon {
    position: absolute;
    right: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    opacity: 0.5;
    pointer-events: none;
}

.hud-title {
    font-size: 1.4rem;
    color: #fff;
    margin-bottom: 1.5rem;
    border-left: 3px solid var(--accent-gold);
    padding-left: 1rem;
    font-weight: bold;
    letter-spacing: 1px;
}

.scan-line {
    height: 2px;
    width: 100%;
    background: linear-gradient(90deg, transparent, var(--accent-gold), transparent);
    margin-bottom: 1.5rem;
    animation: scan 3s linear infinite;
}

/* Metrics */
.metric-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
}

.metric-mini {
    background: rgba(255, 255, 255, 0.04);
    padding: 0.75rem;
    border-radius: 6px;
    border: 1px solid rgba(212, 175, 55, 0.15);
}

.metric-box {
    background: rgba(255, 255, 255, 0.04);
    padding: 1rem;
    border-radius: 6px;
    border: 1px solid rgba(212, 175, 55, 0.15);
}

.metric-label {
    display: block;
    font-size: 0.7rem;
    color: #94a3b8;
    margin-bottom: 0.5rem;
    letter-spacing: 1.2px;
    font-weight: 600;
}

.metric-sublabel {
    display: block;
    font-size: 0.65rem;
    color: #64748b;
    margin-bottom: 0.25rem;
    letter-spacing: 1px;
}

.metric-value {
    font-size: 1.1rem;
    font-weight: bold;
    color: var(--accent-gold);
}

.metric-bar-container {
    width: 100%;
    height: 5px;
    background: #334155;
    border-radius: 3px;
    overflow: hidden;
    margin-top: 0.5rem;
}

.metric-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--accent-gold), #10b981);
    width: 0%;
    transition: width 1s ease-out;
    box-shadow: 0 0 10px rgba(212, 175, 55, 0.6);
}

.friction-meter {
    width: 100%;
    height: 6px;
    background: #334155;
    border-radius: 3px;
    overflow: hidden;
}

.friction-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--accent-gold), #fff);
    width: 100%;
}

/* Animations */
@keyframes scan {
    0% {
        transform: translateX(-100%);
    }

    100% {
        transform: translateX(100%);
    }
}

/* Responsive */
@media (max-width: 768px) {
    .map-interface {
        flex-direction: column;
    }

    .hud-panel {
        width: 100%;
        border-left: none;
        border-top: 1px solid #334155;
    }

    .map-region text {
        font-size: 12px;
    }
}