:root {
    --primary-color: #0056b3;
    --accent-color: #ff8c00;
    --text-main: #333;
    --text-light: #666;
    --bg-glass: rgba(255, 255, 255, 0.85);
    --bg-glass-dark: rgba(0, 0, 0, 0.6);
    --shadow-soft: 0 8px 32px rgba(0, 0, 0, 0.15);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Outfit', sans-serif;
}

body, html {
    width: 100%;
    height: 100%;
    overflow: hidden;
}

#map {
    width: 100%;
    height: 100%;
    z-index: 1;
}

/* Header Overlay */
.header-overlay {
    position: absolute;
    top: 20px;
    left: 20px;
    z-index: 1000;
    /* Fondo transparente, solo se ve el logo */
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
}

.header-overlay .logo {
    max-width: 150px;
    height: auto;
    display: block;
}

/* Custom Markers */
.custom-marker {
    background: linear-gradient(135deg, #d4af37, #aa7c11); /* Luxury Gold Gradient */
    color: white;
    text-shadow: 0 1px 2px rgba(0,0,0,0.3); /* Soft shadow for legibility */
    border-radius: 50%;
    width: 32px !important;
    height: 32px !important;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 14px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.6);
    border: 2px solid #ffffff;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.custom-marker:hover {
    transform: scale(1.15);
    box-shadow: 0 6px 16px rgba(212, 175, 55, 0.6); /* Gold shadow on hover */
    z-index: 1000 !important;
}

/* Sector Labels */
.sector-label {
    background: rgba(0, 0, 0, 0.45);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 30px;
    padding: 6px 14px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    font-family: 'Outfit', sans-serif;
    font-weight: 600;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.95);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    white-space: nowrap;
    text-align: center;
    width: auto !important;
    height: auto !important;
    transform: translate(-50%, -50%); /* Center the pill */
}

.sector-label.main-sector {
    font-size: 18px;
    font-weight: 800;
    padding: 8px 20px;
    background: rgba(0, 0, 0, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.4);
    letter-spacing: 2px;
}

/* removed vertical sector */


/* Info Panel (Sidebar) */
.info-panel {
    position: absolute;
    top: 20px;
    right: 20px;
    bottom: 20px;
    width: 400px;
    background: var(--bg-glass);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-radius: 20px;
    box-shadow: var(--shadow-soft);
    border: 1px solid rgba(255, 255, 255, 0.4);
    z-index: 1000;
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), opacity 0.3s ease;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.info-panel.hidden {
    transform: translateX(120%);
    opacity: 0;
    pointer-events: none;
}

.close-btn {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    font-size: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    color: var(--text-main);
    transition: background 0.2s;
}

.close-btn:hover {
    background: white;
    color: #ff2a6d;
}

.info-content {
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow-y: auto;
}

.image-container {
    width: 100%;
    height: 250px;
    flex-shrink: 0;
}

.image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.text-content {
    padding: 30px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.sector-tag {
    font-size: 12px;
    font-weight: 800;
    color: var(--accent-color);
    letter-spacing: 1.5px;
    text-transform: uppercase;
    margin-bottom: 8px;
}

.text-content h2 {
    font-size: 28px;
    color: var(--primary-color);
    margin-bottom: 15px;
    font-weight: 800;
}

.text-content p {
    font-size: 15px;
    color: var(--text-light);
    line-height: 1.6;
    margin-bottom: 25px;
}

.features {
    display: flex;
    justify-content: space-between;
    margin-bottom: 30px;
    padding-top: 20px;
    border-top: 1px solid rgba(0,0,0,0.1);
}

.feature {
    display: flex;
    flex-direction: column;
    align-items: center;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-main);
}

.feature .icon {
    font-size: 20px;
    margin-bottom: 5px;
}

.action-btn {
    margin-top: auto;
    background: linear-gradient(135deg, var(--primary-color), #003d82);
    color: white;
    border: none;
    padding: 15px;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    box-shadow: 0 4px 15px rgba(0, 86, 179, 0.4);
}

.action-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 86, 179, 0.6);
}

/* Responsive */
@media (max-width: 600px) {
    .info-panel {
        top: auto;
        left: 0;
        right: 0;
        bottom: 0;
        width: 100%;
        border-radius: 20px 20px 0 0;
        height: auto;
        max-height: 85vh;
        transform: translateY(0); /* Corregido: Ahora sube desde abajo */
    }
    
    .info-panel.hidden {
        transform: translateY(120%);
    }

    .header-overlay {
        top: 10px;
        left: 10px;
    }
    
    .header-overlay .logo {
        max-width: 120px;
    }
}
