:root{font-family:Inter,ui-sans-serif,system-ui,-apple-system,Segoe UI,Arial,sans-serif;color:#1b302a;background:#f6f7f1;font-synthesis:none}*{box-sizing:border-box}body{margin:0}button,input,select,textarea{font:inherit}button{cursor:pointer}a{color:inherit;text-decoration:none}.topbar{height:76px;background:#fff;display:flex;align-items:center;justify-content:space-between;padding:0 max(24px,calc((100vw - 1180px)/2));border-bottom:1px solid #e3e9e1;gap:20px}.brand{font-weight:850;font-size:24px;white-space:nowrap;letter-spacing:-1px}.brand span:last-child{color:#c67a34}.brandmark{color:#34765c;font-size:32px;vertical-align:-3px}.topbar nav{display:flex;gap:30px;font-size:14px;font-weight:700;color:#53665e}.topbar nav a:hover,.topbar nav a.active{color:#1e7155}.account,.outline{border:1px solid #d3ddd5;border-radius:999px;background:white;padding:11px 16px;font-size:13px;font-weight:700}.hero{background:linear-gradient(95deg,rgba(13,49,39,.95),rgba(21,71,56,.76)),url('https://images.unsplash.com/photo-1535958636474-b021ee887b13?w=1600&q=85') center/cover;color:white;padding:75px max(24px,calc((100vw - 1180px)/2)) 80px}.eyebrow{font-size:12px;letter-spacing:2.5px;text-transform:uppercase;font-weight:800;color:#b8d9bb}.hero h1{font-size:clamp(40px,5vw,70px);letter-spacing:-2.5px;line-height:1.04;max-width:690px;margin:18px 0}.hero p{max-width:580px;color:#d7e6d8;font-size:18px;line-height:1.6}.searchbar{display:flex;background:white;border-radius:14px;padding:7px;max-width:700px;margin-top:30px;gap:7px;box-shadow:0 8px 28px #102a2533}.searchbar input{flex:1;min-width:0;border:0;outline:0;padding:14px;color:#173b2f}.primary{border:0;background:#cf863d;color:#fff;padding:13px 22px;border-radius:9px;font-weight:800}.primary:hover{background:#b56d2a}.shell{max-width:1180px;margin:0 auto;padding:40px 24px 80px}.sectiontop{display:flex;justify-content:space-between;align-items:end;gap:20px;margin-bottom:22px}h2{font-size:29px;letter-spacing:-.8px;margin:0 0 7px}h3{margin:0 0 10px}.muted{color:#687970;font-size:14px;line-height:1.55}.filters{display:flex;gap:10px;flex-wrap:wrap;margin-bottom:22px}.filters select,.filters input{border:1px solid #dbe4da;border-radius:10px;padding:12px;background:white;min-width:140px;color:#28463b}.grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:22px}.brewcard{border-radius:17px;background:#fff;overflow:hidden;border:1px solid #e4eae2;box-shadow:0 5px 18px #183e2b0c;transition:transform .2s}.brewcard:hover{transform:translateY(-3px)}.cardimage{height:190px;background-size:cover;background-position:center;position:relative}.scorebadge{position:absolute;top:14px;right:14px;background:#fff;color:#1c6e4e;border-radius:12px;padding:9px 12px;font-size:19px;font-weight:850;box-shadow:0 2px 8px #0002}.cardbody{padding:19px}.cardbody h3{font-size:21px;letter-spacing:-.4px}.tags{display:flex;flex-wrap:wrap;gap:7px;margin:12px 0}.tag{background:#ecf4ec;color:#396d54;border-radius:999px;padding:6px 9px;font-size:11px;font-weight:750}.cardbottom{display:flex;align-items:center;justify-content:space-between;margin-top:16px;gap:10px}.smallbtn{border:1px solid #cddbd0;border-radius:9px;background:#fff;padding:9px 12px;font-size:12px;font-weight:800}.smallbtn.saved{background:#e3f1e5;color:#216246}.empty{padding:45px 25px;text-align:center;border:1px dashed #b6c7b9;border-radius:14px;background:#fff}.back{border:0;background:transparent;color:#377258;font-weight:800;margin-bottom:20px}.profilehero{min-height:300px;background-position:center;background-size:cover;border-radius:18px;position:relative;overflow:hidden}.profilehero:after{content:"";position:absolute;inset:0;background:linear-gradient(transparent,#102f28a8)}.profileheading{position:absolute;z-index:1;bottom:25px;left:28px;color:#fff}.profileheading h1{font-size:clamp(30px,5vw,49px);margin:0 0 8px;letter-spacing:-1.5px}.twocol{display:grid;grid-template-columns:1.3fr .7fr;gap:24px;margin-top:24px}.panel{background:white;border:1px solid #e1e9e0;border-radius:16px;padding:24px;margin-bottom:20px}.scoreline{display:flex;gap:16px;align-items:center;margin-bottom:15px}.bigscore{font-size:48px;font-weight:900;color:#2c7556;letter-spacing:-2px}.metric{display:grid;grid-template-columns:130px 1fr 40px;gap:12px;align-items:center;margin:12px 0;font-size:13px}.track{height:9px;background:#edf0e9;border-radius:9px;overflow:hidden}.fill{height:100%;background:#70a27e;border-radius:9px}.formgrid{display:grid;grid-template-columns:1fr 1fr;gap:16px}.field{display:flex;flex-direction:column;gap:7px;font-size:13px;font-weight:750}.field input,.field textarea,.field select{border:1px solid #d4e0d5;border-radius:9px;padding:11px;width:100%;background:#fff;color:#173d30}.field textarea{min-height:95px;resize:vertical}.rangefield{margin:12px 0}.rangehead{display:flex;justify-content:space-between;font-size:14px;font-weight:700}.rangefield input{width:100%;accent-color:#2b7757}.review{border-top:1px solid #e4ebe3;padding:17px 0}.review:first-of-type{border:0}.pill{display:inline-block;border-radius:8px;background:#e9f3ea;padding:6px 10px;color:#286344;font-size:12px;font-weight:800}.notice{background:#fff8e8;border:1px solid #f1dfb8;color:#705524;padding:14px 17px;border-radius:12px;margin:18px 0;font-size:13px;line-height:1.6}.featuregrid{display:flex;flex-wrap:wrap;gap:8px}.feature{background:#f0f5ee;border-radius:8px;padding:9px 12px;font-size:13px}.about p,.about li{line-height:1.7}.about{max-width:820px}.accountmodal{position:fixed;inset:0;background:#0d231c99;display:grid;place-items:center;z-index:10;padding:20px}.modalbox{background:#fff;border-radius:18px;padding:28px;max-width:420px;width:100%}.modalbox h2{margin-bottom:10px}.modalbox input{width:100%;padding:12px;border:1px solid #d4e0d5;border-radius:9px;margin:14px 0}.close{float:right;border:0;background:transparent;font-size:23px}footer{background:#173c30;color:#c9ddcf;text-align:center;padding:26px 15px;font-size:12px}@media(max-width:800px){.grid{grid-template-columns:repeat(2,minmax(0,1fr))}.twocol{grid-template-columns:1fr}.topbar{padding:0 20px}.topbar nav{gap:12px}.account{display:none}}@media(max-width:550px){.topbar{height:auto;padding:14px 16px;flex-wrap:wrap;gap:8px}.brand{font-size:21px}.topbar nav{width:100%;justify-content:space-between}.hero{padding:55px 20px 60px}.hero h1{font-size:43px}.searchbar{flex-direction:column}.shell{padding:30px 16px 60px}.grid{grid-template-columns:1fr}.formgrid{grid-template-columns:1fr}.sectiontop{align-items:start;flex-direction:column}.profilehero{min-height:250px}.profileheading{left:18px;bottom:18px}.metric{grid-template-columns:105px 1fr 30px}.panel{padding:18px}}

.foodquestions{background:#f1f6ef;border:1px solid #d7e5d6;padding:18px;border-radius:12px;margin:18px 0}.foodquestions h3{margin:0 0 6px}.foodquestion{display:flex;align-items:center;gap:14px;flex-wrap:wrap;padding:12px 0;border-top:1px solid #dce7dc}.foodquestion strong{flex-basis:100%;font-size:14px}.foodquestion label{display:inline-flex;align-items:center;gap:5px;cursor:pointer;font-size:14px}.foodquestion input{accent-color:#2b7757}.rangefield[hidden]{display:none}

/* v1.3 richer brewery profiles */
.profileactions{display:flex;align-items:center;flex-wrap:wrap;gap:12px;margin:20px 0 0}.profileactions .primary{display:inline-block}.scorecompare{display:grid;grid-template-columns:1fr 1fr;gap:14px;margin:15px 0 24px}.scorecompare>div{padding:18px;background:#f2f7ef;border:1px solid #e0eade;border-radius:13px;min-width:0}.scorecompare .bigscore{margin:6px 0 0}.scorecompare small{font-size:16px;letter-spacing:0;color:#718378}.bigscore.personal{color:#bd7836}.eyebrow.dark{color:#4c745b;letter-spacing:1.4px}.reviewchips{display:flex;flex-wrap:wrap;gap:6px;margin-top:10px}.reviewchip{font-size:11px;background:#edf4eb;color:#32614c;border-radius:999px;padding:5px 9px}.foodfacts{display:grid;gap:9px;margin:14px 0}.foodfacts>div{display:flex;justify-content:space-between;gap:10px;padding:12px;background:#f4f7f0;border-radius:9px;font-size:13px}.foodfacts span{color:#536b5b}.profileactions .muted{margin-left:auto}@media(max-width:550px){.scorecompare{grid-template-columns:1fr 1fr;gap:8px}.scorecompare>div{padding:12px}.scorecompare .bigscore{font-size:33px}.profileactions .muted{width:100%;margin-left:0}}

/* v1.5 discovery */
.discoverytools{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:0 0 15px}.viewbuttons{display:flex;gap:8px}#breweryMap{height:510px;max-height:65vh;min-height:300px;border:1px solid #d5e1d4;border-radius:15px;overflow:hidden;background:#e9f0e8}#cards[hidden],#mapArea[hidden]{display:none}.addmodal{max-width:700px;max-height:90vh;overflow:auto}.addmodal .field{margin-bottom:12px}.featurechoices{display:flex;flex-wrap:wrap;gap:12px;margin:12px 0 18px;border:1px solid #dce7dc;border-radius:12px;padding:16px}.featurechoices legend{font-size:13px;font-weight:750}.featurechoices label{font-size:13px}.addmodal textarea{min-height:75px}.addmodal .primary{width:100%}.leaflet-popup-content a{color:#21714c;text-decoration:underline;display:block;margin-top:8px}@media(max-width:550px){.discoverytools{align-items:start}.addmodal{padding:18px}}

.discoveryactions{display:flex;flex-wrap:wrap;gap:10px;align-items:center}.discoveryactions .primary{display:inline-flex;align-items:center;text-decoration:none}.filters .field{min-width:190px;flex:1}.filters .field input,.filters .field select{width:100%}@media(max-width:640px){.discoveryactions{width:100%}.discoveryactions>*{flex:1;text-align:center}}

/* Version 1.7: Modern Outdoors visual refresh, top navigation on all screen sizes */
:root{color:#253b31;background:#f7f5ef;--forest:#234735;--pine:#315d46;--amber:#c68b43;--cream:#f7f5ef;--line:#e5e7dd}
body{background:var(--cream);color:#253b31}
.topbar{position:sticky;top:0;z-index:9;min-height:78px;height:auto;background:#fffdf9ee;backdrop-filter:blur(14px);border-bottom:1px solid var(--line);box-shadow:0 2px 16px #193c2710;padding-top:12px;padding-bottom:12px}
.brand{font-size:25px;color:var(--forest);letter-spacing:-1.1px}
.brandmark{display:inline-grid;place-items:center;width:36px;height:36px;background:var(--forest);border-radius:11px;color:#f4e6c7;font-size:24px;vertical-align:-6px;margin-right:6px}
.topbar nav{gap:4px;align-items:center;flex-wrap:wrap}
.topbar nav a{color:#52665a;border-radius:10px;padding:11px 13px;white-space:nowrap;transition:background .2s,color .2s}
.topbar nav a:hover{background:#edf3ea;color:var(--forest)}
.topbar nav a.active{background:#e8f0e6;color:#24593f}
.account,.outline,.smallbtn{border-color:#cddbd0;transition:background .2s,transform .2s}
.account:hover,.outline:hover,.smallbtn:hover{background:#eaf2e8}
.hero{background:linear-gradient(100deg,rgba(16,47,36,.97) 5%,rgba(21,58,43,.86) 55%,rgba(26,60,41,.44)),url('https://images.unsplash.com/photo-1535958636474-b021ee887b13?w=1800&q=85') center/cover;padding-top:95px;padding-bottom:100px}
.hero h1{font-size:clamp(42px,5.4vw,76px);font-weight:850;max-width:740px;line-height:1.06;letter-spacing:-2.7px}
.hero p{font-size:19px;color:#e2e9dd}
.hero .eyebrow{color:#e4c28d}
.searchbar{border-radius:17px;box-shadow:0 14px 45px #10271e50;padding:8px}
.searchbar input{font-size:16px}
.primary{background:var(--amber);border-radius:11px;color:#211b12}
.primary:hover{background:#dda25a}
.shell{padding-top:48px}
.sectiontop h2{font-size:34px;color:var(--forest)}
.brewcard,.panel{border-color:var(--line);box-shadow:0 6px 22px #193d2910}
.brewcard{border-radius:19px}
.brewcard:hover{box-shadow:0 12px 30px #193d2920}
.cardimage{height:205px}
.scorebadge{color:#245e43}
.tag,.pill{background:#e9f0e7;color:#325d44}
.filters{background:#fffdf9;border:1px solid var(--line);padding:14px;border-radius:16px;box-shadow:0 4px 16px #193d2909}
.filters input{flex:2;min-width:210px}
.filters select{flex:1}
.filters input:focus,.filters select:focus,.field input:focus,.field textarea:focus,.field select:focus{outline:2px solid #7ca48b;outline-offset:1px}
.profilehero{border-radius:20px;min-height:340px}
.panel{border-radius:18px}
.notice{background:#fcf6e9;border-color:#eee0c3}
footer{background:#1d3c2f}
@media(max-width:1050px){.topbar{justify-content:center;flex-wrap:wrap;gap:8px}.topbar nav{order:3;justify-content:center;width:100%}.account{display:block}.topbar nav a{padding:9px 12px}}
@media(max-width:550px){.topbar{position:relative;padding:12px 14px}.brand{font-size:23px}.topbar nav{display:flex;justify-content:flex-start;flex-wrap:nowrap;overflow-x:auto;scrollbar-width:thin;gap:2px;padding-bottom:3px}.topbar nav a{font-size:12px;padding:10px 11px;flex-shrink:0}.account{display:block;padding:8px 11px}.hero{padding:65px 20px 68px}.hero h1{font-size:45px;letter-spacing:-1.8px}.hero p{font-size:16px}.searchbar{gap:8px}.shell{padding-top:30px}.sectiontop h2{font-size:28px}.filters{padding:12px}.filters input,.filters select{width:100%;min-width:0}.cardimage{height:220px}}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{scroll-behavior:auto!important;transition:none!important}}

/* v1.9 directory filter panel */
.directory-filters{margin:20px 0;padding:18px;border:1px solid #d6e2d7;border-radius:14px;background:#f7faf6}.directory-filters h3{margin:0 0 8px}.directory-filter-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:12px;margin:14px 0}.directory-filter-grid .field{min-width:0}.directory-filter-grid select{width:100%;max-width:100%}@media(max-width:600px){.directory-filters{padding:12px}.directory-filter-grid{grid-template-columns:1fr 1fr;gap:8px}}

/* v2.2: adjustable pin confirmation */
.pinconfirm{position:fixed;inset:0;z-index:3000;background:rgba(16,30,22,.75);display:flex;align-items:center;justify-content:center;padding:14px}.pinconfirm-card{background:#fff;border-radius:18px;padding:22px;width:min(620px,100%);max-height:94vh;overflow:auto;box-shadow:0 12px 60px #0004}.pinconfirm-card h2{margin:0 0 8px}.pinconfirm-card p{line-height:1.45}.pinconfirm #pinConfirmMap{height:min(50vh,420px);min-height:260px;border-radius:12px;background:#e5ede6;margin:12px 0}.pinconfirm-actions{display:flex;gap:10px;justify-content:flex-end;flex-wrap:wrap}.pinconfirm-actions button{width:auto!important}.pinconfirm-actions button:disabled{opacity:.45;cursor:not-allowed}

/* v2.3 map controls and consistent Leaflet tile display in Safari */
.mapstatus{display:flex;align-items:center;flex-wrap:wrap;gap:10px;margin:10px 0 16px;color:#4b6356;font-size:13px}.mapstatus span{flex:1;min-width:170px}.mapstatus button{padding:7px 12px}.leaflet-container img.leaflet-tile{max-width:none!important;max-height:none!important}.leaflet-container{isolation:isolate}

/* v2.6: Leaflet's own CSS controls tile sizing and positioning. */
#breweryMap .leaflet-tile, #pinConfirmMap .leaflet-tile {
 max-width:none!important;
 max-height:none!important;
}

/* v2.7: iPhone Safari safe-area and reachable pin confirmation controls. */
.pinconfirm{
  box-sizing:border-box;
  height:100vh;
  height:100dvh;
  padding:12px;
  padding-top:max(12px,env(safe-area-inset-top,0px));
  padding-bottom:max(18px,env(safe-area-inset-bottom,0px));
  overflow:hidden;
}
.pinconfirm-card{
  display:flex;
  flex-direction:column;
  max-height:100%;
  min-height:0;
  overflow-y:auto;
  overscroll-behavior:contain;
  -webkit-overflow-scrolling:touch;
}
.pinconfirm-actions{
  position:sticky;
  bottom:0;
  z-index:1100;
  background:#fff;
  border-top:1px solid #e1e9e0;
  margin:14px -22px -22px;
  padding:14px 22px max(18px,env(safe-area-inset-bottom,0px));
  box-shadow:0 -5px 12px #102a2510;
}
@media(max-width:550px){
  .pinconfirm{align-items:stretch;padding:8px 8px max(12px,env(safe-area-inset-bottom,0px))}
  .pinconfirm-card{padding:16px;width:100%;max-height:100%;border-radius:14px}
  .pinconfirm-card h2{font-size:23px}
  .pinconfirm-card p{margin:8px 0}
  .pinconfirm #pinConfirmMap{height:clamp(185px,32dvh,280px);min-height:185px;flex-shrink:0}
  .pinconfirm-actions{margin:12px -16px -16px;padding:12px 16px max(18px,env(safe-area-inset-bottom,0px));flex-wrap:nowrap}
  .pinconfirm-actions button{min-height:48px;padding:10px 12px}
  .pinconfirm-actions #pinAccept{flex:1}
  .pinconfirm-actions #pinCancel{flex:0 0 auto}
}

/* v2.8: Make Add Brewery's Save action reliably tappable on iPhone Safari.
   Keep scrolling inside the form and its action button pinned inside the modal. */
.accountmodal:has(.addmodal){
  height:100vh;
  height:100dvh;
  overflow:hidden;
  overscroll-behavior:contain;
}
.addmodal{
  display:flex;
  flex-direction:column;
  min-height:0;
  max-height:min(90vh,90dvh);
  overflow:hidden;
}
.addmodal #addForm{
  display:flex;
  flex-direction:column;
  min-height:0;
  overflow-y:auto;
  -webkit-overflow-scrolling:touch;
  overscroll-behavior:contain;
  padding-bottom:0;
}
.addmodal #addForm > button[type="submit"]{
  position:sticky;
  bottom:0;
  z-index:20;
  flex-shrink:0;
  min-height:54px;
  margin-top:18px;
  padding:14px;
  box-shadow:0 -8px 0 8px #fff,0 -12px 14px #102a2514;
}
@media(max-width:550px){
  .accountmodal:has(.addmodal){
    display:flex;
    align-items:stretch;
    justify-content:stretch;
    padding:8px 8px max(12px,env(safe-area-inset-bottom,0px));
  }
  .addmodal{
    width:100%;
    max-width:none;
    max-height:100%;
    height:100%;
    border-radius:14px;
    padding:16px;
  }
  .addmodal #addForm{flex:1;}
  .addmodal #addForm > button[type="submit"]{
    margin-bottom:0;
    padding-bottom:max(14px,env(safe-area-inset-bottom,0px));
  }
}

/* v2.9: iPhone form width and fixed-in-modal actions. */
html,body{max-width:100%;overflow-x:clip}
#app,.shell,.panel,.formgrid,.field,.addmodal,.addmodal #addForm{min-width:0;max-width:100%}
.brewery-modal-open{overflow:hidden}
.accountmodal:has(.addmodal){position:fixed;inset:0;width:100%;max-width:100vw;height:100dvh;overflow:hidden;padding:12px;display:flex;align-items:center;justify-content:center}
.addmodal{display:flex;flex-direction:column;min-width:0;width:min(700px,100%);height:min(90dvh,900px);max-height:calc(100dvh - 24px);padding:20px;overflow:hidden}
.addmodal #addForm{flex:1 1 auto;min-height:0;overflow-y:auto;overflow-x:hidden;overscroll-behavior-y:contain;-webkit-overflow-scrolling:touch;padding:0 2px 24px}
.addmodal-actions{flex:0 0 auto;background:#fff;border-top:1px solid #e0e8df;padding:12px 0 max(8px,env(safe-area-inset-bottom,0px));position:relative;z-index:2}
.addmodal-actions .primary{display:block;width:100%;min-height:52px;touch-action:manipulation}
.addmodal .formgrid,.addmodal .featurechoices,.addmodal .field,.addmodal input,.addmodal select,.addmodal textarea{max-width:100%;min-width:0}
.addmodal .featurechoices label{display:inline-flex;align-items:center;gap:8px;max-width:100%;min-width:0;overflow-wrap:anywhere}
.addmodal .featurechoices input[type=checkbox]{width:auto;flex:none}
@media(max-width:600px){
 .accountmodal:has(.addmodal){padding:0;align-items:stretch;justify-content:stretch}
 .addmodal{width:100%;height:100%;height:100dvh;max-height:100dvh;max-width:100%;border-radius:0;padding:calc(12px + env(safe-area-inset-top,0px)) 16px 0}
 .addmodal #addForm{flex:1 1 0;padding-bottom:28px}
 .addmodal-actions{margin:0 -16px;padding:12px 16px calc(18px + env(safe-area-inset-bottom,0px))}
 .addmodal input,.addmodal select,.addmodal textarea{font-size:16px}
 .addmodal .formgrid{grid-template-columns:minmax(0,1fr)}
 .directory-filter-grid{grid-template-columns:minmax(0,1fr)}
 .topbar,.topbar nav,.filters,.searchbar{max-width:100%;min-width:0}
 .hero h1{overflow-wrap:anywhere;font-size:clamp(32px,10vw,45px)}
}

/* v3.1: persistent, visible validation feedback for iPhone form actions */
.addmodal-actions .save-feedback{margin:0 0 8px;font-size:13px;line-height:1.4;color:#35604c;min-height:0}
.addmodal-actions .save-feedback:empty{display:none}
.addmodal-actions .save-feedback.error{color:#a12e25;font-weight:700}
.addmodal-actions .primary:disabled{opacity:.65}

/* v3.2 Discover search and nearby search */
.nearby-hero{display:flex;align-items:center;flex-wrap:wrap;gap:12px;margin-top:14px}
.nearby-hero #nearbyHint{font-size:.86rem;color:#f0eee2}
.nearby-button{min-height:46px;background:#fff!important;color:#183f35!important;border:2px solid #d9ae55!important}
.directory-quick{margin:0 0 16px;padding:18px}
.directory-quick-actions{display:flex;flex-wrap:wrap;align-items:end;gap:12px}
.directory-quick-actions button{min-height:46px}
.directory-quick-actions .field{min-width:130px;max-width:180px}
@media(max-width:600px){.nearby-hero{align-items:stretch;flex-direction:column}.nearby-hero button{width:100%}.directory-quick-actions{flex-direction:column;align-items:stretch}.directory-quick-actions .field{max-width:none;width:100%}}

/* v3.4: mobile-first nearby map */
.maptoolbar{display:flex;flex-wrap:wrap;align-items:center;gap:12px;margin-bottom:12px}.maptoolbar label{font-size:13px;font-weight:750;display:flex;align-items:center;gap:6px}.maptoolbar select{padding:9px;border:1px solid #cbdacb;border-radius:9px;background:white}.maptoolbar [role=status]{flex:1;min-width:180px;font-size:13px;color:#456154}.maptoolbar button:disabled{opacity:.6}#demoNotice[hidden]{display:none}.brewery-pin-wrapper{background:transparent;border:0}.brewery-pin{display:grid;place-items:center;width:34px;height:34px;background:#f8f0d7;border:2px solid #25543f;border-radius:50%;box-shadow:0 2px 7px #0004;font-size:19px}.location-pin{display:grid;place-items:center;width:24px;height:24px;border:3px solid white;background:#1d80dc;color:#1d80dc;border-radius:50%;box-shadow:0 0 0 2px #1d80dc,0 2px 8px #0004;font-size:0}@media(max-width:550px){#breweryMap{height:calc(100dvh - 245px);min-height:370px;max-height:680px}.maptoolbar{gap:8px}.maptoolbar [role=status]{flex-basis:100%}.mapstatus button{font-size:11px}}

/* v3.5: prioritize the real map on the dedicated Map tab. */
#app.map-page .hero,#app.map-page .filters,#app.map-page .discoveryactions,#app.map-page .sectiontop .muted{display:none!important}
#app.map-page .shell{padding-top:16px}
#app.map-page .sectiontop{margin-bottom:10px}
#app.map-page #breweryMap{height:min(70dvh,700px);max-height:none;min-height:390px}
.brewery-pin-wrapper{background:transparent!important;border:0!important}
.brewery-pin{display:grid;place-items:center;width:36px;height:36px;background:#f6e6b9;border:2px solid #25543f;border-radius:50%;box-shadow:0 2px 7px #0004}
.brewery-pin svg{display:block}
@media(max-width:550px){#app.map-page .shell{padding:12px 12px 50px}#app.map-page #breweryMap{height:calc(100dvh - 265px);min-height:380px;max-height:none}#app.map-page .sectiontop h2{font-size:23px}#app.map-page .maptoolbar{margin-bottom:8px}}

/* Version 3.6: enforce inline SVG marker display, including Safari. */
.leaflet-marker-icon.brewery-pin-wrapper{background:none!important;border:0!important;overflow:visible!important}
.leaflet-marker-icon.brewery-pin-wrapper .brewery-pin{display:flex!important;align-items:center;justify-content:center;width:36px;height:36px;box-sizing:border-box}
.leaflet-marker-icon.brewery-pin-wrapper .brewery-pin svg{width:22px!important;height:22px!important;display:block!important}

/* v3.7: clear, touch-friendly brewery map popups */
.brewery-map-popup{min-width:210px;line-height:1.4;color:#244137}
.map-popup-name{display:block;font-size:16px;line-height:1.3;margin-bottom:6px}
.map-popup-address,.map-popup-distance{margin-top:5px;font-size:13px}
.map-popup-rating{font-weight:700;margin-top:9px;color:#245b40;font-size:13px}
.map-popup-actions{display:flex;gap:8px;flex-wrap:wrap;margin-top:12px}
.map-popup-actions .map-popup-button{display:inline-flex;align-items:center;justify-content:center;flex:1 1 95px;min-height:40px;padding:8px 10px;border:1px solid #275640;border-radius:8px;background:#fff;color:#24563e;font:inherit;font-size:12px;font-weight:750;text-align:center;cursor:pointer;text-decoration:none;margin:0}
.map-popup-actions .map-popup-directions{background:#24563e;color:white;border-color:#24563e;text-decoration:none}

/* v3.8 journal passport */
.journal-stats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin:20px 0}.journal-stats .panel{margin:0;padding:16px}.journal-stats strong{display:block;font-size:clamp(22px,3vw,34px);color:#24563e;margin-top:7px}.journal-form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.journal-page .field{display:flex;flex-direction:column;gap:6px}.journal-page textarea,.journal-page input,.journal-page select{max-width:100%;box-sizing:border-box}.journal-visit{padding:16px 0;border-bottom:1px solid #d8e0d9}.journal-visit:last-child{border-bottom:0}.journal-visit-head{display:flex;justify-content:space-between;align-items:start;gap:12px}.journal-notes{white-space:pre-wrap;overflow-wrap:anywhere}.journal-actions{display:flex;gap:9px;flex-wrap:wrap;margin-top:12px}.journal-page #journalVisitList{margin-top:12px}@media(max-width:650px){.journal-stats{grid-template-columns:repeat(2,minmax(0,1fr))}.journal-form-grid{grid-template-columns:1fr}.journal-visit-head{flex-wrap:wrap}}

/* v4.0 national directory browsing */
.directory-browse{margin-bottom:1rem}
.directory-pager{display:flex;justify-content:center;align-items:center;gap:1rem;flex-wrap:wrap;margin:1.5rem 0}
.directory-pager button[hidden]{display:none}
.directory-browse .directory-quick-actions{align-items:end;flex-wrap:wrap}
.directory-browse .field{min-width:170px;flex:1}

/* v5.0: make selected filter evidence immediately visible without treating unknown as no */
.directory-match-card{overflow:hidden;transition:border-color .15s ease,box-shadow .15s ease}
.directory-match-card.directory-confirmed{border:2px solid #288354;box-shadow:0 3px 14px rgba(26,112,65,.13)}
.directory-match-card.directory-unverified{border:2px solid #b9c2bf}
.match-heading{display:flex;align-items:center;gap:9px;padding:10px 12px;margin:-2px -2px 14px;border-radius:8px;font-size:.88rem;line-height:1.35}
.match-heading-confirmed{background:#e3f5e9;color:#185c35}
.match-heading-unknown{background:#f0f2f1;color:#52615c}
.match-icon{display:inline-flex;align-items:center;justify-content:center;flex:none;width:24px;height:24px;border-radius:50%;font-weight:800;font-size:16px;background:#288354;color:#fff}
.match-heading-unknown .match-icon{background:#74827c}
.match-evidence{display:flex;flex-wrap:wrap;gap:7px;margin:10px 0 13px}
.match-evidence-item{display:inline-flex;align-items:center;gap:4px;padding:6px 9px;border-radius:8px;font-size:.78rem;font-weight:650;line-height:1.3}
.evidence-yes{background:#e3f5e9;color:#185c35}
.evidence-unknown{background:#f0f2f1;color:#52615c}
@media(max-width:600px){.match-heading{font-size:.82rem}.match-evidence-item{font-size:.76rem}}

/* v5.1: directions button in About this brewery */
.brewery-directions{display:inline-flex;align-items:center;justify-content:center;text-align:center;max-width:100%;line-height:1.4;text-decoration:none}
@media(max-width:550px){.brewery-directions{display:flex;width:100%}}

/* v5.2: filter actions together, including on small screens */
.directory-filter-actions{display:flex;gap:12px;align-items:center;flex-wrap:wrap}
.directory-filter-actions button{min-height:44px}
@media(max-width:600px){.directory-filter-actions button{flex:1 1 145px}}

/* v5.3: Directory search and experience filters in one compact panel */
#directoryForm{background:#f7faf6;border:1px solid #d6e2d7;border-radius:18px;padding:18px;box-shadow:0 4px 16px #193d2909}
#directoryForm>.filters{background:transparent;border:0;box-shadow:none;border-radius:0;padding:0 0 12px;margin:0;gap:10px}
#directoryForm>.directory-filters{background:transparent;border:0;border-top:1px solid #d6e2d7;border-radius:0;margin:0;padding:12px 0 0}
#directoryForm .directory-filters h3{margin:0 0 4px}
#directoryForm .directory-filters .muted{margin:4px 0 8px}
#directoryForm .directory-filter-grid{margin:10px 0;gap:10px}
#directoryForm>.muted{margin:12px 0 0;font-size:.85rem}
@media(max-width:600px){#directoryForm{padding:12px}#directoryForm>.filters{padding-bottom:10px}#directoryForm>.directory-filters{padding-top:10px}}

/* v5.6: map viewport search */
.map-auto-toggle{display:flex;align-items:center;gap:9px;margin:9px 0 12px;font-size:14px;font-weight:700;color:#214a38}.map-auto-toggle input{width:18px;height:18px;accent-color:#28734c}
