/* ==========================================================================
   Gari Bhara UI  —  Clean Light hero + Docked bottom nav
   Sob class "gb-" prefix e, tai existing CSS er sathe conflict hobe na.
   Place: public/css/gb-ui.css
   ========================================================================== */

:root {
  --gb-navy: #0c2340;
  --gb-ink: #0f2a4a;
  --gb-ink2: #3c5573;
  --gb-blue: #2b6fd6;
  --gb-green: #16a34a;
  --gb-amber: #f5a623;
  --gb-red: #ff2d55;
  --gb-head: #b85c00;            /* "আমাদের অঙ্গীকার" er color */
  --gb-w: 480px;                 /* mobile column er max width (desktop e center hobe) */
  --gb-nav-h: 84px;              /* bottom nav er height (safe-area chara) */
  --gb-font: 'Hind Siliguri', 'Noto Sans Bengali', 'Kalpurush', system-ui, -apple-system, 'Segoe UI', sans-serif;
}

/* ---------- base (sudhu home page e, body te .gb-body dao) ---------- */
.gb-body {
  margin: 0;
  font-family: var(--gb-font);
  color: var(--gb-ink);
  background: #f6f9ff;
  -webkit-font-smoothing: antialiased;
}
.gb-body *, .gb-body *::before, .gb-body *::after,
.gb-nav, .gb-nav *, .gb-nav *::before, .gb-nav *::after { box-sizing: border-box; }

/* ==========================================================================
   HERO
   ========================================================================== */
.gb-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  min-height: 100vh;
  min-height: 100svh;
  padding: calc(70px + env(safe-area-inset-top, 0px)) 16px calc(var(--gb-nav-h) + 190px);
  background:
    radial-gradient(300px 240px at 0% 8%, rgba(183, 210, 255, .85), transparent 70%),
    radial-gradient(280px 220px at 100% 46%, rgba(255, 217, 160, .7), transparent 70%),
    radial-gradient(280px 240px at 0% 100%, rgba(195, 236, 220, .6), transparent 70%),
    linear-gradient(180deg, #e9f1ff 0%, #f6f9ff 55%, #fff6e6 100%);
}
.gb-hero__in { position: relative; z-index: 1; max-width: var(--gb-w); margin: 0 auto; }

/* skyline (repeat-x, tai desktop e-o full width cover kore) */
.gb-hero__sky {
  position: absolute; left: 0; right: 0; bottom: 0; height: 230px; z-index: 0; pointer-events: none;
  background: url("../images/gb-skyline.svg") repeat-x center bottom / auto 100%;
}

/* dotted route + pin (nav er thik upore) */
.gb-route {
  position: absolute; left: 50%; z-index: 0; pointer-events: none; overflow: visible;
  bottom: calc(var(--gb-nav-h) + env(safe-area-inset-bottom, 0px) + 6px);
  width: min(100%, var(--gb-w)); height: auto; transform: translateX(-50%);
}
.gb-route__line { animation: gb-dash 1.6s linear infinite; }
.gb-route__pulse { transform-box: fill-box; transform-origin: center; animation: gb-pulse 2.4s ease-out infinite; }
@keyframes gb-dash  { to { stroke-dashoffset: -10; } }
@keyframes gb-pulse { from { transform: scale(1); opacity: .75; } to { transform: scale(3.4); opacity: 0; } }

/* ---------- top bar ---------- */
.gb-top { position: absolute; top: 0; left: 0; right: 0; z-index: 5; padding: calc(12px + env(safe-area-inset-top, 0px)) 16px 0; }
.gb-top__in { max-width: var(--gb-w); margin: 0 auto; height: 44px; display: flex; align-items: center; justify-content: space-between; }
.gb-logo { display: flex; color: #e08a00; }
.gb-logo svg { width: 38px; height: auto; display: block; }
.gb-top__r { display: flex; align-items: center; gap: 12px; font-weight: 600; font-size: 14px; }
.gb-login { display: flex; align-items: center; gap: 5px; color: var(--gb-ink); text-decoration: none; }
.gb-login svg { width: 16px; height: 16px; }
.gb-reg { background: var(--gb-amber); color: #1a1200; padding: 8px 13px; border-radius: 10px; font-weight: 700; font-size: 13.5px; text-decoration: none; }

/* ---------- stats pill ---------- */
.gb-stats,
.gb-hero .gb-stats {
  margin: 4px auto 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  width: 100%;
  max-width: 480px;
  padding: 8px 16px;
  border-radius: 9999px;
  white-space: nowrap;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(15, 42, 74, 0.1);
  box-shadow: 0 4px 20px -4px rgba(15, 42, 74, 0.08), 0 1px 3px rgba(15, 42, 74, 0.03);
  font-size: 12px;
  font-weight: 700;
  color: #334155;
  transition: all 0.2s ease;
}

.gb-stats:hover,
.gb-hero .gb-stats:hover {
  box-shadow: 0 6px 24px -4px rgba(15, 42, 74, 0.12), 0 2px 6px rgba(15, 42, 74, 0.04);
  background: rgba(255, 255, 255, 0.98);
}

.gb-stats span,
.gb-hero .gb-stats span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.gb-n,
.gb-hero .gb-n {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 2px 8px;
  border-radius: 9999px;
  background: #f1f5f9;
  color: #334155;
  font-size: 11px;
  font-weight: 800;
  line-height: 1.35;
  letter-spacing: -0.01em;
}

.gb-n--red,
.gb-hero .gb-n--red {
  background: linear-gradient(135deg, #ef4444, #dc2626);
  color: #fff;
  box-shadow: 0 2px 6px -1px rgba(239, 68, 68, 0.45);
}

.gb-n--blue,
.gb-hero .gb-n--blue {
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
  color: #fff;
  box-shadow: 0 2px 6px -1px rgba(37, 99, 235, 0.4);
}

.gb-live,
.gb-hero .gb-live {
  font-weight: 800;
  color: #0f172a;
  text-decoration: none;
}

.gb-live i,
.gb-hero .gb-live i {
  position: relative;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #ef4444;
  display: inline-block;
  box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.7);
  animation: gb-live-pulse 1.4s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

@keyframes gb-live-pulse {
  0% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.7);
  }
  70% {
    transform: scale(1.1);
    box-shadow: 0 0 0 7px rgba(239, 68, 68, 0);
  }
  100% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(239, 68, 68, 0);
  }
}

/* ---------- text ---------- */
.gb-tag,
.gb-hero .gb-tag {
  margin: 0 auto; display: flex; align-items: center; justify-content: center; gap: 7px;
  width: fit-content; max-width: 100%; padding: 6px 12px; border-radius: 14px;
  background: rgba(16, 185, 129, .12); border: 1px solid rgba(16, 185, 129, .5); color: #0b6b4b;
  font-size: 12px; font-weight: 500; text-align: center; line-height: 1.35;
  position: static;
}
.gb-tag i,
.gb-hero .gb-tag i { flex: none; width: 8px; height: 8px; border-radius: 50%; background: #10b981; }
.gb-eyebrow,
.gb-hero .gb-eyebrow { margin: 16px 0 0; text-align: center; font-size: 15px; font-weight: 500; color: var(--gb-ink2); }
.gb-hl,
.gb-hero .gb-hl { margin: 0; text-align: center; font-size: clamp(32px, 9vw, 42px); line-height: 1.3; font-weight: 700; color: var(--gb-head); }

.gb-chips,
.gb-hero .gb-chips { display: flex; justify-content: center; gap: 8px; margin-top: 12px; flex-wrap: wrap; }
.gb-chip,
.gb-hero .gb-chip {
  display: flex; align-items: center; gap: 5px; padding: 5px 12px; border-radius: 14px;
  background: rgba(255, 255, 255, .88); border: 1px solid rgba(15, 42, 74, .14);
  font-size: 13px; font-weight: 600;
}
.gb-chip svg,
.gb-hero .gb-chip svg { width: 15px; height: 15px; }

/* ---------- CTA (ভাড়া দিন / ভাড়া নিন) ---------- */
.gb-cta,
.gb-hero .gb-cta {
  display: grid; grid-template-columns: 1fr 1fr; margin-top: 22px;
  border: 2px solid #d9a21b; border-radius: 18px; overflow: hidden;
  box-shadow: 0 12px 26px -12px rgba(15, 42, 74, .55);
  height: auto;
}
.gb-cta a,
.gb-hero .gb-cta a {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px; padding: 14px 6px;
  color: #fff; text-align: center; line-height: 1.35; text-decoration: none;
  -webkit-tap-highlight-color: transparent; transition: filter .15s;
}
.gb-cta a:active,
.gb-hero .gb-cta a:active { filter: brightness(.94); }
.gb-cta svg,
.gb-hero .gb-cta svg { width: 26px; height: 26px; margin-bottom: 2px; }
.gb-cta b,
.gb-hero .gb-cta b { font-size: 18px; font-weight: 700; }
.gb-cta small,
.gb-hero .gb-cta small { font-size: 12px; font-weight: 500; opacity: .92; }
.gb-cta__give,
.gb-hero .gb-cta__give { background: linear-gradient(180deg, #52b65d, #2f8f3d); }
.gb-cta__take,
.gb-hero .gb-cta__take { background: linear-gradient(180deg, #5c9cf6, #2b6fd6); }

.gb-trust,
.gb-hero .gb-trust {
  margin: 14px auto 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 10px; align-items: center;
  width: fit-content; max-width: 100%; padding: 5px 12px; border-radius: 14px;
  background: rgba(255, 255, 255, .8); font-size: 11.5px; font-weight: 500;
}
.gb-trust span,
.gb-hero .gb-trust span { display: flex; align-items: center; gap: 5px; }
.gb-trust svg,
.gb-hero .gb-trust svg { width: 14px; height: 14px; }

/* ==========================================================================
   BOTTOM NAV  (Docked Bar)  —  sob page e use korte paro
   ========================================================================== */
.gb-nav {
  position: fixed; z-index: 50; left: 50%; bottom: 0; transform: translateX(-50%);
  width: 100%; max-width: var(--gb-w);
  height: calc(var(--gb-nav-h) + env(safe-area-inset-bottom, 0px));
  padding-bottom: env(safe-area-inset-bottom, 0px);
  display: grid; grid-template-columns: repeat(5, 1fr); align-items: end;
  background: #fff; border-radius: 26px 26px 0 0;
  box-shadow: 0 -12px 30px -14px rgba(15, 42, 74, .32);
  font-family: var(--gb-font);
}
.gb-nav__it {
  position: relative; display: flex; flex-direction: column; align-items: center; gap: 3px;
  padding: 0 0 20px; color: #3a4658; text-decoration: none;
  font-size: 12px; font-weight: 600; line-height: 1.25; -webkit-tap-highlight-color: transparent;
}
.gb-nav__it svg { width: 26px; height: 26px; }
.gb-nav__it.is-on { color: var(--gb-blue); }
.gb-nav__it.is-on::after { content: ""; position: absolute; bottom: 8px; width: 5px; height: 5px; border-radius: 50%; background: var(--gb-blue); }
.gb-nav__slot { display: block; height: 26px; }
.gb-nav__circ {
  position: absolute; top: -34px; left: 50%; transform: translateX(-50%);
  width: 62px; height: 62px; border-radius: 50%; display: grid; place-items: center;
  background: var(--gb-green); border: 4px solid #fff; box-shadow: 0 10px 22px -6px rgba(22, 163, 74, .55);
  transition: transform .15s;
}
.gb-nav__circ svg { width: 30px; height: 30px; color: #fff; }
.gb-nav__add:active .gb-nav__circ { transform: translateX(-50%) scale(.94); }

/* page er niche jayga rakhe, jate nav content dhake na dey */
.gb-nav-spacer { height: calc(var(--gb-nav-h) + env(safe-area-inset-bottom, 0px)); }

/* ==========================================================================
   DESKTOP POLISH (>= 1024px)
   Mobile e image er moto same UI thakbe; desktop e hero boro, centered
   o professional lagbe — kono layout break hobe na.
   ========================================================================== */
@media (min-width: 1024px) {
  .gb-hero {
    min-height: 100vh;
    min-height: 100svh;
    padding: calc(56px + env(safe-area-inset-top, 0px)) 24px 150px;
    display: flex; flex-direction: column; justify-content: center;
  }
  .gb-hero__in { max-width: 640px; width: 100%; }

  /* stats pill — live stats aro upore uthano ebong nicher text box er upore space deya */
  .gb-stats,
  .gb-hero .gb-stats {
    margin-top: -24px;
    margin-bottom: 30px;
    font-size: 13.5px;
    padding: 10px 22px;
    border-radius: 9999px;
    max-width: 520px;
    box-shadow: 0 10px 26px -16px rgba(15, 42, 74, .25);
  }

  /* badge + headings */
  .gb-tag,
  .gb-hero .gb-tag { margin-top: 0; font-size: 14px; padding: 7px 16px; border-radius: 16px; }
  .gb-eyebrow,
  .gb-hero .gb-eyebrow { font-size: 17px; margin-top: 10px; }
  .gb-hl,
  .gb-hero .gb-hl { font-size: clamp(40px, 6.5vh, 52px); }

  /* chips */
  .gb-chips,
  .gb-hero .gb-chips { gap: 10px; margin-top: 10px; }
  .gb-chip,
  .gb-hero .gb-chip { font-size: 14px; padding: 6px 15px; border-radius: 16px; }
  .gb-chip svg,
  .gb-hero .gb-chip svg { width: 16px; height: 16px; }

  /* CTA */
  .gb-cta,
  .gb-hero .gb-cta { margin-top: 18px; border-radius: 22px; }
  .gb-cta a,
  .gb-hero .gb-cta a { padding: 15px 10px; transition: filter .15s, transform .15s; }
  .gb-cta a:hover,
  .gb-hero .gb-cta a:hover { filter: brightness(1.06); transform: translateY(-1px); }
  .gb-cta svg,
  .gb-hero .gb-cta svg { width: 30px; height: 30px; }
  .gb-cta b,
  .gb-hero .gb-cta b { font-size: 21px; }
  .gb-cta small,
  .gb-hero .gb-cta small { font-size: 13.5px; }

  .gb-trust,
  .gb-hero .gb-trust { font-size: 12.5px; padding: 6px 15px; margin-top: 12px; border-radius: 16px; }

  /* skyline + dotted route boro screen e proportionate, hero er bottom e fixed */
  .gb-hero__sky { height: 230px; }
  .gb-route { width: min(92%, 620px); bottom: 14px; }

  /* bottom menu bar SHUDHU phone view e — desktop e hide */
  .gb-nav, .gb-nav-spacer { display: none; }
}

/* choto height er laptop (<= 820px) e aro compact — sob fold er moddhe fit hobe */
@media (min-width: 1024px) and (max-height: 820px) {
  .gb-hero { padding-top: calc(48px + env(safe-area-inset-top, 0px)); padding-bottom: 120px; }
  .gb-stats,
  .gb-hero .gb-stats { margin-top: -18px; margin-bottom: 24px; }
  .gb-tag,
  .gb-hero .gb-tag { margin-top: 0; }
  .gb-hl,
  .gb-hero .gb-hl { font-size: clamp(34px, 6vh, 44px); }
  .gb-cta a,
  .gb-hero .gb-cta a { padding: 11px 10px; }
  .gb-cta svg,
  .gb-hero .gb-cta svg { width: 26px; height: 26px; }
  .gb-cta b,
  .gb-hero .gb-cta b { font-size: 19px; }
  .gb-hero__sky { height: 190px; }
}

/* khub boro monitor (>= 1600px) e aro balanced */
@media (min-width: 1600px) {
  .gb-hero__in { max-width: 700px; }
  .gb-hl { font-size: clamp(46px, 6.5vh, 58px); }
  .gb-route { width: min(92%, 700px); }
}

/* ---------- a11y / motion ---------- */
.gb-hero a:focus-visible, .gb-nav a:focus-visible { outline: 3px solid var(--gb-blue); outline-offset: 2px; border-radius: 10px; }
@media (prefers-reduced-motion: reduce) {
  .gb-route__line, .gb-route__pulse { animation: none; }
  .gb-route .gb-mv { display: none; }
  .gb-cta a, .gb-nav__circ { transition: none; }
}

/* Post Type Badge Helpers */
.gb-type-offer {
  background-color: #c25e00 !important;
  color: #ffffff !important;
}
.gb-type-request {
  background-color: #9333ea !important;
  color: #ffffff !important;
}

body.location-modal-open .gb-nav,
body.location-modal-open .gb-nav-spacer {
  display: none !important;
}

