/* Modern frontend UI (v1.3.1) */
.bes-wrap{
  border:1px solid rgba(0,0,0,.08);
  border-radius:22px;
  padding:18px;
  background:linear-gradient(180deg, rgba(255,255,255,.94), rgba(255,255,255,1));
  box-shadow:0 18px 50px rgba(0,0,0,.06);
}

.bes-top{
  display:flex;
  gap:14px;
  justify-content:space-between;
  align-items:flex-end;
  margin-bottom:12px;
  flex-wrap:wrap;
}
.bes-title{font-weight:900;font-size:20px;letter-spacing:-.2px;line-height:1.1;}
.bes-subtitle{opacity:.72;font-size:13px;margin-top:5px;}
.bes-search{min-width:240px;flex:1 1 320px;max-width:520px;}
.bes-search input{
  width:100%;
  padding:12px 14px;
  border-radius:16px;
  border:1px solid rgba(0,0,0,.12);
  outline:none;
  background:#fff;
  color:#111 !important;
}
.bes-search input::placeholder{opacity:.55;}
.bes-search input:focus{box-shadow:0 0 0 4px rgba(0,0,0,.05);}

.bes-filters{
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr)) auto;
  gap:10px;
  align-items:end;
  margin:10px 0 10px;
}
@media (max-width:980px){
  .bes-filters{grid-template-columns:repeat(2,minmax(0,1fr));}
  .bes-reset{width:100%;}
}

.bes-select label{
  display:block;
  font-weight:850;
  font-size:12px;
  margin-bottom:6px;
  opacity:.92;
}

/* Stronger select styles to avoid theme conflicts */
.bes-select select{
  width:100%;
  padding:12px 42px 12px 14px;
  border-radius:16px;
  border:1px solid rgba(0,0,0,.12);
  background:#fff !important;
  outline:none;
  height:44px;
  line-height:20px;
  font-size:13px;
  font-weight:800;
  color:#111 !important;
  -webkit-appearance:none;
  appearance:none;
  background-image:
    linear-gradient(45deg, transparent 50%, rgba(0,0,0,.55) 50%),
    linear-gradient(135deg, rgba(0,0,0,.55) 50%, transparent 50%);
  background-position:
    calc(100% - 18px) 18px,
    calc(100% - 12px) 18px;
  background-size:6px 6px, 6px 6px;
  background-repeat:no-repeat;
}
.bes-select select:focus{box-shadow:0 0 0 4px rgba(0,0,0,.05);}
.bes-select select:disabled{
  opacity:.65;
  cursor:not-allowed;
  background:#fafafa !important;
}
.bes-select select option{color:#111 !important;}

.bes-reset{
  padding:12px 16px;
  border-radius:16px;
  border:1px solid rgba(0,0,0,.12);
  background:rgba(0,0,0,.03);
  cursor:pointer;
  font-weight:900;
  height:44px;
}

.bes-status-row{
  display:flex;
  gap:10px;
  align-items:center;
  justify-content:space-between;
  flex-wrap:wrap;
  margin:8px 0 12px;
}
.bes-breadcrumb{font-size:12px;opacity:.72;}
.bes-status{
  padding:9px 12px;
  border-radius:999px;
  font-size:12.5px;
  font-weight:850;
  white-space:nowrap;
}
.bes-status.info{background:rgba(0,0,0,.04);}
.bes-status.ok{background:rgba(0,160,80,.12);}
.bes-status.error{background:rgba(220,20,60,.12);}

.bes-grid{
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:12px;
}
@media (max-width:1100px){.bes-grid{grid-template-columns:repeat(3,minmax(0,1fr));}}
@media (max-width:980px){.bes-grid{grid-template-columns:repeat(2,minmax(0,1fr));}}
@media (max-width:520px){.bes-grid{grid-template-columns:1fr;}}

/* VERTICAL CARD */
.bes-card{
  border:1px solid rgba(0,0,0,.08);
  border-radius:22px;
  overflow:hidden;
  background:#fff;
  box-shadow:0 14px 34px rgba(0,0,0,.06);
  transition:transform .15s ease, box-shadow .15s ease;
  display:flex;
  flex-direction:column;
  min-height:260px;
}
.bes-card:hover{transform:translateY(-2px);box-shadow:0 20px 46px rgba(0,0,0,.09);}

.bes-media{
  height:160px;
  background:radial-gradient(circle at 30% 20%, rgba(0,0,0,.04), rgba(0,0,0,.02));
  display:flex;
  align-items:center;
  justify-content:center;
  position:relative;
}
.bes-media img{width:100%;height:100%;object-fit:cover;}
.bes-initials{
  width:76px;height:76px;border-radius:999px;
  background:rgba(0,0,0,.10);
  display:flex;align-items:center;justify-content:center;
  font-weight:950;font-size:22px;color:#111;
}

.bes-content{
  padding:14px 14px 16px;
  display:flex;
  flex-direction:column;
  gap:10px;
  flex:1;
}
.bes-head{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:10px;
}
.bes-name{font-weight:950;font-size:16px;line-height:1.2;color:#111;}
.bes-badge{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:7px 11px;
  border-radius:999px;
  font-size:11px;
  font-weight:950;
  background:rgba(0,0,0,.06);
  white-space:nowrap;
  color:#111;
}
.bes-unvan{font-size:13px;font-weight:900;opacity:.92;color:#111;}

.bes-meta{
  display:grid;
  gap:8px;
  margin-top:2px;
}
.bes-row{
  display:flex;
  justify-content:space-between;
  gap:10px;
  font-size:13px;
  opacity:.92;
  padding:10px 12px;
  border-radius:16px;
  background:rgba(0,0,0,.03);
}
.bes-row .k{font-weight:950;opacity:.78;}
.bes-row .v{font-weight:850;text-align:right;}

.bes-actions{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  margin-top:auto;
  padding-top:2px;
}
.bes-btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:11px 14px;
  border-radius:999px;
  border:1px solid rgba(0,0,0,.12);
  text-decoration:none!important;
  font-size:12px;
  font-weight:950;
  background:#fff;
  color:#111 !important;
  flex:1 1 auto;
}
.bes-btn-ghost{background:rgba(0,0,0,.02);}

.bes-wrap.loading{opacity:.92;pointer-events:none;}

.bes-skeleton{
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:12px;
  margin:6px 0 10px;
}
@media (max-width:1100px){.bes-skeleton{grid-template-columns:repeat(3,minmax(0,1fr));}}
@media (max-width:980px){.bes-skeleton{grid-template-columns:repeat(2,minmax(0,1fr));}}
@media (max-width:520px){.bes-skeleton{grid-template-columns:1fr;}}

.bes-skel-card{
  height:260px;
  border-radius:22px;
  background:linear-gradient(90deg, rgba(0,0,0,.05), rgba(0,0,0,.09), rgba(0,0,0,.05));
  background-size:200% 100%;
  animation:besShimmer 1.1s infinite;
  border:1px solid rgba(0,0,0,.06);
}
@keyframes besShimmer{0%{background-position:200% 0;}100%{background-position:-200% 0;}}

/* Yetki badges inside rows */
.bes-row .v{display:flex;flex-wrap:wrap;gap:6px;justify-content:flex-end;}

/* Map */
.bes-map-wrap{
  margin-top:14px;
  border:1px solid rgba(0,0,0,.08);
  border-radius:22px;
  padding:14px;
  background:#fff;
  box-shadow:0 14px 34px rgba(0,0,0,.06);
}
.bes-map-title{font-weight:950;font-size:15px;margin-bottom:8px}
.bes-tr-map{width:100%;min-height:420px}
@media (max-width:520px){.bes-tr-map{min-height:340px}}
.bes-map-note{opacity:.72;font-size:12px;margin-top:8px}

.bes-map-wrap{margin:18px 0 18px 0}

.bes-map-card{background:#fff;border:1px solid rgba(0,0,0,.06);border-radius:18px;padding:14px;box-shadow:0 10px 30px rgba(0,0,0,.05)}
