/* --- General Styles for oo-detailview (FROM YOUR ORIGINAL CSS - UNCHANGED) --- */
.oo-detailview {
    display: flex;
    flex-wrap: wrap; /* Allows items to wrap and control their width better */
    gap: 20px; /* Space between main content and sidebar, and other elements */
    padding: 15px;
    border: 1px solid #e0e0e0;
    background-color: #fff;
    border-radius: 5px;
    margin-bottom: 20px; /* Space before the external contact form */
}

/* --- Headline within oo-detailview --- */
.oo-detailsheadline {
    width: 100%; /* Take full width */
    flex-basis: 100%; /* Ensure it's on its own row */
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
}

.oo-detailsheadline h1 {
    font-size: 1.8em;
    color: #333;
    margin: 0 0 5px 0;
}

/* Styles the "Top Angebot" span */
.oo-detailsheadline > span {
    display: inline-block;
    background-color: #fdbb64; /* A common highlight color from your theme */
    color: white;
    padding: 5px 10px !important; /* Override inline style */
    border-radius: 3px;
    font-size: 0.9em;
    font-weight: bold;
}

/* --- Main Content Area (Left Column) --- */
.oo-details-main {
    flex: 2; /* Takes roughly 2/3 of the space */
    min-width: 0; /* Prevents flex items from overflowing if content is too wide */
    display: flex;
    flex-direction: column;
    gap: 20px; /* Space between gallery, table, and freetext sections */
}

.oo-detailsgallery {
    border: 1px solid #ddd;
    border-radius: 4px;
    overflow: hidden; /* Ensures image corners are rounded if image itself isn't */
}
.oo-detailsgallery .oo-detailspicture img {
    display: block;
    width: 100%;
    height: auto;
}

/* --- Styles for the oo-detailstable to match the screenshot --- */
.oo-detailstable {
    display: grid;
    grid-template-columns: auto minmax(100px, 1fr) auto minmax(100px, 1fr);
    column-gap: 15px;
    row-gap: 0;
    padding: 0;
    background-color: #ffffff;
    border-radius: 4px;
}

.oo-detailstable .oo-detailslisttd {
    padding: 10px 0;
    border-bottom: 1px solid #ebebeb;
    font-size: 14px;
    line-height: 1.5;
    color: #585858;
}

.oo-detailstable .oo-detailslisttd:nth-child(4n-3),
.oo-detailstable .oo-detailslisttd:nth-child(4n-1) {
    font-weight: 600;
    color: #323232;
}

.oo-detailstable .oo-detailslisttd:nth-last-child(-n+2) {
     /* border-bottom: none; */
}

.oo-detailsfreetext {
    padding: 15px;
    background-color: #f9f9f9;
    border: 1px solid #eee;
    border-radius: 4px;
}

.oo-detailsfreetext h2 {
    margin-top: 0;
    margin-bottom: 10px;
    font-size: 1.4em;
    color: #154035;
    padding-bottom: 5px;
    border-bottom: 1px solid #ddd;
}

/* --- Sidebar (Right Column) --- */
.oo-details-sidebar {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.oo-details-sidebar .oo-asp,
.oo-details-sidebar .oo-detailsexpose {
    padding: 15px;
    background-color: #f9f9f9;
    border: 1px solid #eee;
    border-radius: 4px;
}

.oo-details-sidebar h2 {
    margin-top: 0;
    margin-bottom: 10px;
    font-size: 1.3em;
    color: #154035;
    padding-bottom: 5px;
    border-bottom: 1px solid #ddd;
}
.oo-aspinfo {
    margin-bottom: 5px;
}
.oo-aspinfo p {
    margin: 0 0 3px 0;
    line-height: 1.4;
}
.oo-field-label {
    font-weight: bold;
    font-size: 0.9em;
    color: #666;
    margin-top: 8px;
}

.oo-detailsexpose a {
    display: block;
    padding: 10px 15px;
    background-color: #fdbb64;
    color: white !important;
    text-decoration: none;
    border-radius: 3px;
    text-align: center;
    font-weight: bold;
}

.oo-detailsexpose a:hover {
    background-color: #e0a850;
}

/* --- Contact Form (#onoffice-form specifically) --- */
.detail-contact-form {
    padding: 20px;
    background-color: #ffffff;
    border: 1px solid #ddd;
    border-radius: 5px;
    margin-top: 0;
}

.detail-contact-form h3 {
    margin-top: 0;
    margin-bottom: 15px;
    font-size: 1.4em;
    color: #154035;
}

#onoffice-form input[type="text"],
#onoffice-form textarea {
    display: block;
    width: 100%;
    padding: 10px;
    margin-top: 3px;
    margin-bottom: 12px;
    border: 1px solid #ccc;
    border-radius: 3px;
    box-sizing: border-box;
    font-size: 1rem;
}
#onoffice-form textarea {
    min-height: 100px;
}

#onoffice-form br {
    display: none;
}

#onoffice-form input[type="checkbox"] {
    display: inline-block;
    width: 25px;
    margin-right: 5px;
    vertical-align: middle;
    margin-top: 0;
    margin-bottom: 0px;
}

#onoffice-form input[type="submit"] {
    display: block;
    background-color: #154035;
    color: white;
    padding: 12px 25px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: bold;
    margin-top: 10px;
}

#onoffice-form input[type="submit"]:hover {
    background-color: #0f2a23;
}

.oo-detailslisttd{
	width: unset;
}

.slick-slide{
	height: auto;
}

/* --- Responsive Adjustments for Detail View --- */
@media (max-width: 991px) {
    .oo-detailview {
        flex-direction: column;
    }

    .oo-details-main,
    .oo-details-sidebar {
        flex: 1 1 100%;
        width: 100%;
    }
}

@media (max-width: 767px) {
    .oo-detailstable {
        grid-template-columns: 1fr;
        column-gap: 0;
        background-color: #f9f9f9;
        padding: 10px;
        border: 1px solid #eee;
    }

    .oo-detailstable .oo-detailslisttd {
        padding: 8px 0;
        border-bottom: 1px solid #ebebeb;
        font-size: 14px;
    }

    .oo-detailstable .oo-detailslisttd:nth-child(odd) {
        font-weight: 600;
        color: #323232;
    }
    .oo-detailstable .oo-detailslisttd:nth-child(even) {
        font-weight: normal;
        color: #585858;
        padding-bottom: 12px;
    }

    .oo-detailstable .oo-detailslisttd:last-child {
        border-bottom: none;
        padding-bottom: 0;
    }
    .oo-detailstable .oo-detailslisttd:nth-child(even):last-child {
        padding-bottom: 0;
    }

     .oo-detailsfreetext h2,
     .oo-details-sidebar h2,
     .detail-contact-form h3 {
        font-size: 1.2em;
     }

     #onoffice-form input[type="submit"] {
        width: 100%;
     }
}
/* --- END OF YOUR ORIGINAL CSS FOR DETAIL VIEW --- */


/* 
=========================================================================
    NEW CSS FOR IMMOBILIENÜBERSICHT / PROPERTY LISTING PAGE
    Targeting classes from your provided HTML.
    ** Styles adjusted for a SLIGHTLY BIGGER appearance & 2-COLUMN VALUE LIST **
=========================================================================
*/

/* Styles for the w-html container if needed for overall padding/font */
.w-html {
    color: #333;
    padding: 20px;
}

/* Headline section for the overview page */
.oo-listheadline {
    margin-bottom: 35px; /* Slightly increased */
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
}

.oo-listheadline h1 {
    font-size: 2.6em;   /* Slightly increased */
    color: #154035;
    margin-top: 0;
    margin-bottom: 10px; /* Slightly increased */
    font-weight: 600;
}

.oo-listheadline p {
    font-size: 1.1em; /* Slightly increased */
    color: #666;
    margin-bottom: 0;
}

/* Container for the list of property cards */
.oo-listframe {
    display: grid;
    /* ***** CHANGED FOR SLIGHTLY LARGER CARDS ***** */
    grid-template-columns: repeat(auto-fill, minmax(380px, 1fr)); /* Increased min width */
    gap: 35px; /* Increased */
}

/* Individual property card */
.oo-listobjectwrap {
    background-color: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 6px; /* Slightly more rounded */
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.09); /* Slightly increased shadow */
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: box-shadow 0.3s ease-in-out;
}

.oo-listobjectwrap:hover {
    box-shadow: 0 7px 18px rgba(0, 0, 0, 0.13); /* Slightly increased hover shadow */
}

/* Image link container */
a.oo-listimage {
    display: block;
    position: relative;
    width: 100%;
    /* ***** CHANGED FOR SLIGHTLY LARGER IMAGE ***** */
    height: 260px; /* Increased from 250px */
    overflow: hidden;
}

a.oo-listimage .oo-picture img.oo-responsive-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* "Top Angebot" banner styling */
a.oo-listimage > span {
    position: absolute;
    background-color: #fdbb64;
    color: white;
    /* ***** ADJUSTED FOR LARGER CARD/IMAGE ***** */
    padding: 7px 0; /* Increased */
    width: 200px;   /* Increased */
    text-align: center;
    font-size: 13.5px; /* Increased */
    font-weight: bold;
    line-height: 1.4;
    text-transform: uppercase;
    box-shadow: 1px 1px 4px rgba(0,0,0,0.25); /* Slightly stronger shadow */
    z-index: 10;
    /* ***** ADJUSTED FOR LARGER CARD/IMAGE ***** */
    top: 28px;      /* Increased */
    left: -55px;    /* Adjusted */
    transform: rotate(-45deg);
    transform-origin: center center;
}

/* Info section of the card */
.oo-listinfo {
    padding: 20px 20px 25px 20px; /* Increased bottom padding for button space */
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.oo-listtitle {
    /* ***** CHANGED FOR SLIGHTLY LARGER FONT ***** */
    font-size: 1.55em; /* Increased from 1.45em */
    color: #154035;
    margin-top: 0;
    margin-bottom: 15px; /* Increased */
    font-weight: 600;
    line-height: 1.35;
}

/* Table-like info display - NOW A 2-COLUMN GRID */
.oo-listinfotableview {
    display: grid !important; /* ***** NEW: Using Grid ***** */
    grid-template-columns: auto 1fr; /* Col1 (label) auto width, Col2 (value) takes rest */
    column-gap: 12px; /* Space between label and value columns */
    row-gap: 6px;    /* Space between each "Label: Value" row */
    
    /* ***** CHANGED FOR SLIGHTLY LARGER FONT & GRID ***** */
    font-size: 1em; /* Increased from 0.95em (e.g., ~16px if base is 16px) */
    color: #585858;
    line-height: 1.6; /* Adjusted */
    margin-bottom: 25px; /* Increased */
}

.oo-listinfotableview .oo-listtd {
    padding-right: 0; /* Reset from previous flex/inline attempts */
    margin-bottom: 0; /* Reset from previous flex/inline attempts */
    /* Ensure items align to the start of their grid cell */
    align-self: start;
    text-align: left;
}

/* Style for labels (odd items in the sequence) */
.oo-listinfotableview .oo-listtd:nth-child(odd) {
    font-weight: 600;
    color: #323232;
    margin-right: 0; /* Reset from previous attempts */
}

/* Style for values (even items in the sequence) */
.oo-listinfotableview .oo-listtd:nth-child(even) {
    /* Values get default color and font-weight from .oo-listinfotableview */
}


/* Details link section */
.oo-detailslink {
    margin-top: auto; /* Pushes the button to the bottom of the card */
}

a.oo-details-btn {
    display: inline-block;
    background-color: #fdbb64;
    color: white !important;
    /* ***** CHANGED FOR SLIGHTLY LARGER BUTTON ***** */
    padding: 13px 28px; /* Increased */
    border-radius: 4px; /* Slightly more rounded */
    text-decoration: none;
    font-weight: bold;
    font-size: 1.05em; /* Increased */
    text-align: center;
    transition: background-color 0.2s ease-in-out;
}

a.oo-details-btn:hover {
    background-color: #e0a850;
}
a.oo-details-btn:focus {
    opacity: 0.8;
    text-decoration: none !important;
    background: #e0a850 !important;
}


/* Responsive adjustments for property listing cards */
@media (max-width: 991px) { /* Tablet */
    .oo-listframe {
        grid-template-columns: repeat(auto-fill, minmax(350px, 1fr)); /* Adjust for tablet if needed */
    }
     .oo-listinfotableview {
        font-size: 0.95em; /* Slightly smaller on tablets */
    }
}

@media (max-width: 767px) { /* Mobile devices */
    .oo-listframe {
        grid-template-columns: 1fr;
        gap: 25px; /* Slightly reduce gap for mobile */
    }

    a.oo-listimage {
        height: 240px; /* Adjust image height for mobile if needed */
    }

    a.oo-listimage > span { /* Top Angebot banner */
        font-size: 12.5px;
        width: 180px;
        top: 22px;
        left: -50px;
    }

    .oo-listinfo {
        padding: 15px 15px 20px 15px;
    }

    .oo-listtitle {
        font-size: 1.4em;
    }

    .oo-listinfotableview {
        font-size: 0.9em; /* Adjust summary info size for mobile */
        column-gap: 8px; /* Reduce column gap on mobile */
        row-gap: 4px;    /* Reduce row gap on mobile */
    }

    a.oo-details-btn {
        width: 100%;
        box-sizing: border-box;
        padding: 12px 20px;
        font-size: 1em;
    }
}