.acud-location-picker,
.acud-map-card,
.acud-contact-card{
  position:relative;
}

.acud-location-picker{
  grid-column:1/-1;
}

.acud-location-picker > label,
.acud-admin-grid .acud-field > label,
.acud-business-form .acud-field > label{
  display:block;
  margin-bottom:8px;
  font-weight:700;
}

.acud-location-picker .acud-address-input,
.acud-admin-grid .acud-field input,
.acud-admin-grid .acud-field select,
.acud-admin-grid .acud-field textarea{
  width:100%;
  min-height:48px;
  padding:12px 14px;
  border:1px solid var(--acud-line, #e7ebf3);
  border-radius:16px;
  background:#fff;
  font:inherit;
  color:var(--acud-text, #162033);
}

.acud-location-help,
.acud-map-status{
  margin-top:8px;
  color:var(--acud-muted, #667085);
  font-size:13px;
  line-height:1.7;
}

.acud-address-suggestions{
  position:relative;
  z-index:50;
  margin-top:10px;
  background:#fff;
  border:1px solid var(--acud-line, #e7ebf3);
  border-radius:18px;
  box-shadow:0 18px 45px rgba(15,23,42,.12);
  overflow:hidden;
}

.acud-location-picker .acud-address-suggestions[hidden]{
  display:none;
}

.acud-address-suggestion{
  width:100%;
  padding:12px 14px;
  border:none;
  border-bottom:1px solid var(--acud-line, #e7ebf3);
  background:#fff;
  text-align:right;
  cursor:pointer;
  line-height:1.6;
}

.acud-address-suggestion:last-child{
  border-bottom:none;
}

.acud-address-suggestion:hover,
.acud-address-suggestion:focus{
  background:#f6f9ff;
  outline:none;
}

.acud-map-wrapper{
  margin-top:14px;
}

.acud-map-canvas,
.acud-single-map{
  width:100%;
  height:340px;
  border:1px solid var(--acud-line, #e7ebf3);
  border-radius:22px;
  overflow:hidden;
  background:#eef3fb;
}

.acud-map-toolbar,
.acud-map-card-head,
.acud-contact-actions{
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  gap:10px;
}

.acud-map-toolbar,
.acud-map-card-head{
  margin-top:12px;
  justify-content:space-between;
}

.acud-map-card-head h3{
  margin:0;
}

.acud-contact-card h3,
.acud-map-card h3{
  margin-top:0;
}

.acud-contact-row{
  display:grid;
  grid-template-columns:minmax(92px, 120px) 1fr;
  gap:14px;
  align-items:start;
  padding:10px 0;
  border-bottom:1px solid var(--acud-line, #e7ebf3);
}

.acud-contact-row:last-of-type{
  border-bottom:none;
}

.acud-contact-label{
  font-weight:800;
  color:var(--acud-text, #162033);
}

.acud-contact-value{
  min-width:0;
  color:var(--acud-muted, #667085);
  overflow-wrap:anywhere;
  line-height:1.8;
}

.acud-contact-value a{
  color:var(--acud-primary, #1149c6);
  text-decoration:none;
}

.acud-contact-row.ltr .acud-contact-value{
  direction:ltr;
  text-align:left;
  unicode-bidi:plaintext;
}

.acud-card .acud-meta span:first-child{
  direction:ltr;
  text-align:left;
  unicode-bidi:plaintext;
}

.acud-admin-grid .acud-field.full,
.acud-business-form .acud-field.full{
  grid-column:1/-1;
}


input[name="phone"],
input[name="whatsapp"],
input[name="email"],
input[name="website"],
input[name="facebook"],
input[name="instagram"],
input[name="x"],
input[name="youtube"],
input[name="tiktok"],
input[name="telegram"],
input[name="snapchat"],
input[name="linkedin"],
input[name^="business_hours"][type="time"],
input[name="acud_meta[phone]"],
input[name="acud_meta[whatsapp]"],
input[name="acud_meta[email]"],
input[name="acud_meta[website]"],
input[name="acud_meta[facebook]"],
input[name="acud_meta[instagram]"],
input[name="acud_meta[x]"],
input[name="acud_meta[youtube]"],
input[name="acud_meta[tiktok]"],
input[name="acud_meta[telegram]"],
input[name="acud_meta[snapchat]"],
input[name="acud_meta[linkedin]"],
input[name^="acud_meta[business_hours]"][type="time"]{
  direction:ltr;
  text-align:left;
  unicode-bidi:plaintext;
}

.acud-admin-grid .acud-field p{
  margin:0;
}

@media (max-width: 900px){
  .acud-map-canvas,
  .acud-single-map{
    height:300px;
  }

  .acud-contact-row{
    grid-template-columns:1fr;
    gap:4px;
  }
}


.acud-single-grid-enhanced{
  align-items:start;
  grid-template-columns:minmax(0,1.55fr) minmax(320px,.85fr);
}

.acud-single-main{min-width:0;}
.acud-single-side{position:relative;}

.acud-single-side .acud-contact-card{
  position:sticky;
  top:24px;
}

.acud-content-card{
  padding:28px;
}

.acud-map-card{
  padding:24px;
  margin-bottom:18px;
}

.acud-map-card .acud-map-card-head{
  margin-top:0;
  margin-bottom:14px;
}

.acud-single-map{
  height:420px;
  border-radius:24px;
}

.acud-contact-card{
  padding:26px;
}

.acud-contact-card h3{
  margin:0 0 14px;
  font-size:1.35rem;
}

.acud-contact-row{
  grid-template-columns:minmax(96px,116px) 1fr;
  gap:12px;
  padding:13px 0;
}

.acud-contact-value{
  display:block;
  line-height:1.95;
  word-break:break-word;
}

.acud-contact-value[dir="ltr"],
.acud-contact-row.ltr .acud-contact-value{
  direction:ltr;
  text-align:left;
  unicode-bidi:isolate;
}

.acud-contact-address{
  unicode-bidi:plaintext;
}

.acud-contact-actions{
  margin-top:18px;
  gap:12px;
}

.acud-contact-actions .acud-btn{
  flex:1 1 calc(50% - 12px);
  min-height:48px;
}

.leaflet-container{
  font:inherit;
}

@media (max-width: 1100px){
  .acud-single-grid-enhanced{
    grid-template-columns:1fr;
  }

  .acud-single-side .acud-contact-card{
    position:static;
  }
}

/* Add business map clarity */
.acud-location-picker{
  padding:18px;
  border:1px solid #d9e3f3;
  border-radius:22px;
  background:#ffffff;
}

.acud-location-picker .acud-address-input,
.acud-location-picker .acud-address-suggestion,
.acud-location-picker .acud-map-status{
  direction:ltr;
  text-align:left;
  unicode-bidi:plaintext;
}

.acud-location-help{
  padding:10px 12px;
  border:1px solid #e3eaf7;
  border-radius:14px;
  background:#f8fbff;
}

.acud-address-suggestions{
  border-color:#ccd8ec;
}

.acud-address-suggestion{
  font-size:.96rem;
}

.acud-map-wrapper{
  margin-top:16px;
}

.acud-map-canvas{
  border:1.5px solid #ccd8ec;
  box-shadow:0 14px 30px rgba(15,23,42,.08);
}

.acud-map-toolbar{
  justify-content:flex-start;
}

.acud-map-toolbar .button{
  min-height:46px;
  padding:0 16px;
  border-radius:14px;
}

.acud-map-toolbar .button.button-secondary{
  background:#1149c6;
  border-color:#1149c6;
  color:#fff;
}

.acud-map-toolbar .button.button-link-delete{
  color:#b42318;
}

.acud-map-status{
  margin-top:12px;
  padding:12px 14px;
  border:1px solid #d9e6ff;
  border-radius:14px;
  background:#f5f9ff;
  color:#1d4e89;
}

.leaflet-container,
.leaflet-control,
.leaflet-popup-content-wrapper{
  direction:ltr;
}


/* Single listing stability patch */
.acud-single-grid-enhanced,
.acud-single-main,
.acud-single-side,
.acud-single-side .acud-box,
.acud-contact-row,
.acud-contact-value{
  min-width:0;
}

.acud-single-side .acud-contact-card{
  position:static;
  top:auto;
}

.acud-contact-row{
  grid-template-columns:minmax(88px,108px) minmax(0,1fr);
}

.acud-contact-value,
.acud-contact-value a{
  overflow-wrap:anywhere;
  word-break:break-word;
}

@media (max-width:1280px){
  .acud-single-grid-enhanced{
    grid-template-columns:1fr;
  }
}
