/* ===== Marketplace de reservas — vitrine pública (mobile-first) ===== */
:root {
  --primary: #7c2d3a;
  --primary-dark: #5e1f2a;
  --accent: #c9a227;
  --bg: #faf7f2;
  --card: #ffffff;
  --text: #2d2a26;
  --muted: #8a8378;
  --border: #e8e2d8;
  --star: #e8a90c;
  --radius: 14px;
  --shadow: 0 2px 14px rgba(45, 42, 38, .09);
}
* { box-sizing: border-box; }
body { margin: 0; font-family: 'Segoe UI', system-ui, -apple-system, sans-serif; background: var(--bg); color: var(--text); line-height: 1.5; }
a { color: inherit; }
.container { max-width: 1120px; margin: 0 auto; padding: 0 18px; }
.muted { color: var(--muted); }
.hidden { display: none !important; }

/* Header */
.mkt-header { background: var(--card); border-bottom: 1px solid var(--border); position: sticky; top: 0; z-index: 20; }
.mkt-header-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 18px; max-width: 1120px; margin: 0 auto; }
.mkt-brand { display: flex; align-items: center; gap: 8px; font-size: 1.3rem; font-weight: 800; color: var(--primary); text-decoration: none; }
.mkt-brand span { font-size: 1.5rem; }
.mkt-brand-logo { height: 46px; width: auto; display: block; }
.mkt-nav a { text-decoration: none; color: var(--muted); font-size: .92rem; margin-left: 18px; }
.mkt-nav a:hover { color: var(--primary); }

/* Hero + busca */
.hero { background: linear-gradient(135deg, var(--primary), var(--primary-dark)); color: #fff; padding: 48px 0 56px; }
.hero h1 { font-size: 1.9rem; margin: 0 0 8px; }
.hero p { margin: 0 0 22px; opacity: .92; }
.search-bar { display: flex; gap: 8px; background: #fff; border-radius: 12px; padding: 8px; max-width: 620px; box-shadow: var(--shadow); }
.search-bar input { flex: 1; border: none; padding: 12px 14px; font-size: 1rem; border-radius: 8px; outline: none; color: var(--text); }
.search-bar button { background: var(--primary); color: #fff; border: none; padding: 0 22px; border-radius: 8px; font-size: 1rem; font-weight: 600; cursor: pointer; }
.search-bar button:hover { background: var(--primary-dark); }

/* Categorias */
.cats { display: flex; gap: 10px; overflow-x: auto; padding: 22px 0 6px; scrollbar-width: thin; }
.cat-chip { display: inline-flex; align-items: center; gap: 7px; white-space: nowrap; padding: 9px 16px; border-radius: 22px; border: 1px solid var(--border); background: #fff; text-decoration: none; color: var(--text); font-size: .9rem; font-weight: 600; }
.cat-chip:hover { border-color: var(--primary); }
.cat-chip.active { background: var(--primary); color: #fff; border-color: var(--primary); }
.cat-chip small { opacity: .7; font-weight: 400; }

/* Grid de restaurantes */
.section-title { font-size: 1.2rem; margin: 26px 0 4px; }
.section-sub { color: var(--muted); margin: 0 0 18px; font-size: .92rem; }
.rest-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 20px; padding-bottom: 44px; }
.rest-card { background: var(--card); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); text-decoration: none; color: var(--text); display: flex; flex-direction: column; transition: transform .12s, box-shadow .12s; }
.rest-card:hover { transform: translateY(-3px); box-shadow: 0 8px 24px rgba(45,42,38,.15); }
.rest-cover { height: 168px; background: linear-gradient(135deg, #d8ccbc, #b9a892); position: relative; display: flex; align-items: flex-end; }
.rest-cover img { width: 100%; height: 100%; object-fit: cover; }
/* Sem foto de capa: mostra a logo do restaurante centralizada, sem distorcer. */
.rest-cover--logo { background: #fff; align-items: center; justify-content: center; }
.rest-cover img.rest-cover-logo { width: auto; height: auto; max-width: 72%; max-height: 78%; object-fit: contain; }
.rest-cat-badge { position: absolute; top: 12px; left: 12px; background: rgba(255,255,255,.94); border-radius: 20px; padding: 4px 12px; font-size: .78rem; font-weight: 700; color: var(--primary); }
.rest-body { padding: 15px 16px 17px; flex: 1; display: flex; flex-direction: column; }
.rest-name { font-size: 1.12rem; font-weight: 700; margin: 0 0 4px; }
.rest-meta { color: var(--muted); font-size: .86rem; margin: 0 0 10px; }
.rest-foot { display: flex; align-items: center; justify-content: space-between; margin-top: auto; }
.rest-rating { color: var(--star); font-size: .9rem; font-weight: 700; }
.rest-rating span { color: var(--muted); font-weight: 400; margin-left: 3px; }
.rest-price { color: var(--muted); font-weight: 700; font-size: .92rem; }
.rest-cta { display: inline-block; margin-top: 12px; background: var(--primary); color: #fff; text-align: center; padding: 10px; border-radius: 9px; font-weight: 600; font-size: .92rem; }

.empty-state { text-align: center; padding: 50px 20px; color: var(--muted); }
.empty-state .big { font-size: 2.4rem; }

/* Cartão simples (lookup, notfound) */
.narrow-card { max-width: 480px; margin: 40px auto; background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 28px; }
.form-field { margin-bottom: 14px; }
.form-field label { display: block; font-size: .85rem; font-weight: 600; margin-bottom: 5px; }
.form-field input { width: 100%; padding: 11px 12px; border: 1px solid var(--border); border-radius: 10px; font-size: 1rem; }
.btn { display: inline-block; padding: 12px 22px; border-radius: 10px; font-weight: 600; cursor: pointer; border: none; text-decoration: none; text-align: center; font-size: 1rem; }
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-dark); }
.btn-block { width: 100%; }
.alert { padding: 12px 15px; border-radius: 10px; margin-bottom: 14px; font-size: .92rem; }
.alert-error { background: #f6d5d5; color: #8f1f1f; }

/* Footer */
.mkt-footer { background: #2d2a26; color: #cfc9bf; padding: 26px 0; font-size: .86rem; margin-top: 30px; }
.mkt-footer a { color: #e8dfd0; }

@media (min-width: 720px) {
  .hero h1 { font-size: 2.4rem; }
}
