.map-discovery{padding-bottom:38px;background:linear-gradient(#fcfaf8 0,white 280px)}
.map-intro{display:flex;align-items:center;justify-content:space-between;gap:24px;padding-block:32px 23px}
.map-intro h1{font-size:34px;letter-spacing:-1.1px;margin:0 0 10px}.map-intro p:last-child{color:#727980;margin:0;font-size:14px}.map-intro .eyebrow{font-size:14px}
.map-filters{display:grid;grid-template-columns:minmax(180px,1.5fr) repeat(3,minmax(120px,1fr)) auto;gap:12px;align-items:end;padding:18px;background:white;border:1px solid #e8e5e1;border-radius:15px;box-shadow:0 6px 20px #24262805}
.map-filters>div{min-width:0}.map-filters label{display:block;font-size:14px;font-weight:650;color:#5f6770;margin:0 0 7px}.map-filters select,.map-keyword>div{width:100%;height:42px;border:1px solid #e5e5e7;background:#fcfcfc;border-radius:8px;font-size:14px}.map-filters select{padding:8px;min-width:0}.map-keyword>div{display:flex;align-items:center;gap:8px;padding:0 10px}.map-keyword .icon{width:16px;color:#c60000}.map-keyword input{width:100%;min-width:0;border:0;background:transparent;font-size:14px;outline-offset:5px}.map-filters .button{height:42px;min-height:42px;gap:8px;padding:10px 16px}.map-reset{grid-column:1/-1;justify-self:end;font-size:14px;text-decoration:underline;text-underline-offset:3px;color:#727980;padding:0}
.map-result-bar{display:flex;justify-content:space-between;align-items:center;gap:15px;min-height:54px}.map-result-bar p{margin:0;color:#616d79;font-size:14px}.map-view-switch{display:none}
.map-workspace{display:grid;grid-template-columns:355px minmax(0,1fr);height:min(72vh,740px);min-height:530px;border:1px solid #e6e4e1;border-radius:16px;overflow:hidden;background:white;box-shadow:0 10px 30px #24262808}
.map-results{overflow-y:auto;overscroll-behavior:contain;scrollbar-width:thin;border-right:1px solid #e5e3df}.map-business{display:flex;gap:13px;padding:17px;border-bottom:1px solid #eceae7;transition:background .15s}.map-business.is-selected{background:#fff4f2;box-shadow:inset 3px 0 #c60000}.map-business-image{flex:0 0 78px;align-self:flex-start;border-radius:9px;overflow:hidden;background:#f5f3f0}.map-business-image img{width:78px;height:82px;object-fit:cover}.map-business-copy{min-width:0;flex:1}.map-business-category{display:block;font-size:14px;line-height:1.4;color:#7d848a;margin-bottom:5px}.map-business h2{font-size:14px;line-height:1.4;font-weight:700;letter-spacing:-.2px;margin:0 0 5px}.map-business h2 a:hover{color:#c60000}.map-business p{font-size:14px;color:#6c7884;line-height:1.5;margin:0 0 7px}.map-business-price{display:block;font-size:14px;color:#30373d}.map-business-actions{display:flex;flex-wrap:wrap;align-items:center;gap:8px 12px;margin-top:9px;font-size:14px}.map-business-actions button{padding:4px 7px;border:1px solid #e4dad6;border-radius:5px;background:#fff;color:#a70000;font-weight:650}.map-business-actions a{color:#626b74}.map-area-note{display:block;font-size:14px;color:#8b7770;margin-top:7px}.map-business-promotion,.map-business-promotion.is-featured,.map-business-promotion.is-top,.map-business-promotion.is-sponsored{display:inline-flex;align-items:center;justify-content:center;vertical-align:middle;box-sizing:border-box;min-height:28px;padding:3px 10px;margin-bottom:5px;border:1px solid #13283e;border-radius:20px;background:#13283e;color:#fff;font-size:14px;line-height:20px;font-weight:700;white-space:nowrap}
.map-stage{position:relative;display:grid;grid-template-rows:auto minmax(0,1fr);min-width:0;min-height:0;height:100%;isolation:isolate;background:#e9eee7}.ubz-leaflet-map{position:relative;z-index:0;isolation:isolate;font-family:Inter,'Segoe UI',sans-serif;background:#e9eee7}.directory-leaflet{height:100%;min-height:0;width:100%}.map-toolbar{position:relative;z-index:2;display:flex;justify-content:flex-start;flex-wrap:wrap;gap:8px;padding:10px 12px;background:#fff;border-bottom:1px solid #e3e7e2}.map-toolbar button{pointer-events:auto;background:white;padding:10px 13px;border:1px solid #e4e0d9;border-radius:8px;box-shadow:0 3px 12px #17252b17;font-size:14px;font-weight:650}.map-toolbar [data-map-area]{background:#c60000;color:white;border-color:#c60000}.map-toolbar [data-map-area]:disabled{display:none}.map-legend{position:absolute;left:12px;bottom:30px;z-index:2;display:flex;flex-wrap:wrap;gap:8px 12px;padding:7px 9px;background:#fffffff0;border:1px solid #e1e5dc;border-radius:7px;font-size:14px;color:#52616c;pointer-events:none}.map-legend>span{display:flex;align-items:center;gap:5px}.map-legend i{width:8px;height:8px;border-radius:50%;background:#c60000}.map-legend i.is-area{background:white;border:2px solid #b15b47}.map-data-note{font-size:14px;line-height:1.7;color:#7d8489;margin:14px 0 0}.map-tile-status{position:relative;padding:10px 14px;background:#fff6de;font-size:14px;color:#775c19;margin:0}.map-stage>.map-tile-status{position:absolute;z-index:3;bottom:55px;left:12px;right:12px;border-radius:8px}.map-tile-status[hidden]{display:none}.map-empty{padding:35px 22px;text-align:center}.map-empty>span{font-size:35px;color:#b6a19a}.map-empty h2{font-size:20px;letter-spacing:-.4px;line-height:1.4;margin:7px 0 12px}.map-empty p{font-size:14px;color:#78818b;line-height:1.7}.map-empty .button{font-size:14px;margin-bottom:15px}.map-empty>a:not(.button){display:block;font-size:14px;color:#a70000}.map-more{display:block;margin:20px auto;font-size:14px}.map-loading{padding:25px;text-align:center;color:#6b7782;font-size:14px}
.ubz-map-marker{background:transparent;border:0}.map-pin{display:grid;place-items:center;width:30px;height:34px;border:2px solid white;border-radius:15px 15px 15px 4px;transform:rotate(-15deg);box-shadow:0 2px 7px #27303355;background:#c60000;color:white;font-size:22px;font-weight:800}.map-pin-area{background:white;color:#ad4d37;border-color:#ad4d37}.map-pin-featured{background:#aa7d24}.map-pin-top{background:#304b9b}.map-pin-area.map-pin-featured{background:white;color:#aa7d24;border-color:#aa7d24}.map-pin-area.map-pin-top{background:white;color:#304b9b;border-color:#304b9b}.ubz-map-cluster{display:grid;place-items:center;border-radius:50%;background:#c6000028;border:1px solid #c6000028}.ubz-map-cluster>span{display:grid;place-items:center;width:32px;height:32px;border:3px solid white;border-radius:50%;background:#c60000;color:white;font-size:14px;font-weight:750;box-shadow:0 2px 6px #71332c33}.ubz-leaflet-map .leaflet-control-attribution{font-size:14px;background:#fffffff0}.ubz-leaflet-map .leaflet-control-attribution a{color:#3a637b}.ubz-leaflet-map .leaflet-control-zoom a{color:#30383e}.ubz-leaflet-map .leaflet-popup-content{margin:0;max-width:calc(100vw - 48px)}.ubz-leaflet-map .leaflet-popup-content-wrapper{border-radius:12px}.ad-map.ubz-leaflet-map{height:330px;min-height:330px;border:1px solid #e3e5df;border-radius:14px;overflow:hidden}.ad-map-actions{flex-wrap:wrap}
@media(max-width:1100px){.map-filters{grid-template-columns:repeat(4,minmax(0,1fr))}.map-keyword{grid-column:1/3}.map-filters>div:nth-child(4){grid-column:1/3}.map-reset{grid-column:auto;align-self:center}.map-workspace{grid-template-columns:305px minmax(0,1fr)}.map-intro h1{font-size:29px}.map-business{padding:14px 12px;gap:10px}.map-business-image{flex-basis:62px}.map-business-image img{width:62px;height:70px}.map-toolbar button{font-size:14px;padding:9px 10px}}
@media(max-width:700px){.map-intro{padding-block:24px 18px;display:block}.map-intro h1{font-size:29px;line-height:1.2;max-width:340px}.map-intro p:last-child{font-size:14px}.map-intro>.text-link{margin-top:16px;font-size:14px}.map-filters{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;padding:15px;border-radius:12px}.map-filters>div:nth-child(4){grid-column:auto}.map-keyword{grid-column:1/-1}.map-filters .button{grid-column:1/-1}.map-filters select{font-size:14px}.map-reset{grid-column:1/-1;justify-self:center}.map-result-bar{align-items:flex-start;gap:10px;padding-block:16px;flex-direction:column}.map-result-bar p{font-size:14px;line-height:1.5}.map-view-switch{display:flex;border:1px solid #e3ded8;border-radius:8px;background:#f8f6f3;align-self:stretch;padding:3px;gap:3px}.map-view-switch button{flex:1;display:flex;align-items:center;justify-content:center;gap:7px;font-size:14px;padding:8px;border-radius:5px;color:#7b8389}.map-view-switch button[aria-pressed=true]{background:white;color:#c60000;box-shadow:0 1px 5px #2426280d}.map-view-switch .icon{width:16px;height:16px}.map-workspace{display:block;height:clamp(420px,72svh,620px);min-height:0;position:relative;border-radius:12px}.map-results{height:100%;border:0}.map-workspace[data-view=map] .map-results{display:none}.map-workspace[data-view=list] .map-stage{display:none}.map-stage{height:100%}.map-business{padding:15px}.map-business-image{flex-basis:76px}.map-business-image img{width:76px;height:82px}.map-business h2{font-size:15px}.map-toolbar{gap:8px;padding:10px}.map-toolbar button{font-size:14px}.map-legend{font-size:14px;max-width:calc(100% - 65px);bottom:30px}.map-data-note{font-size:14px}.ad-map.ubz-leaflet-map{height:290px;min-height:290px}}
@media(prefers-reduced-motion:reduce){.ubz-leaflet-map *{transition:none!important;animation:none!important}}
/* UBZ app pin: maple leaf on a white centre, with the familiar teardrop silhouette. */
.map-pin{position:absolute;left:4px;top:4px;display:block;width:34px;height:34px;border:0;border-radius:50% 50% 50% 0;transform:rotate(-45deg);background:#ef4035;color:#ef4035;box-shadow:0 3px 7px #24303a55}
.map-pin-core{position:absolute;inset:5px;display:flex;align-items:center;justify-content:center;border-radius:50%;background:white;transform:rotate(45deg);font-size:21px;line-height:1;font-family:'Apple Color Emoji','Segoe UI Emoji','Noto Color Emoji',sans-serif}
.map-pin-core img{width:23px;height:23px;max-width:none;display:block}
.map-price-label{position:absolute;bottom:51px;left:21px;transform:translateX(-50%);display:block;max-width:210px;padding:4px 9px;border:2px solid white;border-radius:14px;box-shadow:0 2px 6px #24303a45;background:#c60000;color:white;font-size:14px;line-height:1.3;font-weight:750;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-variant-numeric:tabular-nums}
.map-price-label.price-featured{background:#805b12}.map-price-label.price-top{background:#304b9b}
.map-pin-area{background:#ef4035;color:#ef4035;border:0}
.map-pin-featured,.map-pin-area.map-pin-featured{background:#b88622;color:#b88622;border:0}
.map-pin-top,.map-pin-area.map-pin-top{background:#304b9b;color:#304b9b;border:0}
.map-pin-approx{position:absolute;right:-6px;top:-5px;display:grid;place-items:center;width:16px;height:16px;transform:rotate(45deg);border-radius:50%;border:1px solid currentColor;background:white;color:inherit;font-size:14px;font-weight:750;line-height:1;box-shadow:0 1px 4px #24303a22}
.ubz-map-cluster>span{width:38px;height:38px;font-size:14px;border-width:3px;box-shadow:0 2px 7px #71332c44}
.map-legend i{background:#ef4035}.map-legend i.is-featured{background:#b88622}.map-legend i.is-top{background:#304b9b}.map-legend b{font-size:14px;line-height:8px;color:#6a747d}

.map-filters button[type=submit],.map-toolbar button{background:#eaf2ff;color:#285c96;border:1px solid #d1e1f6;border-radius:10px;font-weight:650}.map-filters .map-reset{background:#f5efea;color:#795d4a;border:1px solid #e9ddd4;border-radius:10px;padding:12px}.map-workspace{scroll-margin-top:100px}
/* Sponsored matches the navy badge, with a clear white centre. */
.map-pin-featured,.map-pin-top,.map-pin-area.map-pin-featured,.map-pin-area.map-pin-top{background:#27465e;color:#27465e;border:0}.map-pin-featured .map-pin-core,.map-pin-top .map-pin-core{background:#fff}.map-price-label.price-featured,.map-price-label.price-top{background:#27465e;color:#fff}.map-legend i.is-sponsored{background:#27465e}

/* Business cards stay inside the map canvas; search controls occupy their own row. */
.ubz-business-popup .leaflet-popup-content-wrapper{padding:0;border-radius:16px;overflow:hidden;border:1px solid #dfe5e8;box-shadow:0 10px 30px #10283b33}
.ubz-business-popup .leaflet-popup-content{font-family:Inter,'Segoe UI',sans-serif;margin:0;line-height:1.45}
.ubz-business-popup .leaflet-popup-scrolled{border:0;scrollbar-width:thin;overscroll-behavior:contain}
.ubz-leaflet-map .ubz-business-popup a.leaflet-popup-close-button{width:44px;height:44px;line-height:40px;font-size:25px;color:#4a5963;z-index:2}
.map-popup-card{display:flex;flex-direction:column;box-sizing:border-box;width:100%;max-height:var(--map-popup-max-height,380px);padding:0;background:#fff;color:#24323d;overflow-wrap:anywhere}.map-popup-scroll{min-height:0;overflow-y:auto;overscroll-behavior:contain;scrollbar-width:thin;padding:16px}.map-popup-footer{flex-shrink:0;padding:10px 16px 14px;border-top:1px solid #edf0f2;background:#fff}
.map-popup-lead{display:flex;align-items:flex-start;gap:12px;padding-right:18px}
.map-popup-photo{position:relative;display:block;flex:0 0 84px;width:84px;height:84px;margin:0;border-radius:12px;overflow:hidden;background:#f1f4f7}
.map-popup-photo img{display:block;width:100%;height:100%;object-fit:cover}
.map-popup-photo.is-placeholder img,.map-business-image img[src*="placeholder.svg"]{object-fit:contain;padding:5px;box-sizing:border-box;background:#edf3fc}
.map-popup-heading{min-width:0;flex:1}
.map-popup-heading h3{font-size:16px;line-height:1.35;letter-spacing:-.15px;margin:0 0 6px;font-weight:750;color:#172c3a}
.map-popup-sponsored{display:inline-flex;align-items:center;justify-content:center;min-height:24px;padding:2px 8px;margin:0 0 7px;border-radius:20px;background:#13283e;color:#fff;font-size:12px;line-height:18px;font-weight:650}
.ubz-business-popup .map-popup-card p{margin:0;line-height:1.5}
.map-popup-category{color:#6b7882;font-size:12px}
.map-popup-details{display:grid;gap:5px;margin-top:14px;padding-top:12px;border-top:1px solid #edf0f2}
.map-popup-location{font-size:14px;font-weight:600;color:#354b5b}
.map-popup-address{font-size:13px;color:#687782}
.map-popup-price{display:block;font-size:15px;color:#172c3a;margin-top:3px;font-weight:700}
.ubz-business-popup .map-popup-link{display:flex;align-items:center;justify-content:center;gap:12px;min-height:44px;margin:0;padding:10px 12px;box-sizing:border-box;border-radius:10px;background:#c60000;color:#fff;text-decoration:none;font-size:14px;font-weight:700;line-height:20px}
.ubz-business-popup .map-popup-link:hover{background:#a80000;color:#fff}
.ubz-business-popup .map-popup-link:focus-visible{outline:3px solid #285c96;outline-offset:2px}
.map-toolbar button{min-height:44px}
.map-business h2{font-size:16px;line-height:1.4}.map-business-actions button,.map-business-actions>a{display:inline-flex;align-items:center;justify-content:center;min-height:44px;box-sizing:border-box}
@media(max-width:700px){.map-toolbar button{flex:1;padding:10px 8px;line-height:20px}.map-popup-scroll{padding:14px}.map-popup-footer{padding:8px 14px 12px}.map-popup-photo{flex-basis:72px;width:72px;height:72px}.map-popup-lead{gap:10px}.map-popup-heading h3{font-size:15px}.map-popup-details{margin-top:12px}.map-legend{max-width:calc(100% - 75px);font-size:12px;gap:5px 8px;padding:6px 8px}}
@media(max-width:360px){.map-popup-photo{flex-basis:56px;width:56px;height:64px}.map-popup-lead{gap:8px}}

@media(max-width:700px) and (max-height:600px){.map-workspace{height:calc(100svh - 116px);min-height:260px}}

.map-workspace{scroll-margin-top:12px}
.map-popup-heading h3{display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}
/* Compact map cards: category colors distinguish content without overpowering the map. */
.map-tone-sky{--map-card-bg:#f5f9ff;--map-chip-bg:#e7f0fd;--map-chip-ink:#284f80;--map-chip-border:#ccdef5}
.map-tone-sage{--map-card-bg:#f4faf6;--map-chip-bg:#e2f2e8;--map-chip-ink:#285b42;--map-chip-border:#c6e3d1}
.map-tone-lavender{--map-card-bg:#faf7ff;--map-chip-bg:#eee6fb;--map-chip-ink:#644482;--map-chip-border:#decff1}
.map-tone-peach{--map-card-bg:#fff9f5;--map-chip-bg:#fbe9dc;--map-chip-ink:#805135;--map-chip-border:#efd3bf}
.map-tone-sand{--map-card-bg:#fcfaf4;--map-chip-bg:#f3ecd8;--map-chip-ink:#6b5930;--map-chip-border:#e5d9b6}
.map-category-chip{display:inline-flex;align-items:center;gap:6px;box-sizing:border-box;max-width:100%;min-height:28px;padding:3px 8px;border:1px solid var(--map-chip-border,#ccdef5);border-radius:8px;background:var(--map-chip-bg,#e7f0fd);color:var(--map-chip-ink,#284f80);font-size:12px;font-weight:650;line-height:18px;vertical-align:middle;text-align:left}
.map-category-chip>img,.map-category-chip>svg{flex:0 0 18px;width:18px;height:18px;object-fit:contain}.map-category-chip>span{min-width:0;overflow-wrap:anywhere}
.map-popup-scroll{padding:12px;background:var(--map-card-bg,#f5f9ff)}.map-popup-lead{gap:10px;padding-right:20px}.map-popup-photo{flex-basis:64px;width:64px;height:64px;border-radius:10px}.map-popup-heading h3{font-size:15px;line-height:1.35;margin:0}.map-popup-sponsored{margin-bottom:5px;min-height:22px;padding:1px 7px}.map-popup-scroll>.map-category-chip{margin-top:8px}
.map-popup-details{grid-template-columns:minmax(0,1fr) auto;gap:3px 8px;margin-top:8px;padding-top:8px}.map-popup-location{font-size:13px;grid-column:1;grid-row:1}.map-popup-address{font-size:12px;grid-column:1/-1;grid-row:2}.map-popup-price{font-size:14px;margin:0;grid-column:2;grid-row:1;align-self:start;max-width:130px;text-align:right;overflow-wrap:anywhere}.map-popup-footer{padding:8px 12px;background:#fff}
.map-business{padding:12px;gap:10px;background:var(--map-card-bg,#f5f9ff);border-bottom-color:#e2e8ed}.map-business.is-selected{background:var(--map-chip-bg,#e7f0fd);box-shadow:inset 3px 0 var(--map-chip-ink,#284f80)}.map-business-image{flex-basis:64px}.map-business-image img{width:64px;height:68px}.map-business .map-category-chip{margin-bottom:6px;font-size:12px}.map-business h2{font-size:15px;margin-bottom:4px}.map-business p{font-size:13px;line-height:1.4;margin-bottom:5px}.map-business-actions{gap:6px 10px;margin-top:6px;font-size:13px}.map-business-price{font-size:13px}.map-business-promotion{font-size:12px;min-height:24px;line-height:18px;padding:2px 8px}.map-area-note,.map-business-distance{font-size:12px;line-height:1.5}
@media(max-width:700px){.map-popup-scroll{padding:11px}.map-popup-footer{padding:7px 11px}.map-popup-photo{flex-basis:56px;width:56px;height:56px}.map-popup-lead{gap:9px}.map-popup-details{margin-top:8px}.map-popup-heading h3{font-size:15px}.map-popup-price{max-width:100px}}
@media(max-width:360px){.map-popup-photo{flex-basis:48px;width:48px;height:52px}.map-popup-lead{gap:8px}.map-popup-price{grid-column:1/-1;grid-row:3;text-align:left;max-width:none}}
