/* RestaurantDeals: house style shared with DealUncovered and Ranjitha's Kitchen:
   warm off-white, premium red, Playfair headline with an italic red word, deep red bands, gold. */
:root {
  --bg: #FDFBF7;
  --surface: #FFFFFF;
  --ink: #1C1917;
  --ink-2: #44403C;
  --muted: #78716C;
  --faint: #A8A29E;
  --line: #E7E5E4;
  --line-soft: #F2EFEA;
  --red: #B91C1C;
  --red-deep: #991B1B;
  --red-ink: #7F1D1D;
  --red-50: #FEF2F2;
  --red-100: #FEE2E2;
  --band: #3F0A0A;
  --band-2: #6B1414;
  --gold: #D4B062;
  --gold-deep: #8A6420;
  --gold-50: #FBF5E6;
  --sage: #3F7A4E;
  --sage-50: #EEF5EF;
  --white: #FFFFFF;

  --f-head: "Playfair Display", Georgia, serif;
  --f-ui: "Plus Jakarta Sans", "Helvetica Neue", Arial, sans-serif;
  --f-body: "Outfit", system-ui, -apple-system, "Segoe UI", sans-serif;

  --shadow: 0 4px 20px -2px rgba(28, 25, 23, 0.06), 0 0 3px rgba(28, 25, 23, 0.03);
  --shadow-hover: 0 14px 40px -6px rgba(28, 25, 23, 0.14), 0 0 4px rgba(28, 25, 23, 0.04);
  --shadow-red: 0 10px 24px -8px rgba(127, 29, 29, 0.45);
  color-scheme: light;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 15px/1.5 var(--f-body); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: inherit; }
button { font: inherit; color: inherit; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid var(--red); outline-offset: 2px; border-radius: 10px; }
.wrap { max-width: 1200px; margin: 0 auto; padding-left: max(16px, env(safe-area-inset-left)); padding-right: max(16px, env(safe-area-inset-right)); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.kicker { margin: 0 0 10px; font: 700 12px/1 var(--f-ui); letter-spacing: 0.16em; text-transform: uppercase; color: var(--red); }
.kicker.gold { color: var(--gold); }

/* Header */
.bar { position: sticky; top: 0; z-index: 20; background: rgba(253, 251, 247, 0.88); backdrop-filter: saturate(1.4) blur(16px); -webkit-backdrop-filter: saturate(1.4) blur(16px); border-bottom: 1px solid transparent; }
.bar-in { height: 62px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.logo svg { width: 32px; height: 32px; filter: drop-shadow(0 4px 8px rgba(127, 29, 29, 0.25)); }
.wm { font: 800 21px/1 var(--f-ui); letter-spacing: -0.03em; color: var(--ink); }
.wm b { color: var(--red); font-weight: 800; }
.wm.small { font-size: 18px; margin: 0 0 10px; }
.live-pill { display: inline-flex; align-items: center; gap: 8px; padding: 7px 12px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); font: 700 12px/1 var(--f-ui); color: var(--ink-2); box-shadow: var(--shadow); white-space: nowrap; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--sage); box-shadow: 0 0 0 3px var(--sage-50); }
@media (prefers-reduced-motion: no-preference) { .dot { animation: pulse 2.4s ease-in-out infinite; } @keyframes pulse { 50% { box-shadow: 0 0 0 6px rgba(63, 122, 78, 0.08); } } }

/* Hero */
.hero { position: relative; overflow: hidden; border-bottom: 1px solid var(--line-soft);
  background: radial-gradient(ellipse 70% 60% at 90% -10%, #FDE8E4 0%, rgba(253, 232, 228, 0) 70%), radial-gradient(ellipse 50% 50% at -10% 110%, #FBF1DE 0%, rgba(251, 241, 222, 0) 70%), var(--bg); }
.hero::after { content: ""; position: absolute; inset: 0; pointer-events: none; background-image: radial-gradient(circle at 1px 1px, rgba(28, 25, 23, 0.05) 1px, transparent 0); background-size: 28px 28px; -webkit-mask-image: linear-gradient(#000, transparent 85%); mask-image: linear-gradient(#000, transparent 85%); }
.hero-in { position: relative; z-index: 1; padding-block: 28px 26px; }
h1 { margin: 0; font: 700 clamp(38px, 9vw, 72px)/1.02 var(--f-head); letter-spacing: -0.02em; text-wrap: balance; max-width: 12ch; }
h1 em, h2 em { font-style: italic; color: var(--red-deep); }
.lede { margin: 14px 0 0; max-width: 46ch; font-size: 16px; line-height: 1.5; color: var(--ink-2); }
.search { position: relative; display: block; margin-top: 20px; max-width: 600px; }
.search svg { position: absolute; left: 18px; top: 50%; width: 20px; height: 20px; transform: translateY(-50%); color: var(--faint); pointer-events: none; }
.search input { width: 100%; height: 54px; padding: 0 20px 0 48px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); box-shadow: var(--shadow); font: 500 16px var(--f-body); color: var(--ink); -webkit-appearance: none; appearance: none; }
.search input::placeholder { color: var(--faint); }
.search input:focus { outline: none; border-color: var(--red); box-shadow: 0 0 0 4px var(--red-100), var(--shadow); }
.quick { display: flex; gap: 8px; margin: 14px -16px 0; padding: 2px 16px 6px; overflow-x: auto; scrollbar-width: none; }
.quick::-webkit-scrollbar { display: none; }
.qchip { flex: none; display: inline-flex; align-items: center; gap: 6px; height: 38px; padding: 0 14px 0 6px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); font: 700 13.5px/1 var(--f-ui); color: var(--ink); cursor: pointer; }
.qchip img { width: 28px; height: 28px; border-radius: 50%; object-fit: cover; }
.qchip:hover { border-color: #FCA5A5; }
.qchip[aria-pressed="true"] { background: var(--red-deep); border-color: var(--red-deep); color: var(--white); box-shadow: var(--shadow-red); }

.hero-art { position: relative; margin-top: 22px; }
.hero-photo { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; border-radius: 24px; box-shadow: 0 34px 60px -24px rgba(28, 25, 23, 0.35); }
.float-card { position: absolute; left: 14px; bottom: -18px; display: flex; align-items: center; gap: 12px; padding: 10px 16px 10px 10px; background: var(--surface); border-radius: 18px; box-shadow: var(--shadow-hover); max-width: calc(100% - 28px); }
.float-card:empty { display: none; }
.float-card img { width: 52px; height: 52px; border-radius: 12px; object-fit: cover; flex: none; }
.float-card b { display: block; font: 800 20px/1 var(--f-ui); color: var(--red); letter-spacing: -0.02em; }
.float-card span { display: block; font: 600 13px/1.3 var(--f-body); color: var(--ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@media (min-width: 768px) { .quick { margin-inline: 0; padding-inline: 0; flex-wrap: wrap; } .lede { font-size: 18px; } }
@media (min-width: 960px) {
  .hero-in { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 56px; align-items: center; padding-block: 56px 64px; }
  .hero-art { margin-top: 0; }
  .hero-photo { aspect-ratio: 5 / 4; transform: rotate(1.5deg); }
  .float-card { left: -28px; bottom: 34px; transform: rotate(-3deg); }
}

/* Deals band */
.band { margin-top: 34px; padding: 36px 0 40px; color: var(--white); background: radial-gradient(120% 140% at 0% 0%, var(--band-2) 0%, var(--band) 60%); }
.band-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.band h2 { margin: 0; font: 700 clamp(28px, 6vw, 42px)/1.05 var(--f-head); }
.band h2 em { color: var(--gold); }
.arrows { display: none; gap: 10px; }
.arrow { width: 42px; height: 42px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, 0.3); background: rgba(255, 255, 255, 0.06); color: var(--white); display: grid; place-items: center; cursor: pointer; }
.arrow svg { width: 20px; height: 20px; }
.arrow:hover { background: rgba(255, 255, 255, 0.15); }
@media (min-width: 768px) { .arrows { display: flex; } }
.rail { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(240px, 72%); gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; margin: 0 -16px; padding: 4px 16px 8px; }
.rail::-webkit-scrollbar { display: none; }
@media (min-width: 600px) { .rail { grid-auto-columns: 280px; } }
.rail .card { scroll-snap-align: start; }

/* Cards */
.card { position: relative; display: flex; flex-direction: column; background: var(--surface); border-radius: 20px; overflow: hidden; color: var(--ink); text-align: left; border: 1px solid var(--line-soft); box-shadow: var(--shadow); cursor: pointer; padding: 0; transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.35s; }
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); }
.ph { position: relative; aspect-ratio: 4 / 3; background: var(--line-soft); overflow: hidden; }
.ph img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1); }
.card:hover .ph img { transform: scale(1.04); }
.own { position: absolute; left: 12px; bottom: -22px; z-index: 2; width: 52px; height: 52px; border-radius: 50%; background: var(--surface); border: 3px solid var(--surface); box-shadow: 0 6px 16px -4px rgba(28, 25, 23, 0.3); overflow: hidden; }
.own img { width: 100%; height: 100%; object-fit: cover; }
.card:hover .own img { transform: none; }
.ph { overflow: visible; }
.ph > img:first-child { position: absolute; inset: 0; border-radius: 19px 19px 0 0; }
.ph:has(.own) + .c-body { padding-top: 28px; }
.ph > img.real { animation: fadein 0.5s ease; }
@keyframes fadein { from { opacity: 0.2; } to { opacity: 1; } }
.tag-sample.credit { max-width: 70%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; letter-spacing: 0; }
.tag-sample { position: absolute; right: 8px; bottom: 8px; padding: 3px 7px; border-radius: 6px; background: rgba(28, 25, 23, 0.55); color: rgba(255, 255, 255, 0.92); font: 600 10px/1.2 var(--f-ui); letter-spacing: 0.04em; backdrop-filter: blur(4px); }
.pct { position: absolute; left: 10px; top: 10px; padding: 7px 11px; border-radius: 999px; background: var(--red); color: var(--white); font: 800 14px/1 var(--f-ui); letter-spacing: -0.01em; box-shadow: var(--shadow-red); }
.c-body { display: flex; flex-direction: column; gap: 4px; padding: 14px 16px 16px; flex: 1; }
.c-name { margin: 0; font: 700 17px/1.25 var(--f-ui); letter-spacing: -0.02em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.c-meta { margin: 0; font-size: 14px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.c-kind { text-transform: capitalize; color: var(--ink-2); font-weight: 500; }
.c-foot { margin-top: 10px; display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.c-deal { font: 700 13px/1 var(--f-ui); color: var(--red-deep); }
.c-nodeal { font: 500 13px/1 var(--f-body); color: var(--faint); }
.c-go { font: 700 13px/1 var(--f-ui); color: var(--white); background: var(--red-deep); padding: 9px 12px; border-radius: 999px; }
.c-view { font: 700 13px/1 var(--f-ui); color: var(--ink-2); border: 1px solid var(--line); padding: 8px 12px; border-radius: 999px; }
.card:hover .c-view { border-color: var(--ink-2); }
.card.has-deal { border-color: #F6C9C9; }

/* List */
.list-sec { padding-top: 40px; padding-bottom: 20px; }
.list-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 10px 20px; margin-bottom: 18px; }
.list-head h2 { margin: 0; font: 700 clamp(28px, 6vw, 40px)/1.05 var(--f-head); text-transform: none; }
.list-tools { display: flex; align-items: center; gap: 16px; }
.count { font: 600 13px/1 var(--f-ui); color: var(--muted); }
.switch { display: inline-flex; align-items: center; gap: 8px; font: 700 13px/1 var(--f-ui); cursor: pointer; user-select: none; }
.switch input { position: absolute; opacity: 0; }
.switch span { width: 38px; height: 22px; border-radius: 999px; background: var(--line); position: relative; transition: background 0.2s; }
.switch span::after { content: ""; position: absolute; left: 3px; top: 3px; width: 16px; height: 16px; border-radius: 50%; background: var(--white); box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2); transition: transform 0.2s; }
.switch input:checked + span { background: var(--red); }
.switch input:checked + span::after { transform: translateX(16px); }
.switch input:focus-visible + span { outline: 3px solid var(--red); outline-offset: 2px; }
.grid { display: grid; grid-template-columns: 1fr; gap: 16px; }
@media (min-width: 560px) { .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 900px) { .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1140px) { .grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.empty { text-align: center; color: var(--muted); padding: 40px 0; }
.more { display: block; margin: 28px auto 0; height: 50px; padding: 0 28px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); font: 700 15px/1 var(--f-ui); cursor: pointer; box-shadow: var(--shadow); }
.more:hover { border-color: var(--red); color: var(--red-deep); }

/* Owner band */
.owner { margin-top: 48px; padding: 44px 0; background: var(--ink); color: var(--white); }
.owner-in { display: grid; gap: 22px; align-items: center; }
.owner h2 { margin: 0; font: 700 clamp(30px, 6vw, 46px)/1.05 var(--f-head); }
.owner h2 em { color: var(--gold); }
.owner p { margin: 10px 0 0; color: rgba(255, 255, 255, 0.75); max-width: 52ch; }
@media (min-width: 860px) { .owner-in { grid-template-columns: 1fr auto; } }

.cta { display: inline-flex; align-items: center; justify-content: center; min-height: 50px; padding: 0 24px; border-radius: 999px; border: 0; background: var(--red-deep); color: var(--white); font: 700 15px/1 var(--f-ui); text-decoration: none; cursor: pointer; box-shadow: var(--shadow-red); }
.cta:hover { background: var(--red-ink); }
.cta.ghost { background: var(--surface); color: var(--ink); border: 1px solid var(--line); box-shadow: none; }
.gold-cta { background: var(--gold); color: var(--band); box-shadow: 0 10px 24px -8px rgba(212, 176, 98, 0.5); }
.gold-cta:hover { background: #E2C27A; }

.foot { padding: 36px 0 calc(40px + env(safe-area-inset-bottom)); color: var(--muted); font-size: 13px; }
.foot a { color: var(--red-deep); }
.foot p { max-width: 80ch; }

/* Coupon dialog */
dialog { border: 0; padding: 0; border-radius: 26px; width: min(94vw, 760px); max-height: 94vh; overflow-y: auto; background: var(--surface); color: var(--ink); box-shadow: 0 40px 80px -20px rgba(0, 0, 0, 0.45); }
dialog::backdrop { background: rgba(28, 25, 23, 0.55); backdrop-filter: blur(3px); }
.dlg-photo { position: relative; aspect-ratio: 16 / 10; background: var(--line-soft); }
.dlg-photo > img { width: 100%; height: 100%; object-fit: cover; border-radius: 26px 26px 0 0; }
.dlg-x { position: absolute; right: 10px; top: 10px; width: 36px; height: 36px; border-radius: 50%; border: 0; background: rgba(28, 25, 23, 0.55); color: var(--white); font: 400 24px/1 var(--f-body); cursor: pointer; backdrop-filter: blur(4px); }
.dlg-loading { position: absolute; left: 10px; bottom: 10px; padding: 6px 10px; border-radius: 999px; background: rgba(28, 25, 23, 0.6); color: var(--white); font: 600 12px/1 var(--f-ui); }
.dlg-strip { display: flex; gap: 6px; padding: 8px 10px 0; overflow-x: auto; scrollbar-width: none; }
.dlg-strip:empty { display: none; }
.dlg-strip img { width: clamp(64px, 16%, 112px); height: auto; aspect-ratio: 4 / 3; flex: none; border-radius: 8px; object-fit: cover; cursor: pointer; opacity: 0.6; border: 2px solid transparent; }
.dlg-strip img.on { opacity: 1; border-color: var(--red); }
.dlg-credit { margin: 6px 12px 0; font-size: 11px; color: var(--muted); text-align: right; }
.dlg-credit:empty { display: none; }
.dlg-credit a { color: var(--ink-2); }
.dlg-nodeal { margin: 16px 0 0; padding: 12px; border-radius: 12px; background: var(--line-soft); color: var(--ink-2); font-size: 14px; }
.dlg-pct { position: absolute; left: 12px; top: 12px; padding: 10px 16px; border-radius: 999px; background: var(--red); color: var(--white); font: 800 22px/1 var(--f-ui); box-shadow: var(--shadow-red); white-space: nowrap; }
.dlg-body { padding: 18px 22px 22px; text-align: center; }
.dlg-name { margin: 0; font: 700 24px/1.15 var(--f-head); }
.dlg-where { margin: 4px 0 0; font-size: 14px; color: var(--muted); }
.dlg-hint { margin: 18px 0 8px; font: 700 11px/1 var(--f-ui); letter-spacing: 0.16em; text-transform: uppercase; color: var(--gold-deep); }
.dlg-code { width: 100%; padding: 14px; border-radius: 16px; border: 2px dashed var(--gold); background: var(--gold-50); font: 800 28px/1 ui-monospace, "SF Mono", Menlo, monospace; letter-spacing: 0.1em; color: var(--ink); cursor: pointer; }
.dlg-barcode { display: flex; justify-content: center; margin: 0 0 10px; padding: 6px; background: #fff; border: 1px solid var(--line); border-radius: 16px; }
.dlg-barcode svg { display: block; max-width: 100%; height: auto; }
.dlg-copied { margin: 6px 0 0; font: 700 12px/1 var(--f-ui); color: var(--sage); }
.dlg-sample { margin: 10px 0 0; font-size: 12px; color: var(--muted); }
.dlg-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 18px; }
@media (min-width: 700px) {
  .dlg-strip { gap: 10px; padding: 12px 16px 0; }
  .dlg-credit { margin: 8px 16px 0; font-size: 12px; }
  .dlg-body { padding: 22px 36px 30px; }
  .dlg-name { font-size: 34px; }
  .dlg-where { font-size: 16px; }
  .dlg-pct { font-size: 28px; padding: 12px 20px; left: 16px; top: 16px; }
  .dlg-code { font-size: 34px; padding: 18px; }
  .dlg-nodeal { font-size: 16px; padding: 16px; }
  .dlg-x { width: 44px; height: 44px; font-size: 28px; right: 14px; top: 14px; }
  .dlg-actions { max-width: 460px; margin-left: auto; margin-right: auto; }
  .dlg-actions .cta { min-height: 54px; font-size: 16px; }
}
