/* -------------------------------------------------------------------
   Property Slider Widget Styles
   Scoped under .property-slider-widget to avoid conflicts
------------------------------------------------------------------- */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700&display=swap');

.property-slider-widget {
    max-width: 100%;
    width: 100%;
    margin: 0 auto;
    font-family: "Jost", Sans-serif;
    padding: 1rem 0;
    box-sizing: border-box;
}

/* Header */
.property-slider-widget .widget-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding: 0 10px;
}

.property-slider-widget .widget-header h2 {
    font-weight: 600;
    font-size: 1.8rem;
    color: #1a1a1a;
    margin: 0;
}

.property-slider-widget .badge-slider {
    background: #f4f4f4;
    padding: 0.4rem 1rem;
    border-radius: 4px;
    font-size: 0.85rem;
    font-weight: 500;
    color: #666666;
    border: 1px solid #e0e0e0;
}

/* Outer Container relative for controls */
.property-swiper-outer-container {
    position: relative;
    padding: 0;
    box-sizing: border-box;
}

/* Swiper Container */
.property-swiper-container {
    width: 100%;
    overflow: hidden;
    position: relative;
}

/* Slides & Cards */
.property-swiper-container .swiper-slide {
    height: auto;
    display: flex;
    justify-content: center;
    box-sizing: border-box;
}

.property-card {
    background: #ffffff;
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.08);
    border: 1px solid #eaeaea;
    width: 100%;
    display: flex;
    flex-direction: column;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.property-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

/* Image Container */
.property-image-container {
    width: 100%;
    height: 330px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 15px;
    box-sizing: border-box;
}

/* Gradient overlay for readability */
.property-image-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        to bottom,
        rgba(0, 0, 0, 0) 50%,
        rgba(0, 0, 0, 0.6) 100%
    );
    z-index: 1;
}

/* Status Badge - green background and white text */
.status-badge {
    position: relative;
    align-self: flex-end;
    background: #00875a;
    color: #ffffff;
    padding: 4px 10px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-radius: 2px;
    z-index: 2;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
}

/* Address Overlay - white text, right-aligned, at the bottom of the image */
.property-address-overlay {
    position: relative;
    color: #ffffff;
    font-size: 0.95rem;
    font-weight: 400;
    text-align: right;
    width: 100%;
    z-index: 2;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.7);
    margin-top: auto;
    letter-spacing: 0.2px;
}

/* Card Body */
.property-card-body {
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    background: #ffffff;
}

/* Price */
.property-price {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1a1a1a;
    line-height: 1.2;
}

/* Details Line */
.property-details-line {
	font-family: "Jost";
    font-size: 16px;
    color: #666666;
    line-height: 1.4;
    font-weight: 400;
    letter-spacing: 0.1px;
}

/* Navigation Buttons */
.swiper-button-prev-custom,
.swiper-button-next-custom {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    background: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 50%;
    color: #333333;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: all 0.2s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.swiper-button-prev-custom {
    left: 15px;
}

.swiper-button-next-custom {
    right: 15px;
}

.swiper-button-prev-custom:hover,
.swiper-button-next-custom:hover {
    background: #00875a;
    border-color: #00875a;
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(0, 135, 90, 0.25);
}

.swiper-button-prev-custom.swiper-button-disabled,
.swiper-button-next-custom.swiper-button-disabled {
    opacity: 0.4;
    cursor: not-allowed;
    background: #f7f7f7;
    border-color: #e0e0e0;
    color: #aaaaaa;
    box-shadow: none;
}

/* Pagination container */
.swiper-pagination-custom {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 1.5rem;
}

.swiper-pagination-custom .swiper-pagination-bullet {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #cccccc;
    opacity: 1;
    cursor: pointer;
    transition: all 0.25s ease;
}

.swiper-pagination-custom .swiper-pagination-bullet-active {
    background: #00875a;
    width: 20px;
    border-radius: 4px;
}

/* Multi-row container settings */
.property-swiper-container.swiper-grid-active {
    /* Set a max height so Swiper is forced to wrap into grid rows */
    height: auto;
}

@media (max-width: 768px) {
    .property-swiper-outer-container {
        padding: 0;
    }
    .swiper-button-prev-custom,
    .swiper-button-next-custom {
        width: 34px;
        height: 34px;
    }
    .property-image-container {
        height: 200px;
    }
    .property-price {
        font-size: 1.3rem;
    }
}

@media (max-width: 480px) {
    .property-swiper-outer-container {
        padding: 0;
    }
    .swiper-button-prev-custom,
    .swiper-button-next-custom {
        display: none; /* Hide arrows on small screens */
    }
    .property-image-container {
        height: 180px;
    }
}
