/* Trang chi nhánh mẫu — mang màu của thương hiệu khách (Mekong Brew), không phải màu HyperLocal */
:root {
  --bg: #F7F3EF;
  --card: #FFFFFF;
  --ink: #2A1A12;
  --ink-2: #6B5A50;
  --line: #E6DCD3;
  --brand: #5B3422;
  --brand-ink: #FFFFFF;
  --accent: #C8743A;
  --accent-soft: #F5E4D6;
  --open: #2F7D4F;
  --closed: #B4442F;
  --star: #E9A800;
  --land: #EEE7DF; --block: #E2D8CD; --road: #FFFFFF;
  --font: "Be Vietnam Pro", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #17110D; --card: #211913; --ink: #F1E8E1; --ink-2: #BBA99C; --line: #3A2D24;
    --brand: #D9A27A; --brand-ink: #1E130D; --accent: #E59A63; --accent-soft: #3A2618;
    --open: #6CC48F; --closed: #F08A73; --star: #F5C33B;
    --land: #241B15; --block: #2E231B; --road: #3B2E25;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #17110D; --card: #211913; --ink: #F1E8E1; --ink-2: #BBA99C; --line: #3A2D24;
  --brand: #D9A27A; --brand-ink: #1E130D; --accent: #E59A63; --accent-soft: #3A2618;
  --open: #6CC48F; --closed: #F08A73; --star: #F5C33B;
  --land: #241B15; --block: #2E231B; --road: #3B2E25;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: var(--font); font-size: 1rem; line-height: 1.6;
  padding-bottom: calc(76px + env(safe-area-inset-bottom));
  overflow-x: hidden;
}
h1, h2, p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
a { color: var(--brand); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
svg { display: block; }

.demo-bar {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 16px;
  padding: 10px 16px; font-size: .85rem; line-height: 1.45;
  background: #10231F; color: #E4ECE8;
}
.demo-bar a { color: #8FE0C8; font-weight: 500; white-space: nowrap; }

.cover { height: 150px; overflow: hidden; }
.cover-art { width: 100%; height: 100%; }
.c-bg { fill: var(--brand); }
.c-sun { fill: var(--accent); opacity: .35; }
.c-cup { fill: var(--bg); }
.c-handle, .c-steam, .c-saucer { fill: none; stroke: var(--bg); stroke-width: 7; stroke-linecap: round; }
.c-steam { stroke-width: 4; opacity: .7; }

.page { max-width: 680px; margin: 0 auto; padding: 0 16px; }

.intro { position: relative; margin-top: -36px; background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 48px 18px 18px; }
.logo {
  position: absolute; top: -30px; left: 18px; width: 64px; height: 64px; border-radius: 16px;
  display: grid; place-items: center; background: var(--accent); color: #fff;
  font-weight: 700; font-size: 1.3rem; border: 4px solid var(--card);
}
.category { font-size: .9rem; color: var(--ink-2); }
.intro h1 { font-size: clamp(1.6rem, 5vw + .6rem, 2.2rem); line-height: 1.2; letter-spacing: -0.02em; margin-top: 2px; }
.rating { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 8px; }
.rating-num { font-weight: 700; }
.rating a { color: var(--ink-2); }
.stars { color: var(--star); letter-spacing: 1px; white-space: nowrap; }
.stars .half { opacity: .45; }
.stars .off { color: var(--line); }
.open-status { display: flex; align-items: center; gap: 8px; margin-top: 8px; font-weight: 500; }
.open-status .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--ink-2); }
.open-status.is-open { color: var(--open); }
.open-status.is-open .dot { background: var(--open); box-shadow: 0 0 0 4px color-mix(in srgb, var(--open) 20%, transparent); }
.open-status.is-closed { color: var(--closed); }
.open-status.is-closed .dot { background: var(--closed); }
.address { margin-top: 4px; color: var(--ink-2); }

.actions { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-top: 12px; }
.action {
  display: grid; justify-items: center; gap: 4px; padding: 12px 4px; min-height: 64px;
  background: var(--card); border: 1px solid var(--line); border-radius: 14px;
  color: var(--ink); text-decoration: none; font-size: .85rem; font-weight: 500;
}
.action svg { width: 22px; height: 22px; fill: var(--brand); }
.action-main { background: var(--brand); border-color: var(--brand); color: var(--brand-ink); }
.action-main svg { fill: var(--brand-ink); }

.block { margin-top: 28px; }
.block h2 { font-size: 1.2rem; letter-spacing: -0.01em; margin-bottom: 12px; }
.note, .muted, .source { font-size: .88rem; color: var(--ink-2); }
.note { margin-top: 10px; }

.promo { background: var(--accent-soft); border-radius: 14px; padding: 16px 18px; }
.promo h2 { margin-bottom: 4px; }

.hours { width: 100%; border-collapse: collapse; background: var(--card); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.hours th, .hours td { padding: 10px 16px; text-align: left; font-weight: 400; border-bottom: 1px solid var(--line); }
.hours tr:last-child th, .hours tr:last-child td { border-bottom: 0; }
.hours td { text-align: right; font-variant-numeric: tabular-nums; }
.hours tr.is-today th, .hours tr.is-today td { font-weight: 700; background: var(--accent-soft); }

.menu { background: var(--card); border: 1px solid var(--line); border-radius: 14px; }
.menu li { display: flex; justify-content: space-between; gap: 16px; padding: 12px 16px; border-bottom: 1px solid var(--line); }
.menu li:last-child { border-bottom: 0; }
.menu li span:last-child { color: var(--ink-2); font-variant-numeric: tabular-nums; white-space: nowrap; }

.summary { display: grid; grid-template-columns: auto 1fr; gap: 20px; align-items: center; margin-bottom: 16px; }
.summary-score { text-align: center; }
.big { font-size: 2.4rem; font-weight: 700; line-height: 1; }
.dist { display: grid; gap: 4px; font-size: .8rem; color: var(--ink-2); }
.dist div { display: grid; grid-template-columns: 12px 1fr; gap: 8px; align-items: center; }
.dist i { display: block; height: 8px; border-radius: 4px; background: linear-gradient(90deg, var(--star) var(--v), var(--line) var(--v)); }

.reviews { display: grid; gap: 12px; }
.review { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; }
.r-head { display: grid; grid-template-columns: auto 1fr auto; gap: 10px; align-items: center; margin-bottom: 6px; }
.r-head strong { display: block; line-height: 1.3; }
.r-head .stars { font-size: .85rem; }
.avatar { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: var(--accent-soft); color: var(--brand); font-size: .8rem; font-weight: 700; }
.r-time { font-size: .8rem; color: var(--ink-2); }
.reply { margin-top: 10px; padding: 10px 12px; border-left: 3px solid var(--accent); background: var(--bg); border-radius: 0 10px 10px 0; font-size: .93rem; }
.reply-who { font-size: .8rem; font-weight: 700; color: var(--brand); margin-bottom: 2px; }
.source { margin-top: 12px; }
.btn-review {
  display: flex; align-items: center; justify-content: center; margin-top: 14px; min-height: 50px;
  border: 1.5px solid var(--brand); border-radius: 999px; color: var(--brand);
  font-weight: 700; text-decoration: none;
}

.mini-map { width: 100%; height: auto; border-radius: 14px; border: 1px solid var(--line); }
.mm-land { fill: var(--land); }
.mm-block { fill: var(--block); }
.mm-road { fill: none; stroke: var(--road); stroke-width: 8; }
.mm-main { stroke-width: 14; }
.mm-label { font: 500 10px var(--font); fill: var(--ink-2); }
.mm-pin { fill: var(--brand); stroke: #fff; stroke-width: 2; }

.qr { background: var(--card); border: 1px dashed var(--accent); border-radius: 14px; padding: 16px 18px; }
.qr h2 { margin-bottom: 4px; }

.branches { display: grid; gap: 8px; }
.branches a {
  display: flex; justify-content: space-between; align-items: center; gap: 12px; min-height: 52px; padding: 10px 16px;
  background: var(--card); border: 1px solid var(--line); border-radius: 12px; color: var(--ink); text-decoration: none;
}
.branches span { color: var(--ink-2); font-size: .88rem; text-align: right; }

.foot { max-width: 680px; margin: 40px auto 0; padding: 24px 16px 32px; border-top: 1px solid var(--line); color: var(--ink-2); font-size: .9rem; display: grid; gap: 10px; }
.foot-cta { font-weight: 700; }

.dock {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 20;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px;
  padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
  background: color-mix(in srgb, var(--bg) 92%, transparent);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  border-top: 1px solid var(--line);
}
.dock a {
  display: grid; place-items: center; min-height: 48px; border-radius: 999px;
  border: 1.5px solid var(--line); color: var(--ink); font-weight: 700; text-decoration: none;
}
.dock a:first-child { background: var(--brand); border-color: var(--brand); color: var(--brand-ink); }

.toast {
  position: fixed; left: 16px; right: 16px; bottom: calc(84px + env(safe-area-inset-bottom)); z-index: 30;
  max-width: 480px; margin: 0 auto; padding: 12px 16px; border-radius: 12px;
  background: #10231F; color: #E4ECE8; font-size: .92rem; line-height: 1.45;
  box-shadow: 0 10px 30px -10px rgba(0,0,0,.4);
}

@media (min-width: 720px) {
  .cover { height: 220px; }
  .intro { padding: 52px 28px 24px; }
  .logo { left: 28px; }
  .dock { display: none; }
  body { padding-bottom: 0; }
  .toast { bottom: 24px; }
}
