/* map-style.css - Minimalist & Ecosystem Compatible */

.map-wrapper.map-minimal {
    position: relative;
    width: 100%;
    height: 200px;
    /* Minimal height requested */
    border-radius: var(--radius-lg);
    overflow: hidden;
    margin-top: 16px;
    border: 1px solid var(--color-border-medium);
    box-shadow: inset 0 0 0 1px rgba(230, 200, 140, 0.05);
    /* Subtle inner rim */
    background: var(--color-surface);
}

.map-element {
    width: 100%;
    height: 100%;
    background: #1a1a1a;
}

/* OpenLayers Canvas Filter - The Core "Ecosystem" Look */
.map-element canvas {
    /* Same wine/gold dark theme filter */
    filter:
        sepia(100%) hue-rotate(-45deg) saturate(160%) brightness(0.8) contrast(1.15);
    transition: filter 0.5s ease;
}

/* Map Actions Row (Overlay) */
.map-actions-row {
    position: absolute;
    bottom: 12px;
    left: 12px;
    right: 12px;
    z-index: 5;
    display: flex;
    justify-content: space-between;
    align-items: center;
    pointer-events: none;
    /* Let clicks pass through empty space */
}

.glass-chip {
    /* Mimic .filter-btn style for consistency but smaller */
    display: inline-flex;
    align-items: center;
    gap: 6px;
    height: 32px;
    /* Smaller height */
    padding: 0 10px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--radius-md);
    color: var(--color-text-primary);
    font-size: 12px;
    /* Smaller font */
    font-weight: 500;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
    transition: all 0.2s ease;
    pointer-events: auto;
    /* Re-enable clicks */
    max-width: 60%;
    /* Prevent taking up too much space */
}

.chip-icon {
    color: var(--color-primary);
    flex-shrink: 0;
}

.chip-text {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Specifics for Address Chip */
.address-chip {
    cursor: default;
    background: rgba(0, 0, 0, 0.4);
    /* Slightly darker for readability */
    border-color: rgba(255, 255, 255, 0.1);
}

/* Specifics for Route Button Chip */
.route-chip {
    text-decoration: none;
    cursor: pointer;
    background: rgba(0, 0, 0, 0.3);
    /* Slightly dark glass */
    border-color: rgba(255, 255, 255, 0.1);
    color: var(--color-text-primary);
}

.route-chip:hover {
    background: rgba(0, 0, 0, 0.5);
    /* Slightly darker on hover */
    /* No movement or shadow as requested */
}

.route-chip:active {
    transform: translateY(0);
}

@media (max-width: 420px) {
    .map-actions-row {
        gap: 8px;
        /* Ensure gap if they touch */
    }
}

/* OpenLayers Controls Cleanup */
.ol-control {
    display: none !important;
    /* Minimalist: Hide standard zoom (+/-) controls */
}

.ol-attribution {
    display: none !important;
    /* Hide attribution for absolute minimalist look, or style it minimal */
}

/* Custom Marker Styling Element */
.custom-marker {
    width: 20px;
    height: 20px;
    background: var(--color-primary);
    border: 2px solid var(--color-primary);
    border-radius: 50%;
    box-shadow: 0 0 0 4px rgba(230, 200, 140, 0.3);
    position: relative;
    /* Center point */
    transform: translate(-50%, -50%);
}

/* Pulse animation for the minimal marker */
.custom-marker::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    background: var(--color-primary);
    opacity: 0.5;
    animation: minimal-pulse 2s infinite;
}

@keyframes minimal-pulse {
    0% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0.6;
    }

    100% {
        transform: translate(-50%, -50%) scale(3);
        opacity: 0;
    }
}