/* Asta Maps: warm paper, burgundy and the typography of the Rede Asta. */
.am-app, .am-profile { --am-paper:#f1e0c6; --am-wine:#183348; --am-red:#990210; --am-ink:#183348; --am-line:#18334825; font-family:var(--body, 'Montserrat', Arial, sans-serif); background:var(--am-paper); color:var(--am-ink); }
.am-app *, .am-profile * { box-sizing:border-box; }
.am-app [hidden], .am-profile [hidden] { display:none !important; }
.am-app button, .am-app input, .am-app select { font:inherit; }
.am-app button { cursor:pointer; }
.am-app button, .am-app a, .am-profile a { -webkit-tap-highlight-color:transparent; }
.am-app :is(button,a,input,select):focus-visible, .am-profile a:focus-visible { outline:2px solid var(--am-red); outline-offset:4px; }
.am-eyebrow { font-size:10px; font-weight:600; letter-spacing:.18em; line-height:1.7; text-transform:uppercase; }
.am-intro { background:var(--am-wine); color:var(--am-paper); padding:48px 5vw 46px; display:flex; justify-content:space-between; gap:30px; align-items:center; }
.am-intro-artwork { width:clamp(120px,24vw,300px); height:auto; flex:none; }
@media(max-width:580px) { .am-intro { flex-wrap:wrap; } .am-intro-artwork { width:min(48vw,185px); margin-inline:auto; } }
.am-intro .am-eyebrow { color:#e8b59e; }
.am-intro :is(h1,h2) { margin:16px 0 18px; font:500 clamp(36px,3.7vw,58px)/1.08 var(--body,Arial,sans-serif); letter-spacing:-.045em; }
.am-intro :is(h1,h2) em { font:italic 400 1.12em/1 var(--display,Georgia,serif); }
.am-intro p { max-width:570px; font-size:13px; line-height:1.8; color:#f1e0c6d9; margin:0; }
.am-explorer { padding:30px 3.4vw 60px; max-width:1800px; margin:auto; }
.am-toolbar { display:flex; align-items:stretch; gap:12px; }
.am-search { display:flex; flex:1; align-items:center; min-width:0; border:1px solid var(--am-wine); border-radius:8px; background:#fff8ee; overflow:hidden; }
.am-search > span { font-size:32px; padding-left:18px; color:var(--am-wine); line-height:1; }
.am-search input { flex:1; width:100%; min-width:0; background:transparent; border:0; height:52px; padding:10px 15px; color:var(--am-ink); font-size:13px; outline-offset:-4px !important; }
.am-search input::-webkit-search-cancel-button { display:none; }
.am-search-clear { background:none; border:0; color:var(--am-wine); font-size:25px !important; min-width:44px; height:44px; }
.am-filter-toggle { display:flex; align-items:center; justify-content:center; gap:10px; padding:12px 22px; border:1px solid var(--am-wine); border-radius:8px; background:var(--am-wine); color:var(--am-paper); font-size:13px !important; }
.am-filter-toggle svg { width:18px; height:18px; }
.am-filter-toggle[aria-expanded="true"] { background:var(--am-red); }
.am-filter-count { display:grid; place-items:center; min-width:20px; height:20px; border-radius:100%; background:var(--am-paper); color:var(--am-wine); font-size:10px; }
.am-app :is(.am-list-toggle,.am-list-layout) {
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:7px;
  min-height:44px;
  border:1px solid var(--am-wine);
  border-radius:8px;
  padding:8px 13px;
  color:var(--am-wine);
  background:#fff8ee;
  font-size:12px;
  font-weight:600;
  white-space:nowrap;
}
.am-app .am-list-toggle { background:var(--am-wine); color:#fff8ee; }
.am-app .am-list-toggle:hover { background:var(--am-red); }
.am-list-layout:hover { background:var(--am-paper); }
:is(.am-list-toggle,.am-list-layout) svg { width:18px; height:18px; flex:none; fill:none; stroke:currentColor; stroke-width:1.65; stroke-linecap:round; stroke-linejoin:round; }
.am-categories { display:flex; gap:8px; overflow-x:auto; padding:18px 0 15px; scrollbar-width:thin; }
.am-category { display:flex; align-items:center; gap:10px; border:1px solid #18334840; background:transparent; border-radius:30px; padding:9px 15px; color:var(--am-wine); font-size:12px !important; white-space:nowrap; min-height:40px; }
.am-category svg { width:18px; height:18px; flex:none; fill:none; stroke:currentColor; stroke-width:1.5; stroke-linecap:round; stroke-linejoin:round; }
.am-category-count { font-size:10px; opacity:.65; }
.am-category:hover, .am-category[aria-pressed="true"] { background:var(--am-wine); color:var(--am-paper); border-color:var(--am-wine); }
.am-filters { margin:8px 0 15px; background:#fff8ee; border:1px solid var(--am-line); border-radius:10px; padding:24px; }
.am-filter-grid { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:20px; }
.am-filter-grid label { display:flex; flex-direction:column; gap:9px; font-size:11px; font-weight:600; color:var(--am-wine); }
.am-filter-grid :is(select,input) { width:100%; min-width:0; border:1px solid #18334840; border-radius:6px; padding:12px; background:#fffdf8; color:var(--am-ink); font-size:13px; min-height:45px; }
.am-filter-footer { display:flex; align-items:center; gap:20px; padding-top:24px; }
.am-filter-footer p { flex:1; font-size:11px; line-height:1.6; }
.am-reset { background:none; border:0; border-bottom:1px solid #18334866; padding:8px 0; color:var(--am-wine); font-size:11px !important; }
.am-apply { border:1px solid var(--am-wine); border-radius:30px; background:var(--am-wine); color:var(--am-paper); padding:12px 22px; min-height:44px; font-size:12px !important; }
.am-active-filters { display:flex; flex-wrap:wrap; gap:8px; padding:8px 0 14px; }
.am-active-chip { background:#1833480c; color:var(--am-wine); border:1px solid var(--am-line); border-radius:5px; padding:8px 10px; font-size:10px !important; min-height:34px; }
.am-results-header { display:flex; justify-content:space-between; align-items:center; gap:12px; padding:4px 0 12px; }
.am-result-count { font-size:12px; margin:0; line-height:1.5; }
.am-result-count strong { color:var(--am-wine); font-weight:700; }
.am-list-toolbar { display:flex; justify-content:space-between; flex-wrap:wrap; align-items:center; gap:8px; margin-bottom:10px; }
.am-list-toolbar label { display:flex; align-items:center; gap:9px; font-size:10px; white-space:nowrap; }
.am-list-toolbar select { padding:8px; font-size:11px; border:0; border-bottom:1px solid var(--am-line); background:transparent; color:var(--am-ink); }
.am-workspace { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:24px; align-items:stretch; }
.am-map-panel { min-width:0; position:relative; height:690px; border:1px solid var(--am-line); border-radius:10px; overflow:hidden; background:#e4dfcf; isolation:isolate; }
#am-map { width:100%; height:100%; font-family:inherit; z-index:0; }
.am-fit { position:absolute; z-index:500; top:14px; right:14px; border:1px solid #18334844; border-radius:30px; padding:11px 15px; background:#fff8ee; color:var(--am-wine); box-shadow:0 2px 12px #18334815; font-size:10px !important; }
.am-map-help { position:absolute; z-index:500; bottom:25px; left:12px; right:12px; max-width:340px; padding:9px 12px; border-radius:6px; background:#fff8eeec; font-size:9px; line-height:1.6; color:var(--am-ink); pointer-events:none; margin:0; }
.am-map-error { position:absolute; z-index:600; top:75px; left:20px; right:20px; background:#fff8ee; border:1px solid var(--am-line); border-radius:8px; padding:14px; font-size:12px; line-height:1.6; }
.am-list-panel { height:690px; overflow-y:auto; min-width:0; overscroll-behavior:contain; padding-right:10px; scrollbar-width:thin; scrollbar-color:var(--am-red) #e8d6bb; }
.am-cards { display:flex; flex-direction:column; gap:12px; }
.am-card { position:relative; display:flex; align-items:flex-start; gap:18px; padding:20px; border:1px solid var(--am-line); border-radius:8px; background:#fff8ee; min-width:0; }
.am-card:hover, .am-card.is-selected { border-color:#18334888; }
.am-card-image-link { flex:0 0 90px; }
.am-card-image { height:104px; width:90px; border-radius:5px; background:#e8d6bb; overflow:hidden; }
.am-card-image img { width:100%; height:100%; object-fit:cover; }
.am-image-placeholder { display:grid; place-items:center; width:100%; height:100%; color:#18334888; font-size:42px; }
.am-card-body { flex:1; min-width:0; }
.am-card-category { display:block; font-size:9px; font-weight:600; letter-spacing:.09em; text-transform:uppercase; color:#990210; line-height:1.7; }
.am-card h2 { margin:6px 0 7px; font:500 18px/1.25 var(--body,Arial,sans-serif); letter-spacing:-.025em; overflow-wrap:anywhere; }
.am-card h2 a:hover { color:var(--am-red); }
.am-card-location { font-size:11px; margin:0; line-height:1.6; }
.am-card-details { display:flex; flex-wrap:wrap; gap:8px; margin-top:9px; font-size:9px; line-height:1.5; }
.am-invoice-badge { color:#355748; border:1px solid #35574833; background:#3557480a; padding:3px 7px; border-radius:4px; }
.am-technique-label { padding:3px 0; }
.am-card-actions { display:flex; justify-content:space-between; flex-wrap:wrap; gap:6px 12px; margin-top:13px; align-items:center; }
.am-profile-link { font-size:10px; color:var(--am-wine); border-bottom:1px solid #18334855; padding:6px 0; }
.am-locate { background:none; border:0; color:var(--am-ink); font-size:10px !important; padding:6px 0; text-decoration:underline; text-underline-offset:3px; }
.am-list-footer { text-align:center; padding:25px 0 10px; }
.am-more { border:1px solid var(--am-wine); background:transparent; color:var(--am-wine); border-radius:30px; padding:12px 22px; min-height:44px; font-size:12px !important; }
.am-showing { display:block; font-size:10px; margin-top:14px; opacity:.7; }
.am-empty { padding:70px 35px; text-align:center; width:100%; }
.am-empty > span { font-size:60px; color:var(--am-red); }
.am-empty h2 { font-size:24px; line-height:1.3; margin:20px 0; }
.am-empty p { font-size:13px; line-height:1.7; margin-bottom:25px; }
.am-workspace[data-view="list"] { display:block; }
.am-workspace[data-view="map"] { display:block; }
.am-workspace[data-view="map"] .am-list-panel { display:none; }
.am-workspace[data-view="list"] .am-map-panel { display:none; }
.am-workspace[data-view="list"] .am-list-panel { height:auto; overflow:visible; padding:0; }
.am-workspace[data-view="list"] .am-cards { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); }
.am-workspace[data-view="list"] .am-card { flex-direction:column; }
.am-workspace[data-view="list"] .am-card-image-link { flex:auto; width:100%; }
.am-workspace[data-view="list"] .am-card-image { width:100%; height:auto; aspect-ratio:1.6; }
.am-workspace[data-view="list"] .am-card-body { width:100%; }
.am-workspace[data-view="list"] .am-empty { grid-column:1/-1; }
.am-closing { display:flex; align-items:center; gap:32px; background:var(--am-wine); color:var(--am-paper); padding:50px 5vw; }
.am-closing > span { font-size:85px; color:#e8b59e; }
.am-closing h2 { font-size:clamp(25px,2.3vw,36px); line-height:1.25; font-weight:500; letter-spacing:-.03em; margin:12px 0 0; }
.am-closing > a { margin-left:auto; font-size:12px; border-bottom:1px solid #f1e0c666; padding:12px 0; white-space:nowrap; }
.am-closing > a span { margin-left:30px; }
/* Leaflet controls and markers use the same palette. */
.am-app .leaflet-control-zoom { border:1px solid #18334844 !important; border-radius:8px !important; overflow:hidden; box-shadow:0 2px 12px #18334815; }
.am-app .leaflet-control-zoom a { background:#fff8ee; color:var(--am-wine); border-color:#18334833 !important; width:34px; height:34px; line-height:34px; }
.am-app .leaflet-control-zoom a:hover { background:#f1e0c6; }
.am-app .leaflet-control-attribution { font-size:9px; background:#fff8eee6; }
.am-app .leaflet-control-attribution a { color:var(--am-wine); }
.am-marker { background:transparent; border:0; }
.am-marker > span { display:grid; place-items:center; width:34px; height:34px; border-radius:50% 50% 50% 0; transform:rotate(-45deg); background:var(--am-red); border:2px solid #fff8ee; color:#f1e0c6; box-shadow:0 3px 9px #18334844; font-size:21px; }
.am-cluster { display:grid; place-items:center; border-radius:50%; background:#18334825; border:1px solid #18334833; }
.am-cluster span { display:grid; place-items:center; width:34px; height:34px; border-radius:50%; background:var(--am-wine); color:var(--am-paper); font:600 12px/1 var(--body,Arial,sans-serif); box-shadow:0 0 0 3px #fff8ee66; }
.am-app .leaflet-popup-content-wrapper { border-radius:8px; background:#fff8ee; color:var(--am-ink); box-shadow:0 4px 24px #18334833; }
.am-app .leaflet-popup-tip { background:#fff8ee; }
.am-notice { font-size:14px; padding:30px; }
/* Individual business profiles. */
.am-profile { padding:40px 0 80px; }
.am-profile-wrap { width:min(1250px,90%); margin:auto; }
.am-back { display:inline-block; color:var(--am-wine); font-size:12px; padding:10px 0; margin-bottom:30px; }
.am-profile-layout { display:grid; grid-template-columns:1fr 1fr; gap:6%; align-items:start; }
.am-profile-visual { aspect-ratio:1; overflow:hidden; border-radius:8px; background:#e8d6bb; }
.am-profile-visual > img { width:100%; height:100%; object-fit:cover; }
.am-profile-placeholder { display:grid; place-items:center; height:100%; color:#18334888; font-size:130px; }
.am-profile-info { padding-top:20px; }
.am-profile-info .am-eyebrow { color:var(--am-red); }
.am-profile h1 { font:500 clamp(30px,3.7vw,54px)/1.12 var(--body,Arial,sans-serif); letter-spacing:-.04em; margin:20px 0 15px; overflow-wrap:anywhere; }
.am-profile-location { font-size:14px; margin-bottom:25px; }
.am-profile-description { font-size:14px; line-height:1.9; overflow-wrap:anywhere; }
.am-profile-description p { margin-bottom:18px; }
.am-profile-tags { display:flex; flex-wrap:wrap; gap:8px; margin-block:24px; }
.am-profile-tags span { padding:7px 12px; border:1px solid var(--am-line); border-radius:30px; font-size:10px; }
.am-profile-contact { display:flex; flex-wrap:wrap; align-items:center; gap:14px 24px; margin:28px 0 20px; }
.am-profile-contact > a:not(.am-primary-link) { font-size:12px; color:var(--am-wine); text-decoration:underline; text-underline-offset:4px; }
.am-primary-link { display:inline-block; background:var(--am-wine); color:var(--am-paper); border-radius:30px; padding:15px 23px; font-size:12px; line-height:1.5; }
.am-primary-link:hover { background:var(--am-red); }
.am-profile-note { font-size:10px; opacity:.75; line-height:1.7; }
.am-gallery { margin-top:65px; border-top:1px solid var(--am-line); padding-top:40px; }
.am-gallery h2 { font-size:32px; font-weight:500; letter-spacing:-.03em; margin:15px 0 30px; }
.am-gallery > div { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:20px; }
.am-gallery a { display:block; aspect-ratio:1; border-radius:6px; overflow:hidden; background:#e8d6bb; }
.am-gallery img { width:100%; height:100%; object-fit:cover; }
.am-profile-footer { display:flex; align-items:center; justify-content:space-between; gap:24px; border-top:1px solid var(--am-line); margin-top:55px; padding-top:35px; }
.am-profile-footer p { font-size:16px; line-height:1.6; }
@media(min-width:1600px) { .am-workspace {grid-template-columns:repeat(2,minmax(0,1fr));} }
@media(max-width:1100px) {
  .am-workspace { grid-template-columns:repeat(2,minmax(0,1fr)); gap:16px; }
  .am-card { padding:16px; gap:12px; }
  .am-card-image-link { flex-basis:70px; }
  .am-card-image { width:70px; height:90px; }
  .am-workspace[data-view="list"] .am-cards { grid-template-columns:repeat(2,minmax(0,1fr)); }
}
@media(max-width:760px) {
  .am-intro { padding:35px 6vw; gap:16px; }
  .am-intro p { font-size:12px; }
  .am-explorer { padding:22px 5vw 40px; }
  .am-toolbar { flex-wrap:wrap; gap:10px; }
  .am-search { flex-basis:calc(100% - 110px); }
  .am-search input { height:48px; padding-inline:10px; font-size:12px; }
  .am-search input::placeholder { font-size:11px; }
  .am-search > span { padding-left:12px; }
  .am-filter-toggle { padding:10px 14px; gap:7px; font-size:12px !important; }
  .am-filter-toggle svg { width:16px; }
  .am-categories { margin-right:-5vw; padding-right:5vw; }
  .am-category { min-height:44px; }
  .am-filters { padding:18px; }
  .am-filter-grid { grid-template-columns:1fr 1fr; gap:16px 12px; }
  .am-filter-grid :is(select,input) { font-size:12px; padding:10px; }
  .am-filter-footer { flex-wrap:wrap; gap:12px 20px; justify-content:space-between; }
  .am-filter-footer p { flex-basis:100%; }
  .am-list-toolbar select { padding:3px 0; }
  .am-result-count { font-size:11px; }
  .am-workspace { display:flex; flex-direction:column; gap:18px; }
  .am-map-panel { height:350px; }
  .am-map-help { max-width:250px; font-size:8px; bottom:24px; }
  .am-fit { font-size:9px !important; padding:10px; }
  .am-list-panel { height:auto; overflow:visible; padding:0; }
  .am-card { padding:18px; gap:16px; }
  .am-card-image-link { flex-basis:80px; }
  .am-card-image { width:80px; height:95px; }
  .am-card h2 { font-size:17px; }
  .am-card-actions { gap:6px 15px; }
  .am-card-actions :is(a,button) { min-height:36px; display:inline-flex; align-items:center; }
  .am-closing { padding:35px 6vw; flex-wrap:wrap; gap:20px; }
  .am-closing > span { display:none; }
  .am-closing > a { margin-left:0; }
  .am-profile { padding-top:22px; }
  .am-profile-layout { grid-template-columns:1fr; gap:24px; }
  .am-profile-visual { aspect-ratio:1.2; }
  .am-profile-info { padding-top:0; }
  .am-profile h1 { font-size:36px; }
  .am-profile-description { font-size:14px; }
  .am-gallery { margin-top:40px; }
  .am-gallery > div { grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px; }
  .am-profile-footer { flex-direction:column; align-items:flex-start; }
}
@media(max-width:420px) {
  .am-workspace[data-view="list"] .am-cards { grid-template-columns:1fr; }
  .am-filter-grid { grid-template-columns:1fr; }
  .am-card { gap:12px; padding:15px; }
  .am-card-image-link { flex-basis:65px; }
  .am-card-image { width:65px; height:80px; }
}
@media(prefers-reduced-motion:reduce) { .am-app *, .am-profile * { scroll-behavior:auto !important; transition:none !important; } }

.am-profile-dialog {
  position:fixed;
  inset:0;
  margin:auto;
  width:min(1040px,calc(100% - 24px));
  max-width:none;
  max-height:calc(100dvh - 24px);
  overflow:auto;
  overscroll-behavior:contain;
  padding:0;
  border:1px solid var(--am-line);
  border-radius:14px;
  background:var(--am-paper);
  color:var(--am-ink);
}
.am-profile-dialog::backdrop { background:#183348b8; }
body:has(.am-profile-dialog[open]) { overflow:hidden; }
.am-profile-dialog-bar {
  position:sticky;
  top:0;
  z-index:1;
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:12px;
  padding:8px clamp(14px,3vw,30px);
  border-bottom:1px solid var(--am-line);
  background:var(--am-paper);
  font-size:13px;
  font-weight:600;
}
.am-profile-dialog-bar button {
  min-height:44px;
  padding:8px 14px;
  color:var(--am-paper);
  background:var(--am-wine);
  border:0;
  border-radius:24px;
}
.am-profile-dialog-bar button span { margin-left:4px; }
.am-profile-dialog .am-profile-dialog-content { padding:clamp(16px,3vw,36px); }
.am-profile-dialog-status { margin:0 0 12px; }

@media(min-width:761px){
 .am-workspace[data-view="split"]{grid-template-columns:minmax(0,1.65fr) minmax(0,1fr);}
 .am-map-panel,.am-list-panel{height:clamp(480px,76vh,850px);height:clamp(480px,76dvh,850px);}
 .am-workspace[data-view="map"] .am-map-panel{height:clamp(520px,82dvh,900px);}
}
@media(max-width:760px){
 .am-map-panel{height:clamp(380px,66svh,560px);}
}
#am-map{touch-action:none;}
.am-pin-enter{animation:am-pin-drop .6s cubic-bezier(.2,.75,.35,1) both;}
@keyframes am-pin-drop{0%{translate:0 -45px;opacity:0;}65%{translate:0 4px;opacity:1;}82%{translate:0 -3px;}100%{translate:0 0;opacity:1;}}
@media(prefers-reduced-motion:reduce){.am-pin-enter{animation:none;}}
