/* Lavender Listings Custom Styles - Enhanced */

:root {
    --primary-color: #9b59b6;
    --primary-dark: #7d3c98;
    --primary-light: #bb8fce;
    --secondary-color: #8e44ad;
    --accent-color: #e74c3c;
    --accent-light: #ec7063;
    --text-color: #2c3e50;
    --text-light: #7f8c8d;
    --bg-color: #ffffff;
    --bg-light: #f8f9fa;
    --bg-gradient-start: #9b59b6;
    --bg-gradient-end: #8e44ad;
    --border-radius: 16px;
    --border-radius-sm: 12px;
    --border-radius-lg: 24px;
    --box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --box-shadow-lg: 0 10px 30px rgba(155, 89, 182, 0.2);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    color: var(--text-color);
    line-height: 1.7;
    background-color: var(--bg-color);
}

/* Smooth edges and modern look */
.btn, .card, .form-control, .navbar, .alert {
    border-radius: var(--border-radius-sm);
    transition: var(--transition);
}

.btn {
    padding: 0.75rem 2rem;
    font-weight: 600;
    box-shadow: var(--box-shadow);
    border: none;
    letter-spacing: 0.5px;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary-color));
    color: white;
}

.card {
    border: none;
    box-shadow: var(--box-shadow);
    margin-bottom: 1.5rem;
    overflow: hidden;
}

.card:hover {
    box-shadow: var(--box-shadow-lg);
    transform: translateY(-4px);
}

/* Hero Section */
.hero-section {
    position: relative;
    overflow: hidden;
    margin-top: -1rem;
    margin-bottom: 4rem;
}

.hero-gradient {
    background: linear-gradient(135deg, var(--bg-gradient-start) 0%, var(--bg-gradient-end) 100%);
    padding: 5rem 0;
    position: relative;
}

.hero-gradient::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><defs><pattern id="grid" width="100" height="100" patternUnits="userSpaceOnUse"><path d="M 100 0 L 0 0 0 100" fill="none" stroke="rgba(255,255,255,0.05)" stroke-width="1"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
    opacity: 0.3;
}

.hero-gradient .container {
    position: relative;
    z-index: 1;
}

.min-vh-50 {
    min-height: 60vh;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    color: white;
    margin-bottom: 1.5rem;
    line-height: 1.2;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.hero-subtitle {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.95);
    margin-bottom: 2rem;
    line-height: 1.6;
}

.hero-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.btn-hero-primary {
    background: white;
    color: var(--primary-color);
    font-weight: 700;
    padding: 1rem 2.5rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.btn-hero-primary:hover {
    background: #f8f9fa;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.btn-hero-outline {
    background: transparent;
    border: 2px solid white;
    color: white;
    font-weight: 700;
    padding: 1rem 2.5rem;
}

.btn-hero-outline:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: white;
    color: white;
    transform: translateY(-3px);
}

.hero-stats {
    display: flex;
    justify-content: space-around;
    gap: 2rem;
    flex-wrap: wrap;
}

.stat-item {
    text-align: center;
    color: white;
}

.stat-number {
    font-size: 3rem;
    font-weight: 800;
    line-height: 1;
    margin-bottom: 0.5rem;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.stat-label {
    font-size: 1rem;
    opacity: 0.9;
    font-weight: 500;
}

/* Features Section */
.features-section {
    background: var(--bg-color);
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-color);
    margin-bottom: 1rem;
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--text-light);
    margin-bottom: 3rem;
}

.feature-card {
    text-align: center;
    padding: 2.5rem 1.5rem;
    background: white;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    transition: var(--transition);
    height: 100%;
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--box-shadow-lg);
}

.feature-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: white;
    box-shadow: 0 4px 15px rgba(155, 89, 182, 0.3);
}

.feature-card h4 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-color);
    margin-bottom: 1rem;
}

.feature-card p {
    color: var(--text-light);
    line-height: 1.7;
}

/* Listings Section */
.listings-section {
    background: var(--bg-light);
}

.listing-card-modern {
    background: white;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.listing-card-modern:hover {
    transform: translateY(-8px);
    box-shadow: var(--box-shadow-lg);
}

.listing-image-wrapper {
    position: relative;
    overflow: hidden;
    height: 220px;
}

.listing-image-modern {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.listing-card-modern:hover .listing-image-modern {
    transform: scale(1.1);
}

.listing-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: linear-gradient(135deg, var(--accent-color), var(--accent-light));
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 600;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.listing-card-body {
    padding: 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.listing-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-color);
    margin-bottom: 0.75rem;
}

.listing-description {
    color: var(--text-light);
    margin-bottom: 1rem;
    flex-grow: 1;
    line-height: 1.6;
}

.listing-meta {
    margin-bottom: 1rem;
}

.listing-location {
    color: var(--text-light);
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-listing-link {
    background: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    padding: 0.5rem 1.5rem;
    font-weight: 600;
    width: 100%;
    text-align: center;
}

.btn-listing-link:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-2px);
}

/* Categories Section */
.categories-section {
    background: white;
}

.category-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem 1rem;
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    border-radius: var(--border-radius);
    text-decoration: none;
    color: var(--text-color);
    transition: var(--transition);
    min-height: 150px;
    border: 2px solid transparent;
}

.category-card:hover {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    transform: translateY(-5px);
    box-shadow: var(--box-shadow-lg);
    border-color: var(--primary-color);
    text-decoration: none;
}

.category-card i {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    transition: var(--transition);
}

.category-card:hover i {
    transform: scale(1.2);
}

.category-card span {
    font-weight: 600;
    font-size: 1.1rem;
}

/* CTA Section */
.cta-section {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    margin: 4rem 0;
}

.cta-box {
    background: white;
    border-radius: var(--border-radius-lg);
    padding: 3rem;
    box-shadow: var(--box-shadow-lg);
}

.cta-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-color);
    margin-bottom: 1rem;
}

.cta-text {
    font-size: 1.1rem;
    color: var(--text-light);
    margin-bottom: 0;
}

.btn-cta {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    font-weight: 700;
    padding: 1rem 2.5rem;
    box-shadow: 0 4px 15px rgba(155, 89, 182, 0.3);
}

.btn-cta:hover {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary-color));
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(155, 89, 182, 0.4);
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 4rem 2rem;
    color: var(--text-light);
}

.empty-state i {
    font-size: 4rem;
    color: var(--primary-light);
    margin-bottom: 1.5rem;
}

.empty-state h4 {
    color: var(--text-color);
    margin-bottom: 1rem;
}

/* Header Ads */
.header-ads {
    background: var(--bg-light);
    padding: 1rem;
    text-align: center;
    border-bottom: 1px solid #dee2e6;
}

.header-ads img {
    max-height: 80px;
    border-radius: var(--border-radius-sm);
}

/* Footer Ads */
.footer-ads {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
}

.footer-ads img {
    max-height: 60px;
    border-radius: var(--border-radius-sm);
}

/* Listing Cards (Legacy) */
.listing-card {
    transition: var(--transition);
}

.listing-card:hover {
    transform: translateY(-5px);
}

.listing-image {
    width: 100%;
    height: 250px;
    object-fit: cover;
    object-position: center;
    border-radius: var(--border-radius-sm) var(--border-radius-sm) 0 0;
    background-color: var(--bg-light);
}

.listing-image-wrapper {
    width: 100%;
    height: 250px;
    overflow: hidden;
    background-color: var(--bg-light);
    border-radius: var(--border-radius-sm) var(--border-radius-sm) 0 0;
}

.listing-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

/* Tag Badges */
.tag-badge {
    display: inline-block;
    padding: 0.375rem 0.875rem;
    margin: 0.25rem;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 500;
    text-decoration: none;
    transition: var(--transition);
}

.tag-badge:hover {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary-color));
    color: white;
    text-decoration: none;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(155, 89, 182, 0.3);
}

/* Rating Stars */
.rating {
    color: #ffc107;
    font-size: 1.1rem;
}

/* Sidebar */
.sidebar {
    background: var(--bg-light);
    padding: 2rem;
    border-radius: var(--border-radius);
    margin-bottom: 2rem;
    box-shadow: var(--box-shadow);
}

.sidebar h3 {
    font-weight: 700;
    color: var(--text-color);
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--primary-light);
}

.sidebar ul li {
    margin-bottom: 0.75rem;
}

.sidebar ul li a {
    color: var(--text-color);
    text-decoration: none;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.sidebar ul li a:hover {
    color: var(--primary-color);
    padding-left: 0.5rem;
}

.sidebar ul li a::before {
    content: '→';
    opacity: 0;
    transition: var(--transition);
}

.sidebar ul li a:hover::before {
    opacity: 1;
}

/* Advertisement between listings */
.listing-ad {
    text-align: center;
    padding: 2rem;
    margin: 2rem 0;
    background: var(--bg-light);
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}

/* Form styles */
.form-control {
    border: 2px solid #e9ecef;
    padding: 0.75rem 1rem;
    transition: var(--transition);
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(155, 89, 182, 0.25);
    outline: none;
}

.form-label {
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 0.5rem;
}

/* Navigation */
.navbar {
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 1rem 0;
}

.navbar-brand {
    font-weight: 800;
    font-size: 1.5rem;
    color: var(--primary-color) !important;
    letter-spacing: -0.5px;
}

.nav-link {
    font-weight: 600;
    color: var(--text-color) !important;
    transition: var(--transition);
    padding: 0.5rem 1rem !important;
    border-radius: var(--border-radius-sm);
}

.nav-link:hover {
    color: var(--primary-color) !important;
    background: rgba(155, 89, 182, 0.1);
}

/* Utilities */
.text-primary-custom {
    color: var(--primary-color);
}

.bg-primary-custom {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
}

/* Responsive */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .hero-buttons {
        flex-direction: column;
    }
    
    .btn-hero-primary,
    .btn-hero-outline {
        width: 100%;
    }
    
    .footer-ads {
        flex-direction: column;
        align-items: center;
    }
    
    .stat-number {
        font-size: 2rem;
    }
    
    .cta-box {
        padding: 2rem 1.5rem;
    }
    
    .cta-title {
        font-size: 1.5rem;
    }
}

/* Loading states */
.loading {
    opacity: 0.6;
    pointer-events: none;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.feature-card,
.listing-card-modern,
.category-card {
    animation: fadeInUp 0.6s ease-out;
}

/* Main Content */
.main-content {
    padding: 0;
    margin: 0;
}

.main-content > .container {
    padding-top: 2rem;
    padding-bottom: 2rem;
}
