/* STYLES POUR LA PAGE IMMOBILIER */

/* Hero Section */
.hero-section {
    position: relative;
    min-height: 400px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1440 320"><path fill="rgba(255,255,255,0.1)" fill-opacity="1" d="M0,96L48,112C96,128,192,160,288,160C384,160,480,128,576,122.7C672,117,768,139,864,144C960,149,1056,139,1152,128C1248,117,1344,107,1392,101.3L1440,96L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z"></path></svg>') no-repeat bottom;
    background-size: cover;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: #fff;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 20px;
    text-shadow: 0 2px 10px rgba(0,0,0,0.3);
    animation: slideInDown 0.8s ease-out;
}

.hero-title-ar {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 20px;
    text-shadow: 0 2px 10px rgba(0,0,0,0.3);
    animation: slideInDown 0.8s ease-out;
    direction: rtl;
    font-family: 'Arial', 'Segoe UI', sans-serif;
}

.hero-subtitle {
    font-size: 1.3rem;
    margin-bottom: 0;
    opacity: 0.95;
    animation: slideInUp 0.8s ease-out;
    color: #fff;
}

.hero-subtitle-ar {
    font-size: 1.3rem;
    margin-top: 15px;
    margin-bottom: 0;
    opacity: 0.95;
    animation: slideInUp 0.8s ease-out;
    direction: rtl;
    font-family: 'Arial', 'Segoe UI', sans-serif;
    color: #fff;
}

/* Search Filters */
.search-filters {
    background: linear-gradient(135deg, #f8f9fa 0%, #f3f4f6 100%);
    padding: 40px;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    border: 1px solid #e5e7eb;
}

.filter-title {
    font-size: 1.5rem;
    font-weight: 800;
    color: #1e293b;
    margin-bottom: 25px;
    display: flex;
    align-items: center;
}

.filter-title i {
    color: #2563eb;
}

.filter-label {
    display: block;
    font-weight: 700;
    color: #475569;
    font-size: 0.95rem;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.filter-label i {
    color: #2563eb;
    margin-right: 6px;
    font-size: 0.9rem;
}

.search-input {
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    padding: 14px 18px;
    font-size: 1rem;
    transition: all 0.3s cubic-bezier(.4,0,.2,1);
    background: #fff;
    color: #1e293b;
    font-weight: 500;
}

.search-input:focus {
    border-color: #2563eb;
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.1);
    background: #fff;
    color: #1e293b;
    outline: none;
}

.search-input::placeholder {
    color: #94a3b8;
}

.search-input option {
    color: #1e293b;
    background: #fff;
    padding: 10px;
}

.btn-search {
    background: linear-gradient(135deg, #2563eb, #06b6d4);
    color: #fff;
    border: none;
    border-radius: 12px;
    font-weight: 700;
    padding: 14px 28px;
    font-size: 1.05rem;
    transition: all 0.3s cubic-bezier(.4,0,.2,1);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    height: 52px;
}

.btn-search:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 28px rgba(37, 99, 235, 0.35);
    color: #fff;
}

.btn-search:active {
    transform: translateY(-1px);
}

/* Properties Grid */
.properties-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 60px;
}

/* Property Card */
.property-card {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(0,0,0,0.08);
    transition: all 0.3s cubic-bezier(.4,0,.2,1);
}

.property-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 32px rgba(0,0,0,0.15);
}

.property-image {
    position: relative;
    height: 240px;
    overflow: hidden;
    background: #e0e0e0;
}

.property-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.4s ease;
}

.property-card:hover .property-image img {
    transform: scale(1.1);
}

.property-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: linear-gradient(135deg, #2563eb, #06b6d4);
    color: #fff;
    padding: 8px 16px;
    border-radius: 24px;
    font-weight: 700;
    font-size: 0.75rem;
    text-transform: uppercase;
    z-index: 2;
}

.property-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 1;
}

.property-card:hover .property-overlay {
    opacity: 1;
}

.btn-details {
    background: linear-gradient(135deg, #2563eb, #06b6d4);
    color: #fff;
    border: none;
    padding: 12px 28px;
    border-radius: 24px;
    font-weight: 700;
    transition: all 0.3s ease;
}

.btn-details:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 20px rgba(0,0,0,0.3);
}

/* Property Content */
.property-content {
    padding: 25px;
}

.property-title {
    font-size: 1.2rem;
    font-weight: 800;
    color: #1e293b;
    margin-bottom: 12px;
    line-height: 1.3;
}

.property-location {
    color: #64748b;
    font-size: 0.95rem;
    margin-bottom: 15px;
}

.property-specs {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    padding: 15px 0;
    border-top: 1px solid #e2e8f0;
    border-bottom: 1px solid #e2e8f0;
    margin-bottom: 15px;
}

.property-specs span {
    flex: 1;
    min-width: 80px;
    color: #475569;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
}

.property-specs i {
    color: #2563eb;
    margin-right: 6px;
}

/* Property Footer */
.property-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 15px;
}

.property-price {
    font-size: 1.8rem;
    font-weight: 800;
    color: #2563eb;
    margin: 0;
}

.property-price span {
    font-size: 0.85rem;
    color: #64748b;
}

.btn-contact-small {
    background: linear-gradient(135deg, #2563eb, #06b6d4);
    color: #fff;
    border: none;
    padding: 10px 16px;
    border-radius: 20px;
    font-weight: 700;
    font-size: 0.85rem;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.btn-contact-small:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(37, 99, 235, 0.3);
    color: #fff;
}

/* No Results Message */
.no-results-message {
    grid-column: 1 / -1;
    background: #f8f9fa;
    border-radius: 16px;
    border: 2px dashed #cbd5e1;
    padding: 60px 20px;
    animation: slideInUp 0.5s ease-out;
}

.no-results-message h4 {
    font-weight: 800;
    font-size: 1.5rem;
    margin-top: 15px;
}

/* Pagination Styles */
.pagination-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    margin-top: 60px;
    margin-bottom: 40px;
}

.pagination-list {
    display: flex;
    list-style: none;
    padding: 0;
    margin: 0;
    gap: 8px;
    align-items: center;
    flex-wrap: wrap;
    justify-content: center;
}

.pagination-numbers {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: center;
}

.pagination-btn {
    background: linear-gradient(135deg, #2563eb, #06b6d4);
    color: #fff;
    border: none;
    padding: 12px 20px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(.4,0,.2,1);
    display: flex;
    align-items: center;
    white-space: nowrap;
}

.pagination-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(37, 99, 235, 0.3);
}

.pagination-btn:active {
    transform: translateY(0);
}

.pagination-btn:disabled {
    background: #cbd5e1;
    color: #94a3b8;
    cursor: not-allowed;
    transform: none;
}

.pagination-number {
    background: #f1f5f9;
    color: #1e293b;
    border: 2px solid #e2e8f0;
    padding: 10px 16px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(.4,0,.2,1);
    min-width: 45px;
    text-align: center;
}

.pagination-number:hover {
    border-color: #2563eb;
    color: #2563eb;
}

.pagination-number.active {
    background: linear-gradient(135deg, #2563eb, #06b6d4);
    color: #fff;
    border-color: transparent;
}

.pagination-info {
    color: #64748b;
    font-size: 0.95rem;
    font-weight: 600;
    margin: 0;
}

/* Modal Styles */
.modal-content {
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}

#propertyCarousel {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 400px;
}

.carousel-inner {
    height: 400px;
}

.carousel-item {
    height: 100%;
}

.carousel-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.carousel-control-prev,
.carousel-control-next {
    width: 50px;
    height: 50px;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(37, 99, 235, 0.7);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.carousel-control-prev:hover,
.carousel-control-next:hover {
    background: rgba(37, 99, 235, 0.9);
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
    filter: brightness(0) invert(1);
    width: 20px;
    height: 20px;
}

.modal-body {
    padding: 30px;
    background: #f8f9fa;
}

.property-modal-title {
    font-size: 1.8rem;
    font-weight: 800;
    color: #1e293b;
    margin-bottom: 25px;
}

.spec-box {
    background: #fff;
    padding: 20px;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    border: 1px solid #e2e8f0;
}

.spec-box i {
    font-size: 2rem;
    color: #2563eb;
    margin-bottom: 10px;
}

.spec-label {
    color: #64748b;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 700;
    margin: 10px 0 8px 0;
}

.spec-value {
    font-size: 1.5rem;
    font-weight: 800;
    color: #1e293b;
    margin: 0;
}

.spec-value span {
    font-size: 0.8rem;
    color: #64748b;
}

.price-box {
    background: linear-gradient(135deg, #2563eb15 0%, #06b6d415 100%);
    padding: 20px;
    border-radius: 12px;
    border-left: 4px solid #2563eb;
}

.price-box h3 {
    margin: 0;
    font-weight: 800;
}

.description-box {
    background: #fff;
    padding: 20px;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
}

.modal-footer {
    background: #f8f9fa;
    padding: 20px;
    gap: 10px;
}

.modal-footer .btn {
    padding: 12px 24px;
    font-weight: 700;
    border-radius: 8px;
}

.btn-close-white {
    filter: brightness(0) invert(1);
}

/* Pagination Responsive */
@media (max-width: 768px) {
    .pagination-list {
        gap: 6px;
    }

    .pagination-btn {
        padding: 10px 16px;
        font-size: 0.85rem;
    }

    .pagination-number {
        padding: 8px 12px;
        font-size: 0.85rem;
        min-width: 40px;
    }

    .pagination-info {
        font-size: 0.85rem;
    }
}

@media (max-width: 480px) {
    .pagination-list {
        gap: 4px;
    }

    .pagination-btn {
        padding: 8px 12px;
        font-size: 0.75rem;
    }

    .pagination-number {
        padding: 6px 10px;
        font-size: 0.75rem;
        min-width: 35px;
    }

    .pagination-info {
        font-size: 0.8rem;
    }

    .pagination-numbers {
        max-width: 100%;
        gap: 4px;
    }
}

/* CTA Section */
.cta-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 80px 20px;
    color: #fff;
    text-align: center;
}

.cta-content h2 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 20px;
}

.cta-content p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    opacity: 0.95;
}

.btn-cta {
    background: #fff;
    color: #2563eb;
    border: none;
    padding: 14px 36px;
    border-radius: 28px;
    font-weight: 700;
    font-size: 1.05rem;
    transition: all 0.3s ease;
    display: inline-block;
}

.btn-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.2);
    color: #2563eb;
}

/* Animations */
@keyframes slideInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes fadeOutScale {
    from {
        opacity: 1;
        transform: scale(1);
    }
    to {
        opacity: 0;
        transform: scale(0.95);
    }
}

/* Responsive */
@media (max-width: 768px) {
    .search-filters {
        padding: 25px;
    }

    .filter-title {
        font-size: 1.3rem;
    }

    .search-input {
        padding: 12px 16px;
        font-size: 0.95rem;
    }

    .btn-search {
        padding: 12px 16px;
        font-size: 0.95rem;
        height: 48px;
    }

    .properties-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .no-results-message {
        grid-column: 1 / -1;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-title-ar {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 1.1rem;
    }

    .hero-subtitle-ar {
        font-size: 1.1rem;
    }

    .search-filters {
        padding: 20px;
    }

    .properties-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .property-price {
        font-size: 1.4rem;
    }

    .cta-content h2 {
        font-size: 1.8rem;
    }

    .cta-content p {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .search-filters {
        padding: 20px;
    }

    .filter-title {
        font-size: 1.1rem;
    }

    .filter-label {
        font-size: 0.85rem;
    }

    .search-input {
        padding: 10px 14px;
        font-size: 0.9rem;
    }

    .btn-search {
        padding: 10px 14px;
        font-size: 0.9rem;
        height: 44px;
    }

    .properties-grid {
        grid-template-columns: 1fr;
    }

    .no-results-message {
        grid-column: 1 / -1;
    }

    .hero-title {
        font-size: 1.8rem;
    }

    .hero-title-ar {
        font-size: 1.8rem;
    }

    .properties-grid {
        gap: 15px;
    }

    .property-card {
        border-radius: 12px;
    }

    .property-footer {
        flex-direction: column;
        gap: 10px;
    }

    .btn-contact-small {
        width: 100%;
    }
}
