/* Citigrund Detail Page Styles */

h2.cntdl {
    text-align: left;
}



body {
    position: relative;
}

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

.oo-citigrund-detailview>div {
    margin-bottom: 20px;
}
.ctg-oo-detailsgallery {
    order: -1;
}
.oo-citigrund-detailsheadline,
.oo-citigrund-detailsgallery {
    width: 100%;
}

.oo-citigrund-detailspicture {
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    height: 150px;
}

.oo-citigrund-detailview .slick-prev,
.oo-citigrund-detailview .slick-next {
    width: 40px !important;
    height: 40px !important;
    background: rgba(0, 0, 0, 0.3) !important;
    border: 2px solid white !important;
    border-radius: 50% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    z-index: 999 !important;
    position: absolute !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
}

.oo-citigrund-detailview .slick-prev {
    left: 10px !important;
}

.oo-citigrund-detailview .slick-next {
    right: 10px !important;
}

.oo-citigrund-detailview .slick-prev:hover,
.oo-citigrund-detailview .slick-next:hover {
    background: rgba(0, 0, 0, 0.6) !important;
    transform: translateY(-50%) !important;
    transition: background 0.2s ease !important;
}

.oo-citigrund-detailview .slick-prev:before,
.oo-citigrund-detailview .slick-next:before {
    color: white !important;
    font-size: 24px !important;
    opacity: 1 !important;
    font-family: Arial, sans-serif !important;
    line-height: 1 !important;
    position: absolute !important;
    top: 50% !important;
    left: 50% !important;
}

.oo-citigrund-detailview .slick-prev:before {
    content: '‹' !important;
    transform: translate(-50%, -56%) !important;
}

.oo-citigrund-detailview .slick-next:before {
    content: '›' !important;
    transform: translate(-50%, -56%) !important;
}

.oo-citigrund-detailslisttd:nth-child(odd) {
    font-weight: 500;
}

@media (min-width: 576px) {
    .oo-citigrund-detailspicture {
        height: 200px;
    }
}

@media (min-width: 768px) {
    .oo-citigrund-detailspicture {
        height: 300px;
    }
}

@media (min-width: 992px) {
    .oo-citigrund-detailspicture {
        height: 400px;
    }
}

@media (min-width: 1200px) {
    .oo-citigrund-detailspicture {
        height: 500px;
    }
}

/* XX-Large devices (larger desktops, 1400px and up) */
@media (min-width: 1400px) {
    .oo-citigrund-detailspicture {
        height: 600px;
    }
}

.oo-citigrund-details-main-sidebar {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 70px;
}

.oo-citigrund-details-main {
    /* Grid item - no additional properties needed */
}

.oo-citigrund-details-sidebar {
    display: flex;
    flex-direction: column;
    gap: var(--space-xs);
    padding-top: 3px;
}

.oo-citigrund-details-sidebar :is(h2,h3) {
    margin-bottom: var(--space-xs);
}

.oo-citigrund-details-sidebar > div {
    padding-block: 0;
    border-bottom: 0 none;
}
.oo-citigrund-details-sidebar > div:not(:last-child)::after {
    content: '';
    display: block;
    width: 100%;
    height: 2px;
    margin-block-start: var(--space-xs);
    background-color: var(--base-light-trans-50);
}

.oo-citigrund-detailstable {
    display: flex;
    flex-direction: column;
}

.oo-citigrund-floorplan-container {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
}

.oo-citigrund-floorplan {
    display: flex;
    flex-direction: column;
    margin-right: 20px;
    text-align: center;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
}

.oo-citigrund-floorplan img {
    max-width: 300px;
    display: block;
}

#oo-citigrund-fullscreen {
    z-index: 99999;
    top: 0;
    left: 0;
    background: black;
    position: fixed;
    text-align: center;
    display: none;
}

.oo-citigrund-floorplan-fullscreen {
    height: 100%;
    text-align: center;
    margin: 0 auto;
    overflow: hidden;
}

.oo-citigrund-floorplan-fullscreen div {
    height: 100%;
    text-align: center;
}

.oo-citigrund-floorplan-fullscreen img {
    height: 100%;
    margin: 0 auto;
}

.oo-citigrund-fullscreen-image {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    cursor: grab;
    touch-action: none;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    transition: transform 0.1s ease-out;
    position: relative;
    z-index: 1;
}

.oo-citigrund-fullscreen-image:active {
    cursor: grabbing;
}

.oo-citigrund-fullscreen-slider {
    margin: 0 10%
}

#oo-citigrund-fullscreen .slick-slide {
    padding: 0 7.5px;
    box-sizing: border-box;
}

#oo-citigrund-fullscreen .slick-slide > div {
    outline: none;
}

#oo-citigrund-fullscreen-close {
    position: absolute;
    top: 40px;
    right: 100px;
    z-index: 999999;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    color: white;
}

#oo-citigrund-fullscreen .slick-next {
    right: 100px !important;
    z-index: 999999 !important;
    position: absolute !important;
    width: 40px !important;
    height: 40px !important;
    background: rgba(0, 0, 0, 0.3) !important;
    border: 2px solid white !important;
    border-radius: 50% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
}

#oo-citigrund-fullscreen .slick-prev {
    left: 100px !important;
    z-index: 999999 !important;
    position: absolute !important;
    width: 40px !important;
    height: 40px !important;
    background: rgba(0, 0, 0, 0.3) !important;
    border: 2px solid white !important;
    border-radius: 50% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
}

#oo-citigrund-fullscreen .slick-prev:hover,
#oo-citigrund-fullscreen .slick-next:hover {
    background: rgba(0, 0, 0, 0.6) !important;
    transform: translateY(-50%) !important;
    transition: background 0.2s ease !important;
}

#oo-citigrund-fullscreen .slick-prev:before,
#oo-citigrund-fullscreen .slick-next:before {
    color: white !important;
    font-size: 24px !important;
    opacity: 1 !important;
    font-family: Arial, sans-serif !important;
    line-height: 1 !important;
    position: absolute !important;
    top: 50% !important;
    left: 50% !important;
}

#oo-citigrund-fullscreen .slick-prev:before {
    content: '‹' !important;
    transform: translate(-50%, -56%) !important;
}

#oo-citigrund-fullscreen .slick-next:before {
    content: '›' !important;
    transform: translate(-50%, -56%) !important;
}


@media (max-width: 768px) {
    .oo-citigrund-details-main-sidebar {
        grid-template-columns: 1fr;
        grid-template-rows: auto auto;
        gap: 20px;
    }

    .oo-citigrund-details-main {
        order: 2;
    }

    .oo-citigrund-details-sidebar {
        order: 1;
        padding-top: 0;
    }

    .oo-citigrund-floorplan img {
        max-width: 150px;
        display: block;
    }

    /* Fullscreen slider mobile adjustments */
    #oo-citigrund-fullscreen-slider {
        margin: 0;
        width: 100%;
    }

    #oo-citigrund-fullscreen .slick-slide {
        padding: 0 7.5px;
    }

    #oo-citigrund-fullscreen-close {
        right: 20px !important;
        top: 20px !important;
        z-index: 999999 !important;
        width: 40px !important;
        height: 40px !important;
        background: rgba(0, 0, 0, 0.3) !important;
        border: 2px solid white !important;
        border-radius: 50% !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        position: fixed !important;
        pointer-events: auto !important;
        cursor: pointer !important;
    }

    #oo-citigrund-fullscreen .slick-next {
        right: 20px !important;
        top: 50% !important;
        transform: translateY(-50%) !important;
        z-index: 999999 !important;
        width: 40px !important;
        height: 40px !important;
        background: rgba(0, 0, 0, 0.3) !important;
        border: 2px solid white !important;
        border-radius: 50% !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        position: fixed !important;
    }

    #oo-citigrund-fullscreen .slick-prev {
        left: 20px !important;
        top: 50% !important;
        transform: translateY(-50%) !important;
        z-index: 999999 !important;
        width: 40px !important;
        height: 40px !important;
        background: rgba(0, 0, 0, 0.3) !important;
        border: 2px solid white !important;
        border-radius: 50% !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        position: fixed !important;
    }

    #oo-citigrund-fullscreen .slick-next:before,
    #oo-citigrund-fullscreen .slick-prev:before {
        font-size: 24px !important;
        color: white !important;
        opacity: 1 !important;
        font-family: Arial, sans-serif !important;
        line-height: 1 !important;
        position: absolute !important;
        top: 50% !important;
        left: 50% !important;
        content: '‹' !important;
        transform: translate(-50%, -56%) !important;
    }

    #oo-citigrund-fullscreen .slick-next:before {
        content: '›' !important;
    }

    #oo-citigrund-fullscreen .slick-next:hover,
    #oo-citigrund-fullscreen .slick-prev:hover {
        background: rgba(0, 0, 0, 0.9);
        transform: scale(1.05);
        transition: all 0.2s ease;
    }

    /* Ensure navigation buttons are always above content */
    #oo-citigrund-fullscreen .slick-next,
    #oo-citigrund-fullscreen .slick-prev {
        pointer-events: auto;
        cursor: pointer;
    }

    span.dashicons.dashicons-dismiss {
        font-size: 40px;
        position: absolute;
        left: -14px;
        top: -31px;
    }
}

@media (max-width: 768px) {
    span.dashicons.dashicons-dismiss {
        font-size: 24px !important;
        position: static !important;
        left: auto !important;
        top: auto !important;
        color: white !important;
        width: 24px !important;
        height: 24px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
    }

    #oo-citigrund-fullscreen-close:hover {
        background: rgba(0, 0, 0, 0.6) !important;
        transition: background 0.2s ease !important;
    }
}

@media only screen and (max-width: 767px) {
    /* .Grund {
        margin: 9px 0;
    }

    .aus h2 {
        margin-bottom: -19px;
    } .aus {
        margin-top: 9px;
    }

    p.spc {
        margin-top: -17px;
    }

    p.lagee {
        margin-top: -16px;
    } */
}

.oo-detailsfreetext:last-child,
.oo-asp {
    border: none;
}

/* Contact styles for inactive properties */
.expose-contact {
    display: none !important;
}

/* Contact card styles */
.cg-contact-card {
    display: flex;
    flex-direction: row;
    align-items: stretch;
}

.cg-contact-pic {
    width: 100px;
    min-width: 100px;
    height: 100px;
    background-position: center 0%;
    background-size: 160%;
    border-radius: 50vw;
    background-repeat: no-repeat;
}

.cg-contact-data {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding-left: 16px;
}

.cg-contact-data * {
    display: block;
}

.cg-contanct-name {
    font-size: var(--text-m);
    font-weight: 600;
}

/* Accessibility improvements */
body.fullscreen-modal-open {
    overflow: hidden;
}

#oo-citigrund-fullscreen-close:focus {
    outline: 2px solid #ffffff;
    outline-offset: 2px;
}

.oo-citigrund-floorplan:focus {
    outline: 2px solid #e40613;
    outline-offset: 2px;
}