/* Página independiente — Mapa de refugios climáticos */
.rc-tool-body {
    font-family: var(--vv2-font, 'Inter', system-ui, sans-serif);
    background: #f1f5f9;
    color: var(--vv2-text, #0f172a);
}

.rc-tool-page {
    max-width: 1400px;
    margin: 0 auto;
    padding: calc(var(--vv2-navbar-h, 72px) + 1.25rem) 1.25rem 2rem;
    min-height: calc(100vh - var(--vv2-navbar-h, 72px));
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
}

.rc-tool-page__header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1rem;
    flex-shrink: 0;
}

.rc-tool-page__back {
    display: inline-block;
    margin-bottom: 0.5rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--vv2-text-muted, #64748b);
    text-decoration: none;
}

.rc-tool-page__back:hover {
    color: var(--vv2-navy, #011e41);
}

.rc-tool-page__title {
    margin: 0 0 0.5rem;
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 700;
    color: var(--vv2-navy, #011e41);
}

.rc-tool-page__lead {
    margin: 0;
    max-width: 52rem;
    font-size: 1rem;
    line-height: 1.6;
    color: var(--vv2-text-muted, #64748b);
}

.rc-tool-page__info {
    flex-shrink: 0;
}

.rc-tool-layout {
    flex: 1;
    min-height: 0;
    display: block;
    min-height: clamp(420px, calc(100vh - 220px), 720px);
    height: clamp(420px, calc(100vh - 220px), 720px);
    position: relative;
}

.rc-tool-map {
    width: 100%;
    height: 100%;
    min-height: inherit;
    border-radius: var(--vv2-radius-lg, 16px);
    box-shadow: var(--vv2-shadow-md, 0 4px 16px rgba(1, 30, 65, 0.08));
    overflow: hidden;
    background: #e2e8f0;
    z-index: 0;
}

.rc-tool-panel {
    position: absolute;
    top: 16px;
    bottom: 16px;
    left: 16px;
    width: clamp(280px, 28vw, 360px);
    max-width: calc(100% - 32px);
    border-radius: var(--vv2-radius-lg, 16px);
    box-shadow: var(--vv2-shadow-md, 0 4px 16px rgba(1, 30, 65, 0.08));
    overflow: hidden;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(10px);
    z-index: 401;
}

.rc-tool-panel .vv2-rc-panel-host,
.rc-tool-panel .vv2-rc {
    height: 100%;
    min-height: 0;
}

@media (max-width: 1280px) {
    .rc-tool-panel {
        width: clamp(260px, 32vw, 320px);
    }
}

@media (max-width: 1080px) {
    .rc-tool-panel {
        width: min(290px, calc(100% - 32px));
    }
}

@media (max-width: 900px) {
    .rc-tool-layout {
        min-height: auto;
        height: auto;
    }

    .rc-tool-map {
        min-height: 54vh;
        height: 54vh;
    }

    .rc-tool-panel {
        position: static;
        bottom: auto;
        width: 100%;
        margin-top: 1rem;
        backdrop-filter: none;
    }
}

@media (max-width: 640px) {
    .rc-tool-page {
        padding-left: 1rem;
        padding-right: 1rem;
    }

    .rc-tool-page__header {
        flex-direction: column;
    }
}
