/* ============= VARIABLES & RESET ============= */
:root {
    --primary-color: #1e3a8a;
    --secondary-color: #dc2626;
    --accent-color: #f59e0b;
    --text-color: #1f2937;
    --light-bg: #f9fafb;
    --border-color: #e5e7eb;
    --success-color: #10b981;
    --transition-fast: all 0.2s ease;
    --transition-normal: all 0.3s ease;
    --transition-slow: all 0.5s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: var(--text-color);
    line-height: 1.6;
    background-color: #ffffff;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ============= HEADER ============= */
.header {
    background: linear-gradient(135deg, var(--primary-color) 0%, #2563eb 100%);
    color: white;
    padding: 15px 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 100;
    transition: var(--transition-normal);
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 3px 0;
    margin-right: auto;
    margin-left: -5px;
}

.logo-img {
    height: 65px;
    width: 65px;
    object-fit: contain;
    border-radius: 8px;
    background-color: rgba(255, 255, 255, 0.1);
    padding: 5px;
    flex-shrink: 0;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.logo-img:hover {
    transform: scale(1.1);
    background-color: rgba(255, 255, 255, 0.15);
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.logo-text {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 3px;
    line-height: 1.2;
}

.logo h1 {
    font-size: 28px;
    font-weight: 800;
    margin: 0;
    letter-spacing: -0.3px;
    line-height: 1;
}

.tagline {
    font-size: 12px;
    opacity: 0.9;
    margin: 0;
    font-weight: 400;
}

.nav {
    display: flex;
    gap: 30px;
}

.nav-link {
    color: white;
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition-normal);
    font-size: 14px;
    position: relative;
}

.nav-link:hover,
.nav-link.active {
    opacity: 0.8;
    text-decoration: underline;
}

/* ============= HERO SECTION ============= */
.hero {
    background: linear-gradient(135deg, rgba(30, 58, 138, 0.8) 0%, rgba(220, 38, 38, 0.8) 100%), 
                url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 600"><rect fill="%23f0f0f0" width="1200" height="600"/><circle cx="200" cy="150" r="80" fill="%23e0e0e0"/><circle cx="1000" cy="400" r="100" fill="%23e0e0e0"/></svg>');
    background-size: cover;
    background-position: center;
    padding: 100px 20px;
    text-align: center;
    color: white;
}

.hero-content h2 {
    font-size: 48px;
    margin-bottom: 20px;
    font-weight: 700;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.hero-content p {
    font-size: 20px;
    opacity: 0.95;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
}

/* ============= ADVERTISEMENT BANNER SECTION ============= */
.ad-banner-section {
    padding: 20px 0;
    background-color: #f5f5f5;
}

.ad-carousel {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.ad-slides-container {
    display: flex;
    transition: transform 0.5s ease-in-out;
    position: relative;
    height: 250px;
}

.ad-slide {
    min-width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    position: relative;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
}

.ad-slide.active {
    opacity: 1;
}

.ad-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    max-width: 1000px;
    color: white;
    text-align: left;
}

.ad-text {
    flex: 1;
    padding-right: 40px;
    background: rgba(0, 0, 0, 0.15);
    padding: 20px 30px;
    border-radius: 8px;
    backdrop-filter: blur(5px);
}

.ad-text h3 {
    font-size: 36px;
    margin-bottom: 12px;
    font-weight: 700;
    text-shadow: 3px 3px 6px rgba(0,0,0,0.4);
    color: white;
}

.ad-text p {
    font-size: 16px;
    margin-bottom: 20px;
    opacity: 1;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.4);
    color: rgba(255, 255, 255, 0.98);
}

.ad-cta {
    display: inline-block;
    background-color: rgba(255, 255, 255, 0.3);
    color: white;
    padding: 10px 20px;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid white;
}

.ad-cta:hover {
    background-color: white;
    color: #333;
    transform: translateY(-2px);
}

.ad-icon {
    font-size: 100px;
    flex-shrink: 0;
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
}

/* Navigation Buttons */
.ad-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    padding: 15px 20px;
    cursor: pointer;
    font-size: 24px;
    z-index: 10;
    transition: all 0.3s ease;
    border-radius: 4px;
}

.ad-nav-btn:hover {
    background-color: rgba(0, 0, 0, 0.8);
    padding: 15px 25px;
}

.ad-prev {
    left: 10px;
}

.ad-next {
    right: 10px;
}

/* Dots Indicator */
.ad-dots {
    position: absolute;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 10;
}

.ad-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
}

.ad-dot.active {
    background-color: white;
    transform: scale(1.3);
}

.ad-dot:hover {
    background-color: rgba(255, 255, 255, 0.8);
}

/* ============= SEARCH SECTION ============= */
.search-section {
    background-color: var(--light-bg);
    padding: 40px 0;
    border-bottom: 1px solid var(--border-color);
}

.search-filters {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr auto;
    gap: 15px;
    align-items: center;
}

.search-input,
.filter-select {
    padding: 12px 15px;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-size: 14px;
    transition: all 0.3s ease;
    font-family: inherit;
}

.search-input:focus,
.filter-select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(30, 58, 138, 0.1);
}

.reset-btn {
    padding: 12px 20px;
    background-color: var(--text-color);
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: background-color 0.3s ease;
}

.reset-btn:hover {
    background-color: var(--secondary-color);
}

/* ============= LISTINGS SECTION ============= */
.listings-section {
    padding: 60px 0;
    background-color: #fff;
}

.section-title {
    font-size: 32px;
    color: var(--primary-color);
    margin-bottom: 40px;
    text-align: center;
    font-weight: 700;
}

.listings-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 30px;
}

.property-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    cursor: pointer;
    border: 1px solid var(--border-color);
}

.property-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 12px 24px rgba(0,0,0,0.15);
}

.property-image {
    width: 100%;
    height: 250px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 60px;
    position: relative;
    overflow: hidden;
}

.property-image.terrain {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
}

.property-image.maison {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
}

.property-image.appartement {
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
}

.property-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background-color: var(--accent-color);
    color: white;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
}

.property-content {
    padding: 20px;
}

.property-header {
    display: flex;
    justify-content: space-between;
    align-items: start;
    margin-bottom: 12px;
}

.property-type {
    display: inline-block;
    background-color: rgba(30, 58, 138, 0.1);
    color: var(--primary-color);
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
}

.property-price {
    font-size: 22px;
    font-weight: 700;
    color: var(--secondary-color);
}

.property-location {
    color: #6b7280;
    font-size: 14px;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.property-description {
    font-size: 14px;
    color: #6b7280;
    margin-bottom: 15px;
    line-height: 1.5;
}

.property-details {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    padding-top: 15px;
    border-top: 1px solid var(--border-color);
    margin-bottom: 15px;
}

.detail-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: #6b7280;
}

.detail-icon {
    font-size: 18px;
}

.property-footer {
    display: flex;
    gap: 10px;
}

.btn-view,
.btn-contact {
    flex: 1;
    padding: 10px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    font-size: 13px;
    transition: all 0.3s ease;
}

.btn-view {
    background-color: var(--primary-color);
    color: white;
}

.btn-view:hover {
    background-color: #1e40af;
}

.btn-contact {
    background-color: var(--secondary-color);
    color: white;
}

.btn-contact:hover {
    background-color: #b91c1c;
}

/* ============= CONTACT SECTION ============= */
.contact-section {
    background-color: var(--light-bg);
    padding: 60px 0;
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    margin-top: 40px;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.contact-item {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.contact-icon {
    font-size: 40px;
    flex-shrink: 0;
}

.contact-item h3 {
    margin-bottom: 5px;
    color: var(--primary-color);
}

.contact-item p {
    color: #6b7280;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.contact-form input,
.contact-form textarea {
    padding: 12px 15px;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-family: inherit;
    font-size: 14px;
    transition: all 0.3s ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(30, 58, 138, 0.1);
}

.submit-btn {
    padding: 12px;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    font-size: 16px;
    transition: background-color 0.3s ease;
}

.submit-btn:hover {
    background-color: #1e40af;
}

/* ============= FOOTER ============= */
.footer {
    background-color: var(--primary-color);
    color: white;
    padding: 40px 0;
    text-align: center;
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 25px;
}

.footer p {
    opacity: 0.95;
    margin: 0;
    font-size: 14px;
    line-height: 1.5;
    max-width: 600px;
}

.social-links {
    display: flex;
    gap: 18px;
    justify-content: center;
    align-items: center;
}

.social-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.2);
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.social-btn:hover {
    background-color: rgba(255, 255, 255, 0.3);
    transform: translateY(-4px) scale(1.08);
    border-color: white;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.social-btn.facebook:hover {
    background-color: #1877F2;
    border-color: #1877F2;
    box-shadow: 0 4px 15px rgba(24, 119, 242, 0.4);
}

.social-btn.linkedin:hover {
    background-color: #0A66C2;
    border-color: #0A66C2;
    box-shadow: 0 4px 15px rgba(10, 102, 194, 0.4);
}

.social-btn.whatsapp:hover {
    background-color: #25D366;
    border-color: #25D366;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
}

.social-icon {
    width: 28px;
    height: 28px;
}

/* ============= MODAL ============= */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.modal-content {
    background-color: white;
    margin: 5% auto;
    padding: 30px;
    border-radius: 12px;
    width: 90%;
    max-width: 600px;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 4px 20px rgba(0,0,0,0.3);
}

.close {
    color: var(--text-color);
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s ease;
}

.close:hover {
    color: var(--secondary-color);
}

.modal-detail-item {
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--border-color);
}

.modal-detail-item:last-child {
    border-bottom: none;
}

.modal-detail-item strong {
    color: var(--primary-color);
    display: block;
    margin-bottom: 5px;
}

/* ============= WHATSAPP BUTTON ============= */
.whatsapp-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: auto;
    height: auto;
    padding: 12px 16px;
    background: linear-gradient(135deg, #25d366 0%, #20ba61 100%);
    border-radius: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.4);
    text-decoration: none;
    z-index: 999;
    transition: all 0.3s ease;
    cursor: pointer;
    padding: 0;
    border: none;
}

.whatsapp-btn {
    width: 65px;
    height: 65px;
}

.whatsapp-btn:hover {
    transform: scale(1.12);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.6);
    background: linear-gradient(135deg, #20ba61 0%, #1fa85b 100%);
}

.whatsapp-btn:active {
    transform: scale(0.95);
}

.whatsapp-icon {
    width: 38px;
    height: 38px;
    animation: pulse-whatsapp 2s infinite;
}

.whatsapp-label {
    display: none;
    color: white;
    font-weight: 600;
    font-size: 12px;
}

@keyframes pulse-whatsapp {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.08);
    }
}

/* ============= RESPONSIVE DESIGN ============= */
@keyframes pulse-whatsapp {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7);
    }
    50% {
        box-shadow: 0 0 0 10px rgba(37, 211, 102, 0);
    }
}

/* ============= NEW ANIMATIONS ============= */
@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes glow {
    0%, 100% {
        text-shadow: 0 0 5px rgba(0,0,0,0.3);
    }
    50% {
        text-shadow: 0 0 20px rgba(30, 58, 138, 0.5);
    }
}

/* ============= TABLET & MEDIUM DEVICES ============= */
@media (max-width: 1024px) {
    .container {
        padding: 0 15px;
    }
    
    .listings-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .hero-content h2 {
        font-size: 36px;
    }
}

/* ============= MOBILE DEVICES ============= */
@media (max-width: 768px) {
    .header {
        padding: 10px 0;
    }

    .header .container {
        padding: 0 15px;
        flex-direction: row;
        justify-content: space-between;
        gap: 10px;
    }

    /* WhatsApp Button - Tablet */
    .whatsapp-btn {
        width: 60px;
        height: 60px;
        bottom: 25px;
        right: 25px;
    }

    .whatsapp-icon {
        width: 34px;
        height: 34px;
    }

    .logo {
        gap: 8px;
        padding: 2px 0;
        margin-left: -6px;
    }

    .logo-img {
        height: 55px;
        width: 55px;
        padding: 4px;
        border-radius: 7px;
    }

    .logo h1 {
        font-size: 23px;
    }

    .tagline {
        font-size: 11px;
    }

    .nav {
        gap: 15px;
    }

    .footer {
        padding: 30px 0;
    }

    .footer-content {
        gap: 20px;
    }

    .social-links {
        gap: 15px;
    }

    .social-btn {
        width: 48px;
        height: 48px;
    }

    .social-icon {
        width: 26px;
        height: 26px;
    }

    .hero-content h2 {
        font-size: 32px;
    }

    .hero-content p {
        font-size: 16px;
    }

    .search-filters {
        grid-template-columns: 1fr;
    }

    .listings-grid {
        grid-template-columns: 1fr;
    }

    .contact-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .section-title {
        font-size: 24px;
    }
}

@media (max-width: 480px) {
    .header {
        padding: 8px 0;
    }

    .header .container {
        padding: 0 12px;
        flex-direction: row;
        gap: 8px;
    }

    /* WhatsApp Button - Mobile */
    .whatsapp-btn {
        width: 55px;
        height: 55px;
        bottom: 15px;
        right: 15px;
    }

    .whatsapp-icon {
        width: 30px;
        height: 30px;
    }

    .logo {
        gap: 7px;
        padding: 1px 0;
        margin-left: -4px;
    }

    .logo-img {
        height: 45px;
        width: 45px;
        padding: 3px;
        border-radius: 6px;
    }

    .logo h1 {
        font-size: 20px;
        font-weight: 700;
    }

    .tagline {
        font-size: 10px;
        opacity: 0.8;
    }

    .nav {
        gap: 10px;
        font-size: 12px;
    }

    .footer {
        padding: 25px 0;
    }

    .footer p {
        font-size: 12px;
        max-width: 100%;
    }

    .footer-content {
        gap: 18px;
    }

    .social-links {
        gap: 12px;
    }

    .social-btn {
        width: 44px;
        height: 44px;
    }

    .social-icon {
        width: 24px;
        height: 24px;
    }

    .property-details {
        grid-template-columns: 1fr;
    }

    .modal-content {
        width: 95%;
        margin: 10% auto;
        padding: 20px;
    }
}
