/* Base reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

/* Section container */
.property-carousel {
    width: 90%;
    max-width: 1900px;
    margin: 4rem auto;
    padding: 2rem 1rem 4rem;
    background: var(--light-color);
    border-radius: 1.5rem;
    box-shadow: 0 8px 30px var(--shadow-light);
    position: relative;
}

/* Header text */
.section-header {
    text-align: center;
    margin-bottom: 2.5rem;
}

.section-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-dark);
}

.section-subtitle {
    font-size: 1rem;
    color: #555;
    margin-top: 0.5rem;
}

/* Swiper styles */
.swiper {
    width: 100%;
    height: 550px;
    padding: 10px;
}

.swiper-slide {
    background: var(--light-color);
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 4px 15px var(--shadow-light);
    transition: transform 0.3s ease;
}

.swiper-slide:hover {
    transform: translateY(-6px);
}

/* Card structure */
.property-card {
    height: 100%;
    display: flex;
    flex-direction: column;
}

.property-card-img {
    position: relative;
    height: 360px;
    overflow: hidden;
    border-bottom: 3px solid var(--primary-color);
}

.property-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.swiper-slide:hover .property-card-img img {
    transform: scale(1.08);
}

/* Overlay animation */
.img-overlay {
    position: absolute;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.5);
    opacity: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.35s ease;
    backdrop-filter: blur(3px);
}

.swiper-slide:hover .img-overlay {
    opacity: 1;
}

.overlay-content {
    text-align: center;
    color: var(--light-color);
    padding: 1rem 1.2rem;
    transform: translateY(20px);
    opacity: 0;
    transition: all 0.4s ease;
}

.swiper-slide:hover .overlay-content {
    transform: translateY(0);
    opacity: 1;
}

.overlay-text {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 0.6rem;
}

.overlay-details {
    font-size: 0.9rem;
    line-height: 1.5;
    color: var(--light-color);
    opacity: 0.95;
}

/* Card body */
.card-body {
    padding: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #fafafa;
}

.card-title {
    color: var(--text-dark);
    font-size: 1.1rem;
    font-weight: 600;
    text-align: center;
}

/* Swiper Navigation Buttons */
.swiper-button-next,
.swiper-button-prev {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: var(--primary-color);
    width: 55px;
    height: 55px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--light-color);
    font-size: 1.4rem;
    z-index: 10;
    box-shadow: 0 4px 15px var(--shadow-light);
    transition: all 0.3s ease;
}

.swiper-button-next {
    right: -25px;
}

.swiper-button-prev {
    left: -25px;
}

.swiper-button-next:hover,
.swiper-button-prev:hover {
    background-color: var(--light-color);
    --swiper-theme-color: var(--primary-color);
    --swiper-navigation-color: var(--primary-color);
    transform: translateY(-50%) scale(1.1);
}

.swiper-button-next i,
.swiper-button-prev i {
    font-size: 1.8rem;
    line-height: 1;
}

/* Pagination */
.swiper-pagination-bullet-active {
    background-color: var(--primary-color);
}
