@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@400;600;700&display=swap');

.cbr-wrap,
.cbr-wrap *,
.cbr-map-section,
.cbr-map-section *,
.cbr-city-pill,
.cbr-popup,
.cbr-popup * {
  font-family: 'Cairo', sans-serif !important;
}

.cbr-wrap{
  max-width: 1400px;
  margin: 0 auto;
  direction: rtl;
}

.cbr-controls{
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: nowrap !important;
  gap: 12px;
  align-items: center;
  margin: 8px 0 18px;
}

.cbr-control-wrap{
  flex: 1 1 0% !important;
  min-width: 0 !important;
}

.cbr-search,
.cbr-city{
  display: block !important;
  width: 100% !important;
  min-width: 0 !important;
  padding: 10px 12px;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  outline: none;
  box-sizing: border-box !important;
  background: #fff;
}

.cbr-grid{
  display:grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

@media (max-width: 980px){
  .cbr-grid{ grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px){
  .cbr-controls{ flex-direction: column !important; }
  .cbr-control-wrap{ width: 100% !important; }
  .cbr-grid{ grid-template-columns: 1fr; }
}

.cbr-card{
  border: 1px solid #ededed;
  border-radius: 16px;
  overflow: hidden;
  background: #fafafa;
  box-shadow: 0 10px 18px rgba(0,0,0,.05);
  padding: 18px;
  min-height: 240px;
}

.cbr-head{
  display:flex;
  align-items:center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
}

.cbr-title{
  margin: 0;
  font-size: 22px;
  line-height: 1.3;
  font-weight: 700;
  text-align: right;
}

.cbr-thumb{
  width: 140px;
  height: 90px;
  border-radius: 12px;
  overflow: hidden;
  background: #f1f1f1;
  flex: 0 0 auto;
}

.cbr-thumb img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  display:block;
}

.cbr-thumb-ph{ width:100%; height:100%; }

.cbr-info{
  background: #fff;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid #f0f0f0;
}

.cbr-row{
  display:flex;
  align-items:center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  border-top: 1px solid #f2f2f2;
  color: #111;
flex-direction: row; /* بالـ RTL راح يظل الأيقون يمين */
    
}

.cbr-row:first-child{ border-top: 0; }

.cbr-row-label{
  font-size: 16px;
  font-weight: 600;
}

.cbr-row-text{
  font-size: 14px;
  line-height: 1.5;
  color: #222;
  flex: 1;
}

.cbr-ico{
  width: 34px;
  height: 34px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  border-radius: 999px;
  background: #fff;
}

.cbr-svg{
  width: 18px;
  height: 18px;
  fill: #f15a24; /* نفس البرتقالي بالصورة */
}


.cbr-row-link{
  text-decoration: none;
  color: inherit;
}

.cbr-row-link[aria-disabled="true"]{
  pointer-events: none;
  opacity: .55;
}

.cbr-empty{
  padding: 18px;
  border: 1px dashed #e5e7eb;
  border-radius: 16px;
  text-align:center;
  color:#6b7280;
}

.cbr-wrap.is-loading .cbr-results{
  opacity: .55;
  pointer-events:none;
}




/* Fix: prevent huge SVG icons inside cards */
.cbr-info .cbr-ico { 
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  flex: 0 0 20px;
}

.cbr-info .cbr-ico .cbr-svg{
  width: 18px !important;
  height: 18px !important;
  max-width: 18px !important;
  max-height: 18px !important;
  display: block !important;
}

/* make rows behave nicely */
.cbr-info .cbr-row{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
}

/* if any svg tries to take full width */
/* FINAL hard fix: stop any svg from blowing up */
.cbr-card svg{
  width: 18px !important;
  height: 18px !important;
  max-width: 18px !important;
  max-height: 18px !important;
  display: inline-block !important;
}


/* hide old inline icons inside rows (optional) */
.cbr-row .cbr-ico{ display:none !important; }


/* Force icon color */
.cbr-svg,
.cbr-card svg,
.cbr-icon,
.cbr-ico svg{
  fill: #F6592B !important;
  color: #F6592B !important;
}


.cbr-ico{
  background: #fff;
}

.cbr-ico svg{
  fill: #F6592B !important;
}



/* ── Map section ─────────────────────────────────────────────── */
.cbr-map-section {
  margin-bottom: 24px;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(0,0,0,.10);
  border: 1px solid #ededed;
}

.cbr-map {
  width: 100%;
  height: 420px;
  direction: ltr;
}

/* Custom orange pin marker */
.cbr-marker {
  width: 32px;
  height: 40px;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,.25));
}

.cbr-marker svg {
  width: 32px !important;
  height: 40px !important;
  fill: #F6592B !important;
}

/* Popup styling */
.cbr-leaflet-popup .leaflet-popup-content-wrapper {
  border-radius: 12px !important;
  box-shadow: 0 8px 24px rgba(0,0,0,.15) !important;
  font-family: 'Cairo', sans-serif !important;
  padding: 0 !important;
}

.cbr-leaflet-popup .leaflet-popup-content {
  margin: 0 !important;
}

.cbr-leaflet-popup .leaflet-popup-tip {
  background: #fff !important;
}

.cbr-popup {
  padding: 14px 16px;
  direction: rtl;
  text-align: right;
  min-width: 180px;
}

.cbr-popup-name {
  display: block;
  font-size: 15px;
  font-weight: 700;
  color: #111;
  margin-bottom: 8px;
  border-bottom: 2px solid #F6592B;
  padding-bottom: 6px;
}

.cbr-popup-row {
  font-size: 13px;
  color: #444;
  margin-top: 5px;
  line-height: 1.5;
}

.cbr-popup-row a {
  color: #F6592B;
  text-decoration: none;
  direction: ltr;
  display: inline-block;
}

/* ── City pills above map ─────────────────────────────────────── */
.cbr-map-cities {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 14px 16px;
  background: #fff;
  border-bottom: 1px solid #ededed;
  direction: rtl;
}

.cbr-city-pill {
  padding: 6px 16px;
  border-radius: 999px;
  border: 1.5px solid #e5e7eb;
  background: #fff;
  color: #444;
  font-family: 'Cairo', sans-serif;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all .15s;
  white-space: nowrap;
}

.cbr-city-pill:hover {
  border-color: #F6592B;
  color: #F6592B;
  
}

.cbr-city-pill.active {
  background: #F6592B;
  border-color: #F6592B;
  color: #fff;
}

/* ── Marker label below pin ───────────────────────────────────── */
.cbr-marker-label {
  display: block;
  margin-top: 2px;
  background: #F6592B;
  color: #fff;
  font-family: 'Cairo', sans-serif;
  font-size: 10px;
  font-weight: 600;
  padding: 2px 6px;
  border-radius: 6px;
  white-space: nowrap;
  text-align: center;
  box-shadow: 0 1px 4px rgba(0,0,0,.2);
  max-width: 120px;
  overflow: hidden;
  text-overflow: ellipsis;
}