:root {
  color-scheme: light;
  --bg: #f5f7f3;
  --pane: #ffffff;
  --pane-alt: #eef4f5;
  --text: #1f2933;
  --muted: #63717c;
  --line: #d9e1dd;
  --green: #23735a;
  --green-dark: #15533f;
  --amber: #d99a21;
  --coral: #c95743;
  --blue: #2f6f9f;
  --shadow: 0 18px 45px rgba(31, 41, 51, 0.12);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", sans-serif;
  letter-spacing: 0;
}

body.modal-open {
  overflow: hidden;
}

button,
input {
  font: inherit;
  letter-spacing: 0;
}

.app-shell {
  display: grid;
  grid-template-columns: minmax(320px, 420px) minmax(0, 1fr);
  min-height: 100vh;
}

.search-pane {
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-height: 100vh;
  padding: 28px;
  background: var(--pane);
  border-right: 1px solid var(--line);
}

.brand-row,
.area-header,
.schedule-card__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.brand-actions {
  display: grid;
  justify-items: end;
  gap: 8px;
}

.language-toggle {
  min-height: 34px;
  padding: 6px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f7faf8;
  color: var(--green-dark);
  cursor: pointer;
  font-size: 0.84rem;
  font-weight: 850;
  white-space: nowrap;
}

.language-toggle:hover,
.language-toggle:focus-visible {
  border-color: rgba(35, 115, 90, 0.4);
  background: #eaf5ef;
  outline: 0;
}

.eyebrow {
  margin: 0 0 4px;
  color: var(--green);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin: 0;
}

h1 {
  font-size: clamp(1.55rem, 2.5vw, 2.3rem);
  line-height: 1.05;
}

h2 {
  font-size: clamp(1.65rem, 3vw, 2.7rem);
  line-height: 1.08;
}

h3 {
  margin-top: 3px;
  font-size: 1.14rem;
  line-height: 1.25;
}

.count-pill,
.schedule-card__raw {
  flex: 0 0 auto;
  max-width: 8.5rem;
  padding: 6px 10px;
  border-radius: 999px;
  background: #fff5df;
  color: #725012;
  font-size: 0.82rem;
  font-weight: 800;
  text-align: center;
  white-space: nowrap;
}

.search-label {
  margin-top: 12px;
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 800;
}

.search-box {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 42px;
  min-height: 48px;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  background: #fff;
}

.search-box:focus-within {
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(35, 115, 90, 0.14);
}

.search-box input {
  min-width: 0;
  border: 0;
  padding: 0 14px;
  color: var(--text);
  outline: 0;
}

.search-box button {
  border: 0;
  border-left: 1px solid var(--line);
  background: #f7faf8;
  color: var(--muted);
  cursor: pointer;
  font-size: 1.35rem;
  line-height: 1;
}

.search-box button:hover,
.search-box button:focus-visible {
  color: var(--text);
  background: #edf3ef;
}

.result-meta {
  min-height: 1.25rem;
  color: var(--muted);
  font-size: 0.84rem;
}

.result-list {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 8px;
  min-height: 0;
  margin: 0 -4px;
  padding: 0 4px 4px;
  overflow: auto;
  list-style: none;
}

.area-result {
  display: grid;
  width: 100%;
  min-height: 58px;
  padding: 10px 12px;
  border: 1px solid transparent;
  border-radius: 8px;
  background: transparent;
  color: var(--text);
  cursor: pointer;
  text-align: left;
}

.area-result:hover,
.area-result:focus-visible {
  border-color: var(--line);
  background: #f8fbf9;
  outline: 0;
}

.area-result.is-selected {
  border-color: rgba(35, 115, 90, 0.32);
  background: #eaf5ef;
}

.area-result__name {
  overflow-wrap: anywhere;
  font-weight: 800;
}

.area-result__reading {
  margin-top: 3px;
  color: var(--muted);
  font-size: 0.82rem;
  overflow-wrap: anywhere;
}

.schedule-pane {
  min-width: 0;
  padding: 36px;
}

.empty-state {
  display: grid;
  min-height: calc(100vh - 72px);
  align-content: center;
  max-width: 680px;
}

.area-detail {
  max-width: 1120px;
}

.area-header {
  margin-bottom: 26px;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--line);
}

.reading-line {
  margin-top: 8px;
  color: var(--muted);
  font-size: 0.96rem;
}

.city-link,
.detail-link {
  color: var(--green-dark);
  font-weight: 800;
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}

.city-link {
  flex: 0 0 auto;
  margin-top: 6px;
}

.mobile-home {
  display: none;
}

.summary-stack {
  display: grid;
  gap: 16px;
  margin-bottom: 28px;
}

.today-panel,
.week-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--pane);
}

.today-panel {
  display: grid;
  grid-template-columns: minmax(180px, 260px) minmax(0, 1fr);
  gap: 20px;
  align-items: center;
  padding: 20px;
  border-top: 5px solid var(--green);
  box-shadow: var(--shadow);
}

.week-panel {
  padding: 20px;
}

.section-heading {
  margin-bottom: 16px;
}

.full-schedule-heading {
  margin-top: 6px;
}

.pickup-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.pickup-list--compact {
  align-content: flex-start;
  margin-top: 12px;
}

.pickup-pill {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  max-width: 100%;
  padding: 7px 10px;
  border: 0;
  border-radius: 8px;
  color: #fff;
  cursor: pointer;
  font-size: 0.84rem;
  font-weight: 850;
  overflow-wrap: anywhere;
  text-align: left;
}

.pickup-pill:hover,
.pickup-pill:focus-visible {
  filter: brightness(0.94);
  outline: 3px solid rgba(35, 115, 90, 0.18);
  outline-offset: 2px;
}

.pickup-pill--green {
  background: var(--green);
}

.pickup-pill--blue {
  background: var(--blue);
}

.pickup-pill--coral {
  background: var(--coral);
}

.pickup-pill--amber {
  background: var(--amber);
  color: #38270a;
}

.empty-note {
  color: var(--muted);
  font-size: 0.9rem;
}

.week-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 8px;
}

.week-day {
  min-height: 154px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfdfb;
}

.week-day.is-today {
  border-color: rgba(35, 115, 90, 0.42);
  background: #eef8f2;
}

.week-day h4 {
  margin: 0 0 3px;
  font-size: 0.92rem;
  line-height: 1.2;
}

.week-day p {
  color: var(--muted);
  font-size: 0.8rem;
}

.schedule-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.schedule-card {
  display: flex;
  flex-direction: column;
  min-height: 280px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--pane);
  box-shadow: var(--shadow);
}

.schedule-card:nth-child(3n + 1) {
  border-top: 5px solid var(--green);
}

.schedule-card:nth-child(3n + 2) {
  border-top: 5px solid var(--blue);
}

.schedule-card:nth-child(3n) {
  border-top: 5px solid var(--coral);
}

.schedule-card__eng {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 800;
}

.schedule-card__days {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 18px 0 14px;
}

.day-chip {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 7px 10px;
  border-radius: 8px;
  background: var(--pane-alt);
  color: var(--green-dark);
  font-size: 0.88rem;
  font-weight: 800;
}

.item-list {
  display: grid;
  gap: 8px;
  margin: 0 0 18px;
  padding: 0;
  list-style: none;
}

.item-list li {
  display: grid;
  gap: 2px;
  padding-left: 12px;
  border-left: 3px solid #efd7a3;
}

.item-name {
  font-weight: 750;
  overflow-wrap: anywhere;
}

.item-eng {
  color: var(--muted);
  font-size: 0.83rem;
  overflow-wrap: anywhere;
}

.detail-link {
  margin-top: auto;
  align-self: flex-start;
}

.detail-button {
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  font: inherit;
}

.detail-button:hover,
.detail-button:focus-visible {
  color: var(--coral);
  outline: 0;
}

.modal-shell {
  position: fixed;
  inset: 0;
  z-index: 20;
  display: grid;
  place-items: center;
  padding: 20px;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(31, 41, 51, 0.42);
}

.modal-card {
  position: relative;
  width: min(680px, 100%);
  max-height: min(760px, calc(100vh - 40px));
  overflow: auto;
  padding: 26px;
  border-radius: 8px;
  background: var(--pane);
  box-shadow: 0 24px 70px rgba(31, 41, 51, 0.28);
}

.modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  display: inline-grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f7faf8;
  color: var(--muted);
  cursor: pointer;
  font-size: 1.35rem;
  line-height: 1;
}

.modal-close:hover,
.modal-close:focus-visible {
  border-color: rgba(35, 115, 90, 0.4);
  background: #eaf5ef;
  color: var(--text);
  outline: 0;
}

.modal-subtitle {
  margin-top: 8px;
  padding-right: 44px;
  color: var(--muted);
  font-weight: 750;
}

.modal-section {
  margin-top: 24px;
}

.modal-section h3 {
  margin-bottom: 12px;
}

.modal-item-list {
  margin-bottom: 0;
}

.modal-official-link {
  display: inline-flex;
  margin-top: 24px;
  color: var(--green-dark);
  font-weight: 850;
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}

.hidden {
  display: none;
}

@media (max-width: 860px) {
  .app-shell {
    grid-template-columns: 1fr;
  }

  .search-pane {
    min-height: auto;
    padding: 22px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .result-list {
    max-height: 42vh;
  }

  .schedule-pane {
    padding: 20px 18px 32px;
  }

  .empty-state {
    min-height: 32vh;
  }

  .area-header {
    display: grid;
    margin-bottom: 20px;
    padding-bottom: 10px;
  }

  .area-header .eyebrow,
  .reading-line,
  .city-link {
    display: none;
  }

  .area-header h2 {
    font-size: 1.45rem;
    line-height: 1.2;
  }

  .mobile-home {
    display: grid;
    gap: 22px;
  }

  .mobile-today-card {
    min-height: 430px;
    padding: 42px 18px 26px;
    border-bottom: 1px solid var(--line);
    text-align: center;
  }

  .mobile-today-card .eyebrow {
    color: var(--muted);
  }

  .mobile-today-card h3 {
    margin-top: 12px;
    font-size: clamp(1.7rem, 8vw, 2.4rem);
    line-height: 1.12;
  }

  .mobile-date {
    margin-top: 8px;
    color: var(--muted);
    font-size: 1.05rem;
    font-weight: 800;
  }

  .mobile-today-pickups {
    display: grid;
    gap: 18px;
    justify-items: center;
    margin-top: 30px;
  }

  .mobile-trash-focus {
    display: grid;
    justify-items: center;
    width: min(300px, 100%);
    min-height: 268px;
    padding: 22px 20px 18px;
    border: 0;
    border-radius: 50%;
    background: #edf8f1;
    color: var(--text);
    cursor: pointer;
    box-shadow: inset 0 0 0 2px rgba(35, 115, 90, 0.12);
  }

  .mobile-trash-focus--blue {
    background: #edf6fb;
    box-shadow: inset 0 0 0 2px rgba(47, 111, 159, 0.14);
  }

  .mobile-trash-focus--coral {
    background: #fff0ed;
    box-shadow: inset 0 0 0 2px rgba(201, 87, 67, 0.14);
  }

  .mobile-trash-focus--amber {
    background: #fff7e5;
    box-shadow: inset 0 0 0 2px rgba(217, 154, 33, 0.18);
  }

  .mobile-trash-focus:hover,
  .mobile-trash-focus:focus-visible {
    outline: 4px solid rgba(35, 115, 90, 0.16);
    outline-offset: 4px;
  }

  .mobile-trash-name {
    max-width: 210px;
    font-size: 1.22rem;
    font-weight: 900;
    line-height: 1.22;
    overflow-wrap: anywhere;
  }

  .mobile-bag-illustration {
    position: relative;
    display: grid;
    place-items: center;
    width: 102px;
    height: 116px;
    margin-top: 24px;
    border: 3px solid rgba(31, 41, 51, 0.72);
    border-radius: 42% 42% 38% 38%;
    background: rgba(255, 255, 255, 0.72);
  }

  .mobile-bag-knot {
    position: absolute;
    top: -22px;
    width: 46px;
    height: 32px;
    border: 3px solid rgba(31, 41, 51, 0.72);
    border-bottom: 0;
    border-radius: 50% 50% 0 0;
    transform: rotate(-7deg);
  }

  .mobile-bag-label {
    font-size: 0.94rem;
    font-weight: 900;
  }

  .mobile-bag-hint {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 18px;
    color: var(--text);
    font-weight: 850;
  }

  .mobile-bag-swatch {
    width: 32px;
    height: 32px;
    border: 2px solid rgba(31, 41, 51, 0.42);
    border-radius: 8px;
    background: #fff;
  }

  .mobile-upcoming-card {
    display: grid;
    gap: 14px;
  }

  .mobile-upcoming-list {
    display: grid;
    gap: 14px;
  }

  .mobile-upcoming-row {
    display: grid;
    grid-template-columns: minmax(92px, 118px) minmax(0, 1fr);
    gap: 14px;
    align-items: center;
    min-height: 58px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--line);
  }

  .mobile-upcoming-date {
    display: grid;
    gap: 2px;
  }

  .mobile-upcoming-date strong {
    font-size: 1rem;
    line-height: 1.2;
  }

  .mobile-upcoming-date span {
    color: var(--muted);
    font-size: 0.84rem;
    font-weight: 750;
  }

  .mobile-upcoming-pickups {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
  }

  .mobile-upcoming-pickup {
    min-height: 34px;
    padding: 7px 10px;
    border: 0;
    border-radius: 8px;
    background: #edf4f5;
    color: var(--text);
    cursor: pointer;
    font-size: 0.86rem;
    font-weight: 850;
    overflow-wrap: anywhere;
    text-align: left;
  }

  .mobile-upcoming-pickup--green {
    background: #e6f4ec;
    color: var(--green-dark);
  }

  .mobile-upcoming-pickup--blue {
    background: #e8f2f8;
    color: #164c72;
  }

  .mobile-upcoming-pickup--coral {
    background: #fdecea;
    color: #8a3326;
  }

  .mobile-upcoming-pickup--amber {
    background: #fff2cf;
    color: #61450f;
  }

  .mobile-upcoming-pickup:hover,
  .mobile-upcoming-pickup:focus-visible {
    filter: brightness(0.96);
    outline: 3px solid rgba(35, 115, 90, 0.14);
    outline-offset: 2px;
  }

  .mobile-empty-note {
    color: var(--muted);
    font-size: 0.95rem;
    font-weight: 750;
  }

  .summary-stack,
  .full-schedule-heading,
  .schedule-grid {
    display: none;
  }
}

@media (max-width: 480px) {
  .search-pane {
    padding: 18px;
  }

  .brand-row,
  .schedule-card__header {
    display: grid;
  }

  .brand-actions {
    justify-items: start;
  }

  .schedule-card__raw {
    justify-self: start;
  }

  .week-grid {
    grid-template-columns: 1fr;
  }
}
