.nbm-wrapper {
    max-width: 1100px;
    margin: auto;
    font-family: Arial, sans-serif;
}

#nbm-map {
    height: 65vh; /* en vez de fijo 550px */
    min-height: 420px;
    border-radius: 16px;
    margin-bottom: 10px;
}

.nbm-form {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    margin-bottom: 20px;
    align-items: end;
	margin: 0 0 20px 2vw;
	padding: 12px;
}

.nbm-field {
    display: flex;
    flex-direction: column;
}

.nbm-form label {
    margin-bottom: 5px;
    font-weight: bold;
}

.nbm-form input,
.nbm-form select {
    padding: 12px;
    min-width: 240px;
    border-radius: 10px;
    border: 1px solid #ccc;
}

#analyze-zone {
    background: #cf2e2e;
    color: white;
    border: 0;
    padding: 14px 24px;
    border-radius: 10px;
    cursor: pointer;
    font-weight: bold;
    transition: background 0.2s ease;
}

#analyze-zone:hover {
    background: black;
}

.nbm-card {
    background: #f7f7f7;
    padding: 25px;
    border-radius: 16px;
}

.nbm-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit,minmax(150px,1fr));
    gap: 15px;
    margin: 20px 0;
}

.nbm-stat {
    background: white;
    padding: 15px;
    border-radius: 12px;
    text-align: center;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    cursor: default;
}

.nbm-stat:hover {
    transform: scale(1.03);
    box-shadow: 0 6px 18px rgba(0,0,0,0.08);
}

.nbm-stat span {
    display: block;
    margin-top: 10px;
    font-size: 22px;
    font-weight: bold;
}

/* Ajuste móvil */
@media (max-width: 768px) {

    .nbm-stat:hover {
        transform: none;
        box-shadow: none;
    }

}

.nbm-data-list,
.nbm-recommendations {
    background: white;
    padding: 16px;
    border-radius: 12px;
    margin-top: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    list-style: none;
}

.nbm-data-list li,
.nbm-recommendations li {
    margin-bottom: 8px;
}

.nbm-link-box {
    margin-top: 25px;
    background: white;
    padding: 18px;
    border-radius: 12px;
}

.nbm-link-box a {
    text-decoration: none;
    font-weight: bold;
}

.nbm-loading {
    padding: 20px;
    font-size: 18px;
}

.nbm-data-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    margin-top: 15px;
	margin-bottom: 20px;
}
/*Acordeon detalles*/
.nbm-details {

    margin-top: 25px;
    background: white;
    border-radius: 14px;
    padding: 10px 18px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    overflow: hidden;
}

.nbm-details summary {

    cursor: pointer;
    font-weight: bold;
    font-size: 16px;
    list-style: none;
    padding: 12px 0;
    user-select: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
	color: #cf2e2e;
}

/* Ocultar flecha default */
.nbm-details summary::-webkit-details-marker {
    display: none;
}

/* Flecha personalizada */
.nbm-details summary::after {

    content: '+';
    font-size: 24px;
    font-weight: 300;
    transition: transform 0.2s ease;
}

.nbm-details[open] summary::after {

    content: '−';
}

.nbm-details .nbm-data-grid {

    padding-top: 10px;
}

/* Tablet */
@media (max-width: 900px) {
    .nbm-data-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* Móvil */
@media (max-width: 768px) {
    .nbm-data-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Móvil pequeño */
@media (max-width: 480px) {
    .nbm-data-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.nbm-data-card {
    background: white;
    border-radius: 12px;
    padding: 12px;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    cursor: default;
}

.nbm-data-card:hover {
    transform: scale(1.03);
    box-shadow: 0 6px 18px rgba(0,0,0,0.08);
}

.nbm-data-card strong {
    display: block;
    font-size: 14px;
    color: #666;
    margin-bottom: 6px;
}

.nbm-data-card span {
    font-size: 24px;
    font-weight: bold;
}

/* Ajuste móvil */
@media (max-width: 768px) {

    .nbm-data-card:hover {
        transform: none;
        box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    }

}

/* Color fuente radio */
#radius-value {
    color: #cf2e2e;
    font-weight: bold;
}

/*Color barra */
#radius {
    width: 100%;
    accent-color: #cf2e2e;
}

#streetview-link {
    text-align: right;
}

/* CSS para impresion de informe */
@media print {

    /* Oculta TODO */
    body * {
        visibility: hidden !important;
    }

    /* Muestra SOLO el informe */
    #nbm-result,
    #nbm-result * {
        visibility: visible !important;
    }

    /* Fija el informe arriba */
    #nbm-result {
        position: absolute !important;
        left: 0 !important;
        top: 0 !important;
        width: 100% !important;
    }

    /* Oculta botón */
    #print-results {
        display: none !important;
    }

    /* 🔥 ESTO ES LO QUE TE FALTA */
    html, body {
        height: auto !important;
        overflow: visible !important;
    }

    /* 🔥 OCULTA ELEMENTOS DEL TEMA QUE SE “CUELAN” */
    header,
    footer,
    nav,
    .site-header,
    .site-footer,
    #header,
    #footer {
        display: none !important;
    }
}

.nbm-chart-wrapper {

    position: relative;

    width: 100%;

    height: 420px;

    margin-bottom: 30px;

    padding: 20px;

    background: #fff;

    border-radius: 14px;

    box-shadow: 0 4px 18px rgba(0,0,0,0.06);

    overflow: hidden;
}

#actividadChart {

    display: block;

    width: 100% !important;

    height: 100% !important;
}