/* estate search */
.oo-searchform {
    margin: 0 0 25px 0;
}

.oo-searchformfieldwrap {
    display: flex;
    align-items: end;
    flex-wrap: wrap;
}

.oo-searchformfield {
    padding: 0 15px;
    margin-bottom: 15px;
    width: 33.33%;
}

.oo-searchformfield label {
    display: block;
    margin: 0;
    padding: 0;
}

.oo-searchformfield input, .oo-searchformfield button, .oo-searchformfield .multiselect {
    width: 100%;
    margin: 0 !important;
}

.oo-searchformfield input[type="checkbox"] {
    width: auto;
    margin-right: 5px;
}

.oo-searchformfield .multiselect {
    position: relative;
}

.oo-searchformfield .onoffice-multiselect-popup {
    position: absolute;
    width: 100%;
    top: 100%;
    left: 0;
    max-height: 250px;
    overflow-y: scroll;
    z-index: 999;
    background-color: #ffffff;
}

.oo-searchformfield br {
    display: none;
}

/* estate map */
.oo-estate-map {
    padding: 0 15px;
    width: 100%;
}

.oo-detailsmap {
    position: relative;
    height: auto;
}

.oo-detailsmap #map, .oo-estate-map #map, .oo-detailsmap #gmap, .oo-estate-map #gmap  {
    height: 300px !important;
}

.oo-estate-map #map .leaflet-top, .oo-estate-map #map .leaflet-bottom {
    z-index: 888;
}

.oo-detailsmap .oo-map, .oo-estate-map .oo-map, .oo-detailsmap .oo-gmap, .oo-estate-map .oo-gmap {
    height: 300px !important;
}

.oo-estate-map .oo-map .leaflet-top, .oo-estate-map .oo-map .leaflet-bottom {
    z-index: 888;
}

/* estate sort */
.oo-estate-sort {
    padding: 15px;
}

/* listframe */
.oo-listheadline {
    padding: 10px 15px;
}

.oo-listframe {
    display: flex;
    flex-wrap: wrap;
}

/* listobject */
.oo-listobject {
    width: 33.33%;
    padding: 0 15px;
    margin: 0 0 50px 0;
}

.oo-listobjectwrap {
    box-shadow: 0px 1px 2px 0px rgba(0, 0, 0, 0.25);
    transition: all 0.3s;
}

.oo-listobject:hover .oo-listobjectwrap {
    box-shadow: 0px 1px 2px 0px rgba(0, 0, 0, 0.50);
}

.oo-listimage {
    display: block;
    width: 100%;
    position: relative;
    height: 250px;
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center center;
}

.oo-listinfo {
    padding: 10px;
}

.oo-listtitle {
    font-weight: 700;
    font-size: 18px;
    text-align: center;
    height: 55px;
    overflow: hidden;
    color: #4a4a4a;
}

.oo-listinfotable {
    padding: 10px 0;
    font-size: 15px;
    min-height: 250px;
}

.oo-listtd {
    display: inline-block;
    width: 50%;
    border-bottom: 1px solid #efefef;
    padding: 2.5px 0;
}

.oo-detailslink a, .favorize {
    display: block;
    text-align: center;
    color: #ffffff !important;
    padding: 5px;
    background-color: #80acd3;
    transition: all 0.3s;
    text-decoration: none;
    font-size: 16px;
    font-weight: normal;
    line-height: 28px;
}

.oo-detailslink a:hover, .favorize:hover {
    opacity: 0.8;
    color: #ffffff !important;
    text-decoration: none !important;
}

.favorize {
    border: 1px solid #839fce;
    cursor: pointer;
}

/* details */
.oo-detailsheadline {
    padding: 10px 15px;
}

.oo-detailview {
    display: flex;
    flex-wrap: wrap;
}

.oo-details-main {
    width: 75%;
    padding: 0 15px;
}

.oo-detailsgallery {
    margin-bottom: 25px;
}

.oo-detailsgallery .slick-arrow {
    z-index: 999;
}

.oo-detailsgallery .slick-prev {
    left: 25px;
}

.oo-detailsgallery .slick-next {
    right: 25px;
}

.oo-detailspicture, .oo-detailspicture.slick-slide {
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    height: 400px;
}

.oo-detailstable {
    display: flex;
    flex-wrap: wrap;
}

.oo-detailslisttd {
    width: 25%;
    padding: 5px 0;
    border-bottom: 2px solid #efefef;
}

.oo-detailslisttd:nth-child(odd),
.oo-field-label {
    font-weight: 700;
}

.oo-detailsfreetext, .oo-detailsmap, .oo-area-butler, .oo-detailspricecalculator {
    padding-bottom: 15px;
    padding-top: 15px;
    border-bottom: 2px solid #efefef;
}

.oo-details-sidebar {
    width: 25%;
    padding: 0 15px;
}

.oo-asp {
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 2px solid #efefef;
}

.oo-aspname, .oo-video, .oo-detailsexpose {
    margin-bottom: 15px;
}

.oo-asplocation {
    margin-bottom: 10px;
}

.oo-contact-info, .oo-aspinfo-wrapper {
    margin-bottom: 15px;
}

.oo-contact-info p {
    margin: 0;
}

.oo-similar {
    width: 100%;
}

#oo-similarframe {
    display: inherit;
    width: 100%;
}

#oo-similarframe .oo-listobject {
    width: inherit;
}


.oo-area-butler {
    position: relative;
    height: auto;
}

.oo-area-butler .oo-area-butler-iframe {
    height: 500px;
    width: 100%;
}

.oo-costs-container {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.oo-costs-container .oo-donut-chart {
    width: 40%;
}

.oo-costs-container .oo-costs-overview {
    width: 55%;
}

.oo-costs-container .oo-costs-overview > div {
    margin-bottom: 5px;
}

.oo-costs-container .oo-costs-overview .oo-price-label,
.oo-costs-container .oo-costs-overview .oo-costs-item {
    display: flex;
    align-items: center;
}

.oo-costs-container .oo-costs-overview .oo-price-label {
    width: 100%;
    justify-content: space-between;
}

.oo-costs-container .oo-costs-overview .oo-total-costs-label {
    margin-left: 20px;
}

.oo-costs-notice {
    font-size: 14px;
    padding-top: 1.5rem
}

.oo-costs-container .oo-costs-overview .color-indicator {
    display: inline-block;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    margin-right: 5px;
    flex-basis: 14px;
    flex-grow: 0;
    flex-shrink: 0;
}

.oo-details-energy-certificate {
    position: relative;
    height: auto;
    padding-bottom: 15px;
    padding-top: 15px;
    border-bottom: 2px solid #efefef;
}

.oo-details-energy-certificate .energy-certificate-container {
    width: 100%;
    margin-top: 1.5rem;
    margin-bottom: 2.5rem;
    padding-bottom: 2rem;
}

.oo-details-energy-certificate .segmented-bar {
    display: flex;
    white-space: nowrap;
    align-items: flex-end;
}

.oo-details-energy-certificate .segment {
    flex: 1;
    text-align: center;
    height: 5px;
    position: relative;
    border-left: 1px solid #fff;
}

.oo-details-energy-certificate .segment:first-child {
    border-left: none;
}

.oo-details-energy-certificate .segment span {
    height: 28px;
    position: absolute;
    bottom: 5px;
    left: 50%;
    transform: translateX(-50%);
}

.oo-details-energy-certificate .energy-certificate-label span {
    position: absolute;
    transform: translateX(-50%);
}

.oo-details-energy-certificate .segment.selected {
    height: 34px;
}

.oo-details-energy-certificate .segment.selected span {
    color: #fff;
}

/* address list */
.oo-address-listframe .oo-address-image {
    width: 100%;
    height: auto;
}

.oo-address-listframe .oo-listtd {
    word-wrap: break-word;
}

.oo-address-listframe .oo-listinfotableview {
    display: flex;
    flex-wrap: wrap;
}

/* address map */
.oo-address-map {
    padding: 0 15px;
    width: 100%;
    margin-bottom: 15px;
}

.oo-address-map .oo-gmap, .oo-address-map .oo-map {
    height: 300px !important;
}

.oo-address-map .oo-map .leaflet-top, .oo-address-map .oo-map .leaflet-bottom {
    z-index: 888;
}

.oo-donut-chart-color0 {
    fill:#3F9DE4;
    background-color:#3F9DE4;
}

.oo-donut-chart-color1 {
    fill:#3ac411;
    background-color:#3ac411;
}
.oo-donut-chart-color2 {
    fill:#9C27B0;
    background-color:#9C27B0;
}
.oo-donut-chart-color3 {
    fill:#D81B60;
    background-color:#D81B60;
}
.oo-donut-chart-color4 {
    fill:#FEC800;
    background-color:#FEC800;
}

#TB_overlay, #TB_window { 
    z-index: 1050 !important; 
}

/* responsive */
@media only screen and (max-width: 991px) {
    .oo-listobject, .oo-searchformfield {
        width: 50%;
    }

    .oo-details-main {
        width: 100%;
    }

    .oo-details-sidebar {
        width: 50%;
    }

    .oo-costs-container {
        width: 100%;
        display: flex;
        justify-content: space-between;
        align-items: center;
        flex-direction: column;
        gap: 2rem;
    }

    .oo-costs-container .oo-donut-chart {
        width: 100%;
    }

    .oo-costs-container .oo-costs-overview {
        width: 100%;
    }
}

@media only screen and (max-width: 700px) {
    .oo-detailslisttd {
        width: 50%;
    }
}

@media only screen and (max-width: 575px) {
    .oo-listobject, .oo-searchformfield, .oo-details-sidebar {
        width: 100%;
    }
}

/* === Custom BTS IMMOMED Styles === */

body, .oo-listinfotable, .oo-detailslisttd, .oo-searchformfield label, .oo-costs-notice, .oo-contact-info p {
    font-family: 'Montserrat', sans-serif !important;
    color: #161F0F !important;
}

h1 .oo-listheadline {
    font-family: 'Montserrat', sans-serif !important;
    font-weight: 700 !important;
    font-size: 60px !important;
    color: #161F0F !important;
}

P .oo-listheadline {
    font-family: 'Montserrat', sans-serif !important;
    font-size: 15px !important;
    color: #161F0F !important;
}

.oo-listtitle, .oo-listinfotable, .oo-detailslisttd {
    font-family: 'Montserrat', sans-serif !important;
    color: #161F0F !important;
}

.oo-detailslink a, .favorize,
.oo-detailslink a:hover, .favorize:hover {
    background-color: #EBE6DD !important;
    color: #161F0F !important;
    border-color: #EBE6DD !important;
}

.oo-detailslink a:hover, .favorize:hover {
    opacity: 0.85 !important;
}

/* Optional: Falls andere Buttons auch beige sein sollen */
button, .oo-searchformfield button {
    background-color: #EBE6DD !important;
    color: #161F0F !important;
    border: none !important;
}

/* Rundung der Boxen */
.oo-listobjectwrap {
    border-radius: 8px !important;
    overflow: hidden;
}

/* Optional: Custom Linkfarben */
a {
    color: #161F0F;
}

/* Set Montserrat font family globally */
body, p, span, div {
  font-family: 'Montserrat', sans-serif;
  font-weight: 400; /* Regular */
}

/* Headings in Montserrat Bold */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  color: #161F0F;
}

/* oo-detailsfreetext: all h2 inside → 35px */
.oo-detailsfreetext h2 {
  font-size: 35px;
}

/* oo-detailsheadline → 40px */
.oo-detailsheadline h1 {
  font-size: 20px;
}

/* oo-asp: all h2 inside → 20px */
.oo-asp h2 {
  font-size: 20px;
}

/* Paragraph-Text unter Listenüberschrift (nur auf Mobile) */
@media (max-width: 768px) {
  .oo-listheadline p {
    font-size: 10px;
  }

  /* Detailüberschrift */
  .oo-detailsheadline h1 {
    font-size: 20px;
  }

  /* Optional: Alle anderen H1 Headings auf 25px auf Mobile */
  h1 {
    font-size: 25px;
  }

  /* Problem: Überschrift ist außerhalb des Containers */
  .oo-detailview {
    padding: 0 15px; /* oder anpassen je nach Bedarf */
    box-sizing: border-box;
  }
}

@media (max-width: 768px) {
  .oo-detailsfreetext h2 {
    font-size: 25px !important;
  }
}

.page-links {
  padding-left: 10px;
  padding-bottom: 10px;
}

.page-link {
  background-color: #EBE6DD;
  padding: 5px 10px;
  border-radius: 4px;
  display: inline-block;
  color: #161F0F; /* Textfarbe */
  text-decoration: none;
}

/* Aktive Seite */
.page-link.current {
  background-color: #161F0F;
  color: #EBE6DD; /* Umkehrung der Farben für Kontrast */
}

/* === Feintuning Überschriften Detailansicht === */

/* Hauptüberschrift auf Detailseite */
.oo-detailsheadline h1 {
  font-size: 26px !important;
  margin-bottom: 15px;
}

/* Beschreibung, Lage usw. */
.oo-detailsfreetext h2,
.oo-asp h2 {
  font-size: 20px !important;
  margin-bottom: 10px;
}

/* Responsive – noch kleiner auf Mobile */
@media (max-width: 768px) {
  .oo-detailsheadline h1 {
    font-size: 20px !important;
  }

  .oo-detailsfreetext h2,
  .oo-asp h2 {
    font-size: 16px !important;
  }
}

.oo-field-label {
  font-family: 'Montserrat', sans-serif;
}

/* Energieausweis-Überschrift auf gleiche Größe wie andere setzen */
.oo-details-energy-certificate h2 {
  font-size: 20px !important;
  font-weight: 700 !important;
  color: #161F0F !important; /* Optional, falls du’s angleichen willst */
  font-family: 'Montserrat', sans-serif !important;
}

.oo-asp img {
  max-width: 80px !important;   /* noch kleiner */
  height: auto !important;
  border-radius: 50%;           /* optional: rund */
  filter: grayscale(100%);      /* optional: schwarz-weiß */
  display: inline-block;
  margin: 0 !important;
  padding: 0 !important;
  vertical-align: top;
}


/* Ansprechpartner: untere Linie entfernen */
.oo-asp {
  border-bottom: 0 !important;
  padding-bottom: 0 !important;  /* falls der „Strich“ optisch durch Padding wirkt */
  margin-bottom: 0 !important;   /* Sicherheitshalber */
}

/* Falls es nur beim letzten Block auftreten soll */
.oo-asp:last-child {
  border-bottom: 0 !important;
}

/* Falls die Linie als Pseudo-Element gesetzt wurde */
.oo-asp::after {
  content: none !important;
  border: 0 !important;
}

.oo-details-energy-certificate {
  border-bottom: none !important;
}

.page-id-13 .page-links {
  display: none !important;
}

/* --- Ribbon Styling für 'Demnächst verfügbar' --- */
.oo-listobjectwrap .ribbon-demnächst {
  position: absolute;
  top: 10px;
  left: -20px;
  background: #161F0F; /* dunkles Grün/Schwarz */
  color: #EBE6DD;      /* Beige, wie eure Brandfarbe */
  padding: 5px 40px;
  font-size: 14px;
  font-weight: bold;
  transform: rotate(-45deg);
  z-index: 10;
}

/* --- Buttons bei verkauften, vermieteten und 'demnächst' Immobilien ausblenden --- */
.oo-listobjectwrap[data-status="verkauft"] .oo-details-btn,
.oo-listobjectwrap[data-status="vermietet"] .oo-details-btn,
.oo-listobjectwrap.demnaechst .oo-details-btn {
  display: none !important;
}

/* === Detailbild: Letterbox statt Zuschnitt === */

/* 1) Der Slide-Container soll in der Höhe automatisch wachsen */
.oo-detailspicture,
.oo-detailsimages .slick-list,
.oo-detailsimages .slick-track,
.oo-detailsimages .slick-slide {
  height: auto !important;
  min-height: 0 !important;
}

/* 2) Bild/Gerüst sauber zentrieren */
.oo-detailspicture {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  background: #f6f6f3; /* dezente Fläche hinter Letterbox, anpassbar */
  /* falls onOffice hier irgendwo fixe Höhen gesetzt hat, überschreiben: */
}

/* 3) Bild nicht beschneiden, sondern komplett zeigen */
.oo-detailspicture picture,
.oo-detailspicture img.oo-responsive-image {
  display: block !important;
  width: 100% !important;
  height: auto !important;
  max-height: 70vh !important;   /* schützt vor überhohen Hochformaten; anpassbar */
  object-fit: contain !important; /* Schlüssel: kein Zuschnitt mehr */
  object-position: center center !important;
}

/* 4) Falls irgendwo „cover“ hart reingedrückt wird: neutralisieren */
.oo-detailsimages img,
.oo-detailsimages picture img {
  object-fit: contain !important;
}

/* 5) Sicherheitsnetz: Entfernt eventuelle harte Bildhöhen/Mindesthöhen */
.oo-detailsimages img,
.oo-detailsimages picture,
.oo-detailspicture picture,
.oo-detailspicture img {
  max-width: 100% !important;
  min-width: 0 !important;
  min-height: 0 !important;
}

/* 6) Optional – Thumbnails nicht beschneiden (wenn vorhanden) */
.oo-gallery img,
.oo-gallery-thumbs img {
  object-fit: cover; /* oder contain, wenn du auch dort alles sehen willst */
}