.testimonials {
    width: 100%;
    max-width: 1440px;
    margin: 0 auto;
    padding: 120px 46px 0;
}

.testimonials__header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 32px;
}

.testimonials__label {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 8px;
}

.testimonials__label-text {
    font-family: var(--font-family);
    font-weight: 600;
    font-size: 15px;
    text-transform: lowercase;
    text-align: right;
    color: #17ab93;
}

.testimonials__label-dot {
    width: 6px;
    height: 6px;
    background-color: rgba(23, 171, 147, 1);
    flex-shrink: 0;
}

.testimonials__title {
    font-family: var(--font-family);
    font-weight: 500;
    font-size: 46px;
    line-height: 110%;
    letter-spacing: -0.05em;
    text-transform: uppercase;
    color: var(--black-292929);
    margin: 0;
    max-width:384px;
}

/* Testimonials slider - show partial next slide */
.testimonials .house-types__slider-track .swiper-slide {
	width: 322px;
}

/* Card - uses house-types__slider from house-types.css */
.testimonials__card {
    position: relative;
    width: 322px;
    height: 451px;
    cursor: pointer;
}

.testimonials__card-image,
.testimonials__card-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.testimonials__card-image {
    background-size: cover;
    background-position: center;
}

.testimonials__card-video {
    object-fit: cover;
}

.testimonials__card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: center;
    padding: 20px;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.5) 100%);
}

.testimonials__card-info {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 10px;
}

.testimonials__card-name {
    color: rgba(255, 255, 255, 1);
    font-size: 16px;
    font-family: var(--font-family);
    font-weight: 700;
    margin: 0;
}

.testimonials__card-property {
    color: rgba(237, 254, 255, 1);
    font-size: 15px;
    font-family: var(--font-family);
    font-weight: 400;
    margin: 0;
}

.testimonials__play-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 46px;
    height: 46px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    transition: opacity 0.3s;
}

.testimonials__play-button:hover {
    opacity: 0.8;
}

.testimonials__play-button svg {
    width: 46px;
    height: 46px;
    display: block;
}

/* Video modal */
.testimonials__video-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
}

.testimonials__video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
}

.testimonials__video-container {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90%;
    max-width: 1200px;
    z-index: 10000;
}

.testimonials__video-close {
    position: absolute;
    top: -40px;
    right: 0;
    background: transparent;
    border: none;
    color: white;
    font-size: 40px;
    cursor: pointer;
    padding: 0;
    line-height: 1;
    transition: opacity 0.3s;
}

.testimonials__video-close:hover {
    opacity: 0.7;
}

.testimonials__video {
    width: 100%;
    height: auto;
    max-height: 80vh;
}

/* Mobile: 550px and below */
@media (max-width: 769px) {
    .testimonials {
        padding: 60px 14px 0;
    }

    .testimonials__header {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
        margin-bottom: 20px;
        max-width: 220px;
    }

    .testimonials__label {
        flex-direction: row-reverse;
        gap: 6px;
        order: -1;
    }

    .testimonials__label-text {
        font-size: 14px;
        font-weight: 700;
        text-align: left;
    }

    .testimonials__title {
        font-size: 22px;
        max-width: none;
    }

    .testimonials .house-types__slider {
        width: calc(100% + 14px);
        margin-left: 0;
        margin-right: -14px;
        max-width: 100%;
    }

    .testimonials .house-types__slider-track .swiper-slide {
        width: 272px;
    }

    .testimonials__card {
        width: 272px;
        height: 373px;
    }

    .testimonials__card-overlay {
        padding: 14px;
    }

    .testimonials__card-name {
        font-size: 15px;
    }

    .testimonials__card-property {
        font-size: 14px;
    }

    .testimonials__play-button {
        width: 42px;
        height: 42px;
    }

    .testimonials__play-button svg {
        width: 42px;
        height: 42px;
    }
}
