/* map.craftik.bd — the Craftik "find us" page.
   The office sign-in's night room fills the screen (scene/scene.css); the page
   sits on frosted glass over it. Desktop: the room on the left, a glass panel
   on the right. Phone: the room is a hero strip, glass cards below it.
   Office palette (accent #DD792C / lit #EB9447), Space Grotesk. Dark only:
   it is a night scene, same as the office sign-in. */

:root {
  --bg: #0d0906;
  --accent: #DD792C;
  --accent-lit: #EB9447;
  --on-accent: #140a02;
  --glass: rgba(16, 11, 8, .56);
  --glass-strong: rgba(16, 11, 8, .72);
  --line: rgba(255, 255, 255, .08);
  --line-warm: rgba(221, 121, 44, .24);
  --pill-fill: rgba(221, 121, 44, .10);
  --pill-stroke: rgba(221, 121, 44, .32);
  --ink: #fff;
  --ink-dim: rgba(255, 255, 255, .68);
  --ink-faint: rgba(255, 255, 255, .42);
  --rule: rgba(255, 255, 255, .08);
  --live: #3FD66B;
  --down: #FF7A66;

  --r: 20px;
  --panel-w: clamp(440px, 38vw, 580px);
  --hero: 0px;
  --font: "Space Grotesk", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  --ease: cubic-bezier(.22, .61, .36, 1);
  --spring: cubic-bezier(.34, 1.56, .64, 1);
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }

html { background: var(--bg); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  color: var(--ink);
  font: 400 15px/1.5 var(--font);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: inherit; }
svg { width: 18px; height: 18px; flex: none; }
:focus-visible { outline: 2px solid var(--accent-lit); outline-offset: 3px; }

/* ------------------------------------------------------------- frame */
.wrap {
  position: relative;
  z-index: 1;
  display: flex;
  min-height: 100vh;
  min-height: 100dvh;
  pointer-events: none;                 /* the room stays clickable: pet the cat */
}
.art { flex: 1 1 auto; min-width: 0; }

.panel {
  flex: 0 0 var(--panel-w);
  width: var(--panel-w);
  min-height: 100vh;
  padding: 28px 36px 110px;
  background: rgba(16, 11, 8, .46);
  -webkit-backdrop-filter: blur(14px) saturate(130%);
          backdrop-filter: blur(14px) saturate(130%);
  border-left: 1px solid rgba(255, 255, 255, .06);
  box-shadow: inset 1px 0 0 rgba(221, 121, 44, .07), -30px 0 80px rgba(0, 0, 0, .35);
  pointer-events: auto;
}

@media (max-width: 900px) {
  .art { display: none; }
  .panel {
    flex: 1 1 auto;
    width: 100%;
    max-width: 560px;
    margin: 0 auto;
    padding: max(calc(var(--hero) - 36px), 16px) max(16px, env(safe-area-inset-right)) 104px max(16px, env(safe-area-inset-left));
    background: transparent;
    -webkit-backdrop-filter: none;
            backdrop-filter: none;
    border: 0;
    box-shadow: none;
    pointer-events: none;
  }
  .panel > * { pointer-events: auto; }
}

/* ------------------------------------------------------------ header */
.top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 26px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -.01em;
}
.brand img { display: block; }
.brand b { color: var(--accent-lit); font-weight: 600; }

.status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border: 1px solid color-mix(in srgb, var(--down) 30%, transparent);
  border-radius: 999px;
  background: color-mix(in srgb, var(--down) 12%, rgba(16, 11, 8, .6));
  color: var(--down);
  font-size: 13px;
  font-weight: 500;
  -webkit-backdrop-filter: blur(10px);
          backdrop-filter: blur(10px);
}
.status i { width: 7px; height: 7px; border-radius: 50%; background: currentColor; box-shadow: 0 0 10px currentColor; }
.status.is-open {
  border-color: color-mix(in srgb, var(--live) 30%, transparent);
  background: color-mix(in srgb, var(--live) 12%, rgba(16, 11, 8, .6));
  color: var(--live);
}
.status.is-open i { animation: beat 2.4s ease-in-out infinite; }
@keyframes beat { 50% { opacity: .35; box-shadow: none; } }

/* desktop: the room already carries the big brand; the panel keeps just the badge */
@media (min-width: 901px) {
  .brand { visibility: hidden; }
}

/* phone: the header rides on the room and scrolls away with it */
@media (max-width: 900px) {
  .top {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    z-index: 5;
    margin: 0;
    padding: max(12px, env(safe-area-inset-top)) max(16px, env(safe-area-inset-right)) 12px max(16px, env(safe-area-inset-left));
    background: linear-gradient(180deg, rgba(13, 9, 6, .82) 30%, rgba(13, 9, 6, 0));
    padding-bottom: 28px;
  }
  .brand { text-shadow: 0 1px 12px rgba(0, 0, 0, .8); }
}

/* -------------------------------------------------------------- hero */
.hero { margin-bottom: 22px; animation: rise .7s var(--ease) .1s both; }
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 0 0 10px;
  color: var(--accent-lit);
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.eyebrow svg { width: 15px; height: 15px; }
h1 {
  margin: 0;
  font-size: clamp(34px, 3.4vw, 50px);
  line-height: 1.02;
  font-weight: 700;
  letter-spacing: -.035em;
  text-shadow: 0 2px 30px rgba(0, 0, 0, .5);
}
.lede { margin: 12px 0 0; color: var(--ink-dim); font-size: 16px; line-height: 1.45; }
.lede:empty { display: none; }

@media (max-width: 900px) {
  .hero {
    padding: 22px 20px 20px;
    border: 1px solid var(--line);
    border-radius: 22px;
    background: var(--glass-strong);
    -webkit-backdrop-filter: blur(14px) saturate(130%);
            backdrop-filter: blur(14px) saturate(130%);
    box-shadow: 0 30px 80px rgba(0, 0, 0, .55);
    margin-bottom: 12px;
  }
  h1 { font-size: 32px; }
  .lede { font-size: 15px; }
}

/* ------------------------------------------------------------- cards */
.layout { display: grid; gap: 14px; }

.card {
  position: relative;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background:
    linear-gradient(180deg, rgba(221, 121, 44, .06), rgba(221, 121, 44, 0) 60%),
    var(--glass);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .04), 0 18px 50px rgba(0, 0, 0, .28);
  animation: rise .6s var(--ease) both;
}
.layout > :nth-child(1) { animation-delay: .18s; }
.layout > :nth-child(2) { animation-delay: .26s; }
.layout > :nth-child(3) { animation-delay: .34s; }
.layout > :nth-child(4) { animation-delay: .42s; }
.layout > :nth-child(5) { animation-delay: .5s; }
.layout > :nth-child(6) { animation-delay: .58s; }
@keyframes rise { from { opacity: 0; transform: translate3d(0, 14px, 0); } }

@media (max-width: 900px) {
  .card {
    background:
      linear-gradient(180deg, rgba(221, 121, 44, .06), rgba(221, 121, 44, 0) 60%),
      var(--glass-strong);
    -webkit-backdrop-filter: blur(14px) saturate(130%);
            backdrop-filter: blur(14px) saturate(130%);
  }
  .layout { gap: 12px; }
}

.card__head { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.card__icon {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border: 1px solid var(--pill-stroke);
  border-radius: 10px;
  background: var(--pill-fill);
  color: var(--accent-lit);
  flex: none;
}
.card__icon svg { width: 17px; height: 17px; }
.card__title { flex: 1; margin: 0; font-size: 17px; font-weight: 600; color: var(--ink); letter-spacing: -.01em; }

/* --------------------------------------------------------------- map */
.card--map { padding: 6px; }
.map {
  position: relative;
  height: 280px;
  border-radius: calc(var(--r) - 5px);
  overflow: hidden;
  background: #15171c;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .06);
}
@media (min-width: 901px) { .map { height: clamp(260px, 36vh, 380px); } }
.map iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  /* Google's light map, turned into a night map that sits in the room */
  filter: invert(.9) hue-rotate(180deg) saturate(.6) brightness(.92) contrast(.95);
  opacity: 0;
  transition: opacity .5s ease;
}
.map iframe.is-in { opacity: 1; }
.map__ph { position: absolute; inset: 0; display: grid; place-items: center; color: var(--accent); opacity: .45; }
.map__ph svg { width: 40px; height: 40px; }
.map__ph::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, transparent 30%, rgba(255, 255, 255, .05) 50%, transparent 70%);
  background-size: 250% 100%;
  animation: shimmer 1.6s linear infinite;
}
@keyframes shimmer { from { background-position: 150% 0; } to { background-position: -100% 0; } }

.map__actions { display: grid; gap: 8px; padding: 10px 6px 6px; }
.btnrow { display: grid; grid-template-columns: repeat(auto-fit, minmax(0, 1fr)); gap: 8px; }

/* ----------------------------------------------------------- buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 48px;
  padding: 0 18px;
  border: 1px solid transparent;
  border-radius: 14px;
  font: 600 15px/1 var(--font);
  text-decoration: none;
  cursor: pointer;
  transition: transform .15s var(--ease), background-color .2s ease, border-color .2s ease, box-shadow .2s ease;
  -webkit-tap-highlight-color: transparent;
}
.btn:active { transform: scale(.97); }
.btn--primary {
  position: relative;
  overflow: hidden;
  min-height: 56px;
  font-size: 16px;
  font-weight: 700;
  color: var(--on-accent);
  background: var(--accent);
  box-shadow: 0 10px 28px rgba(221, 121, 44, .30), inset 0 1px 0 rgba(255, 255, 255, .28);
}
.btn--primary:hover { background: var(--accent-lit); transform: translateY(-1px); box-shadow: 0 14px 34px rgba(221, 121, 44, .38), inset 0 1px 0 rgba(255, 255, 255, .28); }
.btn--primary:active { transform: translateY(0) scale(.98); }
.btn--primary::after {                  /* a slow glint across the button, now and then */
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, transparent 35%, rgba(255, 255, 255, .32) 50%, transparent 65%);
  transform: translateX(-120%);
  animation: glint 6s ease-in-out 1.6s infinite;
  pointer-events: none;
}
@keyframes glint { 0% { transform: translateX(-120%); } 18%, 100% { transform: translateX(120%); } }
.btn__tail { width: 15px; height: 15px; opacity: .65; }
.btn--ghost { color: var(--ink); border-color: var(--line); background: rgba(255, 255, 255, .04); }
.btn--ghost svg { color: var(--accent-lit); }
.btn--ghost:hover { border-color: var(--pill-stroke); background: var(--pill-fill); }
.btn--quiet {
  width: 100%;
  margin-top: 12px;
  min-height: 44px;
  color: var(--ink);
  border-color: var(--line);
  background: rgba(255, 255, 255, .03);
  font-weight: 500;
}
.btn--quiet:hover { border-color: var(--pill-stroke); }
.btn--quiet svg { color: var(--accent-lit); }
.btn[disabled] { opacity: .6; cursor: default; }

.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border: 1px solid var(--pill-stroke);
  border-radius: 999px;
  background: var(--pill-fill);
  color: var(--accent-lit);
  font: 500 13px/1 var(--font);
  cursor: pointer;
}
.chip svg { width: 14px; height: 14px; }
.iconbtn {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--ink-faint);
  cursor: pointer;
  flex: none;
}
.iconbtn:hover { color: var(--accent-lit); background: var(--pill-fill); }
.iconbtn svg { width: 16px; height: 16px; }
.is-done { color: var(--live) !important; }

/* ----------------------------------------------------------- address */
.place { display: flex; align-items: center; gap: 10px; margin: 0 0 8px; font-size: 20px; font-weight: 600; letter-spacing: -.01em; }
.place__badge {
  padding: 3px 10px;
  border-radius: 8px;
  background: var(--accent);
  color: var(--on-accent);
  font-size: 15px;
  font-weight: 700;
}
.place__badge:empty { display: none; }
.address { margin: 0; color: var(--ink-dim); font-size: 15px; }

.facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  margin: 16px 0 0;
  border: 1px solid var(--rule);
  border-radius: 14px;
  overflow: hidden;
  background: var(--rule);
}
.facts div { padding: 10px 12px; background: rgba(10, 7, 5, .82); min-width: 0; }
.facts div.is-wide { grid-column: 1 / -1; }
.facts dt { font-size: 12px; color: var(--ink-faint); letter-spacing: .02em; }
.facts dd { margin: 2px 0 0; font-size: 14.5px; font-weight: 500; overflow-wrap: anywhere; }

/* -------------------------------------------------------------- rows */
.rows { list-style: none; margin: 0; padding: 0; }
.rows li { display: flex; align-items: center; gap: 10px; padding: 8px 0; border-top: 1px solid var(--rule); }
.rows li:first-child { border-top: 0; padding-top: 0; }
.rows__k { width: 100px; flex: none; color: var(--ink-faint); font-size: 13px; }
.rows__v { flex: 1; min-width: 0; font-weight: 500; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }

/* ------------------------------------------------------------- hours */
.hours__now { margin: 0 0 10px; font-weight: 500; }
.hours__now.is-open { color: var(--live); }
.hours__now.is-closed { color: var(--down); }
.hours { list-style: none; margin: 0; padding: 0; }
.hours li { display: flex; justify-content: space-between; gap: 12px; padding: 7px 0; border-top: 1px solid var(--rule); font-size: 14.5px; }
.hours li:first-child { border-top: 0; }
.hours li span:first-child { color: var(--ink-dim); }
.hours li span:last-child { font-variant-numeric: tabular-nums; }
.hours li.is-today {
  margin: 0 -10px;
  padding: 7px 10px;
  border-radius: 10px;
  border-top-color: transparent;
  background: var(--pill-fill);
}
.hours li.is-today + li { border-top-color: transparent; }
.hours li.is-today span { color: var(--accent-lit); font-weight: 600; }
.hours li.is-shut span:last-child { color: var(--ink-faint); }
.hours--off { margin-top: 12px; padding-top: 4px; border-top: 1px dashed var(--pill-stroke); }
.hours--off li span:last-child { color: var(--ink-faint); }

/* ------------------------------------------------------------- steps */
.steps { list-style: none; margin: 0; padding: 0; counter-reset: s; }
.steps li { position: relative; padding: 0 0 14px 40px; counter-increment: s; }
.steps li:last-child { padding-bottom: 0; }
.steps li::before {
  content: counter(s);
  position: absolute;
  left: 0;
  top: 0;
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--pill-fill);
  border: 1px solid var(--pill-stroke);
  color: var(--accent-lit);
  font-size: 13px;
  font-weight: 600;
}
.steps li:not(:last-child)::after {
  content: "";
  position: absolute;
  left: 13px;
  top: 30px;
  bottom: 4px;
  width: 1px;
  background: var(--pill-stroke);
}
.steps b { display: block; font-weight: 600; }
.steps p { margin: 2px 0 0; color: var(--ink-dim); font-size: 14.5px; white-space: pre-line; }

/* -------------------------------------------------------------- call */
.card--call { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.card--call:hover { border-color: var(--pill-stroke); }
.call__text { display: flex; flex-direction: column; }
.call__text b { color: var(--accent-lit); font-weight: 600; }
.call__text span { color: var(--ink-dim); font-variant-numeric: tabular-nums; }

/* -------------------------------------------------------------- misc */
.error {
  margin: 14px 0 0;
  padding: 12px 14px;
  border: 1px solid rgba(255, 122, 102, .4);
  border-radius: 12px;
  background: rgba(255, 122, 102, .08);
  color: #ffd9d2;
  font-size: 14px;
}
.foot {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 22px;
  color: var(--ink-faint);
  font-size: 13px;
}
.foot a { color: var(--ink-dim); text-decoration: none; }
.foot a:hover { color: var(--accent-lit); }
@media (max-width: 900px) { .foot { padding: 0 4px; } }

/* ------------------------------------------------------ office button */
.officebtn {
  position: fixed;
  right: max(18px, env(safe-area-inset-right));
  bottom: max(18px, env(safe-area-inset-bottom));
  z-index: 20;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 7px 16px 7px 7px;
  border: 1px solid var(--pill-stroke);
  border-radius: 999px;
  background: rgba(22, 13, 7, .78);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
          backdrop-filter: blur(16px) saturate(140%);
  box-shadow: 0 14px 40px rgba(0, 0, 0, .5), inset 0 1px 0 rgba(255, 255, 255, .06);
  color: var(--ink);
  font: 600 15px/1 var(--font);
  text-decoration: none;
  animation: pop .6s var(--spring) .9s both;
  transition: transform .2s var(--ease), border-color .2s ease, box-shadow .2s ease;
  -webkit-tap-highlight-color: transparent;
}
.officebtn:hover {
  transform: translateY(-2px);
  border-color: var(--accent);
  box-shadow: 0 18px 44px rgba(0, 0, 0, .55), 0 0 0 4px rgba(221, 121, 44, .12);
}
.officebtn:active { transform: scale(.96); }
.officebtn__icon {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--on-accent);
  box-shadow: 0 4px 14px rgba(221, 121, 44, .4);
}
.officebtn__icon svg { width: 18px; height: 18px; }
.officebtn__tail { width: 14px; height: 14px; color: var(--ink-faint); transition: color .2s ease, transform .2s var(--ease); }
.officebtn:hover .officebtn__tail { color: var(--accent-lit); transform: translate(1px, -1px); }
@keyframes pop { from { opacity: 0; transform: translateY(16px) scale(.9); } }

/* ------------------------------------------------------------- toast */
.toast {
  position: fixed;
  left: 50%;
  bottom: max(84px, calc(env(safe-area-inset-bottom) + 70px));
  z-index: 30;
  padding: 10px 18px;
  border-radius: 999px;
  background: #fff;
  color: #140a02;
  font-size: 14px;
  font-weight: 600;
  opacity: 0;
  transform: translate(-50%, 12px);
  pointer-events: none;
  transition: opacity .25s ease, transform .25s var(--ease);
}
.toast.is-on { opacity: 1; transform: translate(-50%, 0); }

@media (prefers-reduced-motion: reduce) {
  .card, .hero, .officebtn, .status.is-open i, .btn--primary::after, .map__ph::after { animation: none !important; }
}
