/* 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;
}

/* 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: #659a26; /* Company's color */
    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 #659a26; /* Company's color */
    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 {
    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) {
    font-weight: 700;
}

.oo-detailsfreetext, .oo-detailsmap, .oo-area-butler {
    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 {
    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%;
}

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

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

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

@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%;
    }
}

/* Formularelemente */
.oo-form, .oo-form.oo-form-applicant, .oo-form.oo-form-owner {
    background-color: #f9f9f9; /* Einheitlicher Hintergrund */
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1); /* Schatten für Tiefe */
    font-family: 'Open Sans', Arial, sans-serif;
    color: #333;
}

/* Stil für alle Formularüberschriften */
.oo-form h3, .oo-form.oo-form-applicant h1, .oo-form.oo-form-owner h2 {
    color: #659a26; /* CI-Farbe */
    margin-bottom: 20px;
}

/* Stil für Input-Felder und Textareas */
.oo-form input[type="text"], .oo-form input[type="email"], .oo-form input[type="number"], .oo-form select, .oo-form textarea, .oo-form.oo-form-applicant input[type="text"], .oo-form.oo-form-applicant input[type="email"], .oo-form.oo-form-applicant select, .oo-form.oo-form-applicant textarea, .oo-form.oo-form-owner input[type="text"], .oo-form.oo-form-owner input[type="email"], .oo-form.oo-form-owner textarea, .oo-form.oo-form-owner select {
    width: 100%;
    padding: 12px;
    margin-bottom: 15px;
    border: 2px solid #ddd;
    border-radius: 5px;
    background-color: #ffffff;
}

/* Stil für Checkboxen */
.oo-form input[type="checkbox"], .oo-form.oo-form-applicant input[type="checkbox"], .oo-form.oo-form-owner input[type="checkbox"] {
    margin-right: 10px;
    cursor: pointer;
}

/* Labels in Formularen */
.oo-form label, .oo-form.oo-form-applicant label, .oo-form.oo-form-owner label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
    color: #659a26;
}

/* Submit-Button */
.oo-form input[type="submit"], .oo-form.oo-form-applicant input[type="submit"], .oo-form.oo-form-owner input[type="submit"] {
    background-color: #659a26;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.oo-form input[type="submit"]:hover, .oo-form.oo-form-applicant input[type="submit"]:hover, .oo-form.oo-form-owner input[type="submit"]:hover {
    background-color: #567a20;
}

/* Erfolg- und Fehlermeldungen */
.oo-form .message-success, .oo-form .message-error, .oo-form.oo-form-applicant .message-success, .oo-form.oo-form-applicant .message-error, .oo-form.oo-form-owner .message-success, .oo-form.oo-form-owner .message-error {
    padding: 10px;
    margin-bottom: 15px;
    border-radius: 4px;
    text-align: center;
}

.oo-form .message-success, .oo-form.oo-form-applicant .message-success, .oo-form.oo-form-owner .message-success {
    background-color: #dff0d8;
    color: #3c763d;
}

.oo-form .message-error, .oo-form.oo-form-applicant .message-error, .oo-form.oo-form-owner .message-error {
    background-color: #f2dede;
    color: #a94442;
}

/* Mobile Anpassungen */
@media (max-width: 768px) {
    .oo-form {
        padding: 15px;
    }
    .oo-form input[type="text"], .oo-form input[type="email"], .oo-form input[type="number"], .oo-form textarea, .oo-form select {
        padding: 10px;
    }
}
