/* --- ILMEXA Berber Modülü Stilleri ve Mobil Uyumluluk --- */
.bb {
  display: flex;
  flex-direction: column;
  gap: 20px;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  box-sizing: border-box;
}

.bb-head h2 {
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  font-weight: 800;
  color: var(--fg, #0f172a);
  margin-bottom: 8px;
}

.bb-head p {
  color: var(--mu, #64748b);
  font-size: clamp(0.9rem, 1.5vw, 1.05rem);
}

/* Arama Çubuğu */
.bb-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  width: 100%;
}

.bb-bar input[type="search"] {
  flex: 1;
  min-width: 220px;
  padding: 12px 16px;
  border: 1px solid var(--border, #cbd5e1);
  border-radius: 12px;
  background: var(--card-bg, #ffffff);
  color: var(--fg, #0f172a);
  font-size: 1rem;
  outline: none;
  transition: border-color 0.2s;
}

.bb-bar input[type="search"]:focus {
  border-color: var(--primary, #2f7bff);
}

.bb-bar button {
  white-space: nowrap;
}

/* Araçlar ve Filtreler */
.bb-tools {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-top: 5px;
}

.bb-sel {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  width: 100%;
}

.bb-sel label {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 0.85rem;
  color: var(--mu, #64748b);
  flex: 1;
  min-width: 200px;
}

.bb-sel select {
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid var(--border, #cbd5e1);
  background: var(--card-bg, #ffffff);
  color: var(--fg, #0f172a);
  font-size: 0.95rem;
  outline: none;
}

.bb-status {
  font-size: 0.9rem;
  color: var(--mu, #64748b);
  width: 100%;
}

/* Kart Grid Yapısı */
.bb-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
  width: 100%;
}

.bb-card {
  background: var(--card-bg, #ffffff);
  border: 1px solid var(--border, #e2e8f0);
  border-radius: 16px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: 0 4px 12px rgba(0,0,0,0.03);
  transition: transform 0.2s, box-shadow 0.2s;
  box-sizing: border-box;
}

.bb-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.06);
}

.bb-body {
  display: flex;
  flex-direction: column;
  gap: 12px;
  height: 100%;
}

.bb-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 10px;
}

.bb-top h3 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--fg, #0f172a);
  margin: 0;
  word-break: break-word;
}

.bb-tag {
  background: rgba(47,123,255,0.1);
  color: var(--primary, #2f7bff);
  font-size: 0.75rem;
  font-weight: 600;
  padding: 4px 8px;
  border-radius: 6px;
  white-space: nowrap;
}

.bb-meta, .bb-addr {
  font-size: 0.9rem;
  color: var(--mu, #64748b);
  margin: 0;
  line-height: 1.4;
}

.bb-act {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: auto;
  padding-top: 12px;
}

.bb-act a {
  flex: 1;
  min-width: 110px;
  text-align: center;
  padding: 8px 12px;
  font-size: 0.85rem;
  border-radius: 8px;
  text-decoration: none;
  box-sizing: border-box;
}

.bb-more {
  display: flex;
  justify-content: center;
  margin-top: 20px;
}

.bb-note {
  font-size: 0.8rem;
  color: var(--mu, #64748b);
  text-align: center;
  margin-top: 10px;
  line-height: 1.5;
}

.bb-msg {
  padding: 14px;
  border-radius: 10px;
  background: rgba(239, 68, 68, 0.1);
  color: #ef4444;
  font-size: 0.95rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

/* Mobil Uyum Ek Düzenlemeleri (Max 760px) */
@media (max-width: 760px) {
  .bb {
    padding: 0 12px;
  }
  .bb-bar {
    flex-direction: column;
  }
  .bb-bar button {
    width: 100%;
  }
  .bb-grid {
    grid-template-columns: 1fr;
  }
  .bb-act a {
    flex: 100%;
  }
}
#berber-app .bb-head h2 {
  color: #ffffff;
} 
#berber-app .bb-msg[hidden] {
  display: none !important;
}
#berber-app .bb-card .bb-act .btn-g {
  color: #292b45 !important;
  border-color: #d6d9e8 !important;
  background: #f2f3fa !important;
}

#berber-app .bb-card .bb-act .btn-g:hover {
  color: #ffffff !important;
  background: #5146dc !important;
  border-color: #5146dc !important;
}
#berber-app #bbmore[hidden] {
  display: none !important;
}
/* Konum önerileri */
#berber-app .bb-bar {
  position: relative;
}

#berber-app #bb-location-list {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  width: min(100%, 695px);
  max-height: 260px;
  overflow-y: auto;
  background: #ffffff;
  color: #20233b;
  border: 1px solid #d9dcef;
  border-radius: 12px;
  box-shadow: 0 16px 36px rgba(0, 0, 0, .24);
  z-index: 1000;
}

#berber-app #bb-location-list[hidden] {
  display: none !important;
}

#berber-app .bb-location-option {
  display: block;
  width: 100%;
  padding: 13px 16px;
  border: 0;
  border-bottom: 1px solid #eef0f7;
  background: #ffffff;
  color: #20233b;
  font-size: 14px;
  text-align: left;
  cursor: pointer;
  white-space: normal;
}

#berber-app .bb-location-option:last-child {
  border-bottom: 0;
}

#berber-app .bb-location-option:hover,
#berber-app .bb-location-option:focus {
  background: #eeedff;
  color: #4035bd;
}

@media (max-width: 760px) {
  #berber-app #bb-location-list {
    width: 100%;
  }
}