/* Tourist map, version 2 (31 Oct 2026). Prefix: mp-. Colours as on the search page. */
.mp{
    --mp-ink:#1c1917; --mp-muted:#57534e; --mp-line:#e7e5e4; --mp-soft:#f5f5f4;
    --mp-brand:#ed5f2d; --mp-brand-text:#b83c0e; --mp-tint:#fff1ea;
    --mp-h:560px;
    padding-top:6px;   /* phones: the fixed menu is 59px high, the page content starts at 64px */
    font-family:'IranSansX-Body','IranSansX-Pro',sans-serif;
    color:var(--mp-ink);
}
.mp *,.mp *::before,.mp *::after{box-sizing:border-box}
.mp button{font-family:inherit}
.mp svg{display:inline-block}

/* top bar: title and count, then search and the filter button */
.mp-bar{display:flex;flex-direction:column;gap:8px;padding:0 16px 10px}
.mp-head{display:flex;align-items:baseline;flex-wrap:wrap;gap:4px 14px}
.mp-h1{margin:0;font-size:1.15rem;line-height:1.5;font-weight:800;color:var(--mp-ink)}
.mp-count{margin:0;font-size:.85rem;color:var(--mp-muted)}
.mp-sr{position:absolute !important;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap;border:0}
.mp [hidden]{display:none !important}

/* the map; Leaflet works left-to-right inside the right-to-left page */
.mp-stage{position:relative;overflow:hidden;border-top:1px solid var(--mp-line);background:#e8eef2}
.mp-box{position:relative;min-width:0}
.mp-map{position:relative;z-index:0;direction:ltr;width:100%;height:var(--mp-h);min-height:380px;background:#e8eef2;outline:none}

/* overlays on the map */
.mp-chips,.mp-status,.mp-card{position:absolute;z-index:5}
.mp-chips[hidden],.mp-card[hidden]{display:none}

/* type chips (also the legend) */
.mp-chips{top:8px;right:8px;left:8px;display:flex;gap:6px;overflow-x:auto;padding:2px 2px 4px;scrollbar-width:none;-webkit-overflow-scrolling:touch}
.mp-chips::-webkit-scrollbar{display:none}
.mp-chip{flex:0 0 auto;display:inline-flex;align-items:center;gap:6px;height:34px;padding:0 12px 0 10px;border:1px solid var(--mp-line);border-radius:999px;background:#fff;color:var(--mp-ink);font-size:.82rem;line-height:1;cursor:pointer;box-shadow:0 1px 4px rgba(0,0,0,.18);-webkit-tap-highlight-color:transparent}
.mp-chip-dot{width:12px;height:12px;border-radius:50%;background:var(--c);flex:0 0 auto}
.mp-chip-n{color:var(--mp-muted);font-size:.74rem;font-variant-numeric:tabular-nums}
.mp-chip[aria-pressed="false"]{background:#f5f5f4;color:#78716c}
.mp-chip[aria-pressed="false"] .mp-chip-dot{background:#fff;box-shadow:inset 0 0 0 2px var(--c)}
.mp-chip.is-reset{background:var(--mp-ink);border-color:var(--mp-ink);color:#fff}
.mp-chip:focus-visible,.mp-nav button:focus-visible,.mp-card-x:focus-visible,.mp-card-cta:focus-visible,.mp-card-title:focus-visible{outline:3px solid var(--mp-brand);outline-offset:2px}

/* short messages */
.mp-status{top:54px;right:50%;transform:translateX(50%);max-width:calc(100% - 150px);padding:8px 14px;border-radius:999px;background:#fff;color:var(--mp-muted);font-size:.85rem;line-height:1.5;text-align:center;box-shadow:0 1px 6px rgba(0,0,0,.22);pointer-events:none}
.mp-status[hidden]{display:none}
.mp-status.is-error{pointer-events:auto;color:var(--mp-brand-text)}
.mp-status button{margin-inline-start:8px;border:0;border-radius:999px;background:var(--mp-brand);color:#fff;padding:3px 12px;font:inherit;cursor:pointer}
.mp-nojs{padding:24px 16px;color:var(--mp-muted)}

/* Leaflet details: controls sit under the chip row */
.mp .leaflet-container{font-family:inherit;background:#e8eef2}
.mp .leaflet-top{top:50px}
.mp .leaflet-control-attribution{font-size:10px}
.mp .leaflet-bar a{color:var(--mp-ink)}
.mp .leaflet-bar a:focus-visible{outline:3px solid var(--mp-brand);outline-offset:-3px}
.mp-nav{border:0 !important;background:none !important;box-shadow:none !important;display:flex;flex-direction:column;gap:6px;align-items:flex-end}
.mp-nav button{display:inline-flex;align-items:center;gap:6px;height:34px;padding:0 12px;border:1px solid var(--mp-line);border-radius:999px;background:#fff;color:var(--mp-ink);font-size:.82rem;line-height:1;cursor:pointer;box-shadow:0 1px 4px rgba(0,0,0,.18);-webkit-tap-highlight-color:transparent}
.mp-nav svg{width:16px;height:16px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.mp-nav button:active{background:var(--mp-soft)}
.mp-nav button.is-busy{opacity:.6}

/* pins */
.mp-pin{background:none;border:0}
.mp-dot{position:relative;display:grid;place-items:center;width:26px;height:26px;margin:2px;border-radius:50%;background:var(--c);border:2px solid #fff;box-shadow:0 1px 4px rgba(0,0,0,.4);transition:transform .12s}
.mp-dot svg{width:14px;height:14px;fill:none;stroke:#fff;stroke-width:2.2;stroke-linecap:round;stroke-linejoin:round}
.mp-pin:hover .mp-dot{transform:scale(1.12)}
.mp-pin.is-sel .mp-dot{transform:scale(1.3);box-shadow:0 0 0 4px rgba(237,95,45,.4),0 2px 6px rgba(0,0,0,.45)}
.mp-pin:focus-visible{outline:none}
.mp-pin:focus-visible .mp-dot{outline:3px solid var(--mp-ink);outline-offset:2px}

/* clusters */
.mp-cl{background:none}
.mp-cl span{display:grid;place-items:center;width:100%;height:100%;border-radius:50%;background:#292524;color:#fff;border:3px solid #fff;box-shadow:0 1px 6px rgba(0,0,0,.45);font-weight:700;font-variant-numeric:tabular-nums;line-height:1}
.mp-cl-s span{font-size:.82rem}
.mp-cl-m span{font-size:.92rem}
.mp-cl-l span{font-size:1rem}
.mp-cl:focus-visible{outline:none}
.mp-cl:focus-visible span{outline:3px solid var(--mp-brand);outline-offset:2px}

/* "you are here" */
.mp-me{width:18px;height:18px;border-radius:50%;background:#2563eb;border:3px solid #fff;box-shadow:0 0 0 6px rgba(37,99,235,.25)}

/* the card of the selected place: at the bottom, above the map credit line */
.mp-card{right:10px;left:10px;bottom:26px;max-width:400px;margin-inline:auto;background:#fff;border-radius:16px;box-shadow:0 4px 22px rgba(0,0,0,.28);overflow:hidden}
.mp-card-in{position:relative;display:grid;grid-template-columns:1fr;align-items:stretch}
.mp-card-in.has-img{grid-template-columns:104px 1fr}
.mp-card-img{display:block;background:var(--mp-soft)}
.mp-card-img img{display:block;width:104px;height:100%;min-height:104px;object-fit:cover}
.mp-card-body{padding:12px 14px 12px 38px;display:flex;flex-direction:column;gap:6px;min-width:0}
.mp-card-kind{margin:0;display:flex;align-items:center;gap:6px;font-size:.78rem;color:var(--mp-muted);line-height:1.5}
.mp-card-kind i{width:10px;height:10px;border-radius:50%;background:var(--c);flex:0 0 auto}
.mp-card-title{display:block;color:var(--mp-ink);font-weight:800;font-size:1rem;line-height:1.6;text-decoration:none}
.mp-card-title:hover{color:var(--mp-brand-text)}
.mp-card-cta{align-self:flex-start;display:inline-flex;align-items:center;height:34px;padding:0 14px;border-radius:999px;background:var(--mp-brand);color:#fff;font-size:.85rem;font-weight:700;text-decoration:none}
.mp-card-cta:hover{background:#d9501f;color:#fff}
.mp-card-x{position:absolute;top:6px;left:6px;width:32px;height:32px;display:grid;place-items:center;border:0;border-radius:50%;background:rgba(255,255,255,.92);color:var(--mp-ink);cursor:pointer;box-shadow:0 0 0 1px var(--mp-line)}
.mp-card-x svg{width:16px;height:16px;fill:none;stroke:currentColor;stroke-width:2.4;stroke-linecap:round}

/* strip under the map */
.mp-strip{display:flex;align-items:center;justify-content:center;flex-wrap:wrap;gap:2px 14px;min-height:48px;padding:6px 16px;border-top:1px solid var(--mp-line);border-bottom:1px solid var(--mp-line);background:#fff;color:var(--mp-muted);font-size:.88rem;text-align:center}
.mp-strip b{color:var(--mp-ink);font-weight:700;font-variant-numeric:tabular-nums}
.mp-strip-btn,.mp-link{display:inline-flex;align-items:center;min-height:36px;padding:0 4px;border:0;background:none;color:var(--mp-brand-text);font:inherit;font-weight:700;text-decoration:underline;text-underline-offset:3px;cursor:pointer}
.mp-strip-btn:focus-visible,.mp-link:focus-visible,.mp-af:focus-visible,.mp-af-clear:focus-visible,.mp-q:focus-visible,.mp-fbtn:focus-visible,.mp-sel:focus-visible,.mp-pill:focus-visible,.mp-apply:focus-visible,.mp-panel-x:focus-visible,.mp-q-x:focus-visible,.mp-item-a:focus-visible,.mp-item-go:focus-visible,.mp-more:focus-visible{outline:3px solid var(--mp-brand);outline-offset:2px}

/* search field and suggestions */
.mp-tools{display:flex;gap:8px;align-items:stretch}
.mp-search{position:relative;z-index:30;flex:1;min-width:0}
.mp-search-i{position:absolute;top:50%;inset-inline-start:12px;width:20px;height:20px;margin-top:-10px;fill:none;stroke:var(--mp-muted);stroke-width:2;stroke-linecap:round;stroke-linejoin:round;pointer-events:none}
.mp-q{display:block;width:100%;height:44px;padding:0 40px;border:1px solid #d6d3d1;border-radius:12px;background:#fff;color:var(--mp-ink);font:inherit;font-size:16px;appearance:none;-webkit-appearance:none}
.mp-q::placeholder{color:#78716c}
.mp-q::-webkit-search-cancel-button,.mp-q::-webkit-search-decoration{-webkit-appearance:none;appearance:none}
.mp-q:disabled{background:var(--mp-soft)}
.mp-q-x{position:absolute;top:50%;inset-inline-end:6px;width:32px;height:32px;margin-top:-16px;display:grid;place-items:center;border:0;border-radius:50%;background:none;color:var(--mp-muted);cursor:pointer}
.mp-q-x svg{width:16px;height:16px;fill:none;stroke:currentColor;stroke-width:2.4;stroke-linecap:round}
.mp-sug{position:absolute;top:calc(100% + 4px);inset-inline:0;max-height:min(60vh,420px);overflow-y:auto;margin:0;padding:4px;list-style:none;background:#fff;border:1px solid var(--mp-line);border-radius:12px;box-shadow:0 8px 28px rgba(0,0,0,.22)}
.mp-sug-i{display:flex;align-items:center;gap:10px;min-height:48px;padding:6px 10px;border-radius:8px;cursor:pointer}
.mp-sug-i.is-active,.mp-sug-i:hover{background:var(--mp-tint)}
.mp-sug-dot{flex:0 0 auto;width:12px;height:12px;border-radius:50%;background:var(--c)}
.mp-sug-tx{display:flex;flex-direction:column;min-width:0}
.mp-sug-t{font-weight:700;font-size:.93rem;line-height:1.6;color:var(--mp-ink);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.mp-sug-k{font-size:.76rem;line-height:1.5;color:var(--mp-muted)}
.mp-sug-none{padding:12px 10px;color:var(--mp-muted);font-size:.88rem}

/* filter button */
.mp-fbtn{flex:0 0 auto;display:inline-flex;align-items:center;gap:7px;height:44px;padding:0 14px;border:1px solid #d6d3d1;border-radius:12px;background:#fff;color:var(--mp-ink);font:inherit;font-size:.9rem;font-weight:700;cursor:pointer;-webkit-tap-highlight-color:transparent}
.mp-fbtn svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round}
.mp-fbtn:disabled{opacity:.55;cursor:default}
.mp-fbtn-n{display:inline-grid;place-items:center;min-width:22px;height:22px;padding:0 6px;border-radius:999px;background:var(--mp-brand);color:#fff;font-size:.76rem;font-variant-numeric:tabular-nums}

/* filters that are on */
.mp-active{display:flex;gap:6px;align-items:center;overflow-x:auto;padding:0 16px 10px;scrollbar-width:none;-webkit-overflow-scrolling:touch}
.mp-active::-webkit-scrollbar{display:none}
.mp-af{flex:0 0 auto;display:inline-flex;align-items:center;gap:6px;height:34px;padding:0 10px 0 12px;border:1px solid var(--mp-brand);border-radius:999px;background:var(--mp-tint);color:var(--mp-brand-text);font:inherit;font-size:.82rem;font-weight:700;cursor:pointer}
.mp-af svg{width:14px;height:14px;fill:none;stroke:currentColor;stroke-width:2.6;stroke-linecap:round}
.mp-af-clear{flex:0 0 auto;height:34px;padding:0 8px;border:0;background:none;color:var(--mp-muted);font:inherit;font-size:.82rem;text-decoration:underline;text-underline-offset:3px;cursor:pointer}

/* filter panel: on phones a sheet that slides up */
.mp-panel{position:fixed;inset-inline:0;bottom:0;z-index:1100;display:flex;flex-direction:column;max-width:640px;margin-inline:auto;max-height:86vh;max-height:86dvh;background:#fff;border-radius:20px 20px 0 0;box-shadow:0 -8px 32px rgba(0,0,0,.28);animation:mp-up .22s ease-out}
.mp-scrim{position:fixed;inset:0;z-index:1090;background:rgba(28,25,23,.45)}
html.mp-lock,html.mp-lock body{overflow:hidden}
.mp-panel-head{display:flex;align-items:center;gap:10px;padding:14px 16px 8px}
.mp-panel-h{margin:0;flex:1;font-size:1.05rem;font-weight:800;color:var(--mp-ink)}
.mp-panel-x{width:40px;height:40px;display:grid;place-items:center;border:0;border-radius:50%;background:var(--mp-soft);color:var(--mp-ink);cursor:pointer}
.mp-panel-x svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:2.4;stroke-linecap:round}
.mp-panel-body{flex:1;min-height:0;overflow-y:auto;overscroll-behavior:contain;-webkit-overflow-scrolling:touch;padding:0 16px 12px}
.mp-panel-foot{padding:10px 16px calc(12px + env(safe-area-inset-bottom,0px));border-top:1px solid var(--mp-line)}
.mp-apply{display:block;width:100%;height:48px;border:0;border-radius:12px;background:var(--mp-brand-text);color:#fff;font:inherit;font-size:1rem;font-weight:800;cursor:pointer}
.mp-fs{padding:10px 0 4px}
.mp-fs-h{margin:0 0 8px;font-size:.92rem;font-weight:800;color:var(--mp-ink)}
.mp-lbl{display:block;margin:6px 0 4px;font-size:.8rem;color:var(--mp-muted)}
.mp-sel{display:block;width:100%;height:44px;padding:0 10px;border:1px solid #d6d3d1;border-radius:10px;background:#fff;color:var(--mp-ink);font:inherit;font-size:16px}
.mp-sel option:disabled{color:#a8a29e}
.mp-fg{margin:0 0 12px}
.mp-fg-h{display:flex;align-items:center;gap:6px;margin:0 0 6px;font-size:.8rem;color:var(--mp-muted)}
.mp-fg-h i{width:10px;height:10px;border-radius:50%;background:var(--c)}
.mp-pills{display:flex;flex-wrap:wrap;gap:6px}
.mp-pill{display:inline-flex;align-items:center;gap:6px;min-height:38px;padding:0 12px;border:1px solid #d6d3d1;border-radius:999px;background:#fff;color:var(--mp-ink);font:inherit;font-size:.85rem;cursor:pointer;-webkit-tap-highlight-color:transparent}
.mp-pill-n{color:var(--mp-muted);font-size:.74rem;font-variant-numeric:tabular-nums}
.mp-pill[aria-pressed="true"]{border-color:var(--mp-brand);background:var(--mp-tint);color:var(--mp-brand-text);font-weight:700}
.mp-pill:disabled{opacity:.42;cursor:default}
@keyframes mp-up{from{transform:translateY(28px);opacity:0}to{transform:none;opacity:1}}

/* list of the places in view */
.mp-list{padding:22px 16px 34px}
.mp-list-head{display:flex;align-items:baseline;flex-wrap:wrap;gap:4px 12px;margin-bottom:12px}
.mp-list-h{margin:0;font-size:1.1rem;font-weight:800;color:var(--mp-ink)}
.mp-list-n{font-size:.85rem;color:var(--mp-muted);font-variant-numeric:tabular-nums}
.mp-items{display:grid;grid-template-columns:repeat(auto-fill,minmax(280px,1fr));gap:10px;margin:0;padding:0;list-style:none}
.mp-item{display:flex;align-items:center;gap:6px;padding:8px;border:1px solid var(--mp-line);border-radius:14px;background:#fff}
.mp-item-a{display:flex;flex:1;min-width:0;align-items:center;gap:12px;color:inherit;text-decoration:none;border-radius:10px}
.mp-item-img{flex:0 0 76px;width:76px;height:76px;border-radius:10px;overflow:hidden;background:var(--mp-soft)}
.mp-item-img img{display:block;width:100%;height:100%;object-fit:cover}
.mp-item-img.is-ph{display:grid;place-items:center;background:var(--c)}
.mp-item-img.is-ph svg{width:30px;height:30px;fill:none;stroke:#fff;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.mp-item-tx{display:flex;flex-direction:column;gap:2px;min-width:0}
.mp-item-t{font-weight:800;font-size:.95rem;line-height:1.6;color:var(--mp-ink);display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.mp-item-a:hover .mp-item-t{color:var(--mp-brand-text)}
.mp-item-k{font-size:.78rem;line-height:1.5;color:var(--mp-muted)}
.mp-item-go{flex:0 0 auto;width:44px;height:44px;display:grid;place-items:center;border:1px solid var(--mp-line);border-radius:50%;background:#fff;color:var(--mp-ink);cursor:pointer}
.mp-item-go svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.mp-item-go:hover{background:var(--mp-tint);color:var(--mp-brand-text)}
.mp-more{display:block;margin:16px auto 0;min-height:44px;padding:0 24px;border:1px solid var(--mp-ink);border-radius:999px;background:#fff;color:var(--mp-ink);font:inherit;font-size:.9rem;font-weight:700;cursor:pointer}

/* step 4: text and plain links by province and country (server-rendered) */
.mp-about{padding:6px 16px 44px;border-top:1px solid var(--mp-line);background:#fff}
.mp-about-h{margin:22px 0 8px;font-size:1.1rem;font-weight:800;color:var(--mp-ink)}
.mp-about-p{margin:0 0 6px;max-width:72ch;font-size:.93rem;line-height:2;color:var(--mp-muted)}
.mp-rg-h{margin:20px 0 10px;font-size:.95rem;font-weight:800;color:var(--mp-ink)}
.mp-rg{display:flex;flex-wrap:wrap;gap:8px;margin:0;padding:0;list-style:none}
.mp-rg a{display:inline-flex;align-items:center;gap:6px;min-height:40px;padding:0 14px;border:1px solid var(--mp-line);border-radius:999px;background:#fff;color:var(--mp-ink);font-size:.86rem;line-height:1.4;text-decoration:none}
.mp-rg a:hover{background:var(--mp-tint);border-color:#f5c3ad;color:var(--mp-brand-text)}
.mp-rg a.is-all{background:var(--mp-soft);font-weight:700}
.mp-rg a b{font-weight:400;font-size:.76rem;color:var(--mp-muted);font-variant-numeric:tabular-nums}
.mp-rg a:focus-visible{outline:3px solid var(--mp-brand);outline-offset:2px}

@media (max-width:359px){
    .mp-fbtn{padding:0 12px}
    .mp-fbtn span:not(.mp-fbtn-n){display:none}   /* very narrow phones: the icon and the number are enough (the button has its own aria-label) */
}
@media (min-width:992px){
    .mp{padding-top:64px}   /* desktop: the fixed menu is 72px high and the page content starts at 16px */
    .mp-bar{flex-direction:row;align-items:center;justify-content:space-between;gap:16px 24px;padding:0 24px 12px}
    .mp-h1{font-size:1.4rem}
    .mp-tools{flex:0 1 520px}
    .mp-fbtn{display:none}
    .mp-active{padding:0 24px 12px;flex-wrap:wrap;overflow:visible}
    .mp-stage{display:grid;grid-template-columns:320px minmax(0,1fr)}
    /* the filter panel stays open, in the first column (the right side of the right-to-left page) */
    .mp-panel{position:static;z-index:auto;height:var(--mp-h);min-height:380px;max-height:none;max-width:none;margin-inline:0;border-radius:0;box-shadow:none;animation:none;border-inline-end:1px solid var(--mp-line)}
    .mp-panel-x,.mp-panel-foot,.mp-scrim{display:none !important}
    .mp-panel-head{padding:14px 16px 6px}
    .mp-chips{justify-content:center;right:70px;left:70px;overflow:visible;flex-wrap:wrap}
    .mp-card{right:auto;left:16px;bottom:30px;margin-inline:0;width:400px}
    .mp-list{padding:28px 24px 44px}
    .mp-about{padding:6px 24px 56px}
}
@media (prefers-reduced-motion:reduce){
    .mp-dot{transition:none}
    .mp-panel{animation:none}
}
