/* =========================================================
   PROTUREC - MAPA INTERACTIVO BAÑOS
   Color principal: #4054b2
========================================================= */

.pmb-shell {
    --pmb-blue: #4054b2;
    --pmb-blue-dark: #324497;
    --pmb-text: #333333;
    --pmb-muted: #777777;
    --pmb-line: #e2e2e2;
    --pmb-soft: #f7f8fd;

    width: 100%;
    max-width: 1450px;
    margin: 0 auto;
    font-family: Verdana, Arial, sans-serif;
    color: var(--pmb-text);
    box-sizing: border-box;
}

.pmb-shell *,
.pmb-shell *::before,
.pmb-shell *::after {
    box-sizing: border-box;
}

.pmb-shell a,
.pmb-shell a:hover,
.pmb-shell a:focus {
    text-decoration: none !important;
}

/* CABECERA */

.pmb-header {
    margin-bottom: 24px;
    text-align: center;
}

.pmb-header h2 {
    margin: 0 0 8px;
    padding: 0;
    color: var(--pmb-blue);
    font-family: Verdana, Arial, sans-serif;
    font-size: 30px;
    line-height: 1.3;
    font-weight: 700;
}

.pmb-header p {
    max-width: 780px;
    margin: 0 auto;
    color: #666666;
    font-size: 13px;
    line-height: 1.6;
}

/* LAYOUT */

.pmb-layout {
    display: grid;
    grid-template-columns: 330px minmax(0, 1fr);
    gap: 18px;
    align-items: stretch;
}

/* SIDEBAR */

.pmb-sidebar {
    display: flex;
    flex-direction: column;
    height: 650px;
    overflow: hidden;
    background: #ffffff;
    border: 1px solid var(--pmb-line);
    border-radius: 12px;
}

.pmb-sidebar-head {
    padding: 17px 17px 14px;
    background: #f7f8fd;
    border-bottom: 1px solid #ebebeb;
}

.pmb-sidebar-head strong {
    display: block;
    margin-bottom: 5px;
    color: var(--pmb-blue);
    font-size: 15px;
    line-height: 1.3;
}

.pmb-sidebar-head span {
    display: block;
    color: #7a7a7a;
    font-size: 10px;
    line-height: 1.5;
}

.pmb-search {
    padding: 11px;
    background: #ffffff;
    border-bottom: 1px solid #eeeeee;
}

.pmb-search-input {
    width: 100%;
    height: 40px;
    padding: 0 11px;
    color: #444444;
    background: #ffffff;
    border: 1px solid #d8d8d8;
    border-radius: 7px;
    outline: none;
    font-family: Verdana, Arial, sans-serif;
    font-size: 11px;
}

.pmb-search-input:focus {
    border-color: var(--pmb-blue);
    box-shadow: 0 0 0 2px rgba(64, 84, 178, .08);
}

.pmb-list {
    flex: 1;
    padding: 7px;
    overflow-y: auto;
    overflow-x: hidden;
}

.pmb-list::-webkit-scrollbar {
    width: 7px;
}

.pmb-list::-webkit-scrollbar-track {
    background: #f2f2f2;
}

.pmb-list::-webkit-scrollbar-thumb {
    background: #c7c7c7;
    border-radius: 20px;
}

.pmb-item {
    display: flex;
    gap: 9px;
    align-items: flex-start;
    width: 100%;
    margin: 0 0 4px;
    padding: 10px 9px;
    color: inherit;
    background: #ffffff;
    border: 1px solid transparent;
    border-radius: 8px;
    cursor: pointer;
    transition: background .2s ease, border-color .2s ease, transform .2s ease;
}

.pmb-item:hover {
    background: #f6f7ff;
    border-color: #dce0f5;
    transform: translateX(2px);
}

.pmb-item.is-active {
    background: #eef0fc;
    border-color: #bec6ed;
}

.pmb-item.is-pending {
    cursor: default;
}

.pmb-item-number {
    flex: 0 0 29px;
    width: 29px;
    height: 29px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    background: var(--pmb-blue);
    border-radius: 50%;
    font-size: 10px;
    line-height: 1;
    font-weight: 700;
}

.pmb-item.is-pending .pmb-item-number {
    background: #a9acb8;
}

.pmb-item-copy {
    flex: 1;
    min-width: 0;
}

.pmb-item-name {
    display: block;
    color: #333333;
    font-size: 11px;
    line-height: 1.4;
    font-weight: 700;
}

.pmb-item-status {
    display: block;
    margin-top: 4px;
    color: #8a8a8a;
    font-size: 8px;
    line-height: 1.4;
}

.pmb-item-price {
    color: var(--pmb-blue);
    font-weight: 700;
}

/* MAPA */

.pmb-map {
    width: 100%;
    height: 650px;
    overflow: hidden;
    background: #eeeeee;
    border: 1px solid var(--pmb-line);
    border-radius: 12px;
}

.pmb-map .leaflet-control-attribution {
    font-size: 8px;
}

/* MARCADOR */

.pmb-marker-wrapper {
    background: transparent !important;
    border: 0 !important;
}

.pmb-marker {
    width: 39px;
    height: 39px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    background: var(--pmb-blue);
    border: 3px solid #ffffff;
    border-radius: 50% 50% 50% 0;
    box-shadow: 0 3px 9px rgba(0, 0, 0, .28);
    transform: rotate(-45deg);
    transition: transform .18s ease, background .18s ease;
}

.pmb-marker:hover {
    background: var(--pmb-blue-dark);
    transform: rotate(-45deg) scale(1.09);
}

.pmb-marker span {
    transform: rotate(45deg);
    font-size: 10px;
    font-weight: 700;
}

/* POPUP */

.pmb-map .leaflet-popup-content-wrapper {
    padding: 0 !important;
    overflow: hidden;
    border-radius: 10px !important;
}

.pmb-map .leaflet-popup-content {
    width: 285px !important;
    margin: 0 !important;
}

.pmb-popup {
    padding: 17px;
    font-family: Verdana, Arial, sans-serif;
}

.pmb-popup h3 {
    margin: 0 0 10px;
    padding: 0;
    color: var(--pmb-blue);
    font-family: Verdana, Arial, sans-serif;
    font-size: 17px;
    line-height: 1.35;
    font-weight: 700;
}

.pmb-popup-address {
    display: flex;
    gap: 6px;
    align-items: flex-start;
    margin-bottom: 12px;
    color: #707070;
    font-size: 10px;
    line-height: 1.55;
}

.pmb-popup-pin {
    flex: 0 0 auto;
    color: var(--pmb-blue);
    font-size: 13px;
}

.pmb-popup-price {
    margin: 1px 0 12px;
    color: #333333;
}

.pmb-popup-price small {
    display: inline;
    margin-right: 4px;
    color: #777777;
    font-size: 10px;
}

.pmb-popup-price strong {
    color: var(--pmb-blue);
    font-size: 17px;
}

.pmb-popup-whatsapp {
    display: inline-flex !important;
    align-items: center;
    gap: 7px;
    margin: 0 0 14px;
    color: #3d7048 !important;
    font-size: 10px;
    line-height: 1.4;
    text-decoration: none !important;
}

.pmb-popup-whatsapp:hover {
    color: #285c35 !important;
}

.pmb-wa-icon {
    flex: 0 0 20px;
    width: 20px;
    height: 20px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    background: #25d366;
    border-radius: 50%;
    font-size: 11px;
    line-height: 1;
    font-weight: 700;
}

.pmb-popup-whatsapp strong {
    font-size: 10px;
}

.pmb-popup-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
}

.pmb-popup-btn,
.pmb-popup-btn:visited {
    display: inline-flex !important;
    flex: 1 1 115px;
    min-height: 37px;
    padding: 8px 11px;
    align-items: center;
    justify-content: center;
    color: #ffffff !important;
    background: var(--pmb-blue);
    border: 1px solid var(--pmb-blue);
    border-radius: 6px;
    font-size: 9px;
    line-height: 1.3;
    font-weight: 700;
    text-align: center;
    text-decoration: none !important;
    transition: background .2s ease, border-color .2s ease;
}

.pmb-popup-btn:hover,
.pmb-popup-btn:focus {
    color: #ffffff !important;
    background: var(--pmb-blue-dark);
    border-color: var(--pmb-blue-dark);
    text-decoration: none !important;
}

.pmb-popup-pending {
    display: inline-block;
    padding: 7px 9px;
    color: #777777;
    background: #f4f4f4;
    border: 1px solid #e2e2e2;
    border-radius: 5px;
    font-size: 9px;
}

/* PIE */

.pmb-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 18px;
    margin-top: 11px;
    color: #777777;
    font-size: 9px;
    line-height: 1.5;
}

.pmb-footer > span:first-child {
    display: flex;
    align-items: center;
    gap: 6px;
}

.pmb-footer-dot {
    flex: 0 0 9px;
    width: 9px;
    height: 9px;
    display: inline-block;
    background: var(--pmb-blue);
    border-radius: 50%;
}

/* RESPONSIVE */

@media (max-width: 900px) {
    .pmb-layout {
        grid-template-columns: 1fr;
    }

    .pmb-sidebar {
        height: auto;
        max-height: 410px;
    }

    .pmb-list {
        max-height: 280px;
    }

    .pmb-map {
        height: 520px;
    }
}

@media (max-width: 550px) {
    .pmb-header h2 {
        font-size: 23px;
    }

    .pmb-header p {
        font-size: 11px;
    }

    .pmb-sidebar,
    .pmb-map {
        border-radius: 8px;
    }

    .pmb-map {
        height: 445px;
    }

    .pmb-footer {
        display: block;
    }

    .pmb-footer > span {
        margin-bottom: 4px;
    }

    .pmb-map .leaflet-popup-content {
        width: 240px !important;
    }

    .pmb-popup-actions {
        display: grid;
        grid-template-columns: 1fr;
    }

    .pmb-popup-btn {
        width: 100%;
    }
}
