 

/* زر مثال */
.btn-open-address{
  background: #ff6a1a;
  color: #fff;
  border: none;
  padding: 10px 14px;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 600;
}

/* Overlay popup */
.address-overlay{
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(15,23,42,0.45);
  z-index: 1100;
  padding: 20px;
  direction: rtl;
}

/* Popup card */
.address-popup{
  width: min(920px, 96%);
  background: white;
  border-radius: 14px;
  box-shadow: 0 10px 30px rgba(15,23,42,0.12);
  overflow: hidden;
  position: relative;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
}

/* close btn */
.popup-close{
  position: absolute;
  top: 12px;
  left: 12px; /* left because RTL, visually on left like designs */
  background: transparent;
  border: none;
  font-size: 20px;
  cursor: pointer;
}

/* header */
.popup-header{
  padding: 18px 22px;
  border-bottom: 1px solid #eee;
  display:flex;
  align-items:center;
  justify-content: space-between;
}

.popup-header h3{
  margin:0;
  font-size:18px;
  color:#1f2937;
}

/* body */
.popup-body{
  padding: 14px 18px 22px;
  display:flex;
  flex-direction: column;
  gap:12px;
}

/* search row */
.search-row{
  display:flex;
  gap:10px;
  align-items:center;
  justify-content: space-between;
  flex-wrap:wrap;
}

.search-row input[type="text"]{
  flex:1;
  min-width:220px;
  padding:10px 12px;
  border-radius:10px;
  border:1px solid #e6e6e6;
  font-size:14px;
  direction: rtl;
}

/* open bottom sheet button */
.open-bottom{
  background: transparent;
  border: none;
  color: #ff6a1a;
  font-weight:600;
  cursor:pointer;
  padding:8px 12px;
}

/* map */
.map-wrap{
  position:relative;
  height: 420px;
  border-radius: 10px;
  overflow:hidden;
  border:1px solid #eee;
  background: #eee;
}

.map-wrap iframe{
  width:100%;
  height:100%;
  border:0;
}

/* map pin */
.map-pin{
  position:absolute;
  left:50%;
  top:50%;
  transform: translate(-50%,-48%);
  font-size:22px;
  color: #ff6a1a;
  text-shadow: 0 1px 3px rgba(0,0,0,0.2);
  pointer-events: none;
}

/* confirm row */
.confirm-row{
  display:flex;
  gap:12px;
  align-items:center;
  justify-content: space-between;
  margin-top:8px;
  flex-wrap:wrap;
}

.btn-confirm{
  background: #ff6a1a;
  color: #fff;
  padding:10px 16px;
  border-radius: 10px;
  border: none;
  cursor:pointer;
  font-weight: 700;
}

.current-address{
  color:#6b7280;
  font-size:13px;
  flex:1;
  text-align: left;
}

/* Bottom sheet */
.bottom-sheet{
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;                       /* مهم جداً */
  
  height: 74vh;
  max-height: 88vh;
  background: white;
  border-top-left-radius: 18px;
  border-top-right-radius: 18px;
  box-shadow: 0 -8px 30px rgba(2,6,23,0.18);
  z-index: 1200;

  transform: translateY(110%);     /* مخفي في البداية */
  transition: transform 300ms cubic-bezier(.22,.9,.35,1);

  direction: rtl;
  display:flex;
  flex-direction: column;
}

/* when open */
.bottom-sheet.open{
  transform: translateY(0);
}

/* handle */
.sheet-handle{
  display:flex;
  align-items:center;
  justify-content: space-between;
  padding: 10px 14px;
  border-bottom:1px solid #f0f0f0;
}

.handle-bar{
  width: 60px;
  height:6px;
  background:#e6e6e6;
  border-radius: 6px;
  margin: 0 auto;
}

/* body inside sheet */
.sheet-body{
  padding:12px 16px;
  overflow:auto;
  display:flex;
  flex-direction: column;
  gap:12px;
}

.sheet-tabs{ display:flex; gap:8px; }
.sheet-tabs .tab{
  padding:8px 12px;
  border-radius:10px;
  border:1px solid transparent;
  background:#f5f7fb;
  cursor:pointer;
}
.sheet-tabs .tab.active{
  background: white;
  border-color: #eee;
  box-shadow: 0 10px 30px rgba(15,23,42,0.12);
}

/* search inside sheet */
.sheet-search input{
  width:100%;
  padding:10px 12px;
  border-radius: 10px;
  border:1px solid #e6e6e6;
  direction: rtl;
}

/* empty state */
.saved-list{
  padding: 18px;
  display:flex;
  align-items:center;
  justify-content:center;
  flex-direction: column;
  gap:8px;
  min-height: 220px;
  color:#6b7280;
  text-align:center;
}

/* actions */
.sheet-actions{ padding-bottom:20px; }
.btn-primaryx{
  background:#ff6a1a;
  color:white;
  padding:12px 16px;
  border-radius:10px;
  border:none;
  width:100%;
  font-weight:700;
  cursor:pointer;
}

/* responsive */
@media (max-width:600px){
  .address-popup{ width:100%; height: 90vh; border-radius: 12px; }
  .map-wrap{ height: 300px; }
  .confirm-row{ flex-direction: column; align-items: stretch; gap:10px; }
}





/* ====== زر العنوان (نفس نون) ====== */
.noon-address-btn {
    background: #f7f7f7;
    border: 1px solid #e3e3e3;
    padding: 8px 10px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    min-height: 40px;
}

.noon-address-btn .icon-right {
    font-size: 18px;
    color: #ff6a1a;
    margin-left: 5px;
}

.noon-address-btn .icon-left {
    font-size: 16px;
    color: #555;
    margin-right: 3px;
}

.noon-address-btn .text-box {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
    text-align: right;
}

.noon-address-btn .t1 {
    font-size: 11px;
    color: #555;
        margin-bottom: 4px;

}

.noon-address-btn .t2 {
    font-size: 13px;
    font-weight: bold;
    color: #000;
}

/* زر الهاتف أسفل الهيدر */
.noon-mobile-address {
    background: white;
    padding: 8px 12px;
    border-bottom: 1px solid #eee;
}
