/* VERİ EMLAK ALSANCAK — İNTERAKTİF HARİTA */

.property-map-section {
  position: relative;
  width: 100%;
  height: calc(100vh - 93px);
  min-height: 580px;
}

.property-map-container {
  position: relative;
  width: 100%;
  height: 100%;
  isolation: isolate;
}

.property-leaflet-map {
  width: 100%;
  height: 100%;
  z-index: 0;
}

.map-loading {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  background: #edf1f4;
  color: #172c46;
  font-size: 16px;
}

.map-location-label {
  position: absolute;
  top: 25px;
  left: 30px;
  z-index: 500;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 20px;
  background: #ffffff;
  color: #172c46;
  border-radius: 10px;
  box-shadow: 0 8px 30px #00000012;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 1.2px;
}

.map-location-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #bc945c;
}

.map-legend {
  position: absolute;
  bottom: 25px;
  left: 30px;
  z-index: 500;
  display: flex;
  gap: 22px;
  align-items: center;
  background: #ffffff;
  padding: 17px 22px;
  border-radius: 10px;
  box-shadow: 0 8px 30px #00000012;
  color: #172c46;
}

.map-legend span {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 700;
}

.map-legend i {
  display: block;
  width: 11px;
  height: 11px;
  border-radius: 50%;
}

.map-pin-sale {
  background: #22a66b;
}

.map-pin-rent {
  background: #3185e8;
}

.map-pin-timeshare {
  background: #9b59d0;
}

@media (max-width: 700px) {
  .property-map-section {
    height: calc(100dvh - 77px);
    min-height: 420px;
  }

  .map-location-label {
    left: 15px;
    top: 15px;
    padding: 12px;
    font-size: 10px;
  }

  .map-legend {
    left: 15px;
    bottom: 15px;
    gap: 12px;
    padding: 12px;
    flex-wrap: wrap;
  }
}

@media (prefers-color-scheme: dark) {
  .map-location-label,
  .map-legend {
    background: #172235;
    color: #ffffff;
  }
}


/* HARİTA — KONUMA GÖRE İLAN PANELİ */

.property-list-panel {
  position: absolute;
  top: 20px;
  right: 20px;
  bottom: 90px;
  z-index: 600;
  width: 370px;
  max-width: calc(100% - 40px);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: #ffffff;
  color: #172c46;
  border: 1px solid #e5eaf0;
  border-radius: 18px;
  box-shadow: 0 16px 55px #15283d22;
}

.property-panel-header {
  padding: 25px 23px 20px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 1px solid #edf0f4;
}

.property-panel-eyebrow {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 2px;
  color: #bc945c;
}

.property-panel-header h2 {
  margin: 10px 0 5px;
  font-size: 23px;
  font-weight: 800;
  letter-spacing: -0.7px;
}

.property-panel-header p {
  margin: 0;
  font-size: 12px;
  color: #8190a3;
}

.property-panel-close {
  width: 36px;
  height: 36px;
  flex-shrink: 0;
  border: 1px solid #e5eaf0;
  border-radius: 9px;
  background: #f8fafc;
  color: #172c46;
  font-size: 25px;
  cursor: pointer;
}

.property-panel-count {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 19px 23px;
  border-bottom: 1px solid #edf0f4;
}

.property-panel-count strong {
  font-size: 25px;
}

.property-panel-count span {
  font-size: 13px;
  color: #8190a3;
}

.property-panel-content {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding: 16px;
}

.property-panel-empty {
  min-height: 250px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 30px 15px;
}

.property-panel-empty-icon {
  display: grid;
  place-items: center;
  width: 65px;
  height: 65px;
  border-radius: 18px;
  background: #f0f3f7;
  color: #bc945c;
  font-size: 42px;
}

.property-panel-empty h3 {
  margin: 21px 0 9px;
  font-size: 16px;
  line-height: 1.5;
}

.property-panel-empty p {
  margin: 0;
  color: #8190a3;
  font-size: 13px;
  line-height: 1.7;
}

.property-panel-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 16px;
  margin-bottom: 12px;
  border: 1px solid #e5eaf0;
  border-radius: 12px;
  color: #172c46;
  text-decoration: none;
  font-size: 13px;
}

.property-panel-card-type {
  color: #bc945c;
  font-size: 11px;
  font-weight: 800;
}

.property-panel-card b {
  font-size: 17px;
}

.property-panel-footer {
  padding: 17px;
  text-align: center;
  border-top: 1px solid #edf0f4;
  color: #8190a3;
  font-size: 11px;
}

.property-panel-toggle {
  position: absolute;
  top: 25px;
  right: 25px;
  z-index: 600;
  padding: 15px 20px;
  border: none;
  border-radius: 10px;
  background: #172c46;
  color: white;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 8px 30px #00000020;
}

@media (max-width: 700px) {
  .property-list-panel {
    top: 75px;
    right: 12px;
    bottom: 65px;
    width: min(370px, calc(100% - 24px));
  }
}

@media (prefers-color-scheme: dark) {
  .property-list-panel {
    background: #172235;
    color: #f1f5f9;
    border-color: #293747;
  }

  .property-panel-header,
  .property-panel-count,
  .property-panel-footer {
    border-color: #293747;
  }

  .property-panel-close,
  .property-panel-empty-icon {
    background: #293747;
    color: #f1f5f9;
    border-color: #36485d;
  }

  .property-panel-card {
    color: #f1f5f9;
    border-color: #293747;
  }
}


/* ARAMA KARTI — HARİTA ALTI ORTALI YERLEŞİM */
.property-map-section {
  height: auto;
  min-height: 0;
}

.property-map-container {
  height: calc(100vh - 93px);
  min-height: 580px;
}

.property-search-bottom {
  position: relative;
  z-index: 1;
  width: 100%;
  padding: 42px 24px 55px;
  background: var(--background);
}

@media (max-width: 700px) {
  .property-map-container {
    height: calc(100dvh - 77px);
    min-height: 420px;
  }

  .property-search-bottom {
    padding: 24px 15px 35px;
  }
}



/* VEA LEGEND — UST ORTA FINAL */
@media (min-width: 901px) {
  .property-map-container .map-legend {
    position: absolute;
    top: 25px;
    bottom: auto;
    left: 50%;
    right: auto;
    transform: translateX(-50%);
    z-index: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 18px;
    width: max-content;
    max-width: calc(100% - 40px);
    min-height: 49px;
    padding: 14px 18px;
  }
}


/* PHP ana sayfa: yalnızca harita sayfasının içerik yerleşimi */
body > main:has(.property-map-section) {
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 0;
    flex: 1 0 auto;
    display: block;
    text-align: left;
}

/* HTML hidden niteliği mevcut panel CSS'sinden önceliklidir */
.property-list-panel[hidden],
.property-panel-toggle[hidden],
.vea-quick-search-message[hidden] {
    display: none !important;
}
