:root{font-family:-apple-system,BlinkMacSystemFont,"Noto Sans TC","Microsoft JhengHei",sans-serif;color:#203e34;background:#f7f6f2;--green:#294f44;--muted:#586b63;--line:#dce3dc;--paper:#fffefa;--sand:#ece7dc;--gold:#a48143;font-synthesis:none}*{box-sizing:border-box}body{margin:0}a{color:var(--green);text-underline-offset:3px}button,input,select{font:inherit}button,a,select{touch-action:manipulation}button{cursor:pointer}button:disabled{cursor:default;opacity:.55}button:focus-visible,a:focus-visible,select:focus-visible,input:focus-visible,summary:focus-visible{outline:3px solid #bc913c;outline-offset:3px}button:hover{filter:brightness(.97)}[hidden]{display:none!important}button{min-height:44px}p{margin:0;line-height:1.75}h1,h2,h3{margin:0;font-weight:600}h1{font-size:36px;letter-spacing:.07em;line-height:1.3}h2{font-size:20px;line-height:1.5}h3{font-size:18px;line-height:1.5}.page-wrap{max-width:1500px;margin:0 auto;padding:28px 40px 24px}.masthead,.brand,.heading-row,.result-toolbar,.list-heading,footer{display:flex;align-items:center;justify-content:space-between;gap:18px}.masthead{margin-bottom:28px}.brand{gap:22px;justify-content:flex-start;text-decoration:none}.brand img{display:block;width:158px;height:52px;object-fit:contain}.brand-person{border-left:1px solid #ccd5cc;padding-left:22px;display:flex;flex-direction:column;gap:6px}.brand-person strong{font-size:17px;letter-spacing:.06em}.brand-person span{font-size:11px;letter-spacing:.12em;color:var(--muted)}nav{display:flex;gap:22px;font-size:14px;white-space:nowrap}nav a{padding:8px 0}.heading-row{align-items:flex-end}.eyebrow{font-size:11px;letter-spacing:.15em;color:#6a796d;margin-bottom:9px}.intro{font-size:16px;color:var(--muted);margin-top:12px}.edition{flex:none;background:#eceee6;padding:11px 14px;border-radius:7px;font-size:13px;line-height:1.65;text-align:right}.edition span{display:block;font-size:11px;color:var(--muted)}header{padding-bottom:24px;border-bottom:1px solid var(--line)}.inventory{display:flex;gap:22px;align-items:center;padding:20px 0}.inventory-stat{display:flex;gap:8px;align-items:baseline;white-space:nowrap}.inventory-stat strong{font-size:27px;font-weight:500;line-height:1}.inventory-stat span{font-size:12px;color:var(--muted)}.inventory p{font-size:12px;color:var(--muted);padding-left:22px;border-left:1px solid var(--line);max-width:640px}.search-panel{display:grid;grid-template-columns:minmax(260px,2fr) minmax(130px,1fr) minmax(155px,1fr) auto;align-items:end;gap:14px;background:#eeeee7;padding:18px;border-radius:12px;border:1px solid #e0e4db}label{display:block;font-size:12px;color:#52665b;min-width:0}input,select{width:100%;height:48px;padding:10px 12px;border:1px solid #cbd6cd;border-radius:7px;background:#fffefa;color:#203e34;font-size:16px;min-width:0;margin-top:7px}.quiet-button{padding:9px 13px;background:transparent;border:1px solid #cbd6cd;border-radius:7px;color:var(--green);font-size:13px}.search-panel .quiet-button{height:48px;background:#f8f8f3}.result-toolbar{margin:17px 0;font-size:13px;color:var(--muted)}#result-count{color:#3f5a4f}.map-legend{display:flex;gap:15px;font-size:11px}.map-legend span{display:flex;align-items:center;gap:6px}.legend-dot{width:10px;height:10px;border-radius:50%;background:var(--green);border:1px solid #294f44}.legend-dot.approximate{background:#b49764;border-color:#b49764}.browse-layout{display:grid;grid-template-columns:minmax(0,1.7fr) minmax(340px,1fr);gap:22px;align-items:start}.map-panel{min-width:0}.map-shell{position:relative;overflow:hidden;border:1px solid #cfdcd1;border-radius:13px 13px 0 0;background:#e9eee5}#community-map{height:625px;isolation:isolate;background:#e9eee5}.map-tools{position:absolute;z-index:500;right:14px;top:14px}.map-tools button{background:#fffffff5;color:var(--green);border:1px solid #c8d4c9;border-radius:7px;padding:9px 12px;font-size:12px;box-shadow:0 2px 7px #203e3410}.map-note{border:1px solid #cfdcd1;border-top:0;background:#fcfcf7;border-radius:0 0 13px 13px;padding:11px 14px;font-size:11px;color:#5b6f62}.map-note.warning{background:#fff3d8;color:#795922}#map-empty{position:absolute;bottom:35px;left:16px;right:16px;padding:14px;background:#fffef3f2;z-index:450;border:1px solid #dedbc9;border-radius:8px;text-align:center;font-size:13px;box-shadow:0 3px 12px #294f4412}.leaflet-tile-pane{filter:saturate(.47) contrast(.93) brightness(1.05)}.leaflet-container{font:inherit}.leaflet-container a{color:var(--green)}.leaflet-control-attribution{font-size:9px!important;background:#fffef7ed!important}.leaflet-control-zoom{border:1px solid #cbd8cd!important;border-radius:7px!important;overflow:hidden;box-shadow:0 2px 6px #294f4410!important}.leaflet-control-zoom a{color:#294f44;width:34px!important;height:34px!important;line-height:34px!important}.leaflet-top .leaflet-control{margin-top:14px;margin-left:14px}.community-dot,.community-cluster{background:none;border:none}.community-dot span{display:block;width:17px;height:17px;background:var(--green);border:3px solid #fffefa;border-radius:50%;box-shadow:0 1px 6px #18382e80}.community-dot.approximate span{background:#b49764}.community-dot.selected span{width:24px;height:24px;box-shadow:0 0 0 5px #294f4433,0 2px 6px #203e3460}.community-cluster span{display:flex;align-items:center;justify-content:center;width:37px;height:37px;background:#294f44;color:white;border:4px solid #e7ede4;box-shadow:0 2px 8px #294f4435;border-radius:50%;font-size:13px;font-weight:600}.leaflet-tooltip{font-family:inherit;font-size:13px;line-height:1.5;color:var(--green);padding:8px 10px;border-color:#d3ddcf;box-shadow:0 3px 10px #294f4415}.leaflet-popup-content{margin:14px 16px;font-family:inherit;font-size:13px;line-height:1.7}.leaflet-popup-content button{display:block;margin-top:8px;border:1px solid #cbd6cd;background:#f5f7f0;color:var(--green);border-radius:6px;width:100%;font-size:12px;padding:7px}.leaflet-popup-content h3{font-size:16px}.popup-group{max-height:260px;overflow:auto}.popup-group button{min-height:40px}.list-panel{min-width:0;background:#fffefa;border:1px solid var(--line);border-radius:13px;overflow:hidden}.list-heading{padding:18px 19px;border-bottom:1px solid var(--line)}.list-heading h2{font-size:18px}.list-heading span{font-size:11px;color:var(--muted)}.community-list{max-height:604px;overflow:auto;scrollbar-width:thin;scrollbar-color:#bdcbbb transparent;overscroll-behavior:contain}.community-card{padding:18px 19px;border-bottom:1px solid #e4e8e0;position:relative}.community-card:last-child{border-bottom:0}.community-card.is-selected{background:#edf2e9;box-shadow:inset 4px 0 var(--green)}.card-title{display:flex;justify-content:space-between;align-items:flex-start;gap:10px}.select-community{display:block;text-align:left;border:0;background:none;color:var(--green);padding:0;min-height:0;font-size:18px;font-weight:600;line-height:1.5}.select-community:hover{text-decoration:underline;text-underline-offset:4px}.card-badge,.tag{font-size:10px;border-radius:4px;padding:3px 6px;line-height:1.4;white-space:nowrap;display:inline-block}.card-badge{color:#516b58;background:#ebf0e6}.card-badge.pending{background:#f1ecdf;color:#866531}.card-address{font-size:12px;color:#617267;margin-top:6px;line-height:1.6}.card-meta{display:flex;flex-wrap:wrap;gap:5px 12px;margin-top:10px;font-size:12px;color:#51675a}.card-meta span+span:before{content:"·";margin-right:9px;color:#9ba89d}.card-actions{display:flex;justify-content:space-between;gap:12px;align-items:center;margin-top:12px}.card-actions a{font-size:12px;text-decoration:none;padding:4px 0}.load-more{display:block;width:100%;border:0;border-top:1px solid var(--line);padding:12px;background:#f0f3eb;color:var(--green);font-size:13px}.empty-state{padding:28px 22px;font-size:14px;color:var(--muted);line-height:1.9}.empty-state button{margin-top:12px;display:block}.mobile-tabs{display:none}.selected-panel{background:var(--paper);border:1px solid var(--line);border-radius:13px;padding:20px;margin-top:16px}.selected-heading{display:flex;align-items:start;gap:16px;justify-content:space-between}.selected-heading h2{font-size:21px}.selected-heading img{width:125px;height:88px;object-fit:cover;border-radius:7px}.selected-address{font-size:13px;color:var(--muted);margin-top:7px}.selected-tags{margin:10px 0;display:flex;gap:6px;flex-wrap:wrap}.tag{background:#eef1e8;color:#526650}.tag.pending{background:#f4eddf;color:#816430}.facts{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px 18px;margin:19px 0}.facts div{min-width:0}.facts dt{font-size:11px;color:#708070;margin-bottom:5px}.facts dd{font-size:14px;line-height:1.6;margin:0;word-break:break-word}.selected-links{display:flex;gap:9px;flex-wrap:wrap;align-items:center}.selected-links a,.selected-links button{padding:9px 12px;min-height:42px;border:1px solid #cbd6cd;border-radius:7px;text-decoration:none;background:#f5f7f0;color:var(--green);font-size:12px;display:inline-flex;align-items:center}.selected-links .primary-link{background:var(--green);color:white;border-color:var(--green)}.hint{color:#6d7c6f;font-size:11px;line-height:1.7;margin-top:12px}.contact-box{margin-top:25px;border:1px solid #d9e1d3;border-radius:13px;padding:24px 26px;background:#ecf0e6;display:flex;align-items:center;justify-content:space-between;gap:25px}.contact-box h2{font-size:21px;margin-bottom:7px}.contact-box p:not(.eyebrow){font-size:14px;color:var(--muted)}.primary-link,.primary-button{display:inline-flex;align-items:center;justify-content:center;padding:12px 16px;min-height:46px;background:var(--green);border:1px solid var(--green);color:white;text-decoration:none;border-radius:7px;font-size:13px;white-space:nowrap}.data-notes{margin-top:24px;font-size:12px;color:var(--muted)}.data-notes summary{cursor:pointer;font-weight:600;padding:8px 0;color:#385747}.notes-body{padding-top:10px;display:grid;gap:10px}.source-links{display:flex;flex-wrap:wrap;gap:7px 18px}.source-links a{padding:5px 0}footer{margin-top:24px;padding-top:18px;border-top:1px solid var(--line);font-size:11px;color:#6b7a6c}.toast{position:fixed;bottom:100px;left:50%;transform:translateX(-50%);max-width:calc(100% - 36px);padding:12px 18px;border-radius:8px;background:#263f34;color:#fff;font-size:13px;z-index:1200;box-shadow:0 4px 14px #203e3430}.noscript{padding:24px;background:#fff4db;color:#705329}
@media(min-width:1600px){#community-map{height:650px}.community-list{max-height:629px}}
@media(max-width:1100px){.page-wrap{padding:24px}.browse-layout{grid-template-columns:minmax(0,1.35fr) minmax(320px,1fr);gap:16px}.inventory{gap:16px}.inventory p{padding-left:16px}.search-panel{grid-template-columns:minmax(190px,2fr) minmax(110px,1fr) minmax(140px,1fr) auto;gap:10px}.search-panel .quiet-button{font-size:12px;padding:8px}.facts{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:800px){.page-wrap{padding:22px 18px}.brand{gap:14px}.brand img{width:135px;height:45px}.brand-person{padding-left:14px}.brand-person strong{font-size:15px}nav{font-size:12px;gap:14px}.heading-row{align-items:flex-start}.edition{font-size:12px}.inventory{flex-wrap:wrap;gap:14px 26px;padding:17px 0}.inventory p{flex:1 1 100%;padding-left:0;border:0;max-width:none}.search-panel{grid-template-columns:minmax(0,1fr) minmax(0,1fr);padding:14px;gap:12px}.search-field{grid-column:1/-1}.search-panel .quiet-button{grid-column:1/-1;height:40px;min-height:40px}.browse-layout{grid-template-columns:1fr}.mobile-tabs{display:flex;background:#e8ede4;border:1px solid #d7e0d2;padding:4px;border-radius:10px;margin-bottom:14px;gap:4px}.mobile-tabs button{flex:1;border:0;border-radius:6px;background:none;color:var(--green);font-size:14px;min-height:44px}.mobile-tabs button[aria-pressed=true]{background:var(--green);color:#fff}.mobile-tabs span{font-size:11px;margin-left:3px}.browse-layout[data-view=map] .list-panel{display:none}.browse-layout[data-view=list] .map-panel{display:none}#community-map{height:470px;height:clamp(330px,55svh,530px)}.community-list{max-height:640px;max-height:68svh}.selected-panel{margin-top:14px}.facts{grid-template-columns:repeat(3,minmax(0,1fr))}.contact-box{padding:21px;align-items:flex-start}.contact-box .primary-link{margin-top:16px}.result-toolbar{margin:14px 0;align-items:start}.map-legend{gap:10px;font-size:10px}}
@media(max-width:520px){.page-wrap{padding:18px 14px 20px}.masthead{margin-bottom:24px;gap:12px;align-items:flex-start}.brand{gap:10px}.brand img{width:110px;height:38px}.brand-person{padding-left:10px;gap:4px}.brand-person strong{font-size:13px}.brand-person span{font-size:8px;letter-spacing:.04em}nav{flex-direction:column;gap:4px;font-size:10px;text-align:right}nav a{padding:2px 0}h1{font-size:28px;letter-spacing:.04em}.heading-row{display:block}.heading-row .edition{display:inline-flex;gap:10px;padding:5px 9px;margin-top:14px;font-size:10px;align-items:center}.edition span{font-size:10px}.eyebrow{font-size:9px;letter-spacing:.12em}.intro{font-size:14px;margin-top:9px}.inventory{gap:12px 20px}.inventory-stat{gap:5px}.inventory-stat strong{font-size:24px}.inventory-stat span{font-size:11px}.inventory p{font-size:11px}.search-panel{gap:11px;padding:12px}input,select{height:46px;font-size:15px;padding:9px 10px}.result-toolbar{flex-wrap:wrap;gap:8px}.result-toolbar p{font-size:12px}.map-legend{margin-left:auto}.list-heading,.community-card{padding:16px}.list-heading h2{font-size:17px}.select-community{font-size:18px}.card-badge{font-size:9px}.map-tools{top:11px;right:11px}.map-tools button{font-size:11px;padding:8px 10px}.leaflet-top .leaflet-control{margin-top:11px;margin-left:11px}.map-note{font-size:10px;line-height:1.7}.leaflet-control-attribution{max-width:230px}.selected-panel{padding:17px}.selected-heading h2{font-size:20px}.selected-heading img{width:85px;height:66px}.facts{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.facts dd{font-size:13px}.selected-links{gap:7px}.selected-links a,.selected-links button{font-size:11px;padding:8px 10px}.contact-box{display:block;padding:20px;margin-top:19px}.contact-box h2{font-size:20px}.contact-box p:not(.eyebrow){font-size:13px}.contact-box .primary-link{width:100%;margin-top:16px}.data-notes{font-size:11px;margin-top:19px}footer{display:block;font-size:10px;line-height:1.9}footer span{display:block}.toast{font-size:12px;bottom:94px;width:max-content}.source-links{display:grid;gap:5px}}
@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important;animation:none!important;transition:none!important}}

.community-dot.selected span{width:30px;height:30px;background:#bd272d;border:4px solid white;box-shadow:0 0 0 6px #bd272d30,0 2px 8px #4e182b70}.selected-community-name{color:#8d1d24;border:2px solid #bd272d;background:#fff;font-weight:700;width:max-content;max-width:min(260px,70vw);white-space:normal}.community-card.is-selected{background:#fff4f1;box-shadow:inset 4px 0 #bd272d}.legend-dot.selected{background:#bd272d;border-color:#bd272d}.selection-status{padding:12px 16px;background:#fff4f1;border:1px solid #edc7c3;border-radius:10px;margin-bottom:10px;color:#8d1d24;font-size:14px;font-weight:600}.map-panel,.selected-panel{scroll-margin-top:18px}.basic-title{margin-top:20px}.community-contact{border-top:1px solid var(--line);padding-top:18px;margin-top:18px}.community-contact h3{font-size:16px;margin-bottom:12px}.inquiry-draft{padding-top:16px}.inquiry-draft textarea{width:100%;font:inherit;line-height:1.7;padding:12px;border:1px solid #cbd6cd;border-radius:8px;resize:vertical;margin:8px 0}.select-community{min-height:44px}.toast{bottom:22px}.share-fallback{font-size:13px}.card-actions:empty{display:none}

.map-panel.no-location .map-shell,.map-panel.no-location .map-note{display:none}

/* Keep the explicit search action directly below the keyword field. */
.search-panel{grid-template-areas:"keyword village status reset" "submit . . ."}
.search-field{grid-area:keyword}.village-field{grid-area:village}.status-field{grid-area:status}
.search-panel #reset-filters{grid-area:reset}
.search-submit{grid-area:submit;width:100%;min-height:48px;font-size:16px;font-weight:600;gap:8px}
#result-count{scroll-margin-top:20px}
@media(max-width:800px){.search-panel{grid-template-areas:"keyword keyword" "submit submit" "village status" "reset reset"}}

/* preview-r9: Keep keyword search and reset visible; advanced filters stay native. */
.search-panel{grid-template-columns:minmax(0,1fr) auto;grid-template-areas:"keyword keyword" "submit reset" "advanced advanced"}
.advanced-filters{grid-area:advanced;min-width:0;border-top:1px solid #d3dccf;margin-top:4px;padding-top:8px}
.advanced-filters>summary{min-height:48px;padding:12px 4px;color:var(--green);font-size:16px;line-height:1.5;cursor:pointer;overflow-wrap:anywhere}
.advanced-filter-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;padding:4px 0 10px}
.advanced-filter-fields>.village-field,.advanced-filter-fields>.status-field{grid-area:auto;grid-column:auto}
.filter-active-note{display:none;margin-inline-start:8px;color:#775a28;font-size:16px;font-weight:600}
.advanced-filters:has(#village-filter option:checked:not([value=""]),#status-filter option:checked:not([value="all"])) .filter-active-note{display:inline}
@media(max-width:800px){
 .masthead{flex-wrap:wrap}
 .masthead>nav{flex-direction:row;flex-wrap:wrap;justify-content:flex-start;gap:8px;width:100%;text-align:left;font-size:16px;white-space:normal}
 .masthead>nav>a{display:inline-flex;align-items:center;justify-content:center;min-height:44px;padding:9px 10px;font-size:16px;white-space:normal}
 .page-wrap input,.page-wrap select,.page-wrap textarea,.search-panel label{font-size:16px}
 .search-panel{grid-template-columns:minmax(0,1fr) auto;grid-template-areas:"keyword keyword" "submit reset" "advanced advanced"}
 .search-panel #reset-filters{min-height:48px;height:auto;font-size:16px;padding:10px 12px}
 #result-count{font-size:16px;line-height:1.7}
 .mobile-tabs button,.map-tools button,.selected-links a,.selected-links button,.card-actions a,.load-more,.leaflet-popup-content button,.popup-group button{display:inline-flex;align-items:center;justify-content:center;min-height:44px;font-size:16px;line-height:1.5}
 .leaflet-control-zoom a{width:44px!important;height:44px!important;line-height:44px!important;font-size:22px}
}
@media(max-width:520px){.advanced-filter-fields{grid-template-columns:minmax(0,1fr)}}

/* Keep a single phone/LINE row after the existing inquiry draft. */
.community-contact-actions{margin-top:14px;padding-top:14px;border-top:1px solid var(--line)}.community-contact-actions a{min-height:48px;font-size:18px;line-height:1.5}
