* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: #f5f5f5;
  color: #333;
}

.header {
  background: #EE7524;
  color: white;
  padding: 16px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.header h1 {
  font-size: 24px;
  font-weight: 600;
}

.header-buttons {
  display: flex;
  gap: 8px;
}

.btn {
  padding: 10px 16px;
  border: none;
  border-radius: 4px;
  font-size: 14px;
  cursor: pointer;
  touch-action: manipulation;
  transition: background 0.2s;
}

.btn-primary {
  background: #EE7524;
  color: white;
}

.btn-primary:active {
  background: #d56a1f;
}

.btn-secondary {
  background: white;
  color: #EE7524;
  border: 1px solid #EE7524;
}

.btn-secondary:active {
  background: #f9f9f9;
}

.container {
  max-width: 1024px;
  margin: 20px auto;
  padding: 0 20px;
}

.form-group {
  margin-bottom: 16px;
}

label {
  display: block;
  margin-bottom: 8px;
  font-weight: 500;
  font-size: 14px;
}

select, input {
  width: 100%;
  padding: 12px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 16px;
  touch-action: manipulation;
}

select:focus, input:focus {
  outline: none;
  border-color: #EE7524;
  box-shadow: 0 0 0 3px rgba(238, 117, 36, 0.1);
}

.results-list {
  list-style: none;
}

.results-item {
  background: white;
  border: 1px solid #ddd;
  border-left: 4px solid #EE7524;
  padding: 12px;
  margin-bottom: 8px;
  cursor: pointer;
  border-radius: 2px;
  transition: background 0.2s;
  touch-action: manipulation;
}

.results-item:active {
  background: #f9f9f9;
}

.results-item-name {
  font-weight: 500;
  margin-bottom: 4px;
}

.results-item-meta {
  font-size: 13px;
  color: #666;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.breadcrumb {
  font-size: 13px;
  color: #999;
  margin-bottom: 16px;
}

.page {
  display: none;
}

.page.active {
  display: block;
}

.menu-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 320px));
  gap: 20px;
  margin-top: 40px;
  justify-content: center;
}

.menu-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  background: white;
  border: 2px solid #EE7524;
  border-radius: 8px;
  padding: 32px 24px;
  cursor: pointer;
  transition: all 0.15s;
  touch-action: manipulation;
  box-shadow: 0 2px 6px rgba(0,0,0,0.08);
}

.menu-card:active {
  background: #fff9f0;
  transform: scale(0.98);
}

.menu-card-icon {
  font-size: 48px;
  margin-bottom: 16px;
}

.menu-card-label {
  font-size: 22px;
  font-weight: 600;
  color: #EE7524;
  margin-bottom: 8px;
}

.menu-card-sub {
  font-size: 14px;
  color: #666;
}

/* ---- Search page (tight layout) ---- */
.search-page { max-width: 1024px; }

.site-banner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #fff9f0;
  border-left: 3px solid #EE7524;
  padding: 6px 12px;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 12px;
}
.site-change { padding: 4px 10px; font-size: 11px; }

.search-controls {
  display: flex;
  gap: 16px;
  align-items: flex-end;
  margin-bottom: 16px;
  flex-wrap: wrap;
}
.search-controls .form-group { margin-bottom: 0; }
.type-group { flex: 1 1 260px; }
.type-group select { padding: 8px; font-size: 14px; }

.alt-search {
  display: flex;
  gap: 8px;
  flex: 2 1 360px;
}
.alt-search .form-group { flex: 1; }
.alt-search label { font-size: 11px; margin-bottom: 3px; color: #888; }
.alt-search input { padding: 7px 8px; font-size: 13px; }

.results-header {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-bottom: 8px;
}
.results-header h3 { font-size: 16px; }
.results-count { font-size: 13px; color: #EE7524; font-weight: 600; }

.results-scroll {
  max-height: 60vh;
  overflow-y: auto;
  border: 1px solid #eee;
  border-radius: 4px;
  background: #fafafa;
  padding: 6px;
  -webkit-overflow-scrolling: touch;
}

.results-item { padding: 10px 12px; margin-bottom: 6px; }
.results-item-name { font-size: 15px; font-weight: 600; margin-bottom: 4px; }
.results-item-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 16px;
  font-size: 12px;
  color: #666;
}
.results-item-meta span { white-space: nowrap; }
.results-empty { text-align: center; color: #999; padding: 20px; list-style: none; }

/* ---- Search page (tight layout) ---- */
.search-page { max-width: 1024px; }

.site-banner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #fff9f0;
  border-left: 3px solid #EE7524;
  padding: 6px 12px;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 12px;
}
.site-change { padding: 4px 10px; font-size: 11px; }

.search-controls {
  display: flex;
  gap: 16px;
  align-items: flex-end;
  margin-bottom: 16px;
  flex-wrap: wrap;
}
.search-controls .form-group { margin-bottom: 0; }
.type-group { flex: 1 1 260px; }
.type-group select { padding: 8px; font-size: 14px; }

.alt-search {
  display: flex;
  gap: 8px;
  flex: 2 1 360px;
}
.alt-search .form-group { flex: 1; }
.alt-search label { font-size: 11px; margin-bottom: 3px; color: #888; }
.alt-search input { padding: 7px 8px; font-size: 13px; }

.results-header {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-bottom: 8px;
}
.results-header h3 { font-size: 16px; }
.results-count { font-size: 13px; color: #EE7524; font-weight: 600; }

.results-scroll {
  max-height: 60vh;
  overflow-y: auto;
  border: 1px solid #eee;
  border-radius: 4px;
  background: #fafafa;
  padding: 6px;
  -webkit-overflow-scrolling: touch;
}

.results-item { padding: 10px 12px; margin-bottom: 6px; }
.results-item-name { font-size: 15px; font-weight: 600; margin-bottom: 4px; }
.results-item-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 16px;
  font-size: 12px;
  color: #666;
}
.results-item-meta span { white-space: nowrap; }
.results-empty { text-align: center; color: #999; padding: 20px; list-style: none; }
