/* ═════════════════════════════════════════════════════════════════════════════
   Map Zone Plugin — Frontend Styles v4.3.0
   شامل: استایل‌های اصلی نقشه + پریویو + مودال پاپ‌آپ + فیلد
   ═════════════════════════════════════════════════════════════════════════════ */

.mzp-frontend-wrap,
.mzp-shortcode-wrap,
.mzp-field-wrap {
    font-family: Tahoma, 'Vazirmatn', sans-serif;
    direction: rtl;
    max-width: 100%;
}

.mzp-title {
    margin-bottom: 12px;
    font-size: 18px;
    color: #1a1a2e;
}

/* ── Buttons (مشترک) ─────────────────────────────────────────────────────── */
.mzp-btn {
    padding: 9px 18px;
    border: 1px solid transparent;
    border-radius: 8px;
    font-size: 14px;
    cursor: pointer;
    font-family: inherit;
    transition: all .2s;
    line-height: 1.2;
}
.mzp-btn:disabled { opacity: .5; cursor: not-allowed; }

.mzp-btn-locate  { background: #2c3e50; color: #fff; border-color: #2c3e50; }
.mzp-btn-locate:hover:not(:disabled) { background: #34495e; border-color: #34495e; }

.mzp-btn-submit,
.mzp-btn-confirm {
    background: #27ae60;
    color: #fff;
    padding: 12px;
    font-size: 16px;
    border-radius: 8px;
    border-color: #229954;
}
.mzp-btn-submit  { width: 100%; margin-top: 10px; }
.mzp-btn-submit:hover:not(:disabled),
.mzp-btn-confirm:hover:not(:disabled) { background: #2ecc71; }

.mzp-btn-cancel {
    background: #f1f1f1;
    color: #555;
    border-color: #ddd;
}
.mzp-btn-cancel:hover { background: #e8e8e8; }

/* ── Toolbar/Status ─────────────────────────────────────────────────────── */
.mzp-status-bar { font-size: 13px; font-weight: 600; }

/* ── Coords display ─────────────────────────────────────────────────────── */
.mzp-coords-display {
    font-size: 13px;
    color: #555;
    padding: 8px 0;
    direction: ltr;
    text-align: center;
}

.mzp-result-msg {
    margin-top: 12px;
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
}
.mzp-msg-success { background: #d4edda; color: #155724; border: 1px solid #c3e6cb; }
.mzp-msg-error   { background: #f8d7da; color: #721c24; border: 1px solid #f5c6cb; }

/* ═════════════════════════════════════════════════════════════════════════
   FIELD WIDGET — پریویو قابل کلیک (قبل از باز شدن پاپ‌آپ)
   ═════════════════════════════════════════════════════════════════════════ */
.mzp-field-wrap { margin: 12px 0; }

.mzp-field-label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 8px;
}
.mzp-required { color: #e74c3c; }

.mzp-field-preview {
    position: relative;
    display: block;
    width: 100%;
    height: 150px;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    border: 2px dashed #b0c4d8;
    background: linear-gradient(135deg, #f0f7ff 0%, #e8f0fe 100%);
    transition: all .2s ease;
    outline: none;
}
.mzp-field-preview:hover,
.mzp-field-preview:focus {
    border-color: #3498db;
    box-shadow: 0 4px 16px rgba(52,152,219,0.18);
    transform: translateY(-1px);
}
.mzp-field-preview.mzp-has-value {
    border-style: solid;
    border-color: #27ae60;
    background: linear-gradient(135deg, #eaf9ef 0%, #d4edda 100%);
}

.mzp-preview-map {
    position: absolute;
    inset: 0;
    background-color: #f2efe9;
    opacity: 0.85;
    pointer-events: none;
}
.mzp-preview-map .leaflet-control-container { display: none; }

.mzp-preview-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 18px;
    background: linear-gradient(90deg, rgba(255,255,255,0.92) 0%, rgba(255,255,255,0.75) 60%, rgba(255,255,255,0.45) 100%);
    pointer-events: none;
}
.mzp-field-preview.mzp-has-value .mzp-preview-overlay {
    background: linear-gradient(90deg, rgba(212,237,218,0.95) 0%, rgba(212,237,218,0.7) 60%, rgba(212,237,218,0.35) 100%);
}

.mzp-preview-icon {
    font-size: 42px;
    line-height: 1;
    flex-shrink: 0;
    filter: drop-shadow(0 3px 6px rgba(0,0,0,0.15));
}

.mzp-preview-text {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
}
.mzp-preview-title {
    font-size: 15px;
    font-weight: 700;
    color: #1a1a2e;
}
.mzp-preview-subtitle {
    font-size: 13px;
    color: #667;
}
.mzp-preview-coords {
    font-size: 12px;
    color: #444;
    direction: ltr;
    font-family: monospace;
    background: rgba(255,255,255,0.6);
    padding: 2px 8px;
    border-radius: 4px;
    display: inline-block;
    width: fit-content;
}
.mzp-preview-zone {
    font-size: 12px;
    color: #1e8449;
    font-weight: 600;
}

.mzp-preview-cta {
    flex-shrink: 0;
    background: #3498db;
    color: #fff;
    padding: 8px 14px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    box-shadow: 0 2px 6px rgba(52,152,219,0.3);
}
.mzp-field-preview.mzp-has-value .mzp-preview-cta {
    background: #27ae60;
    box-shadow: 0 2px 6px rgba(39,174,96,0.3);
}

.mzp-field-msg {
    margin-top: 6px;
    font-size: 12px;
    min-height: 16px;
}
.mzp-field-msg.mzp-msg-ok    { color: #1e8449; }
.mzp-field-msg.mzp-msg-warn  { color: #c0392b; }

@media (max-width: 480px) {
    .mzp-field-preview { height: 130px; }
    .mzp-preview-icon  { font-size: 34px; }
    .mzp-preview-title { font-size: 14px; }
    .mzp-preview-cta   { padding: 6px 10px; font-size: 12px; }
}

/* ═════════════════════════════════════════════════════════════════════════
   MODAL — پاپ‌آپ نقشه کامل
   ═════════════════════════════════════════════════════════════════════════ */
.mzp-modal-root {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 24px 18px;
}
.mzp-modal-root.mzp-open { display: flex; }

.mzp-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(20,28,40,0.55);
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
    animation: mzp-fadein .2s ease-out;
}

.mzp-modal-dialog {
    position: relative;
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.35);
    width: 100%;
    max-width: 900px;
    max-height: 88vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    direction: rtl;
    font-family: Tahoma, 'Vazirmatn', sans-serif;
    animation: mzp-slideup .25s ease-out;
}

@keyframes mzp-fadein { from { opacity: 0; } to { opacity: 1; } }
@keyframes mzp-slideup {
    from { opacity: 0; transform: translateY(20px) scale(0.98); }
    to   { opacity: 1; transform: translateY(0) scale(1); }
}

.mzp-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 18px;
    border-bottom: 1px solid #eef0f4;
    background: #fbfcfd;
}
.mzp-modal-title {
    margin: 0;
    font-size: 17px;
    font-weight: 700;
    color: #1a1a2e;
}
.mzp-modal-close {
    background: none;
    border: none;
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
    color: #888;
    padding: 0 6px;
    transition: color .15s;
}
.mzp-modal-close:hover { color: #e74c3c; }

.mzp-modal-body {
    flex: 1;
    padding: 14px 16px 6px;
    overflow-y: auto;
    min-height: 0;
}

.mzp-modal-toolbar {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
    flex-wrap: wrap;
}

.mzp-modal-map-container {
    position: relative;
    width: 100%;
    border-radius: 10px;
    overflow: hidden;
}
.mzp-modal-map {
    width: 100%;
    height: 55vh;
    min-height: 360px;
    max-height: 520px;
    border-radius: 10px;
    background-color: #f2efe9;
    border: 2px solid #ddd;
}

.mzp-modal-footer {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    padding: 12px 18px;
    border-top: 1px solid #eef0f4;
    background: #fbfcfd;
}
.mzp-modal-footer .mzp-btn { padding: 10px 20px; font-size: 14px; }
.mzp-modal-footer .mzp-btn-confirm { width: auto; margin-top: 0; }

@media (max-width: 640px) {
    .mzp-modal-root   { padding: 10px; }
    .mzp-modal-dialog { max-height: calc(100vh - 20px); max-width: 100%; border-radius: 12px; }
    .mzp-modal-map    { height: 55vh; min-height: 300px; }
    .mzp-modal-footer { flex-direction: column-reverse; }
    .mzp-modal-footer .mzp-btn { width: 100%; }
}

/* ═════════════════════════════════════════════════════════════════════════
   نقشه اصلی / لایه‌ها (بدون تغییر از 4.1.0)
   ═════════════════════════════════════════════════════════════════════════ */
#mzp-frontend-map,
.mzp-modal-map {
    box-shadow: 0 4px 20px rgba(0,0,0,.1);
}

/* ── User location dot ──────────────────────────────────────────────────── */
.mzp-user-icon { background: transparent !important; border: none !important; }

.mzp-pulse-dot {
    width: 18px;
    height: 18px;
    background: #e74c3c;
    border-radius: 50%;
    border: 3px solid #fff;
    box-shadow: 0 0 0 rgba(231,76,60,.4);
    animation: mzp-pulse 1.5s infinite;
}
.mzp-pulse-red {
    background: #e74c3c !important;
    border-color: #fff !important;
    animation: mzp-pulse-red 1.2s infinite !important;
}

@keyframes mzp-pulse {
    0%   { box-shadow: 0 0 0 0 rgba(39, 174, 96, .55); background: #27ae60; }
    70%  { box-shadow: 0 0 0 14px rgba(39, 174, 96, 0); background: #27ae60; }
    100% { box-shadow: 0 0 0 0 rgba(39, 174, 96, 0); background: #27ae60; }
}
@keyframes mzp-pulse-red {
    0%   { box-shadow: 0 0 0 0 rgba(231, 76, 60, .65); }
    70%  { box-shadow: 0 0 0 14px rgba(231, 76, 60, 0); }
    100% { box-shadow: 0 0 0 0 rgba(231, 76, 60, 0); }
}

/* ── Business badge (zoom-aware + glassmorphism) ────────────────────────── */
.mzp-biz-marker-wrap { background: transparent !important; border: none !important; }
.mzp-biz-dot-icon    { background: transparent !important; border: none !important; }
.mzp-biz-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #2271b1;
    border: 2.5px solid #fff;
    box-shadow: 0 2px 6px rgba(0,0,0,0.35);
}

.mzp-biz-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: rgba(34, 113, 177, 0.55);
    color: #fff;
    font-family: 'Vazirmatn', Tahoma, sans-serif;
    font-size: 12px;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 20px;
    white-space: nowrap;
    box-shadow:
        0 2px 10px rgba(0,0,0,0.2),
        inset 0 1px 0 rgba(255,255,255,0.4);
    border: 1px solid rgba(255,255,255,0.55);
    -webkit-backdrop-filter: blur(6px) saturate(1.4);
    backdrop-filter: blur(6px) saturate(1.4);
    text-shadow: 0 1px 2px rgba(0,0,0,0.35);
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
    transform: translate(-50%, -100%);
    position: relative;
    direction: rtl;
}
.mzp-biz-badge:hover {
    transform: translate(-50%, -100%) scale(1.08);
    box-shadow: 0 4px 14px rgba(0,0,0,0.3);
    z-index: 500;
}
.mzp-biz-badge-emoji { font-size: 1em; line-height: 1; }
.mzp-biz-badge-text  { line-height: 1; }

.mzp-biz-badge.mzp-zoom-xs { font-size: 9px;  padding: 2px 6px;  gap: 2px; }
.mzp-biz-badge.mzp-zoom-sm { font-size: 11px; padding: 3px 8px;  gap: 3px; }
.mzp-biz-badge.mzp-zoom-md { font-size: 13px; padding: 5px 12px; gap: 4px; }
.mzp-biz-badge.mzp-zoom-lg { font-size: 15px; padding: 6px 14px; gap: 5px; }

.mzp-biz-badge.mzp-zoom-xs .mzp-biz-badge-text { display: none; }

/* ── Business popup ─────────────────────────────────────────────────────── */
.mzp-biz-popup-wrapper .leaflet-popup-content-wrapper {
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
}
.mzp-biz-popup {
    text-align: center;
    padding: 8px 4px;
    font-family: Tahoma, 'Vazirmatn', sans-serif;
}
.mzp-biz-popup-emoji { font-size: 40px; margin-bottom: 6px; }
.mzp-biz-popup-name {
    display: block;
    font-size: 15px;
    color: #1a1a2e;
    margin-bottom: 6px;
}
.mzp-biz-popup-desc {
    font-size: 12px;
    color: #666;
    margin: 0 0 10px;
    line-height: 1.6;
}
.mzp-biz-popup-btn {
    display: inline-block;
    background: #3498db;
    color: #fff !important;
    padding: 7px 20px;
    border-radius: 6px;
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
    transition: background 0.2s;
}
.mzp-biz-popup-btn:hover {
    background: #2980b9;
    color: #fff !important;
    text-decoration: none;
}

/* ── Zone label ─────────────────────────────────────────────────────────── */
.mzp-zone-label-icon { background: transparent !important; border: none !important; }
.mzp-zone-label-badge {
    display: inline-block;
    padding: 0;
    border: none;
    background: transparent;
    color: #c0392b;
    font-family: 'Vazirmatn', Tahoma, sans-serif;
    font-size: 18px;
    font-weight: 800;
    letter-spacing: 1px;
    text-align: center;
    white-space: nowrap;
    pointer-events: none;
    direction: rtl;
    opacity: 0.35;
    text-shadow:
        -1px -1px 0 rgba(255,255,255,0.9),
         1px -1px 0 rgba(255,255,255,0.9),
        -1px  1px 0 rgba(255,255,255,0.9),
         1px  1px 0 rgba(255,255,255,0.9),
         0 2px 4px rgba(255,255,255,0.7);
    user-select: none;
    -webkit-user-select: none;
    transform: rotate(-4deg);
}
.mzp-zone-label-badge small {
    display: block;
    font-size: 12px;
    font-weight: 600;
    margin-top: 3px;
    opacity: 0.85;
    letter-spacing: 0;
}

/* ── Phone-map links ────────────────────────────────────────────────────── */
.mzp-map-links {
    margin-top: 12px;
    padding: 12px;
    background: #f0f7ff;
    border-radius: 8px;
    border: 1px solid #d0e4fb;
}
.mzp-map-links-title {
    font-weight: 700;
    margin: 0 0 8px;
    font-size: 13px;
    color: #1a4a7a;
}
.mzp-map-links-row { display: flex; gap: 8px; flex-wrap: wrap; }
.mzp-map-link {
    display: inline-block;
    padding: 7px 14px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    color: #fff;
    transition: opacity 0.15s, transform 0.15s;
}
.mzp-map-link:hover { opacity: 0.9; color: #fff; text-decoration: none; transform: translateY(-1px); }
.mzp-link-google { background: #4285f4; }
.mzp-link-waze   { background: #33ccff; color: #1a1a2e !important; }
.mzp-link-waze:hover { color: #1a1a2e !important; }
.mzp-link-apple  { background: #555; }

.mzp-coords-text {
    margin: 10px 0 0;
    font-size: 12px;
    color: #555;
    direction: ltr;
    text-align: center;
}
.mzp-coords-text code {
    background: #fff;
    padding: 2px 8px;
    border-radius: 4px;
    border: 1px solid #e0e0e0;
}

/* ── Attribution ────────────────────────────────────────────────────────── */
.leaflet-control-attribution {
    font-family: Tahoma, 'Vazirmatn', sans-serif !important;
    direction: ltr;
}

/* Canvas label overlay */
.mzp-label-canvas { position: absolute; pointer-events: none; }

/* ═════════════════════════════════════════════════════════════════════════
   CENTER PIN — پین مرکزی ثابت
   ═════════════════════════════════════════════════════════════════════════ */
.mzp-center-pin {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -100%);
    pointer-events: none;
    z-index: 900;
    width: 56px;
    height: 68px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    filter: drop-shadow(0 6px 6px rgba(0,0,0,0.28));
    transition: transform .18s ease-out;
    will-change: transform;
}

.mzp-center-pin-emoji {
    font-size: 42px;
    line-height: 1;
    text-align: center;
    user-select: none;
    -webkit-user-select: none;
    transform-origin: 50% 100%;
    animation: mzp-pin-bob 2.4s ease-in-out infinite;
}

.mzp-center-pin-dot {
    margin-top: -6px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #27ae60;
    border: 2px solid #fff;
    box-shadow: 0 0 0 0 rgba(39,174,96,0.55);
    animation: mzp-pin-pulse 1.6s ease-out infinite;
}

.mzp-center-pin.mzp-pin-out .mzp-center-pin-dot {
    background: #e74c3c;
    animation: mzp-pin-pulse-red 1.2s ease-out infinite;
}
.mzp-center-pin.mzp-pin-out .mzp-center-pin-emoji { filter: grayscale(0.3); }

@keyframes mzp-pin-bob {
    0%   { transform: translateY(0); }
    50%  { transform: translateY(-4px); }
    100% { transform: translateY(0); }
}
@keyframes mzp-pin-pulse {
    0%   { box-shadow: 0 0 0 0 rgba(39,174,96,0.55); }
    70%  { box-shadow: 0 0 0 12px rgba(39,174,96,0); }
    100% { box-shadow: 0 0 0 0 rgba(39,174,96,0); }
}
@keyframes mzp-pin-pulse-red {
    0%   { box-shadow: 0 0 0 0 rgba(231,76,60,0.65); }
    70%  { box-shadow: 0 0 0 14px rgba(231,76,60,0); }
    100% { box-shadow: 0 0 0 0 rgba(231,76,60,0); }
}

.mzp-pin-hint {
    position: absolute;
    top: 12px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0,0,0,0.78);
    color: #fff;
    padding: 8px 14px;
    border-radius: 20px;
    font-size: 12.5px;
    font-weight: 500;
    z-index: 950;
    pointer-events: none;
    opacity: 1;
    transition: opacity .5s ease-out;
    max-width: calc(100% - 40px);
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    box-shadow: 0 2px 10px rgba(0,0,0,0.25);
}
.mzp-pin-hint-fade { opacity: 0; }

@media (max-width: 480px) {
    .mzp-center-pin { width: 48px; height: 58px; }
    .mzp-center-pin-emoji { font-size: 36px; }
    .mzp-pin-hint { font-size: 11.5px; padding: 6px 12px; white-space: normal; }
}

/* ═════════════════════════════════════════════════════════════════════════
   WooCommerce wrap
   ═════════════════════════════════════════════════════════════════════════ */
.mzp-wc-location-wrap {
    margin: 22px 0;
    padding: 16px;
    background: #fafbfc;
    border: 1px solid #e3e6eb;
    border-radius: 10px;
}
.mzp-wc-location-title {
    margin: 0 0 6px;
    font-size: 16px;
    color: #2c3e50;
}
.mzp-wc-location-desc {
    margin: 0 0 10px;
    font-size: 13px;
    color: #667;
}

/* ─── v4.3.0: آدرس معکوس ─────────────────────────────────────────────────── */
.mzp-address-display {
    min-height: 28px;
    padding: 6px 14px;
    font-size: 13px;
    font-family: Tahoma, Vazirmatn, sans-serif;
    color: #333;
    background: #f5f7fa;
    border-top: 1px solid #e0e4ea;
    border-radius: 0 0 6px 6px;
    text-align: right;
    direction: rtl;
    transition: background 0.2s;
}
.mzp-addr-loading {
    color: #888;
    font-style: italic;
    font-size: 12px;
}
.mzp-addr-text {
    color: #1e6b3a;
    font-weight: 600;
    font-size: 13px;
}

/* آدرس زیر پریویو کوچک */
.mzp-preview-address {
    min-height: 22px;
    padding: 4px 10px 4px 6px;
    font-size: 12px;
    font-family: Tahoma, Vazirmatn, sans-serif;
    color: #555;
    background: #f0f3f8;
    border: 1px solid #dde2ec;
    border-top: 0;
    border-radius: 0 0 5px 5px;
    text-align: right;
    direction: rtl;
    margin-top: -2px;
}
.mzp-preview-address .mzp-addr-text {
    font-size: 12px;
    color: #1a6b36;
    font-weight: 600;
}
.mzp-preview-address .mzp-addr-loading {
    font-size: 11px;
    color: #999;
    font-style: italic;
}

/* آدرس در نتیجه ثبت */
.mzp-addr-result {
    margin: 6px 0 2px 0;
    font-size: 13px;
    color: #1e6b3a;
    font-weight: 600;
    direction: rtl;
    text-align: right;
}

/* ═════════════════════════════════════════════════════════════════════════
   v4.4.0 — جستجوی هوشمند (Search Box + Results)
   ═════════════════════════════════════════════════════════════════════════ */
.mzp-search-wrap {
    position: relative;
    margin-bottom: 12px;
    z-index: 1100;
}

.mzp-search-input-wrap {
    position: relative;
    display: flex;
    align-items: center;
    background: #fff;
    border: 1.5px solid #d8dde5;
    border-radius: 10px;
    transition: border-color .15s, box-shadow .15s;
    box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}
.mzp-search-input-wrap:focus-within {
    border-color: #3498db;
    box-shadow: 0 4px 14px rgba(52,152,219,0.18);
}

.mzp-search-icon {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #889;
    pointer-events: none;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mzp-search-input {
    flex: 1;
    width: 100%;
    padding: 11px 38px 11px 38px;
    border: none;
    outline: none;
    background: transparent;
    font-size: 14px;
    font-family: Tahoma, 'Vazirmatn', sans-serif;
    direction: rtl;
    color: #1a1a2e;
    border-radius: 10px;
}
.mzp-search-input::placeholder { color: #99a; font-size: 13px; }

.mzp-search-clear {
    position: absolute;
    left: 8px;
    top: 50%;
    transform: translateY(-50%);
    width: 24px;
    height: 24px;
    border: none;
    background: #e8edf3;
    color: #555;
    border-radius: 50%;
    font-size: 18px;
    line-height: 1;
    cursor: pointer;
    padding: 0;
    transition: background .15s, color .15s;
}
.mzp-search-clear:hover { background: #d4dbe5; color: #222; }

.mzp-search-results {
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    right: 0;
    max-height: 320px;
    overflow-y: auto;
    background: #fff;
    border: 1px solid #e0e4ec;
    border-radius: 10px;
    box-shadow: 0 12px 32px rgba(0,0,0,0.18);
    display: none;
    z-index: 1200;
}
.mzp-search-results.mzp-show { display: block; }

.mzp-search-loading,
.mzp-search-empty {
    padding: 14px 16px;
    font-size: 13px;
    color: #777;
    text-align: center;
    direction: rtl;
}

.mzp-search-result-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    cursor: pointer;
    border-bottom: 1px solid #f0f3f8;
    transition: background .12s;
    direction: rtl;
}
.mzp-search-result-item:last-child { border-bottom: none; }
.mzp-search-result-item:hover,
.mzp-search-result-item.mzp-active {
    background: #f0f7ff;
}

.mzp-search-result-icon {
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f5f7fa;
    border-radius: 8px;
    font-size: 18px;
}

.mzp-search-result-body {
    flex: 1;
    min-width: 0;
}
.mzp-search-result-name {
    font-size: 14px;
    font-weight: 600;
    color: #1a1a2e;
    line-height: 1.3;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.mzp-search-result-addr {
    font-size: 12px;
    color: #667;
    margin-top: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ── Highlight match در نام — رنگ سبز ──────────────────────────────── */
.mzp-search-hl {
    color: #1e7d34;
    background: rgba(39, 174, 96, 0.16);
    font-weight: 800;
    padding: 0 2px;
    border-radius: 3px;
}

/* ── Highlight match در آدرس — رنگ آبی متمایز ────────────────────────── */
.mzp-search-result-addr .mzp-search-hl {
    color: #1565c0;
    background: rgba(33, 117, 243, 0.14);
    font-weight: 700;
    padding: 0 2px;
    border-radius: 3px;
}

/* ── بخش‌های آدرس در پریویو ─────────────────────────────────────────── */
.mzp-addr-part {
    display: inline;
}
.mzp-addr-sep {
    color: #aaa;
    margin: 0 1px;
}

.mzp-search-result-cat {
    flex-shrink: 0;
    font-size: 11px;
    color: #888;
    background: #eef1f6;
    padding: 3px 8px;
    border-radius: 10px;
    white-space: nowrap;
}

/* اسکرول‌بار سفارشی نتایج */
.mzp-search-results::-webkit-scrollbar { width: 6px; }
.mzp-search-results::-webkit-scrollbar-thumb { background: #c8d0db; border-radius: 3px; }
.mzp-search-results::-webkit-scrollbar-track { background: transparent; }

/* ═════════════════════════════════════════════════════════════════════════
   v4.4.0 — دکمه گرد GPS (FAB) روی نقشه
   ═════════════════════════════════════════════════════════════════════════ */
.mzp-gps-fab {
    position: absolute;
    bottom: 14px;
    left: 14px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: #fff;
    color: #2c3e50;
    border: 1.5px solid #e0e4ec;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 3px 12px rgba(0,0,0,0.18), 0 1px 3px rgba(0,0,0,0.08);
    z-index: 800;
    padding: 0;
    transition: background .15s, color .15s, transform .15s, box-shadow .15s, border-color .15s;
}
.mzp-gps-fab:hover {
    background: #2c3e50;
    color: #fff;
    border-color: #2c3e50;
    transform: scale(1.06);
    box-shadow: 0 4px 16px rgba(0,0,0,0.25);
}
.mzp-gps-fab:active { transform: scale(0.96); }
.mzp-gps-fab:focus-visible {
    outline: 3px solid rgba(52,152,219,0.45);
    outline-offset: 2px;
}
.mzp-gps-fab svg { display: block; }

@media (max-width: 480px) {
    .mzp-gps-fab { width: 42px; height: 42px; bottom: 10px; left: 10px; }
}

/* ═════════════════════════════════════════════════════════════════════════
   v4.4.0 — پاپ‌آپ تأیید GPS (داخل نقشه)
   ═════════════════════════════════════════════════════════════════════════ */
.mzp-gps-confirm {
    position: absolute;
    inset: 0;
    background: rgba(20, 28, 40, 0.55);
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1500;
    padding: 16px;
    animation: mzp-fadein .18s ease-out;
}
.mzp-gps-confirm.mzp-show { display: flex; }

.mzp-gps-confirm-inner {
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 12px 36px rgba(0,0,0,0.3);
    width: 100%;
    max-width: 380px;
    padding: 22px 22px 18px;
    direction: rtl;
    text-align: center;
    animation: mzp-popin .22s cubic-bezier(.34,1.56,.64,1);
}

@keyframes mzp-popin {
    from { opacity: 0; transform: scale(0.85) translateY(10px); }
    to   { opacity: 1; transform: scale(1) translateY(0); }
}

.mzp-gps-confirm-icon {
    width: 56px;
    height: 56px;
    margin: 0 auto 12px;
    background: linear-gradient(135deg, #3498db 0%, #2980b9 100%);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 14px rgba(52,152,219,0.35);
}

.mzp-gps-confirm-title {
    margin: 0 0 8px;
    font-size: 17px;
    font-weight: 700;
    color: #1a1a2e;
}

.mzp-gps-confirm-intro {
    margin: 0 0 14px;
    font-size: 13px;
    color: #555;
    line-height: 1.6;
}

.mzp-gps-steps {
    list-style: none;
    margin: 0 0 16px;
    padding: 12px 14px;
    background: #f5f8fc;
    border-radius: 8px;
    text-align: right;
}
.mzp-gps-steps li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin: 0 0 8px;
    font-size: 13px;
    line-height: 1.55;
    color: #2c3e50;
}
.mzp-gps-steps li:last-child { margin-bottom: 0; }
.mzp-gps-step-num {
    flex-shrink: 0;
    width: 22px;
    height: 22px;
    background: #3498db;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 700;
    margin-top: 1px;
}
.mzp-gps-step-text {
    flex: 1;
    text-align: right;
}

.mzp-gps-confirm-actions {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.mzp-btn-confirm-gps {
    background: #27ae60;
    color: #fff;
    border-color: #229954;
    width: 100%;
    padding: 11px;
    font-size: 14px;
    font-weight: 700;
}
.mzp-btn-confirm-gps:hover:not(:disabled) { background: #2ecc71; }
.mzp-btn-cancel-gps {
    background: #f1f1f1;
    color: #555;
    border-color: #ddd;
    width: 100%;
    padding: 10px;
    font-size: 13px;
}
.mzp-btn-cancel-gps:hover { background: #e8e8e8; color: #222; }

@media (max-width: 480px) {
    .mzp-gps-confirm-inner { padding: 18px 16px 14px; max-width: 100%; }
    .mzp-gps-confirm-icon  { width: 48px; height: 48px; }
    .mzp-gps-confirm-icon svg { width: 26px; height: 26px; }
    .mzp-gps-confirm-title { font-size: 16px; }
}

/* ═════════════════════════════════════════════════════════════════════════
   v4.4.0 — برچسب نام خیابان روی پریویو (کنار پین)
   ═════════════════════════════════════════════════════════════════════════ */
.mzp-preview-pin-label-wrap {
    background: transparent !important;
    border: none !important;
}
.mzp-preview-pin-label {
    background: rgba(255,255,255,0.95);
    color: #1e6b3a;
    font-family: Tahoma, 'Vazirmatn', sans-serif;
    font-size: 11px;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 12px;
    border: 1px solid rgba(39,174,96,0.5);
    white-space: nowrap;
    box-shadow: 0 2px 8px rgba(0,0,0,0.18);
    direction: rtl;
    transform: translate(-50%, -100%);
    position: relative;
    pointer-events: none;
    max-width: 220px;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ═════════════════════════════════════════════════════════════════════════
   v4.4.0 — تنظیمات وضعیت/نوار پایین مودال (به‌خاطر جابجایی toolbar)
   ═════════════════════════════════════════════════════════════════════════ */
.mzp-modal-body > .mzp-status-bar {
    margin-top: 8px;
    text-align: center;
    min-height: 18px;
}

/* ═══════════════════════════════════════════════════════════════════════════
   v4.7.1 — استایل‌های SVG داخلی (جایگزین ایموجی‌های قدیمی)
   ═══════════════════════════════════════════════════════════════════════════ */

/* SVG عمومی — هم‌راستا با متن کنار آن */
.mzp-svg-icon,
.mzp-svg-icon-lg,
.mzp-btn-svg,
.mzp-cta-svg {
    display: inline-block;
    vertical-align: -2px;
    flex-shrink: 0;
}

.mzp-svg-icon-lg { vertical-align: -4px; }

/* انیمیشن چرخش برای آیکون loader */
.mzp-spin {
    animation: mzp-spin-anim 1s linear infinite;
    transform-origin: 50% 50%;
}
@keyframes mzp-spin-anim {
    from { transform: rotate(0deg); }
    to   { transform: rotate(360deg); }
}

/* ایموجی کسب‌وکار/نتایج جستجو — درون <span> تا توسط Twemoji پردازش نشود */
.mzp-biz-em,
.mzp-result-em {
    display: inline-block;
    line-height: 1;
    font-style: normal;
    /* با غیرفعال کردن wp-emoji، این اسپن‌ها به‌صورت glyph بومی فونت سیستم رندر می‌شوند
       و هیچ تصویری از s.w.org درخواست نمی‌شود. */
}

/* اطمینان از عدم نمایش <img> ای که شاید توسط wp-emoji قدیمی تزریق شده باشد */
.mzp-modal-root img.wp-smiley,
.mzp-field-wrap img.wp-smiley,
.mzp-shortcode-wrap img.wp-smiley,
.mzp-search-results img.wp-smiley {
    display: none !important;
}

/* استایل پایه برای loading آدرس */
.mzp-addr-loading {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #888;
    font-size: 13px;
}

/* پین SVG داخل label پریویو */
.mzp-preview-pin-label .mzp-svg-icon { vertical-align: -3px; margin-left: 2px; }
