@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;600;700&display=swap');

:root {
    --bg-color: #f8fafc;
    --card-bg: #ffffff;
    --text-primary: #1e293b;
    --text-secondary: #64748b;
    --accent-blue: #3b82f6;
    --accent-green: #10b981;
    --accent-red: #ef4444;
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --radius-lg: 1rem;
    --radius-xl: 1.5rem;
}

body {
    background-color: var(--bg-color);
    color: var(--text-primary);
    font-family: 'Inter', sans-serif;
    margin: 0;
    padding: 0;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

header {
    text-align: center;
    margin-bottom: 3rem;
    padding-top: 1rem;
}

h1 {
    font-size: 2.25rem;
    font-weight: 800;
    letter-spacing: -0.025em;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.subtitle {
    color: var(--text-secondary);
    font-weight: 400;
    font-size: 1rem;
}

.subtitle a {
    color: var(--accent-blue);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s;
}

.subtitle a:hover {
    color: #2563eb;
}

/* Dashboard Grid */
.dashboard {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-bottom: 2rem;
}

@media (max-width: 900px) {
    .dashboard {
        grid-template-columns: 1fr;
    }
}

/* Minimalist Cards */
.card {
    background: var(--card-bg);
    border-radius: var(--radius-lg);
    padding: 2rem;
    box-shadow: var(--shadow-sm);
    border: 1px solid #e2e8f0;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
}

.card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.card-label {
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-secondary);
    margin-bottom: 0.75rem;
}

.metric-value {
    font-size: 2.5rem;
    font-weight: 700;
    letter-spacing: -0.03em;
    margin: 0;
    color: var(--text-primary);
}

.metric-detail {
    font-size: 0.95rem;
    color: var(--text-secondary);
    margin-top: 0.5rem;
    font-weight: 400;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
}

/* Color accents for cards */
.card.accent-red .metric-value {
    color: var(--accent-red);
}

.card.accent-green .metric-value {
    color: var(--accent-green);
}

.card.accent-blue .metric-value {
    color: var(--accent-blue);
}

/* Map Container */
#map {
    height: 600px;
    width: 100%;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
    border: 1px solid #e2e8f0;
    z-index: 1;
}

/* Custom Alert Box */
.alert-box {
    grid-column: 1 / -1;
    background: #fef2f2;
    border: 1px solid #fee2e2;
    color: #991b1b;
    padding: 1rem;
    border-radius: var(--radius-lg);
    text-align: center;
    margin-bottom: 1rem;
    display: none;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .container {
        padding: 1rem;
    }

    h1 {
        font-size: 1.75rem;
    }

    .metric-value {
        font-size: 2rem;
    }

    #map {
        height: 65vh;
    }
}

/* Custom Marker Styles */
.custom-marker {
    background-color: #ffffff;
    border-radius: 50%;
    border: 2px solid var(--accent-blue);
    width: 28px !important;
    height: 28px !important;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
    transition: transform 0.2s;

    /* Centering text */
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 11px;
    font-weight: 800;
    color: var(--text-primary);
}

.custom-marker.expensive {
    border-color: var(--accent-red);
    background-color: #fee2e2;
    color: #991b1b;
    z-index: 1000 !important;
    width: 32px !important;
    height: 32px !important;
    font-size: 13px;
}

.custom-marker.cheap {
    border-color: var(--accent-green);
    background-color: #d1fae5;
    color: #065f46;
    z-index: 1000 !important;
    width: 32px !important;
    height: 32px !important;
    font-size: 13px;
}

.custom-marker:hover {
    transform: scale(1.2);
    border-width: 3px;
}

/* Ocultar atribución y logo de Leaflet */
.leaflet-control-attribution,
.leaflet-control-attribution a {
    display: none !important;
}