/* Portal maps (staging\mappe-vere-20261118). The block is written by
   App_Code\PortalMap.cs; Assets\Js\portal-map.js fills it when it comes into
   view and loads Leaflet only then. Colours follow the portal cards. */
.yi-map, .yi-map-dialog {
  --yi-navy: #003c70; --yi-ink: #103e60; --yi-blue: #07669f; --yi-blue-dark: #004f82; --yi-blue-darker: #003c65;
  --yi-muted: #526a7d; --yi-panel: #f4f8fb; --yi-panel-2: #eff7fc; --yi-panel-3: #dcecf7; --yi-line: #e1eaf1; --yi-border: #dce7ef;
  --yi-gold-bg: #faeacb; --yi-gold-ink: #7a5200; --yi-teal: #28766f; --yi-sea: #e8f0f5;
  --yi-font: var(--portal-font-family, "Plus Jakarta Sans", "Noto Sans", Arial, sans-serif);
  font-family: var(--yi-font);
}
.yi-map *, .yi-map *::before, .yi-map *::after, .yi-map-dialog *, .yi-map-dialog *::before, .yi-map-dialog *::after { box-sizing: border-box; }
.yi-map .yi-svg, .yi-map-dialog .yi-svg, .yi-map-root .yi-svg { display: block; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- Map inside a page ---------- */
.yi-map { position: relative; display: block; height: 420px; margin: 8px 0 28px; overflow: hidden; isolation: isolate; border-radius: 20px; border: 1px solid rgba(0, 60, 112, .08); background: var(--yi-sea); box-shadow: 0 8px 26px rgba(22, 56, 83, .09), 0 2px 5px rgba(22, 56, 83, .025); }
.yi-map[hidden], .yi-map-column[hidden] { display: none !important; }
.yi-map--customer { height: 280px; min-height: 0; margin: 0 0 16px; border-radius: 18px; }
@supports (aspect-ratio: 4 / 3) { .yi-map--customer { height: auto; aspect-ratio: 4 / 3; max-height: 420px; } }
/* In a Bootstrap row (POI pages): edge to edge with the cards below, not 15px inside. */
.yi-map-column, .col-xs-12.yi-map-column { float: none; clear: both; width: 100%; padding-left: 0; padding-right: 0; }
.yi-map-column > .yi-map { margin-top: 0; }
#recapitiPanel .yi-map + .widget.map { margin-top: 0; }
.yi-map-canvas { position: absolute; top: 0; right: 0; bottom: 0; left: 0; }
.yi-map:not(.is-ready) .yi-map-canvas { background: linear-gradient(100deg, rgba(255,255,255,0) 30%, rgba(255,255,255,.45) 50%, rgba(255,255,255,0) 70%) var(--yi-sea); background-size: 220% 100%; animation: yi-map-wait 1.6s linear infinite; }
@keyframes yi-map-wait { from { background-position: 120% 0; } to { background-position: -120% 0; } }
.yi-map .yi-map-expand { position: absolute; z-index: 800; top: 14px; right: 14px; display: inline-flex; align-items: center; gap: 8px; min-height: 44px; margin: 0; padding: 10px 16px 10px 13px; border: 0; border-radius: 999px; background: #fff; color: var(--yi-navy); font: 600 14px/1.3 var(--yi-font); text-transform: none; letter-spacing: 0; cursor: pointer; box-shadow: 0 6px 18px rgba(0, 30, 52, .18); }
.yi-map .yi-map-expand:hover { background: var(--yi-panel-2); }
.yi-map .yi-map-expand .yi-svg { width: 18px; height: 18px; flex: none; }
.yi-map--customer .yi-map-expand, .yi-map--poi .yi-map-expand { width: 44px; padding: 0; justify-content: center; }
.yi-map--customer .yi-map-expand span, .yi-map--poi .yi-map-expand span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.yi-map .yi-map-chip { position: absolute; z-index: 800; left: 14px; bottom: 14px; display: inline-flex; align-items: center; gap: 7px; max-width: calc(100% - 28px); margin: 0; padding: 8px 13px 8px 10px; border-radius: 999px; background: rgba(255, 255, 255, .94); color: var(--yi-ink); font: 600 13px/1.3 var(--yi-font); box-shadow: 0 4px 14px rgba(0, 30, 52, .14); pointer-events: none; }
.yi-map .yi-map-chip[hidden] { display: none; }
.yi-map .yi-map-chip .yi-svg { width: 16px; height: 16px; color: var(--yi-blue); flex: none; }
.yi-map .yi-map-chip.is-poi .yi-svg { color: var(--yi-teal); }
.yi-map .yi-map-cover { display: none; }
/* No native dialog (Safari before 15.4): no big map, the map in the page is usable. */
.yi-map.no-dialog .yi-map-expand, .yi-map.no-dialog .yi-map-cover { display: none !important; }
.yi-map :focus-visible, .yi-map-dialog :focus-visible { outline: 3px solid #287ab9; outline-offset: 2px; }

/* ---------- A list without businesses: area, places to visit, invitation ---------- */
/* The list's own map comes after the site's "no results" panel, which floats: start below it. */
.yi-map--list { clear: both; }
/* In the page a single compact line (the page already shows the site's own panel); the
   full card with its text is the first item of the big map. */
.yi-map .yi-map-invite { position: absolute; z-index: 850; left: 14px; bottom: 14px; display: grid; grid-template-columns: minmax(0, auto) auto; align-items: center; column-gap: 14px; row-gap: 5px; max-width: calc(100% - 100px); padding: 9px 9px 9px 16px; border-radius: 16px; background: rgba(255, 255, 255, .97); color: var(--yi-ink); box-shadow: 0 8px 24px rgba(0, 30, 52, .18); }
.yi-map-invite p, .yi-invite-card p { margin: 0; padding: 0; }
.yi-map .yi-invite-place, .yi-map-dialog .yi-invite-place { display: flex; align-items: center; gap: 6px; margin-bottom: 6px; color: var(--yi-blue); font: 700 11.5px/1.3 var(--yi-font); letter-spacing: 1.1px; text-transform: uppercase; }
.yi-map .yi-invite-place .yi-svg, .yi-map-dialog .yi-invite-place .yi-svg { width: 14px; height: 14px; flex: none; }
.yi-map .yi-map-invite .yi-invite-place { grid-column: 1 / -1; min-width: 0; margin: 0; }
.yi-map .yi-map-invite .yi-invite-place span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.yi-map .yi-invite-title, .yi-map-dialog .yi-invite-title { color: var(--yi-navy); font: 700 16px/1.35 var(--yi-font); letter-spacing: -.2px; }
.yi-map .yi-map-invite .yi-invite-title { min-width: 0; font-size: 15px; }
.yi-map .yi-invite-text, .yi-map-dialog .yi-invite-text { margin-top: 4px; color: var(--yi-muted); font: 13.5px/1.5 var(--yi-font); }
.yi-map .yi-map-invite .yi-invite-text { display: none; }
.yi-map .yi-map-invite .yi-btn, .yi-map-dialog .yi-invite-card .yi-btn { display: inline-flex; margin-top: 12px; padding: 9px 14px; }
.yi-map .yi-map-invite .yi-btn { flex: none; align-items: center; gap: 6px; min-height: 38px; margin: 0; padding: 7px 13px; border: 0; border-radius: 12px; font: 600 13.5px/1.3 var(--yi-font); text-decoration: none; text-transform: none; letter-spacing: 0; white-space: nowrap; }
.yi-map .yi-map-invite .yi-btn--primary { background: var(--yi-blue-dark); color: #fff; text-decoration: none; }
.yi-map .yi-map-invite .yi-btn--primary:hover { background: var(--yi-blue-darker); color: #fff; }
.yi-map .yi-map-invite .yi-btn .yi-svg { width: 16px; height: 16px; }
.yi-map-dialog .yi-item.yi-item--invite { padding: 14px 16px 16px; border-color: #cfe3f0; background: #eef6fb; box-shadow: none; }
.yi-map-dialog .yi-item.yi-item--invite:hover { border-color: #cfe3f0; box-shadow: none; }
/* ---------- Leaflet in the portal's style ---------- */
.yi-map-root.leaflet-container { font-family: var(--yi-font); background: var(--yi-sea); }
.yi-map-root .yi-tiles-soft { filter: saturate(.5) contrast(.9) brightness(1.05); }
/* Half-pixel overlap hides the hairline seams Chromium draws between tiles at fractional zoom. */
.yi-map-root .leaflet-tile-container img.leaflet-tile { width: 256.5px !important; height: 256.5px !important; mix-blend-mode: normal; }
.yi-map-root .leaflet-bar { border: 0; border-radius: 14px; overflow: hidden; box-shadow: 0 6px 18px rgba(0, 30, 52, .16); }
.yi-map-root .leaflet-bar a, .yi-map-root .leaflet-bar button { display: grid; place-items: center; width: 42px; height: 42px; margin: 0; padding: 0; line-height: 42px; border: 0; border-bottom: 1px solid var(--yi-line); border-radius: 0; background: #fff; color: var(--yi-navy); font: 500 21px/42px var(--yi-font); text-decoration: none; cursor: pointer; }
.yi-map-root .leaflet-bar a:last-child, .yi-map-root .leaflet-bar button:last-child { border-bottom: 0; }
.yi-map-root .leaflet-bar a:hover, .yi-map-root .leaflet-bar button:hover { background: var(--yi-panel-2); color: var(--yi-navy); }
.yi-map-root .leaflet-bar .yi-svg { width: 19px; height: 19px; }
.yi-map-root .leaflet-right .leaflet-control { margin-right: 14px; }
.yi-map-root .leaflet-bottom .leaflet-control { margin-bottom: 14px; }
.yi-map-root .leaflet-control-attribution { margin: 0; padding: 2px 8px; border-radius: 10px 0 0 0; background: rgba(255, 255, 255, .82); color: #5f7385; font: 10.5px/1.5 var(--yi-font); }
.yi-map-root .leaflet-control-attribution a { color: #4f6a80; text-decoration: none; }
.yi-map-root .leaflet-bottom.leaflet-right .leaflet-control-attribution { margin-bottom: 0; margin-right: 0; }

.yi-map-root .yi-pin-icon, .yi-map-root .yi-poi-icon, .yi-map-root .yi-cluster-icon { background: none; border: 0; }
.yi-map-root .yi-pin { position: relative; display: block; width: 40px; height: 50px; transform-origin: 50% 100%; transition: transform .18s ease; filter: drop-shadow(0 5px 6px rgba(0, 30, 52, .3)); cursor: pointer; }
.yi-map-root .yi-pin svg.yi-pin-shape { position: absolute; z-index: 0; top: 0; right: 0; bottom: 0; left: 0; width: 40px; height: 50px; }
.yi-map-root .yi-pin-shape path { fill: var(--yi-navy); stroke: #fff; stroke-width: 2.4; transition: fill .18s ease; }
.yi-map-root .yi-pin-disc { position: absolute; z-index: 1; left: 7px; top: 6px; display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: #fff; color: var(--yi-navy); transition: color .18s ease; }
.yi-map-root .yi-pin-disc .yi-svg { width: 16px; height: 16px; stroke-width: 1.9; }
.yi-map-root .yi-pin-offer { position: absolute; z-index: 1; top: -1px; right: 0; width: 14px; height: 14px; border-radius: 50%; background: #e0a03a; border: 2.5px solid #fff; }
.yi-map-root .yi-pin-icon:hover .yi-pin, .yi-map-root .yi-pin.is-active { transform: scale(1.16); }
.yi-map-root .yi-pin-icon:focus-visible .yi-pin { transform: scale(1.16); }
.yi-map-root .yi-pin-icon:hover .yi-pin-shape path, .yi-map-root .yi-pin.is-active .yi-pin-shape path { fill: var(--yi-blue); }
.yi-map-root .yi-pin-icon:hover .yi-pin-disc, .yi-map-root .yi-pin.is-active .yi-pin-disc { color: var(--yi-blue); }
.yi-map-root .yi-pin--place .yi-pin-shape path { fill: var(--yi-teal); }
.yi-map-root .yi-pin--place .yi-pin-disc { color: var(--yi-teal); }
.yi-map-root .yi-pin-icon:hover .yi-pin--place .yi-pin-shape path, .yi-map-root .yi-pin--place.is-active .yi-pin-shape path { fill: #236a63; }
.yi-map-root .yi-pin-icon:focus-visible { outline: none; }
.yi-map-root .yi-pin-icon:focus-visible .yi-pin { filter: drop-shadow(0 0 3px #287ab9) drop-shadow(0 5px 6px rgba(0, 30, 52, .3)); }

.yi-map-root .yi-cluster { display: grid; place-items: center; width: 100%; height: 100%; border-radius: 50%; background: var(--yi-navy); color: #fff; border: 3px solid #fff; font: 700 15px/1 var(--yi-font); box-shadow: 0 0 0 7px rgba(0, 60, 112, .16), 0 6px 14px rgba(0, 30, 52, .3); transition: background .18s ease, transform .18s ease; }
.yi-map-root .yi-cluster-icon:hover .yi-cluster { background: var(--yi-blue); transform: scale(1.06); }
.yi-map-root .yi-cluster--place { background: var(--yi-teal); font-size: 13.5px; box-shadow: 0 0 0 6px rgba(40, 118, 111, .18), 0 5px 12px rgba(0, 30, 52, .26); }
.yi-map-root .yi-cluster-icon:hover .yi-cluster--place { background: #1f5f59; }

.yi-map-root .yi-poi { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: #fff; color: var(--yi-teal); border: 2px solid var(--yi-teal); box-shadow: 0 3px 8px rgba(0, 30, 52, .22); transition: background .18s ease, color .18s ease, transform .18s ease; cursor: pointer; }
.yi-map-root .yi-poi .yi-svg { width: 16px; height: 16px; stroke-width: 1.9; }
.yi-map-root .yi-poi-icon:hover .yi-poi, .yi-map-root .yi-poi.is-active { background: var(--yi-teal); color: #fff; transform: scale(1.12); }
.yi-map-root .leaflet-tooltip.yi-tip { padding: 5px 10px; border: 0; border-radius: 999px; background: #0f2a40; color: #fff; font: 600 12.5px/1.3 var(--yi-font); box-shadow: 0 4px 12px rgba(0, 30, 52, .25); white-space: nowrap; }
.yi-map-root .leaflet-tooltip.yi-tip::before { display: none; }

/* Windows of businesses and places */
.yi-map-root .yi-popup { margin-bottom: 14px; }
.yi-map-root .yi-popup .leaflet-popup-content-wrapper { padding: 0; overflow: hidden; border-radius: 18px; color: var(--yi-ink); box-shadow: 0 20px 46px rgba(0, 30, 52, .26), 0 2px 6px rgba(0, 30, 52, .08); }
.yi-map-root .yi-popup .leaflet-popup-content { width: 284px; margin: 0; font: 14px/1.45 var(--yi-font); }
.yi-map-root .yi-popup .leaflet-popup-tip { box-shadow: none; }
.yi-map-root .yi-popup a.leaflet-popup-close-button { top: 10px; right: 10px; display: grid; place-items: center; width: 32px; height: 32px; padding: 0; border-radius: 50%; background: rgba(255, 255, 255, .94); color: var(--yi-ink); font: 400 22px/1 var(--yi-font); text-decoration: none; box-shadow: 0 2px 8px rgba(0, 30, 52, .2); }
.yi-map-root .yi-popup a.leaflet-popup-close-button:hover { background: #fff; color: var(--yi-navy); }
.yi-map-root .yi-pop { position: relative; }
.yi-map-root .yi-pop-photo { display: block; height: 178px; background: var(--yi-sea); }
@supports (aspect-ratio: 16 / 10) { .yi-map-root .yi-pop-photo { height: auto; aspect-ratio: 16 / 10; } }
.yi-map-root .yi-pop-photo img { display: block; width: 100%; height: 100%; max-width: none; object-fit: cover; }
.yi-map-root .yi-offer { position: absolute; left: 12px; top: 12px; display: inline-flex; align-items: center; gap: 5px; max-width: calc(100% - 60px); padding: 5px 10px 5px 8px; border-radius: 999px; background: var(--yi-gold-bg); color: var(--yi-gold-ink); font: 700 12px/1.3 var(--yi-font); box-shadow: 0 2px 8px rgba(0, 30, 52, .16); }
.yi-map-root .yi-offer .yi-svg { width: 14px; height: 14px; flex: none; }
.yi-map-root .yi-pop-body { padding: 14px 16px 16px; }
.yi-map-root h3.yi-pop-name { display: -webkit-box; margin: 0 0 7px; padding: 0; overflow: hidden; -webkit-line-clamp: 2; -webkit-box-orient: vertical; color: var(--yi-navy); font: 700 16.5px/1.35 var(--yi-font); letter-spacing: -.2px; text-transform: none; text-align: left; overflow-wrap: anywhere; }
.yi-map-root .yi-place { display: flex; align-items: flex-start; gap: 6px; margin: 0; padding: 0; color: var(--yi-ink); font: 600 13.5px/1.4 var(--yi-font); }
.yi-map-root .yi-place .yi-svg { width: 15px; height: 15px; margin-top: 2px; color: var(--yi-blue); flex: none; }
.yi-map-root .yi-street { margin: 2px 0 0 21px; padding: 0; color: var(--yi-muted); font: 12.5px/1.4 var(--yi-font); }
.yi-map-root .yi-macros { display: flex; flex-wrap: wrap; gap: 6px; margin: 12px 0 14px; padding: 0; list-style: none; }
.yi-map-root .yi-macros li { display: inline-flex; align-items: center; gap: 5px; margin: 0; padding: 4px 9px 4px 7px; border-radius: 999px; background: var(--yi-panel-2); color: var(--yi-blue); font: 600 12px/1.3 var(--yi-font); }
.yi-map-root .yi-macros .yi-svg { width: 15px; height: 15px; flex: none; }
.yi-map-root .yi-actions, .yi-map-dialog .yi-actions { display: flex; gap: 8px; }
.yi-map-root .yi-btn, .yi-map-dialog .yi-btn { display: inline-flex; flex: 1 1 auto; align-items: center; justify-content: center; gap: 6px; min-height: 42px; margin: 0; padding: 9px 12px; border: 0; border-radius: 12px; font: 600 13.5px/1.3 var(--yi-font); text-align: center; text-decoration: none; text-transform: none; letter-spacing: 0; }
.yi-map-root .yi-btn .yi-svg, .yi-map-dialog .yi-btn .yi-svg { width: 16px; height: 16px; flex: none; }
.yi-map-root a.yi-btn--primary, .yi-map-dialog a.yi-btn--primary { background: var(--yi-blue-dark); color: #fff; }
.yi-map-root a.yi-btn--primary:hover, .yi-map-dialog a.yi-btn--primary:hover, .yi-map-root a.yi-btn--primary:focus, .yi-map-dialog a.yi-btn--primary:focus { background: var(--yi-blue-darker); color: #fff; text-decoration: none; }
.yi-map-root a.yi-btn--soft, .yi-map-dialog a.yi-btn--soft { flex: 0 0 42px; width: 42px; padding: 0; background: var(--yi-panel-2); color: var(--yi-blue-dark); }
.yi-map-root a.yi-btn--soft:hover, .yi-map-dialog a.yi-btn--soft:hover { background: var(--yi-panel-3); color: var(--yi-blue-dark); }
.yi-map-root .yi-pop--poi .yi-pop-body { padding: 14px 16px 15px; }
.yi-map-root .yi-pop--poi h3.yi-pop-name, .yi-map-root .yi-pop--compact h3.yi-pop-name { margin-right: 28px; }
.yi-map-root .yi-kicker { display: inline-flex; align-items: center; gap: 6px; margin: 0 0 6px; padding: 0; color: var(--yi-teal); font: 700 11.5px/1.3 var(--yi-font); letter-spacing: 1.2px; text-transform: uppercase; }
.yi-map-root .yi-kicker .yi-svg { width: 15px; height: 15px; flex: none; }
.yi-map-root a.yi-poi-link { display: inline-flex; align-items: center; gap: 6px; margin-top: 12px; color: var(--yi-blue-dark); font: 600 13.5px/1.3 var(--yi-font); text-decoration: none; }
.yi-map-root a.yi-poi-link:hover { color: var(--yi-blue-dark); text-decoration: underline; }
.yi-map-root a.yi-poi-link .yi-svg { width: 16px; height: 16px; }
/* Compact window for maps inside a page: photo beside the text. */
.yi-map-root .yi-popup--compact .leaflet-popup-content { width: 340px; }
.yi-map-root .yi-pop--compact { display: grid; grid-template-columns: 104px minmax(0, 1fr); }
.yi-map-root .yi-pop--compact.is-plain { display: block; }
.yi-map-root .yi-pop--compact .yi-pop-photo { aspect-ratio: auto; height: 100%; min-height: 156px; }
.yi-map-root .yi-pop--compact .yi-pop-body { padding: 13px 14px; }
.yi-map-root .yi-pop--compact h3.yi-pop-name { font-size: 15px; }
.yi-map-root .yi-pop--compact .yi-offer { left: 8px; top: 8px; max-width: 88px; padding: 3px 8px 3px 6px; font-size: 11px; }
.yi-map-root .yi-pop--compact .yi-offer .yi-svg { width: 12px; height: 12px; }
.yi-map-root .yi-pop--compact .yi-place { font-size: 13px; }
.yi-map-root .yi-glyphs { display: flex; gap: 7px; margin: 9px 0 11px; color: var(--yi-blue); }
.yi-map-root .yi-glyphs .yi-svg { width: 17px; height: 17px; }
.yi-map-root .yi-pop--compact .yi-btn { min-height: 38px; font-size: 13px; }
.yi-map-root .yi-pop--compact a.yi-btn--soft { flex-basis: 38px; width: 38px; }
.yi-map-root .yi-popup--compact a.leaflet-popup-close-button { top: 8px; right: 8px; width: 28px; height: 28px; font-size: 19px; background: var(--yi-panel-2); box-shadow: none; }

/* ---------- Big map dialog ---------- */
html.yi-map-open { overflow: hidden !important; }
html.yi-map-open.yi-map-gutter { scrollbar-gutter: stable; }
dialog.yi-map-dialog { width: min(1280px, calc(100% - 48px)); height: min(840px, calc(100vh - 48px)); height: min(840px, calc(100dvh - 48px)); max-width: none; max-height: none; margin: auto; padding: 0; border: 1px solid var(--yi-border); border-radius: 26px; background: #fff; color: var(--yi-ink); box-shadow: 0 24px 70px rgba(0, 30, 52, .28); overflow: hidden; }
dialog.yi-map-dialog[open] { display: grid; grid-template-columns: minmax(0, 1fr); grid-template-rows: auto minmax(0, 1fr); animation: yi-map-in .18s ease-out; }
/* A long title shortens with "..." instead of widening the dialog past the screen. */
.yi-map-dialog .yi-dialog-head, .yi-map-dialog .yi-dialog-body { min-width: 0; }
dialog.yi-map-dialog::backdrop { background: rgba(5, 24, 43, .58); }
@keyframes yi-map-in { from { opacity: 0; transform: translateY(8px) scale(.99); } to { opacity: 1; transform: none; } }
.yi-map-dialog .yi-dialog-head { display: flex; align-items: center; gap: 16px; padding: 16px 18px 16px 26px; border-bottom: 1px solid var(--yi-line); }
.yi-map-dialog .yi-dialog-titles { flex: 1 1 auto; min-width: 0; }
.yi-map-dialog h2.yi-dialog-title { margin: 0; padding: 0; overflow: hidden; color: var(--yi-ink); font: 700 21px/1.3 var(--yi-font); letter-spacing: -.4px; text-transform: none; text-align: left; text-overflow: ellipsis; white-space: nowrap; outline: none; }
.yi-map-dialog .yi-dialog-sub { margin: 2px 0 0; padding: 0; overflow: hidden; color: var(--yi-muted); font: 13.5px/1.4 var(--yi-font); text-overflow: ellipsis; white-space: nowrap; }
.yi-map-dialog .yi-toggle { position: relative; display: inline-flex; align-items: center; gap: 10px; margin: 0; padding: 8px 14px 8px 10px; border: 1px solid var(--yi-border); border-radius: 999px; background: #fff; color: var(--yi-ink); font: 600 13.5px/1.3 var(--yi-font); text-transform: none; cursor: pointer; white-space: nowrap; }
.yi-map-dialog .yi-toggle[hidden] { display: none; }
.yi-map-dialog .yi-toggle[aria-pressed="true"] { border-color: #a9d3cf; background: #eef8f6; color: #1f6c65; }
.yi-map-dialog .yi-toggle i { position: relative; flex: none; width: 34px; height: 20px; border-radius: 999px; background: #cfdbe5; transition: background .18s ease; }
.yi-map-dialog .yi-toggle i::after { content: ""; position: absolute; top: 3px; left: 3px; width: 14px; height: 14px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .2); transition: transform .18s ease; }
.yi-map-dialog .yi-toggle[aria-pressed="true"] i { background: var(--yi-teal); }
.yi-map-dialog .yi-toggle[aria-pressed="true"] i::after { transform: translateX(14px); }
.yi-map-dialog .yi-toggle .yi-svg { width: 17px; height: 17px; margin-right: -3px; color: var(--yi-teal); }
.yi-map-dialog .yi-close { display: grid; place-items: center; flex: 0 0 44px; width: 44px; height: 44px; margin: 0; padding: 0; border: 0; border-radius: 50%; background: var(--yi-panel-2); color: var(--yi-muted); cursor: pointer; }
.yi-map-dialog .yi-close:hover { background: var(--yi-panel-3); color: var(--yi-ink); }
.yi-map-dialog .yi-close .yi-svg { width: 19px; height: 19px; }
.yi-map-dialog .yi-dialog-body { display: grid; grid-template-columns: 384px minmax(0, 1fr); min-height: 0; }
.yi-map-dialog .yi-list { margin: 0; padding: 14px; overflow-y: auto; overscroll-behavior: contain; background: var(--yi-panel); border-right: 1px solid var(--yi-line); list-style: none; }
.yi-map-dialog .yi-list-heading { margin: 18px 4px 10px; padding: 0; color: var(--yi-teal); font: 700 12px/1.3 var(--yi-font); letter-spacing: 1.4px; text-transform: uppercase; list-style: none; }
.yi-map-dialog .yi-item { margin: 0 0 10px; padding: 0; border: 1px solid transparent; border-radius: 16px; background: #fff; box-shadow: 0 2px 10px rgba(22, 56, 83, .06); list-style: none; transition: border-color .15s ease, box-shadow .15s ease; }
.yi-map-dialog .yi-item:hover, .yi-map-dialog .yi-item.is-active { border-color: #9fc3dc; box-shadow: 0 8px 22px rgba(22, 56, 83, .12); }
.yi-map-dialog .yi-item-select { display: grid; grid-template-columns: 92px minmax(0, 1fr); gap: 13px; width: 100%; margin: 0; padding: 10px; border: 0; border-radius: 16px; background: none; color: inherit; font: inherit; text-align: left; text-transform: none; cursor: pointer; }
.yi-map-dialog .yi-item-select img, .yi-map-dialog .yi-item-noimg { display: block; width: 92px; height: 72px; max-width: none; border-radius: 12px; object-fit: cover; background: var(--yi-sea); }
.yi-map-dialog .yi-item-text { min-width: 0; padding-top: 1px; }
.yi-map-dialog .yi-item-name { display: -webkit-box; overflow: hidden; -webkit-line-clamp: 2; -webkit-box-orient: vertical; color: var(--yi-navy); font: 700 14.5px/1.35 var(--yi-font); overflow-wrap: anywhere; }
.yi-map-dialog .yi-item-place { display: block; margin-top: 3px; overflow: hidden; color: var(--yi-muted); font: 12.5px/1.4 var(--yi-font); text-overflow: ellipsis; white-space: nowrap; }
.yi-map-dialog .yi-item-icons { display: flex; align-items: center; gap: 6px; margin-top: 6px; color: var(--yi-blue); }
.yi-map-dialog .yi-item-icons .yi-svg { width: 16px; height: 16px; }
.yi-map-dialog .yi-mini-offer { margin-left: 2px; padding: 1px 7px; border-radius: 999px; background: var(--yi-gold-bg); color: var(--yi-gold-ink); font: 700 11px/1.5 var(--yi-font); }
.yi-map-dialog .yi-item-actions { display: none; }
.yi-map-dialog .yi-item--poi .yi-item-select { grid-template-columns: 44px minmax(0, 1fr); align-items: center; }
.yi-map-dialog .yi-item--poi .yi-poi-badge { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: #fff; color: var(--yi-teal); border: 2px solid var(--yi-teal); }
.yi-map-dialog .yi-item--poi .yi-poi-badge .yi-svg { width: 19px; height: 19px; }
.yi-map-dialog .yi-dialog-map { position: relative; min-width: 0; min-height: 0; }
.yi-map-dialog .yi-dialog-map > .yi-map-canvas { position: absolute; top: 0; right: 0; bottom: 0; left: 0; }

/* ---------- Tablet ---------- */
@media (max-width: 991px) {
  .yi-map { height: 360px; }
  .yi-map-dialog .yi-dialog-body { grid-template-columns: 320px minmax(0, 1fr); }
}

/* ---------- Phone ---------- */
@media (max-width: 767px) {
  .yi-map { height: 320px; border-radius: 18px; }
  .yi-map--customer { height: 270px; }
  .yi-map-root.is-still .leaflet-control-zoom, .yi-map-root.is-still .yi-recenter { display: none; }
  .yi-map .yi-map-cover { position: absolute; top: 0; right: 0; bottom: 0; left: 0; z-index: 700; display: flex; align-items: flex-end; justify-content: center; margin: 0; padding: 0 0 14px; border: 0; border-radius: 0; background: linear-gradient(to top, rgba(0, 30, 52, .2), rgba(0, 30, 52, 0) 46%); cursor: pointer; }
  .yi-map .yi-map-cover span { display: inline-flex; align-items: center; gap: 8px; max-width: calc(100% - 28px); padding: 10px 16px; border-radius: 999px; background: #fff; color: var(--yi-navy); font: 600 14px/1.3 var(--yi-font); box-shadow: 0 6px 16px rgba(0, 30, 52, .22); }
  .yi-map .yi-map-cover b { overflow: hidden; font-weight: 600; text-overflow: ellipsis; white-space: nowrap; }
  .yi-map .yi-map-cover .yi-svg { width: 17px; height: 17px; flex: none; }
  .yi-map .yi-map-chip { display: none; }
  /* Phone: title and a text link, under the place's own page title (no place line). */
  .yi-map .yi-map-invite { top: 10px; right: 64px; bottom: auto; left: 10px; display: block; max-width: none; padding: 9px 13px 10px; border-radius: 14px; }
  .yi-map .yi-map-invite .yi-invite-place { display: none; }
  .yi-map .yi-map-invite .yi-invite-title { font-size: 14px; line-height: 1.3; }
  .yi-map .yi-map-invite .yi-btn, .yi-map .yi-map-invite .yi-btn--primary, .yi-map .yi-map-invite .yi-btn--primary:hover { display: inline-flex; gap: 5px; min-height: 0; margin: 3px 0 0; padding: 0; border-radius: 0; background: none; box-shadow: none; color: var(--yi-blue-dark); font: 700 13.5px/1.35 var(--yi-font); text-decoration: underline; text-underline-offset: 3px; white-space: normal; }
  .yi-map .yi-map-invite .yi-btn .yi-svg { width: 15px; height: 15px; }
  /* On the phone carousel the invitation card keeps the cards' shadow (it floats on the map). */
  .yi-map-dialog .yi-item.yi-item--invite { background: #f3f9fd; box-shadow: 0 10px 28px rgba(0, 30, 52, .22); }
  .yi-map-dialog .yi-item.yi-item--invite .yi-invite-text { font-size: 13px; }
  .yi-map-dialog .yi-item.yi-item--invite .yi-btn { min-height: 40px; margin-top: 10px; font-size: 13px; }
  .yi-map .yi-map-expand { top: 10px; right: 10px; width: 44px; padding: 0; justify-content: center; }
  .yi-map .yi-map-expand span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  dialog.yi-map-dialog { width: 100%; height: 100vh; height: 100dvh; max-width: 100%; max-height: 100%; border: 0; border-radius: 0; }
  .yi-map-dialog .yi-dialog-head { gap: 10px; padding: 10px 10px 10px 16px; padding-top: max(10px, env(safe-area-inset-top)); }
  .yi-map-dialog h2.yi-dialog-title { font-size: 17px; }
  .yi-map-dialog .yi-dialog-sub { font-size: 12.5px; }
  .yi-map-dialog .yi-toggle { padding: 8px; }
  .yi-map-dialog .yi-toggle b { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .yi-map-dialog .yi-dialog-body { display: block; position: relative; }
  .yi-map-dialog .yi-dialog-map { position: absolute; top: 0; right: 0; bottom: 0; left: 0; }
  .yi-map-dialog .yi-dialog-map .leaflet-bottom { bottom: var(--yi-sheet, 168px); }
  .yi-map-dialog .yi-dialog-map .leaflet-control-zoom { display: none; }
  .yi-map-dialog .yi-list { position: absolute; z-index: 900; left: 0; right: 0; bottom: 0; display: flex; gap: 10px; padding: 12px 16px; padding-bottom: max(14px, env(safe-area-inset-bottom)); overflow-x: auto; overflow-y: hidden; scroll-snap-type: x mandatory; scrollbar-width: none; background: none; border: 0; }
  .yi-map-dialog .yi-list::-webkit-scrollbar { display: none; }
  .yi-map-dialog .yi-list-heading { display: none; }
  .yi-map-dialog .yi-item { flex: 0 0 min(86%, 340px); margin: 0; scroll-snap-align: center; box-shadow: 0 10px 28px rgba(0, 30, 52, .22); }
  .yi-map-dialog .yi-item-select { grid-template-columns: 84px minmax(0, 1fr); gap: 11px; padding: 10px 10px 4px; }
  .yi-map-dialog .yi-item-select img, .yi-map-dialog .yi-item-noimg { width: 84px; height: 66px; }
  .yi-map-dialog .yi-item--poi .yi-item-select { padding-bottom: 10px; }
  .yi-map-dialog .yi-item-actions { display: flex; gap: 8px; padding: 6px 10px 10px; }
  .yi-map-dialog .yi-item-actions .yi-btn { min-height: 40px; font-size: 13px; }
}
@media (prefers-reduced-motion: reduce) {
  .yi-map *, .yi-map-dialog *, .yi-map-dialog, .yi-map-root * { transition: none !important; animation: none !important; }
}
