@charset "UTF-8";
/* ✅ immobilien-neu.css — OPTIMIERT & CLEANUP */

/* Swiper Navigation ausblenden */
.swiper-button-disabled,
.swiper-button-next,
.swiper-button-prev {
  display: none !important;
}

.mapsWrapper {
  width: 100%;
  height: auto;
  margin: 0 auto;
  max-width: 100%;
}

/* Position Homepage Label */
.immoPositionHomepage {
  color: #ffffff;
  display: inline;
  position: absolute;
}

/* FILTER STYLES */
.filter-row {
  display: flex;
  flex-direction: column;
  gap: 0.4em;
  margin-bottom: 1.5em;
}

.filter-row input[type="range"] {
  width: 100%;
  appearance: none;
  height: 6px;
  background: #ddd;
  border-radius: 5px;
  outline: none;
  cursor: pointer;
}

.filter-row input[type="range"]::-webkit-slider-thumb {
  appearance: none;
  width: 18px;
  height: 18px;
  background: #000;
  border-radius: 50%;
  cursor: pointer;
}

.filter-row input[type="range"]::-moz-range-thumb {
  width: 18px;
  height: 18px;
  background: #000;
  border-radius: 50%;
  cursor: pointer;
}

.filter-row label {
  font-weight: bold;
  font-size: 1em;
}

.filter-row span {
  font-size: 0.9em;
  color: #666;
  text-align: right;
}

.filter-group {
  flex: 1 1 200px;
  display: flex;
  flex-direction: column;
}

.filter-group label {
  font-weight: bold;
  margin-bottom: 0.3em;
}

.filter-group input,
.filter-group select {
  padding: 0.4em;
  font-size: 1em;
}

#filter-reset {
  background: #000;
  color: #fff;
  padding: 0.6em;
  border: none;
  cursor: pointer;
}

/* Filter Bubbles */
.filter-bubble {
  display: inline-block;
  height: auto;
  font-family: "PT Sans", Arial, Helvetica, sans-serif;
  font-size: 14px;
  padding: 2px 10px;
  color: #000000;
  background: #ffffff;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  border-radius: 3px;
  border: 2px solid #cccccc;
  cursor: pointer;
  margin-right: 6px;
  margin-bottom: 6px;
  transition: all 0.2s ease;
}

.filter-bubble.active {
  color: #ffffff;
  background: rgb(204, 148, 91);
  border-color: rgb(204, 148, 91);
  text-align: center;
}

.filter-bubble.disabled,
.filter-bubble.inactive {
  opacity: 0.4;
  cursor: not-allowed;
  pointer-events: none;
}

.filter-bubble:hover:not(.disabled):not(.active) {
  border-color: rgb(204, 148, 91);
  transform: translateY(-1px);
}

/* Swiper */
.swiper-slide {
  width: 400px !important;
}

/* ✅ Region Circle Styles */
.region-circle {
  transition: all 0.3s ease;
}

.region-circle:hover {
  fill-opacity: 0.6 !important;
  stroke-width: 4px !important;
  cursor: pointer;
}

/* Circle Label Styles */
.circle-label {
  background: transparent !important;
  border: none !important;
}

/* ✅ Custom Popup Styles */
.custom-popup .leaflet-popup-content-wrapper {
  border-radius: 8px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
  padding: 0;
  overflow: hidden;
}

.custom-popup .leaflet-popup-content {
  margin: 0;
  font-family: "PT Sans", Arial, Helvetica, sans-serif;
  width: 320px !important;
}

.custom-popup .leaflet-popup-tip {
  background: #fff;
}

.custom-popup a {
  transition: all 0.2s ease;
}

/* Map Tile Filter (Bronze-Ton) */
#map-container .leaflet-tile {
  filter: sepia(0.15) hue-rotate(-10deg) brightness(0.95);
}

/* Leaflet Marker Styles */
.leaflet-container.leaflet-touch-drag.leaflet-touch-zoom {
  margin-top: 0 !important;
}

.leaflet-marker-icon.leaflet-interactive {
  display: flex;
  justify-content: center;
  align-items: center;
}

.leaflet-left .leaflet-control {
  margin-left: 23px;
  margin-top: 23px;
}

/* ✅ Loading States */
#load-spinner {
  color: rgb(204, 148, 91);
  font-weight: bold;
  font-size: 16px;
  padding: 20px;
}

/* ✅ Lazy Loading Animation */
img[loading="lazy"] {
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: loading 1.5s infinite;
}

@keyframes loading {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* ========================================== */
/* ✅ KOMPAKTE FILTER-SIDEBAR                */
/* ========================================== */

.filter-row-compact {
  margin-bottom: 5px;
}
.sortiererei{
  width: 100%;
  height: auto;
  margin: 0;
  max-width: 50%;
}
.sm-grid{
  display:grid;
  grid-template-columns:1fr 1fr 1fr 1fr;
  gap:10px;
}

.filter-row-compact label {
  display: block;
  font-weight: bold;
  font-size: 14px;
  margin-bottom: 6px;
  color: #333;
}

.filter-row-compact .filter-bubble-group {
  margin-top: 6px;
}

.filter-row-compact .filter-bubble {
  font-size: 11px;
  padding: 1px 4px;
  margin-right: 8px;
  margin-bottom: 2px;
}

/* Slider Labels */
.slider-labels {
  display: flex;
  justify-content: space-between;
  margin-top: 4px;
  font-size: 12px;
  color: #000;
  font-weight: bold;
}

/* Toggle Label */
.toggle-label-compact {
  display: block;
  margin-top: 6px;
  font-size: 12px;
  cursor: pointer;
  color: #555;
}

.toggle-label-compact input[type="checkbox"] {
  margin-right: 4px;
  cursor: pointer;
}

/* Sort Buttons */
.sort-btn-compact {
  font-size: 11px;
  padding: 6px 4px;
  background: #f5f5f5;
  border: 1px solid #ddd;
  cursor: pointer;
  border-radius: 3px;
  transition: all 0.2s;
  font-family: "PT Sans", Arial, Helvetica, sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.sort-btn-compact:hover {
  background: rgb(204, 148, 91);
  color: #fff;
  border-color: rgb(204, 148, 91);
}

/* Reset Button */
.filter-reset-compact {
  width: 100%;
  padding: 10px;
  margin-top: 15px;
  background: #000;
  color: #fff;
  border: none;
  cursor: pointer;
  font-weight: bold;
  font-size: 12px;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: background 0.2s;
  font-family: "PT Sans", Arial, Helvetica, sans-serif;
}

.filter-reset-compact:hover {
  background: rgb(204, 148, 91);
}

/* NoUI Slider Styles */
.noUi-horizontal {
  height: 8px;
}

.noUi-horizontal .noUi-handle {
  width: 20px;
  height: 20px;
  right: -17px;
  top: -8px;
  border-radius: 50%;
}

.noUi-connect {
  background: rgb(204, 148, 91);
}

/* Objektnummer Suche */
.id-objektnummer {
  position: absolute;
  z-index: 500;
  width: 200px;
  right: 23px;
  margin-top: 23px;
}
.id-objektnummer-mobile{
  display: none;
}

/* ✅ OID-Suche über Karte (Desktop) */
.oid-search-overlay {
  display: block;
}

/* ✅ OID-Suche im Sidebar (nur Mobile) */
.id-objektnummer-sidebar {
  display: none;
}

#reset-objektnummer{
font-size: 26px !important;
font-weight: bold;
}
#reset-objektnummer:hover{
color: #000;
}

.id-objektnummer input {
    font-size: 15px !important;
    border-radius: 10px;
}

/* ========================================== */
/* ✅ SLIDING SIDEBAR SYSTEM + FULLSCREEN    */
/* ========================================== */

.mapsWrapper {
  position: relative;
  width: 100%;
  transition: all 0.3s ease;
}

.seo-intro-section {
  transition: all 0.3s ease;
  overflow: hidden;
  max-height: 500px;
  opacity: 1;
}

.seo-intro-section.hidden {
  max-height: 0;
  opacity: 0;
  padding: 0 !important;
  margin: 0 !important;
}

.filter-sidebar {
  position: fixed;
  top: 0;
  left: 0;
  width: 350px;
  height: 100vh;
  background: #ffffff;
  box-shadow: 2px 0 10px rgba(0,0,0,0.1);
  z-index: 99999;
  overflow-y: auto;
  padding: 50px 20px;
  box-sizing: border-box;
  transition: transform 0.3s ease;
  transform: translateX(0);
}

.filter-sidebar.closed {
  transform: translateX(-100%);
}

.sidebar-close-btn {
  position: absolute;
  top: 60px;
  right: 30px;
  background: #000;
  color: #fff;
  border: none;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 20px;
  line-height: 100%;
  text-align: center;
  transition: all 0.2s;
  z-index: 1001;
}

.sidebar-close-btn:hover {
  background: rgb(204, 148, 91);
  transform: rotate(90deg);
}

.sidebar-toggle-btn {
  position: fixed;
  top: 25vh;
  left: 0;
  background: rgb(204, 148, 91);
  color: #fff;
  border: none;
  width: 45px;
  height: 35px;
  border-radius: 0 10px 10px 0;
  cursor: pointer;
  font-size: 21px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
  z-index: 99999;
  transition: all 0.3s;
  opacity: 0;
  pointer-events: none;
  padding: 1px 3px 5px 2px;
}

.sidebar-toggle-btn.visible {
  opacity: 1;
  pointer-events: all;
}

.sidebar-toggle-btn:hover {
  background: #000;
  transform: scale(1.1);
}

.content-wrapper {
  margin-left: 350px;
  width: calc(100% - 350px);
  transition: all 0.3s ease;
}

.content-wrapper.fullwidth {
  margin-left: 0;
  width: 100%;
}

.map-sidebar {
  width: 100%;
  float: none;
  position: relative;
}

#map-container {
  width: 100%;
  height: calc(100vh - var(--header-height, 100px) - var(--admin-bar-height, 0px));
  border-radius: 0;
  transition: height 0.3s ease;
}

#map-container.halfscreen {
  height: calc(50vh - (var(--header-height, 100px) / 2) - (var(--admin-bar-height, 0px) / 2));
}

.map-scroll-btn {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  background: rgb(204, 148, 91);
  color: #fff;
  border: none;
  padding: 12px 24px;
  border-radius: 25px;
  cursor: pointer;
  font-weight: bold;
  font-size: 14px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
  z-index: 999;
  transition: all 0.3s;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-family: "PT Sans", Arial, Helvetica, sans-serif;
}

.map-scroll-btn:hover {
  background: #000;
  transform: translateX(-50%) translateY(-5px);
  box-shadow: 0 6px 16px rgba(0,0,0,0.4);
}

.map-scroll-btn.hidden {
  opacity: 0;
  pointer-events: none;
}

.immobilien-section {
  scroll-margin-top: 20px;
}

/* ========================================== */
/* ✅ LEAFLET                             */
/* ========================================== */

.leaflet-container a.leaflet-popup-close-button {
  font: 30px/30px Tahoma, Verdana, sans-serif;
}
.leaflet-popup-content div h3{
  margin: 8px 10px 10px !important;
}
.leaflet-container a{
color: rgb(204, 148, 91);
}

.leaflet-container a.leaflet-popup-close-button {
  top: 7px;
  right: 5px;
  width: 30px;
  height: 30px;
}

/* ========================================== */
/* ✅ MAP POPUP STYLES (sm- Klassen)         */
/* ========================================== */

.sm-popup-container {
  max-width: 320px;
  font-family: 'PT Sans', Arial, sans-serif;
}

.sm-popup-header {
  margin: 0 0 12px;
  padding-bottom: 8px;
  border-bottom: 2px solid rgb(204, 148, 91);
}

.sm-popup-title {
  color: #000;
  font-size: 18px;
  font-weight: bold;
}

.sm-popup-count-text {
  margin: 10px 0 !important;
  color: #666;
  font-size: 14px;
  text-align: center;
}

.sm-popup-count {
  color: rgb(204, 148, 91);
  font-size: 20px;
}

.sm-popup-list {
  max-height: 400px;
  overflow-y: auto;
  border-top: 1px solid #eee;
  padding-top: 10px;
}

.sm-popup-card {
  margin-bottom: 12px;
  padding: 0 5px 0 5px;
  border: 1px solid #e0e0e0;
  border-radius: 6px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.sm-popup-image-link {
  display: block;
  text-decoration: none;
}

.sm-popup-image {
  width: 100%;
  height: 150px;
  object-fit: cover;
  display: block;
}

.sm-popup-info {
  padding: 10px;
}

.sm-popup-link {
  color: rgb(204, 148, 91);
  font-weight: bold;
  text-decoration: none;
  font-size: 14px;
  display: block;
  margin-bottom: 6px;
  line-height: 1.3;
  transition: color 0.2s;
}

.sm-popup-link:hover {
  color: #000;
}

.sm-popup-details {
  list-style: none;
  padding: 0;
  margin: 10px 0;
}

.sm-popup-details li {
  font-size: 14px;
  margin-bottom: 4px;
  padding-left: 22px;
  position: relative;
}

/* Icons verwenden die gleichen Klassen wie immoListe */
.sm-popup-details .iconID,
.sm-popup-details .iconLage,
.sm-popup-details .iconPreis {
  /* Icons werden automatisch aus deinem bestehenden CSS übernommen */
}
ul.immoListe.sm-popup-details{
  display: block;
  min-width: auto;
  margin-bottom: 10px;
}
ul.immoListe.sm-popup-details li {
  padding: 0;
  border-bottom: none;
  list-style-type: none;
}
ul.immoListe.sm-popup-details li::before {
  display: inline-block;
  height: 30px;
  width: 35px;
  background-size: 22px;
  background-position: left bottom;
  background-repeat: no-repeat;
  margin-bottom: -8px;
}


.sm-popup-cta {
  text-align: center;
}

.sm-popup-button {
  display: inline-block;
  padding: 6px 12px;
  background: rgb(204, 148, 91);
  color: #fff !important;
  text-decoration: none;
  border-radius: 3px;
  font-size: 12px;
  font-weight: bold;
  transition: background 0.2s;
}

.sm-popup-button:hover {
  background: rgb(184, 128, 71);
}

/* Mobile Anpassungen */
@media (max-width: 800px) {
  .sm-popup-container {
    max-width: 260px;
  }
  
  .sm-popup-image {
    height: 120px;
  }
  
  .sm-popup-title {
    font-size: 16px;
  }
  
  .sm-popup-count {
    font-size: 18px;
  }
}


/* ========================================== */
/* ✅ RESPONSIVE                             */
/* ========================================== */

/* Mobile (unter 800px) */
@media (max-width: 800px) {
  
  /* SEO-Text IMMER versteckt */
  .seo-intro-section {
    display: none !important;
  }
  
  /* Content IMMER volle Breite */
  .content-wrapper,
  .content-wrapper.fullwidth {
    margin-left: 0 !important;
    width: 100% !important;
  }
  
  /* Sidebar als Overlay */
  .filter-sidebar {
    width: 90%;
    max-width: 350px;
    z-index: 100000;
  }
  
  /* Map volle Höhe */
  #map-container,
  #map-container.halfscreen {
    height: calc(100vh - var(--header-height, 80px) - var(--admin-bar-height, 0px) - 10px) !important;
  }
  
  /* Kleinere Marker */
  .circle-label div {
    width: 35px !important;
    height: 35px !important;
    font-size: 14px !important;
  }
  
  /* Popup kompakt */
  .custom-popup .leaflet-popup-content {
    width: 260px !important;
  }
  
  /* Scroll Button */
  .map-scroll-btn {
    bottom: 15px;
    padding: 10px 10px;
    font-size: 11px;
  }

  
  /* Objektnummer */
  .id-objektnummer {
    right: 10px;
    margin-top: 10px;
    width: 300px;
    display: none;
  }
  .id-objektnummer-mobile {
    position: relative;
    width: 100%;
    margin: 20px 0 10px 0;
    display: block;
  }

  /* ✅ OID-Overlay auf Mobile verstecken */
  .oid-search-overlay {
    display: none !important;
  }

  /* ✅ OID-Sidebar auf Mobile anzeigen */
  .id-objektnummer-sidebar {
    display: block !important;
    position: relative;
    width: 100%;
    margin: 10px 0;
  }
  
  .id-objektnummer input {
    padding: 4px 4px 4px 20px !important;
  }
  
  /* Leaflet Controls */
  .leaflet-left .leaflet-control {
    margin-left: 10px;
    margin-top: 10px;
  }
  
  /* Filter Touch-optimiert */
  .filter-bubble {
    font-size: 13px;
    padding: 6px 12px;
  }
  
  .filter-row-compact .filter-bubble {
    font-size: 13px;
    padding: 6px 10px;
  }
  
  /* Slider Touch */
  .noUi-horizontal .noUi-handle {
    width: 28px;
    height: 28px;
  }
  
  /* Sort Buttons */
  .sort-btn-compact {
    font-size: 12px;
    padding: 8px 6px;
  }
  
  /* Toggle Button */
  .sidebar-toggle-btn {
    top: 50vh;
  }
  
  .immobilien-section {
    padding-top: 20px !important;
  }

  .sortiererei{
  max-width: 100%;
}

}

/* ========================================== */
/* ✅ RESPONSIVE 2                            */
/* ========================================== */

/* Mobile (unter 500px) */
@media (max-width: 500px) {

 .sm-popup-list {
  max-height: 270px;
}

.sm-grid{
  grid-template-columns:1fr 1fr;
}

}
  

/* Tablet (801px - 1024px) */
@media (min-width: 801px) and (max-width: 1024px) {
  .filter-sidebar {
    width: 300px;
  }
  
  .content-wrapper {
    margin-left: 300px;
    width: calc(100% - 300px);
  }
  
  #map-container {
    height: calc(60vh - var(--header-height, 100px) - var(--admin-bar-height, 0px));
  }
  
  #map-container.halfscreen {
    height: calc(40vh - (var(--header-height, 100px) / 2) - (var(--admin-bar-height, 0px) / 2));
  }
}