/* ── Layout principal: formulario | 5px gap | mapa 80% ───────────────── */
.mto-store-map-wrap {
    display: flex;
    flex-direction: row;
    gap: 5px;
    align-items: stretch;
    font-family: inherit;
    width: 100%;
}
.mto-map-area {
    flex: 0 0 80%;
    width: 80%;
    padding-left: 25px !important;
}
.mto-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;
}
.mto-map-form-inner {
    width: 100%;
    max-width: 100%;
}
.mto-form-title {
    font-size: 26px;
    font-weight: 700;
    color: #222;
    margin: 0 0 6px !important;
    line-height: 1.25;
}
.mto-form-subtitle {
    font-size: 18px;
    color: #555;
    margin: 0 0 8px !important;
    line-height: 1.4;
}
.mto-map-search-row {
    display: flex;
    flex-direction: column;
    gap: 8px;
    align-items: stretch;
}
#mto-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;
}
#mto-map-search-input:focus { border-color: #7047EB; }
.mto-map-btn-row {
    display: flex;
    flex-direction: row;
    gap: 8px;
    align-items: stretch;
}
#mto-map-search-btn {
    flex: 1;
    padding: 12px 16px;
    background: #7047EB;
    color: #fff;
    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;
}
#mto-map-search-btn:hover { background: #5a38c4; }
#mto-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;
}
#mto-map-reset-btn:hover { background: #333; }

/* ── Radius slider ───────────────────────────────────────────────────── */
.mto-radius-wrap {
    margin-top: 4px;
    padding-top: 12px;
    border-top: 1px solid #eee;
}
.mto-radius-label-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}
.mto-radius-label {
    font-size: 14px;
    font-weight: 400;
    color: rgb(34, 34, 34);
}
.mto-radius-value {
    font-size: 14px;
    font-weight: 400;
    color: rgb(34, 34, 34);
    min-width: 40px;
    text-align: right;
}
.mto-radius-track-wrap {
    position: relative;
    height: 20px;
    display: flex;
    align-items: center;
}
.mto-radius-track-bg,
.mto-radius-track-range {
    position: absolute;
    left: 0;
    right: 0;
    height: 4px;
    pointer-events: none;
    border-radius: 0;
}
.mto-radius-track-bg { background: rgb(249, 249, 249); z-index: 0; }
.mto-radius-track-range {
    background: linear-gradient(
        90deg,
        rgb(112, 71, 235)  0%,
        rgb(112, 71, 235)  var(--high, 100%),
        rgb(249, 249, 249) var(--high, 100%)
    );
    z-index: 1;
}
#mto-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;
}
#mto-radius-slider::-webkit-slider-container { background: transparent; }
#mto-radius-slider::-webkit-slider-runnable-track {
    height: 4px;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    border-radius: 0;
}
#mto-radius-slider::-moz-range-track {
    height: 4px;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
}
#mto-radius-slider::-ms-track {
    height: 4px;
    background: transparent !important;
    border: none !important;
    color: transparent;
}
#mto-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;
}
#mto-radius-slider::-moz-range-thumb {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: rgb(0, 0, 0);
    cursor: pointer;
    border: none;
    box-shadow: none;
}
.mto-radius-ticks {
    display: flex;
    justify-content: space-between;
    margin-top: 4px;
    font-size: 10px;
    color: #aaa;
}

/* ── Modal / InfoWindow ──────────────────────────────────────────────── */
#mto-map-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.52);
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
}
#mto-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);
}
#mto-map-modal .mto-modal-icon {
    font-size: 42px;
    color: #7047EB;
    margin-bottom: 16px;
    display: block;
}
#mto-map-modal h3 { margin: 0 0 12px; font-size: 22px; font-weight: 700; color: #222; }
#mto-map-modal p  { margin: 0 0 24px; font-size: 15px; color: #555; line-height: 1.6; }
#mto-map-modal-close {
    padding: 12px 32px;
    background: #7047EB;
    color: #fff;
    border: none;
    border-radius: 0;
    cursor: pointer;
    font-size: 15px;
    font-weight: 700;
    transition: background .2s;
}
#mto-map-modal-close:hover { background: #5a38c4; }
.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; }
.mto-iw {
    width: 210px;
    text-align: center;
    font-family: inherit;
    padding: 36px 14px 14px;
    box-sizing: border-box;
}
.mto-iw-logo { display: flex; justify-content: center; margin-bottom: 10px; }
.mto-iw-logo img {
    width: 80px; height: 80px;
    border-radius: 50%; object-fit: cover; border: 2px solid #eee;
}
.mto-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: #7047EB;
}
.mto-iw-name { margin: 0 0 6px; font-size: 14px; font-weight: 600; }
.mto-iw-name a { color: #333; text-decoration: underline; }
.mto-iw-name a:hover { color: #7047EB; }
.mto-iw-addr { margin: 0; font-size: 12px; color: #555; line-height: 1.5; }

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