/* =========================
   Allgemein
========================= */
.page-id-125 strong, u {
    color: #245569 !important;
}

/* ============================================================
   LISTING-SEITE
   ============================================================ */

 .realty-listings {
    display: flex;
    flex-direction: column;
    gap: 45px;
    max-width: 1200px;
    margin: 60px auto;
    padding: 0 20px;
}

/* Header */
.realty-header {
    text-align: center;
    margin-bottom: 30px;
    margin-left; 1rem;
    margin-right: 1rem;
}

.realty-header h3 {
    color: #245569 !important;
    font-size: 34px;
    margin-bottom: 10px;
}

.realty-header p {
    font-size: 17px;
    color: #245569;
    margin-left: 2rem;
    margin-right: 2rem;
}

/* Immobilienkarte */
.realty-item {
    display: flex;
    border-radius: 16px;
    overflow: hidden;
    background: #fff;
    border-bottom: 3px solid #ddd;
    transition: transform .2s, box-shadow .2s;
    padding-right: 1rem;
}

.realty-item h3 {
    color: #245569;
}

.realty-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.realty-listing-details {
        background: #f7f8fb;
    border-radius: 14px;
    border: 1px solid #e0e3ea;
    padding: .5rem;
    line-height: 1.6;
}

.realty-item .slider img {
    object-fit: cover;
}
/* ============================================================
   FIX: Slider-/Bildbereich ohne Padding, ohne Margin, full cover
   ============================================================ */

/* Outer slider container */
.slider,
.realty-slider {
    width: 80%;
    height: 300px;
    padding: 0 !important;
    margin: 0 !important;
    overflow: hidden;
    border: none;
    display: block;
}

.slick-arrow {
    z-index: 999;
}

.slick-prev:before {
    color: #ccc !important;
}

.slick-next:before {
    color: #ccc !important;
}

/* Prevent any Slick paddings */
.realty-slider .slick-list,
.realty-slider .slick-track,
.realty-slider .slick-slide {
    padding: 0 !important;
    margin: 0 !important;
    height: 100% !important;
}

/* Wrapper inside slider */
.realty-slider > div {
    height: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* The actual images */
.realty-slider img {
    width: 100% !important;
    height: 100% !important;
    object-fit: fill;
    display: block;
    margin: 0 !important;
    padding: 0 !important;
    border-radius: 0 !important;
}

/* Textbereich */
.realty-item > a {
    width: 80%;
    padding: 30px;
    text-decoration: none;
    color: inherit;
    display: block;
}

.realty-item h3 {
    font-size: 26px;
    margin-bottom: 15px;
}

.realty-item p {
    font-size: 15px;
    margin: 6px 0;
    color: #6b6255;
}

/*** Footer der Karte ***/
.realty-footer {
    margin-top: 25px;
    display: flex;
    flex-direction: column-reverse;
    justify-content: end;
    gap: 10px;
    align-items: end;
    width: 20%;
}

.realty-footer a, span {
    margin-right: .1rem;
}

.details-button {
    background: #245569;
    padding: 10px 22px;
    border-radius: 20px;
    color: #fff;
    font-size: 14px;
    text-decoration: none;
    transition: background .2s;
    width: 90px;
    text-align: center;
}

.details-button:hover {
    background: #c7d200;
}

.realty-price {
    font-size: 20px;
    font-weight: 700;
    text-align: right;
}

/* Responsive */
@media (max-width: 768px) {
    .realty-item {
        flex-direction: column;
        padding: 0;
    }

    .slider,
    .realty-slider {
        width: 100%;
        height: 220px;
    }
    
    .realty-item > a {
    width: auto;
}
}

/* ============================================================
   DETAILSEITE
   ============================================================ */

/* Gesamter Wrapper */
.realty-detail {
    max-width: 1200px;
    margin: 0 auto 80px;
    padding: 0 20px;
}

/* Slider oben */
.realty-detail .slider,
.realty-detail .realty-slider {
    width: 100%;
    height: 480px;
}

.realty-detail .realty-slider img {
    width: 100%;
    height: 480px;
    display: block;
}

/* Sektionen */
.realty-section {
    background: #ffffff;
    padding: 35px 40px;
    margin-top: 40px;
    border-radius: 14px;
    box-shadow: 0 3px 20px rgba(0,0,0,0.06);
}

.realty-section h2 {
    font-size: 30px;
}

.realty-section h2,
.realty-section h3,
.realty-section span {
    margin-bottom: 20px;
    color: #245669 !important;
}

.realty-section p {
    font-size: 16px;
    line-height: 1.6;
    color: #6a625a;
    margin: 6px 0;
}

/* Details Listen */
.details .equipment-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px 25px;
}

.equipment-item {
    padding-left: 20px;
    position: relative;
    text-transform: uppercase;
    background: #f7f8fb;
    border-radius: 14px;
    border: 1px solid #e0e3ea;
    padding: .5rem;
    line-height: 1.6;
    font-weight: 700;
}

.equipment-item::before {
    position: absolute;
    left: 0;
    color: #b29572;
}

/* ============================================================
   KONTAKTFORMULAR
   ============================================================ */
.realty-contact {
    background: #245669;
    padding: 35px 40px;
    border-radius: 12px;
    margin-top: 45px;
}

.realty-contact h3,
.realty-contact span {
    margin-bottom: 15px;
    color: #fff;
    line-height: 1.2;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 12px 15px;
    margin-bottom: 20px;
    border-radius: 5px;
    border: 1px solid #c8b28e;
    background: #f7f1e6;
    font-family: inherit;
    font-size: 15px;
}

.contact-form textarea {
    height: 140px;
}

.checkbox-wrapper {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

.checkbox-wrapper input {
    margin-right: 10px;
}

.contact-form button {
    padding: 12px 28px;
    border: 2px solid #ccc;
    border-radius: 20px;
    cursor: pointer;
    font-size: 16px;
    transition: background .2s;
    width: 100%;
}

.contact-form h3 {
    color: #ffffff;
}

.contact-form a {
    color: #ffffff;
}

input[type="checkbox"] {
    padding:0;
    width:20px;
}

.contact-form button:hover {
    background: #c7d200;
}

#realty-contact-form input {
    margin-bottom: 1rem;
}

/*** Statusmeldung ***/
.response-success {
    color: #0a8a41;
}

.response-error {
    color: #b32929;
}

/* ============================================================
   DETAILSEITE – 2-Spalten-Layout
   ============================================================ */

.realty-detail-columns {
    display: flex;
    gap: 40px;
    margin-top: 40px;
}

.realty-detail-left {
    flex: 1.6;
    display: flex;
    flex-direction: column;
}

.realty-detail-right {
    flex: 1;
    min-width: 360px;
}

.realty-detail-right .realty-contact {
    margin-top: 0 !important;
    height: fit-content;
}

@media (max-width: 1024px) {
    .realty-detail-columns {
        flex-direction: column;
    }

    .realty-detail-right {
        min-width: 100%;
    }
}

@media (max-width: 768px) {
    .realty-footer {
        width: 100%;
        justify-content: right;
        align-items: end;
    }
    
    .realty-footer a, span {
    margin-right: 1rem;
}
}
