/* ── Layout principal: formulario | 5px gap | mapa 80% ───────────────── */
.mp-store-map-wrap {
    display: flex;
    flex-direction: row;
    gap: 5px;
    align-items: stretch;
    font-family: inherit;
    width: 100%;
}
.mp-map-area {
    flex: 0 0 80%;
    width: 80%;
    padding-left: 25px !important;
}
.mp-map-form-area {
    flex: 1 1 0;
    min-width: 0;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    background: #fff;
    padding: 40px 0;
    box-sizing: border-box;
}
.mp-map-form-inner {
    width: 100%;
    max-width: 100%;
}
.mp-form-title {
    font-size: 26px;
    font-weight: 700;
    color: #222;
    margin: 0 0 6px !important;
    line-height: 1.25;
}
.mp-form-subtitle {
    font-size: 18px;
    color: #555;
    margin: 0 0 8px !important;
    line-height: 1.4;
}
.mp-map-search-row {
    display: flex;
    flex-direction: column;
    gap: 8px;
    align-items: stretch;
}
#mp-map-search-input {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid #ccc;
    border-radius: 0;
    font-size: 15px;
    box-sizing: border-box;
    outline: none;
    margin-bottom: 0;
    transition: border-color .2s;
}
#mp-map-search-input:focus {
    border-color: #F9BC06;
}
.mp-map-btn-row {
    display: flex;
    flex-direction: row;
    gap: 8px;
    align-items: stretch;
}
#mp-map-search-btn {
    flex: 1;
    padding: 12px 16px;
    background: #F9BC06;
    color: #222;
    border: none;
    border-radius: 0;
    cursor: pointer;
    font-size: 14px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    transition: background .2s;
    white-space: nowrap;
}
#mp-map-search-btn:hover { background: #e4b800; }
#mp-map-reset-btn {
    flex-shrink: 0;
    width: 44px;
    padding: 12px;
    background: #555;
    color: #fff;
    border: none;
    border-radius: 0;
    cursor: pointer;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background .2s;
}
#mp-map-reset-btn:hover { background: #333; }

/* ── Radius slider — igual al Price Range de JetSmartFilters ─────────── */
.mp-radius-wrap {
    margin-top: 4px;
    padding-top: 12px;
    border-top: 1px solid #eee;
}
.mp-radius-label-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}
.mp-radius-label {
    font-size: 14px;
    font-weight: 400;
    color: rgb(34, 34, 34);
}
.mp-radius-value {
    font-size: 14px;
    font-weight: 400;
    color: rgb(34, 34, 34);
    min-width: 40px;
    text-align: right;
}
/* Contenedor del slider — posición relativa para el track personalizado */
.mp-radius-track-wrap {
    position: relative;
    height: 20px;
    display: flex;
    align-items: center;
}
/* Tracks absolutos debajo del input */
.mp-radius-track-bg,
.mp-radius-track-range {
    position: absolute;
    left: 0;
    right: 0;
    height: 4px;
    pointer-events: none;
    border-radius: 0;
}
.mp-radius-track-bg {
    background: rgb(249, 249, 249);
    z-index: 0;
}
.mp-radius-track-range {
    background: linear-gradient(
        90deg,
        rgb(251, 187, 3)   0%,
        rgb(251, 187, 3)   var(--high, 100%),
        rgb(249, 249, 249) var(--high, 100%)
    );
    z-index: 1;
}
/* Input range: completamente transparente encima de los tracks */
#mp-radius-slider {
    position: relative;
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 20px;
    background: transparent !important;
    outline: none !important;
    border: none !important;
    box-shadow: none !important;
    cursor: pointer;
    margin: 0;
    padding: 0;
    z-index: 2;
}
/* Eliminar el track nativo en todos los browsers */
#mp-radius-slider::-webkit-slider-container { background: transparent; }
#mp-radius-slider::-webkit-slider-runnable-track {
    height: 4px;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    border-radius: 0;
}
#mp-radius-slider::-moz-range-track {
    height: 4px;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
}
#mp-radius-slider::-ms-track {
    height: 4px;
    background: transparent !important;
    border: none !important;
    color: transparent;
}
/* Thumb negro igual al Price Range */
#mp-radius-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: rgb(0, 0, 0);
    cursor: pointer;
    border: none;
    box-shadow: none;
    margin-top: -8px;
}
#mp-radius-slider::-moz-range-thumb {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: rgb(0, 0, 0);
    cursor: pointer;
    border: none;
    box-shadow: none;
}
.mp-radius-ticks {
    display: flex;
    justify-content: space-between;
    margin-top: 4px;
    font-size: 10px;
    color: #aaa;
}

/* ── Modals / InfoWindow ──────────────────────────────────────────────── */
#mp-map-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.52);
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
}
#mp-map-modal {
    background: #fff;
    border-radius: 0;
    padding: 40px 36px;
    max-width: 380px;
    width: 90%;
    text-align: center;
    box-shadow: 0 8px 40px rgba(0,0,0,.2);
}
#mp-map-modal .mp-modal-icon {
    font-size: 42px;
    color: #F9BC06;
    margin-bottom: 16px;
    display: block;
}
#mp-map-modal h3 {
    margin: 0 0 12px;
    font-size: 22px;
    font-weight: 700;
    color: #222;
}
#mp-map-modal p {
    margin: 0 0 24px;
    font-size: 15px;
    color: #555;
    line-height: 1.6;
}
#mp-map-modal-close {
    padding: 12px 32px;
    background: #F9BC06;
    color: #222;
    border: none;
    border-radius: 0;
    cursor: pointer;
    font-size: 15px;
    font-weight: 700;
    transition: background .2s;
}
#mp-map-modal-close:hover { background: #e4b800; }
.gm-style .gm-style-iw-c {
    padding: 0 !important;
    border-radius: 0 !important;
    overflow: hidden !important;
}
.gm-style .gm-style-iw-d {
    overflow: hidden !important;
    padding: 0 !important;
    max-height: none !important;
}
.gm-style .gm-style-iw-ch {
    padding: 0 !important;
    line-height: 0 !important;
    height: 0 !important;
    overflow: hidden !important;
}
.gm-style .gm-style-iw-chr {
    height: 0 !important;
    overflow: visible !important;
}
.mp-iw {
    width: 210px;
    text-align: center;
    font-family: inherit;
    padding: 36px 14px 14px;
    box-sizing: border-box;
}
.mp-iw-logo {
    display: flex;
    justify-content: center;
    margin-bottom: 10px;
}
.mp-iw-logo img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #eee;
}
.mp-iw-fa-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: #f5f5f5;
    border: 2px solid #eee;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    color: #c0392b;
}
.mp-iw-name {
    margin: 0 0 6px;
    font-size: 14px;
    font-weight: 600;
}
.mp-iw-name a { color: #333; text-decoration: underline; }
.mp-iw-name a:hover { color: #c0392b; }
.mp-iw-addr {
    margin: 0;
    font-size: 12px;
    color: #555;
    line-height: 1.5;
}

/* ── Responsive: apilado bajo 1300px — mapa arriba, form abajo ────────── */
@media (max-width: 1300px) {
    .mp-store-map-wrap   { flex-direction: column; gap: 0; }
    .mp-map-area         { flex: none; width: 100%; padding-left: 0 !important; order: 1; }
    .mp-map-form-area    { flex: none; width: 100%; padding: 24px 0; padding-top: 20px; order: 2; }
    .mp-map-form-inner   { max-width: 100%; }
    .mp-form-title       { font-size: 22px; }
    .mp-form-subtitle    { font-size: 16px; }
    .mp-map-search-row   { flex-direction: column; gap: 8px; }
    #mp-map-search-input { width: 100%; }
    .mp-radius-wrap      { margin-top: 4px; }
}
@media (max-width: 768px) {
    .mp-map-form-area    { padding: 20px 0 16px; }
    .mp-map-btn-row      { gap: 8px; }
    #mp-map-search-btn   { flex: 1; }
    #mp-map-reset-btn    { width: 44px; }
    .mp-form-title       { font-size: 20px; }
    .mp-form-subtitle    { font-size: 15px; }
    #mp-map-modal        { padding: 28px 20px; }
    #mp-map-modal h3     { font-size: 18px; }
    #mp-map-modal p      { font-size: 14px; }
}
@media (max-width: 480px) {
    .mp-form-title       { font-size: 18px; }
    .mp-form-subtitle    { font-size: 14px; }
    #mp-map-search-input { font-size: 14px; }
}
