/* Sizes are in px, not rem: many themes (Dawn and its family) set the root
   font size to 10px, which shrank everything here to 62.5%. */
.mapsync-container{width:100%;max-width:100%;padding:32px 24px;font-family:inherit;box-sizing:border-box;justify-self:stretch;align-self:stretch}
.mapsync-heading{font-size:24px;font-weight:700;margin:0 0 16px;letter-spacing:-.02em;padding:0 16px}
.mapsync-search{padding:0 16px 16px}
.mapsync-search-inner{display:flex;gap:8px;max-width:100%}
.mapsync-search-input{flex:1;min-width:0;padding:10.4px 16px;font-size:14.4px;border:1.5px solid #ddd;border-radius:8px;outline:none;font-family:inherit;transition:border-color .2s,box-shadow .2s;background:#fff}
.mapsync-search-input:focus{border-color:var(--accent,#6366f1);box-shadow:0 0 0 3px rgba(0,0,0,.06)}
.mapsync-search-btn{padding:10.4px 20px;font-size:14px;font-weight:600;color:var(--accent-on,#fff);background:var(--accent,#6366f1);border:none;border-radius:8px;cursor:pointer;transition:opacity .2s;white-space:nowrap;line-height: 1 !important;background-image:none !important;}
.mapsync-search-btn:hover{opacity:.88}
.mapsync-clear-btn{padding:10.4px 12px;font-size:12.8px;color:#888;background:#f5f5f5;border:1px solid #e5e5e5;border-radius:8px;cursor:pointer;transition:background .15s}
.mapsync-clear-btn:hover{background:#eee}
.mapsync-locate-btn{align-items:center;justify-content:center;padding:10.4px 12px;color:#444;background:#f5f5f5;border:1px solid #e5e5e5;border-radius:8px;cursor:pointer;transition:background .15s}
.mapsync-locate-btn:hover{background:#eee}
.mapsync-locate-btn--busy{opacity:.5;pointer-events:none}
.mapsync-status-link{padding:0;border:0;background:none;font:inherit;color:var(--accent-text,#333);text-decoration:underline;cursor:pointer}
.mapsync-ac-item--loc{font-weight:600;color:#111}
.mapsync-ac-where{font-weight:400;color:#888;margin-left:5.6px}
.mapsync-search-status{margin-top:6.4px;font-size:12.8px;color:#888}
.mapsync-layout{display:flex;flex-wrap:wrap;gap:0;width:100%;border-radius:12px;overflow:hidden;box-shadow:0 0 0 1px rgba(0,0,0,.06),0 2px 8px rgba(0,0,0,.06);background:#fff}
.mapsync-layout--map-full{display:block!important;width:100%!important}
.mapsync-layout--map-full .mapsync-map-wrap{width:100%!important;display:block}
.mapsync-layout--map-full .mapsync-list-wrap{width:100%!important;display:block}
.mapsync-layout--map-left .mapsync-list-wrap{flex:0 0 340px;max-width:340px}
.mapsync-layout--map-left .mapsync-map-wrap{flex:1 1 0%;min-width:300px}
.mapsync-layout--map-right .mapsync-list-wrap{order:-1;flex:0 0 340px;max-width:340px}
.mapsync-layout--map-right .mapsync-map-wrap{flex:1 1 0%;min-width:300px}
.mapsync-map{width:100%;background:#f0f0f0;position:relative;z-index:1}
.mapsync-loading{display:flex;align-items:center;justify-content:center;height:100%;color:#aaa;font-size:13.6px}
.mapsync-error{display:flex;align-items:center;justify-content:center;height:100%;padding:32px;color:#ef4444;background:#fef2f2;font-size:13.6px}
.mapsync-list-wrap{background:#fff;display:flex;flex-direction:column}
.mapsync-list{overflow-y:auto;flex:1}
.mapsync-list-item{padding:14px 16px;border-bottom:1px solid #f0f0f0;cursor:pointer;transition:background .12s;border-left:3px solid transparent}
.mapsync-list-item:hover{background:#fafafa}
.mapsync-list-group{position:sticky;top:0;z-index:1;padding:8px 16px;background:#f6f6f7;border-bottom:1px solid #e5e5e5;font-weight:600;font-size:13.6px;letter-spacing:.02em}
.mapsync-list-group span{font-weight:400;color:#777}
.mapsync-list-item--active{background:#f6f6f6;border-left-color:var(--accent,#6366f1)}
.mapsync-list-name{font-size:14.4px;font-weight:600;margin:0 0 3.2px;color:#1a1a1a}
.mapsync-list-addr{font-size:12.48px;color:#777;margin:0 0 4.8px;line-height:1.35}
.mapsync-list-meta{display:flex;align-items:center;gap:12px;flex-wrap:wrap}
.mapsync-list-hours{font-size:12px;color:#555;font-weight:500}
.mapsync-list-dist{font-size:11.52px;font-weight:600;color:var(--accent-on,#fff);background:var(--accent,#6366f1);padding:2.4px 8px;border-radius:10px;white-space:nowrap}
.mapsync-list-details{display:none;padding:9.6px 0 0;border-top:1px solid #f0f0f0;margin-top:9.6px}
.mapsync-list-item--expanded .mapsync-list-details{display:block}
.mapsync-list-detail{font-size:12.48px;color:#555;margin:4px 0;line-height:1.4}
.mapsync-list-detail a{color:var(--accent-text,#6366f1);text-decoration:none;font-weight:500}
.mapsync-list-detail a:hover{text-decoration:underline}
.mapsync-list-directions{display:inline-block;margin-top:6.4px;font-size:12.48px;font-weight:600;color:var(--accent-text,#6366f1);text-decoration:none}
.mapsync-list-directions:hover{text-decoration:underline}
.mapsync-empty{padding:32px;text-align:center;color:#aaa;font-size:13.6px}
.mapsync-info{max-width:280px;line-height:1.5}
.mapsync-info strong{display:block;margin-bottom:4px;font-size:15.2px;font-weight:600}
.mapsync-info p{font-size:12.8px;color:#555;margin:3.2px 0}
.mapsync-info a{color:var(--accent-text,#6366f1);text-decoration:none;font-weight:600}
.mapsync-info a:hover{text-decoration:underline}
.mapsync-marker{background:none!important;border:none!important}
.leaflet-popup-content-wrapper{border-radius:10px;box-shadow:0 4px 20px rgba(0,0,0,.12)}
.leaflet-popup-content{margin:12px 16px}
.leaflet-popup-tip{box-shadow:0 2px 8px rgba(0,0,0,.06)}
@media(max-width:768px){
/* On a phone the map and the list each scroll under a finger, so a block
   that fills the screen traps the page: every swipe moves the map or the
   list and the visitor cannot get past it. Keep an equal margin on both
   sides that belongs to the page, wide enough for a thumb, and never let
   the search row push past the edge. */
.mapsync-container{padding:16px 20px}
.mapsync-heading,.mapsync-search{padding-left:0;padding-right:0}
.mapsync-search-btn{padding-left:14.4px;padding-right:14.4px}
.mapsync-layout{flex-direction:column!important;border-radius:8px}
.mapsync-layout .mapsync-map-wrap,.mapsync-layout .mapsync-list-wrap{flex:none!important;width:100%!important;max-width:none!important;min-width:0!important}
.mapsync-list-wrap{border-top:1px solid #eee}
.mapsync-list{max-height:300px!important}
.mapsync-heading{font-size:20px}
.leaflet-popup{max-width:calc(100vw - 40px)!important}
.leaflet-popup-content-wrapper{max-width:calc(100vw - 40px)!important}
.leaflet-popup-content{max-width:calc(100vw - 72px)!important;word-wrap:break-word}
}
.mapsync-ac-wrap{display:none;position:absolute;top:100%;left:0;right:0;background:#fff;border:1px solid #e5e5e5;border-radius:0 0 8px 8px;box-shadow:0 4px 12px rgba(0,0,0,.1);z-index:1000;max-height:240px;overflow-y:auto;margin-top:-2px}
.mapsync-ac-item{padding:9.6px 13.6px;font-size:13.12px;color:#333;cursor:pointer;border-bottom:1px solid #f5f5f5;line-height:1.35;transition:background .1s}
.mapsync-ac-item:last-child{border-bottom:none}
.mapsync-ac-item:hover{background:#f6f6f6}
.mapsync-pulse-wrap{position:relative;width:18px;height:18px}
.mapsync-pulse-dot{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);width:10px;height:10px;border-radius:50%;box-shadow:0 1px 4px rgba(0,0,0,.2)}
.mapsync-pulse-ring{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);width:18px;height:18px;border-radius:50%;border:2px solid;opacity:.6;animation:mapsync-pulse 2s ease-out infinite}
@keyframes mapsync-pulse{0%{transform:translate(-50%,-50%) scale(1);opacity:.6}100%{transform:translate(-50%,-50%) scale(2.2);opacity:0}}

/* Map styles made by recolouring OpenStreetMap tiles in the browser, so no
   style depends on a tile provider that needs an account or key. */
.mapsync-tiles--light { filter: grayscale(1) contrast(0.9) brightness(1.08); }
.mapsync-tiles--muted { filter: saturate(0.5) brightness(1.04); }
.mapsync-tiles--dark { filter: invert(1) hue-rotate(180deg) grayscale(0.4) brightness(0.92) contrast(0.88); }
.mapsync-map.mapsync-tiles--dark-bg { background: #1b1b1b; }
.mapsync-map.mapsync-tiles--light-bg { background: #f2f2f2; }

/* Vector engine (MapLibre): pins, clusters and popups. */
.mapsync-pin { padding: 0; border: 0; background: none; cursor: pointer; display: block; line-height: 0; }
.mapsync-pin img { display: block; pointer-events: none; }
/* A merchant's own pin image keeps its proportions inside its box, on both map engines. */
.mapsync-pin img, img.mapsync-pin-img { object-fit: contain; object-position: center bottom; }
.mapsync-pin--cluster { line-height: normal; }
.mapsync-pin:focus-visible { outline: 2px solid #111; outline-offset: 2px; border-radius: 50%; }
.mapsync-map .maplibregl-popup { z-index: 5; }
.mapsync-map .maplibregl-popup-content { border-radius: 10px; box-shadow: 0 4px 20px rgba(0,0,0,.12); padding: 12px 16px; font: inherit; word-wrap: break-word; }
.mapsync-map .maplibregl-popup-close-button { font-size: 18px; padding: 2px 8px; color: #666; }
.mapsync-map .maplibregl-ctrl-attrib { font-size: 11px; }
.mapsync-map .maplibregl-canvas { outline: none; }
/* A long search prompt ("Search by suburb, postcode or stockist name") has no
   room beside three buttons on a phone. Give the box a row of its own, with
   the buttons underneath, and let anything still too long end in an ellipsis. */
.mapsync-search-input,.mapsync-search-input::placeholder{text-overflow:ellipsis}
@media(max-width:480px){
/* Filter buttons on a phone: a little smaller, so a row of them is less
   likely to leave one button alone on a second line, and the rows of
   category and custom field buttons sit the same distance apart as the
   buttons within a row. Still 30px tall, a comfortable tap. */
.mapsync-container .mapsync-filters{gap:6px}
.mapsync-container .mapsync-filter-btn{font-size:12.5px;padding:5px 11px;min-height:30px}
.mapsync-container .mapsync-field-filters{margin-top:-8px}
.mapsync-search-inner{flex-wrap:wrap}
.mapsync-search-input{flex:1 1 100%}
.mapsync-search-btn{flex:1}
}
.mapsync-cats{display:flex;flex-wrap:wrap;gap:4px;margin:2px 0 6px}
.mapsync-cat{display:inline-block;font-size:11px;line-height:1.3;font-weight:500;letter-spacing:0;color:#555;background:#f3f3f3;border:1px solid #e6e6e6;border-radius:999px;padding:2px 8px;white-space:nowrap}
.mapsync-info .mapsync-cats{margin:6px 0}
.mapsync-fields{display:flex;flex-wrap:wrap;gap:4px 10px;margin:2px 0 6px}
.mapsync-field{font-size:11px;line-height:1.4;font-weight:500;letter-spacing:0;color:#2e7d32;white-space:nowrap}
.mapsync-info .mapsync-fields{margin:6px 0}
.mapsync-field-label{font-weight:600}
.mapsync-info-line{margin:4px 0;font-size:12px}
.mapsync-field-filters{margin-top:-4px}
/* "Filter by ..." panel for list fields: closed until the shopper opens it. */
.mapsync-choice-filters{margin:8px 0 4px;border:1px solid #e5e5e5;border-radius:8px;background:#fff;font-size:13px}
.mapsync-choice-filters>summary{padding:10px 14px;cursor:pointer;font-weight:600;color:#1a1a1a;list-style:none;display:flex;align-items:center;justify-content:space-between;gap:10px}
.mapsync-choice-filters>summary::-webkit-details-marker{display:none}
.mapsync-choice-filters>summary::after{content:"";flex:none;width:7px;height:7px;margin:-3px 4px 0 0;border-right:2px solid #666;border-bottom:2px solid #666;transform:rotate(45deg);transition:transform .15s}
.mapsync-choice-filters[open]>summary::after{transform:rotate(-135deg);margin-top:3px}
.mapsync-choice-filters[open]>summary{border-bottom:1px solid #eee}
.mapsync-choice-group{padding:8px 14px 2px}
.mapsync-choice-heading{font-size:11px;font-weight:600;letter-spacing:.04em;text-transform:uppercase;color:#666;margin:2px 0 0}
.mapsync-choice-row{padding:6px 0 8px}
.mapsync-choice-clear{margin:0 14px 12px;padding:0;border:0;background:none;color:#555;font-family:inherit;font-size:12px;text-decoration:underline;cursor:pointer;text-transform:none;letter-spacing:normal;min-height:0;height:auto;width:auto;box-shadow:none}
.mapsync-social a{margin-right:12px}
.mapsync-email{word-break:break-all}
.mapsync-area-note{font-size:.85em;font-style:italic;opacity:.75;margin:2px 0}
/* Themes style every <button>: keep the map's own buttons in sentence case at their own size. */
.mapsync-search-btn,.mapsync-clear-btn,.mapsync-locate-btn{text-transform:none;letter-spacing:normal;min-height:0;height:auto;width:auto;margin:0;box-shadow:none;font-family:inherit}
.mapsync-search-status button{text-transform:none;letter-spacing:normal;min-height:0;height:auto;width:auto;font-family:inherit;box-shadow:none}
