/* Real Estate Platform Styles */

/* Hero Section - Property Search */
.hero-section-property {
    background: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 100%);
    color: #fff;
    padding: 80px 0;
    text-align: center;
}

.hero-content-property h1 {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 20px;
    color: #fff;
}

.hero-subtitle {
    font-size: 20px;
    margin-bottom: 40px;
    opacity: 0.95;
}

/* Property Search Form */
.property-search-box {
    background: #fff;
    border-radius: 12px;
    padding: 30px;
    margin: 40px auto;
    max-width: 1000px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.2);
}

.property-search-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.search-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
}

.search-group {
    display: flex;
    flex-direction: column;
}

.search-group label {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 8px;
    color: #333;
}

.search-select, .search-input {
    padding: 12px;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    font-size: 16px;
    transition: all 0.3s;
}

.search-select:focus, .search-input:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.search-submit-group {
    display: flex;
    align-items: flex-end;
}

.btn-search-property {
    background: linear-gradient(135deg, #3b82f6 0%, #1e3a8a 100%);
    color: #fff;
    border: none;
    padding: 12px 30px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    width: 100%;
}

.btn-search-property:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(59, 130, 246, 0.4);
}

/* Property Cards */
.properties-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 30px;
    margin: 40px 0;
}

.property-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    transition: all 0.3s;
}

.property-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

.property-image {
    position: relative;
    width: 100%;
    height: 220px;
    overflow: hidden;
}

.property-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.property-card:hover .property-image img {
    transform: scale(1.05);
}

.property-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background: #3b82f6;
    color: #fff;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
}

.property-badge.off-plan {
    background: #f59e0b;
    top: 50px;
}

.property-content {
    padding: 20px;
}

.property-content h3 {
    margin-bottom: 10px;
    font-size: 20px;
}

.property-content h3 a {
    color: #1e3a8a;
    text-decoration: none;
    transition: color 0.3s;
}

.property-content h3 a:hover {
    color: #3b82f6;
}

.property-location {
    color: #6b7280;
    font-size: 14px;
    margin-bottom: 15px;
}

.property-details {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 15px;
    font-size: 14px;
    color: #4b5563;
}

.property-price {
    font-size: 24px;
    font-weight: 700;
    color: #1e3a8a;
    margin-bottom: 15px;
}

.property-actions {
    display: flex;
    gap: 10px;
}

.btn-view-property, .btn-request-details {
    flex: 1;
    padding: 10px 20px;
    border-radius: 6px;
    text-decoration: none;
    text-align: center;
    font-weight: 600;
    transition: all 0.3s;
}

.btn-view-property {
    background: #3b82f6;
    color: #fff;
}

.btn-view-property:hover {
    background: #1e3a8a;
}

.btn-request-details {
    background: #e5e7eb;
    color: #1e3a8a;
}

.btn-request-details:hover {
    background: #d1d5db;
}

/* Properties Listing Page */
.properties-listing-page {
    padding: 40px 0;
}

.properties-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 30px;
    margin-top: 30px;
}

.filters-sidebar {
    background: #fff;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    height: fit-content;
    position: sticky;
    top: 20px;
}

.filters-sidebar h3 {
    margin-bottom: 20px;
    color: #1e3a8a;
    font-size: 20px;
}

.filter-group {
    margin-bottom: 20px;
}

.filter-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #374151;
    font-size: 14px;
}

.filter-select, .filter-input {
    width: 100%;
    padding: 10px;
    border: 2px solid #e5e7eb;
    border-radius: 6px;
    font-size: 14px;
}

.price-range {
    display: flex;
    gap: 10px;
    align-items: center;
}

.price-range input {
    flex: 1;
}

.btn-filter, .btn-clear-filters {
    width: 100%;
    padding: 12px;
    border: none;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    margin-top: 10px;
    transition: all 0.3s;
}

.btn-filter {
    background: #3b82f6;
    color: #fff;
}

.btn-filter:hover {
    background: #1e3a8a;
}

.btn-clear-filters {
    background: #e5e7eb;
    color: #374151;
}

.btn-clear-filters:hover {
    background: #d1d5db;
}

.properties-main {
    min-height: 500px;
}

.properties-header {
    margin-bottom: 30px;
}

.results-count {
    font-size: 18px;
    color: #6b7280;
}

.results-count strong {
    color: #1e3a8a;
    font-size: 24px;
}

.properties-grid-listing {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 25px;
}

.property-card-listing {
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: all 0.3s;
}

.property-card-listing:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.15);
}

.no-properties-found, .no-properties {
    text-align: center;
    padding: 60px 20px;
    color: #6b7280;
    font-size: 18px;
    background: #fff;
    border-radius: 12px;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 40px;
    flex-wrap: wrap;
}

.pagination-link {
    padding: 10px 16px;
    background: #fff;
    border: 2px solid #e5e7eb;
    border-radius: 6px;
    text-decoration: none;
    color: #374151;
    font-weight: 600;
    transition: all 0.3s;
}

.pagination-link:hover, .pagination-link.active {
    background: #3b82f6;
    color: #fff;
    border-color: #3b82f6;
}

/* Property Detail Page */
.property-detail-page {
    padding: 40px 0;
}

.property-header-detail h1 {
    font-size: 36px;
    color: #1e3a8a;
    margin-bottom: 15px;
}

.property-location-header {
    color: #6b7280;
    margin-bottom: 20px;
    font-size: 16px;
}

.property-price-header {
    font-size: 32px;
    font-weight: 700;
    color: #1e3a8a;
    margin-bottom: 30px;
}

.price-per-sqft {
    font-size: 18px;
    color: #6b7280;
    font-weight: 400;
    margin-left: 15px;
}

.property-gallery {
    margin: 30px 0;
}

.gallery-main {
    margin-bottom: 15px;
    border-radius: 12px;
    overflow: hidden;
}

.gallery-main img {
    width: 100%;
    height: 500px;
    object-fit: cover;
}

.gallery-thumbnails {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 10px;
}

.thumbnail {
    width: 100%;
    height: 80px;
    object-fit: cover;
    border-radius: 6px;
    cursor: pointer;
    opacity: 0.7;
    transition: all 0.3s;
    border: 2px solid transparent;
}

.thumbnail:hover, .thumbnail.active {
    opacity: 1;
    border-color: #3b82f6;
}

.property-detail-layout {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 30px;
    margin-top: 30px;
}

.property-specs {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin: 20px 0;
}

.spec-item {
    padding: 15px;
    background: #f9fafb;
    border-radius: 8px;
}

.spec-label {
    display: block;
    font-size: 14px;
    color: #6b7280;
    margin-bottom: 5px;
}

.spec-value {
    font-size: 18px;
    font-weight: 600;
    color: #1e3a8a;
}

.property-cta-box {
    background: #fff;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    margin-bottom: 20px;
    position: sticky;
    top: 20px;
}

.property-cta-box h3 {
    margin-bottom: 15px;
    color: #1e3a8a;
}

.cta-buttons {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.btn-block {
    width: 100%;
    text-align: center;
}

/* Areas */
.areas-grid, .areas-grid-listing {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
    margin: 30px 0;
}

.area-card, .area-card-listing {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: all 0.3s;
}

.area-card:hover, .area-card-listing:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.15);
}

.area-card a, .area-card-listing a {
    text-decoration: none;
    color: inherit;
}

.area-image {
    width: 100%;
    height: 180px;
    overflow: hidden;
}

.area-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.area-card:hover .area-image img {
    transform: scale(1.1);
}

.area-content {
    padding: 20px;
}

.area-content h3 {
    color: #1e3a8a;
    margin-bottom: 8px;
    font-size: 20px;
}

.area-emirate {
    color: #6b7280;
    font-size: 14px;
    margin-bottom: 10px;
}

.property-count {
    color: #3b82f6;
    font-weight: 600;
    font-size: 14px;
}

/* Blog Listing Page */
.blog-listing-page {
    padding: 60px 0;
    background: #f9fafb;
    min-height: 600px;
}

.blog-page-header {
    text-align: center;
    margin-bottom: 50px;
    padding: 40px 20px;
    background: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 100%);
    border-radius: 12px;
    color: #fff;
}

.blog-page-header h1 {
    font-size: 42px;
    margin-bottom: 15px;
    color: #fff;
    font-weight: 700;
}

.blog-page-subtitle {
    font-size: 18px;
    opacity: 0.95;
    color: #fff;
}

.blog-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 40px;
    margin-top: 30px;
}

.blog-sidebar {
    background: #fff;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    height: fit-content;
    position: sticky;
    top: 20px;
}

.sidebar-widget {
    margin-bottom: 30px;
    padding-bottom: 30px;
    border-bottom: 1px solid #e5e7eb;
}

.sidebar-widget:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.sidebar-widget h3 {
    font-size: 18px;
    color: #1e3a8a;
    margin-bottom: 15px;
    font-weight: 700;
}

.blog-search-form {
    display: flex;
    gap: 10px;
}

.blog-search-form .search-input {
    flex: 1;
    padding: 10px;
    border: 2px solid #e5e7eb;
    border-radius: 6px;
    font-size: 14px;
}

.btn-search {
    padding: 10px 20px;
    background: #3b82f6;
    color: #fff;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s;
}

.btn-search:hover {
    background: #1e3a8a;
}

.category-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.category-list li {
    margin-bottom: 8px;
}

.category-list a {
    color: #374151;
    text-decoration: none;
    display: block;
    padding: 8px 12px;
    border-radius: 6px;
    transition: all 0.3s;
    font-size: 14px;
}

.category-list a:hover,
.category-list a.active {
    background: #3b82f6;
    color: #fff;
}

.featured-posts-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.featured-posts-list li {
    margin-bottom: 12px;
    padding-bottom: 12px;
    border-bottom: 1px solid #e5e7eb;
}

.featured-posts-list li:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.featured-posts-list a {
    color: #374151;
    text-decoration: none;
    font-size: 14px;
    line-height: 1.5;
    transition: color 0.3s;
}

.featured-posts-list a:hover {
    color: #3b82f6;
}

.blog-main {
    min-height: 500px;
}

/* Blog Styles */
.blogs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
    margin: 30px 0;
}

.blog-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    transition: all 0.3s;
    display: flex;
    flex-direction: column;
}

.blog-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.15);
}

.blog-image {
    position: relative;
    width: 100%;
    height: 220px;
    overflow: hidden;
    background: linear-gradient(135deg, #3b82f6 0%, #1e3a8a 100%);
}

.blog-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.blog-card:hover .blog-image img {
    transform: scale(1.1);
}

.blog-category {
    position: absolute;
    top: 15px;
    left: 15px;
    background: #3b82f6;
    color: #fff;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.blog-content {
    padding: 25px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.blog-content h2 {
    margin-bottom: 12px;
    font-size: 20px;
    line-height: 1.4;
}

.blog-content h2 a {
    color: #1e3a8a;
    text-decoration: none;
    transition: color 0.3s;
    display: block;
}

.blog-content h2 a:hover {
    color: #3b82f6;
}

.blog-excerpt {
    color: #6b7280;
    margin-bottom: 15px;
    line-height: 1.7;
    font-size: 15px;
    flex: 1;
}

.blog-meta {
    display: flex;
    gap: 15px;
    font-size: 13px;
    color: #9ca3af;
    margin-bottom: 15px;
    padding-top: 15px;
    border-top: 1px solid #e5e7eb;
}

.read-more-btn {
    color: #3b82f6;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s;
    display: inline-block;
}

.read-more-btn:hover {
    color: #1e3a8a;
    transform: translateX(5px);
}

.no-posts-found {
    text-align: center;
    padding: 60px 20px;
    background: #fff;
    border-radius: 12px;
    color: #6b7280;
    font-size: 18px;
}

/* Page Hero */
.page-hero {
    background: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 100%);
    color: #fff;
    padding: 60px 0;
    text-align: center;
}

.page-hero h1 {
    font-size: 42px;
    margin-bottom: 15px;
}

.page-subtitle {
    font-size: 18px;
    opacity: 0.95;
}

/* Testimonials Section */
.testimonials-section {
    padding: 80px 0;
    background: #f9fafb;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.testimonial-card {
    background: #fff;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: all 0.3s;
}

.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.15);
}

.testimonial-rating {
    margin-bottom: 15px;
}

.testimonial-rating .star {
    font-size: 20px;
    color: #fbbf24;
}

.testimonial-text {
    font-size: 16px;
    line-height: 1.6;
    color: #374151;
    margin-bottom: 20px;
    font-style: italic;
}

.testimonial-author {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.testimonial-author strong {
    color: #1e3a8a;
    font-size: 16px;
}

.testimonial-location {
    color: #6b7280;
    font-size: 14px;
}

.section-subtitle {
    text-align: center;
    color: #6b7280;
    font-size: 18px;
    margin-bottom: 40px;
}

/* Responsive */
@media (max-width: 768px) {
    .properties-layout {
        grid-template-columns: 1fr;
    }
    
    .filters-sidebar {
        position: relative;
        top: 0;
    }
    
    .property-detail-layout {
        grid-template-columns: 1fr;
    }
    
    .search-row {
        grid-template-columns: 1fr;
    }
    
    .properties-grid, .properties-grid-listing {
        grid-template-columns: 1fr;
    }
    
    .hero-content-property h1 {
        font-size: 32px;
    }
    
    .testimonials-grid {
        grid-template-columns: 1fr;
    }
    
    .blog-layout {
        grid-template-columns: 1fr;
    }
    
    .blog-sidebar {
        position: relative;
        top: 0;
        margin-bottom: 30px;
    }
    
    .blog-page-header h1 {
        font-size: 32px;
    }
    
    .blog-page-header {
        padding: 30px 20px;
    }
    
    .blogs-grid {
        grid-template-columns: 1fr;
    }
}

