/* Netgis UI tamamen kapalı */
/* Netgis UI - kill switch */
#_ncInterfaceWrapper,
#_ncSidebarWrapper,
#_ncTabsLeft,
#_ncNavTabs,
#_ncTabContent,
#_ncNavbarHeader,
#_ncNavbarCollapse,
#_ncNavbarForm,
#_ncinfo-card-area,
#_ncGlobalModal {
  display: none !important;
  pointer-events: none !important;
}

/* OpenLayers attribution */
.ol-attribution {
  display: none !important;
}

:root {
  --lg-bg-color: rgba(255, 255, 255, 0.25);
  --lg-highlight: rgba(255, 255, 255, 0.75);
  --lg-text: #ffffff;
  --lg-red: #fb4268;
  --lg-grey: #444739;
}

body {
  margin: 0;
  height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  font-family: Arial, sans-serif;
  /* background-image:url('images/imar-bg-2.jpg'); */
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  position: relative;
}

#map {
  height: 400px;
  min-height: 364.8;
  top: 0;
  bottom: 0;
  width: 100%;
  border-radius: 12px;
  visibility: hidden;
  background: rgba(255, 255, 255, 0.7);
  /* ilk başta gizli */
}

/* Skeleton */
#map-skeleton {
  position: absolute;
  inset: 0;
  border-radius: 8px;
  background: linear-gradient(90deg, #e3e3e3 0%, #f5f5f5 50%, #e3e3e3 100%);
  background-size: 200% 100%;
  animation: skeleton-loading 1.3s infinite;
}

/* Map */
/* #map {
  width: 100%;
  height: 100%;

  border-radius: 8px;
} */

@keyframes skeleton-loading {
  0% {
    background-position: 200% 0;
  }
  100% {
    background-position: -200% 0;
  }
}

.link-content {
  margin-bottom: 12px;
  text-align: right;
  display: flex;
  justify-content: flex-end;
  align-items: center;
}

.query-content {
  gap: 1rem;
  flex-wrap: wrap;
  width: 950px;
  flex-direction: column;
  position: relative;
  z-index: 3;
  display: flex;
  flex: 1 1 auto;
  justify-content: space-around;
}

.glass-container {
  position: relative;
  display: flex;
  align-items: center;
  background: transparent;
  border-radius: 2rem;
  overflow: hidden;
  box-shadow:
    0 6px 6px rgba(0, 0, 0, 0.2),
    0 0 20px rgba(0, 0, 0, 0.1);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 2.2);
}

.glass-container--rounded {
  border-radius: 3rem;
}

.glass-container--large {
  flex: 1 1 auto;
}

.glass-container--medium {
  flex: 1 1 auto;
}

.glass-container--small {
  flex: 0 1 auto;
}

.glass-content {
  position: relative;
  z-index: 3;
  display: flex;
  flex: 1 1 auto;
  justify-content: space-around;
  padding: 12px 18px;
  gap: 1rem;
  flex-wrap: wrap;
  flex-direction: column;
}

.glass-content__link {
  margin-bottom: -1px;
  margin-top: 6px;
  transition: transform 0.2s ease-out;

  img {
    width: 78px;
  }

  &:hover {
    transform: scale(1.1);
  }

  &:active {
    transform: scale(0.95);
  }
}

.glass-filter,
.glass-overlay,
.glass-specular {
  position: absolute;
  inset: 0;
  border-radius: inherit;
}

.glass-filter {
  z-index: 0;
  backdrop-filter: blur(4px);
  filter: url(#lensFilter) saturate(120%) brightness(1.15);
}

.glass-overlay {
  z-index: 1;
  background: var(--lg-bg-color);
}

.glass-specular {
  z-index: 2;
  box-shadow:
    inset 1px 1px 0 var(--lg-highlight),
    inset 0 0 5px var(--lg-highlight);
}

.glass-card {
  width: 850px;
  background: rgba(255, 255, 255, 0.7);
  /* border:1px solid rgba(255,255,255,0.6); */
  box-shadow: 0 18px 40px rgba(27, 39, 80, 0.12);
  border-radius: 20px;
  display: flex;
  flex-direction: column;
}

.header {
  height: 116px; /* Daha büyük header */
  display: flex;
  align-items: center;
  padding: 0 25px; /* Daha geniş padding */
  background: rgba(255, 255, 255, 0.7);
  border-bottom: 1px solid rgba(255, 255, 255, 0.6);
  /* border-radius: 20px ; */
  border-radius: 20px;
  position: relative;
  margin: 0px;
  /* gap: 20px;                        Elemanlar arası boşluk */
}

/* Logo */
.header img {
  height: 60px; /* 38 → 60 px (daha büyük logo) */
  margin-right: 15px;
}

/* Ana başlık */
.header-text {
  font-size: 34px; /* 16 → 26 px */
  font-weight: 400;
  line-height: 1.2;
}

/* Alt birim yazısı */
.header-unit {
  font-size: 20px; /* 13 → 16 px */
  opacity: 0.9;
  font-weight: 200;
}

.zoning-info {
  display: flex;
  gap: 8px;
  align-items: center;
}
.zoning-info a {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 30px;
  height: 30px;
  border-radius: 6px;
  color: white;
  text-decoration: none;
  font-size: 16px;
  transition: all 0.3s ease;
}
.zoning-info a:hover {
  background: #162a59;
  transform: translateY(-2px);
}
.zoning-info img {
  width: 24px;
  height: auto;
  border-radius: 6px;
  margin: 0;
}

.main-container {
  display: flex;
  flex: 1;
  gap: 10px;
  /* overflow:hidden; */
}
.panel-section {
  background: rgba(255, 255, 255, 0.28);
  border-radius: 12px;
  /* padding:12px 15px; */
  /* gap:10px; */
  /* border:1px solid rgba(255,255,255,0.5); */
  box-shadow: 0 10px 25px rgba(27, 39, 80, 0.08);
  display: flex;
  flex-direction: column;
  height: 400px; /* Harita ile aynı yüksekliğe sabitle */
  overflow: hidden;
}
.section-title {
  font-size: 20px;
  font-weight: 400;
  margin-bottom: 10px;
  padding-bottom: 4px;
  border-bottom: 2px solid rgba(0, 0, 0, 0.15);
  color: #233c7c;
}
label {
  font-size: 15px;
  font-weight: 300;
  margin-top: 14px;
  display: block;
}
select,
input {
  width: 100%;
  padding: 6px;
  border: 1px solid rgba(0, 0, 0, 0.15);
  border-radius: 6px;
  margin-top: 3px;
  font-size: 13px;
  box-sizing: border-box;
  accent-color: #233c7c;
}
.btn {
  margin-top: 12px;
  padding: 8px;
  width: 100%;
  border: 0;
  background: #233c7c;
  color: white;
  border-radius: 6px;
  font-weight: bold;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.3s ease;
}
.btn:hover {
  background: #162a59;
  transform: translateY(-1px);
}
.info-icon {
  font-size: 15px;
  color: #233c7c;
  cursor: pointer;
  margin-left: 4px;
}
.custom-tooltip {
  position: absolute;
  left: 0;
  /* bottom:22px; */
  top: 20px;
  width: 260px;
  background: white;
  border: 2px solid rgba(27, 39, 80, 0.3);
  box-shadow: 0 10px 25px rgba(27, 39, 80, 0.08);
  padding: 10px;
  border-radius: 6px;
  font-size: 11px;
  color: #505050;
  display: none;
  z-index: 9999;
}
.info-icon:hover + .custom-tooltip,
.custom-tooltip:hover {
  display: block;
}

#result-content {
  font-size: 13px;
  margin: 5px 0;
  /* overflow-y: auto;  Ebeveyn scrollsun */
  flex: 1;
}

.result-item {
  background-color: white;
  border: 1px solid #d0d0d0;
  border-radius: 8px;
  padding: 8px;
  margin-bottom: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  gap: 8px;
}

.result-item:hover {
  background-color: #d9e1f2;
  transform: translateY(-2px);
}

.result-item.selected {
  background-color: #f0f0f0;
  color: #233c7c;
  border: 2px solid #233c7c;
}

.version-row {
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding: 0 15px;
  /* background: rgba(255,255,255,0.7); */
  /* border-top:1px solid rgba(255,255,255,0.5); */
  border-radius: 0 0 16px 16px;
  color: white;
}
.version-label {
  /* color:#233c7c; */
  font-size: 12px;
  /* background-color:white; */
  padding: 3px 6px;
  /* border-radius:6px; */
  /* border:1px solid #e6e3e1; */
}

/* --- CUSTOM DROPDOWN (select benzeri) --- */
.dropdown {
  position: relative;
  width: 100%;
  margin: 3px 0;
}
.dropbtn {
  width: 100%;
  background-color: white;
  color: #333;
  padding: 6px 7px;
  font-size: 13px;
  border: 1px solid #ccc;
  border-radius: 6px;
  text-align: left;
  cursor: pointer;
  box-sizing: border-box;
}
.dropbtn:after {
  content: "▾";
  float: right;
}
.dropdown-content {
  display: none;
  /* JS ile fixed + konum ayarlıyoruz */
  position: fixed;
  background: white;
  border: 1px solid #ccc;
  border-radius: 6px;
  z-index: 999999;
  max-height: 300px;
  overflow-y: auto;
  box-shadow: 0 3px 12px rgba(0, 0, 0, 0.18);
}
.dropdown-content input {
  width: 100%;
  padding: 6px;
  border: none;
  border-bottom: 1px solid #ddd;
  box-sizing: border-box;
  font-size: 13px;
}
.dropdown-content a {
  padding: 6px 8px;
  display: block;
  cursor: pointer;
  font-size: 13px;
  text-decoration: none;
  color: black;
}
.dropdown-content a:hover {
  background-color: #e7ecf7;
}
.show {
  display: block !important;
}
.active-hover {
  background-color: #e9ecef !important;
}

#query-address {
  display: none;
}
/* MODERN SEKME STİLİ */
.modern-tabs {
  display: flex;
  /* gap: 6px; */
  /* margin: 4px; */
}

.modern-tab {
  flex: 1;
  padding: 10px;
  text-align: center;
  /* font-weight: ; */
  font-size: small;
  /* border-radius: 12px 12px 0 0; */
  /* border: 1px solid #d0d4e0; */
  border: none;
  border-bottom: none;
  background: transparent;
  /* background: #e2e6f3;
    color: #233c7c; */
  /* color:white; */
  cursor: pointer;
  transition: all 0.2s ease;
}
.modern-tabs .glass-content {
  padding: 0;
}

.modern-tabs .glass-content:hover .modern-tab {
  color: #fff;
  /* background-color: #233c7c4b; */
  border-radius: 12px 12px 0 0;
}

/* .modern-tabs .glass-container .modern-tab{
    padding: 0;
}  */

.modern-tab.active {
  /* background: #ffffff; */
  /* background: #e2e6f3; */
  /* background:#162a59;  */

  color: #233c7c;
  /* font-size: large; */
  /* background-color: #233c7ce3; */
  /* border-color: #c0c4d4; */
  z-index: 2;
}

/* Active TAB → overlay değişsin */
.modern-tab.active {
  color: #fff;
}

.modern-tab.active::before {
  content: "";
  position: absolute;
  inset: 0;
  background: #233c7c;

  border-radius: 12px 12px 0px 0px;
  z-index: -1;
}
.modern-tab.active:hover::before {
  /* content:''; */
  /* position:absolute; */
  /* inset:0; */
  /* background:red; */
  /* z-index:-1; */
  /* background-color: #233c7c4b;
    transition: background-color 0.3s ease; */
}

/* TAB CONTENT */
.modern-tab-content {
  background: rgba(255, 255, 255, 0.7);
  padding: 12px 15px;
  border-radius: 0 0 12px 12px;
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 0;
  /* overflow switching is handled by layout classes below */
}

/* 🏠 Adres Düzeni: Tüm panel bütün olarak scroll olur */
.address-layout .modern-tab-content {
  overflow-y: auto;
  display: block; /* Flow naturally */
}

.address-layout #result-panel,
.address-layout #result-content {
  display: block;
  overflow: visible;
  flex: none;
}

/* 📦 Ada/Parsel Düzeni: Kartlar kendi içinde scroll olur */
.parcel-layout .modern-tab-content {
  overflow: hidden; /* Header sabit kalsın */
  display: flex;
}

.parcel-layout #result-panel {
  display: flex !important;
  flex: 1;
  min-height: 0;
  flex-direction: column;
  overflow: hidden;
}

.parcel-layout #result-content {
  flex: 1;
  overflow-y: auto;
}

.modern-tab-pane {
  display: none;
}

.modern-tab-pane.active {
  display: block;
}

#result-panel {
  display: none;
  flex-direction: column;
  padding: 10px 0;
  margin-top: 10px;
  position: relative;
}

#btnImarDurumu {
  position: sticky;
  bottom: 5px; /* Add space from the bottom edge */
  margin-top: 15px;
  z-index: 10;
  width: 100%;
  box-shadow: 0 -10px 20px rgba(255, 255, 255, 0.95); /* Stronger fade for better contrast */
}

.result-title {
  position: sticky;
  top: 0;
  z-index: 11;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px); /* For Safari */
  font-size: 15px;
  font-weight: 501;
  margin: 0;
  margin-bottom: 8px;
  padding: 8px 10px;
  border-bottom: 1px solid rgba(35, 60, 124, 0.12);
  color: #233c7c;
  text-align: left;
  border-radius: 8px 8px 0 0;
}

#result-content {
  /* Dynamic behaviors handled by parent layout classes */
}

/* MAP MODE */
.map-mode .main-container {
  flex-direction: column;
}

/* Tab içeriğini tamamen kaldır */
.map-mode .modern-tab-content {
  display: none !important;
}

/* Sol panel artık sadece tab yüksekliği kadar */
.map-mode .panel-section:first-child {
  flex: 0 0 auto;
  height: auto; /* 400px sabitini kaldır, sadece tab yüksekliği kadar olsun */
}

/* Harita full alan */
.map-mode #map {
  /* width: 100%; */
  border-radius: 0 0 12px 12px;
  height: 100%;
}

/* MAP MODE – haritayı mutlaka göster */
.map-mode #second-panel {
  display: flex !important;
  width: 100% !important;
  flex: 1 1 auto;
  /* height: calc(400px - 35.2px);
    min-height: calc(400px - 35.2px); */
}

/* Tab content tamamen kapalı */
.map-mode .modern-tab-content {
  display: none !important;
}

/* Main container tek kolon */
.map-mode .main-container {
  flex-direction: column;
  gap: 0px;
}

/* Map mode */
.map-mode #second-panel {
  display: flex !important;
  width: 100%;
  /* height: calc(400px - 35.2px);*/
  /* min-height: calc(400px - 35.2px); */
  /* min-height: 364.8px; */
}

/* Map her zaman container'ı doldursun */
/* #map {
    width: 100%;
    height: 100%;
    /* min-height: 400px; */

.map-mode .modern-tabs {
  /* width: 50%; */
  width: 470px;
  border-radius: 0 0 12px 12px;
  /* flex: 0 0 auto; */
}
/* Map mode’da panel-section flex büyümesini kapat */
.map-mode .panel-section {
  flex: 0 0 auto !important;
  /* border-radius: 12px 12px 0 0 */
}

.map-mode .panel-section:not(#second-panel) {
  border-radius: 12px 12px 0 0;
  height: auto; /* Tab yüksekliği kadar */
}
.map-mode #second-panel {
  border-radius: 0 0 12px 12px;
}

/* SDK JS + Map mode: result-panel varsa map-action-bar gizle */
#second-panel:has(#result-panel) .map-action-bar {
  display: none;
}

@media (max-width: 992px) {
  .container {
    width: 100%;
    height: 100vh;
  }
  .link-content {
    display: block;
    padding-top: 10px;
    margin-bottom: 10px;
  }
  .zoning-info a {
    /* color:black;
 */
    color: #233c7c;
    width: 100%;
  }
  .zoning-info a:hover {
    color: #f5f5f5;
  }

  /* Ana içerik genişliği */
  .query-content {
    width: 100%;
    max-width: 100%;
    /* height: 100%; */
    height: calc(100vh - 74px);
    /* padding: 8px; */
    padding: 10px 10px 0px 10px;
    box-sizing: border-box;
  }

  .glass-content {
    width: 100%;
  }
  /* Üstteki küçük bar (zoning-info) – mobilde GÖRÜNSÜN */
  .link-content {
    margin-bottom: 8px;
    justify-content: flex-start;
  }

  .zoning-info {
    display: flex !important; /* Eski display:none’ı ez */
  }

  /* Header biraz küçülsün, alta kaymasın */
  .header {
    height: auto;
    padding: 10px 12px;
    border-radius: 12px;
  }

  .header img {
    height: 45px;
    margin-right: 10px;
  }

  .header-text {
    font-size: 22px;
  }

  .header-unit {
    font-size: 14px;
  }

  /* Ana container dikey olsun */

  .glass-container {
    border-radius: 1rem;
  }

  .mobil-main-glass-content {
    padding: 0px;
  }
  .main-container {
    /* flex: 1 1 auto; */
    flex-direction: column;
    gap: 8px;
    overflow-y: scroll;
    padding-bottom: 10px;
  }

  /* Panel’ler tam genişlik kart olsun */
  .panel-section {
    width: 100% !important;
    min-width: 100%;
    /* padding: 10px; */
    box-sizing: border-box;
    box-shadow: 0 6px 20px rgba(27, 39, 80, 0.1);
  }

  /* Versiyon satırı en altta, tam genişlik */
  .version-row {
    justify-content: center;
    /* padding: 6px 10px; */
    border-radius: 12px;
    /* margin-top: 8px; */
    padding: 0px;
    margin: 0px;
  }

  /* Tab başlıkları mobil için biraz daha büyük/okunaklı */
  .modern-tabs {
    gap: 6px;
  }

  .modern-tab {
    font-size: 13px;
    padding: 8px 6px;
  }

  /* .modern-tab-content{
    height: 300px;
  } */
  /* HARİTA MOBİLDE GÖRÜNMESİN */

  /* Sonuç paneli artık haritanın üzerinde değil,
     normal akışta, tam genişlik bir kart olsun */
  #result-panel {
    padding: 10px 0;
    box-sizing: border-box;
  }

  /* #result-panel {
      width: 100% !important;
      padding-left: 15px;
      padding-right: 15px;
      box-sizing: border-box;
  } */

  #result-content {
    top: 0px;
    left: 0px;
  }

  .result-item {
    margin-bottom: 6px;
  }

  .map-mode .modern-tabs {
    /* width: 50%; */
    /* width: 470px; */
    /* flex: 0 0 auto; */
    width: 100%;
  }
}
/* MOBİL TASARIM – 768px ve altı */
@media (max-width: 768px), (max-height: 675px) {
  #second-panel {
    display: none;
  }
  #map {
    display: none;
  }

  .map-mode #second-panel {
    display: flex !important;
    gap: 8px;
  }
  /* .map-mode  #second-panel{
        display: flex;
    } */
  .map-mode #map {
    display: flex;
  }

  #result-panel {
    width: 100% !important;
  }

  .map-mode #result-panel {
    position: static;
    height: auto;
  }
}

@media (hover: none) and (pointer: coarse) {
  /* modern-tab hoverını kapat */
  .modern-tab:hover {
    background: inherit !important;
    /* color: inherit !important; */
    /* color: white; */
  }

  /* glass container üzerindeki hover efektini kapat */
  .modern-tabs .glass-content:hover .glass-overlay {
    background-color: inherit !important;
  }

  /* hover ile text rengi değişmesin */
  .modern-tabs .glass-content:hover .modern-tab {
    /* color: inherit !important; */
  }

  /* active tab için hover efekti kapanmalı */
  .modern-tab.active:hover::before {
    background: #233c7c !important; /* sabit active rengi */
  }
}

/* SCROLLBAR */
::-webkit-scrollbar {
  width: 4px;
}
::-webkit-scrollbar-thumb {
  background-color: #bbb;
  border-radius: 3px;
}

.index-footer {
  /* position: absolute; */
  position: fixed;
  bottom: 12px;
  width: 100%;
  text-align: center;
  z-index: -1;
  /* dropdown ve içerik üzerinde görünmesi için */
}

.index-footer img {
  height: 40px;
}

.customlabel {
  color: #233c7c;
  font-size: 10px;
  padding: 3px;
  border-radius: 3px;
  border: 1px solid #233c7c;
}

.customlabel-red {
  color: #f76816;
  font-size: 10px;
  padding: 3px;
  border-radius: 3px;
  border: 1px solid #f76816;
}

.swal2-loader {
  border-color: #ff0000 transparent #ff0000 transparent !important; /* Kendi rengini buraya yaz */
}

/* === ACCESSIBILITY (WCAG 2.2) === */

/* Screen reader only - visually hidden but accessible */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Becomes visible on focus (skip navigation) */
.sr-only-focusable:focus,
.sr-only-focusable:active {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 99999;
  width: auto;
  height: auto;
  padding: 12px 24px;
  margin: 0;
  overflow: visible;
  clip: auto;
  white-space: normal;
  background: #233c7c;
  color: #fff;
  font-size: 1px;
  font-weight: bold;
  text-decoration: none;
  border-radius: 0 0 8px 0;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

/* Focus indicator improvement */
:focus-visible {
  outline: 1px solid #233c7c;
}

/* Remove outline for mouse users */
:focus:not(:focus-visible) {
  outline: none;
}

/* Reset heading styles to match existing design */
h1.header-text,
h2.section-title {
  all: unset;
  display: block;
  font-size: inherit;
  font-weight: inherit;
  line-height: inherit;
  color: inherit;
  margin: 0;
  padding: 0;
}

/* Search Row Layout */
.search-row-container {
  display: flex;
  align-items: flex-end;
  gap: 12px;
  margin-bottom: 10px;
}

.btn-search {
  flex: 0 0 auto; /* Stop stretching */
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 7px 15px !important; /* Narrower padding */
  border-radius: 50px !important;
  background: #233c7c !important;
  color: #fff !important;
  font-weight: 500;
  font-size: 13px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 10px rgba(35, 60, 124, 0.2);
  border: none !important;
  cursor: pointer;
  height: 28px !important;
  margin-top: 0 !important;
  width: auto !important;
  min-width: 80px;
}

.btn-search:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
  filter: brightness(1.1);
}

/* Map Action Bar */
.map-action-bar {
  position: absolute;
  bottom: 10px;
  left: 25px;
  right: 25px;
  display: flex;
  justify-content: center;
  z-index: 20;
  pointer-events: none;
}

#second-panel #btnImarDurumu {
  pointer-events: auto;
  width: 100%;
  max-width: 320px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  /* padding: 12px 24px; */
  border-radius: 50px;
  background: #233c7c; /* Brand color */
  color: #fff !important;
  font-weight: 600;
  font-size: 15px;
  transition: all 0.3s ease;
  box-shadow: 0 6px 20px rgba(35, 60, 124, 0.3);
  border: none;
  cursor: pointer;
  display: none; /* Hidden by default, JS shows it */
}

#second-panel #btnImarDurumu:hover {
  background: #1a2d5e;
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(35, 60, 124, 0.4);
}

/* Tooltip adjustment */
.search-row-container + label .custom-tooltip {
  top: 25px;
}

/* Visibility Helpers */
@media (min-width: 769px) {
  .mobile-only {
    display: none !important;
  }
}

@media (max-width: 768px) {
  .desktop-only {
    display: none !important;
  }
}

/* Mobile Button Styling */
#btnImarDurumuMobile {
  margin-top: 15px;
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 24px;
  border-radius: 50px;
  background: #233c7c; /* Brand color */
  color: #fff !important;
  font-weight: 600;
  font-size: 15px;
  transition: all 0.3s ease;
  box-shadow: 0 6px 20px rgba(35, 60, 124, 0.3);
  border: none;
  cursor: pointer;
  display: none; /* JS shows this */
}

#btnImarDurumuMobile:hover {
  background: #1a2d5e;
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(35, 60, 124, 0.4);
}

/* ==========================================
   SDK JS + Haritadan Seç: result-panel haritanın üzerinde
   ========================================== */
#second-panel #result-panel {
  position: absolute;
  /* top: 15px; */
  left: 15px;
  width: 200px;
  height: calc(100% - 30px);
  display: none;
  flex-direction: column;
  background: rgba(255, 255, 255, 0.7);
  border-radius: 12px;
  padding: 8px;
  border: 1px solid rgba(209, 213, 219, 0.3);
  box-shadow:
    inset 1px 1px 0 var(--lg-highlight),
    inset 0 0 5px var(--lg-highlight);
  z-index: 10;
}

#second-panel #result-panel .section-title {
  font-size: 20px;
  font-weight: 400;
  margin-bottom: 10px;
  padding-bottom: 4px;
  border-bottom: 2px solid rgba(0, 0, 0, 0.15);
  color: #233c7c;
}

#second-panel #result-content {
  flex: 1;
  overflow-y: auto;
  padding: 4px;
}

#second-panel #result-panel .btn-imar-action {
  margin-top: 8px;
  width: 100%;
  display: none;
}

/* Responsive Fixes */
@media (max-width: 768px) {
  .search-row-container {
    flex-direction: column;
    align-items: stretch;
    gap: 5px;
  }
  .btn-search {
    width: 100% !important;
    height: 40px;
    margin-top: 8px !important;
  }
  .map-action-bar {
    bottom: 15px;
    left: 15px;
    right: 15px;
  }
  #second-panel #btnImarDurumu {
    max-width: none;
  }
}
