/* Base Styles */
:root {
    --primary-color: #1976D2;
    --primary-dark: #0D47A1;
    --primary-light: #BBDEFB;
    --secondary-color: #FFA000;
    --secondary-dark: #FF8F00;
    --secondary-light: #FFE082;
    --success-color: #4CAF50;
    --error-color: #F44336;
    --text-primary: #212121;
    --text-secondary: #757575;
    --text-light: #FAFAFA;
    --border-color: #E0E0E0;
    --card-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    --transition-speed: 0.3s;
}

body {
    font-family: 'Inter', sans-serif;
    color: var(--text-primary);
    line-height: 1.6;
    background-color: #FAFAFA;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color var(--transition-speed) ease;
}

a:hover {
    color: var(--primary-dark);
}

.btn {
    border-radius: 6px;
    padding: 0.6rem 1.5rem;
    font-weight: 500;
    transition: all var(--transition-speed) ease;
}

.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    border-color: var(--primary-dark);
}

.btn-outline-primary {
    color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-outline-primary:hover {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

/* Header */
.site-header {
    background-color: white;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar {
    padding: 1rem 0;
}

.navbar-brand {
    display: flex;
    align-items: center;
}

.logo {
    height: 40px;
}

.nav-link {
    font-weight: 500;
    color: var(--text-primary);
    margin: 0 0.5rem;
    position: relative;
}

.nav-link:after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    bottom: -4px;
    left: 0;
    transition: width var(--transition-speed) ease;
}

.nav-link:hover:after, 
.nav-link.active:after {
    width: 100%;
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, #0D47A1 0%, #42A5F5 100%);
    color: white;
    padding: 5rem 0 4rem;
    position: relative;
    overflow: hidden;
}

.hero-bg-shapes {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    opacity: 0.1;
    pointer-events: none;
}

.hero-section > .container {
    position: relative;
    z-index: 1;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.hero-title .highlight {
    color: var(--secondary-color);
}

.hero-subtitle {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.search-box {
    max-width: 700px;
    margin: 0 auto 2rem;
}

.search-form .input-group {
    border-radius: 50px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.search-form .form-control {
    border: none;
    padding: 0.8rem 1.5rem;
    font-size: 1rem;
}

.search-form .form-control:focus {
    box-shadow: none;
}

.search-btn {
    padding: 0.8rem 1.8rem;
    border-radius: 0 50px 50px 0;
    font-weight: 500;
}

.advanced-search-link {
    display: block;
    color: white;
    margin-top: 0.75rem;
    font-size: 0.9rem;
    opacity: 0.8;
    text-align: right;
    padding-right: 0.5rem;
}

.advanced-search-link:hover {
    opacity: 1;
    color: white;
}

.hero-actions {
    margin-bottom: 2.5rem;
}

.action-card {
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 1rem 0.75rem;
    text-align: center;
    transition: transform 0.3s ease, background-color 0.3s ease;
    display: block;
    color: white;
}

.action-card:hover {
    background-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-5px);
    color: white;
}

.action-icon {
    font-size: 1.5rem;
    width: 50px;
    height: 50px;
    line-height: 50px;
    margin: 0 auto 0.5rem;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.15);
}

.sell-icon { background-color: rgba(244, 67, 54, 0.15); }
.buy-icon { background-color: rgba(76, 175, 80, 0.15); }
.rent-out-icon { background-color: rgba(255, 152, 0, 0.15); }
.rent-icon { background-color: rgba(33, 150, 243, 0.15); }
.partner-icon { background-color: rgba(156, 39, 176, 0.15); }
.franchise-icon { background-color: rgba(121, 85, 72, 0.15); }

.action-title {
    font-size: 0.9rem;
    font-weight: 500;
}

.hero-counter {
    display: flex;
    justify-content: center;
    gap: 2.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 1.5rem;
}

.counter-item {
    text-align: center;
}

.counter-number {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--secondary-color);
}

.counter-label {
    font-size: 0.9rem;
    opacity: 0.8;
}

/* Category Filter */
.category-filter {
    background-color: white;
    border-bottom: 1px solid var(--border-color);
}

.filter-scrollable {
    position: relative;
}

.filter-scrollable:after,
.filter-scrollable:before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    width: 50px;
    z-index: 2;
    pointer-events: none;
}

.filter-scrollable:before {
    left: 0;
    background: linear-gradient(to right, white, transparent);
}

.filter-scrollable:after {
    right: 0;
    background: linear-gradient(to left, white, transparent);
}

.filter-pill {
    white-space: nowrap;
    padding: 0.5rem 1.25rem;
    margin-right: 0.75rem;
    background-color: #f5f5f5;
    border-radius: 50px;
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 500;
    transition: all var(--transition-speed) ease;
}

.filter-pill:hover, 
.filter-pill.active {
    background-color: var(--primary-color);
    color: white;
}

/* Listings Section */
.section-title {
    font-size: 1.75rem;
    font-weight: 600;
    margin: 0;
}

.view-all-link {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--primary-color);
}

.listing-card {
    border-radius: 10px;
    overflow: hidden;
    border: none;
    box-shadow: var(--card-shadow);
    transition: transform var(--transition-speed) ease, box-shadow var(--transition-speed) ease;
}

.listing-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
}

.card-img-top-wrapper {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.card-img-top {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-speed) ease;
}

.listing-card:hover .card-img-top {
    transform: scale(1.05);
}

.listing-badges {
    position: absolute;
    top: 15px;
    right: 15px;
    display: flex;
    flex-direction: column;
    gap: 5px;
    align-items: flex-end;
}

.listing-category {
    font-size: 0.85rem;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.card-title {
    font-weight: 600;
    font-size: 1.2rem;
    margin-bottom: 0.75rem;
    line-height: 1.3;
}

.listing-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 1rem;
}

.listing-tag {
    background-color: #f5f5f5;
    padding: 0.3rem 0.75rem;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--text-secondary);
}

.listing-price {
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--primary-color);
}

.card-footer {
    background-color: transparent;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    position: relative;
}

/* Articles Section */
.article-card .card-img-top {
    height: 180px;
}

.article-date {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 0.75rem;
}

.read-more {
    font-weight: 500;
    font-size: 0.9rem;
}

.slider-controls {
    user-select: none;
}

.dot {
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: #ddd;
    margin: 0 5px;
    cursor: pointer;
    transition: background-color var(--transition-speed) ease;
}

.dot.active {
    background-color: var(--primary-color);
}

/* CTA Section */
.cta-section {
    background-color: #f5f5f5;
}

.cta-card {
    background: linear-gradient(135deg, #0D47A1 0%, #1976D2 100%);
    border-radius: 16px;
    padding: 3rem 2rem;
    color: white;
    box-shadow: 0 10px 30px rgba(25, 118, 210, 0.2);
}

.cta-card h2 {
    font-weight: 700;
}

.cta-card .lead {
    opacity: 0.9;
}

/* Footer */
.footer {
    background-color: #222;
    color: #ddd;
    padding: 4rem 0 2rem;
}

.footer-logo {
    height: 40px;
}

.footer h5 {
    color: white;
    font-weight: 600;
    margin-bottom: 1.25rem;
    font-size: 1.1rem;
}

.footer-links li, 
.contact-info li {
    margin-bottom: 0.75rem;
}

.footer-links a, 
.contact-info a {
    color: #bbb;
    transition: color var(--transition-speed) ease;
}

.footer-links a:hover, 
.contact-info a:hover {
    color: white;
}

.contact-info i {
    width: 20px;
    margin-right: 8px;
    color: var(--primary-color);
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1);
    color: white;
    transition: background-color var(--transition-speed) ease;
}

.social-link:hover {
    background-color: var(--primary-color);
    color: white;
}

.footer hr {
    border-color: rgba(255, 255, 255, 0.1);
    margin: 2rem 0;
}

.copyright {
    font-size: 0.9rem;
    color: #aaa;
    margin-bottom: 0;
}

.footer-legal {
    font-size: 0.9rem;
}

.footer-legal a {
    color: #aaa;
    margin-left: 1.5rem;
}

/* Cookie Consent */
.cookie-consent {
    position: fixed;
    bottom: -100px;
    left: 0;
    right: 0;
    background-color: white;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
    padding: 1rem 0;
    z-index: 9999;
    transition: bottom 0.5s ease;
}

.cookie-consent.show {
    bottom: 0;
}

.cookie-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
}

.cookie-content p {
    margin: 0;
    font-size: 0.9rem;
    flex: 1;
}

/* Responsive Adjustments */
@media (max-width: 991px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-counter {
        gap: 1.5rem;
    }
    
    .counter-number {
        font-size: 1.5rem;
    }
    
    .cookie-content {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .cookie-buttons {
        align-self: flex-end;
    }
}

@media (max-width: 767px) {
    .hero-section {
        padding: 3rem 0 2rem;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-counter {
        flex-direction: column;
        gap: 1rem;
    }
    
    .section-title {
        font-size: 1.5rem;
    }
    
    .footer {
        padding: 3rem 0 1.5rem;
    }
}

@media (max-width: 575px) {
    .action-card {
        padding: 0.75rem 0.5rem;
    }
    
    .action-icon {
        width: 40px;
        height: 40px;
        line-height: 40px;
        font-size: 1.25rem;
    }
    
    .action-title {
        font-size: 0.8rem;
    }
    
    .footer-legal a {
        margin-left: 1rem;
    }
}