.residence-widget {
    font-family: 'Roboto', sans-serif;
}

.residence-widget * {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

.residence-widget .residence-header {
    height: 400px;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
}

.residence-widget .residence-banner {
    width: 100%;
    background: white;
    text-align: center;
    padding: 24px 0;
    position: relative;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.residence-widget .residence-banner h1 {
    color: #B83E3E;
    font-size: 2.4em;
    font-weight: 500;
    margin: 0;
    padding: 0;
    display: inline-block;
    letter-spacing: 1px;
    position: relative;
}

.residence-widget .residence-banner h1::before,
.residence-widget .residence-banner h1::after {
    content: '';
    position: absolute;
    height: 2px;
    width: 40px;
    background: #B83E3E;
    top: 50%;
    transform: translateY(-50%);
    opacity: 0.6;
}

.residence-widget .residence-banner h1::before {
    right: calc(100% + 24px);
}

.residence-widget .residence-banner h1::after {
    left: calc(100% + 24px);
}

.residence-widget .residence-section {
    background: linear-gradient(135deg, #CC1C1C, #8B0000);
    color: white;
    padding: 100px 0;
    position: relative;
}

.residence-widget .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.residence-widget .residence-content {
    display: flex;
    align-items: center;
    gap: 60px;
}

.residence-widget .floor-plans {
    display: flex;
    gap: 30px;
    flex: 2;
}

.residence-widget .floor-plan {
    flex: 1;
}

.residence-widget .plan-wrapper {
    position: relative;
    overflow: hidden;
    border-radius: 20px;
    box-shadow: 0 15px 30px rgba(0,0,0,0.2);
    background: rgba(0,0,0,0.1);
}

.residence-widget .plan-image {
    position: relative;
}

.residence-widget .plan-image img {
    width: 100%;
    height: auto;
    display: block;
}

.residence-widget .plan-info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
    padding: 30px;
    color: white;
}

.residence-widget .plan-info h3 {
    font-size: 1.8em;
    font-weight: 500;
    margin-bottom: 8px;
}

.residence-widget .plan-info p {
    font-size: 1.2em;
    opacity: 0.9;
}

.residence-widget .luxury-text {
    flex: 1;
    position: relative;
    padding-left: 40px;
}

.residence-widget .luxury-line {
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 70%;
    background: rgba(255,255,255,0.2);
    border-radius: 2px;
}

.residence-widget .luxury-text h2 {
    font-size: 3.5em;
    font-weight: 600;
    line-height: 1.2;
    margin: 0;
    background: linear-gradient(to bottom, #fff, rgba(255,255,255,0.8));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.residence-widget .info-section {
    padding: 60px 0;
    background-color: white;
}

.residence-widget .info-content {
    display: flex;
    gap: 60px;
    margin-bottom: 30px;
}

.residence-widget .left-column {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.residence-widget .right-column {
    flex: 1;
    padding: 20px;
    background: white;
    border-radius: 16px;
}

.residence-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-widget .slider-images {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
}

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

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

.residence-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-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-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-widget .nav-arrow:first-child {
    transform: translateX(-20px);
}

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

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

.residence-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-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-widget .slider-dot.active {
    background: #CC1C1C;
    transform: scale(1.2);
}

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

.residence-widget .details-section {
    background: #2C2C2C;
    border-radius: 16px;
    padding: 40px;
    color: white;
}

.residence-widget .details-list {
    margin-bottom: 40px;
}

.residence-widget .detail-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 12px;
    margin-bottom: 10px;
}

.residence-widget .detail-label {
    font-size: 1.1em;
    font-weight: 500;
    color: #CC1C1C;
}

.residence-widget .detail-value {
    font-size: 1.3em;
    color: white;
}

.residence-widget .features-section {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 30px;
}

.residence-widget .features-section h3 {
    font-size: 1.4em;
    font-weight: 500;
    margin-bottom: 25px;
    color: white;
    text-align: center;
}

.residence-widget .features-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.residence-widget .feature-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 15px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 8px;
}

.residence-widget .feature-dot {
    width: 8px;
    height: 8px;
    background: #CC1C1C;
    border-radius: 50%;
}

.residence-widget .feature-item p {
    margin: 0;
    font-size: 1em;
    color: rgba(255, 255, 255, 0.9);
}

.residence-widget .section-title {
    color: #333;
    font-size: 2.4em;
    font-weight: 600;
    margin-bottom: 30px;
    letter-spacing: -0.5px;
}

.residence-widget .features-title {
    color: #666;
    font-weight: 500;
    margin-bottom: 40px;
    font-size: 1.2em;
    letter-spacing: 0.2px;
}

.residence-widget .feature-card {
    padding: 24px 0;
    margin-bottom: 24px;
    border-bottom: 1px solid #eee;
}

.residence-widget .feature-card:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.residence-widget .feature-card h3 {
    color: #333;
    font-size: 1.4em;
    font-weight: 500;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    letter-spacing: -0.3px;
}

.residence-widget .feature-card h3::before {
    content: '';
    display: inline-block;
    width: 4px;
    height: 24px;
    background: #CC1C1C;
    margin-right: 12px;
    border-radius: 2px;
}

.residence-widget .feature-card p {
    color: #666;
    line-height: 1.7;
    font-size: 1em;
    margin: 0;
    padding-left: 16px;
}

@media (max-width: 1200px) {
    .residence-widget .container {
        max-width: 960px;
    }

    .residence-widget .luxury-text h2 {
        font-size: 3em;
    }

    .residence-widget .feature-card p {
        font-size: 0.95em;
    }
}

@media (max-width: 992px) {
    .residence-widget .container {
        max-width: 720px;
    }

    .residence-widget .info-content {
        flex-direction: column;
        gap: 40px;
    }

    .residence-widget .residence-content {
        gap: 40px;
    }

    .residence-widget .luxury-text h2 {
        font-size: 2.8em;
    }

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

    .residence-widget .section-title {
        font-size: 2.2em;
    }

    .residence-widget .feature-card h3 {
        font-size: 1.3em;
    }
}

@media (max-width: 768px) {
    .residence-widget .container {
        max-width: 540px;
        padding: 0 15px;
    }

    .residence-widget .residence-header {
        height: 300px;
        background-attachment: scroll;
    }

    .residence-widget .residence-banner h1 {
        font-size: 2em;
    }

    .residence-widget .residence-banner h1::before,
    .residence-widget .residence-banner h1::after {
        width: 30px;
    }

    .residence-widget .residence-banner h1::before {
        right: calc(100% + 16px);
    }

    .residence-widget .residence-banner h1::after {
        left: calc(100% + 16px);
    }

    .residence-widget .residence-section {
        padding: 60px 0;
    }

    .residence-widget .residence-content {
        flex-direction: column;
        gap: 40px;
    }

    .residence-widget .floor-plans {
        flex-direction: column;
        width: 100%;
        gap: 20px;
    }

    .residence-widget .luxury-text {
        text-align: center;
        padding-left: 0;
    }

    .residence-widget .luxury-text h2 {
        font-size: 2.5em;
    }

    .residence-widget .luxury-line {
        display: none;
    }

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

    .residence-widget .nav-arrows {
        padding: 0 15px;
    }

    .residence-widget .nav-arrow {
        width: 40px;
        height: 40px;
        font-size: 20px;
        opacity: 1;
        transform: translateX(0);
    }

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

    .residence-widget .slider-nav {
        bottom: 20px;
        padding: 6px 10px;
    }

    .residence-widget .slider-dot {
        width: 8px;
        height: 8px;
    }

    .residence-widget .details-section {
        padding: 25px;
    }

    .residence-widget .details-list {
        margin-bottom: 20px;
    }

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

    .residence-widget .detail-label {
        font-size: 1em;
    }

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

    .residence-widget .feature-card {
        padding: 20px 0;
    }

    .residence-widget .section-title {
        font-size: 2em;
        margin-bottom: 20px;
    }

    .residence-widget .features-title {
        font-size: 1.1em;
        margin-bottom: 30px;
    }
}

@media (max-width: 576px) {
    .residence-widget .container {
        padding: 0 12px;
    }

    .residence-widget .residence-header {
        height: 250px;
    }

    .residence-widget .residence-banner h1 {
        font-size: 1.8em;
    }

    .residence-widget .residence-banner h1::before,
    .residence-widget .residence-banner h1::after {
        width: 20px;
    }

    .residence-widget .residence-section {
        padding: 40px 0;
    }

    .residence-widget .luxury-text h2 {
        font-size: 2.2em;
    }

    .residence-widget .property-slider {
        height: 300px;
        border-radius: 8px;
    }

    .residence-widget .nav-arrow {
        width: 36px;
        height: 36px;
        font-size: 20px;
    }

    .residence-widget .slider-dot {
        width: 8px;
        height: 8px;
    }

    .residence-widget .details-section {
        padding: 20px;
        border-radius: 12px;
    }

    .residence-widget .detail-item {
        padding: 12px;
        margin-bottom: 8px;
    }

    .residence-widget .feature-item {
        padding: 12px;
    }

    .residence-widget .feature-card h3 {
        font-size: 1.2em;
    }

    .residence-widget .feature-card p {
        font-size: 0.9em;
        line-height: 1.6;
    }

    .residence-widget .section-title {
        font-size: 1.8em;
    }

    .residence-widget .features-title {
        font-size: 1em;
    }
}
