/* RXOPD MapLibre location map integration. Scoped to rx-map classes. */
.rx-map-hero{
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap:18px;
  margin:0 0 18px;
  padding:clamp(20px,4vw,38px);
  border-radius:30px;
  color:#fff;
  background:
    radial-gradient(circle at 90% 0%, rgba(255,255,255,.20), transparent 18rem),
    linear-gradient(135deg,#073b96,#0f62fe 58%,#00a7a5);
  box-shadow:0 22px 60px rgba(15,23,42,.14);
}

.rx-map-kicker{
  display:block;
  margin:0 0 8px;
  color:rgba(255,255,255,.76);
  font-size:12px;
  font-weight:1000;
  letter-spacing:.14em;
  text-transform:uppercase;
}

.rx-map-hero h1{
  margin:0;
  max-width:920px;
  font-size:clamp(28px,5vw,54px);
  line-height:1;
  letter-spacing:-.06em;
}

.rx-map-hero p{
  max-width:780px;
  margin:12px 0 0;
  color:rgba(255,255,255,.82);
  line-height:1.6;
}

.rx-map-primary-link,
.rx-map-search button,
.rx-map-submit-btn,
.rx-map-picker-head button{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:44px;
  border:0;
  border-radius:999px;
  padding:10px 16px;
  color:#073b96;
  background:#fff;
  font-weight:900;
  text-decoration:none;
  cursor:pointer;
}

.rx-map-search{
  display:grid;
  grid-template-columns:minmax(220px,1fr) 150px auto;
  gap:10px;
  width:min(760px,100%);
  margin-top:18px;
}

.rx-map-search input,
.rx-map-search select,
.rx-map-form-card input,
.rx-map-form-card select,
.rx-map-form-card textarea,
.rx-admin-proof-actions input{
  width:100%;
  min-height:44px;
  border:1px solid #dbe5f1;
  border-radius:14px;
  padding:10px 12px;
  background:#fff;
  color:#0f172a;
  outline:none;
}

.rx-map-layout{
  display:grid;
  grid-template-columns:minmax(300px,420px) minmax(0,1fr);
  gap:16px;
  align-items:stretch;
}

.rx-map-list,
.rx-map-panel,
.rx-map-form-card,
.rx-map-history-card,
.rx-admin-proof-card{
  border:1px solid #dbe5f1;
  border-radius:24px;
  background:#fff;
  box-shadow:0 18px 50px rgba(15,23,42,.08);
}

.rx-map-list{
  overflow:auto;
  max-height:720px;
  padding:14px;
}

.rx-map-list-head{
  display:flex;
  justify-content:space-between;
  gap:10px;
  align-items:center;
  margin-bottom:12px;
}

.rx-map-list-head strong{
  font-size:15px;
}

.rx-map-list-head a{
  color:#0f62fe;
  font-weight:900;
  text-decoration:none;
  font-size:13px;
}

.rx-map-location-card,
.rx-map-proof-row{
  display:grid;
  gap:12px;
  border:1px solid #dbe5f1;
  border-radius:18px;
  padding:14px;
  margin-bottom:10px;
  background:#f8fbff;
  cursor:pointer;
  transition:transform .18s ease, border-color .18s ease, background .18s ease;
}

.rx-map-location-card:hover,
.rx-map-location-card.active,
.rx-map-proof-row:hover,
.rx-admin-proof-card.active{
  transform:translateY(-2px);
  border-color:rgba(15,98,254,.38);
  background:#fff;
}

.rx-map-location-card span,
.rx-admin-proof-head span{
  display:inline-flex;
  width:max-content;
  border-radius:999px;
  padding:5px 9px;
  color:#073b96;
  background:#e8f2ff;
  font-size:11px;
  font-weight:1000;
  text-transform:uppercase;
  letter-spacing:.09em;
}

.rx-map-location-card h2{
  margin:8px 0 4px;
  font-size:20px;
  letter-spacing:-.04em;
}

.rx-map-location-card p,
.rx-map-location-card small,
.rx-map-proof-row small,
.rx-admin-proof-head p,
.rx-admin-proof-head small{
  display:block;
  color:#64748b;
  line-height:1.45;
}

.rx-map-card-actions{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
}

.rx-map-card-actions a{
  display:inline-flex;
  min-height:36px;
  align-items:center;
  justify-content:center;
  border-radius:999px;
  padding:8px 11px;
  color:#073b96;
  background:#e8f2ff;
  font-weight:900;
  text-decoration:none;
  font-size:12px;
}

.rx-map-panel{
  position:relative;
  min-height:620px;
  overflow:hidden;
}

.rx-map-canvas{
  width:100%;
  height:100%;
  min-height:620px;
}

.rx-map-canvas.compact{
  min-height:460px;
}

.rx-map-tools{
  position:absolute;
  left:14px;
  bottom:14px;
  z-index:4;
  display:flex;
  flex-wrap:wrap;
  gap:8px;
}

.rx-map-tools button{
  min-height:38px;
  border:1px solid #dbe5f1;
  border-radius:999px;
  padding:8px 12px;
  color:#073b96;
  background:#fff;
  font-weight:900;
  box-shadow:0 10px 24px rgba(15,23,42,.12);
  cursor:pointer;
}

.rx-map-marker{
  position:relative;
  display:grid;
  width:34px;
  height:34px;
  place-items:center;
  border:3px solid #fff;
  border-radius:14px 14px 14px 4px;
  color:#fff;
  background:#0f62fe;
  box-shadow:0 12px 26px rgba(15,23,42,.25);
  transform:rotate(-45deg);
}

.rx-map-marker span{
  display:block;
  transform:rotate(45deg);
  font-size:13px;
  font-weight:1000;
}

.rx-map-marker.shop{background:#0f62fe}
.rx-map-marker.chamber{background:#7c3aed}
.rx-map-marker.pharmacy{background:#16a34a}
.rx-map-marker.clinic{background:#f59e0b}

.maplibregl-popup-content{
  padding:0!important;
  border-radius:18px!important;
  overflow:hidden!important;
  box-shadow:0 18px 50px rgba(15,23,42,.18)!important;
}

.rx-map-popup{
  width:260px;
  padding:14px;
}

.rx-map-popup span{
  display:inline-flex;
  border-radius:999px;
  padding:5px 8px;
  color:#073b96;
  background:#e8f2ff;
  font-size:11px;
  font-weight:1000;
  text-transform:uppercase;
}

.rx-map-popup h3{
  margin:8px 0 5px;
  font-size:18px;
  letter-spacing:-.04em;
}

.rx-map-popup p{
  margin:0;
  color:#64748b;
  line-height:1.45;
}

.rx-map-popup-actions{
  display:flex;
  gap:8px;
  margin-top:12px;
}

.rx-map-popup-actions a{
  flex:1;
  border-radius:999px;
  padding:8px 9px;
  color:#fff;
  background:#0f62fe;
  font-size:12px;
  font-weight:900;
  text-align:center;
  text-decoration:none;
}

.rx-map-popup-actions a:last-child{
  color:#073b96;
  background:#e8f2ff;
}

.rx-map-empty{
  border:1px dashed #cbd5e1;
  border-radius:18px;
  padding:18px;
  background:#f8fbff;
}

.rx-map-empty strong,
.rx-map-empty span{
  display:block;
}

.rx-map-empty span{
  margin-top:4px;
  color:#64748b;
}

.rx-map-submit-grid,
.rx-admin-map-review{
  display:grid;
  grid-template-columns:minmax(0,1.2fr) minmax(300px,.8fr);
  gap:16px;
  align-items:start;
}

.rx-map-form-card,
.rx-map-history-card{
  padding:20px;
}

.rx-map-form-card h2,
.rx-map-history-card h2{
  margin:0 0 14px;
  font-size:24px;
  letter-spacing:-.04em;
}

.rx-map-form-card label{
  display:grid;
  gap:7px;
  margin-bottom:12px;
  color:#64748b;
  font-size:12px;
  font-weight:900;
}

.rx-map-form-two{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:12px;
}

.rx-map-picker-wrap{
  display:grid;
  gap:9px;
  margin:14px 0;
}

.rx-map-picker-head{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:10px;
}

.rx-map-picker-head button{
  color:#fff;
  background:#0f62fe;
}

.rx-map-picker{
  width:100%;
  height:360px;
  border:1px solid #dbe5f1;
  border-radius:20px;
  overflow:hidden;
  background:#eef5ff;
}

.rx-map-submit-btn{
  width:100%;
  color:#fff;
  background:linear-gradient(135deg,#0f62fe,#00a7a5);
}

.rx-admin-map-review{
  grid-template-columns:minmax(360px,.8fr) minmax(0,1.2fr);
}

.rx-admin-location-table{
  display:grid;
  gap:12px;
}

.rx-admin-proof-card{
  padding:16px;
}

.rx-admin-proof-head{
  display:flex;
  justify-content:space-between;
  gap:14px;
  align-items:flex-start;
}

.rx-admin-proof-head h2{
  margin:8px 0 4px;
  font-size:22px;
  letter-spacing:-.04em;
}

.rx-admin-proof-gps{
  display:grid;
  gap:4px;
  margin:12px 0;
  border:1px solid #dbe5f1;
  border-radius:16px;
  padding:12px;
  background:#f8fbff;
}

.rx-admin-proof-gps span{
  color:#073b96;
  font-weight:900;
}

.rx-admin-proof-gps em{
  color:#64748b;
  font-style:normal;
}

.rx-admin-proof-actions{
  display:grid;
  grid-template-columns:minmax(160px,1fr) repeat(3,auto);
  gap:8px;
}

.rx-admin-proof-actions button{
  border:0;
  border-radius:999px;
  padding:9px 12px;
  color:#fff;
  font-weight:900;
  cursor:pointer;
}

.rx-admin-proof-actions .approve{background:#16a34a}
.rx-admin-proof-actions .reupload{background:#f59e0b}
.rx-admin-proof-actions .reject{background:#dc2626}

.rx-search-map-actions{
  display:flex;
  flex-wrap:wrap;
  gap:9px;
  margin-top:14px;
}

.rx-search-map-actions a{
  display:inline-flex;
  min-height:40px;
  align-items:center;
  justify-content:center;
  border-radius:999px;
  padding:8px 13px;
  color:#073b96;
  background:#fff;
  font-weight:900;
  text-decoration:none;
}

@media (max-width:1180px){
  .rx-map-layout,
  .rx-map-submit-grid,
  .rx-admin-map-review{
    grid-template-columns:1fr;
  }
  .rx-map-panel,
  .rx-map-canvas{
    min-height:520px;
  }
}

@media (max-width:760px){
  .rx-map-hero{
    align-items:flex-start;
    flex-direction:column;
    border-radius:24px;
    padding:22px;
  }
  .rx-map-search,
  .rx-map-form-two,
  .rx-admin-proof-actions{
    grid-template-columns:1fr;
  }
  .rx-map-list{
    max-height:none;
  }
  .rx-map-panel,
  .rx-map-canvas,
  .rx-map-canvas.compact{
    min-height:420px;
  }
  .rx-map-card-actions a,
  .rx-map-primary-link{
    flex:1 1 130px;
  }
  .rx-admin-proof-head{
    flex-direction:column;
  }
}
