:root {
  color-scheme: light;
  --ink: #1d2928;
  --muted: #677270;
  --surface: #ffffff;
  --canvas: #f5f3ea;
  --line: #d9ded8;
  --green: #1f6e5b;
  --green-dark: #145142;
  --gold: #f5c845;
  --gold-soft: #fff1bd;
  --caution: #a4452e;
  --shadow: 0 12px 32px rgba(31, 48, 43, 0.1);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }

body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  background: radial-gradient(circle at 85% 0%, #fff8d9 0, transparent 28rem), var(--canvas);
  color: var(--ink);
}

button, select, input { font: inherit; }
button { cursor: pointer; }

.app-header {
  width: min(100%, 760px);
  min-height: 76px;
  margin: 0 auto;
  padding: 16px 20px;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: center;
  gap: 12px;
}

.brand, .header-controls, .language-control, .flow-context, .result-actions, .flow-navigation { display: flex; align-items: center; }
.brand { gap: 9px; min-width: 0; }
.brand img { width: 31px; height: 31px; object-fit: contain; flex-shrink: 0; }
.brand-name { font-size: .98rem; font-weight: 800; letter-spacing: -.02em; line-height: 1.3; overflow-wrap: anywhere; }
.header-controls { flex-wrap: wrap; justify-content: space-between; gap: 8px; min-width: 0; }
.language-control { flex-shrink: 0; }
.language-control select {
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0 28px 0 10px;
  color: var(--ink);
  background: var(--surface);
}

.screen {
  width: min(100%, 760px);
  margin: 0 auto;
  padding: clamp(32px, 8vw, 74px) 20px 52px;
}
.location-screen { max-width: 600px; }
.flow-screen { max-width: 680px; }
.eyebrow, .step-label, .context-label {
  margin: 0 0 10px;
  color: var(--green);
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.screen-title {
  max-width: 16ch;
  margin: 0;
  font-size: clamp(2rem, 7vw, 3.6rem);
  line-height: 1.02;
  letter-spacing: -.06em;
}
.screen-intro { max-width: 54ch; margin: 18px 0 0; color: var(--muted); font-size: 1.02rem; line-height: 1.55; }

.location-list { display: grid; gap: 12px; margin-top: 34px; }
.location-card, .answer-button, .open-picker, .picker-item {
  width: 100%;
  border: 1px solid var(--line);
  color: var(--ink);
  background: var(--surface);
  box-shadow: 0 2px 0 rgba(31, 48, 43, .02);
  transition: border-color .18s ease, transform .18s ease, box-shadow .18s ease;
}
.location-card:hover, .answer-button:hover, .open-picker:hover, .picker-item:hover { border-color: var(--green); transform: translateY(-1px); box-shadow: var(--shadow); }
.location-card:focus-visible, .answer-button:focus-visible, .open-picker:focus-visible, .picker-item:focus-visible, .primary-button:focus-visible, .secondary-button:focus-visible, .text-button:focus-visible, .close-picker:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }
.location-card { min-height: 94px; padding: 18px 20px; border-radius: 18px; display: flex; align-items: center; justify-content: space-between; text-align: left; }
.location-card-copy { display: grid; gap: 4px; }
.location-city { color: var(--green); font-size: .78rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.location-name { font-size: 1.05rem; font-weight: 750; line-height: 1.25; }
.location-arrow, .answer-arrow, .picker-item-arrow { color: var(--green); font-size: 1.55rem; font-weight: 400; }

.flow-context { gap: 9px; margin-bottom: 26px; padding: 10px 13px; border: 1px solid var(--line); border-radius: 12px; background: rgba(255, 255, 255, .58); }
.context-label { margin: 0; font-size: .67rem; }
.context-name { font-size: .84rem; line-height: 1.2; }
.breadcrumbs { margin: 0 0 20px; }
.breadcrumb-list { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; margin: 0; padding: 0; list-style: none; }
.breadcrumb-item { display: flex; align-items: center; min-width: 0; max-width: 100%; }
.breadcrumb-item + .breadcrumb-item::before { content: "›"; padding: 0 7px 0 3px; color: var(--muted); }
.breadcrumb-button { min-height: 44px; max-width: 100%; border: 1px solid var(--line); border-radius: 10px; padding: 8px 11px; background: rgba(255, 255, 255, .8); color: var(--green); text-align: left; overflow-wrap: anywhere; font-size: .85rem; font-weight: 700; }
.breadcrumb-button:hover { border-color: var(--green); }
.breadcrumb-button:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }
.picker-panel .breadcrumbs { margin: 14px 0 0; }
.flow-card { padding: clamp(22px, 5vw, 36px); border-radius: 24px; background: var(--surface); box-shadow: var(--shadow); }
.flow-card .screen-title { font-size: clamp(1.85rem, 6vw, 2.9rem); }
.answer-list { display: grid; gap: 12px; margin-top: 28px; }
.hazard-guide { margin-top: 24px; border: 1px solid var(--line); border-radius: 14px; }
.hazard-guide-summary { min-height: 48px; padding: 14px; color: var(--green); font-weight: 750; cursor: pointer; overflow-wrap: anywhere; }
.hazard-guide-summary:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 12px; }
.hazard-guide-guidance { margin: 0; padding: 4px 14px 16px; font-size: .94rem; line-height: 1.5; }
.hazard-guide-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 12px; list-style: none; margin: 0; padding: 0 12px 18px; }
.hazard-guide-item { min-width: 0; display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; }
.hazard-guide-slot { display: flex; align-items: center; justify-content: center; width: 96px; max-width: 100%; aspect-ratio: 1; }
.hazard-guide-image { display: block; width: min(100%, 96px); height: auto; aspect-ratio: 1; object-fit: contain; }
.hazard-guide-image:focus { outline: 3px solid var(--gold); outline-offset: 3px; }
.hazard-guide-slot > .hazard-guide-retry { width: 100%; height: 100%; padding: 4px; font-size: .8rem; overflow-wrap: anywhere; }
.hazard-guide-retry:disabled { cursor: wait; opacity: .65; }
.hazard-guide-code { color: var(--muted); font-size: .75rem; }
.hazard-guide-meaning { font-size: .9rem; line-height: 1.4; hyphens: auto; overflow-wrap: anywhere; }
@media (min-width: 600px) {
  .hazard-guide-list { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
.answer-button { min-height: 70px; padding: 16px 18px; border-radius: 16px; display: flex; align-items: center; justify-content: space-between; gap: 18px; text-align: left; }
.answer-label { font-size: 1.05rem; font-weight: 760; }
.answer-caution { border-color: #e4b8ad; background: #fff8f5; }
.open-picker { min-height: 88px; margin-top: 30px; padding: 17px 18px; border-radius: 16px; display: flex; align-items: center; justify-content: space-between; gap: 16px; text-align: left; }
.picker-copy { display: grid; gap: 4px; }
.picker-button-label { font-size: 1.07rem; font-weight: 780; }
.picker-button-help { color: var(--muted); font-size: .91rem; }
.picker-button-icon { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 50%; color: var(--green); background: #e6f2ed; font-size: 1.9rem; line-height: 1; }
.flow-navigation { justify-content: space-between; gap: 12px; margin-top: 26px; }
.text-button { min-height: 42px; border: 0; padding: 6px 9px; color: var(--green); background: transparent; font-size: .91rem; font-weight: 750; text-align: left; }
.secondary-button, .primary-button { min-height: 50px; padding: 0 18px; border-radius: 12px; font-weight: 800; }
.secondary-button { border: 1px solid var(--line); color: var(--ink); background: var(--surface); }
.primary-button { border: 1px solid var(--green); color: #fff; background: var(--green); }
.primary-button:hover { background: var(--green-dark); }

.result-section { padding: 4px 0 0; }
.result-section .screen-title { max-width: 18ch; overflow-wrap: anywhere; }
.disposal-warning { display: flex; align-items: flex-start; gap: 14px; margin-top: 24px; padding: clamp(16px, 4vw, 24px); border: 3px solid #9d321c; border-radius: 16px; color: #76220f; background: #fff1e9; }
.disposal-warning-icon { flex-shrink: 0; font-size: 2rem; line-height: 1; }
.disposal-warning-content { min-width: 0; overflow-wrap: anywhere; }
.disposal-warning-label { margin: 0 0 8px; font-weight: 800; }
.disposal-warning-title { margin: 0; font-size: clamp(1.15rem, 4vw, 1.45rem); line-height: 1.35; }
.hotel-collection { margin-top: 18px; padding: 20px; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); }
.hotel-collection-title { margin: 0 0 10px; font-size: 1.1rem; }
.hotel-collection-detail { margin: 0; line-height: 1.55; white-space: pre-line; overflow-wrap: anywhere; }
.result-options-title { margin: 30px 0 12px; color: var(--muted); font-size: .9rem; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; }
.destination-list { display: grid; gap: 14px; margin-top: 28px; }
.destination-card { display: grid; grid-template-columns: 82px 1fr; gap: 14px; padding: 20px; border: 1px solid var(--line); border-radius: 20px; background: var(--surface); box-shadow: 0 6px 20px rgba(31, 48, 43, .06); }
.destination-visual { display: grid; place-items: start center; }
.bin-illustration { width: 70px; height: 70px; }
.destination-title { margin: 0 0 10px; font-size: 1.08rem; line-height: 1.22; letter-spacing: -.02em; white-space: pre-line; overflow-wrap: anywhere; }
.destination-detail, .destination-note, .destination-appointments { margin: 8px 0 0; color: var(--muted); font-size: .91rem; line-height: 1.48; }
.destination-detail, .destination-note, .destination-appointments { white-space: pre-line; overflow-wrap: anywhere; }
.destination-note { padding: 11px 12px; border-radius: 10px; color: #3b514a; background: #edf6f0; }
.destination-content { min-width: 0; }
.destination-links { display: grid; gap: 8px; margin-top: 8px; }
.destination-link { display: block; padding: 8px 0; color: var(--green); text-decoration: underline; text-underline-offset: 3px; overflow-wrap: anywhere; line-height: 1.48; }
.destination-link:focus-visible { outline: 3px solid currentColor; outline-offset: 3px; border-radius: 3px; }
.result-actions { flex-wrap: wrap; gap: 10px; margin-top: 26px; }

html:has(.picker-overlay), body:has(.picker-overlay) { overflow: hidden; }
.picker-overlay { position: fixed; z-index: 10; inset: 0; height: 100%; height: 100dvh; display: flex; justify-content: center; background: rgba(20, 33, 30, .45); }
.picker-panel { width: min(100%, 760px); height: 100%; min-height: 0; display: flex; flex-direction: column; padding: max(20px, env(safe-area-inset-top)) 20px max(26px, env(safe-area-inset-bottom)); overflow: hidden; background: var(--canvas); }
.picker-panel > :not(.picker-results) { flex-shrink: 0; }
.picker-header { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.picker-title { margin: 0; font-size: clamp(1.4rem, 5vw, 2rem); letter-spacing: -.04em; }
.picker-title { flex: 1; min-width: 0; }
.close-picker { flex-shrink: 0; }
.close-picker { min-height: 44px; border: 0; padding: 0 10px; color: var(--green); background: transparent; font-weight: 800; }
.picker-search { width: 100%; min-height: 58px; margin-top: 22px; border: 2px solid var(--green); border-radius: 14px; padding: 0 16px; color: var(--ink); background: var(--surface); font-size: 1rem; }
.picker-results { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior-y: contain; display: grid; align-content: start; grid-auto-rows: max-content; gap: 10px; margin: 15px -3px 0; padding: 3px; }
.picker-results { animation: picker-reveal 180ms ease-out; }
@keyframes picker-reveal {
  from { opacity: 0; transform: translateX(8px); }
  to { opacity: 1; transform: translateX(0); }
}
@media (prefers-reduced-motion: reduce) {
  .picker-results { animation: none; }
}
.picker-item { min-height: 70px; padding: 10px 14px; border-radius: 15px; display: grid; grid-template-columns: 45px 1fr auto; align-items: center; gap: 12px; text-align: left; }
.picker-item-icon { display: grid; place-items: center; }
.picker-item-icon .bin-illustration { width: 39px; height: 39px; }
.picker-item-copy { display: grid; gap: 4px; min-width: 0; overflow-wrap: anywhere; }
.picker-item-material,
.picker-item-description { color: var(--muted); font-size: .88rem; font-weight: 400; line-height: 1.4; }
.picker-item-label { font-size: 1rem; font-weight: 750; }
.picker-item-label { min-width: 0; overflow-wrap: anywhere; }
.empty-search { margin: 24px 0; color: var(--muted); text-align: center; }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

@media (min-width: 720px) {
  .app-header { grid-template-columns: minmax(0, 1fr) auto; padding-left: 0; padding-right: 0; }
  .header-controls { justify-content: flex-end; }
  .screen { padding-left: 0; padding-right: 0; }
  .picker-panel { height: 92vh; height: 92dvh; margin-top: 4vh; margin-top: 4dvh; border-radius: 24px 24px 0 0; box-shadow: 0 -8px 28px rgba(20, 33, 30, .2); }
}

@media (max-width: 420px) {
  .app-header { padding-left: 14px; padding-right: 14px; }
  .screen { padding-left: 14px; padding-right: 14px; }
  .destination-card { grid-template-columns: 60px 1fr; padding: 16px; }
  .bin-illustration { width: 54px; height: 54px; }
}

.location-status { color: var(--muted); }
.location-card:disabled { cursor: wait; opacity: .65; }
