/* Foodie Bangladesh — সাইটের স্টাইল (মোবাইল আগে) */
:root {
  --red: #D7263D; --red-d: #A8231B; --cream: #FFF4E0; --gold: #FFC94A; --ink: #1F1A17;
  --bg: #FBF5EC; --card: #FFFFFF; --line: #EADFCF; --muted: #776B60; --ok: #1F7A44;
  --r: 16px; --shadow: 0 6px 24px rgba(60, 30, 10, .08);
  font-family: "Anek Bangla", "Noto Sans Bengali", "Hind Siliguri", system-ui, sans-serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; background: var(--bg); min-height: 100%; }
body { min-height: 100vh; }
body {
  margin: 0; background: var(--bg); color: var(--ink); font-size: 17px; line-height: 1.5;
  background-image: repeating-linear-gradient(0deg, transparent 0 27px, rgba(215, 38, 61, .045) 27px 29px);
}
a { color: var(--red); }
img { max-width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }
[hidden] { display: none !important; }

.notice { background: var(--ink); color: var(--cream); text-align: center; padding: 8px 14px; font-size: 15px; }
.notice a { color: var(--gold); text-decoration: none; }

.top { display: flex; align-items: center; justify-content: space-between; padding: 10px 16px; max-width: 1180px; margin: 0 auto; }
.brand { display: flex; align-items: center; gap: 8px; text-decoration: none; color: var(--ink); font-size: 22px; font-weight: 600; letter-spacing: -.01em; }
.brand b { color: var(--red); font-weight: 800; }
.brand span { white-space: nowrap; } .top { gap: 10px; }
@media (max-width: 380px) { .brand { font-size: 19px; gap: 6px; } .brand img { width: 34px; height: 34px; } .adv-link { font-size: 14px; padding: 4px 10px; } }
.adv-link { white-space: nowrap; flex-shrink: 0; font-size: 15px; text-decoration: none; color: var(--muted); border: 1px dashed var(--line); padding: 4px 12px; border-radius: 99px; background: #fff; }

/* সেকশন বার */
.sections { display: flex; gap: 8px; overflow-x: auto; padding: 4px 16px 12px; max-width: 1180px; margin: 0 auto; scrollbar-width: none; scroll-snap-type: x proximity; }
.sections::-webkit-scrollbar { display: none; }
.sec {
  flex: 0 0 auto; display: flex; align-items: center; gap: 6px; padding: 8px 14px; border-radius: 99px; background: #fff; border: 1.5px solid var(--line);
  text-decoration: none; color: var(--ink); font-weight: 600; font-size: 16px; white-space: nowrap; scroll-snap-align: center;
}
.sec span { font-size: 18px; }
.sec.on { background: var(--red); border-color: var(--red); color: #fff; box-shadow: 0 4px 14px rgba(215, 38, 61, .3); }

.wrap { max-width: 1180px; margin: 0 auto; padding: 0 16px 40px; display: grid; gap: 18px; grid-template-columns: 1fr; }
@media (min-width: 900px) {
  .wrap { grid-template-columns: minmax(0, 1fr) 460px; align-items: start; }
  .preview-col { position: sticky; top: 12px; order: 2; }
  .form-col { order: 1; }
}

/* ফর্ম */
.step { background: var(--card); border-radius: var(--r); padding: 16px; margin-bottom: 14px; box-shadow: var(--shadow); border: 1px solid var(--line); }
.step h2 { font-size: 20px; margin: 0 0 12px; display: flex; align-items: center; gap: 10px; }
.num { width: 30px; height: 30px; border-radius: 50%; background: var(--red); color: #fff; display: inline-grid; place-items: center; font-size: 17px; flex: 0 0 auto; }
.fld { margin: 12px 0; }
.lab { display: block; font-weight: 600; margin-bottom: 6px; font-size: 16px; }
input[type=text], input[type=search], input[type=url], input[type=date], select {
  width: 100%; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: 12px; background: #FFFDF9; font-size: 17px; min-height: 48px;
}
input:focus, select:focus { outline: none; border-color: var(--red); box-shadow: 0 0 0 3px rgba(215, 38, 61, .14); }
.price { display: flex; align-items: center; gap: 8px; max-width: 200px; }
.price span { font-size: 22px; font-weight: 700; }
.hint { color: var(--muted); font-size: 14.5px; margin: 6px 0 0; }
.center { text-align: center; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  border: 1.5px solid var(--line); background: #fff; border-radius: 99px; padding: 7px 14px; cursor: pointer; font-size: 15.5px; line-height: 1.3; min-height: 38px;
}
.chip.on { background: var(--ink); color: #fff; border-color: var(--ink); }
.chip.on::before { content: '✓ '; }
.chip.sm { padding: 4px 11px; font-size: 14.5px; min-height: 32px; border-style: dashed; }
.sugg { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.chip-add { width: 150px !important; min-height: 38px !important; padding: 6px 12px !important; border-radius: 99px !important; font-size: 15px !important; border-style: dashed !important; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px; border: 0; border-radius: 12px; padding: 11px 18px; font-weight: 700;
  background: var(--red); color: #fff; cursor: pointer; text-decoration: none; min-height: 46px; font-size: 16.5px;
}
.btn:active { transform: translateY(1px); }
.btn.ghost { background: #fff; color: var(--ink); border: 1.5px solid var(--line); }
.btn.link { background: none; color: var(--red); padding: 4px 6px; min-height: 0; font-weight: 600; }
.btn.sm { padding: 7px 14px; min-height: 38px; font-size: 15px; }
.btn.big { padding: 14px 18px; font-size: 18px; min-height: 54px; border-radius: 14px; }
.btn.file { cursor: pointer; }

.own-photo, .photo-own { display: flex; gap: 14px; align-items: center; margin-top: 10px; flex-wrap: wrap; }
.own-photo p { margin: 4px 0 0; }
.thumb { width: 72px; height: 72px; border-radius: 14px; background: var(--cream); display: grid; place-items: center; font-size: 30px; overflow: hidden; border: 2px dashed var(--line); flex: 0 0 auto; }
.thumb.round { border-radius: 50%; }
.thumb.wide { width: 120px; }
.thumb img { width: 100%; height: 100%; object-fit: cover; }

/* জায়গা বাছাই */
.pp-top { display: flex; gap: 8px; align-items: center; }
.pp-top select { flex: 1; }
.pp-map { margin-top: 10px; background: #F3EADC; border-radius: 14px; overflow: hidden; border: 1px solid var(--line); touch-action: manipulation; }
.pp-map svg { display: block; width: 100%; height: auto; max-height: 62vh; }
.pp-map svg.bd path { fill: #E9C9A8; stroke: #fff; stroke-width: 1.4; cursor: pointer; transition: fill .15s; }
.pp-map svg.bd path:hover { fill: var(--red); }
.pp-map svg.dz { cursor: crosshair; }
.pp-map .nb { fill: #EADCC8; stroke: #C9B79F; }
.pp-map .me { fill: #F7D9B8; stroke: var(--red); stroke-dasharray: 1.2 .8; stroke-linecap: round; }
.pp-map .up { fill: none; stroke: #B07A4F; stroke-dasharray: .8 .6; pointer-events: none; }
.pp-map .bz { fill: #8A4A28; opacity: .55; pointer-events: none; }
.pp-map text { fill: #5E3A22; text-anchor: middle; dominant-baseline: middle; font-weight: 600; paint-order: stroke; stroke: #F7D9B8; stroke-width: .25px; pointer-events: none; }
.pp-map .pin path { fill: var(--red); stroke: #fff; stroke-width: 1.4; }
.pp-map .pin circle { fill: #fff; }
.pp-search { display: flex; gap: 8px; margin-top: 10px; }
.pp-search input { flex: 1; }
.pp-res { list-style: none; margin: 6px 0 0; padding: 0; max-height: 260px; overflow: auto; }
.pp-res li button { width: 100%; text-align: left; border: 0; border-bottom: 1px solid var(--line); background: #fff; padding: 10px 12px; cursor: pointer; display: flex; flex-direction: column; }
.pp-res li button:hover { background: var(--cream); }
.pp-res small { color: var(--muted); }
.pp-res .empty { padding: 10px; color: var(--muted); }
.pp-g { margin-top: 10px; }
.pp-g summary { cursor: pointer; color: var(--muted); font-size: 15px; }
.pp-g input { margin-top: 8px; }

/* ট্রিপ */
.stop { display: flex; gap: 10px; align-items: flex-start; padding: 10px; border: 1.5px solid var(--line); border-radius: 14px; margin-bottom: 8px; background: #FFFDF9; }
.stop.on { border-color: var(--red); background: #FFF6F2; }
.sn { width: 30px; height: 30px; border-radius: 50%; background: var(--gold); display: grid; place-items: center; font-weight: 800; flex: 0 0 auto; margin-top: 4px; }
.sb { flex: 1; display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.sl { text-align: left; background: none; border: 0; padding: 4px 0; font-weight: 600; cursor: pointer; color: var(--red); }
.stop .x { border: 0; background: none; font-size: 24px; color: var(--muted); cursor: pointer; line-height: 1; }

.privacy { font-size: 14.5px; color: var(--muted); text-align: center; margin: 4px 0 20px; }

.foot { border-top: 1px dashed var(--line); padding: 20px 16px 40px; text-align: center; color: var(--muted); font-size: 14px; }
.foot-brand { display: flex; align-items: center; justify-content: center; gap: 6px; color: var(--ink); font-size: 16px; }
.foot-brand b { color: var(--red); }
.credits { max-width: 760px; margin: 10px auto 0; line-height: 1.7; }
.credits a { color: var(--muted); }

.toast {
  position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 140%); background: var(--ink); color: #fff; padding: 12px 18px; border-radius: 12px;
  font-size: 16px; z-index: 50; transition: transform .25s, visibility .25s; max-width: calc(100% - 32px); text-align: center; pointer-events: none; visibility: hidden;
}
.toast.on { transform: translate(-50%, 0); visibility: visible; }
.to-card {
  position: fixed; right: 14px; bottom: 16px; z-index: 40; border: 0; background: var(--red); color: #fff; font-weight: 700; padding: 10px 16px;
  border-radius: 99px; box-shadow: 0 6px 18px rgba(0, 0, 0, .25); opacity: 0; pointer-events: none; transition: opacity .2s; font-size: 15.5px;
}
.to-card.on { opacity: 1; pointer-events: auto; }
@media (min-width: 900px) { .to-card { display: none; } }
.saveov { position: fixed; inset: 0; background: rgba(20, 10, 5, .85); z-index: 60; display: grid; place-items: center; padding: 16px; }
.saveov-in { background: #fff; border-radius: 16px; padding: 14px; max-width: 460px; text-align: center; max-height: 100%; overflow: auto; }
.saveov-in img { width: 100%; border-radius: 10px; margin: 8px 0; }

/* বন্ধুর কার্ড দেখার মোড */
body.viewing .form-col, body.viewing .share-box, body.viewing .themes, body.viewing .size-toggle { display: none; }
body.viewing .wrap { grid-template-columns: 1fr; max-width: 560px; }
.shared-banner { background: #fff; border: 2px dashed var(--red); border-radius: var(--r); padding: 14px 16px; text-align: center; margin-bottom: 12px; }
.shared-banner p { margin: 0 0 4px; }
.shared-banner .q { font-size: 20px; font-weight: 700; margin-bottom: 12px; }
.shared-banner .btn { width: 100%; }

/* জায়গা: নাম লিখে খোঁজা আগে */
.pp-search { position: relative; margin-top: 0; }
.pp-ico { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); font-size: 18px; pointer-events: none; opacity: .6; }
.pp-search input#pp-q { padding-left: 44px; font-size: 18px; min-height: 54px; border-width: 2px; border-color: #E2C9A8; background: #fff; }
.pp-res li button.lr b::after { content: ' ✓'; color: var(--ok); }
.pp-res em { font-style: normal; color: var(--ok); font-weight: 600; }
.pp-res .loading { color: var(--muted); font-style: italic; }
.pp-res .empty .chip { margin-left: 6px; }
.pp-chosen { margin-top: 10px; padding: 10px 14px; border-radius: 12px; background: #FFF6F2; border: 1.5px dashed var(--red); font-size: 16px; }
.pp-or { margin: 14px 0 6px; color: var(--muted); font-size: 14.5px; text-align: center; }
.pp-or::before, .pp-or::after { content: '— '; } .pp-or::after { content: ' —'; }
.fix { font-size: 15px; color: var(--muted); margin-top: 6px; min-height: 0; }
.fix:empty { display: none; }
.fix .chip { border-style: solid; border-color: var(--ok); color: var(--ok); font-weight: 700; }

/* খাবার বাছাই: ক্যাটাগরি ট্যাব + ৩ সারির চিপ, পাশে টেনে আরও */
.dp-tabs { display: flex; gap: 6px; overflow-x: auto; padding: 2px 0 8px; scrollbar-width: none; }
.dp-tabs::-webkit-scrollbar { display: none; }
.dp-tab { flex: 0 0 auto; border: 1.5px solid var(--line); background: #fff; border-radius: 99px; padding: 6px 13px; font-size: 14.5px; font-weight: 600; cursor: pointer; white-space: nowrap; }
.dp-tab.on { background: var(--red); border-color: var(--red); color: #fff; }
.dp-grid {
  display: grid; grid-auto-flow: column; grid-template-rows: repeat(3, auto); grid-auto-columns: max-content; gap: 7px;
  overflow-x: auto; padding: 2px 2px 10px; scroll-snap-type: x proximity; -webkit-overflow-scrolling: touch; overscroll-behavior-x: contain;
  scrollbar-width: thin; scrollbar-color: #E2C9A8 transparent;
}
.dp-grid::-webkit-scrollbar { height: 6px; } .dp-grid::-webkit-scrollbar-thumb { background: #E2C9A8; border-radius: 6px; }
.dchip {
  display: inline-flex; align-items: center; gap: 7px; border: 1.5px solid var(--line); background: #fff; border-radius: 99px;
  padding: 3px 13px 3px 3px; cursor: pointer; font-size: 15px; line-height: 1.2; min-height: 42px; scroll-snap-align: start; white-space: nowrap;
}
.dchip img, .dchip i { width: 34px; height: 34px; border-radius: 50%; object-fit: cover; flex: 0 0 auto; background: var(--cream); display: grid; place-items: center; font-style: normal; font-size: 17px; }
.dchip.on { background: var(--ink); color: #fff; border-color: var(--ink); box-shadow: 0 3px 10px rgba(0,0,0,.18); }
.dchip.on span::before { content: '✓ '; }
.dchip.other { border-style: dashed; }
.dp-hint { margin: 0; font-size: 13px; color: var(--muted); text-align: center; }
@media (min-width: 900px) { .dp-hint { display: none; } }
.dp-other { margin-top: 10px; }
/* চওড়া চিপ-সারি যেন পুরো পেজ না ঠেলে বড় করে */
.wrap > *, .form-col, .step, .dp { min-width: 0; }
.dp-tabs, .dp-grid { max-width: 100%; }

/* পেটুকের ম্যাপ — সেকশন বার, শেয়ারের আগে সম্মতি, ধন্যবাদ বক্স */
.sec.khoj { background: #FFF4E0; border-color: #FFC94A; border-style: dashed; }
.spot-opt { display: flex; gap: 10px; align-items: flex-start; margin-top: 12px; background: #fff; border: 1.5px dashed #F2A65A; border-radius: 14px; padding: 10px 12px; font-size: 14.5px; cursor: pointer; }
.spot-opt input { width: 20px; height: 20px; margin-top: 2px; flex: 0 0 auto; accent-color: var(--red); }
.spot-done { margin: 10px 0 0; padding: 10px 12px; background: #FFF4E0; border-radius: 12px; font-size: 15px; }
.spot-done a { font-weight: 700; }

/* দ্রুত ভরা: অগ্রগতি, শেষ হওয়া ধাপ, ছোট চিপ */
.progress { position: sticky; top: 0; z-index: 15; background: rgba(251, 245, 236, .97); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); padding: 8px 2px 10px; margin: -4px 0 8px; font-size: 14.5px; }
.progress span { display: block; margin-top: 6px; color: var(--muted); }
.progress a { color: var(--red); font-weight: 700; }
.pg-bar { height: 7px; border-radius: 99px; background: #EFE3D2; overflow: hidden; }
.pg-bar i { display: block; height: 100%; background: linear-gradient(90deg, #D7263D, #F2994A); border-radius: 99px; transition: width .35s; }
.step h2 .opt { margin-left: auto; font-size: 13px; color: var(--muted); font-weight: 500; }
.step.done .num { background: var(--ok); font-size: 0; }
.step.done .num::after { content: '✓'; font-size: 17px; }
.step.flash { animation: stepflash 1.2s; }
@keyframes stepflash { 30% { box-shadow: 0 0 0 4px rgba(242, 153, 74, .55); } }
.chips.mini { margin-top: 8px; gap: 6px; align-items: center; }
.mini-sel { width: auto !important; min-height: 34px !important; padding: 4px 10px !important; font-size: 14.5px !important; border-radius: 99px !important; }
.pp-quick { display: flex; gap: 6px; overflow-x: auto; padding: 8px 0 2px; scrollbar-width: none; }
.pp-quick::-webkit-scrollbar { display: none; }
.pp-quick .chip { flex: 0 0 auto; white-space: nowrap; }
.chip.geo { border-color: #9ED3AE; background: #F1FAF3; color: #1F5A35; font-weight: 600; border-style: solid; }
[data-names] .chip.on::before { content: none; }

/* লাইভ কাউন্টার */
.live-strip { max-width: 1180px; margin: 0 auto 12px; padding: 0 16px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.ls-item { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 8px 10px; text-align: center; box-shadow: var(--shadow); min-width: 0; }
.ls-item b { display: block; font-size: 22px; font-weight: 800; color: var(--red); line-height: 1.15; font-variant-numeric: tabular-nums; }
.ls-item span { display: block; font-size: 12.5px; color: var(--muted); line-height: 1.3; }
.ls-item.live b { color: var(--ok); }
.ls-item.live i { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: #2DBE60; margin-right: 5px; vertical-align: 1px; animation: lsp 1.6s infinite; }
@keyframes lsp { 0% { box-shadow: 0 0 0 0 rgba(45, 190, 96, .6); } 70% { box-shadow: 0 0 0 7px rgba(45, 190, 96, 0); } 100% { box-shadow: 0 0 0 0 rgba(45, 190, 96, 0); } }
@media (max-width: 560px) { .live-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); } .ls-item b { font-size: 19px; } }
.live-strip.dark { padding: 0; margin: 4px auto 16px; max-width: 640px; }
.live-strip.dark .ls-item { background: rgba(255, 255, 255, .1); border-color: rgba(255, 255, 255, .18); box-shadow: none; }
.live-strip.dark .ls-item b { color: #FFC94A; } .live-strip.dark .ls-item span { color: #FFE9D2; } .live-strip.dark .ls-item.live b { color: #7DF0A5; }
/* কাউন্টার: ফোনে এক লাইনের ছোট স্ট্রিপ, যাতে কার্ড নিচে না নামে */
@media (max-width: 560px) {
  .live-strip:not(.dark) { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; margin-bottom: 10px; }
  .live-strip:not(.dark)::-webkit-scrollbar { display: none; }
  .live-strip:not(.dark) .ls-item { flex: 0 0 auto; display: flex; align-items: center; gap: 5px; padding: 5px 11px; border-radius: 99px; }
  .live-strip:not(.dark) .ls-item b { font-size: 15px; display: inline; }
  .live-strip:not(.dark) .ls-item span { font-size: 12.5px; display: inline; white-space: nowrap; }
}
@media (max-width: 560px) { .live-strip:not(.dark) .ls-item.live { order: -1; } }

/* জায়গা: আগে জেলা, তারপর জেলার ভেতরের জায়গা */
.pp-step { margin: 2px 0 8px; font-weight: 700; font-size: 16px; display: flex; align-items: center; gap: 8px; }
.pp-step b { width: 24px; height: 24px; border-radius: 50%; background: var(--gold); color: #3B1F00; display: inline-grid; place-items: center; font-size: 14px; }
.pp-top.big select { min-height: 54px; font-size: 18px; font-weight: 600; border-width: 2px; border-color: #E2C9A8; background: #fff; }
.pp-top .pp-dname { flex: 1; font-size: 17px; background: #FFF4E0; border: 1.5px solid #F2DDB8; border-radius: 12px; padding: 9px 14px; }
.pp-top .pp-change { flex: 0 0 auto; width: auto !important; min-height: 42px !important; font-size: 14.5px !important; padding: 6px 10px !important; color: var(--red); font-weight: 600; }
.pp-top { margin-bottom: 12px; }
.pp-ups { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-top: 10px; }
.pp-ups span { font-size: 14px; color: var(--muted); margin-right: 2px; }
.pp-ups-d { margin-top: 10px; } .pp-ups-d summary { cursor: pointer; color: var(--red); font-weight: 600; font-size: 15px; }

/* হোম: এক লাইনের পরিচয়, পাশে-স্ক্রলের ইঙ্গিত, ডেস্কটপে দেশের ম্যাপ ছোট */
.tagline { max-width: 1180px; margin: -2px auto 8px; padding: 0 16px; font-size: 15.5px; color: var(--muted); line-height: 1.4; }
.tagline b { color: var(--ink); font-weight: 700; font-size: inherit; display: inline; white-space: nowrap; }
@media (max-width: 420px) { .tagline { font-size: 13.5px; } }
@media (max-width: 380px) { .tagline { font-size: 12.5px; letter-spacing: -.1px; } }
body.viewing .tagline { display: none; }
@media (max-width: 899px) {
  .sections, .live-strip:not(.dark) { -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 34px), transparent); mask-image: linear-gradient(90deg, #000 calc(100% - 34px), transparent); padding-right: 34px; }
  .sections.at-end, .live-strip.at-end { -webkit-mask-image: none; mask-image: none; }
}
@media (min-width: 900px) { .pp-map svg.bd { max-height: 440px; margin: 0 auto; } }

/* গুগল অ্যাডসেন্স — জায়গা আগে থেকে রাখা, যেন লোড হলে লেখা লাফ না দেয় */
.gads { margin: 16px 0; min-height: 100px; text-align: center; overflow: hidden; }
.gads .ad-lbl { display: block; font-size: 11.5px; color: var(--muted); letter-spacing: .04em; margin-bottom: 4px; }
.foot .gads { max-width: 728px; margin: 0 auto 18px; }
.kh-list .gads { grid-column: 1 / -1; background: #fff; border: 1px dashed var(--line); border-radius: 16px; padding: 8px; }
/* iPhone: ১৬px-এর ছোট লেখার ঘরে চাপ দিলে পুরো পাতা জুম হয়ে যায় — ফোনে সব ঘর অন্তত ১৬px */
@media (max-width: 899px) {
  body input:not([type=checkbox]):not([type=radio]):not([type=range]), body select, body textarea { font-size: 16px !important; }
  .pp-top .pp-change, body .mini-sel { font-size: 16px !important; }
}
