/* Backyard Barista — warm, sunlit, backyard-y */
:root {
  --cream: #faf6ef;
  --paper: #fffdf8;
  --ink: #3b2f2a;
  --muted: #8a7a6d;
  --espresso: #4e342e;
  --caramel: #b5713f;
  --caramel-dark: #96562b;
  --leaf: #4e7a52;
  --leaf-bg: #e7f0e4;
  --closed-bg: #efe9e1;
  --line: #e8dfd2;
  --radius: 14px;
  --shadow: 0 2px 10px rgba(59, 47, 42, .07);
}
* { box-sizing: border-box; }
body {
  margin: 0; background: var(--cream); color: var(--ink);
  font: 16px/1.55 Georgia, 'Times New Roman', serif;
}
main { max-width: 1060px; margin: 0 auto; padding: 24px 20px 60px; }
a { color: var(--caramel-dark); }
h1, h2, h3 { line-height: 1.2; }
h1 { font-size: 1.9rem; }
h2 { margin-top: 2rem; font-size: 1.3rem; border-bottom: 2px solid var(--line); padding-bottom: .35rem; }
code { background: var(--closed-bg); padding: 1px 5px; border-radius: 5px; font-size: .85em; }
.muted { color: var(--muted); } .small { font-size: .85rem; }
.prewrap { white-space: pre-wrap; }
.inline { display: inline; }

/* header */
.site-head {
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 10px;
  padding: 14px 24px; background: var(--espresso); color: #f5ead9;
}
.brand { font-size: 1.25rem; text-decoration: none; color: #f5ead9; }
.brand b { color: #f0b26b; }
.site-head nav { display: flex; gap: 18px; align-items: center; }
.site-head nav a { color: #f5ead9; text-decoration: none; }
.site-head nav a:hover { color: #f0b26b; }
.linklike { background: none; border: 0; color: #f5ead9; font: inherit; cursor: pointer; padding: 0; }
.linklike:hover { color: #f0b26b; }

/* flash + nudge */
.flash { background: var(--leaf-bg); color: #2f4a32; padding: 10px 24px; text-align: center; }
.nudge {
  background: #fdf3d7; color: #6b4e0e; padding: 12px 24px; display: flex; gap: 12px;
  align-items: center; justify-content: center; flex-wrap: wrap;
}

/* buttons */
.btn {
  display: inline-block; background: var(--caramel); border: 0; color: #fff; cursor: pointer;
  font: inherit; padding: 9px 18px; border-radius: 999px; text-decoration: none;
}
.btn:hover { background: var(--caramel-dark); }
.btn-sm { padding: 5px 13px; font-size: .85rem; }
.btn-wide { width: 100%; padding: 12px; }
.btn-ghost { background: transparent; color: var(--caramel-dark); border: 1.5px solid var(--caramel); }
.btn-ghost:hover { background: #f7ecdf; }
.btn-open { background: var(--leaf); }
.btn-open:hover { background: #3d6141; }

/* hero + search */
.hero { text-align: center; padding: 26px 0 10px; }
.hero h1 { font-size: 2.3rem; margin-bottom: .3rem; }
.search { display: flex; gap: 10px; justify-content: center; align-items: center; flex-wrap: wrap; margin: 18px 0; }
.search input[type=search] {
  width: min(420px, 90vw); padding: 11px 16px; border: 1.5px solid var(--line);
  border-radius: 999px; font: inherit; background: var(--paper);
}
.chk { display: inline-flex; gap: 6px; align-items: center; cursor: pointer; }

/* cards grid */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 22px; margin-top: 20px; }
.card {
  background: var(--paper); border-radius: var(--radius); overflow: hidden; text-decoration: none;
  color: var(--ink); box-shadow: var(--shadow); border: 1px solid var(--line);
  transition: transform .12s ease;
}
.card:hover { transform: translateY(-3px); }
.card-img { aspect-ratio: 8/5; background: var(--closed-bg); }
.card-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.noimg { display: grid; place-items: center; height: 100%; font-size: 3rem; }
.card-body { padding: 14px 16px 16px; }
.card-body h3 { margin: .4rem 0 .2rem; }
.card-body p { margin: .2rem 0; }
.card-toprow { display: flex; justify-content: space-between; align-items: center; gap: 8px; }

/* badges & pills */
.badge { font-size: .78rem; padding: 3px 10px; border-radius: 999px; font-family: system-ui, sans-serif; }
.badge-open { background: var(--leaf-bg); color: var(--leaf); }
.badge-closed { background: var(--closed-bg); color: var(--muted); }
.rating { color: #c78a2a; font-size: .9rem; }
.pill { font-size: .78rem; padding: 3px 10px; border-radius: 999px; font-family: system-ui, sans-serif; background: var(--closed-bg); color: var(--muted); }
.pill-pending { background: #fdf3d7; color: #8a6410; }
.pill-accepted { background: var(--leaf-bg); color: var(--leaf); }
.pill-ready { background: #dcedf7; color: #2e6284; }
.pill-completed { background: var(--leaf-bg); color: var(--leaf); }
.pill-declined, .pill-cancelled { background: #f6e0dc; color: #9c4433; }

/* pitch row */
.pitch { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; margin-top: 44px; }
.pitch div { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 6px 20px 14px; }

/* listing page */
.listing-head { display: flex; justify-content: space-between; align-items: start; gap: 16px; flex-wrap: wrap; }
.gallery { display: grid; grid-template-columns: 2fr 1fr; gap: 10px; margin: 18px 0; }
.gallery.single { grid-template-columns: 1fr; }
.gallery img { width: 100%; height: 100%; max-height: 340px; object-fit: cover; border-radius: var(--radius); }
.cols { display: grid; grid-template-columns: 1.8fr 1fr; gap: 34px; }
@media (max-width: 760px) { .cols { grid-template-columns: 1fr; } }
.panel { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 4px 16px 14px; margin-bottom: 16px; }
.panel h3 { margin-bottom: .4rem; }
.tags { list-style: none; padding: 0; margin: .3rem 0; display: flex; flex-wrap: wrap; gap: 7px; }
.tags li { background: var(--closed-bg); border-radius: 999px; padding: 3px 12px; font-size: .82rem; font-family: system-ui, sans-serif; }
.hours { width: 100%; font-size: .9rem; } .hours td { padding: 2px 0; }
.hours td:last-child { text-align: right; color: var(--muted); }

/* menu + orders tables */
.menu { width: 100%; border-collapse: collapse; margin: .6rem 0; }
.menu td { padding: 8px 6px; border-bottom: 1px dashed var(--line); }
.menu .price { text-align: right; color: var(--muted); white-space: nowrap; }
.menu .qty { width: 72px; } .menu .qty input { width: 64px; padding: 5px; font: inherit; }
.menu .total td { font-weight: bold; border-bottom: 0; }
.order-extra { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; margin-top: 10px; }
.order-extra input[type=text] { flex: 1; min-width: 220px; padding: 9px 13px; border: 1.5px solid var(--line); border-radius: 999px; font: inherit; }
.orders { width: 100%; border-collapse: collapse; background: var(--paper); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.orders th { text-align: left; background: var(--closed-bg); padding: 9px 12px; font-family: system-ui, sans-serif; font-size: .8rem; }
.orders td { padding: 9px 12px; border-top: 1px solid var(--line); vertical-align: top; }

/* reviews */
.review { border-bottom: 1px dashed var(--line); padding: 10px 0; }
.review p { margin: .3rem 0 0; }
.note { background: #fdf3d7; border-radius: 10px; padding: 10px 14px; }

/* forms */
.authbox { max-width: 420px; margin: 30px auto; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 10px 28px 26px; box-shadow: var(--shadow); }
.editwrap { max-width: 720px; margin: 0 auto; }
fieldset { border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); margin: 18px 0; padding: 14px 18px 18px; }
legend { font-weight: bold; padding: 0 8px; }
label { display: block; margin: 12px 0 4px; }
input[type=text], input[type=email], input[type=password], input[type=url], input[type=number], input[type=search], textarea, select {
  width: 100%; padding: 9px 12px; border: 1.5px solid var(--line); border-radius: 9px;
  font: inherit; background: #fff; margin-top: 4px;
}
textarea { resize: vertical; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.checks { display: flex; flex-wrap: wrap; gap: 8px 18px; margin: 6px 0; }
.checks .chk { margin: 0; }
.checks input { width: auto; margin: 0; }
.chk input { width: auto; }
.hoursgrid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 4px 16px; }
.menurow { display: grid; grid-template-columns: 2fr 1fr; gap: 10px; margin-bottom: 8px; }
.thumbrow { display: flex; gap: 10px; flex-wrap: wrap; }
.thumb { position: relative; }
.thumb img { width: 110px; height: 78px; object-fit: cover; border-radius: 8px; }
.thumb-x { position: absolute; top: -7px; right: -7px; background: #9c4433; color: #fff; border: 0; border-radius: 50%; width: 22px; height: 22px; cursor: pointer; line-height: 1; }

/* host dashboard */
.rowhead { display: flex; justify-content: space-between; align-items: center; gap: 14px; flex-wrap: wrap; }
.hostcard { display: flex; justify-content: space-between; align-items: center; gap: 14px; flex-wrap: wrap; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 18px; margin: 12px 0; box-shadow: var(--shadow); }
.hostcard h3 { margin: .2rem 0; }
.hostcard-actions { display: flex; gap: 10px; align-items: center; }
.actions { display: flex; gap: 10px; margin: 16px 0; flex-wrap: wrap; }

.empty { background: var(--paper); border: 1px dashed var(--line); border-radius: var(--radius); padding: 22px; text-align: center; color: var(--muted); }
.site-foot { text-align: center; color: var(--muted); font-size: .85rem; padding: 22px; border-top: 1px solid var(--line); }
