/* TuJa: map-first layout, exact palette from the owner's sketch. */
:root{--orange:#DB9558;--cream:#FCF9EA;--olive:#97A87A;--sage:#A8BBA3;--header-height:72px;--nav-height:88px;font-weight:600}
body{background:var(--cream)}
.site-header{height:var(--header-height);padding:0 28px;border-bottom:1px solid var(--sage);gap:14px;z-index:800}
.brand{font-size:34px;letter-spacing:-2px;font-weight:800;gap:10px}.brand-star{color:black}.brand-star .icon{width:33px;height:33px}
.city-pill{margin-left:auto;background:var(--sage);font-size:14px;padding:11px 15px;gap:7px}.city-pill .icon{width:18px;height:18px}
.workspace{display:block;height:calc(100dvh - var(--header-height) - var(--nav-height));min-height:0}
.map-panel{position:absolute;inset:0;display:block;height:100%;background:var(--cream)}.leaflet-container{background:var(--cream)!important}
.map-controls{top:22px;left:50%;right:auto;width:min(640px,calc(100% - 40px));max-width:none;transform:translateX(-50%)}
.search-row{display:flex;gap:10px;align-items:center}.search-box{flex:1;min-width:0;height:58px;padding:5px 10px 5px 20px;border:2px solid black;border-radius:30px}
.search-box input{font-size:16px;font-weight:600}.search-box>.icon{width:23px;height:23px}
.filter-button{pointer-events:auto;width:58px;height:58px;padding:0;border:2px solid black;border-radius:50%;background:var(--orange)}
.filter-button .icon{width:26px;height:26px}.filter-label{display:none}.filter-button>#filter-badge{background:black;color:var(--cream);width:22px;height:22px;font-size:12px}
.category-filters{display:none}.list-launch{display:inline-flex;align-items:center;gap:8px;min-height:44px;margin-top:10px;padding:10px 17px;border:1px solid black;border-radius:24px;background:var(--cream);pointer-events:auto;font-size:13px;font-weight:650}.list-launch .icon{width:19px;height:19px}
.map-search-area{top:142px;background:var(--orange);color:black;border-color:black;min-height:44px;font-size:13px}
.map-tools{right:24px;bottom:122px;gap:10px}.map-tools .icon-button{height:48px;width:48px;border:1px solid black;background:var(--cream)}
.leaflet-bottom.leaflet-right{bottom:0!important;transition:none!important}.leaflet-bottom .leaflet-control-zoom{margin-right:24px;margin-bottom:28px}.leaflet-control-zoom{border:1px solid black!important}.leaflet-control-zoom a{width:46px!important;height:39px!important;line-height:38px!important}
.leaflet-control-attribution{max-width:calc(100vw - 12px);font-weight:500;font-size:9px!important}.leaflet-control-attribution svg{display:none!important}
.marker-inner{background:var(--marker-color,var(--orange));color:black;border:2px solid black}.marker-inner .icon{stroke-width:2.3}
.mobile-nav{display:flex;position:fixed;left:0;right:0;bottom:0;z-index:1000;height:var(--nav-height);padding:10px 20px calc(10px + env(safe-area-inset-bottom));align-items:center;justify-content:center;gap:30px;border-top:1px solid var(--sage);background:var(--cream)}
.mobile-nav button{flex:0 1 110px;min-width:68px;height:62px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;border:1px solid transparent;border-radius:24px;background:transparent;color:black;padding:6px 12px;font-size:12px;font-weight:650;line-height:1.2}
.mobile-nav button>.icon{width:26px;height:26px;stroke-width:2}.mobile-nav button[aria-pressed=true]{background:var(--orange);border-color:black}.mobile-nav button:hover{border-color:black}.mobile-nav .nav-add{background:var(--sage)}.mobile-nav .profile-avatar{height:27px;width:27px;font-size:15px}
.team-launch{position:fixed;left:24px;bottom:calc(var(--nav-height) + 24px);width:52px;height:52px;display:grid;place-items:center;background:var(--olive);border:1px solid black;border-radius:50%;z-index:700}.team-launch .icon{width:27px;height:27px}

.results-panel{position:absolute;left:24px;right:auto;top:98px;bottom:22px;width:370px;height:auto!important;max-height:none;min-height:0;padding:20px 20px 0;border:1px solid black;border-radius:26px;transform:none;transition:none;z-index:650;box-shadow:none;overflow:hidden}
.list-heading{display:flex;align-items:center;justify-content:space-between;margin-bottom:8px}.list-heading h1{font-size:25px;letter-spacing:-.7px}.list-heading .icon-button{background:var(--sage)}
.results-heading{margin:0 0 14px;justify-content:flex-start}.sort-label{width:100%;max-width:none}.sort-label select{width:100%;font-size:14px;padding:11px 34px 11px 16px;border:1px solid var(--olive);background:var(--cream);border-radius:22px}.sort-label>.icon{right:14px;width:17px;height:17px}
.results-list{padding:0 0 14px;overflow:auto;overscroll-behavior:contain}.results-list>.empty-state{padding:24px 16px;gap:16px}.results-list>.empty-state .empty-icon{display:grid}.results-list>.empty-state h3{font-size:22px;max-width:none;line-height:1.3}.results-list>.empty-state p{font-size:14px;max-width:none;line-height:1.65}.empty-state{background:var(--sage)}
.sidebar-footer{flex-shrink:0;gap:12px;padding:16px 0}.sidebar-footer button{min-height:36px;font-size:12px;padding:0}
.place-card{padding:12px;border-color:var(--olive)}.card-description,.card-address,.card-rating,.place-author{font-size:13px}.category-label{font-size:11px}.card-photo{background:var(--sage)}
dialog[open]{position:fixed;inset:var(--header-height) 0 var(--nav-height);margin:0;width:100%;max-width:none;height:calc(100dvh - var(--header-height) - var(--nav-height));max-height:none;padding:0;border:0;border-radius:0;background:var(--cream);box-shadow:none;z-index:750;overflow:auto;overscroll-behavior:contain;animation:view-in .18s ease-out}
dialog::backdrop{background:none}#modal-content{min-height:100%;padding-bottom:32px}.modal-head{max-width:740px;margin:0 auto;padding:28px 28px 20px;border:0;background:var(--cream);position:sticky;top:0;z-index:600}.modal-head h2{font-size:29px;font-weight:750;letter-spacing:-1px;line-height:1.2}.modal-head .icon-button{width:44px;height:44px;background:var(--sage);border:1px solid black}.modal-body{max-width:740px;margin:0 auto;padding:12px 28px 32px}
body[data-view=profile] .modal-head,body[data-view=profile] .modal-body,body[data-view=team] .modal-body{max-width:580px}
.button{font-size:14px;min-height:48px;border:1px solid black;border-radius:24px;font-weight:650;background:var(--sage);color:black;padding:13px 20px;transition:opacity .16s,transform .16s}.button.primary,.button.yellow{background:var(--orange);color:black;border-color:black}.button.blue{background:var(--sage);color:black;border-color:black}.button.soft{background:var(--olive);color:black;border-color:black}.button.danger{background:var(--cream);border:2px solid black;color:black}.button:hover{transform:none;opacity:.85}.button:active{transform:scale(.98)}
.field{font-size:15px;gap:9px;margin-bottom:22px;font-weight:650}.field input,.field textarea,.field select{min-height:50px;border:1px solid black;border-radius:20px;padding:13px 16px;background:var(--cream);font-size:16px;font-weight:550}.field textarea{min-height:112px}.field small{font-size:12px;line-height:1.5}.field .optional{font-size:12px}.field input[type=file]{padding:12px;overflow:hidden}.field input[type=file]::file-selector-button{font:inherit;border:0;background:var(--sage);padding:8px 10px;border-radius:12px;margin-right:8px}
.field-row{gap:16px}.extra-fields{margin:16px 0 24px;border:1px solid var(--olive);border-radius:20px;padding:0 16px}.extra-fields summary{min-height:48px;cursor:pointer;padding:14px 0;font-size:14px}.extra-fields[open] summary{margin-bottom:10px}
.map-picker{height:310px;border:1px solid black;border-radius:24px;margin:10px 0}.location-selected{font-size:13px;margin:12px 0;min-height:20px}.location-search .button{font-size:13px}.upload-zone{background:var(--sage);border:1px dashed black;padding:25px 16px;border-radius:24px;font-size:15px}.upload-zone small{font-size:12px}.notice,.warning-box,.form-error,.rejection{color:black;font-size:14px}.notice{background:var(--sage)}.warning-box,.form-error{background:var(--orange)}.form-actions{gap:12px}.text-button{font-size:13px;min-height:44px}
.profile-summary{display:flex;align-items:center;justify-content:center;flex-direction:column;gap:14px;text-align:center;margin:8px 0 26px}.profile-summary .large{height:96px;width:96px;font-size:36px;background:var(--olive);border:1px solid black}.profile-summary strong{font-size:23px}.profile-summary p{display:none}.profile-summary .account-email{display:block;overflow-wrap:anywhere;font-size:14px;margin-top:8px}.profile-photo-section{margin-top:26px;padding-top:24px;border-top:1px solid var(--sage)}.profile-photo-section h3{font-size:19px;margin-bottom:10px}.profile-note{font-size:13px;line-height:1.6;margin-bottom:16px}.profile-actions{display:grid;gap:12px;margin-top:32px}.profile-actions .button:last-child{background:var(--cream)}.profile-photo-section .form-actions{justify-content:flex-start;margin-top:12px}.status-pill{font-size:12px}.profile-avatar{background:var(--sage);color:black}.account-search input{min-width:0;font-size:16px;border-color:black;background:var(--cream)}.user-row{border:1px solid var(--olive);background:var(--cream);padding:16px;border-radius:22px}.user-row-info{min-width:0}.user-row-info>span{overflow-wrap:anywhere}.user-row-info strong{font-size:16px}.account-facts{font-size:14px}
.team-intro{display:flex;flex-direction:column;align-items:center;text-align:center;gap:20px;margin:24px 0 32px}.team-intro>.icon{width:92px;height:92px;background:var(--olive);padding:23px;border:1px solid black;border-radius:50%;stroke-width:1.8}.team-intro h3{font-size:26px;font-weight:750}.team-intro p{font-size:15px;line-height:1.65;max-width:340px}.account-option{border:1px solid black;background:var(--sage);min-height:74px;padding:20px;font-size:15px}.account-option>strong{font-size:16px;flex:1}.account-option>.icon:last-child{margin-left:auto}.team-links{display:flex;flex-wrap:wrap;justify-content:center;gap:18px;margin-top:42px;font-size:13px}.team-links button,.team-links a{min-height:44px;display:flex;align-items:center;text-decoration:underline;text-underline-offset:4px}
.social-auth{margin-top:30px}.social-button{background:var(--sage);font-size:16px;min-height:62px}.social-button:disabled{display:none}.auth-footer{font-size:13px}.filter-check{font-size:15px;min-height:44px}.filter-check input{width:21px;height:21px}.filter-summary{font-size:14px}.detail-description{font-size:16px}.detail-address{font-size:14px}.rating-copy{font-size:14px}.submission-item{border-color:var(--olive);padding:22px}.submission-item h3{font-size:20px}.submission-item p{font-size:14px}.moderation-tabs button{font-size:13px;min-height:44px}.moderation-tabs .active{background:var(--olive)!important;color:black!important;border:1px solid black}.moderation-checks label{font-size:14px}.prose p,.step p{font-size:15px}.toast{bottom:calc(var(--nav-height) + 18px);background:black;color:var(--cream);font-size:14px}
@keyframes view-in{from{opacity:0}to{opacity:1}}
@media(max-width:700px){:root{--header-height:64px;--nav-height:calc(78px + env(safe-area-inset-bottom))}.site-header{padding:0 18px}.brand{font-size:31px}.brand-star .icon{width:29px;height:29px}.city-pill{font-size:13px;padding:9px 12px}.workspace{height:calc(100dvh - var(--header-height) - var(--nav-height))}.map-controls{top:16px;width:calc(100% - 28px)}.search-row{gap:8px}.search-box{height:54px;padding-left:16px}.filter-button{width:54px;height:54px}.mobile-nav{gap:18px;padding:8px 22px calc(8px + env(safe-area-inset-bottom));justify-content:space-between}.mobile-nav button{height:60px;flex-basis:90px;border-radius:22px}.team-launch{left:16px;bottom:calc(var(--nav-height) + 24px);width:48px;height:48px}.map-tools{right:16px;bottom:27px}.map-tools .icon-button{width:46px;height:46px}.leaflet-control-zoom{display:none}.leaflet-control-attribution{font-size:8px!important}.map-search-area{top:132px;white-space:nowrap}.results-panel{left:12px;right:12px;top:82px;bottom:12px;width:auto;border:1px solid black;padding:16px 16px 0;border-radius:24px;touch-action:auto}.results-list>.empty-state h3{font-size:21px}.sidebar-footer{padding:8px 0}.modal-head{padding:20px 20px 16px}.modal-head h2{font-size:26px}.modal-body{padding:10px 20px 24px}.field-row{grid-template-columns:1fr;gap:0}.map-picker{height:270px}.form-actions>.button{flex:1}.profile-summary{margin-top:6px}.team-intro{margin-top:14px}.team-links{gap:16px}.account-search{flex-wrap:wrap}.account-search input{flex:1 1 160px;min-height:48px}.account-search .button{padding:12px 16px}.detail-hero{height:220px}.modal-head .icon-button{width:42px;height:42px}.place-author{font-size:13px}.location-search{flex-wrap:wrap}.location-search input{flex-basis:180px}.location-search .button{min-height:44px}.rating-star{padding:8px}}
@media(max-width:350px){.site-header{padding:0 14px}.city-pill{padding:8px 10px}.mobile-nav{gap:10px;padding-left:16px;padding-right:16px}.modal-head,.modal-body{padding-left:16px;padding-right:16px}.modal-head h2{font-size:24px}.search-box{gap:6px}.search-box input{font-size:15px}.team-intro .button{font-size:13px;padding:12px}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{animation:none!important;transition:none!important;scroll-behavior:auto!important}}
.avatar-edit{position:relative;display:inline-flex;padding:0;border-radius:50%;cursor:pointer}.avatar-edit:disabled{opacity:1;cursor:default}.avatar-edit>.icon{position:absolute;right:0;bottom:0;width:30px;height:30px;background:var(--orange);padding:5px;border-radius:50%;border:1px solid black}.avatar-options summary{cursor:pointer;min-height:44px;font-size:16px;padding:8px 0}.avatar-options{padding-top:16px;margin-top:18px}.avatar-options[open] summary{margin-bottom:12px}.profile-actions{margin-top:20px}
@media(min-width:900px){body[data-view=add] .modal-head,body[data-view=add] .modal-body{max-width:1100px}#submit-form{display:grid;grid-template-columns:1fr 1fr;gap:34px}#submit-form>.form-error{grid-column:1/-1}.submit-location{position:sticky;top:0;align-self:start}.submit-location .map-picker{height:350px}}
@media(max-width:899px){#submit-form{display:flex;flex-direction:column}.submit-info{display:contents}.submit-location{display:contents}.submit-location>.notice{order:3}.submit-location>.form-actions{order:4}}
.filter-button{min-width:58px}
@media(max-width:700px){.filter-button{min-width:54px}}
/* Green-led palette: sage surfaces, olive actions, orange only for small accents. */
.site-header,.mobile-nav{background:var(--sage);border-color:var(--olive)}
.city-pill{background:var(--cream)}
.mobile-nav button[aria-pressed=true],.mobile-nav .nav-add,.filter-button,.button.primary,.map-search-area{background:var(--olive);color:black;border-color:black}
.mobile-nav .nav-add:not([aria-pressed=true]){background:var(--cream)}
.list-launch,.map-tools .icon-button{background:var(--sage)}
.results-panel{background:var(--sage)}
.results-panel .empty-state{background:var(--cream)}
.results-panel .sidebar-footer{border-color:var(--olive)}
.leaflet-control-zoom a{background:var(--sage)!important}
/* Orange accents distinguish creating and saving from map navigation. */
.mobile-nav .nav-add,.mobile-nav .nav-add:not([aria-pressed=true]),.mobile-nav .nav-add[aria-pressed=true],.button.primary{background:var(--orange);color:black;border-color:black}
/* Place management and synchronized map symbols. */
.marker-inner{transform:scale(var(--marker-scale,1));transition:none}
.gem-marker.selected .marker-inner,.gem-marker:hover .marker-inner{transform:scale(calc(var(--marker-scale,1)*1.15))}
.user-location-marker{background:none;border:0}.user-location-dot{display:block;width:22px;height:22px;border:3px solid var(--cream);border-radius:50%;background:black;transform:scale(var(--marker-scale,1));box-shadow:0 0 0 1px black}
.leaflet-zoom-anim .marker-inner,.leaflet-zoom-anim .user-location-dot{transition:none}
.leaflet-control-scale{margin:0 0 8px 16px!important}.leaflet-control-scale-line{background:var(--cream);border-color:black;color:black;font-size:11px;text-shadow:none;font-weight:650}
.team-launch{bottom:calc(var(--nav-height) + 44px)}
.edit-photo-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(120px,1fr));gap:12px;margin:16px 0 24px}.edit-photo-grid img{width:100%;height:120px;object-fit:cover;border-radius:16px}.edit-photo{display:flex;flex-direction:column;gap:10px;font-size:13px}.edit-photo span{display:flex;align-items:center;gap:8px}.change-comparison section{margin:24px 0}.change-comparison section>div{display:grid;grid-template-columns:1fr 1fr;gap:14px}.change-comparison p{background:var(--sage);border-radius:18px;padding:16px;white-space:pre-wrap;overflow-wrap:anywhere;font-size:14px}.change-comparison strong{display:block;margin-bottom:8px}.place-management .notice{margin-bottom:12px}
@media(max-width:700px){.team-launch{bottom:calc(var(--nav-height) + 44px)}.change-comparison section>div{grid-template-columns:1fr}.leaflet-control-scale{margin-left:14px!important}}

.comment{padding:20px 0;border-bottom:1px solid var(--olive)}.comment-author{display:flex;align-items:center;gap:12px}.comment-author strong{font-weight:750}.comment-author>span:last-child{margin-left:auto}.comment p{font-size:17px;font-weight:400;line-height:1.6;white-space:pre-wrap;overflow-wrap:anywhere;margin:12px 0}.comment-form{margin-top:24px}.picker-search{margin:12px 0}.picker-search input{min-width:0;flex:1}#picker-search-status{font-size:13px;line-height:1.5}#picker-search-status:empty{display:none}
.application-count{border:1px solid black;border-radius:24px;background:var(--sage);padding:22px;margin:10px 0 24px}.application-count>strong{display:block;font-size:28px;margin-bottom:12px}.application-count p{font-size:14px;line-height:1.5;margin:12px 0 0}.application-progress{height:18px;border:1px solid black;border-radius:999px;background:var(--cream);overflow:hidden}.application-progress>span{display:block;height:100%;background:var(--orange);border-right:1px solid black;transition:width .28s ease}.application-contact-note{border:1px solid black;border-radius:20px;background:var(--sage);padding:16px;margin:4px 0 20px;font-size:14px;line-height:1.55}.application-details dl{display:grid;grid-template-columns:minmax(120px,auto) 1fr;gap:0;border:1px solid black;border-radius:22px;overflow:hidden;margin:0 0 24px}.application-details dt,.application-details dd{padding:13px 16px;border-bottom:1px solid var(--olive);overflow-wrap:anywhere}.application-details dt{font-weight:750;background:var(--sage)}.application-details dd{margin:0;background:var(--cream)}.application-details dt:last-of-type,.application-details dd:last-of-type{border-bottom:0}.team-application-item{display:flex;width:100%;align-items:center;text-align:left;gap:12px}.team-application-item>div{flex:1}.team-application-item>.icon{flex:0 0 auto}@media(max-width:520px){.application-details dl{grid-template-columns:1fr}.application-details dt{padding-bottom:6px}.application-details dd{padding-top:6px}.application-details dt:not(:first-child){border-top:1px solid var(--olive)}}
