:root {
  --paper: #fff;
  --white: #fff;
  --ink: #252c28;
  --green: #24543e;
  --green-hover: #173f2c;
  --muted: #5d665f;
  --line: #dce1dc;
  --soft: #f3f5f2;
  --general: #28523f;
  --dog: #955326;
  --recycling: #316984;
  --glass: #715789;
  --food: #69712a;
  --clothes: #72456b;
  --shoes: #72456b;
  --books: #72456b;
  --donations: #72456b;
  --red: #a12d25;
  --header-height: 60px;
  --radius: 4px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.5;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}
* { box-sizing: border-box; }
body { margin: 0; }
button, input, select, textarea { font: inherit; }
button, a { touch-action: manipulation; }
button { color: inherit; cursor: pointer; }
button:disabled { cursor: wait; opacity: .6; }
[hidden] { display: none !important; }
a { color: var(--green); text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
img, svg { max-width: 100%; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { font-weight: 650; line-height: 1.25; letter-spacing: -.02em; overflow-wrap: anywhere; }
h1 { font-size: 30px; }
h2 { font-size: 22px; }
h3 { font-size: 18px; }
p { line-height: 1.6; overflow-wrap: anywhere; }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible,
textarea:focus-visible, summary:focus-visible, [tabindex]:focus-visible {
  outline: 3px solid #176b9d;
  outline-offset: 3px;
}
button, input, select, textarea { border-radius: var(--radius); }
main:focus { outline: none; }
.icon {
  display: inline-block; width: 20px; height: 20px; flex-shrink: 0; vertical-align: middle;
  fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round;
}
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
.skip-link { position: fixed; left: 12px; top: -100px; z-index: 2000; padding: 12px 18px; background: var(--green); color: #fff; }
.skip-link:focus { top: 12px; }
.site-header {
  height: var(--header-height); padding: 0 24px; display: flex; align-items: center;
  gap: 38px; border-bottom: 1px solid var(--line); position: relative; z-index: 1100; background: var(--white);
}
.brand { display: inline-flex; align-items: center; gap: 8px; color: var(--ink); font-size: 20px; font-weight: 700; letter-spacing: -.6px; text-decoration: none; white-space: nowrap; }
.brand > .icon { width: 23px; height: 25px; color: var(--green); }
.primary-nav { display: flex; gap: 25px; align-items: center; height: 100%; }
.primary-nav > a { display: inline-flex; align-items: center; min-height: 44px; color: var(--muted); font-size: 14px; text-decoration: none; }
.primary-nav > a:hover, .primary-nav > a.active { color: var(--ink); text-decoration: underline; text-underline-offset: 6px; }
.header-actions { display: flex; gap: 22px; align-items: center; margin-left: auto; }
.account-link { display: inline-flex; gap: 7px; align-items: center; min-height: 44px; font-size: 14px; text-decoration: none; white-space: nowrap; }
.account-link:hover { text-decoration: underline; }
.account-link .icon { width: 18px; height: 18px; }
.mobile-navigation { display: none; }
.button {
  display: inline-flex; gap: 8px; align-items: center; justify-content: center; min-height: 44px;
  padding: 10px 16px; border: 1px solid transparent; border-radius: var(--radius);
  font-size: 14px; line-height: 1.4; font-weight: 600; text-decoration: none; white-space: nowrap;
  transition: background-color .15s, border-color .15s;
}
.button:hover { text-decoration: none; }
.button-primary { background: var(--green); color: #fff; }
.button-primary:hover { background: var(--green-hover); }
.button-secondary { border-color: #aab6ac; background: var(--white); color: var(--green); }
.button-secondary:hover { border-color: var(--green); background: var(--soft); }
.button-full { width: 100%; }
.button .icon { width: 18px; height: 18px; }
.text-button { display: inline-flex; align-items: center; gap: 7px; min-height: 44px; padding: 0; border: 0; background: none; color: var(--green); font-size: 14px; font-weight: 500; }
.text-button:hover { text-decoration: underline; text-underline-offset: 3px; }
.icon-button { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; padding: 10px; border: 0; background: none; color: var(--muted); flex-shrink: 0; }
.icon-button:hover { background: var(--soft); color: var(--ink); }
.is-saved .icon { fill: currentColor; }
.messages { position: relative; z-index: 1050; background: #edf3e9; }
.message { display: flex; align-items: center; gap: 10px; padding: 12px 24px; border-bottom: 1px solid var(--line); font-size: 14px; }
.message-error { color: var(--red); background: #fcf0ed; }
.search-form { display: flex; align-items: stretch; height: 46px; border: 1px solid #8e9b91; border-radius: var(--radius); background: var(--white); }
.search-form:focus-within { outline: 3px solid #176b9d; outline-offset: 2px; }
.search-form input { width: 100%; min-width: 0; border: 0; padding: 10px 12px; color: var(--ink); background: transparent; outline: none !important; }
.search-form input::-webkit-search-cancel-button { display: none; }
.search-form button { display: grid; place-items: center; width: 44px; flex-shrink: 0; padding: 10px; border: 0; background: transparent; color: var(--green); }
.search-form button:hover { background: var(--soft); }
.type-general { --type-color: var(--general); color: var(--general); }
.type-dog { --type-color: var(--dog); color: var(--dog); }
.type-recycling { --type-color: var(--recycling); color: var(--recycling); }
.type-glass { --type-color: var(--glass); color: var(--glass); }
.type-food { --type-color: var(--food); color: var(--food); }
.type-clothes { --type-color: var(--clothes); color: var(--clothes); }
.type-shoes { --type-color: var(--shoes); color: var(--shoes); }
.type-books { --type-color: var(--books); color: var(--books); }
.type-donations { --type-color: var(--donations); color: var(--donations); }
.type-dot { display: inline-block; width: 8px; height: 8px; flex-shrink: 0; border-radius: 50%; background: currentColor; }
.bin-type-icon { display: inline-flex; justify-content: center; align-items: center; width: 28px; height: 30px; flex-shrink: 0; }
.bin-type-icon .icon { width: 23px; height: 23px; }
.empty-state { padding: 24px 0; }
.empty-state h3 { font-size: 17px; }
.empty-state p { color: var(--muted); font-size: 14px; margin: 8px 0 14px; max-width: 38ch; }
.empty-state a { font-size: 14px; }
.empty-state > .icon { color: var(--muted); margin-bottom: 12px; }
/* Map controls are shared by the explorer, bin details and location picker. */
.leaflet-container { font-family: inherit !important; }
.leaflet-control-zoom { border: 1px solid #abb6ad !important; border-radius: var(--radius) !important; box-shadow: none !important; overflow: hidden; }
.leaflet-control-zoom a { width: 44px !important; height: 44px !important; line-height: 44px !important; color: var(--ink) !important; background: var(--white) !important; border-color: var(--line) !important; font-weight: 400 !important; }
.leaflet-top.leaflet-right { top: 6px; right: 6px; }
.leaflet-control-attribution { font-size: 11px !important; color: var(--muted) !important; background: #fffffff2 !important; }
.leaflet-control-attribution a { color: var(--green) !important; }
.leaflet-marker-icon.bin-marker { background: none; border: 0; width: 44px !important; height: 44px !important; }
.map-pin { display: grid; place-items: center; width: 36px; height: 36px; border: 3px solid #fff; border-radius: 50% 50% 50% 4px; transform: rotate(-45deg); background: var(--type-color, var(--general)); color: #fff; box-shadow: 0 1px 3px #20332550; }
.map-pin .icon { transform: rotate(45deg); width: 20px; height: 20px; stroke-width: 2; }
.map-pin.is-selected { outline: 3px solid var(--ink); outline-offset: 2px; }
.leaflet-popup-content-wrapper { border: 1px solid #b5bfb7; border-radius: var(--radius) !important; box-shadow: 0 2px 8px #20332524 !important; background: var(--white) !important; }
.leaflet-popup-content { margin: 16px !important; min-width: 190px; color: var(--ink); }
.leaflet-popup-content h3 { font-size: 16px; margin-bottom: 7px; }
.leaflet-popup-content a { color: var(--green) !important; }
.leaflet-popup-content p { font-size: 13px; color: var(--muted); margin: 5px 0; }
.leaflet-popup-content .popup-link { display: inline-flex; align-items: center; gap: 7px; min-height: 44px; font-size: 14px; margin-top: 4px; }
.leaflet-popup-content .icon { width: 16px; height: 16px; }
.leaflet-popup-tip { background: var(--white) !important; }
.leaflet-container a.leaflet-popup-close-button { width: 44px; height: 44px; padding-top: 3px; font-size: 24px; }
/* Content pages */
.page-container { max-width: 1120px; margin: 0 auto; padding: 32px 32px 72px; }
.back-link { display: inline-flex; align-items: center; gap: 7px; min-height: 44px; margin: -8px 0 22px; font-size: 14px; color: var(--muted); text-decoration: none; }
.back-link:hover { color: var(--green); text-decoration: underline; }
.back-link .icon { width: 17px; height: 17px; }
.page-heading { max-width: 660px; margin-bottom: 32px; }
.page-heading > p { margin-top: 12px; color: var(--muted); font-size: 16px; max-width: 62ch; }
.inline-notice { display: flex; align-items: flex-start; gap: 10px; padding: 12px 16px; margin-bottom: 24px; background: #f8f5e9; color: #625322; font-size: 14px; }
.inline-notice .icon { margin-top: 1px; }
.detail-layout { display: grid; grid-template-columns: minmax(0,1.1fr) minmax(0,1fr); gap: 48px; align-items: start; }
.type-label { display: flex; align-items: center; gap: 7px; font-size: 14px; color: var(--muted); margin-bottom: 10px; }
.type-label .icon { width: 19px; height: 19px; }
.detail-content h1 { font-size: 30px; }
.location-line { display: flex; align-items: flex-start; gap: 6px; margin-top: 12px; color: var(--muted); font-size: 15px; }
.location-line .icon { width: 18px; height: 18px; margin-top: 3px; }
.detail-summary { display: flex; align-items: center; flex-wrap: wrap; gap: 12px 22px; margin: 20px 0; }
.rating-inline { display: inline-flex; gap: 5px; align-items: center; color: var(--muted); font-size: 14px; }
.rating-inline > .icon { width: 16px; height: 16px; color: #86601c; }
.rating-inline a { color: var(--muted); margin-left: 4px; }
.condition-label { display: inline-flex; align-items: flex-start; gap: 6px; color: var(--muted); font-size: 14px; }
.condition-label .icon { width: 17px; height: 17px; margin-top: 2px; }
.condition-full, .condition-damaged, .condition-missing { color: #8b4820; }
.detail-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; }
.detail-actions .button { min-height: 46px; }
.detail-description { margin-top: 30px; }
.detail-description h2 { font-size: 20px; }
.detail-description h3 { font-size: 16px; margin-top: 20px; }
.detail-description p { margin-top: 8px; font-size: 15px; }
.community-note { margin-top: 26px; color: var(--muted); font-size: 13px; }
.community-note strong { font-weight: 500; }
.bin-source { margin-top: 26px; font-size: 14px; line-height: 1.6; color: var(--muted); overflow-wrap: anywhere; }
.bin-source h2 { font-size: 16px; color: var(--ink); }
.bin-source p { margin-top: 7px; }
.subtle-link { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; color: var(--muted); font-size: 14px; text-decoration: underline; }
.subtle-link .icon { width: 16px; height: 16px; }
.detail-map-wrap { overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); }
.detail-map { width: 100%; height: 360px; background: #e7ede2; }
.map-coordinates { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 10px; padding: 12px; color: var(--muted); font-size: 12px; font-variant-numeric: tabular-nums; }
.map-coordinates .icon { width: 15px; height: 15px; }
.map-coordinates > span { margin-left: auto; }
.map-fallback-notice { padding: 12px; font-size: 14px; color: #75451d; background: #fff7e9; }
.reviews-section { margin-top: 40px; border-top: 1px solid var(--line); padding-top: 28px; }
.section-heading { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px 20px; margin-bottom: 20px; }
.section-heading h2 { font-size: 21px; }
.section-heading > a { display: inline-flex; gap: 6px; align-items: center; min-height: 44px; font-size: 14px; }
.heading-count { font-size: 15px; color: var(--muted); font-weight: 400; letter-spacing: 0; }
.reviews-layout { display: grid; grid-template-columns: minmax(0,1.1fr) minmax(0,1fr); gap: 48px; align-items: start; }
.review { border-bottom: 1px solid var(--line); padding: 20px 0; }
.review:first-child { padding-top: 0; }
.review-header { display: flex; align-items: flex-start; gap: 12px; }
.review-header > div > strong { font-size: 14px; overflow-wrap: anywhere; }
.review-header time { display: block; margin-top: 2px; color: var(--muted); font-size: 13px; }
.review-header .rating-inline { margin-left: auto; white-space: nowrap; }
.review-condition { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); margin: 12px 0 6px; font-size: 14px; }
.review-condition .icon { width: 16px; height: 16px; }
.review > p { font-size: 15px; }
.review-form-wrap > p { color: var(--muted); margin: 8px 0 22px; font-size: 14px; }
.review-form-wrap .small-print { margin: 16px 0 0; }
.review-form textarea { min-height: 100px; }
/* Shared labelled forms */
.standard-form input:not([type=checkbox]):not([type=radio]):not([type=hidden]), .standard-form select, .standard-form textarea {
  display: block; width: 100%; min-height: 46px; border: 1px solid #87948b; border-radius: var(--radius);
  background: var(--white); padding: 10px 12px; color: var(--ink); font-size: 16px;
}
.standard-form textarea { min-height: 110px; resize: vertical; }
input::placeholder, textarea::placeholder { color: #6a756c; opacity: 1; }
.form-field { margin-bottom: 22px; }
.form-field > label { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; font-size: 15px; font-weight: 600; margin-bottom: 7px; }
.required-label { font-size: 12px; color: var(--muted); font-weight: 400; }
.help-text { margin-top: 7px; color: var(--muted); font-size: 13px; line-height: 1.6; }
.help-text ul { padding-left: 20px; margin: 6px 0; }
.help-text li { margin: 3px 0; }
.field-error { margin-top: 7px; color: var(--red); font-size: 14px; }
.form-errors { padding: 18px; margin-bottom: 26px; border: 2px solid var(--red); color: var(--red); }
.error-summary h2 { margin-bottom: 10px; font-size: 19px; }
.form-errors ul { margin: 0; padding-left: 20px; }
.form-errors li { margin: 5px 0; }
.form-errors a { color: var(--red); }
.has-error input, .has-error select, .has-error textarea { border: 2px solid var(--red) !important; }
.small-print { color: var(--muted); font-size: 13px; margin-top: 24px; }
.standard-form .small-print { margin: 0 0 20px; }
.add-page { max-width: 1080px; }
.add-layout { display: grid; grid-template-columns: minmax(0,1.1fr) minmax(0,1fr); gap: 48px; }
.add-layout h2 { margin-bottom: 14px; font-size: 21px; }
.location-picker > p { margin-bottom: 18px; font-size: 14px; color: var(--muted); }
.standard-form .location-picker .search-form input { border: 0; background: transparent; min-height: 0; padding: 10px 12px; }
.location-picker .locate-button { margin: 5px 0; }
.add-map { height: 320px; border: 1px solid var(--line); border-radius: var(--radius); background: #e7ede2; }
.location-picker > .map-picker-status { margin: 10px 0 18px; color: var(--muted); font-size: 14px; min-height: 22px; }
.coordinate-fields { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: 16px; }
.coordinate-fields .form-field { margin-bottom: 0; }
.coordinate-fields input { font-variant-numeric: tabular-nums; }
.location-picker > .help-text { margin-top: 10px; font-size: 13px; }
.bin-details-form h2 { margin-bottom: 22px; }
.narrow-page { max-width: 520px; margin: 0 auto; padding: 48px 24px 80px; }
.narrow-page .page-intro { margin: 12px 0 26px; color: var(--muted); }
.narrow-page > .standard-form { margin-top: 28px; }
.auth-page { max-width: 448px; }
.auth-form > p { color: var(--muted); margin: 12px 0 28px; font-size: 15px; }
.auth-form form { margin-top: 28px; }
.auth-form > .auth-switch, .auth-page > .auth-switch { margin-top: 24px; font-size: 14px; }
.forgot-link { font-size: 14px; margin: -2px 0 22px; }
/* Help follows the reading order of the tasks, in one column. */
.how-page, .help-page { max-width: 744px; padding-top: 40px; }
.help-intro { color: var(--muted); margin-top: 12px; }
.help-section { margin-top: 32px; }
.help-section h2 { font-size: 21px; margin-bottom: 12px; }
.help-section p { margin: 10px 0; }
.help-section ol, .help-section ul { padding-left: 23px; margin: 12px 0; }
.help-section li { padding-left: 3px; margin: 9px 0; }
.data-source { margin-top: 22px; overflow-wrap: anywhere; }
.data-source h3 { font-size: 16px; }
.data-source p { font-size: 14px; }
.bin-type-guide { margin: 18px 0 0; }
.bin-type-guide > div { display: grid; grid-template-columns: 152px minmax(0,1fr); gap: 20px; border-top: 1px solid var(--line); padding: 14px 0; font-size: 14px; }
.bin-type-guide dt { display: flex; align-items: flex-start; gap: 9px; font-weight: 600; }
.bin-type-guide dt .icon { width: 19px; height: 19px; margin-top: 1px; }
.bin-type-guide dd { margin: 0; color: var(--muted); line-height: 1.6; }
.help-footer { margin-top: 36px; color: var(--muted); font-size: 14px; }
.profile-page { max-width: 980px; padding-top: 36px; }
.profile-heading { display: flex; justify-content: space-between; align-items: center; gap: 20px; }
.profile-heading p { margin-top: 8px; color: var(--muted); font-size: 14px; }
.profile-layout { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: 48px; margin-top: 36px; }
.profile-bin-row { display: flex; align-items: center; gap: 12px; padding: 16px 0; border-top: 1px solid var(--line); text-decoration: none; color: var(--ink); }
.profile-bin-row > span:nth-child(2) { min-width: 0; flex: 1; }
.profile-bin-row strong { display: block; font-size: 15px; font-weight: 600; overflow-wrap: anywhere; }
.profile-bin-row small { display: block; margin-top: 4px; color: var(--muted); font-size: 13px; }
.profile-bin-row > .icon { width: 17px; height: 17px; color: var(--muted); }
.profile-reviews { border-top: 1px solid var(--line); margin-top: 36px; padding-top: 26px; }
.profile-review { border-top: 1px solid var(--line); padding: 18px 0; }
.profile-review > div { display: flex; align-items: center; flex-wrap: wrap; gap: 10px 20px; }
.profile-review time { margin-left: auto; color: var(--muted); font-size: 13px; }
.profile-review > p { margin-top: 10px; color: var(--muted); font-size: 14px; }
.muted-text { color: var(--muted); font-size: 14px; }
.account-sections { margin-top: 34px; }
.account-section { margin-top: 30px; padding-top: 24px; border-top: 1px solid var(--line); }
.account-section .section-heading { margin-bottom: 14px; }
.account-bin-list { list-style: none; padding: 0; margin: 0; }
.account-bin { display: flex; align-items: flex-start; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.account-bin > div { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.account-bin p, .account-bin small { display: block; color: var(--muted); font-size: 14px; margin-top: 3px; }
.account-review { padding: 18px 0; border-bottom: 1px solid var(--line); }
.account-review > div { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 18px; }
.account-review time { color: var(--muted); font-size: 13px; }
.account-review p { margin-top: 8px; font-size: 14px; color: var(--muted); }
@media (max-width: 800px) {
  .site-header { gap: 24px; padding: 0 20px; }
  .primary-nav { gap: 20px; }
  .account-link .icon { display: none; }
  .header-actions { gap: 16px; }
  .detail-layout, .reviews-layout, .add-layout { gap: 30px; }
}
@media (max-width: 700px) {
  :root { --header-height: 56px; }
  .site-header { gap: 12px; padding: 0 14px; }
  .brand { font-size: 19px; gap: 6px; }
  .brand > .icon { width: 21px; height: 23px; }
  .primary-nav, .header-actions .account-link { display: none; }
  .header-actions { margin-left: 0; }
  .header-add { min-height: 40px; padding: 8px 11px; font-size: 13px; }
  .header-add .icon { width: 16px; height: 16px; }
  .mobile-navigation { display: block; margin-left: auto; order: 3; }
  .mobile-navigation summary { display: grid; place-items: center; width: 40px; height: 44px; list-style: none; cursor: pointer; }
  .mobile-navigation summary::-webkit-details-marker { display: none; }
  .mobile-navigation nav { position: absolute; top: calc(100% - 1px); right: 10px; width: 220px; padding: 6px; border: 1px solid #aab6ac; background: var(--white); }
  .mobile-navigation nav a { display: block; min-height: 44px; padding: 11px 12px; font-size: 14px; text-decoration: none; }
  .mobile-navigation nav a:hover { background: var(--soft); }
  .message { padding: 12px 16px; align-items: flex-start; }
  .page-container { padding: 22px 20px 48px; }
  h1, .detail-content h1 { font-size: 27px; }
  h2 { font-size: 21px; }
  .back-link { margin-bottom: 18px; }
  .page-heading { margin-bottom: 28px; }
  .detail-layout, .reviews-layout, .add-layout, .profile-layout { grid-template-columns: minmax(0,1fr); gap: 30px; }
  .detail-map { height: 280px; }
  .detail-map-wrap { margin-top: 2px; }
  .reviews-section { margin-top: 30px; padding-top: 24px; }
  .review-form-wrap { border-top: 1px solid var(--line); padding-top: 24px; }
  .detail-summary { margin: 18px 0; }
  .add-map { height: 300px; }
  .bin-details-form { border-top: 1px solid var(--line); padding-top: 24px; }
  .narrow-page { padding-top: 30px; }
  .how-page, .help-page { padding-top: 24px; }
  .help-section { margin-top: 28px; }
  .bin-type-guide > div { grid-template-columns: 124px minmax(0,1fr); gap: 12px; }
  .profile-heading { align-items: flex-start; }
  .profile-review time { margin-left: 0; }
}
@media (max-width: 370px) {
  .site-header { padding: 0 10px; gap: 6px; }
  .brand { font-size: 18px; }
  .header-add { padding: 8px 9px; }
  .header-add .icon { display: none; }
  .page-container { padding-left: 16px; padding-right: 16px; }
  .bin-type-guide > div { grid-template-columns: minmax(0,1fr); gap: 7px; }
  .coordinate-fields { gap: 10px; }
  .map-coordinates > span { margin-left: 0; width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; animation: none !important; }
}
