/* Mapa NH City Elementor v1.0.9 */

.mnh-map-widget {
    --mnh-primary: #0B74D1;
    --mnh-hotel: #E83F5B;
    --mnh-bg: #F5F7FA;
    --mnh-card: #FFFFFF;
    --mnh-text: #0F172A;
    --mnh-muted: #667085;
    --mnh-border: #E5E7EB;
    width: 100%;
    font-family: inherit;
    box-sizing: border-box;
}

.mnh-map-widget *,
.mnh-map-widget *::before,
.mnh-map-widget *::after {
    box-sizing: border-box;
}

.mnh-map-layout {
    display: grid;
    grid-template-columns: minmax(250px, 320px) minmax(0, 1fr);
    gap: 14px;
    width: 100%;
    align-items: stretch;
}

.mnh-map-layout.mnh-no-panel {
    grid-template-columns: 1fr;
}

.mnh-map-panel {
    background: var(--mnh-card);
    border: 1px solid var(--mnh-border);
    border-radius: 22px;
    padding: 16px;
    box-shadow: 0 14px 38px rgba(15, 23, 42, 0.08);
    overflow: hidden;
    min-width: 0;
}

.mnh-search-box {
    margin-bottom: 12px;
}

.mnh-search-input {
    width: 100%;
    height: 42px;
    border: 1px solid var(--mnh-border) !important;
    border-radius: 999px !important;
    padding: 0 15px !important;
    background: #F9FAFB !important;
    color: var(--mnh-text) !important;
    outline: none !important;
    font-size: 13px !important;
    box-shadow: none !important;
}

.mnh-filter-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin-bottom: 16px;
}

.mnh-filter {
    border: 1px solid var(--mnh-border);
    background: #F9FAFB;
    color: var(--mnh-text);
    border-radius: 999px;
    padding: 8px 11px;
    font-size: 12px;
    line-height: 1;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.mnh-filter:hover,
.mnh-filter.active {
    background: var(--mnh-primary);
    border-color: var(--mnh-primary);
    color: #FFFFFF;
}

.mnh-list-title {
    padding-top: 11px;
    margin-bottom: 9px;
    border-top: 1px solid var(--mnh-border);
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--mnh-text);
}

.mnh-place-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
    max-height: 470px;
    overflow-y: auto;
    padding-right: 4px;
}

.mnh-place-item {
    width: 100%;
    border: 1px solid transparent;
    background: #FFFFFF;
    border-radius: 12px;
    padding: 8px 9px;
    cursor: pointer;
    text-align: left;
    display: grid;
    grid-template-columns: 27px 1fr;
    gap: 9px;
    align-items: center;
    transition: all 0.2s ease;
}

.mnh-place-item:hover,
.mnh-place-item.is-active {
    background: #F3F4F6;
    border-color: #D1D5DB;
}

.mnh-place-marker {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--mnh-primary);
    color: #FFFFFF;
    font-weight: 800;
    font-size: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.mnh-place-marker.hotel {
    background: var(--mnh-hotel);
    border-radius: 9px 9px 9px 3px;
    transform: rotate(-45deg);
}

.mnh-place-marker.hotel span {
    transform: rotate(45deg);
}

.mnh-place-marker.subte-a { background: #2D9CDB; }
.mnh-place-marker.subte-b { background: #EB445A; }
.mnh-place-marker.subte-c { background: #1565C0; }
.mnh-place-marker.subte-d { background: #34A853; }
.mnh-place-marker.subte-e { background: #7C4DFF; }
.mnh-place-marker.gastronomia { background: #F97316; }

.mnh-place-name {
    display: block;
    font-size: 13px;
    font-weight: 700;
    color: var(--mnh-text);
    line-height: 1.2;
}

.mnh-place-meta {
    display: block;
    font-size: 11px;
    color: var(--mnh-muted);
    line-height: 1.25;
    margin-top: 2px;
}

.mnh-map-area-wrap {
    position: relative;
    overflow: hidden;
    border-radius: 24px;
    border: 1px solid var(--mnh-border);
    background: var(--mnh-bg);
    box-shadow: 0 14px 38px rgba(15, 23, 42, 0.08);
    min-width: 0;
}

.mnh-map-area {
    width: 100%;
    min-height: 360px;
    background: #E8EEF5;
}

.mnh-map-widget .leaflet-container {
    font-family: inherit;
    background: #DDE7F0;
}

.mnh-map-widget .leaflet-tile {
    filter: saturate(0.52) contrast(0.94) brightness(1.08);
}

.mnh-map-widget .leaflet-control-zoom {
    border: none;
    box-shadow: 0 8px 22px rgba(15, 23, 42, 0.10);
}

.mnh-map-widget .leaflet-control-zoom a {
    width: 34px;
    height: 34px;
    line-height: 34px;
    border: none;
    color: var(--mnh-text);
}

.mnh-map-widget .leaflet-popup-content-wrapper {
    border-radius: 14px;
    box-shadow: 0 12px 34px rgba(15, 23, 42, 0.14);
}

.mnh-map-widget .leaflet-popup-content {
    margin: 13px;
    min-width: 200px;
}

.mnh-popup-title {
    font-size: 14px;
    font-weight: 800;
    color: var(--mnh-text);
    margin-bottom: 5px;
}

.mnh-popup-category {
    display: inline-block;
    font-size: 10px;
    font-weight: 800;
    color: #FFFFFF;
    background: var(--mnh-primary);
    border-radius: 999px;
    padding: 4px 8px;
    margin-bottom: 8px;
}

.mnh-popup-category.hotel {
    background: var(--mnh-hotel);
}

.mnh-popup-address {
    font-size: 11px;
    line-height: 1.35;
    color: var(--mnh-muted);
    margin-bottom: 10px;
}

.mnh-popup-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 31px;
    padding: 0 12px;
    border-radius: 999px;
    background: var(--mnh-text);
    color: #FFFFFF !important;
    text-decoration: none !important;
    font-size: 11px;
    font-weight: 800;
}

.mnh-number-marker {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: var(--mnh-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #FFFFFF;
    font-weight: 900;
    font-size: 13px;
    border: 2px solid #FFFFFF;
    box-shadow: 0 7px 18px rgba(15, 23, 42, 0.16);
    position: relative;
}

.mnh-number-marker::after {
    content: "";
    position: absolute;
    bottom: -5px;
    left: 50%;
    width: 8px;
    height: 8px;
    background: var(--mnh-primary);
    transform: translateX(-50%) rotate(45deg);
    border-right: 2px solid #FFFFFF;
    border-bottom: 2px solid #FFFFFF;
}

.mnh-number-marker span {
    position: relative;
    z-index: 2;
}

.mnh-hotel-marker {
    width: 44px;
    height: 44px;
    border-radius: 16px 16px 16px 5px;
    background: var(--mnh-hotel);
    transform: rotate(-45deg);
    border: 3px solid #FFFFFF;
    box-shadow: 0 10px 26px rgba(232, 63, 91, 0.30);
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mnh-hotel-marker span {
    transform: rotate(45deg);
    color: #FFFFFF;
    font-size: 16px;
    font-weight: 900;
    line-height: 1;
}

.mnh-hotel-marker::after {
    content: "";
    position: absolute;
    width: 7px;
    height: 7px;
    right: -5px;
    bottom: -5px;
    background: var(--mnh-hotel);
    border-radius: 50%;
    border: 2px solid #FFFFFF;
}

.mnh-subte-wrap {
    display: flex;
    align-items: center;
    gap: 5px;
    transform: translateY(-1px);
}

.mnh-subte-marker {
    width: 23px;
    height: 23px;
    border-radius: 50%;
    color: #FFFFFF;
    font-weight: 900;
    font-size: 11px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #FFFFFF;
    box-shadow: 0 5px 14px rgba(15, 23, 42, 0.14);
    flex: 0 0 auto;
}

.mnh-subte-label {
    display: inline-block;
    font-size: 11px;
    line-height: 1.05;
    font-weight: 800;
    color: #111827;
    white-space: nowrap;
    background: rgba(255,255,255,.86);
    border-radius: 5px;
    padding: 2px 4px;
    box-shadow: 0 2px 8px rgba(15,23,42,.05);
}

.mnh-subte-a { background: #2D9CDB; }
.mnh-subte-b { background: #EB445A; }
.mnh-subte-c { background: #1565C0; }
.mnh-subte-d { background: #34A853; }
.mnh-subte-e { background: #7C4DFF; }

.mnh-small-dot {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    border: 2px solid #fff;
    box-shadow: 0 5px 12px rgba(15,23,42,.14);
}

.mnh-map-legend {
    position: absolute;
    left: 50%;
    bottom: 14px;
    transform: translateX(-50%);
    z-index: 500;
    display: flex;
    gap: 14px;
    align-items: center;
    background: rgba(255, 255, 255, 0.94);
    backdrop-filter: blur(10px);
    border: 1px solid var(--mnh-border);
    box-shadow: 0 10px 28px rgba(15, 23, 42, 0.10);
    border-radius: 15px;
    padding: 9px 14px;
    max-width: calc(100% - 28px);
    overflow-x: auto;
}

.mnh-map-legend span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    font-weight: 700;
    color: var(--mnh-text);
    white-space: nowrap;
}

.mnh-legend-number,
.mnh-legend-hotel,
.mnh-legend-subte {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #FFFFFF;
    font-size: 10px;
    font-weight: 900;
    font-style: normal;
}

.mnh-legend-number { background: var(--mnh-primary); }
.mnh-legend-hotel { background: var(--mnh-hotel); }
.mnh-legend-subte { background: #2D9CDB; }

.mnh-empty {
    font-size: 12px;
    color: var(--mnh-muted);
    padding: 11px;
    border: 1px dashed var(--mnh-border);
    border-radius: 14px;
    background: #F9FAFB;
}

@media (max-width: 1024px) {
    .mnh-map-layout {
        grid-template-columns: minmax(230px, 290px) minmax(0, 1fr);
        gap: 12px;
    }

    .mnh-map-panel {
        padding: 14px;
    }
}

@media (max-width: 767px) {
    .mnh-map-layout {
        grid-template-columns: 1fr;
    }

    .mnh-map-panel {
        order: 1;
        border-radius: 18px;
    }

    .mnh-map-area-wrap {
        order: 2;
        border-radius: 20px;
    }

    .mnh-place-list {
        max-height: 300px;
    }

    .mnh-filter-buttons {
        flex-wrap: nowrap;
        overflow-x: auto;
        padding-bottom: 4px;
        scrollbar-width: none;
    }

    .mnh-filter-buttons::-webkit-scrollbar {
        display: none;
    }

    .mnh-filter {
        flex: 0 0 auto;
    }

    .mnh-map-legend {
        left: 10px;
        right: 10px;
        bottom: 10px;
        transform: none;
        justify-content: flex-start;
        padding: 8px 10px;
    }

    .mnh-number-marker {
        width: 28px;
        height: 28px;
        font-size: 12px;
    }

    .mnh-hotel-marker {
        width: 40px;
        height: 40px;
    }

    .mnh-subte-label {
        font-size: 10px;
        max-width: 92px;
        overflow: hidden;
        text-overflow: ellipsis;
    }
}
