/* ── Point selector under shipping ── */
#apk-box { background:#fff; border:1px solid #ddd; border-radius:8px; padding:14px; }
#apk-header { margin-bottom:10px; }
#apk-label { font-weight:600; font-size:14px; color:#333; }
#apk-empty { text-align:center; }
#apk-btn {
  display:inline-flex; align-items:center; gap:6px;
  padding:10px 24px; background:#333; color:#fff; border:none;
  border-radius:6px; font-size:14px; font-weight:600; cursor:pointer;
}
#apk-btn:hover { background:#555; }
#apk-chosen { background:#f5f5f5; border-radius:6px; padding:12px; }
#apk-pname { font-weight:700; font-size:14px; }
#apk-paddr { font-size:13px; color:#555; margin-top:2px; }
#apk-phours { font-size:12px; color:#888; margin-top:2px; }
#apk-change { font-size:13px; color:#c0392b; margin-top:6px; display:inline-block; }

/* ── Modal ── */
#apk-modal {
  display:none; position:fixed; inset:0; z-index:999999;
  background:rgba(0,0,0,.5);
}
#apk-mdlg {
  position:absolute; top:50%; left:50%; transform:translate(-50%,-50%);
  width:95%; max-width:700px; height:85vh;
  background:#fff; border-radius:10px;
  display:flex; flex-direction:column; overflow:hidden;
  box-shadow:0 12px 40px rgba(0,0,0,.25);
  animation:apk-in .15s ease-out;
}
@keyframes apk-in { from{opacity:0;transform:translate(-50%,-50%) scale(.95)} }

#apk-mhdr {
  display:flex; justify-content:space-between; align-items:center;
  padding:12px 16px; border-bottom:1px solid #eee; flex-shrink:0;
}
#apk-mhdr strong { font-size:15px; }
#apk-mx { font-size:24px; cursor:pointer; color:#999; line-height:1; }
#apk-mx:hover { color:#333; }

#apk-msrch {
  display:flex; gap:8px; padding:10px 16px; border-bottom:1px solid #eee; flex-shrink:0;
}
#apk-minput {
  flex:1; padding:9px 12px; border:1px solid #ccc;
  border-radius:5px; font-size:14px; outline:none;
}
#apk-minput:focus { border-color:#333; }
#apk-mgo {
  padding:9px 18px; background:#333; color:#fff; border:none;
  border-radius:5px; font-size:14px; cursor:pointer;
}
#apk-mgo:hover { background:#555; }

/* ── Map ── */
#apk-map { height:45%; min-height:200px; flex-shrink:0; }

/* ── List ── */
#apk-mlist { flex:1; overflow-y:auto; padding:4px 16px 12px; }
.apk-mhint { text-align:center; color:#999; padding:30px 0; }
.apk-item {
  padding:10px 12px; margin:4px 0; border:1px solid #e8e8e8;
  border-radius:6px; cursor:pointer; transition:.15s;
}
.apk-item:hover { border-color:#333; background:#fafafa; }
.apk-item-name { font-weight:600; font-size:13px; }
.apk-item-addr { font-size:12px; color:#555; margin-top:2px; }
.apk-item-hrs { font-size:11px; color:#999; margin-top:1px; }

/* Leaflet popup button */
.apk-popup-btn {
  margin-top:6px; padding:4px 12px; background:#333; color:#fff;
  border:none; border-radius:4px; font-size:12px; cursor:pointer;
}
.apk-popup-btn:hover { background:#555; }

/* ── Mobile ── */
@media(max-width:640px){
  #apk-mdlg {
    width:100%!important; max-width:100%!important;
    height:100vh!important; top:0!important; left:0!important;
    transform:none!important; border-radius:0!important;
  }
  #apk-map { height:35%; min-height:150px; }
}
