.person-container {
    text-align: center;
    padding: 32px;
    background: #e4ece2;
    /*border-radius: 5px;*/
    /*box-shadow: 0 2px 10px rgba(0,0,0,0.1);*/
    /*max-width: 300px;*/
    margin: 0 auto;
}

.person-image img {
    border-radius: 50% !important;
    width: 150px !important;
    height: 150px !important;
    object-fit: cover;
    margin-bottom: 15px;
}

.person-name {
    padding: 0;
    font-weight: normal;
    text-transform: uppercase;
    font-size: 20px;
    color: #83AC7E;
    margin-top: 0;
    position:relative;
}

.person-name::before {
    position: absolute;
    display: block;
    top: 100%;
    left: 50%;
    content: '';
    width: 80%;
    height: 1px;
    background-color: black;
    transform: translateX(-50%);
}

h4.person-name {
    margin-bottom: 10px;
}

.person-position {
    font-size: 16px;
    line-height:24px;
    color: #83AC7E; 
    font-weight: 400;
}

.person-info {
    color: #83AC7E; 
    font-weight: 400;
    margin-top: 24px;
    font-size: 24px;
    line-height: 1.5;
    text-align: center;
    margin-bottom: 0;
}

.person-info p {
    margin-bottom: 0;
}

.person-link {
    margin-top: 30px;
    border-radius: 48px;
    color: #004B68 !important;
    background-color: #DCFF00;
    display: inline-block;
    font-size: 19px;
    font-weight: bold;
    line-height: 1.2;
    padding: 12px 1.5rem 10px 1.5rem;
    text-decoration: none;
    transition: color .15s ease-in-out, background-color .15s ease-in-out, border-color .15s ease-in-out, box-shadow .15s ease-in-out;
    text-transform: uppercase;
    text-decoration: none !important;
}

.person-link:hover {
    background-color: #004B68;
    color: #DCFF00 !important;
}

.title_row_1 {
    font-size: 34px;
    line-height: 38px;
    font-weight: 700;
    color: #004B68;
    text-transform: uppercase;
    font-weight: bold;
    word-break: break-word;
    display: flex;
    flex-direction: column;
    margin:0;
}
.title_row_2 {
    font-size: 34px;
    line-height: 38px;
    font-weight: 400;
    color: #004B68;
    position: relative;
}

.single-projektdetail .title_row_2::after {
    display: block;
    content: '';
    width: 20%;
    height: 10px;
    background-color: #AFCA0B;
    margin-top: 20px;
    margin-bottom: 25px;
}

.title_row_status {
    background-color: rgb(var(--theme-color-lime));
    border-radius: 50px;
    display: inline-block;
    font-size: .85rem;
    font-weight: 600 !important;
    letter-spacing: .05rem;
    line-height: 26px;
    padding: 4px 16px;
    text-transform: uppercase;
    margin-top:24px;
    margin-bottom:32px;
    display: block;
    width: max-content;
}

.elementor-image-status-wrapper {
    position: relative;
    display: inline-block;
}

.projekt_status {
    position: absolute;
    bottom: 20px;
    left: 20px;
    background-color: rgb(var(--theme-color-lime));
    border-radius: 50px;
    display: inline-block;
    font-size: .85rem;
    font-weight: 600 !important;
    letter-spacing: .05rem;
    line-height: 26px;
    padding: 4px 16px;
    text-transform: uppercase;
    width: max-content;
    z-index: 10;
    color: #ffffff !important;
}

.reference-table {
    width: 100%;
    border-collapse: collapse;
    border: 0;
}

.reference-table tr {
    border: 0;
}

.reference-table td {
    padding: 8px 20px;
    border: 0;
    line-height: 1.4;
}

.reference-table td:first-child {
    width: 30%;
    color: #83AC7E;
}

.reference-table td:last-child {
    width: 70%;
}

/* .reference-table tr:nth-child(even) {
    background-color: #ffeded;
} */

.reference-table tr:nth-child(odd) {
    background-color: #f0f0f0;
}



/* */
.card-image-item {
    position: relative;
    overflow: hidden;
    border-radius: 30px;
    margin: 15px;
    transition: all 0.3s ease;
    flex: 0 0 calc(33.333% - 30px);
    max-width: calc(33.333% - 30px);
}

.owl-carousel {
    display: flex;
    flex-wrap: wrap;
    margin: -15px;
}

.card-image-item img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.card-image-item .inner {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 2rem;
    z-index: 2;
    color: 333333;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    transform: translateY(0);
    transition: all 0.3s ease;
}

.card-image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 0, 0, 0); /* Změna z 0.2 na 0 */
    z-index: 1;
    transition: all 0.3s ease;
}

.card-image-title h5 {
    color: #004B68;
    margin: 0;
    transform: translateY(0);
    transition: transform 0.3s ease;
    background: #e4ebe0;
    border: 14px solid #e4ebe0;
    border-radius: 30px;
}
.card-image-body {
    color: 333333;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.3s ease;
    margin-top: 1rem;
}

.card-image-item:hover .card-image-overlay {
    background: rgba(229, 236, 225, 0.9);
    }

.card-image-item:hover .inner {
    transform: translateY(-30px);
}

.card-image-item:hover .card-image-title h3 {
    transform: translateY(-20px);
}

.card-image-item:hover .card-image-body {
    opacity: 1;
    transform: translateY(0);
}

.card-image-item:hover img {
    transform: scale(1.05);
}

/* Responsive design */
@media (max-width: 992px) {
    .card-image-item {
        flex: 0 0 calc(50% - 30px);
        max-width: calc(50% - 30px);
    }
}

@media (max-width: 576px) {
    .card-image-item {
        flex: 0 0 calc(100% - 30px);
        max-width: calc(100% - 30px);
    }
}

/* */
.related-references {
    padding: 40px 0;
}

.section-heading {
    text-align: left;
    margin-bottom: 40px;
}

.references-grid {
    /*display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;*/
    display: flex;
    flex-wrap: wrap;
    margin: -15px;
    transition: all 0.3s ease;
}

/* Reference box */
.reference-box {
    overflow: hidden;
    flex: 0 0 calc(33.333% - 30px);
    max-width: calc(33.333% - 30px);
    margin: 15px;
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 1px 5px rgba(0, 0, 0, 0.1) !important;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
    background: #e8ecee;
    text-decoration: none !important;
    transition: transform 0.3s ease, opacity 0.3s ease, margin 0.3s ease;
    transform-origin: center center;
}
.reference-box:hover {
    cursor:pointer;
}

.reference-box .block-real-estate__image {
    position: relative;
}

.reference-box .block-real-estate__image img {
    width: 100%;
    height: 230px !important;
    object-fit: cover;
    border-top-left-radius: 15px;
    border-top-right-radius: 15px;
}

.reference-box .block-real-estate__image .block-real-estate__image-overlay {
    background: rgba(0, 0, 0, .5);
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100%;
    transition: .3s ease-out;
    transform: translateY(-100%);
    position: absolute;
    border-radius: 15px 15px 0 0;
    top: 0;
    left: 0;
}

.reference-box .block-real-estate__image .block-real-estate__image-overlay .fa-solid.fa-circle-plus {
    color: #fff;
    font-size: 44px;
    transition: all 0.3s ease;
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    font-style: normal;
    font-variant: normal;
}
.reference-box .block-real-estate__image .block-real-estate__image-overlay .fa-solid.fa-circle-plus:before {
    content: "\f055";
}

.reference-box:hover .block-real-estate__image .block-real-estate__image-overlay {
    transform: translateY(0);
}

.reference-box .status-badge {
    position: absolute;
    top: 20px;
    right: 0;
    background: #afca0b;
    color: #004B68;
    font-size: 14px;
    font-weight: bold;
    padding: 5px 10px;
    border-radius: 12px 0 0 12px;
    text-transform: uppercase;
    z-index: 2;
}

.reference-box h3 {
    font-size: 18px;
    font-weight: bold;
    color: #004B68;
    margin: 15px;;
    /*text-transform: uppercase;*/
    position:relative;
    text-align: center;
    padding-bottom:15px;
}

.reference-box h3::before {
    position: absolute;
    display: block;
    top: 100%;
    left: 50%;
    content: '';
    width: 80%;
    height: 1px;
    background-color: black;
    transform: translateX(-50%);
}

.reference-box .address {
    font-size: 14px;
    color: #666;
    margin: 0 15px 15px;
    text-align: center;
    padding-bottom: 10px;
}

.reference-box .details {
    display: flex;
    justify-content: space-evenly;
    padding: 10px 15px;
    font-size: 14px;
    color: #666;
    border-top: 1px solid #e0e0e0;
    background: #F3F2F3;
}

.reference-box .details span {
    display: flex;
    align-items: center;
    /*gap: 5px;*/
}

.reference-box .details span img.custom-icon-1,
.reference-box .details span img.custom-icon-2 {
    width: 25px !important;
    height: 25px !important;
    margin-bottom: 0;
    margin-right: 5px;
}

/* Hover effect */
.reference-box:hover {
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2) !important;
    transform: translateY(-5px);
    transition: all 0.3s ease;
}

.reference-link {
    display: inline-block;
    padding: 10px 15px;
    margin: 15px;
    background: #004B68;
    color: #fff;
    text-decoration: none;
    border-radius: 5px;
}

.related-references-right-block {
    padding: 30px;
    background: #E8ECEE;
    border-radius: 15px;
    /*height: 100%;*/
    overflow: hidden;
    flex: 0 0 calc(33.333% - 30px);
    max-width: calc(33.333% - 30px);
    margin: 15px;
    position: relative;
}

.related-references-right-block h3 {
    color: #004B68;
    margin-bottom: 20px;
}

.related-references-right-block .description {
    margin-bottom: 30px;
}

.cta-button {
    margin-top: 30px;
    border-radius: 48px;
    color: #004B68 !important;
    background-color: #AFCA0B;
    display: inline-block;
    font-size: 19px;
    font-weight: bold;
    line-height: 1.2;
    padding: 12px 1.5rem 10px 1.5rem;
    text-decoration: none !important;
    transition: color .15s ease-in-out, background-color .15s ease-in-out, border-color .15s ease-in-out, box-shadow .15s ease-in-out;
    text-transform: uppercase;
}

.cta-button:hover {
    background-color: #004B68;
    color: #DCFF00 !important;
}

/*@media (max-width: 768px) {
    .references-grid {
        grid-template-columns: 1fr;
    }
}*/

/* Responsive design */
@media (max-width: 992px) {
    .reference-box,
    .related-references-right-block {
        flex: 0 0 calc(50% - 30px);
        max-width: calc(50% - 30px);
    }
}

@media (max-width: 700px) {
    .reference-box,
    .related-references-right-block {
        flex: 0 0 calc(100% - 30px);
        max-width: calc(100% - 30px);
    }
}
@media (max-width: 700px) {
    .related-references-right-block {
        text-align: center;
    }
}

/* */
.intro-image-widget {
    text-align: center;
}

.intro-image-widget img {
    max-width: 100%;
    height: auto;
    max-height: 500px;
    object-fit: cover;
    width: 100%;
}

/* */
.download-label {
    background-color: rgb(var(--theme-color-lime));
    border-radius: 50px;
    display: inline-block;
    font-size: .85rem;
    font-weight: 600 !important;
    letter-spacing: .05rem;
    line-height: 26px;
    padding: .2rem .75rem 0;
    text-transform: uppercase;
    margin-bottom:32px;
}
.download-title {
    font-weight: 600 !important;
}
.download-list {
    list-style: none;
    padding: 0 !important;
    margin: 0;
}
.download-list li {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
}
.download-list li a {
    text-decoration: none !important;
    color: #265769;
    font-size: 1rem;
    border:2px solid #265769;
    border-radius: 50px;
    padding: 8px 16px 8px 24px;
    width: 100%;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
}
.download-list li a:hover {
    color: #ffffff;
    border:2px solid #265769;
    background-color: #265769;
    border-radius: 50px;
}
.download-list li a .icon {
    width: 24px;
    height: 24px;
    -webkit-mask: url("https://greenrock.eu/wp-content/uploads/2025/04/asset_download.svg") no-repeat center;
    mask: url("https://greenrock.eu/wp-content/uploads/2025/04/asset_download.svg") no-repeat center;
    -webkit-mask-size: contain;
    mask-size: contain;
    background-color: #265769; /* Výchozí barva */
    transition: background-color 0.3s ease;
}

.download-list li a:hover .icon {
    background-color: #ffffff; /* Barva při hoveru */
}

[data-elementor-post-type="projektdetail"].elementor > .elementor-element.e-con-full[data-element_type="container"]:first-child .elementor-widget-image .elementor-widget-container,
[data-elementor-post-type="projektdetail"].elementor > .elementor-element[data-element_type="container"]:first-child .head-image-wrapper {
    border-bottom: 15px solid #AFCA0B;
}
[data-elementor-post-type="wohnungen"].elementor > .elementor-element.e-con-full[data-element_type="container"]:first-child .elementor-widget-image .elementor-widget-container {
    border-bottom: 15px solid #AFCA0B;
}

/* Icon Section Widget */
.icon-section-container {
    width: 100%;
    padding: 20px 0;
}

.icon-section-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
    align-items: start;
}

.icon-section-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.icon-section-item-icon {
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #004B68;
}

.icon-section-item-icon i,
.icon-section-item-icon svg {
    width: 40px;
    height: 40px;
}

.icon-section-item-primary {
    font-weight: bold;
    font-size: 20px;
    color: #004B68;
    margin-bottom: 5px;
    line-height: 1.2;
}

.icon-section-item-description {
    font-size: 14px;
    color: #004B68;
    line-height: 1.3;
}

/* Responsive design */
@media (max-width: 768px) {
    .icon-section-grid {
        grid-template-columns: 1fr !important;
        gap: 0px !important;
        padding: 0 40px!important;
    }
    
    .icon-section-item {
        flex-direction: row;
        justify-content: flex-start;
        align-items: center;
        text-align: left;
        gap: 15px;
    }
    
    .icon-section-item-icon {
        margin-bottom: 0;
        flex-shrink: 0;
    }
    
    .icon-section-item-primary {
        flex: 1;
        text-align: center;
        margin-bottom: 0;
    }
    
    .icon-section-item-description {
        flex: 1;
        text-align: right;
    }
}

/* Apartment Table Widget Styles */
.apartment-table-container {
    width: 100%;
    overflow-x: auto;
    margin: 20px 0;
}

.apartment-table.zum-kauf-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 16px;
    border: 0;
}

.apartment-table.zum-kauf-table thead th {
    color: #004B68;
    font-weight: bold;
    padding: 12px 15px;
    text-align: center;
    border: 0;
    border-bottom: 4px solid #e8ecee;
}

.apartment-table.zum-kauf-table tbody tr {
    border-bottom: 4px solid #e8ecee;
}

.apartment-table.zum-kauf-table tbody tr:last-child {
    border-bottom: 0;
}

.apartment-table.zum-kauf-table tbody td {
    padding: 12px 15px;
    vertical-align: middle;
    color: #004B68;
    text-align: center;
    border: 0;
}

.apartment-table.zum-kauf-table .floor-plan-thumbnail {
    width: 60px;
    height: auto;
    max-height: 50px;
    object-fit: contain;
    border-radius: 3px;
}

.apartment-table.zum-kauf-table .apt-number-text {
    border-radius: 4px;
    font-weight: 700;
    display: inline-block;
}

.apartment-table.zum-kauf-table .apt-number-svg {
    width: auto;
    height: 25px;
    max-height: 25px;
    object-fit: contain;
}

.apartment-table.zum-kauf-table .for-sale-cell {
    display: flex;
    align-items: center;
    gap: 10px;
}

.apartment-table.zum-kauf-table .availability-text {
    color: #004B68;
}

.apartment-table.zum-kauf-table .availability-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: #ffffff;
    color: #AFCA0B;
    border-radius: 50%;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 16px;
}

.apartment-table.zum-kauf-table .availability-button:hover {
    background-color: #AFCA0B;
    color: #004B68;
    transform: scale(1.1);
}

.apartment-table.zum-kauf-table .availability-button i {
    font-size: 16px;
}

.apartment-table.zum-kauf-table .verkauft-text {
    color: #cd1719;
}

.apartment-table.zum-kauf-table .verkauft-disabled {
    opacity: 0.25;
}

@media screen and (max-width: 1140px) {
    .apartment-table.zum-kauf-table {
        border: 0;
        font-size: 14px;
    }
}

@media screen and (max-width: 992px) {
    .apartment-table.zum-kauf-table {
        border: 0;
        font-size: 14px;
    }
    
    .apartment-table.zum-kauf-table thead {
        border: none;
        clip: rect(0 0 0 0);
        height: 1px;
        margin: -1px;
        overflow: hidden;
        padding: 0;
        position: absolute;
        width: 1px;
    }
    
    .apartment-table.zum-kauf-table tr {
        border-bottom: 3px solid #e8ecee;
        margin-bottom: .625em;
    }
    
    .apartment-table.zum-kauf-table td {
        border-bottom: 1px solid #e8ecee !important;
        display: block;
        text-align: right !important;
    }
    
    .apartment-table.zum-kauf-table td::before {
        content: attr(data-label);
        float: left;
        font-weight: bold;
    }
}

/* Head Image Widget - Full Width Image with Container-Aligned Overlay */
/* Break out of container to make image full-width */
.elementor-widget-head_image_widget {
    width: 100vw !important;
    max-width: 100vw !important;
    position: relative;
    left: 50% !important;
    right: 50% !important;
    margin-left: -50vw !important;
    margin-right: -50vw !important;
}

.elementor-widget-head_image_widget .elementor-widget-container {
    width: 100% !important;
    max-width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
}

.head-image-widget-container {
    width: 100%;
    margin: 0;
    padding: 0;
    position: relative;
}

.head-image-wrapper {
    position: relative;
    width: 100%;
    display: block;
    overflow: hidden;
}

.head-image-wrapper img.head-image-img {
    width: 100%;
    height: 400px;
    display: block;
    object-fit: cover;
}

.head-image-wrapper 

/* Container for overlay text - uses Elementor container structure */
.head-image-overlay-container {
    position: absolute;
    bottom: 24px;
    left: 0;
    right: 0;
    width: 100%;
    z-index: 10;
    pointer-events: none;
    padding-left: 40px;
    padding-right: 40px;
}

/* Elementor container will handle alignment automatically */
.head-image-overlay-container .elementor-widget-container {
    pointer-events: auto;
}

.head-image-status {
    display: inline-block;
    font-weight: 600;
    letter-spacing: 0.05rem;
    line-height: 26px;
    text-transform: uppercase;
    width: max-content;
    white-space: nowrap;
}

@media (max-width: 768px) {
    .head-image-overlay-container {
        bottom: 15px;
    }
    
    .head-image-status {
        font-size: 14px !important;
        padding: 3px 12px !important;
    }
}

/* Sticky Label Widget */
.sticky-label {
    border-radius: 48px;
    color: #FFFFFF !important;
    background-color: #AFCA0B;
    display: inline-flex;
    align-items: center;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.2;
    padding: 12px 1.5rem 10px 1.5rem;
    text-decoration: none;
    text-transform: uppercase;
}

.single-wohnungen .wpforms-container h4 {
    color: #ffffff !important;
    background-color: #AFCA0B;
    padding: 10px 20px;
    border-radius: 20px 20px 0 0;
    margin-bottom: 16px;
    margin-top: 0;
    font-size:20px;
}

.single-wohnungen .wpforms-container .form-apartmenr-unit {
    border-radius: 20px;
    background-color: #eeeeee;
    padding: 10px 20px;
    margin-bottom: 10px;
    margin-top: 0;
    width: 100%;
    max-width: 100%;
}

.single-wohnungen .wpforms-container .form-apartmenr-unit input,
.single-wohnungen .wpforms-container .form-apartmenr-unit textarea {
    border: 0;
    border-radius: 20px;
    background-color: #eeeeee;
    padding: 0 20px;
    margin: 0;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.single-wohnungen .wpforms-container .wpforms-submit {
    width: 100%;
    border-radius: 20px;
    padding: 14px 20px;
    font-size:14px;
}