@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;700&family=Fraunces:opsz,wght@9..144,600&display=swap');

:root {
  --ink: #2b2420;
  --muted: #8a8078;
  --cream: #fbf1e6;
  --paper: #fffdfa;
  --orange: #e8601f;
  --orange-dark: #c94a13;
  --orange-soft: #ffe4cf;
  --line: #ecdfd0;
  --shadow: 0 10px 24px -12px rgba(200, 90, 30, 0.28);
}

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

body {
  background: var(--cream);
  color: var(--ink);
  font-family: 'DM Sans', sans-serif;
  padding-bottom: 32px;
}

.hero {
  background: linear-gradient(155deg, var(--orange) 0%, var(--orange-dark) 100%);
  color: #fff8f0;
  padding: 44px 20px 32px;
  position: relative;
  overflow: hidden;
  border-radius: 0 0 28px 28px;
  box-shadow: var(--shadow);
}

.admin-link-top {
  position: absolute;
  top: 16px;
  right: 20px;
  z-index: 2;
  color: #fff8f0;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 999px;
  padding: 6px 14px;
  font-size: .72rem;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
  transition: background .2s ease;
}

.admin-link-top:hover { background: rgba(255, 255, 255, 0.28); }

.hero::after {
  content: '○';
  color: #ffe8d3;
  font-family: Georgia, serif;
  font-size: 220px;
  line-height: 0;
  position: absolute;
  right: -34px;
  top: 118px;
  transform: rotate(-20deg);
  opacity: .18;
}

.hero-inner, .hero-copy, .container, .footer {
  max-width: 760px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.hero-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  text-align: center;
}

.brand-logo {
  width: 260px;
  max-width: 100%;
  height: auto;
  background: #fff;
  border-radius: 14px;
  padding: 8px 14px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.12);
}

.eyebrow {
  color: var(--orange);
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.hero .eyebrow { color: #ffe8d3; }

h1, h2 {
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 600;
}

h1 {
  font-size: 2.5rem;
  line-height: 1;
  margin: 5px 0 7px;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
}

.tagline { color: #ffe8d3; font-size: .86rem; }

.hero-copy {
  margin-top: 34px;
  font-size: .95rem;
  max-width: 410px;
  color: #fff3e8;
}

.container { padding: 26px 20px 10px; }

.toolbar { margin-bottom: 30px; }

.search-field {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 0 15px;
  box-shadow: 0 3px 10px -6px rgba(43, 36, 32, 0.18);
  transition: border-color .2s ease, box-shadow .2s ease;
}

.search-field:focus-within {
  border-color: var(--orange);
  box-shadow: 0 0 0 3px var(--orange-soft);
}

.search-field span { color: var(--orange); font-size: 1.65rem; line-height: 1; }

.search-field input {
  border: 0;
  outline: 0;
  background: transparent;
  width: 100%;
  padding: 15px 0;
  font: inherit;
  color: var(--ink);
}

.region-filters {
  display: flex;
  gap: 8px;
  margin-top: 12px;
  overflow-x: auto;
  scrollbar-width: none;
}

.filter-button {
  background: var(--paper);
  border: 1px solid var(--line);
  color: var(--muted);
  cursor: pointer;
  font: 700 .73rem 'DM Sans', sans-serif;
  padding: 9px 15px;
  border-radius: 999px;
  white-space: nowrap;
  transition: all .2s ease;
}

.filter-button.active, .filter-button:hover {
  background: var(--orange);
  border-color: var(--orange);
  color: white;
  box-shadow: 0 6px 14px -6px rgba(232, 96, 31, 0.55);
}

.list-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  border-bottom: 2px solid var(--orange-soft);
  padding-bottom: 12px;
  margin-bottom: 7px;
}

.list-heading h2 { font-size: 1.85rem; margin-top: 4px; }

.result-count {
  color: var(--orange-dark);
  background: var(--orange-soft);
  font-size: .72rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 999px;
}

.city-group { margin-top: 20px; }

.city-heading {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}

.city-heading h3 {
  font-size: .88rem;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--orange-dark);
}

.city-heading span {
  background: var(--orange-soft);
  color: var(--orange-dark);
  font-size: .68rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 999px;
}

.store-list {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 6px 18px -12px rgba(43, 36, 32, 0.25);
}

.store-row {
  align-items: center;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding: 13px 15px;
  text-decoration: none;
  transition: background .15s ease, padding-left .15s ease;
}

.store-row:last-child { border-bottom: 0; }

.store-row:hover {
  background: var(--orange-soft);
  padding-left: 19px;
}

.store-info { display: grid; gap: 3px; min-width: 0; }
.store-info strong { font-size: .85rem; font-weight: 700; }

.store-info small {
  color: var(--muted);
  font-size: .72rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.map-arrow {
  color: var(--orange);
  font-size: 1.15rem;
  transition: transform .15s ease;
}

.store-row:hover .map-arrow { transform: translate(2px, -2px); }

.no-results { color: var(--muted); padding: 30px 0; text-align: center; }

.footer {
  color: var(--muted);
  display: flex;
  justify-content: center;
  font-size: .7rem;
  gap: 15px;
  padding: 28px 20px 0;
}

.page-view { max-width: 560px; }

.page-form {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 22px;
  box-shadow: 0 6px 18px -12px rgba(43, 36, 32, 0.25);
  margin-bottom: 20px;
}

.admin-form { display: grid; gap: 13px; }

.form-actions { display: flex; align-items: center; gap: 14px; }

.save-hint {
  background: var(--orange-soft);
  color: var(--orange-dark);
  font-size: .75rem;
  padding: 10px 14px;
  border-radius: 10px;
  margin-bottom: 16px;
}

.save-hint code {
  background: rgba(255, 255, 255, 0.6);
  padding: 1px 5px;
  border-radius: 4px;
}

.admin-list-header {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 8px;
}

.admin-form label {
  display: grid;
  font-size: .75rem;
  font-weight: 700;
  gap: 5px;
}

.admin-form input,
.admin-form select {
  border: 1px solid var(--line);
  border-radius: 10px;
  font: inherit;
  padding: 11px;
  background: var(--paper);
  color: var(--ink);
}

.admin-form input:focus,
.admin-form select:focus {
  outline: none;
  border-color: var(--orange);
  box-shadow: 0 0 0 3px var(--orange-soft);
}

.primary-button {
  background: var(--orange);
  border: 0;
  border-radius: 10px;
  color: white;
  cursor: pointer;
  font: 700 .8rem 'DM Sans', sans-serif;
  padding: 12px;
  box-shadow: 0 8px 16px -8px rgba(232, 96, 31, 0.6);
  transition: transform .15s ease;
}

.primary-button:hover { transform: translateY(-1px); }

.text-button {
  background: none;
  border: 0;
  color: var(--muted);
  cursor: pointer;
  font: inherit;
  font-size: .75rem;
  text-align: left;
}

.form-message { color: var(--orange-dark); font-size: .75rem; min-height: 17px; }

.admin-list {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 6px 18px -12px rgba(43, 36, 32, 0.25);
}

.admin-row {
  align-items: center;
  border-bottom: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding: 13px 15px;
}

.admin-row:last-child { border-bottom: 0; }

.admin-row-actions { display: flex; gap: 12px; flex-shrink: 0; }

.text-button.danger { color: var(--orange-dark); }

@media (min-width: 700px) {
  .hero { padding-top: 58px; }
  .hero-copy { margin-top: 48px; }
  .container { padding-top: 34px; }
}
