:root {
  --ink: #151515;
  --cream: #fff9e8;
  --custard: #ffd76a;
  --mint: #9be7c4;
  --coral: #ff7f50;
  --card: #ffffff;
  --line: #ece5d8;
  --today: #fff2c9;
  --upcoming: #f7f8fa;
  --error: #a51717;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  color: var(--ink);
  font-family: "Manrope", sans-serif;
  background:
    radial-gradient(circle at 10% 15%, #ffe79f 0%, #ffe79f00 35%),
    radial-gradient(circle at 92% 12%, #ffc7ad 0%, #ffc7ad00 33%),
    linear-gradient(180deg, #fffdf7 0%, #fff6dd 100%);
  min-height: 100vh;
}

.bg-shape {
  position: fixed;
  pointer-events: none;
  z-index: 0;
}

.bg-shape-1 {
  width: 280px;
  height: 280px;
  left: -80px;
  top: 30vh;
  border-radius: 44% 56% 61% 39% / 35% 36% 64% 65%;
  background: #fff0be;
}

.bg-shape-2 {
  width: 220px;
  height: 220px;
  right: -60px;
  bottom: 8vh;
  border-radius: 58% 42% 55% 45% / 45% 63% 37% 55%;
  background: #ffd6b3;
}

.container {
  position: relative;
  z-index: 1;
  width: min(1120px, 92vw);
  margin: 0 auto;
  padding: 2.5rem 0 3rem;
}

.hero {
  margin-bottom: 1.5rem;
}

.eyebrow {
  margin: 0;
  font-family: "Archivo Black", sans-serif;
  font-size: 0.8rem;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: #8f6b00;
}

h1 {
  margin: 0.4rem 0 0;
  font-family: "Archivo Black", sans-serif;
  font-size: clamp(2rem, 4vw, 3.2rem);
  line-height: 1;
}

.subtitle,
.as-of {
  margin: 0.45rem 0 0;
  max-width: 62ch;
}

.as-of {
  font-size: 0.9rem;
  color: #4d4d4d;
}

.search-panel {
  margin-top: 1rem;
  padding: 0.9rem;
  border: 1px solid #e4d8bf;
  background: #fffaf0;
  border-radius: 14px;
}

.search-wrap input {
  width: min(100%, 680px);
  font: inherit;
  font-size: 16px;
  padding: 0.6rem 0.72rem;
  border: 1px solid #d4c8a9;
  border-radius: 10px;
  background: #fff;
}

.search-input-row {
  display: flex;
  gap: 0.45rem;
  align-items: center;
}

.search-clear {
  flex: 0 0 auto;
}

.search-summary {
  margin: 0.55rem 0 0;
  font-size: 0.88rem;
  color: #5b5245;
}

.search-results {
  margin-top: 0.7rem;
  display: grid;
  gap: 0.5rem;
}

.search-item {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr);
  gap: 0.5rem;
  align-items: start;
  padding: 0.6rem 0.65rem;
  border: 1px solid #e0d4b8;
  border-radius: 12px;
  background: #fff;
}

.search-item.no-image {
  grid-template-columns: minmax(0, 1fr);
}

.search-thumb {
  width: 52px;
  height: 52px;
  object-fit: cover;
  border-radius: 10px;
  border: 1px solid #ded8cb;
  background: #f6f1e2;
}

.search-title {
  font-weight: 800;
}

.search-head {
  margin-top: 0.22rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.search-chip {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 0.15rem 0.5rem;
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.01em;
}

.search-chip.restaurant {
  background: #1f1f1f;
  color: #fff;
}

.search-chip.date {
  background: #f1e4be;
  color: #3d2c00;
}

.search-meta {
  margin-top: 0.22rem;
  font-size: 0.85rem;
  color: #5b5245;
}

.grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 1rem;
}

.shop-card {
  grid-column: span 12;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 1rem;
  box-shadow: 0 10px 24px #9f8a4717;
  opacity: 0;
  transform: translateY(10px);
  animation: rise 400ms ease forwards;
}

.shop-card:nth-child(2) { animation-delay: 60ms; }
.shop-card:nth-child(3) { animation-delay: 120ms; }
.shop-card:nth-child(4) { animation-delay: 180ms; }
.shop-card:nth-child(5) { animation-delay: 240ms; }

@keyframes rise {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (min-width: 860px) {
  .shop-card:first-child {
    grid-column: span 12;
  }

  .shop-card {
    grid-column: span 6;
  }
}

.shop-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.8rem;
  margin-bottom: 0.7rem;
}

h2 {
  margin: 0;
  font-family: "Archivo Black", sans-serif;
  font-size: 1.2rem;
}

.picker-wrap {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  font-size: 0.8rem;
  font-weight: 700;
}

.location-picker {
  min-width: 0;
  width: min(100%, 620px);
  gap: 0.2rem;
  margin-bottom: 0.6rem;
}

.picker-hint {
  font-size: 0.78rem;
  font-weight: 600;
  color: #635744;
}

.select-wrap {
  position: relative;
}

.select-wrap::after {
  content: "▼";
  position: absolute;
  right: 0.8rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: 0.72rem;
  color: #242424;
  pointer-events: none;
}

select {
  min-width: 220px;
  width: 100%;
  font: inherit;
  padding: 0.62rem 2rem 0.62rem 0.72rem;
  border: 2px solid #c6b58e;
  border-radius: 10px;
  background: #fffdf7;
  appearance: none;
}

select:focus-visible {
  outline: none;
  border-color: #2c5fdd;
  box-shadow: 0 0 0 2px #2c5fdd26;
}

.zip-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  align-items: end;
  margin-bottom: 0.6rem;
}

.zip-wrap input {
  min-width: 140px;
  font: inherit;
  padding: 0.5rem 0.6rem;
  border: 1px solid #d4c8a9;
  border-radius: 10px;
  background: #fffdf7;
}

.zip-actions {
  display: flex;
  gap: 0.45rem;
}

button {
  border: 1px solid #1f1f1f;
  background: #1f1f1f;
  color: #fff;
  font: inherit;
  font-size: 0.85rem;
  font-weight: 700;
  border-radius: 10px;
  padding: 0.5rem 0.7rem;
  cursor: pointer;
}

button.ghost {
  background: #fff;
  color: #1f1f1f;
}

.zip-status {
  margin: 0 0 0.7rem;
  font-size: 0.85rem;
  color: #4d4d4d;
}

.shop-content {
  display: grid;
  gap: 0.55rem;
}

.day-row {
  border-radius: 14px;
  border: 1px solid var(--line);
  padding: 0.72rem 0.8rem;
  background: var(--upcoming);
}

.day-row.today {
  background: var(--today);
  border-color: #d6b151;
}

.row-top {
  display: flex;
  justify-content: space-between;
  gap: 0.5rem;
  align-items: baseline;
}

.date-label {
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.badge {
  font-size: 0.74rem;
  background: #111;
  color: #fff;
  border-radius: 999px;
  padding: 0.2rem 0.55rem;
  font-weight: 700;
}

.flavor-name {
  font-weight: 800;
}

.flavor-meta {
  margin-top: 0.2rem;
  color: #515151;
  font-size: 0.92rem;
}

.flavor-item {
  margin-top: 0.38rem;
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  gap: 0.55rem;
  align-items: start;
}

.flavor-item.no-image {
  grid-template-columns: minmax(0, 1fr);
}

.flavor-thumb {
  width: 64px;
  height: 64px;
  object-fit: cover;
  border-radius: 10px;
  border: 1px solid #ded8cb;
  background: #f6f1e2;
}

.flavor-text {
  min-width: 0;
  white-space: normal;
  overflow-wrap: anywhere;
}

.state {
  padding: 0.9rem;
  border: 1px dashed #d2c4a1;
  border-radius: 12px;
  background: #fffdf6;
}

.state.error {
  color: var(--error);
  border-color: #f0b7b7;
  background: #fff2f2;
}

@media (max-width: 860px) {
  .search-panel {
    position: sticky;
    top: 0.55rem;
    z-index: 3;
    box-shadow: 0 8px 20px #00000012;
  }

  .shop-header {
    align-items: start;
    flex-direction: column;
  }

  .location-picker {
    width: 100%;
  }

  .picker-hint {
    font-size: 0.82rem;
  }

  .search-wrap input {
    width: 100%;
  }

  .search-results {
    max-height: 48vh;
    overflow: auto;
    padding-right: 0.1rem;
  }

  .search-item {
    padding: 0.52rem 0.56rem;
  }
}
