.residence-details-widget {
    font-family: 'Roboto', sans-serif;
    max-width: 100%;
    margin: 0;
    padding: 0;
}

/* Header Section */
.residence-details-widget .header-section {
    position: relative;
    width: 100%;
    margin-bottom: 60px;
}

.residence-details-widget .header-image {
    width: 100%;
    height: 400px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.residence-details-widget .residence-title {
    position: absolute;
    bottom: -30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
}

.residence-details-widget .residence-title h1 {
    background-color: #B83E3E;
    color: white;
    font-size: 2em;
    font-weight: 600;
    margin: 0;
    padding: 15px 60px;
    text-transform: uppercase;
    white-space: nowrap;
}

/* Main Content Container */
.residence-details-widget .residence-details-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

/* Property Slider */
.residence-details-widget .property-slider {
    width: 100%;
    height: 500px;
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.1);
}

.residence-details-widget .slider-images {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
}

.residence-details-widget .slider-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: none;
}

.residence-details-widget .slider-image:first-child {
    display: block;
}

.residence-details-widget .slider-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 150px;
    background: linear-gradient(to top, rgba(0,0,0,0.5), transparent);
    z-index: 2;
    pointer-events: none;
}

.residence-details-widget .nav-arrows {
    position: absolute;
    top: 50%;
    width: 100%;
    display: flex;
    justify-content: space-between;
    transform: translateY(-50%);
    padding: 0 30px;
    z-index: 3;
    pointer-events: none;
}

.residence-details-widget .nav-arrow {
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    pointer-events: auto;
    color: #CC1C1C;
    font-size: 24px;
    font-weight: bold;
    opacity: 0;
    transform: translateX(20px);
}

.residence-details-widget .nav-arrow:first-child {
    transform: translateX(-20px);
}

.residence-details-widget .property-slider:hover .nav-arrow {
    opacity: 1;
    transform: translateX(0);
}

.residence-details-widget .nav-arrow:hover {
    background: #CC1C1C;
    color: white;
    box-shadow: 0 5px 15px rgba(204, 28, 28, 0.3);
}

.residence-details-widget .slider-nav {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 3;
    background: rgba(0, 0, 0, 0.2);
    padding: 8px 12px;
    border-radius: 20px;
    backdrop-filter: blur(4px);
}

.residence-details-widget .slider-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
}

.residence-details-widget .slider-dot.active {
    background: #CC1C1C;
    transform: scale(1.2);
}

.residence-details-widget .slider-dot:hover {
    background: rgba(204, 28, 28, 0.7);
}

/* Right Column */
.residence-details-widget .right-column {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

/* Details Box */
.residence-details-widget .details-box {
    background: linear-gradient(145deg, #2C2C2C, #363636);
    border-radius: 16px;
    padding: 30px;
    color: white;
    flex: 0 0 auto;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    position: relative;
    overflow: hidden;
}

.residence-details-widget .details-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, rgba(204, 28, 28, 0.05), transparent);
    pointer-events: none;
}

.residence-details-widget .details-header {
    position: relative;
    margin-bottom: 30px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.residence-details-widget .details-header h2 {
    font-size: 1.8em;
    font-weight: 600;
    margin: 0;
    color: white;
    flex-shrink: 0;
}

.residence-details-widget .details-line {
    flex-grow: 1;
    height: 2px;
    background: linear-gradient(to right, rgba(204, 28, 28, 0.8), rgba(204, 28, 28, 0.1));
    border-radius: 2px;
}

.residence-details-widget .details-content {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.residence-details-widget .detail-item {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 12px;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.residence-details-widget .detail-item:hover {
    background: rgba(255, 255, 255, 0.05);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.residence-details-widget .detail-icon {
    width: 48px;
    height: 48px;
    background: rgba(204, 28, 28, 0.1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.residence-details-widget .detail-icon svg {
    width: 24px;
    height: 24px;
    stroke: #CC1C1C;
}

.residence-details-widget .detail-info {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.residence-details-widget .detail-info .label {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9em;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.residence-details-widget .detail-info .value {
    color: white;
    font-size: 1.2em;
    font-weight: 500;
}

/* Description Box */
.residence-details-widget .description-box {
    background: white;
    border-radius: 16px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    flex: 1;
}

.residence-details-widget .description-header {
    position: relative;
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.residence-details-widget .description-header h3 {
    color: #2C2C2C;
    font-size: 1.4em;
    margin: 0;
    flex-shrink: 0;
}

.residence-details-widget .description-line {
    flex-grow: 1;
    height: 2px;
    background: linear-gradient(to right, rgba(204, 28, 28, 0.8), rgba(204, 28, 28, 0.1));
    border-radius: 2px;
}

.residence-details-widget .description-content {
    background: rgba(244, 244, 244, 0.5);
    border-radius: 12px;
    padding: 25px;
}

.residence-details-widget .description-content p {
    color: #666;
    line-height: 1.8;
    margin: 0;
    font-size: 1.05em;
}

/* Responsive Design */
@media (max-width: 992px) {
    .residence-details-widget .residence-details-content {
        grid-template-columns: 1fr;
    }

    .residence-details-widget .property-slider {
        height: 400px;
    }

    .residence-details-widget .header-image {
        height: 300px;
    }

    .residence-details-widget .bottom-image {
        height: 400px;
    }
}

@media (max-width: 768px) {
    .residence-details-widget .header-image {
        height: 250px;
    }

    .residence-details-widget .residence-title h1 {
        font-size: 1.6em;
        padding: 12px 40px;
    }

    .residence-details-widget .property-slider {
        height: 350px;
    }

    .residence-details-widget .detail-item {
        padding: 15px;
    }

    .residence-details-widget .detail-icon {
        width: 40px;
        height: 40px;
    }

    .residence-details-widget .detail-icon svg {
        width: 20px;
        height: 20px;
    }

    .residence-details-widget .detail-info .value {
        font-size: 1.1em;
    }

    .residence-details-widget .bottom-image {
        height: 350px;
    }
}

@media (max-width: 576px) {
    .residence-details-widget {
        padding: 10px;
    }

    .residence-details-widget .header-image {
        height: 200px;
    }

    .residence-details-widget .residence-title h1 {
        font-size: 1.4em;
        padding: 10px 30px;
    }

    .residence-details-widget .property-slider {
        height: 300px;
    }

    .residence-details-widget .details-box,
    .residence-details-widget .description-box {
        padding: 20px;
    }

    .residence-details-widget .details-header h2,
    .residence-details-widget .description-header h3 {
        font-size: 1.3em;
    }

    .residence-details-widget .description-content {
        padding: 20px;
    }

    .residence-details-widget .detail-item {
        padding: 12px;
        gap: 15px;
    }

    .residence-details-widget .detail-icon {
        width: 36px;
        height: 36px;
    }

    .residence-details-widget .detail-icon svg {
        width: 18px;
        height: 18px;
    }

    .residence-details-widget .bottom-image {
        height: 300px;
    }
}


.residence-details-widget .left-column {
    flex: 1;
    margin-right: 30px;
}

.residence-details-widget .bottom-image {
    margin-top: 20px;
    width: 100%;
    height: 500px;
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.1);
}

.residence-details-widget .bottom-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.residence-details-content {
    display: flex;
    gap: 30px;
}

@media (max-width: 768px) {
    .residence-details-content {
        flex-direction: column;
    }
    
    .residence-details-widget .left-column {
        margin-right: 0;
        margin-bottom: 30px;
    }
}