/**
 * Lifestyle Single Page Styles
 */

:root {
    --color-primary: #002349;
}

/* ==========================================================================
   Hero Section - Matching Agents Page Style
   ========================================================================== */

.lifestyle-hero {
    background: url('/wp-content/themes/sir/assets/images/title-background.png') no-repeat center center;
    background-size: cover;
    padding: 0;
    margin-top: 76px;
    display: flex;
    align-items: stretch;
}

.lifestyle-hero-content {
    max-width: 1600px;
    flex-grow: 1;
    padding: 3rem 0 3rem 3rem;
    display: flex;
    align-items: center;
}

.lifestyle-hero-title {
    font-family: var(--sir-font-serif);
    font-size: 2rem;
    font-weight: 500 !important;
    line-height: 1.3;
    margin: 0;
    color: var(--color-primary);
}

.lifestyle-hero-right {
    background: var(--color-primary);
    width: 45%;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    padding: 2rem 3rem;
}

.lifestyle-description {
    color: #ffffff;
    font-size: 0.95rem;
    line-height: 1.7;
}

.lifestyle-description p {
    margin: 0;
}

@media (max-width: 992px) {
    .lifestyle-hero {
        flex-direction: column;
    }

    .lifestyle-hero-content {
        padding: 2rem;
    }

    .lifestyle-hero-right {
        width: 100%;
        padding: 2rem;
    }

    .lifestyle-hero-title {
        font-size: 1.5rem;
    }
}

@media (max-width: 768px) {
    .lifestyle-hero {
        padding: 0;
    }

    .lifestyle-hero-content {
        padding: 1.5rem;
    }

    .lifestyle-hero-right {
        padding: 1.5rem;
    }

    .lifestyle-hero-title {
        font-size: 1.25rem;
    }
}

/* ==========================================================================
   Properties Section
   ========================================================================== */

.lifestyle-properties-section {
    padding: 2rem 0 4rem;
    background: #fff;
}

.lifestyle-properties-section .e-con-inner {
    padding: 0 2rem;
}

/* Properties Header with Filter */
.properties-header {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 2rem;
}

.filter-wrapper {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.filter-wrapper label {
    font-size: 0.9rem;
    color: #333;
}

.filter-select {
    padding: 0.5rem 2.5rem 0.5rem 0.75rem;
    border: 1px solid #d0d0d0;
    font-size: 0.9rem;
    background-color: #ffffff;
    background-image: url('data:image/svg+xml,%3Csvg xmlns="http://www.w3.org/2000/svg" width="10" height="10" viewBox="0 0 12 12"%3E%3Cpath fill="%23333" d="M6 9L1 4h10z"/%3E%3C/svg%3E');
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    appearance: none;
    cursor: pointer;
    min-width: 180px;
}

.properties-count {
    font-size: 1rem;
    color: #333;
    margin: 0;
}

.no-properties {
    text-align: center;
    color: #666;
    font-style: italic;
    padding: 3rem 0;
}

/* ==========================================================================
   Property Grid - 4 Columns
   ========================================================================== */

.property-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
}

.property-card {
    display: block;
    background: #fff;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-decoration: none;
    color: inherit;
}

.property-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.property-image {
    width: 100%;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    position: relative;
    background: #f0f0f0;
}

.property-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease, opacity 0.3s ease;
    opacity: 0;
}

.property-image img.loaded {
    opacity: 1;
}

.property-card:hover .property-image img {
    transform: scale(1.05);
}

.property-image-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #999;
    gap: 0.5rem;
}

.property-image-placeholder svg {
    opacity: 0.5;
}

.property-image-placeholder span {
    font-size: 0.85rem;
}

/* Property Details */
.property-details {
    padding: 1rem;
}

.property-card .property-title {
    font-family: var(--sir-font-sans);
    font-size: 0.9rem;
    color: var(--color-primary);
    margin: 0 0 0.5rem 0;
    line-height: 1.4;
    font-weight: 400;
    letter-spacing: 0.3px;
}

.property-location {
    font-size: 0.85rem;
    color: #666;
    margin: 0 0 0.75rem 0;
    letter-spacing: 0.3px;
}

.property-price {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}

.price-main {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--color-primary);
}

.price-secondary {
    font-size: 0.85rem;
    color: #888;
}

/* Preferred currency (set by preferences-apply.js) */
.price-preferred {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--color-primary);
    order: -1;
}

.price-other {
    font-size: 0.85rem;
    color: #888;
    font-weight: 400;
}

/* ==========================================================================
   Responsive Styles
   ========================================================================== */

@media (max-width: 1200px) {
    .property-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 992px) {
    .property-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .lifestyle-properties-section .e-con-inner {
        padding: 0 1.5rem;
    }
}

@media (max-width: 768px) {
    .property-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }

    .property-card .property-title {
        font-size: 0.85rem;
    }

    .price-main,
    .price-secondary {
        font-size: 0.85rem;
    }
}

@media (max-width: 576px) {
    .property-grid {
        grid-template-columns: 1fr;
    }

    .lifestyle-properties-section .e-con-inner {
        padding: 0 1rem;
    }
}
