/* Home Page Styles */

/* Hero Section */
.home-hero {
    background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('/static/images/home-hero.jpg');
    background-size: cover;
    background-position: center;
    color: white;
    padding: 120px 20px;
    text-align: center;
    border-radius: 12px;
    margin-bottom: 40px;
    position: relative;
}

.home-hero-content {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.home-hero h1 {
    font-size: 3rem;
    margin-bottom: 20px;
    color: white;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.home-hero p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    color: rgba(255, 255, 255, 0.9);
}

.hero-search-container {
    max-width: 600px;
    margin: 30px auto 0;
    background: rgba(255, 255, 255, 0.9);
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
}

.hero-search-form {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.hero-search-input {
    flex: 1;
    min-width: 200px;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
}

.hero-search-button {
    background: #0077cc;
    color: white;
    border: none;
    padding: 12px 25px;
    border-radius: 5px;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.3s ease;
}

.hero-search-button:hover {
    background: #005fa3;
}

/* Property Categories */
.property-categories {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
    margin: 40px 0;
}

.category-item {
    background: white;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    padding: 20px;
    text-align: center;
    width: 150px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.category-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.category-item.active {
    border-color: #0077cc;
    background: rgba(0, 119, 204, 0.05);
}

.category-icon {
    font-size: 2rem;
    color: #0077cc;
    margin-bottom: 10px;
}

.category-name {
    font-weight: 500;
    color: #2c3e50;
}

/* Featured Properties */
.featured-properties {
    margin: 60px 0;
}

.section-title {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 10px;
    color: #2c3e50;
}

.section-subtitle {
    text-align: center;
    color: #666;
    margin-bottom: 40px;
    font-size: 1.1rem;
}

.no-properties {
    text-align: center;
    padding: 30px;
    background: #f8f9fa;
    border-radius: 10px;
    color: #666;
    font-size: 1.1rem;
    margin: 20px auto;
    max-width: 600px;
}

/* Enhanced Property Grid */
.property-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.property-item {
    background: white;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: all 0.3s ease;
    position: relative;
}

.property-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.property-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background: #0077cc;
    color: white;
    padding: 5px 10px;
    border-radius: 5px;
    font-size: 0.8rem;
    font-weight: bold;
    z-index: 1;
}

.property-thumbnail {
    height: 220px;
    overflow: hidden;
    position: relative;
}

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

.property-item:hover .property-thumbnail img {
    transform: scale(1.05);
}

.property-details {
    padding: 20px;
}

.property-details h3 {
    margin: 0 0 10px 0;
    font-size: 1.3rem;
}

.property-details h3 a {
    color: #2c3e50;
    text-decoration: none;
    transition: color 0.3s ease;
}

.property-details h3 a:hover {
    color: #0077cc;
}

.property-meta {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
    color: #666;
    font-size: 0.9rem;
}

.property-location {
    display: flex;
    align-items: center;
    color: #666;
    font-size: 0.95rem;
    margin-bottom: 10px;
}

.property-location i {
    margin-right: 5px;
    color: #0077cc;
}

.property-price {
    font-weight: bold;
    color: #0077cc;
    font-size: 1.3rem;
    margin-bottom: 15px;
}

.property-description {
    color: #555;
    font-size: 0.95rem;
    line-height: 1.5;
    margin-bottom: 20px;
}

.property-actions {
    display: flex;
    gap: 10px;
}

.view-btn, .edit-btn {
    padding: 10px 20px;
    border-radius: 5px;
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    text-align: center;
    transition: all 0.3s ease;
}

.view-btn {
    background: #0077cc;
    color: white;
    flex: 1;
}

.edit-btn {
    background: #f0f0f0;
    color: #333;
}

.view-btn:hover {
    background: #005fa3;
}

.edit-btn:hover {
    background: #e0e0e0;
}

/* Statistics Section */
.statistics-section {
    background: linear-gradient(135deg, #0077cc, #004a80);
    color: white;
    padding: 60px 20px;
    border-radius: 12px;
    margin: 60px 0;
}

.statistics-container {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    max-width: 1000px;
    margin: 0 auto;
}

.statistic-item {
    text-align: center;
    padding: 20px;
    flex: 1;
    min-width: 200px;
}

.statistic-value {
    font-size: 2.5rem;
    font-weight: bold;
    margin-bottom: 10px;
}

.statistic-label {
    font-size: 1.1rem;
    opacity: 0.9;
}

/* Testimonials Section */
.testimonials {
    padding: 60px 20px;
    margin: 40px 0;
}

.testimonial-slider {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    height: 250px;
}

.testimonial-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.testimonial-slide.active {
    opacity: 1;
    z-index: 1;
}

.testimonial-content {
    background: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.testimonial-content p {
    font-style: italic;
    color: #555;
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 20px;
}

.testimonial-author {
    margin-top: 20px;
}

.author-name {
    font-weight: bold;
    color: #2c3e50;
    font-size: 1.1rem;
}

.author-title {
    color: #666;
    font-size: 0.9rem;
}

.testimonial-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 30px;
}

.testimonial-btn {
    background: #0077cc;
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1.2rem;
    transition: background 0.3s ease;
}

.testimonial-btn:hover {
    background: #005fa3;
}

.testimonial-dots {
    display: flex;
    margin: 0 15px;
}

.dot {
    width: 12px;
    height: 12px;
    background: #ddd;
    border-radius: 50%;
    margin: 0 5px;
    cursor: pointer;
    transition: background 0.3s ease;
}

.dot.active {
    background: #0077cc;
}

/* Call to Action Section */
.cta-section {
    background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url('/static/images/cta-bg.jpg');
    background-size: cover;
    background-position: center;
    color: white;
    padding: 80px 20px;
    text-align: center;
    border-radius: 12px;
    margin: 60px 0 40px;
}

.cta-content {
    max-width: 800px;
    margin: 0 auto;
}

.cta-content h2 {
    font-size: 2.2rem;
    margin-bottom: 20px;
    color: white;
}

.cta-content p {
    font-size: 1.1rem;
    margin-bottom: 30px;
    color: rgba(255, 255, 255, 0.9);
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.cta-button {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 30px;
    font-weight: bold;
    text-decoration: none;
    transition: all 0.3s ease;
}

.cta-button.primary {
    background: #0077cc;
    color: white;
    border: 2px solid #0077cc;
}

.cta-button.secondary {
    background: transparent;
    color: white;
    border: 2px solid white;
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.cta-button.primary:hover {
    background: #005fa3;
    border-color: #005fa3;
}

.cta-button.secondary:hover {
    background: rgba(255, 255, 255, 0.1);
}

/* Enhanced Pagination */
.pagination {
    display: flex;
    justify-content: center;
    margin: 40px 0;
    flex-wrap: wrap;
}

.page-link, .current-page, .ellipsis {
    margin: 0 5px;
    padding: 10px 18px;
    border-radius: 5px;
    display: inline-block;
    transition: all 0.3s ease;
}

.page-link {
    background: #f0f0f0;
    color: #333;
    text-decoration: none;
    border: 1px solid #ddd;
}

.page-link:hover {
    background: #e0e0e0;
    transform: translateY(-2px);
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}

.current-page {
    background: #0077cc;
    color: white;
    font-weight: bold;
    border: 1px solid #0077cc;
}

.ellipsis {
    color: #666;
    background: none;
    border: none;
}

/* Database Version Badge */
.db-version {
    display: inline-block;
    background: rgba(46, 125, 50, 0.1);
    color: #2e7d32;
    padding: 8px 15px;
    border-radius: 20px;
    font-weight: bold;
    margin-top: 15px;
    border: 1px solid rgba(46, 125, 50, 0.2);
}

/* Responsive Styles */
@media (max-width: 768px) {
    .home-hero {
        padding: 80px 20px;
    }
    
    .home-hero h1 {
        font-size: 2.2rem;
    }
    
    .hero-search-container {
        padding: 15px;
    }
    
    .hero-search-form {
        flex-direction: column;
    }
    
    .property-grid {
        grid-template-columns: 1fr;
    }
    
    .statistics-container {
        flex-direction: column;
    }
    
    .statistic-item {
        margin-bottom: 20px;
    }
    
    .testimonial-slider {
        height: 300px;
    }
    
    .cta-buttons {
        flex-direction: column;
        gap: 15px;
    }
    
    .cta-button {
        width: 100%;
    }
}