/* Cholent Check — map.css
   Full-screen map and pins
   Load order: 2 of 7. Later files intentionally override earlier ones. */

/* ===================== MAP (full screen) ===================== */
body.map-open {
  overflow: hidden
}

body.map-open footer {
  display: none
}

.mapx {
  position: fixed;
  left: 0;
  right: 0;
  top: calc(var(--nav-h) + env(safe-area-inset-top));
  bottom: var(--tab-h);
  z-index: 1;
  isolation: isolate;
  background: #e9eef2;
  overflow: hidden
}

#bigmap {
  position: absolute;
  inset: 0
}

.map-top {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  z-index: 20;
  padding: 12px 14px 0;
  pointer-events: none;
  max-width: 620px;
  margin: 0 auto
}

.map-top>* {
  pointer-events: auto
}

.map-search {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-radius: 14px;
  padding: 0 6px 0 14px;
  height: 48px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, .12)
}

.map-search .ic-svg {
  color: var(--faint);
  width: 18px;
  height: 18px
}

.map-search input {
  flex: 1;
  min-height: 0;
  height: 46px;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  padding: 0;
  font-size: 17px
}

.map-search .clear {
  width: 28px;
  height: 28px;
  min-height: 28px;
  padding: 0;
  border-radius: 50%;
  background: #e5e5ea;
  color: var(--muted);
  font-size: 13px
}

.map-chips {
  display: flex;
  gap: 8px;
  margin-top: 10px;
  overflow-x: auto;
  scrollbar-width: none;
  padding-bottom: 4px
}

.map-chips::-webkit-scrollbar {
  display: none
}

.mchip {
  flex: none;
  min-height: 34px;
  padding: 6px 14px;
  font-size: 14px;
  background: rgba(255, 255, 255, .94);
  color: var(--ink);
  box-shadow: 0 2px 10px rgba(0, 0, 0, .10);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px)
}

.mchip:hover {
  background: #fff
}

.mchip.on {
  background: var(--ink);
  color: #fff
}

.mchip .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #30d158
}

.map-fab {
  position: absolute;
  right: 14px;
  z-index: 20;
  width: 46px;
  height: 46px;
  min-height: 46px;
  padding: 0;
  border-radius: 50%;
  background: #fff;
  color: #0a84ff;
  box-shadow: 0 4px 16px rgba(0, 0, 0, .16);
  transition: bottom .5s var(--spring), transform .25s var(--spring)
}

.map-fab:hover {
  background: #fff
}

.map-fab .ic-svg {
  width: 22px;
  height: 22px
}

.map-fab.fit {
  color: var(--ink)
}

.map-count {
  position: absolute;
  left: 14px;
  z-index: 20;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-radius: 99px;
  padding: 5px 12px;
  font-size: 13px;
  font-weight: 600;
  box-shadow: 0 2px 10px rgba(0, 0, 0, .1);
  transition: bottom .5s var(--spring)
}

.map-cards {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 12px;
  z-index: 20;
  display: flex;
  gap: 10px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-padding: 0 16px;
  padding: 4px 16px 6px;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  transition: transform .5s var(--spring)
}

.map-cards::-webkit-scrollbar {
  display: none
}

.map-cards.hide {
  transform: translateY(130%)
}

.mcard {
  flex: 0 0 min(84vw, 330px);
  scroll-snap-align: start;
  background: #fff;
  border-radius: 18px;
  padding: 14px 16px;
  box-shadow: 0 8px 28px rgba(0, 0, 0, .14);
  cursor: pointer;
  border: 2px solid transparent;
  transition: border-color .25s, transform .35s var(--spring)
}

.mcard.sel {
  border-color: var(--ink)
}

.mcard:active {
  transform: scale(.98)
}

.mc-top {
  display: flex;
  gap: 12px;
  align-items: flex-start
}

.mc-top .place {
  font-size: 17px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis
}

.mc-score {
  margin-left: auto;
  text-align: right;
  flex: none
}

.mc-score b {
  font-size: 22px;
  letter-spacing: -.03em;
  display: block;
  line-height: 1
}

.mc-score .stars {
  font-size: 11px;
  margin-top: 3px
}

.mc-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 6px;
  font-size: 13px;
  color: var(--muted);
  flex-wrap: wrap
}

.mc-meta .km {
  color: #0a84ff;
  font-weight: 600
}

.mc-actions {
  display: flex;
  gap: 8px;
  margin-top: 12px
}

.mc-actions>* {
  flex: 1;
  min-height: 38px;
  font-size: 14px
}

.map-empty {
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 16px;
  z-index: 20;
  background: #fff;
  border-radius: 18px;
  padding: 18px;
  text-align: center;
  box-shadow: 0 8px 28px rgba(0, 0, 0, .14);
  max-width: 420px;
  margin: 0 auto
}

.map-empty p {
  margin: 4px 0 12px;
  color: var(--muted);
  font-size: 15px
}

/* pins */
.mpin-wrap {
  background: none;
  border: 0
}

.mpin {
  position: absolute;
  left: 0;
  bottom: 0;
  transform: translate(-50%, 0);
  display: flex;
  align-items: center;
  gap: 4px;
  white-space: nowrap;
  background: #fff;
  color: var(--ink);
  font: 600 13px/1 -apple-system, BlinkMacSystemFont, "SF Pro Text", sans-serif;
  letter-spacing: -.01em;
  padding: 7px 10px;
  border-radius: 99px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, .22), 0 0 0 .5px rgba(0, 0, 0, .06);
  transition: transform .3s var(--spring), background .2s, color .2s
}

.mpin::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -5px;
  width: 10px;
  height: 10px;
  background: inherit;
  transform: translateX(-50%) rotate(45deg);
  border-radius: 0 0 3px 0;
  box-shadow: 2px 2px 3px rgba(0, 0, 0, .08)
}

.mpin .st {
  color: var(--gold)
}

.mpin .od {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #30d158
}

.mpin .nm {
  display: none;
  max-width: 140px;
  overflow: hidden;
  text-overflow: ellipsis;
  font-weight: 500
}

.mpin.sel {
  background: var(--ink);
  color: #fff;
  transform: translate(-50%, 0) scale(1.15);
  z-index: 1000
}

.mpin.sel .st {
  color: #ffc76b
}

.mpin.sel .nm {
  display: inline
}

.leaflet-marker-icon.sel-z {
  z-index: 9999 !important
}

.me-dot {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #0a84ff;
  border: 3px solid #fff;
  box-shadow: 0 1px 6px rgba(0, 0, 0, .3);
  position: relative
}

.me-dot::before {
  content: "";
  position: absolute;
  inset: -12px;
  border-radius: 50%;
  background: rgba(10, 132, 255, .22);
  animation: pulse 2s ease-out infinite
}

@keyframes pulse {
  0% {
    transform: scale(.4);
    opacity: 1
  }

  100% {
    transform: scale(1.4);
    opacity: 0
  }
}

.leaflet-control-attribution {
  font-size: 9px !important;
  background: rgba(255, 255, 255, .6) !important
}

.leaflet-control-zoom {
  display: none
}

@media(hover:hover) {
  .place-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg)
  }

  .chip:hover {
    background: #e8e8ed
  }

  .chip.on:hover {
    background: #000
  }

  .leaflet-control-zoom {
    display: block;
    border: 0 !important;
    box-shadow: 0 4px 16px rgba(0, 0, 0, .14) !important;
    border-radius: 12px !important;
    overflow: hidden
  }
}

@media(min-width:761px) {
  .map-cards {
    left: auto;
    right: 16px;
    top: 132px;
    bottom: 16px;
    width: 360px;
    flex-direction: column;
    overflow-y: auto;
    overflow-x: hidden;
    scroll-snap-type: y proximity;
    padding: 0 4px 8px
  }

  .mcard {
    flex: none;
    width: 100%
  }

  .map-top {
    margin: 0;
    max-width: 520px
  }

  .map-fab,
  .map-count {
    display: none
  }
}

@media(max-width:760px) {
  :root {
    --nav-h: 44px
  }

  .wrap {
    padding: 0 16px calc(110px + env(safe-area-inset-bottom))
  }

  .topin {
    padding: 0 16px
  }

  nav .nl {
    display: none
  }

  .mob-only {
    display: inline-flex
  }

  #userzone .uz-out {
    display: none
  }

  .row {
    grid-template-columns: 1fr
  }

  .card {
    padding: 20px 18px;
    margin: 12px 0
  }

  .card>h2,
  .card h2 {
    font-size: 22px
  }

  .hero {
    padding: 30px 2px 4px
  }

  .hero h1 {
    font-size: 34px
  }

  .cine {
    min-height: 88svh
  }

  .cine-in {
    padding-top: calc(var(--nav-h) + env(safe-area-inset-top) + 9vh)
  }

  .cine h1 {
    font-size: 44px
  }

  .cine-sub {
    font-size: 17px;
    padding: 0 6px
  }

  .cine-bg img {
    width: 170vw;
    margin-bottom: -12svh
  }

  .cine .hero-cta {
    gap: 10px;
    padding: 0 10px
  }

  .cine .hero-cta button {
    flex: 1;
    min-width: 0;
    max-width: 200px
  }

  .float-card {
    margin-top: -56px !important;
    padding: 14px
  }

  .searchbar .kbd {
    display: none
  }

  .quick {
    flex-wrap: nowrap;
    overflow-x: auto;
    scrollbar-width: none;
    margin: 12px -14px 0;
    padding: 0 14px
  }

  .quick::-webkit-scrollbar {
    display: none
  }

  .quick>* {
    flex: none
  }

  .section-head {
    margin: 36px 2px 8px
  }

  .place-card,
  .rev {
    padding: 18px
  }

  .bars {
    grid-template-columns: 1fr
  }

  .bar .t {
    flex-basis: 120px
  }

  .tabs {
    display: flex;
    width: 100%
  }

  .tabs button {
    flex: 1;
    padding: 5px 6px
  }

  .bdgrow {
    flex-wrap: nowrap;
    overflow-x: auto;
    scrollbar-width: none;
    margin: 10px -18px 0;
    padding: 0 18px
  }

  .bdg {
    flex: none
  }

  .hrow {
    grid-template-columns: 62px 1fr 1fr 28px;
    gap: 6px
  }

  .step-title {
    font-size: 30px
  }

  .flow-head {
    margin: 0 -16px;
    padding: 8px 16px 0
  }

  .flow-foot {
    margin: 24px -16px 0;
    padding: 12px 16px calc(12px + env(safe-area-inset-bottom))
  }

  .about-hero {
    padding: 56px 4px 4px
  }

  .founders {
    margin-top: 22px !important
  }

  .founders img {
    border-radius: 20px
  }

  .tiles {
    grid-template-columns: 1fr
  }

  .lit-wrap {
    margin: 64px auto 10px
  }

  .chapter {
    padding-top: 44px
  }

  .bigquote {
    margin: 48px 0;
    border-radius: 24px
  }
}

@media (prefers-reduced-motion: reduce) {

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important
  }

  .reveal,
  .lineup>*,
  .cine-bg img {
    opacity: 1;
    transform: none
  }
}
