/* Import Metropolis and Bodoni MT Fonts */
@import url('https://fonts.cdnfonts.com/css/metropolis');
@import url('https://fonts.cdnfonts.com/css/bodoni-mt');

.property-listings-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    font-family: 'Metropolis', sans-serif;
}

/* Filters Section */
.property-filters {
    background: #f8f9fa;
    padding: 25px;
    border-radius: 12px;
    margin-bottom: 30px;
    border: 1px solid #e9ecef;
}

.property-filters h3 {
    margin: 0 0 20px 0;
    font-family: 'Bodoni MT', serif;
    font-size: 24px;
    color: #000;
}

.filter-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    align-items: end;
}

.filter-group {
    display: flex;
    flex-direction: column;
}

.filter-group label {
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 8px;
    color: #333;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.filter-select {
    padding: 10px 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
    font-family: 'Metropolis', sans-serif;
    background: white;
    cursor: pointer;
}

.filter-select:focus {
    outline: none;
    border-color: #007cba;
}

.filter-reset {
    background: #6c757d;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 6px;
    cursor: pointer;
    font-family: 'Metropolis', sans-serif;
    font-size: 14px;
    font-weight: 600;
    transition: background 0.3s ease;
}

.filter-reset:hover {
    background: #5a6268;
}

/* Properties Grid */
.properties-grid {
    display: grid;
    gap: 30px;
    margin-bottom: 40px;
}

.property-card {
    display: flex;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    background: white;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    min-height: 350px;
}

.property-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

/* Image Slider (30%) */
.property-image-slider {
    flex: 0 0 30%;
    position: relative;
    overflow: hidden;
    background: #f5f5f5;
}

.property-slider {
    position: relative;
    height: 100%;
    width: 100%;
}

.slide {
    height: 100%;
    width: 100%;
    display: none;
    position: absolute;
    top: 0;
    left: 0;
}

.slide.active {
    display: block;
}

.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Slider Arrows */
.slider-arrows {
    position: absolute;
    top: 50%;
    width: 100%;
    display: flex;
    justify-content: space-between;
    transform: translateY(-50%);
    padding: 0 15px;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.property-image-slider:hover .slider-arrows {
    opacity: 1;
}

.slider-arrow {
    background: rgba(0, 0, 0, 0.7);
    color: white;
    border: none;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    font-size: 18px;
    cursor: pointer;
    transition: all 0.3s ease;
    pointer-events: all;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.slider-arrow:hover {
    background: rgba(0, 0, 0, 0.9);
    transform: scale(1.1);
}

.no-image {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f5f5f5;
    color: #666;
    font-size: 14px;
    width: 100%;
}

/* Content (70%) */
.property-content {
    flex: 0 0 70%;
    padding: 25px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 15px;
}

/* Row 1: Property Meta */
.property-meta {
    display: flex;
    gap: 20px;
    font-size: 12px;
    font-weight: 400;
    color: #666;
    font-family: 'Metropolis', sans-serif;
    flex-wrap: wrap;
}

.property-meta span {
    display: flex;
    align-items: center;
    gap: 5px;
}

.icon-property-type::before { content: "🏠"; }
.icon-developer::before { content: "🏢"; }
.icon-location::before { content: "📍"; }

/* Row 2: Property Info */
.property-info {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 10px;
}

.property-title {
    font-family: 'Bodoni MT', serif;
    font-size: 32px;
    text-transform: uppercase;
    letter-spacing: -2%;
    margin: 0;
    color: #000;
    line-height: 1.1;
}

.property-description {
    font-size: 14px;
    font-weight: 400;
    line-height: 1.4;
    color: #666;
    margin: 0;
    font-family: 'Metropolis', sans-serif;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Row 3: Features & Price */
.property-features-price {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
    border-top: 1px solid #f0f0f0;
    border-bottom: 1px solid #f0f0f0;
}

.property-features {
    display: flex;
    gap: 20px;
}

.feature {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    font-weight: 400;
    color: #333;
}

.icon-bed::before { content: "🛏️"; }
.icon-bath::before { content: "🚿"; }
.icon-area::before { content: "📐"; }

.property-price {
    font-family: 'Bodoni MT', serif;
    font-size: 24px;
    text-transform: uppercase;
    color: #000;
    font-weight: bold;
    text-align: right;
}

/* Row 4: Contact & CTA */
.property-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 10px;
}

.contact-info {
    display: flex;
    gap: 15px;
}

.contact-link {
    display: flex;
    align-items: center;
    gap: 5px;
    text-decoration: none;
    font-size: 12px;
    font-weight: 700;
    color: #333;
    font-family: 'Metropolis', sans-serif;
    transition: color 0.3s ease;
}

.contact-link:hover {
    color: #007cba;
}

.icon-phone::before { content: "📞"; }
.icon-whatsapp::before { content: "💬"; }
.icon-email::before { content: "✉️"; }

.learn-more-btn {
    background: #000;
    color: white;
    border: none;
    padding: 10px 25px;
    border-radius: 6px;
    font-family: 'Metropolis', sans-serif;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s ease;
    text-decoration: none;
    display: inline-block;
    text-align: center;
}

.learn-more-btn:hover {
    background: #333;
    color: white;
}

/* Pagination */
.property-pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 40px;
}

.pagination-link {
    display: inline-block;
    padding: 10px 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    text-decoration: none;
    color: #333;
    font-family: 'Metropolis', sans-serif;
    font-size: 14px;
    transition: all 0.3s ease;
}

.pagination-link:hover,
.pagination-link.active {
    background: #000;
    color: white;
    border-color: #000;
}

/* Property Detail Page Styles */
.property-detail-page {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
}

/* Thumbnail Slider Styles */
.thumbnail-slider-container {
    margin-bottom: 40px;
}

.main-image-container {
    width: 100%;
    height: 500px;
    margin-bottom: 15px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.main-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.main-image:hover {
    transform: scale(1.02);
}

.thumbnail-strip {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding: 10px 0;
    scrollbar-width: thin;
    scrollbar-color: #ccc transparent;
}

.thumbnail-strip::-webkit-scrollbar {
    height: 6px;
}

.thumbnail-strip::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
}

.thumbnail-strip::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 3px;
}

.thumbnail-strip::-webkit-scrollbar-thumb:hover {
    background: #aaa;
}

.thumbnail-item {
    flex: 0 0 100px;
    height: 75px;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    border: 3px solid transparent;
    transition: all 0.3s ease;
    opacity: 0.7;
}

.thumbnail-item:hover {
    opacity: 0.9;
    transform: translateY(-2px);
}

.thumbnail-item.active {
    border-color: #000;
    opacity: 1;
    transform: translateY(-2px);
}

.thumbnail-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.detail-header {
    text-align: center;
    margin-bottom: 40px;
    padding-bottom: 30px;
    border-bottom: 1px solid #eee;
}

.detail-title {
    font-family: 'Bodoni MT', serif;
    font-size: 48px;
    text-transform: uppercase;
    letter-spacing: -2%;
    margin: 0 0 20px 0;
    color: #000;
}

.detail-price {
    font-family: 'Bodoni MT', serif;
    font-size: 36px;
    color: #000;
}

.detail-description {
    margin-bottom: 50px;
    font-size: 18px;
    line-height: 1.7;
    color: #666;
    text-align: center;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.detail-features {
    margin-bottom: 50px;
}

.detail-features h3 {
    font-family: 'Bodoni MT', serif;
    font-size: 32px;
    margin-bottom: 30px;
    text-align: center;
    color: #000;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 500;
}

.icon-feature::before { 
    content: "✓"; 
    color: #27ae60;
    font-weight: bold;
    font-size: 18px;
}

.developer-info {
    background: #f8f9fa;
    padding: 50px;
    border-radius: 12px;
    text-align: center;
}

.developer-logo {
    max-width: 200px !important;
    margin-bottom: 30px;
}

.developer-info h3 {
    font-family: 'Bodoni MT', serif;
    font-size: 36px;
    margin-bottom: 20px;
    color: #000;
}

.developer-description {
    font-size: 16px;
    line-height: 1.7;
    color: #666;
    max-width: 800px;
    margin: 0 auto;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .property-card {
        flex-direction: column;
        min-height: auto;
    }
    
    .property-image-slider,
    .property-content {
        flex: 0 0 100%;
    }
    
    .property-image-slider {
        height: 250px;
    }
    
    .property-title {
        font-size: 28px;
    }
    
    .property-price {
        font-size: 20px;
    }
    
    .main-image-container {
        height: 400px;
    }
}

@media (max-width: 768px) {
    .property-features-price {
        flex-direction: column;
        gap: 15px;
        align-items: flex-start;
    }
    
    .property-actions {
        flex-direction: column;
        gap: 15px;
        align-items: flex-start;
    }
    
    .contact-info {
        flex-direction: column;
        gap: 10px;
    }
    
    .property-meta {
        flex-direction: column;
        gap: 10px;
    }
    
    .filter-grid {
        grid-template-columns: 1fr;
    }
    
    .main-image-container {
        height: 300px;
    }
    
    .detail-title {
        font-size: 32px;
    }
    
    .detail-price {
        font-size: 28px;
    }
    
    .property-features {
        flex-direction: column;
        gap: 10px;
    }
    
    .thumbnail-item {
        flex: 0 0 80px;
        height: 60px;
    }
}

@media (max-width: 480px) {
    .property-content {
        padding: 20px;
    }
    
    .property-title {
        font-size: 24px;
    }
    
    .detail-title {
        font-size: 28px;
    }
    
    .developer-info {
        padding: 30px 20px;
    }
    
    .thumbnail-item {
        flex: 0 0 70px;
        height: 50px;
    }
}

/* Filter hidden state */
.property-card.filter-hidden {
    display: none;
}

/* Error and Empty States */
.property-error {
    background: #ffeaa7;
    border: 1px solid #fdcb6e;
    padding: 20px;
    border-radius: 8px;
    text-align: center;
    color: #e17055;
    font-family: 'Metropolis', sans-serif;
}

.property-empty {
    background: #dfe6e9;
    border: 1px solid #b2bec3;
    padding: 40px;
    border-radius: 8px;
    text-align: center;
    color: #636e72;
    font-style: italic;
    font-family: 'Metropolis', sans-serif;
}