/* DishOpolis — mustard / charcoal / plate white */
:root {
  --mustard: #f2b705;
  --mustard-deep: #d9a300;
  --charcoal: #1f1d1a;
  --ink-soft: #57534c;
  --muted: #6b675f;
  --plate: #ffffff;
  --steel: #edeeea;
  --line: #d9dad4;
  --basil: #2f6b3a;
  --basil-bg: #e6f0e7;
  --chili: #b73a22;
  --chili-bg: #f8e5e1;
  --info-bg: #fdf3cf;
  --radius: 6px;
  --display: "Bricolage Grotesque", system-ui, sans-serif;
  --body: "Figtree", system-ui, -apple-system, "Segoe UI", sans-serif;
  --wrap: 1120px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.55;
  color: var(--charcoal);
  background: var(--plate);
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { text-decoration-color: var(--mustard-deep); }
:focus-visible { outline: 3px solid var(--mustard); outline-offset: 2px; }

h1, h2, h3 { font-family: var(--display); line-height: 1.08; margin: 0 0 .5em; font-weight: 700; letter-spacing: -0.015em; }
h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); }
h3 { font-size: 1.2rem; letter-spacing: 0; }
p { margin: 0 0 1em; max-width: 68ch; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 560px; }
.muted { color: var(--muted); }
.small { font-size: .9rem; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- header / footer ---------- */
.site-header { border-bottom: 1px solid var(--line); background: var(--plate); }
.site-header .wrap { display: flex; align-items: center; gap: 24px; min-height: 64px; flex-wrap: wrap; }
.logo { font-family: var(--display); font-weight: 800; font-size: 1.45rem; text-decoration: none; letter-spacing: -0.03em; display: inline-flex; align-items: center; gap: 8px; }
.logo-mark { width: 1.35em; height: 1.35em; flex: none; display: block; }
.soon .logo-mark { --logo-food: #fff; }   /* mustard background: white food so it shows */
.brand { display: flex; align-items: center; gap: 14px; min-width: 0; }
.brand-tagline { color: var(--ink-soft); font-size: .95rem; font-weight: 500; padding-left: 14px; border-left: 2px solid var(--mustard); line-height: 1.2; white-space: nowrap; }
@media (max-width: 560px) { .brand { gap: 10px; } .brand-tagline { font-size: .78rem; padding-left: 10px; } }
@media (max-width: 359px) { .brand-tagline { display: none; } }
.site-nav { margin-left: auto; display: flex; gap: 18px; align-items: center; flex-wrap: wrap; }
.site-nav a { text-decoration: none; font-weight: 500; }
.site-nav a:hover { text-decoration: underline; }
.site-nav form { margin: 0; }
@media (max-width: 560px) { .site-header .wrap { gap: 6px 16px; padding-top: 10px; padding-bottom: 10px; } .site-nav { margin-left: 0; gap: 14px; font-size: .95rem; } }
.site-footer { border-top: 1px solid var(--line); margin-top: 80px; padding: 28px 0 40px; color: var(--muted); font-size: .92rem; }
.site-footer .wrap { display: flex; gap: 20px; flex-wrap: wrap; }
.site-footer a { color: var(--muted); }
.site-footer .spacer { margin-left: auto; }

main { display: block; }
.page { padding-top: 48px; }   /* top only: keeps .wrap's side margins */

/* ---------- buttons & forms ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font: 600 1rem/1 var(--body); padding: 13px 20px; border-radius: var(--radius);
  border: 2px solid var(--charcoal); background: var(--charcoal); color: #fff;
  text-decoration: none; cursor: pointer; transition: background .15s, color .15s;
}
.btn:hover { background: #000; }
.btn-mustard { background: var(--mustard); border-color: var(--mustard); color: var(--charcoal); }
.btn-mustard:hover { background: var(--mustard-deep); border-color: var(--mustard-deep); }
.btn-ghost { background: transparent; color: var(--charcoal); }
.btn-ghost:hover { background: var(--steel); }
.btn-danger { background: var(--chili); border-color: var(--chili); }
.btn-danger:hover { background: #962d19; }
.btn-small { padding: 8px 12px; font-size: .9rem; }
.btn[disabled] { opacity: .55; cursor: not-allowed; }
.linklike { background: none; border: 0; padding: 0; font: inherit; color: inherit; text-decoration: underline; cursor: pointer; }

.form { display: grid; gap: 18px; }
.field label, .field .label { display: block; font-weight: 600; margin-bottom: 6px; }
.field .hint { font-size: .88rem; color: var(--muted); margin-top: 4px; }
.field .error { font-size: .9rem; color: var(--chili); margin-top: 4px; font-weight: 500; }
input[type=text], input[type=email], input[type=password], input[type=url], input[type=number], select, textarea {
  width: 100%; font: inherit; color: inherit; padding: 11px 12px; border: 1.5px solid #c9cac3;
  border-radius: var(--radius); background: #fff;
}
input:focus, select:focus, textarea:focus { border-color: var(--charcoal); outline: none; box-shadow: 0 0 0 3px rgba(242, 183, 5, .45); }
.has-error input, .has-error select, .has-error textarea { border-color: var(--chili); }
textarea { min-height: 110px; resize: vertical; }
.check { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; }
.check input { margin-top: 5px; width: 18px; height: 18px; accent-color: var(--charcoal); }
.row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 640px) { .row-2 { grid-template-columns: 1fr; } }

/* Honeypot: hidden from people, visible to bots */
.hp { position: absolute; left: -9999px; top: auto; width: 1px; height: 1px; overflow: hidden; }

/* ---------- flash messages ---------- */
.flashes { margin: 20px 0 0; display: grid; gap: 8px; }
.flash { padding: 12px 16px; border-radius: var(--radius); border-left: 5px solid; }
.flash-success { background: var(--basil-bg); border-color: var(--basil); }
.flash-error { background: var(--chili-bg); border-color: var(--chili); }
.flash-info { background: var(--info-bg); border-color: var(--mustard-deep); }

/* ---------- home ---------- */
.home-hero { padding: 56px 0 32px; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 48px; align-items: center; }
@media (max-width: 860px) { .hero-grid { grid-template-columns: 1fr; gap: 28px; } }
.hero-demo { position: relative; aspect-ratio: 1; width: 100%; max-width: 520px; justify-self: end; border-radius: var(--radius); overflow: hidden; background: var(--steel); border: 1px solid var(--line); }
@media (max-width: 860px) { .hero-demo { justify-self: stretch; max-width: none; aspect-ratio: 4 / 3; } }
.hero-demo-tiles { position: absolute; inset: 0; display: grid; grid-template-columns: repeat(6, 1fr); gap: 4px; padding: 4px; }
.hero-demo-tiles i { background: #e2e3dd; border-radius: 2px; }
.hero-demo-tiles i:nth-child(7n+3), .hero-demo-tiles i:nth-child(11n+5) { background: #f6dc85; }
.hero-demo-tiles i:nth-child(5n+1) { background: #d4d5ce; }
.hero-demo-label { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; font-family: var(--display); font-weight: 800; font-size: 1.5rem; line-height: 1.2; color: var(--charcoal); }
.hero-demo-label span { font-family: var(--body); font-weight: 500; font-size: 1rem; color: var(--muted); }
.home-hero h1 { font-size: clamp(2.6rem, 7.5vw, 5.6rem); max-width: 11ch; letter-spacing: -0.035em; }
.home-hero p { font-size: 1.2rem; color: var(--ink-soft); max-width: 46ch; }
.city-list { list-style: none; margin: 24px 0 0; padding: 0; border-top: 2px solid var(--charcoal); }
.city-list li { border-bottom: 1px solid var(--line); }
.city-link { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 16px; padding: 18px 0; text-decoration: none; position: relative; }
.city-name { font-family: var(--display); font-weight: 700; font-size: clamp(1.8rem, 4.6vw, 3.2rem); line-height: 1; letter-spacing: -0.03em; }
.city-meta { text-align: right; color: var(--muted); font-size: .95rem; white-space: nowrap; }
.city-strip { grid-column: 1 / -1; height: 0; overflow: hidden; border-radius: 3px; background: var(--steel) center top / cover no-repeat; transition: height .25s ease; }
.city-link:hover .city-strip, .city-link:focus-visible .city-strip { height: 120px; }
.city-link:hover .city-name { text-decoration: underline; text-decoration-color: var(--mustard); text-decoration-thickness: 6px; text-underline-offset: 6px; }
.country-label { margin: 40px 0 0; font-family: var(--display); font-size: 1.1rem; color: var(--muted); font-weight: 600; }
@media (prefers-reduced-motion: reduce) { .city-strip { transition: none; } }

.band { background: var(--charcoal); color: #fff; margin-top: 72px; padding: 56px 0; }
.band h2 { color: #fff; }
.band p { color: #d8d5cf; }
.band .wrap { display: grid; grid-template-columns: 1.3fr 1fr; gap: 40px; align-items: center; }
@media (max-width: 760px) { .band .wrap { grid-template-columns: 1fr; } }

/* ---------- content pages ---------- */
.steps { list-style: none; counter-reset: step; padding: 0; margin: 32px 0; display: grid; gap: 22px; max-width: 640px; }
.steps li { counter-increment: step; display: grid; grid-template-columns: 44px 1fr; gap: 14px; }
.steps li::before { content: counter(step); width: 44px; height: 44px; border-radius: 50%; background: var(--mustard); font: 700 1.2rem/44px var(--display); text-align: center; }
.steps h3 { margin: 6px 0 4px; }
.price-box { border: 2px solid var(--charcoal); border-radius: var(--radius); padding: 24px; max-width: 520px; margin: 28px 0; }
.price-box .big { font-family: var(--display); font-size: 2.6rem; font-weight: 800; line-height: 1; }
.prose h2 { margin-top: 1.6em; font-size: 1.4rem; }
.prose li { margin-bottom: .4em; max-width: 68ch; }

/* ---------- auth pages ---------- */
.auth-card { max-width: 520px; margin: 0 auto; }
.auth-card h1 { font-size: 2.3rem; }

/* ---------- dashboard ---------- */
.dash-head { display: flex; gap: 20px; align-items: flex-end; justify-content: space-between; flex-wrap: wrap; margin-bottom: 8px; }
.dash-head h1 { font-size: 2.4rem; margin: 0; }
.notice { background: var(--info-bg); border-radius: var(--radius); padding: 16px 18px; margin: 20px 0; display: flex; gap: 14px; align-items: center; flex-wrap: wrap; }
.notice p { margin: 0; }
.spot-summary { display: flex; gap: 28px; flex-wrap: wrap; margin: 22px 0; padding: 16px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.spot-summary b { font-family: var(--display); font-size: 1.6rem; display: block; line-height: 1.1; }
.spot-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 22px; margin-top: 24px; }
.spot { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; background: #fff; }
.spot-img { aspect-ratio: 1; background: var(--steel); display: grid; place-items: center; position: relative; }
.spot-img img { width: 100%; height: 100%; object-fit: cover; }
.spot-img .empty { color: var(--muted); font-weight: 600; text-align: center; padding: 20px; }
.spot-body { padding: 14px; display: grid; gap: 8px; flex: 1; align-content: start; }
.spot-body h3 { margin: 0; font-size: 1.05rem; }
.status { display: inline-block; font-size: .8rem; font-weight: 700; padding: 3px 9px; border-radius: 99px; justify-self: start; }
.status-live { background: var(--basil-bg); color: var(--basil); }
.status-pending { background: var(--info-bg); color: #6d5300; }
.status-rejected { background: var(--chili-bg); color: var(--chili); }
.status-empty { background: var(--steel); color: var(--muted); }
.spot-actions { padding: 0 14px 14px; display: flex; gap: 8px; flex-wrap: wrap; }
.spot-actions form { margin: 0; }
.reason { font-size: .9rem; background: var(--chili-bg); padding: 8px 10px; border-radius: 4px; }
.dupe-warning { margin-top: 8px; padding: 7px 10px; border-radius: 4px; background: var(--chili-bg); border-left: 4px solid var(--chili); font-size: .9rem; max-width: 340px; }
.link-box { margin-top: 8px; display: grid; gap: 6px; justify-items: start; max-width: 340px; }
.link-url { color: var(--muted); word-break: break-all; }
.link-check { font-size: .9rem; padding: 7px 10px; border-radius: 4px; border-left: 4px solid; width: 100%; box-sizing: border-box; }
.link-check em { font-style: normal; }
.link-ok { background: var(--basil-bg); border-color: var(--basil); }
.link-blocked { background: var(--info-bg); border-color: var(--mustard); }
.link-broken { background: var(--chili-bg); border-color: var(--chili); }
.link-error { background: var(--steel); border-color: var(--muted); }
.link-recheck { margin: 4px 0 0; }
.pending-thumb { position: absolute; right: 8px; bottom: 8px; width: 64px; height: 64px; border: 3px solid var(--mustard); border-radius: 4px; overflow: hidden; background: #fff; }

/* ---------- spot editor ---------- */
.editor { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 36px; align-items: start; margin-top: 24px; }
@media (max-width: 860px) { .editor { grid-template-columns: 1fr; } }
.cropper-area { background: var(--steel); border-radius: var(--radius); min-height: 320px; display: grid; place-items: center; overflow: hidden; }
.cropper-area img { max-width: 100%; max-height: 480px; }
.dropzone { border: 2px dashed #b9bab3; border-radius: var(--radius); padding: 36px 20px; text-align: center; cursor: pointer; width: 100%; background: transparent; font: inherit; color: inherit; }
.dropzone:hover, .dropzone.drag { border-color: var(--charcoal); background: #fff; }
.preview-row { display: flex; gap: 16px; align-items: center; margin-top: 16px; }
.tile-preview { width: 100px; height: 100px; border-radius: 3px; overflow: hidden; background: var(--steel); flex: none; }
.tile-preview img, .tile-preview canvas { width: 100%; height: 100%; display: block; }
#change-photo-wrap { margin-top: 10px; }
.counter { font-size: .82rem; color: var(--muted); text-align: right; margin-top: 2px; }

/* ---------- city collage page ---------- */
body.city-page { overflow: hidden; }
.city-shell { position: fixed; inset: 0; display: grid; grid-template-rows: auto 1fr; }
.city-bar { display: flex; gap: 16px; align-items: center; padding: 10px 16px; border-bottom: 1px solid var(--line); background: #fff; z-index: 2; flex-wrap: wrap; }
.city-bar h1 { font-size: 1.5rem; margin: 0; letter-spacing: -0.02em; }
.city-bar .count { color: var(--muted); font-size: .95rem; }
.city-bar .spacer { margin-left: auto; }
.city-bar select { width: auto; padding: 7px 10px; }
@media (max-width: 560px) {
  .city-bar { flex-wrap: nowrap; gap: 10px; padding: 8px 12px; }
  .city-bar h1 { font-size: 1.2rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .city-bar .count { font-size: .82rem; white-space: nowrap; }
  .city-bar .btn { padding: 7px 10px; font-size: .82rem; white-space: nowrap; }
}
#viewer { position: relative; background: #e6e7e2; }
.viewer-empty { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; padding: 20px; }
.zoom-controls { position: absolute; right: 14px; bottom: 18px; display: grid; gap: 6px; z-index: 3; }
.zoom-controls button { width: 44px; height: 44px; border-radius: 50%; border: 0; background: #fff; box-shadow: 0 1px 4px rgba(0,0,0,.25); font: 700 1.3rem/1 var(--body); cursor: pointer; color: var(--charcoal); }
.zoom-controls button:hover { background: var(--mustard); }
.dish-tip {
  position: absolute; z-index: 5; pointer-events: none; max-width: 300px; min-width: 200px;
  background: var(--charcoal); color: #fff; border-radius: var(--radius); padding: 12px 14px 12px;
  box-shadow: 0 6px 24px rgba(0,0,0,.28); font-size: .92rem; line-height: 1.4;
  border-top: 4px solid var(--mustard);
}
.dish-tip[hidden] { display: none; }
.dish-tip .tip-restaurant { font-family: var(--display); font-weight: 700; font-size: 1.1rem; }
.dish-tip .tip-dish { font-weight: 600; color: var(--mustard); margin-top: 2px; }
.dish-tip .tip-desc { color: #e4e1db; margin-top: 4px; }
.dish-tip .tip-meta { color: #b9b5ad; font-size: .82rem; margin-top: 6px; }
.dish-tip .tip-cta { margin-top: 8px; font-size: .82rem; color: #fff; text-decoration: underline; }
.dish-tip.touch { pointer-events: auto; }
.cell-found { outline: 4px solid var(--chili); outline-offset: -4px; box-shadow: 0 0 0 4px rgba(255,255,255,.85); pointer-events: none; animation: cell-found-pulse 1.4s ease-in-out 3; }
@keyframes cell-found-pulse { 50% { outline-color: var(--mustard); } }
@media (prefers-reduced-motion: reduce) { .cell-found { animation: none; } }
.click-bar { display: inline-block; height: 10px; min-width: 2px; background: var(--mustard); border-radius: 2px; vertical-align: middle; margin-right: 6px; max-width: 70%; }
.spot-place { margin: 0; font-size: .88rem; color: var(--ink-soft, inherit); }
.cell-highlight { outline: 3px solid var(--mustard); outline-offset: -3px; pointer-events: none; }
.hint-bubble { position: absolute; left: 50%; bottom: 22px; transform: translateX(-50%); background: rgba(31,29,26,.88); color: #fff; padding: 8px 14px; border-radius: 99px; font-size: .9rem; z-index: 3; pointer-events: none; transition: opacity .6s; white-space: nowrap; }

/* ---------- admin ---------- */
.admin-body { background: #f6f6f4; }
.admin-nav { background: var(--charcoal); color: #fff; }
.admin-nav .wrap { display: flex; gap: 20px; align-items: center; min-height: 56px; flex-wrap: wrap; }
.admin-nav a { color: #fff; text-decoration: none; font-weight: 500; }
.admin-nav a.on { color: var(--mustard); }
.admin-nav .logo { color: #fff; font-size: 1.2rem; }
.admin-nav form { margin: 0 0 0 auto; }
.admin-nav .linklike { color: #ddd; }
.admin-page { padding: 28px 0 60px; }
.admin-page .wrap, .admin-nav .wrap { max-width: 1280px; }
.table { width: 100%; border-collapse: collapse; background: #fff; font-size: .94rem; }
.table th, .table td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.table th { background: var(--steel); font-weight: 600; }
.table form { display: inline; }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); }
.queue { display: grid; gap: 16px; }
.queue-item { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; display: grid; grid-template-columns: 200px minmax(0, 1fr) 280px; gap: 20px; }
@media (max-width: 980px) { .queue-item { grid-template-columns: 1fr; } }
.queue-item img { width: 200px; height: 200px; border-radius: 3px; }
.queue-item dl { margin: 0; display: grid; grid-template-columns: max-content 1fr; gap: 4px 14px; font-size: .94rem; }
.queue-item dt { color: var(--muted); }
.queue-item dd { margin: 0; overflow-wrap: anywhere; }
.queue-actions { display: grid; gap: 10px; align-content: start; }
.queue-actions textarea { min-height: 70px; font-size: .92rem; }
.compare { font-size: .88rem; background: var(--steel); padding: 8px 10px; border-radius: 4px; margin-top: 10px; }
.filter-bar { display: flex; gap: 10px; align-items: center; margin: 12px 0 20px; flex-wrap: wrap; }
.filter-bar select, .filter-bar input { width: auto; }
.stat-row { display: flex; gap: 28px; flex-wrap: wrap; margin: 10px 0 22px; }
.stat-row b { display: block; font-family: var(--display); font-size: 1.7rem; }
.inline-form { display: flex; gap: 10px; flex-wrap: wrap; align-items: end; background: #fff; padding: 16px; border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: 22px; }
.inline-form .field { margin: 0; }

/* ---------- coming soon & errors ---------- */
.soon { min-height: 100vh; display: grid; place-items: center; padding: 24px; background: var(--mustard); }
.soon-inner { max-width: 640px; }
.soon h1 { font-size: clamp(2.8rem, 9vw, 6rem); letter-spacing: -0.04em; }
.soon p { font-size: 1.2rem; }
.error-page { text-align: left; padding: 80px 0; }
