* {
  font-family: "Lato", sans-serif;
}

.legend-overlay {
  font-size: 13px;
  line-height: 1.3;
}

.btncizim {
  border: 1px solid black;
  border-radius: 10%;
  cursor: pointer;
}

.query-card {
  padding: 10px;
  border-bottom: 1px solid #ddd;
  cursor: pointer;
}

.query-card:hover {
  background: #f0f0f0;
}

#queryResultsPanel {
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  padding-right: 5px;
  scrollbar-width: none;
}

#scrollableTabs {
  scrollbar-width: none;
  /* Firefox */
  -ms-overflow-style: none;
  /* IE 10+ */
}

#scrollableTabs::-webkit-scrollbar {
  display: none;
  /* Chrome, Safari */
}

.scroll-btn {
  background: transparent;
  border: none;
  color: #666;
  font-size: 18px;
  padding: 4px;
  cursor: pointer;
  transition: color 0.2s;
}

.scroll-btn:hover {
  color: #000;
}

.category-select-container {
  border: 1px solid var(--bs-border-color, #dee2e6);
  border-top: none;
  background: var(--bs-body-bg, #fff);
  border-radius: 0 0 0.375rem 0.375rem;
  padding: 1rem;
}

.ts-control {
  position: relative;
  padding-right: 30px;
}

.ts-control::after {
  content: "▾";
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 14px;
  color: #6c757d;
  pointer-events: none;
}

.mapboxgl-ctrl-group:has(.mapbox-gl-draw_polygon) {
  display: none !important;
}

.search-card.active {
  border: 1px solid #007bff;
  background-color: #f0f8ff;
}

.left-card.active {
  border: 1px solid #007bff;
  background-color: #f8f9fa;
}

.search-wrapper .form-control {
  font-size: 14px;
  padding: 4px 8px;
}

.search-wrapper .btn {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}

.search-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 10px;
  flex-wrap: wrap;
}

.search-tabs .tab-btn {
  padding: 4px 10px;
  font-size: 13px;
  background: #f8f8f8;
  border: 1px solid #ccc;
  border-radius: 4px;
  cursor: pointer;
}

.search-tabs .tab-btn.active {
  color: white;
}

.search-tabs .badge {
  background: #fff;
  font-size: 11px;
  margin-left: 6px;
  padding: 2px 6px;
  border-radius: 10px;
}

.tab-panel {
  display: none;
}

#dashboardModal {
  z-index: 10000;
}

.dx-tooltip {
  z-index: 10500 !important;
}

.nk-home-header {
  color: black;
}

#geo360Modal {
  z-index: 10000 !important;
}

#imarModal {
  z-index: 10000 !important;
}

#cameraVideo,
.video-js,
.video-js .vjs-tech {
  height: 700px !important;
  max-height: 700px !important;
  width: 100% !important;
  object-fit: contain !important;
}

.mapbox-gl-draw-point {
  width: 312px !important;
  height: 312px !important;
  border-radius: 50%;
  border: 2px solid #000;
  background-color: #fff;
}

.style-flipper-control {
  z-index: 9999;
  left: 50%;
  transform: translateX(-50%);
}

.forminput {
  margin-right: 40px;
}

.search-wrapper {
  border-radius: 5px;
  padding: 2px;
}

.selected-marker {
  outline: 2px dashed red;
  outline-offset: 2px;
}

#bilgiHTML .list-group-item {
  font-size: 14px;
  padding: 6px 10px;
  cursor: pointer;
}

#bilgiHTML .list-group-item:hover {
  background-color: #f5f5f5;
}

#bilgiHTML .badge {
  font-size: 12px;
}

#bilgiHTML {
  width: 100%;
  max-height: 85vh;
  overflow-y: auto;
  padding-right: 5px;
  scrollbar-width: none;
}

.draw-sidebar {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  font-family:
    system-ui,
    -apple-system,
    "Segoe UI",
    Roboto,
    Arial,
    "Helvetica Neue",
    sans-serif;
}

.ds-header {
  padding: 8px;
  border-bottom: 1px solid #eee;
}

.ds-tools {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.ds-btn {
  border: 1px solid #ddd;
  background: rgba(255, 255, 255, 0.4) !important;
  backdrop-filter: blur(var(--glass-blur, 10px)) !important;
  -webkit-backdrop-filter: blur(var(--glass-blur, 10px));
  color: #000 !important;
  border-radius: 14px;
  padding: 6px 8px;
  cursor: pointer;
  font-size: 14px;
}

.ds-btn:hover {
  background: #f0f0f0;
}

.ds-sep {
  width: 1px;
  background: #eee;
  margin: 0 4px;
}

.ds-body {
  display: flex;
  flex-direction: column;
  height: 83%;
}

.ds-bulk {
  display: flex;
  gap: 8px;
  padding: 8px;
  border-bottom: 1px solid #f2f2f2;
}

.ds-bulk-btn {
  flex: 1;
  padding: 6px 8px;
  border-radius: 6px;
  border: 1px solid #ddd;
  cursor: pointer;
}

.ds-bulk-btn:hover {
  background: #f6f6f6;
}

.ds-bulk-btn.danger {
  border-color: #f3a7a7;
  color: #a40000;
}

.ds-list {
  overflow: auto;
  height: 83%;
  padding: 6px 8px;
}

.ds-item {
  border: 1px solid #eee;
  border-radius: 8px;
  padding: 8px;
  margin-bottom: 8px;
}

.ds-item-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.ds-item-left {
  display: flex;
  gap: 8px;
  align-items: center;
}

.ds-ico {
  font-size: 16px;
}

.ds-title .ds-name {
  font-weight: 600;
}

.ds-title .ds-sub {
  font-size: 12px;
  color: #666;
}

.ds-item-actions {
  display: flex;
  gap: 6px;
}

.mini {
  background: transparent;
  border-radius: 6px;
  padding: 4px 6px;
  cursor: pointer;
  font-size: 13px;
}

.mini.danger {
  border-color: #f3a7a7;
  color: #a40000;
}

.mini:hover {
  background: #f0f0f0;
}

.draw-label {
  padding: 2px 6px;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: 12px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.draw-label-halo {
  font-family: Arial, sans-serif;
  font-size: 11px;
  font-weight: 500;
  color: #000;
  text-shadow:
    -1px -1px 0 #fff,
    1px -1px 0 #fff,
    -1px 1px 0 #fff,
    1px 1px 0 #fff;
  white-space: nowrap;
  pointer-events: none;
  user-select: none;
}

.draw-label-total {
  font-weight: bold;
  font-size: 12px;
}

.draw-free-label {
  padding: 2px 4px;
  border-radius: 4px;
  user-select: none;
}

.ds-btn.active {
  background-color: #8cadd1;
  color: white;
  border-color: #0056b3;
}

.ds-item.highlight {
  animation: highlightFlash 1.2s ease-out;
  background-color: rgba(255, 230, 150, 0.8);
  border-left: 4px solid #ff9800;
}

@keyframes highlightFlash {
  0% {
    background-color: rgba(255, 230, 150, 0.8);
  }

  50% {
    background-color: rgba(255, 200, 80, 1);
  }

  100% {
    background-color: transparent;
  }
}

.ds-toggle-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 8px;
  padding: 4px 0;
  border-top: 1px solid #eee;
}

.ds-toggle-wrapper {
  display: flex;
  align-items: center;
  gap: 6px;
  flex: 1;
  margin-top: 10px;
}

.ds-toggle-label {
  font-size: 13px;
  color: #333;
}

.ds-toggle {
  position: relative;
  display: inline-block;
  width: 38px;
  height: 20px;
}

.ds-toggle input {
  opacity: 0;
  width: 0;
  height: 0;
}

.ds-slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #ccc;
  transition: 0.2s;
  border-radius: 20px;
}

.ds-slider:before {
  position: absolute;
  content: "";
  height: 14px;
  width: 14px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  transition: 0.2s;
  border-radius: 50%;
}

.ds-toggle input:checked+.ds-slider {
  background-color: #007bff;
}

.ds-toggle input:checked+.ds-slider:before {
  transform: translateX(18px);
}

.ds-tools-row {
  display: flex;
  flex-direction: column;
  width: 100%;
}

.ds-tools-top {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  gap: 10px;
  width: 100%;
  margin-bottom: 8px;
}

.ds-tools-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  gap: 20px;
  border-top: 1px solid #eee;
  padding-top: 6px;
}

.ds-btn.danger {
  border: 1px solid #c0392b !important;
}

.ds-btn.indir {
  border: 1px solid #44c02b !important;
}

.coord-switch {
  margin-top: 10px;
  margin-left: auto;
  position: relative;
  width: 90px;
  height: 28px;
}

.coord-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.coord-switch label {
  position: absolute;
  cursor: pointer;
  background-color: #ccc;
  border-radius: 30px;
  width: 100%;
  height: 100%;
  transition: 0.3s;
  font-size: 12px;
  color: #fff;
  text-align: center;
  line-height: 28px;
  user-select: none;
}

.coord-switch input:checked+label {
  background-color: #007bff;
}

.coord-switch label::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 4px;
  width: 20px;
  height: 20px;
  background: white;
  border-radius: 50%;
  transition: 0.3s;
}

.coord-switch input:checked+label::before {
  transform: translateX(62px);
}

.ds-collapse-icon {
  width: 20px;
  text-align: center;
  margin-right: 6px;
  color: #666;
  transition: transform 0.2s ease;
}

.ds-item-head:hover .ds-collapse-icon {
  color: #000;
}

.filterRow .ts-wrapper {
  width: 100% !important;
}

.eczane-header-left {
  display: flex;
  flex-direction: column;
}

.eczane-title {
  font-weight: 700;
  font-size: 1.05rem;
}

.eczane-date {
  font-size: 0.85rem;
  color: #6c757d;
}

.eczane-card {
  background: #fff;
  border-radius: 10px;
  padding: 10px 12px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
  margin-bottom: 10px;
}

.eczane-card-title {
  font-weight: 700;
  color: #c62828;
  margin-bottom: 4px;
}

.eczane-card-row {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.9rem;
}

.eczane-card-row.phone a {
  font-weight: 600;
}

.glass-effect {
  background: rgba(255, 255, 255, 0.4) !important;
  backdrop-filter: blur(var(--glass-blur, 10px)) !important;
  -webkit-backdrop-filter: blur(var(--glass-blur, 10px));
  color: #000 !important;
}

.glass-effect-border {
  border-radius: 25px !important;
}

.glass-effect-low {
  background: rgba(255, 255, 255, 0.00000004);
  backdrop-filter: blur(1000px);
  -webkit-backdrop-filter: blur(5px);
}

.layer-card {
  background: rgba(255, 255, 255, 0.4);
  backdrop-filter: blur(var(--glass-blur, 10px));
  -webkit-backdrop-filter: blur(var(--glass-blur, 10px));
}

.maplibregl-ctrl-group button+button {
  border: none !important;
}

.accordion,
.accordion-item,
.accordion-button,
.accordion-body {
  background: transparent !important;
}

.accordion-item {
  backdrop-filter: blur(12px);
  background: rgba(255, 255, 255, 0.15) !important;
}

.accordion-button {
  background: rgba(255, 255, 255, 0.15) !important;
  backdrop-filter: blur(12px);
}

.accordion-button:not(.collapsed) {
  background: rgba(255, 255, 255, 0.22) !important;
}

.nav-tabs,
.nav-tabs .nav-link {
  color: black !important;
  background-color: transparent !important;
}

.nav-link.glass-effect.active {
  color: #000 !important;
  background-color: rgba(255, 255, 255, 0.35) !important;
  backdrop-filter: blur(12px) saturate(140%);
  -webkit-backdrop-filter: blur(12px) saturate(140%);
  border-radius: 8px;
  font-weight: 800;
}

.dropdown-menu.glass-effect {
  background-color: rgba(255, 255, 255, 0.78) !important;
  backdrop-filter: blur(16px) saturate(160%);
  -webkit-backdrop-filter: blur(16px) saturate(160%);
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.45);
  box-shadow: 0 10px 35px rgba(0, 0, 0, 0.25);
  padding: 6px 0;
  z-index: 10000;
}

.dropdown-menu.glass-effect .dropdown-item {
  background-color: transparent !important;
  color: #000 !important;
  font-weight: 500;
}

.dropdown-menu.glass-effect .dropdown-item:hover,
.dropdown-menu.glass-effect .dropdown-item:focus {
  background-color: rgba(0, 0, 0, 0.06) !important;
  color: #000 !important;
}

.context-menu-root.context-menu-list {
  background-color: rgba(255, 255, 255, 0.55) !important;
  backdrop-filter: blur(16px) saturate(160%);
  -webkit-backdrop-filter: blur(16px) saturate(160%);
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.45);
  box-shadow: 0 10px 35px rgba(0, 0, 0, 0.25);
  font-weight: 500;
}

.context-menu-item>.context-menu-list {
  background-color: rgba(255, 255, 255, 0.78) !important;
  backdrop-filter: blur(16px) saturate(160%);
  -webkit-backdrop-filter: blur(16px) saturate(160%);
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.45);
}

.context-menu-item {
  background-color: transparent !important;
  color: #000 !important;
  font-weight: 500;
}

.context-menu-item:hover,
.context-menu-item.context-menu-hover {
  background-color: rgba(0, 0, 0, 0.06) !important;
  color: #000 !important;
}

.context-menu-list {
  z-index: 10000 !important;
}

#featureDetails {
  position: relative;
  z-index: -1;
}

.glass-grid.dx-datagrid,
.glass-grid .dx-datagrid,
.glass-grid .dx-datagrid *,
.glass-grid .dx-row,
.glass-grid .dx-row-alt,
.glass-grid .dx-state-hover,
.glass-grid .dx-selection,
.glass-grid .dx-row-focused,
.glass-grid .dx-header-row,
.glass-grid .dx-datagrid-filter-row,
.glass-grid .dx-datagrid-header-panel,
.glass-grid .dx-datagrid-rowsview,
.glass-grid .dx-datagrid-content,
.glass-grid .dx-datagrid-headers {
  background: transparent !important;
  background-color: transparent !important;
  box-shadow: none !important;
  font-weight: 600;
}

/*glasstablo*/
.glass-grid table {
  background: transparent;
  border-collapse: collapse !important;
  border: 1px solid rgba(0, 0, 0, 0.25);
  border-radius: 8px;
  overflow: hidden;
}

.glass-grid table thead,
.glass-grid table tbody,
.glass-grid table tr,
.glass-grid table th,
.glass-grid table td {
  background: transparent;
  box-shadow: none;
}

.glass-grid table th,
.glass-grid table td {
  padding: 10px 12px;
  color: #1f1f1f;
  vertical-align: top;
  border-bottom: 1px solid rgba(0, 0, 0, 0.18);
}

.glass-grid table tr:last-child td {
  border-bottom: none;
}

.glass-grid table th:first-child,
.glass-grid table td:first-child {
  font-weight: 600;
  white-space: normal;
}

.glass-grid table th:not(:last-child),
.glass-grid table td:not(:last-child) {
  border-right: 1px solid rgba(0, 0, 0, 0.18);
}

.glass-grid table tr:hover,
.glass-grid table tr:nth-child(even),
.glass-grid table tr:nth-child(odd) {
  background: transparent;
}

/*glasstablo*/
.glass-grid .dx-row-alt>td,
.glass-grid .dx-state-hover>td,
.glass-grid .dx-selection>td,
.glass-grid .dx-row-focused>td {
  background: transparent !important;
  background-color: transparent !important;
}

.glass-grid .dx-row>td,
.glass-grid .dx-header-row>td,
.glass-grid .dx-datagrid-borders *,
.glass-grid .dx-column-lines>td,
.glass-grid .dx-row-lines>td {
  border-color: rgba(0, 0, 0, 0.15) !important;
}

.glass-grid table {
  border-collapse: collapse !important;
}

.glass-grid .dx-data-row>td {
  color: #1f1f1f;
  padding: 10px 12px;
}

.glass-grid .dx-header-row>td {
  font-weight: 600;
  color: #222;
}

.glass-grid .dx-texteditor,
.glass-grid .dx-texteditor-container,
.glass-grid .dx-texteditor-input {
  background: transparent !important;

  box-shadow: none !important;
}

.glass-grid .dx-scrollable-scrollbar,
.glass-grid .dx-scrollbar,
.glass-grid .dx-scrollbar-thumb {
  display: none !important;
}

.glass-grid .dx-focused,
.glass-grid .dx-highlight-outline,
.glass-grid .dx-cell-modified::after,
.glass-grid .dx-datagrid-invalid::after {
  outline: none !important;
  border: none !important;
}

.glass-grid .dx-icon,
.glass-grid .dx-texteditor-input {
  color: #000 !important;
}

.glass-grid .dx-item-content {
  color: #000 !important;
}

.glass-grid .dx-datagrid-search-panel .dx-icon-search {
  color: #ff0000 !important;
}

#eczaneMahalleSelect,
#eczaneIlceSelect {
  background: rgba(255, 255, 255, 0.25);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 8px;
  color: #333;
}

/* Tom Select glass input */
.ts-control {
  background-color: rgba(220, 220, 220, 0.55) !important;
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border: 1px solid rgba(0, 0, 0, 0.15) !important;
  border-radius: 8px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.15);
  color: #2b2b2b;
}

.ts-control input::placeholder {
  color: rgba(0, 0, 0, 0.55);
}

.focus .ts-control,
.ts-control:focus-within {
  background-color: rgba(220, 220, 220, 0.65) !important;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.2);
}

.ts-dropdown {
  background-color: rgba(220, 220, 220, 0.95) !important;
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  border-radius: 8px;
  border: 1px solid rgba(0, 0, 0, 0.18);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
}

/* Tom Select glass input */

#layerGroups {
  margin-top: 10px !important;
}


.bottom-table-panel {
  width: 100%;
  max-height: 90vh;
  min-height: 90vh;
  padding-right: 5px;
  scrollbar-width: none;
  overflow-y: auto;
  overflow-x: hidden;
}


.weather-header {
  display: flex;
  align-items: center;
  gap: 10px;
}

.weather-temp {
  font-size: 18px;
  font-weight: 600;
  color: #000000;
}

.weather-desc {
  font-size: 13px;
  color: #000000;
}

.weather-coords {
  font-size: 11px;
  color: #000000;
  text-align: center;
}

.weather-source {
  text-align: center;
  font-size: 10px;
  color: #000000;
}



.paneltp {
  background: transparent;
  pointer-events: none;
}

.lm_header {
  pointer-events: auto;
  background: #fafafa;
}

.lm_splitter {
  pointer-events: auto;
}

.lm_header .lm_tab {
  cursor: move;
}

.lm_close_tab {
  cursor: default;
}

#streetPanel.is-collapsed #fotoGoster {
  padding-top: 48px !important;
}

#streetPanel.is-collapsed #fotoGoster .row {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

#streetPanel.is-collapsed #fotoGoster .row>[class*="col-"] {
  width: 100% !important;
  max-width: 100% !important;
  flex: 0 0 100% !important;
}

#streetPanel.is-collapsed #fotoGoster img {
  width: 100% !important;
  height: 60px;
  object-fit: cover;
  border-radius: 6px;
}

#streetPanel.is-collapsed #fotoGoster a {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

#streetPanel.active.is-collapsed #fotoGoster {
  padding-left: 6px !important;
  padding-right: 6px !important;
}

#streetPanelHeader {
  position: absolute;
  top: 6px;
  left: 6px;
  right: 6px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 1000;
  pointer-events: none;
}

#streetPanelHeader .street-btn {
  pointer-events: auto;
  background: rgba(0, 0, 0, 0.6);
  color: #fff;
  border: none;
  border-radius: 4px;
  padding: 4px 10px;
  font-size: 16px;
  cursor: pointer;
}

#streetPanel #fotoGoster {
  padding-left: 6px !important;
  padding-right: 6px !important;
  box-sizing: border-box;
}

#streetPanel #fotoGoster .row {
  margin-left: 0 !important;
  margin-right: 0 !important;
  justify-content: center;
}

#streetPanel #fotoGoster .row>[class*="col-"] {
  padding-left: 6px !important;
  padding-right: 6px !important;
  box-sizing: border-box;
}

#streetPanel.is-collapsed #fotoGoster {
  padding-left: 6px !important;
  padding-right: 6px !important;
}

#queryBody .dx-data-row {
  cursor: pointer;
}

/* ============================================================
   BOTTOM TABLES — popup & hover popup
   ============================================================ */

/* Maplibre default wrapper'ını şeffaflaştır, kendi kutumuzu basıyoruz */
.maplibregl-popup.bt-popup-wrapper .maplibregl-popup-content,
.mapboxgl-popup.bt-popup-wrapper .mapboxgl-popup-content {
  padding: 0;
  background: transparent;
  border: none;
  box-shadow: none;
  border-radius: 12px;
  overflow: visible;
}

.maplibregl-popup.bt-popup-wrapper .maplibregl-popup-tip,
.mapboxgl-popup.bt-popup-wrapper .mapboxgl-popup-tip {
  border-top-color: rgba(255, 255, 255, 0.6);
  border-bottom-color: rgba(255, 255, 255, 0.6);
}

/* ---------- ANA POPUP ---------- */

.bt-popup {
  min-width: 240px;
  max-width: 320px;
  background: rgba(255, 255, 255, 0.55);
  backdrop-filter: blur(14px) saturate(160%);
  -webkit-backdrop-filter: blur(14px) saturate(160%);
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
  overflow: hidden;
  font-family: inherit;
  color: #1f2937;
}

.bt-popup-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 10px 12px;
  background: rgba(255, 255, 255, 0.35);
  border-bottom: 1px solid rgba(255, 255, 255, 0.5);
}

.bt-popup-title {
  font-weight: 700;
  font-size: 0.95rem;
  color: #111827;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  flex: 1;
  min-width: 0;
}

.bt-popup-close {
  background: rgba(0, 0, 0, 0.06);
  border: none;
  width: 26px;
  height: 26px;
  border-radius: 6px;
  color: #374151;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.15s, color 0.15s, transform 0.1s;
  font-size: 0.85rem;
  flex-shrink: 0;
  padding: 0;
}

.bt-popup-close:hover {
  background: rgba(220, 38, 38, 0.9);
  color: #fff;
}

.bt-popup-close:active {
  transform: scale(0.94);
}

.bt-popup-body {
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  max-height: 260px;
  overflow-y: auto;
}

.bt-popup-body::-webkit-scrollbar {
  width: 6px;
}

.bt-popup-body::-webkit-scrollbar-thumb {
  background: rgba(0, 0, 0, 0.2);
  border-radius: 3px;
}

.bt-popup-row {
  display: flex;
  align-items: baseline;
  gap: 6px;
  font-size: 0.86rem;
  line-height: 1.4;
}

.bt-popup-key {
  font-weight: 600;
  color: #4b5563;
  flex-shrink: 0;
}

.bt-popup-val {
  color: #111827;
  word-break: break-word;
}

.bt-popup-empty {
  font-size: 0.85rem;
  color: #6b7280;
  text-align: center;
  padding: 6px 0;
}

/* ============================================================
   PopupGenerator — actions bar (sol: maps redirect, sağ: eylemler)
   ============================================================ */
.bt-popup-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 8px 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.5);
  background: rgba(255, 255, 255, 0.35);
}

.bt-popup-actions-left,
.bt-popup-actions-right {
  display: flex;
  align-items: center;
  gap: 4px;
}

/* Sol — sadece ikon, kompakt */
.bt-popup-icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.7);
  color: #333;
  text-decoration: none;
  font-size: 13px;
  transition: transform 100ms ease, background 100ms ease;
}

.bt-popup-icon-btn:hover {
  transform: translateY(-1px);
  background: rgba(255, 255, 255, 0.9);
  color: #000;
}

/* Sağ — eylem butonları, hafif vurgulu */
.bt-popup-action-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 10px;
  background: rgba(37, 114, 255, 0.12);
  border: 1px solid rgba(37, 114, 255, 0.3);
  color: #2572ff;
  cursor: pointer;
  font-size: 14px;
  transition: transform 100ms ease, background 100ms ease, color 100ms ease;
}

.bt-popup-action-btn:hover {
  transform: translateY(-1px);
  background: rgba(37, 114, 255, 0.22);
  color: #1e58cc;
}

.bt-popup-btn {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 6px 8px;
  border-radius: 8px;
  font-size: 0.78rem;
  font-weight: 600;
  text-decoration: none !important;
  border: 1px solid rgba(0, 0, 0, 0.08);
  background: rgba(255, 255, 255, 0.7);
  color: #1f2937;
  transition: transform 0.12s, background 0.15s, color 0.15s, border-color 0.15s;
  cursor: pointer;
}

.bt-popup-btn:hover {
  transform: translateY(-1px);
  background: #fff;
}

.bt-popup-btn i {
  font-size: 0.95rem;
}

.bt-popup-btn--google:hover {
  color: #4285F4;
  border-color: #4285F4;
}

.bt-popup-btn--yandex:hover {
  color: #FFCC00;
  background: #1a1a1a;
  border-color: #1a1a1a;
}

.bt-popup-btn--apple:hover {
  color: #fff;
  background: #000;
  border-color: #000;
}

/* ---------- HOVER POPUP ---------- */

.maplibregl-popup.bt-hover-popup-wrapper,
.mapboxgl-popup.bt-hover-popup-wrapper {
  pointer-events: none;
  z-index: 5;
}

.maplibregl-popup.bt-hover-popup-wrapper .maplibregl-popup-content,
.mapboxgl-popup.bt-hover-popup-wrapper .mapboxgl-popup-content {
  padding: 0;
  background: transparent;
  border: none;
  box-shadow: none;
}

.maplibregl-popup.bt-hover-popup-wrapper .maplibregl-popup-tip,
.mapboxgl-popup.bt-hover-popup-wrapper .mapboxgl-popup-tip {
  display: none;
}

.bt-hover-popup {
  background: rgba(17, 24, 39, 0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: #fff;
  padding: 5px 10px;
  border-radius: 6px;
  font-size: 0.8rem;
  font-weight: 600;
  /* Uzun metin arka planı taşırmasın: nowrap yerine sarılsın ve kutu
     içeriğe göre büyüsün (sağdaki padding/margin dengesi korunur). */
  white-space: normal;
  overflow-wrap: anywhere;
  max-width: 240px;
  box-sizing: border-box;
  text-align: center;
  line-height: 1.3;
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
}

/* ============================================================
   BOTTOM TABLES — header + filter bar
   ============================================================ */

.bt-panel-headerbox {
  display: flex;
  flex-direction: column;
  background: rgba(255, 255, 255, 0.55);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 14px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
  margin-bottom: 10px;
  z-index: 30;
}

.bt-panel-header-row {
  padding: 8px 12px;
}

.bt-panel-filters {
  display: flex;
  gap: 8px;
  padding: 0 12px 12px;
}

.bt-filter-slot {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.bt-filter-label {
  font-size: 0.65rem;
  font-weight: 700;
  color: #6b7280;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Trigger button (kapalı select görünümü) */
.bt-ms-trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  width: 100%;
  padding: 6px 12px;
  height: 34px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.6);
  background: rgba(255, 255, 255, 0.45);
  backdrop-filter: blur(10px) saturate(160%);
  -webkit-backdrop-filter: blur(10px) saturate(160%);
  color: #1f2937;
  font-size: 0.82rem;
  font-weight: 500;
  cursor: pointer;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.5);
  transition: border-color 0.15s, box-shadow 0.15s, background 0.15s;
}

.bt-ms-trigger:hover {
  border-color: rgba(255, 255, 255, 0.9);
  background: rgba(255, 255, 255, 0.7);
}

.bt-ms-trigger.is-open {
  border-color: rgba(37, 99, 235, 0.6);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.5);
  background: rgba(255, 255, 255, 0.75);
}

.bt-ms-trigger .bt-ms-label {
  flex: 1;
  text-align: left;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.bt-ms-trigger .bt-ms-caret {
  font-size: 0.7rem;
  color: #6b7280;
  flex-shrink: 0;
  transition: transform 0.18s;
}

.bt-ms-trigger.is-open .bt-ms-caret {
  transform: rotate(180deg);
}

/* ============================================================
   MULTI-SELECT MENU (body'e portal'lanmış dropdown)
   ============================================================ */

.bt-ms-menu {
  position: fixed;
  z-index: 10000;
  width: max-content;
  max-width: 320px;
  max-height: 320px;
  display: flex;
  flex-direction: column;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(16px) saturate(180%);
  -webkit-backdrop-filter: blur(16px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: 10px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.22);
  overflow: hidden;
  animation: bt-ms-fade 0.12s ease-out;
}

@keyframes bt-ms-fade {
  from {
    opacity: 0;
    transform: translateY(-4px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.bt-ms-search {
  position: relative;
  padding: 8px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.bt-ms-search i {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: #9ca3af;
  font-size: 0.75rem;
  pointer-events: none;
}

.bt-ms-search input {
  width: 100%;
  padding: 6px 8px 6px 28px;
  border-radius: 6px;
  border: 1px solid rgba(0, 0, 0, 0.1);
  background: rgba(255, 255, 255, 0.9);
  font-size: 0.82rem;
  color: #1f2937;
  outline: none;
}

.bt-ms-search input:focus {
  border-color: #2563eb;
  box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.18);
}

.bt-ms-actions {
  display: flex;
  gap: 4px;
  padding: 6px 8px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.bt-ms-act {
  flex: 1;
  background: rgba(0, 0, 0, 0.04);
  border: none;
  padding: 5px 8px;
  border-radius: 5px;
  font-size: 0.74rem;
  font-weight: 600;
  color: #374151;
  cursor: pointer;
  transition: background 0.12s;
}

.bt-ms-act:hover {
  background: rgba(37, 99, 235, 0.12);
  color: #1d4ed8;
}

.bt-ms-options {
  list-style: none;
  margin: 0;
  padding: 4px;
  overflow-y: auto;
  flex: 1;
  min-height: 0;
}

.bt-ms-options::-webkit-scrollbar {
  width: 6px;
}

.bt-ms-options::-webkit-scrollbar-thumb {
  background: rgba(0, 0, 0, 0.18);
  border-radius: 3px;
}

.bt-ms-opt {
  border-radius: 5px;
  transition: background 0.1s;
}

.bt-ms-opt:hover {
  background: rgba(37, 99, 235, 0.1);
}

.bt-ms-opt label {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 8px;
  cursor: pointer;
  font-size: 0.83rem;
  color: #1f2937;
  margin: 0;
  user-select: none;
}

.bt-ms-opt input[type="checkbox"] {
  width: 14px;
  height: 14px;
  accent-color: #2563eb;
  cursor: pointer;
  flex-shrink: 0;
}

.bt-ms-opt-text {
  flex: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.bt-ms-empty {
  padding: 16px;
  text-align: center;
  font-size: 0.82rem;
  color: #9ca3af;
  list-style: none;
}

/* Temizle butonu */
.bt-filter-clear-wrap {
  display: flex;
  align-items: flex-end;
  flex-shrink: 0;
}

.bt-filter-clear {
  width: 34px;
  height: 34px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.6);
  background: rgba(255, 255, 255, 0.45);
  backdrop-filter: blur(10px) saturate(160%);
  -webkit-backdrop-filter: blur(10px) saturate(160%);
  color: #6b7280;
  font-size: 0.8rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.5);
  transition: background 0.15s, color 0.15s, border-color 0.15s, transform 0.1s;
  flex-shrink: 0;
}

/* ============================================================
   PopupGenerator — image gallery
   ============================================================ */
.bt-popup-gallery {
  display: flex;
  gap: 6px;
  padding: 8px 10px 0 10px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: thin;
}

.bt-popup-gallery::-webkit-scrollbar {
  height: 6px;
}

.bt-popup-img-cell {
  /* mevcut kuralların yanına */
  text-decoration: none;
}

.bt-popup-gallery::-webkit-scrollbar-thumb {
  background: rgba(0, 0, 0, 0.18);
  border-radius: 4px;
}

.bt-popup-img-cell {
  flex: 0 0 auto;
  width: 48px;
  height: 48px;
  border-radius: 10px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.6);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
  scroll-snap-align: start;
  cursor: zoom-in;
  transition: transform 120ms ease, box-shadow 120ms ease;
}

.bt-popup-img-cell:hover {
  transform: translateY(-1px);
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.14);
}

.bt-popup-img-cell img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Tek resim varsa biraz daha geniş */
.bt-popup-gallery:has(> .bt-popup-img-cell:only-child) .bt-popup-img-cell {
  width: 100%;
  height: 140px;
}

.bt-filter-clear:hover:not(:disabled) {
  background: rgba(220, 38, 38, 0.9);
  color: #fff;
  border-color: rgba(220, 38, 38, 0.9);
}

.bt-filter-clear:active:not(:disabled) {
  transform: scale(0.94);
}

.bt-filter-clear:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

/* ============================================================
   PopupGenerator — kompakt
   ============================================================ */

.bt-popup-wrapper .maplibregl-popup-content {
  padding: 0 !important;
  border-radius: 12px;
  overflow: hidden;
}

.bt-popup {
  font-size: 12px;
  line-height: 1.35;
  min-width: 220px;
  max-width: 320px;
}

.bt-popup-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  padding: 6px 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.5);
  background: rgba(255, 255, 255, 0.55);
}

.bt-popup-title {
  font-weight: 600;
  font-size: 13px;
  color: #111;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  flex: 1;
}

.bt-popup-close {
  background: transparent;
  border: none;
  color: #555;
  font-size: 13px;
  width: 22px;
  height: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  cursor: pointer;
  padding: 0;
  flex: 0 0 auto;
}

.bt-popup-close:hover {
  background: rgba(0, 0, 0, 0.06);
  color: #000;
}

.bt-popup-body {
  padding: 6px 10px;
  max-height: 220px;
  overflow-y: auto;
}

.bt-popup-row {
  display: flex;
  gap: 6px;
  padding: 2px 0;
  border-bottom: 1px dashed rgba(0, 0, 0, 0.06);
}

.bt-popup-row:last-child {
  border-bottom: none;
}

.bt-popup-key {
  flex: 0 0 auto;
  color: #555;
  font-weight: 500;
  white-space: nowrap;
}

.bt-popup-val {
  flex: 1;
  color: #111;
  word-break: break-word;
}

.bt-popup-empty {
  padding: 4px 0;
  color: #888;
  font-style: italic;
}

/* ===== Gallery (kompakt) ===== */
.bt-popup-gallery {
  display: flex;
  gap: 4px;
  padding: 6px 10px 0 10px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: thin;
}

.bt-popup-gallery::-webkit-scrollbar {
  height: 4px;
}

.bt-popup-gallery::-webkit-scrollbar-thumb {
  background: rgba(0, 0, 0, 0.18);
  border-radius: 4px;
}

.bt-popup-img-cell {
  flex: 0 0 auto;
  width: 64px;
  height: 64px;
  border-radius: 8px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.6);
  scroll-snap-align: start;
  cursor: zoom-in;
  text-decoration: none;
  transition: transform 100ms ease;
}

.bt-popup-img-cell:hover {
  transform: translateY(-1px);
}

.bt-popup-img-cell img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Tek resim → biraz geniş */
.bt-popup-gallery:has(> .bt-popup-img-cell:only-child) .bt-popup-img-cell {
  width: 100%;
  height: 110px;
}

/* ===== Actions bar (kompakt) ===== */
.bt-popup-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  padding: 5px 8px;
  border-top: 1px solid rgba(255, 255, 255, 0.5);
  background: rgba(255, 255, 255, 0.4);
}

.bt-popup-actions-left,
.bt-popup-actions-right {
  display: flex;
  align-items: center;
  gap: 3px;
}

.bt-popup-icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.7);
  color: #333;
  text-decoration: none;
  font-size: 11px;
  transition: background 100ms ease, transform 100ms ease;
}

.bt-popup-icon-btn:hover {
  background: rgba(255, 255, 255, 0.95);
  color: #000;
  transform: translateY(-1px);
}

.bt-popup-action-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 7px;
  background: rgba(37, 114, 255, 0.12);
  border: 1px solid rgba(37, 114, 255, 0.3);
  color: #2572ff;
  cursor: pointer;
  font-size: 12px;
  padding: 0;
  transition: background 100ms ease, transform 100ms ease;
}

.bt-popup-action-btn:hover {
  background: rgba(37, 114, 255, 0.22);
  color: #1e58cc;
  transform: translateY(-1px);
}

/* Hızlı Erişim - taşmayı engelle, gizli scroll */
.qa-grid {
  max-height: 210px;
  overflow-y: auto;
  /* Firefox */
  /* IE / eski Edge */
}

.qa-grid::-webkit-scrollbar {
  /* Chrome / Safari / yeni Edge */
  width: 0;
  height: 0;
  display: none;
}