/* Vista dividida */
.split-view {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin: 2rem 0;
}

@media (max-width: 768px) {
    .split-view {
        grid-template-columns: 1fr;
    }
}

/* Perfil */
.profile-container,
.perfil-container {
    position: relative;
}

.perfil-container img {
    cursor: crosshair;
}

.svg-wrapper {
    position: relative;
    cursor: crosshair;
}

.profile-tooltip {
    position: absolute;
    background: rgba(0, 0, 0, 0.9);
    color: white;
    padding: 0.75rem;
    border-radius: 6px;
    font-size: 0.875rem;
    pointer-events: none;
    white-space: nowrap;
    z-index: 1000;
    transform: translate(-50%, -100%);
}

.profile-tooltip div {
    margin: 0.25rem 0;
}

/* Mapa */
.map-container {
    position: relative;
}

.map-controls {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.map-controls button,
.map-controls a {
    padding: 0.5rem 1rem;
    border: 1px solid #2E7D32;
    background: white;
    border-radius: 4px;
    cursor: pointer;
    text-decoration: none;
    color: #2E7D32;
    font-weight: 500;
    transition: all 0.3s ease;
}

.map-controls button:hover,
.map-controls a:hover {
    background: #2E7D32;
    color: white;
}

/* Leyenda */
.map-legend {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
    padding: 0.75rem;
    background: #f9fafb;
    border-radius: 6px;
    flex-wrap: wrap;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
}

.color-box {
    width: 20px;
    height: 12px;
    border-radius: 2px;
}

/* Popups de Leaflet personalizados */
.marker-popup {
    text-align: center;
}

.marker-popup strong {
    display: block;
    margin-bottom: 0.25rem;
    color: #2E7D32;
}
