/*
Theme Name:     Windsor Child
Theme URI:      http://windsor.axiomthemes.com/
Description:    Windsor Child Theme
Author:         AxiomThemes
Author URI:     http://axiomthemes.com/
Template:       windsor
Version:        1.0.0
Text Domain:    windsor
*/

/* Custom CSS matches for Properties and other elements */

.properties_page_columns_wrap {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -20px;
    align-items: flex-start;
}

.properties_page_column_left {
    flex: 0 0 50%;
    max-width: 50%;
    padding: 0 20px;
    box-sizing: border-box;
}

.properties_page_column_right {
    flex: 0 0 50%;
    max-width: 50%;
    padding: 0 20px;
    box-sizing: border-box;
}

.properties_page_featured img {
    border-radius: 0px;
    width: 100%;
}

.properties_title {
    font-size: 2.4rem;
    font-weight: 700;
    margin: 0 0 10px 0;
}

.properties_secondary_info_wrap {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 20px;
}

.properties_page_header_price {
    margin: 20px 0 10px 0;
}

.properties_secondary_info_wrap {
    display: flex;
    flex-direction: column;
    gap: 8px;
    /* Slightly reduced */
    margin-bottom: 10px;
    /* Reduced to pull up the divider */
}

.properties_page_type {
    color: #e30613;
    font-weight: bold;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 0.5px;
}

.properties_page_status span,
.properties_page_status a {
    background: #f0f7fb;
    padding: 6px 12px;
    border-radius: 4px;
    color: #444;
    display: inline-block;
    font-size: 0.8rem;
}

.properties_page_status {
    margin-top: 0.1rem !important
}

.properties_header_divider {
    height: 1px;
    background: #ddd;
    margin: 10px 0;
    /* Reduced from 25px */
}

.properties_page_title_address {
    margin-top: 20px !important;
    /* Pull it slightly up */
    padding-top: 10px !important;
    font-size: 0.9rem;
    color: #777;
}

/* Gallery thumbnails */
.properties_page_gallery {
    background: transparent !important;
    padding: 15px 0 !important;
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 10px !important;
    justify-content: flex-start !important;
}

.properties_page_gallery_item {
    margin: 0 !important;
    cursor: pointer;
}

.properties_page_gallery_item img {
    width: 85px !important;
    height: 65px !important;
    object-fit: cover;
    border-radius: 0px;
    border: 1px solid transparent;
    transition: border-color 0.3s ease;
}

.properties_page_gallery_item_active img {
    border-color: #e30613;
}

/* Sidebar Details (Basic Information) */
.properties_page_details_sidebar {
    display: flex;
    flex-wrap: wrap;
    margin-top: 25px;
    background: transparent;
    padding: 0;
}

.properties_page_details_sidebar .properties_page_section_item {
    flex: 0 0 50%;
    display: flex;
    flex-direction: column;
    font-size: 0.95rem;
    margin-bottom: 15px;
    padding-right: 10px;
    box-sizing: border-box;
    border-bottom: 1px solid #eee;
    padding-bottom: 8px;
}

.properties_page_details_sidebar .properties_page_label {
    font-weight: bold;
    color: #999;
    text-transform: uppercase;
    font-size: 0.7rem;
    margin-bottom: 4px;
    letter-spacing: 0.5px;
}

.properties_page_details_sidebar .properties_page_data {
    color: #222;
    font-weight: 600;
}

@media (max-width: 959px) {

    .properties_page_column_left,
    .properties_page_column_right {
        flex: 0 0 100%;
        max-width: 100%;
    }

    .properties_page_details_sidebar .properties_page_section_item {
        flex: 0 0 50%;
    }
}

/* Related Properties Section Spacing */
.related_wrap.properties_page_related {
    padding-top: 80px !important;
    padding-bottom: 100px !important;
    margin-top: 100px !important;
    margin-bottom: -150px !important;
}

.related_wrap.properties_page_related .related_wrap_title {
    margin-bottom: 25px !important;
}

/* Completion percentage progress bar */
.properties_page_completion_wrap {
    margin: 20px 0;
    max-width: 400px;
    clear: both;
    background: #fff;
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.properties_page_completion_wrap .properties_page_label {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    color: #999;
    margin-bottom: 8px;
    display: block;
    letter-spacing: 1px;
}

.properties_page_completion_bar {
    height: 14px;
    background: #f0f0f0;
    border-radius: 10px;
    overflow: hidden;
    position: relative;
    border: 1px solid #eee;
}

.properties_page_completion_bar_fill {
    height: 100%;
    background: linear-gradient(90deg, #e30613 0%, #ff4b55 100%);
    box-shadow: 0 2px 4px rgba(227, 6, 19, 0.2);
    border-radius: 10px;
    transition: width 1s ease-in-out;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    animation: slideInProgress 1.5s ease-out;
}

.properties_page_completion_percentage {
    font-size: 10px;
    color: #fff;
    font-weight: bold;
    margin-right: 10px;
    line-height: 14px;
    white-space: nowrap;
}

@keyframes slideInProgress {
    from { width: 0; }
}

/* Reducir margen superior general del contenido de la página para inmuebles */
.single-properties .page_content_wrap,
.single-cpt_properties .page_content_wrap {
    padding-top: 15px !important; 
    margin-top: 0 !important;
}