/* =========================================================
   JUPKO — Yakınındaki İkinci El Pazarı
   Design tokens
   ========================================================= */
@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@500;600;700&family=Inter:wght@400;500;600;700&family=JetBrains+Mono:wght@500;600&display=swap');

:root{
  /* Color */
  --ink:      #0F1E2E;   /* deep navy — header / hero */
  --ink-2:    #16283C;
  --pin:      #FF5A36;   /* signature pin-orange accent */
  --pin-dark: #E24322;
  --teal:     #0E7C7B;   /* secondary accent — map / trust */
  --paper:    #F6F5F1;   /* warm off-white background */
  --card:     #FFFFFF;
  --slate:    #1B2430;   /* body text */
  --slate-60: rgba(27,36,48,.62);
  --slate-40: rgba(27,36,48,.40);
  --mist:     #E7E9E4;   /* borders */
  --line:     #DBDED6;
  --success:  #1D8A4C;
  --danger:   #D33636;

  /* Type */
  --display: 'Space Grotesk', system-ui, sans-serif;
  --body:    'Inter', system-ui, sans-serif;
  --mono:    'JetBrains Mono', ui-monospace, monospace;

  /* Shape / motion */
  --r-sm: 10px;
  --r-md: 16px;
  --r-lg: 24px;
  --ease: cubic-bezier(.22,1,.36,1);
  --shadow-1: 0 1px 2px rgba(15,30,46,.06), 0 1px 1px rgba(15,30,46,.04);
  --shadow-2: 0 8px 24px rgba(15,30,46,.10), 0 2px 6px rgba(15,30,46,.06);
  --shadow-3: 0 20px 48px rgba(15,30,46,.18);
}

@media (prefers-reduced-motion: reduce){
  *{ animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

*{ box-sizing: border-box; }
html{ -webkit-text-size-adjust: 100%; }
body{
  margin:0;
  font-family: var(--body);
  color: var(--slate);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}
img{ max-width:100%; display:block; }
a{ color:inherit; text-decoration:none; }
button{ font-family: inherit; }
input, select, textarea{ font-family: inherit; }
:focus-visible{ outline: 3px solid var(--teal); outline-offset: 2px; }

.mono{ font-family: var(--mono); }

.container{
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 20px;
}

/* =========================================================
   Map-grid texture (signature ambient background)
   ========================================================= */
.map-grid{
  background-image:
    radial-gradient(rgba(255,255,255,.16) 1px, transparent 1.6px);
  background-size: 22px 22px;
}
.map-grid-light{
  background-image:
    radial-gradient(rgba(15,30,46,.07) 1px, transparent 1.6px);
  background-size: 24px 24px;
}

/* =========================================================
   Header
   ========================================================= */
.site-header{
  position: sticky; top:0; z-index: 60;
  background: var(--ink);
  color:#fff;
  box-shadow: var(--shadow-2);
}
.header-row{
  display:flex; align-items:center; gap:16px;
  height:68px;
}
.brand{
  display:flex; align-items:center; gap:9px;
  font-family: var(--display); font-weight:700; font-size:20px;
  letter-spacing:-.01em;
  flex-shrink:0;
  color:#fff;
}
.brand-pin{
  width:26px; height:26px; flex-shrink:0;
  display:flex; align-items:center; justify-content:center;
}
.brand-pin svg{ width:100%; height:100%; }

.header-search{
  flex:1; max-width:560px;
  display:none;
  position:relative;
}
.header-search input{
  width:100%; height:42px;
  border-radius: 999px; border:1px solid transparent;
  padding: 0 44px 0 42px;
  background: rgba(255,255,255,.12);
  color:#fff; font-size:14.5px;
  transition: background .2s var(--ease), border-color .2s var(--ease);
}
.header-search input::placeholder{ color: rgba(255,255,255,.55); }
.header-search input:focus{ background: rgba(255,255,255,.18); border-color: rgba(255,255,255,.3); }
.header-search svg{ position:absolute; left:14px; top:50%; transform:translateY(-50%); width:17px; height:17px; opacity:.6; }

.header-actions{ display:flex; align-items:center; gap:10px; margin-left:auto; }

.loc-chip{
  display:flex; align-items:center; gap:6px;
  background: rgba(255,255,255,.10);
  border:1px solid rgba(255,255,255,.14);
  border-radius:999px; padding:7px 12px 7px 10px;
  font-size:12.5px; color:#fff; cursor:pointer;
  white-space:nowrap;
  transition: background .2s var(--ease);
}
.loc-chip:hover{ background: rgba(255,255,255,.16); }
.loc-chip svg{ width:14px; height:14px; color: var(--pin); flex-shrink:0; }

.btn{
  display:inline-flex; align-items:center; justify-content:center; gap:8px;
  border:none; cursor:pointer;
  border-radius: 999px;
  font-weight:600; font-size:14.5px;
  padding: 10px 18px;
  transition: transform .15s var(--ease), background .2s var(--ease), box-shadow .2s var(--ease);
  white-space: nowrap;
}
.btn:active{ transform: scale(.97); }
.btn-primary{ background: var(--pin); color:#fff; box-shadow: 0 6px 16px rgba(255,90,54,.32); }
.btn-primary:hover{ background: var(--pin-dark); }
.btn-ghost{ background: rgba(255,255,255,.10); color:#fff; }
.btn-ghost:hover{ background: rgba(255,255,255,.18); }
.btn-outline{ background:transparent; border:1.5px solid var(--line); color: var(--slate); }
.btn-outline:hover{ border-color: var(--ink); }
.btn-teal{ background: var(--teal); color:#fff; }
.btn-teal:hover{ background:#0b6665; }
.btn-block{ width:100%; }
.btn-lg{ padding:14px 22px; font-size:16px; }
.btn-sm{ padding:7px 13px; font-size:13px; }
.btn:disabled{ opacity:.5; cursor:not-allowed; }

.avatar{
  width:36px; height:36px; border-radius:50%;
  object-fit:cover; border:2px solid rgba(255,255,255,.25);
  background: var(--teal);
  display:flex; align-items:center; justify-content:center;
  color:#fff; font-family:var(--display); font-weight:700; font-size:14px;
}

.icon-btn{
  width:38px; height:38px; border-radius:50%;
  display:flex; align-items:center; justify-content:center;
  background: rgba(255,255,255,.10); border:none; cursor:pointer; color:#fff;
  transition: background .2s var(--ease);
}
.icon-btn:hover{ background: rgba(255,255,255,.18); }
.icon-btn svg{ width:18px; height:18px; }

/* mobile search row (below header) */
.mobile-search{
  display:block; background: var(--ink-2); padding:10px 0 12px;
}
.mobile-search .header-search{ display:block; max-width:none; }

@media (min-width: 860px){
  .header-search{ display:block; }
  .mobile-search{ display:none; }
}

/* =========================================================
   Hero (index)
   ========================================================= */
.hero{
  background: linear-gradient(160deg, var(--ink) 0%, #12263A 60%, var(--ink) 100%);
  color:#fff;
  padding: 34px 0 26px;
  position:relative;
  overflow:hidden;
}
.hero-inner{ position:relative; z-index:2; }
.hero h1{
  font-family: var(--display); font-weight:700;
  font-size: clamp(24px, 4vw, 34px);
  letter-spacing:-.01em;
  margin:0 0 6px;
}
.hero p{ margin:0; color:rgba(255,255,255,.68); font-size:14.5px; max-width:520px; }
.hero-pin-drop{
  position:absolute; right:6%; top:8px; width:120px; opacity:.9;
  animation: pinDrop 900ms var(--ease) both;
}
@keyframes pinDrop{
  0%{ transform: translateY(-60px) scale(.6); opacity:0; }
  60%{ transform: translateY(4px) scale(1.04); opacity:1; }
  100%{ transform: translateY(0) scale(1); }
}
.radar-ping{
  position:absolute; left:50%; top:50%;
  width:14px; height:14px; border-radius:50%;
  transform: translate(-50%,-50%);
}
.radar-ping::before, .radar-ping::after{
  content:''; position:absolute; inset:0; border-radius:50%;
  border:2px solid var(--pin); opacity:.7;
  animation: ping 2.4s ease-out infinite;
}
.radar-ping::after{ animation-delay: 1.2s; }
@keyframes ping{
  0%{ transform: scale(1); opacity:.7; }
  100%{ transform: scale(6); opacity:0; }
}

/* =========================================================
   Category chip rail
   ========================================================= */
.chip-rail{
  display:flex; gap:9px; overflow-x:auto; padding: 14px 0 4px;
  scrollbar-width:none;
}
.chip-rail::-webkit-scrollbar{ display:none; }
.chip{
  flex-shrink:0;
  display:flex; align-items:center; gap:6px;
  padding: 9px 15px;
  border-radius: 999px;
  border:1.5px solid var(--line);
  background:#fff;
  font-size:13.5px; font-weight:600; color: var(--slate-60);
  cursor:pointer; white-space:nowrap;
  transition: all .18s var(--ease);
}
.chip:hover{ border-color: var(--ink); color: var(--slate); }
.chip.active{ background: var(--ink); border-color: var(--ink); color:#fff; }

/* =========================================================
   Filter / sort bar
   ========================================================= */
.filter-bar{
  display:flex; align-items:center; gap:12px; flex-wrap:wrap;
  padding: 14px 0 6px;
}
.filter-bar .spacer{ flex:1; }
.select-pill, .range-pill{
  display:flex; align-items:center; gap:8px;
  background:#fff; border:1.5px solid var(--line); border-radius:999px;
  padding:8px 14px; font-size:13.5px; font-weight:600;
}
.select-pill select{ border:none; background:transparent; font:inherit; color:var(--slate); cursor:pointer; }
.range-pill{ min-width:220px; }
.range-pill input[type=range]{ flex:1; accent-color: var(--pin); }
.range-pill .val{ font-family: var(--mono); font-weight:600; color: var(--teal); min-width:56px; text-align:right; }
.results-count{ font-size:13px; color: var(--slate-40); }

/* =========================================================
   Listing grid & cards
   ========================================================= */
.section{ padding: 8px 0 60px; }
.grid{
  display:grid; gap:18px;
  grid-template-columns: repeat(2, 1fr);
}
@media (min-width:640px){ .grid{ grid-template-columns: repeat(3, 1fr); } }
@media (min-width:960px){ .grid{ grid-template-columns: repeat(4, 1fr); } }
@media (min-width:1200px){ .grid{ grid-template-columns: repeat(5, 1fr); } }

.card{
  background: var(--card);
  border-radius: var(--r-md);
  overflow:hidden;
  box-shadow: var(--shadow-1);
  transition: transform .2s var(--ease), box-shadow .2s var(--ease);
  cursor:pointer;
  display:flex; flex-direction:column;
}
.card:hover{ transform: translateY(-3px); box-shadow: var(--shadow-2); }
.card-photo{
  aspect-ratio: 1/1; width:100%; position:relative; background: var(--mist);
  overflow:hidden;
}
.card-photo img{ width:100%; height:100%; object-fit:cover; }
.card-distance{
  position:absolute; left:8px; bottom:8px;
  background: rgba(15,30,46,.78); backdrop-filter: blur(2px);
  color:#fff; font-family:var(--mono); font-size:11px; font-weight:600;
  padding:4px 8px; border-radius:999px;
  display:flex; align-items:center; gap:4px;
}
.card-distance svg{ width:10px; height:10px; color: var(--pin); }
.card-cond{
  position:absolute; right:8px; top:8px;
  background: rgba(255,255,255,.92); color: var(--slate);
  font-size:10.5px; font-weight:700; padding:3px 8px; border-radius:999px;
}
.card-body{ padding:11px 12px 13px; display:flex; flex-direction:column; gap:3px; flex:1; }
.card-price{ font-family: var(--mono); font-weight:700; font-size:16px; color: var(--ink); }
.card-title{ font-size:13.5px; font-weight:600; color: var(--slate); line-height:1.3;
  display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden; }
.card-meta{ margin-top:auto; display:flex; align-items:center; justify-content:space-between; font-size:11.5px; color: var(--slate-40); padding-top:6px; }

.empty-state{
  grid-column: 1/-1;
  text-align:center; padding: 70px 20px;
  color: var(--slate-60);
}
.empty-state svg{ width:54px; height:54px; color: var(--pin); margin-bottom:14px; }
.empty-state h3{ font-family: var(--display); font-size:19px; margin:0 0 6px; color: var(--slate); }
.empty-state p{ margin:0 0 18px; font-size:14px; }

/* =========================================================
   Location gate modal (mandatory GPS permission)
   ========================================================= */
.modal-overlay{
  position:fixed; inset:0; z-index:200;
  background: rgba(15,30,46,.82);
  display:flex; align-items:center; justify-content:center;
  padding: 20px;
  animation: fadeIn .25s var(--ease) both;
}
@keyframes fadeIn{ from{ opacity:0; } to{ opacity:1; } }
.modal-card{
  background:#fff; border-radius: var(--r-lg);
  max-width: 420px; width:100%;
  padding: 30px 26px 26px;
  text-align:center;
  box-shadow: var(--shadow-3);
  animation: riseIn .3s var(--ease) both;
}
@keyframes riseIn{ from{ transform: translateY(18px); opacity:0; } to{ transform:none; opacity:1; } }
.modal-icon{
  width:64px; height:64px; border-radius:50%;
  background: linear-gradient(160deg, var(--pin), var(--pin-dark));
  display:flex; align-items:center; justify-content:center;
  margin: 0 auto 16px; position:relative;
}
.modal-icon svg{ width:30px; height:30px; color:#fff; }
.modal-card h2{ font-family: var(--display); font-size:20px; margin:0 0 8px; }
.modal-card p{ font-size:14px; color: var(--slate-60); margin:0 0 20px; line-height:1.5; }
.modal-error{ font-size:13px; color: var(--danger); margin-top:12px; display:none; }
.modal-error.show{ display:block; }

/* =========================================================
   Forms (post an ad, login)
   ========================================================= */
.page-head{ padding: 26px 0 8px; }
.page-head h1{ font-family: var(--display); font-size: clamp(21px,3vw,27px); margin:0 0 4px; }
.page-head p{ margin:0; color: var(--slate-60); font-size:14px; }

.form-card{
  background:#fff; border-radius: var(--r-lg); box-shadow: var(--shadow-1);
  padding: 22px; margin: 18px 0; border:1px solid var(--mist);
}
.form-card + .form-card{ margin-top:16px; }
.form-label{
  display:flex; align-items:center; gap:7px;
  font-weight:700; font-size:14px; margin-bottom:12px; color: var(--ink);
}
.form-label .badge-num{
  width:22px; height:22px; border-radius:50%; background: var(--ink); color:#fff;
  font-family:var(--mono); font-size:11.5px; display:flex; align-items:center; justify-content:center; flex-shrink:0;
}
.field{ margin-bottom:16px; }
.field:last-child{ margin-bottom:0; }
.field label{ display:block; font-size:12.5px; font-weight:600; color: var(--slate-60); margin-bottom:6px; }
.field input[type=text], .field input[type=number], .field textarea, .field select{
  width:100%; border:1.5px solid var(--line); border-radius: var(--r-sm);
  padding: 11px 13px; font-size:14.5px; color: var(--slate); background:#fff;
  transition: border-color .18s var(--ease);
}
.field input:focus, .field textarea:focus, .field select:focus{ border-color: var(--teal); }
.field textarea{ resize:vertical; min-height:110px; line-height:1.5; }
.price-input{ position:relative; }
.price-input span{ position:absolute; left:13px; top:50%; transform:translateY(-50%); font-family:var(--mono); font-weight:700; color: var(--slate-40); }
.price-input input{ padding-left:30px; font-family:var(--mono); font-weight:600; }

.chip-select{ display:flex; flex-wrap:wrap; gap:8px; }
.chip-option{
  padding:9px 15px; border-radius:999px; border:1.5px solid var(--line);
  font-size:13.5px; font-weight:600; color: var(--slate-60); cursor:pointer; background:#fff;
  transition: all .16s var(--ease);
}
.chip-option:hover{ border-color: var(--ink); }
.chip-option.selected{ background: var(--ink); border-color: var(--ink); color:#fff; }

/* Photo capture */
.photo-grid{ display:grid; grid-template-columns: repeat(auto-fill, minmax(96px,1fr)); gap:10px; margin-bottom: 14px; }
.photo-slot{
  position:relative; aspect-ratio:1/1; border-radius: var(--r-sm); overflow:hidden;
  background: var(--paper); border:1.5px solid var(--line);
}
.photo-slot img{ width:100%; height:100%; object-fit:cover; }
.photo-slot .cover-badge{
  position:absolute; left:5px; top:5px; background: var(--pin); color:#fff;
  font-size:9.5px; font-weight:700; padding:2px 7px; border-radius:999px;
}
.photo-slot .remove-btn{
  position:absolute; right:5px; top:5px; width:22px; height:22px; border-radius:50%;
  background: rgba(15,30,46,.75); color:#fff; border:none; display:flex; align-items:center; justify-content:center; cursor:pointer;
}
.photo-slot .remove-btn svg{ width:12px; height:12px; }

.capture-btn{
  display:flex; flex-direction:column; align-items:center; justify-content:center; gap:8px;
  aspect-ratio:1/1; border-radius: var(--r-sm);
  border:2px dashed var(--line); background: var(--paper);
  cursor:pointer; color: var(--slate-60);
  transition: all .18s var(--ease);
}
.capture-btn:hover{ border-color: var(--teal); color: var(--teal); background:#fff; }
.capture-btn svg{ width:24px; height:24px; }
.capture-btn span{ font-size:10.5px; font-weight:700; text-align:center; padding:0 4px; }

.shutter-cta{
  display:flex; align-items:center; gap:14px;
  background: var(--ink); color:#fff; border-radius: var(--r-md);
  padding: 16px 18px; cursor:pointer; border:none; width:100%;
  margin-bottom:16px;
  transition: transform .15s var(--ease);
}
.shutter-cta:active{ transform: scale(.98); }
.shutter-ring{
  width:52px; height:52px; border-radius:50%; flex-shrink:0;
  background: var(--pin);
  display:flex; align-items:center; justify-content:center;
  box-shadow: 0 0 0 4px rgba(255,90,54,.25);
}
.shutter-ring svg{ width:24px; height:24px; color:#fff; }
.shutter-text{ text-align:left; }
.shutter-text b{ display:block; font-family:var(--display); font-size:15.5px; }
.shutter-text span{ font-size:12px; color: rgba(255,255,255,.6); }

/* Location box inside ilan-ver */
.loc-status{
  display:flex; align-items:center; gap:10px;
  padding:12px 14px; border-radius: var(--r-sm); background: var(--paper);
  border:1.5px solid var(--line); font-size:13.5px; margin-bottom:14px;
}
.loc-status svg{ width:18px; height:18px; flex-shrink:0; }
.loc-status.ok{ border-color: rgba(29,138,76,.35); color: var(--success); background: rgba(29,138,76,.06); }
.loc-status.wait{ color: var(--slate-60); }
.loc-status.err{ border-color: rgba(211,54,54,.35); color: var(--danger); background: rgba(211,54,54,.06); }
.loc-coords{ margin-left:auto; font-family:var(--mono); font-size:11.5px; color: var(--slate-40); }

#pickerMap, #detailMap{
  width:100%; height:260px; border-radius: var(--r-sm); overflow:hidden;
  border:1.5px solid var(--line); background: var(--mist);
}
.map-fallback{
  width:100%; height:100%; display:flex; flex-direction:column; align-items:center; justify-content:center;
  gap:8px; color: var(--slate-40); font-size:12.5px; text-align:center; padding:20px;
}
.map-fallback svg{ width:30px; height:30px; }
.map-hint{ font-size:12px; color: var(--slate-40); margin-top:8px; line-height:1.5; }

.submit-bar{ position: sticky; bottom:0; background: linear-gradient(0deg, var(--paper) 60%, transparent); padding: 18px 0 10px; margin-top: -10px; }

/* =========================================================
   Login page
   ========================================================= */
.auth-wrap{
  min-height: calc(100vh - 68px);
  display:flex; align-items:center; justify-content:center;
  padding: 30px 20px;
  background: linear-gradient(160deg, var(--ink), #12263A 60%, var(--ink));
}
.auth-card{
  background:#fff; border-radius: var(--r-lg); box-shadow: var(--shadow-3);
  max-width: 400px; width:100%; padding: 34px 28px; text-align:center;
}
.auth-logo{ display:flex; align-items:center; justify-content:center; gap:9px; margin-bottom:18px; }
.auth-logo svg{ width:30px; height:30px; }
.auth-logo span{ font-family:var(--display); font-weight:700; font-size:22px; }
.auth-card h2{ font-family:var(--display); font-size:19px; margin:0 0 6px; }
.auth-card p{ color: var(--slate-60); font-size:13.5px; margin: 0 0 24px; line-height:1.5; }
.gsi-slot{ display:flex; justify-content:center; min-height:44px; margin-bottom:12px; }
.auth-divider{ display:flex; align-items:center; gap:10px; color: var(--slate-40); font-size:12px; margin: 16px 0; }
.auth-divider::before, .auth-divider::after{ content:''; flex:1; height:1px; background: var(--line); }
.demo-btn{
  display:flex; align-items:center; justify-content:center; gap:10px;
  width:100%; padding: 12px; border-radius: 999px; border:1.5px solid var(--line);
  background:#fff; font-weight:600; font-size:14px; cursor:pointer;
  transition: border-color .18s var(--ease);
}
.demo-btn:hover{ border-color: var(--ink); }
.auth-note{ margin-top:18px; font-size:11.5px; color: var(--slate-40); line-height:1.5; }

/* =========================================================
   Detail page
   ========================================================= */
.detail-wrap{ display:grid; gap:26px; grid-template-columns: 1fr; padding: 22px 0 60px; }
@media (min-width:900px){ .detail-wrap{ grid-template-columns: 1.3fr 1fr; } }
.gallery-main{ border-radius: var(--r-lg); overflow:hidden; aspect-ratio: 4/3; background: var(--mist); margin-bottom:10px; }
.gallery-main img{ width:100%; height:100%; object-fit:cover; }
.gallery-thumbs{ display:flex; gap:8px; overflow-x:auto; }
.gallery-thumbs img{ width:70px; height:70px; object-fit:cover; border-radius:10px; cursor:pointer; border:2px solid transparent; flex-shrink:0; }
.gallery-thumbs img.active{ border-color: var(--pin); }

.detail-price{ font-family: var(--mono); font-weight:700; font-size: 30px; color: var(--ink); }
.detail-title{ font-family: var(--display); font-size:21px; margin: 4px 0 10px; }
.detail-tags{ display:flex; gap:8px; flex-wrap:wrap; margin-bottom:16px; }
.tag{ background: var(--paper); border:1px solid var(--line); border-radius:999px; padding:5px 12px; font-size:12px; font-weight:600; color: var(--slate-60); }
.detail-desc{ font-size:14.5px; line-height:1.7; color: var(--slate); white-space:pre-line; margin-bottom: 20px; }
.seller-card{ display:flex; align-items:center; gap:12px; padding:14px; border-radius: var(--r-md); background:#fff; border:1px solid var(--mist); margin-bottom:16px; }
.seller-card .avatar{ width:46px; height:46px; color:var(--slate); background: var(--mist); }
.seller-info b{ display:block; font-size:14.5px; }
.seller-info span{ font-size:12px; color: var(--slate-40); }
.distance-badge{ display:flex; align-items:center; gap:6px; font-family: var(--mono); font-size:13px; color: var(--teal); font-weight:600; margin-bottom:16px; }
.distance-badge svg{ width:15px; height:15px; }

/* toast */
.toast{
  position:fixed; bottom:24px; left:50%; transform: translateX(-50%) translateY(20px);
  background: var(--ink); color:#fff; padding:12px 20px; border-radius:999px;
  font-size:13.5px; font-weight:600; box-shadow: var(--shadow-3);
  opacity:0; pointer-events:none; transition: all .3s var(--ease); z-index: 300;
  display:flex; align-items:center; gap:8px;
}
.toast.show{ opacity:1; transform: translateX(-50%) translateY(0); pointer-events:auto; }

/* footer */
.site-footer{ background: var(--ink); color: rgba(255,255,255,.5); padding: 26px 0; font-size:12.5px; text-align:center; }

/* Filter drawer (mobile) */
.filter-toggle{ display:inline-flex; }
@media (min-width: 860px){ .filter-toggle{ display:none; } }
.drawer-fields{ display:none; }
@media (min-width: 860px){ .drawer-fields{ display:flex; gap:12px; flex-wrap:wrap; align-items:center; } }
.drawer-overlay{
  position:fixed; inset:0; background: rgba(15,30,46,.7); z-index:150;
  display:none; align-items:flex-end; justify-content:center;
}
.drawer-overlay.open{ display:flex; }
.drawer-sheet{
  background:#fff; width:100%; max-width:520px; border-radius: 22px 22px 0 0;
  padding: 20px 20px 26px; animation: riseIn .25s var(--ease) both;
  max-height: 80vh; overflow-y:auto;
}
.drawer-sheet h3{ font-family: var(--display); margin:0 0 16px; }
.drawer-sheet .field{ margin-bottom:18px; }

.spinner{
  width:18px; height:18px; border-radius:50%;
  border: 2.5px solid rgba(255,255,255,.4); border-top-color:#fff;
  animation: spin .7s linear infinite; display:inline-block;
}
@keyframes spin{ to{ transform: rotate(360deg); } }
