/* Styles pour la page de recherche */

/* Hero Section */
.search-hero {
    height: 40vh;
    background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url('../images/search-hero.jpg') center/cover no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--white);
    margin-top: 80px;
    position: relative;
    overflow: hidden;
}

.search-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, rgba(212, 175, 55, 0.3), transparent);
    z-index: 1;
}

.search-hero-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 2;
    animation: fadeIn 1s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.search-hero h1 {
    font-size: 3rem;
    color: var(--gold-primary);
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.search-hero p {
    font-size: 1.2rem;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

/* Search Section */
.search-section {
    padding: 60px 0;
    background-color: var(--white);
    position: relative;
}

.search-section::before {
    content: '';
    position: absolute;
    top: -50px;
    left: 0;
    width: 100%;
    height: 50px;
    background: linear-gradient(to bottom right, var(--white) 0%, var(--white) 50%, transparent 50%, transparent 100%);
    z-index: 1;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Search Filters */
.search-filters {
    background-color: var(--off-white);
    padding: 30px;
    border-radius: 15px;
    margin-bottom: 40px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(212, 175, 55, 0.1);
    transition: all 0.3s ease;
}

.search-filters:hover {
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.12);
    transform: translateY(-5px);
}

.search-filters h2 {
    margin-bottom: 30px;
    text-align: left;
    position: relative;
    padding-bottom: 10px;
}

.search-filters h2::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 50px;
    height: 3px;
    background-color: var(--gold-primary);
    transform: none;
}

.filter-group {
    margin-bottom: 30px;
    padding-bottom: 30px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.filter-group:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.filter-row {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 20px;
}

.filter-row:last-child {
    margin-bottom: 0;
}

.filter-column {
    flex: 1;
    min-width: 200px;
}

.filter-column label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--dark-gray);
    transition: color 0.3s ease;
}

.filter-column:hover label {
    color: var(--gold-primary);
}

.filter-column select,
.filter-column input[type="text"],
.filter-column input[type="number"] {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background-color: var(--white);
}

.filter-column select:focus,
.filter-column input[type="text"]:focus,
.filter-column input[type="number"]:focus {
    border-color: var(--gold-primary);
    outline: none;
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.2);
}

/* Range slider styling */
input[type="range"] {
    -webkit-appearance: none;
    width: 100%;
    height: 5px;
    border-radius: 5px;
    background: #ddd;
    outline: none;
    margin: 15px 0;
}

input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--gold-primary);
    cursor: pointer;
    border: 2px solid var(--white);
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.2);
}

input[type="range"]::-moz-range-thumb {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--gold-primary);
    cursor: pointer;
    border: 2px solid var(--white);
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.2);
}

.range-values {
    display: flex;
    justify-content: space-between;
    font-size: 0.9rem;
    color: var(--light-gray);
    margin-top: 5px;
}

/* Amenities Section */
.amenities h3 {
    margin-bottom: 20px;
    color: var(--dark-gray);
    font-size: 1.2rem;
}

.amenities-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 15px;
}

.amenity-checkbox {
    display: flex;
    align-items: center;
    padding: 8px 12px;
    background-color: var(--white);
    border-radius: 8px;
    transition: all 0.3s ease;
}

.amenity-checkbox:hover {
    background-color: rgba(212, 175, 55, 0.05);
}

.amenity-checkbox input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin-right: 10px;
    accent-color: var(--gold-primary);
    cursor: pointer;
}

.amenity-checkbox label {
    cursor: pointer;
    flex: 1;
}

/* Search Buttons */
.search-buttons {
    display: flex;
    gap: 15px;
    margin-top: 30px;
    justify-content: center;
}

.btn {
    display: inline-block;
    background-color: var(--gold-primary);
    color: var(--black);
    padding: 12px 30px;
    border-radius: 8px;
    font-weight: bold;
    text-transform: uppercase;
    transition: all 0.3s ease;
    border: 2px solid var(--gold-primary);
    cursor: pointer;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.2);
    transition: all 0.4s ease;
    z-index: -1;
}

.btn:hover::before {
    left: 0;
}

.btn:hover {
    background-color: transparent;
    color: var(--gold-primary);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(212, 175, 55, 0.3);
}

.btn-secondary {
    background-color: transparent;
    color: var(--dark-gray);
    padding: 12px 30px;
    border-radius: 8px;
    font-weight: bold;
    text-transform: uppercase;
    transition: all 0.3s ease;
    border: 2px solid var(--dark-gray);
    cursor: pointer;
}

.btn-secondary:hover {
    background-color: var(--dark-gray);
    color: var(--white);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* Search Results */
.search-results {
    margin-top: 50px;
    position: relative;
}

.search-results.loading::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.8);
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
}

.search-results.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 50px;
    height: 50px;
    border: 5px solid #f3f3f3;
    border-top: 5px solid var(--gold-primary);
    border-radius: 50%;
    animation: spin 2s linear infinite;
    z-index: 11;
}

@keyframes spin {
    0% { transform: translate(-50%, -50%) rotate(0deg); }
    100% { transform: translate(-50%, -50%) rotate(360deg); }
}

.results-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    flex-wrap: wrap;
    gap: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.results-header h2 {
    margin-bottom: 0;
    text-align: left;
    font-size: 1.8rem;
    position: relative;
    display: inline-block;
}

.results-header h2::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--gold-primary);
    transition: width 0.3s ease;
}

.results-header h2:hover::after {
    width: 100%;
}

.results-controls {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.results-count {
    font-weight: 600;
    color: var(--dark-gray);
    background-color: rgba(212, 175, 55, 0.1);
    padding: 5px 15px;
    border-radius: 20px;
}

.results-sort {
    display: flex;
    align-items: center;
    gap: 10px;
}

.results-sort label {
    font-weight: 600;
    color: var(--dark-gray);
}

.results-sort select {
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 8px;
    transition: all 0.3s ease;
    background-color: var(--white);
}

.results-sort select:focus {
    border-color: var(--gold-primary);
    outline: none;
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.2);
}

.view-toggle {
    display: flex;
    gap: 5px;
}

.view-btn {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--white);
    border: 1px solid #ddd;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    color: var(--dark-gray);
}

.view-btn.active,
.view-btn:hover {
    background-color: var(--gold-primary);
    color: var(--white);
    border-color: var(--gold-primary);
    transform: scale(1.05);
}

/* Property Cards Grid View */
.results-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
}

.property-card {
    background-color: var(--white);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    position: relative;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

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

.property-tags {
    position: absolute;
    top: 15px;
    left: 15px;
    z-index: 1;
    display: flex;
    gap: 10px;
}

.tag {
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.tag.featured {
    background-color: var(--gold-primary);
    color: var(--black);
}

.tag.new {
    background-color: #28a745;
    color: var(--white);
}

.tag.sale {
    background-color: #dc3545;
    color: var(--white);
}

.property-image {
    height: 200px;
    overflow: hidden;
    position: relative;
}

.property-image::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 30%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.5), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.property-card:hover .property-image::after {
    opacity: 1;
}

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

.property-card:hover .property-image img {
    transform: scale(1.1);
}

.property-content {
    padding: 20px;
}

.property-content h3 {
    color: var(--dark-gray);
    margin-bottom: 10px;
    font-size: 1.2rem;
    transition: color 0.3s ease;
}

.property-card:hover .property-content h3 {
    color: var(--gold-primary);
}

.property-location {
    display: flex;
    align-items: center;
    color: var(--light-gray);
    margin-bottom: 15px;
    font-size: 0.9rem;
}

.property-location i {
    color: var(--gold-primary);
    margin-right: 5px;
}

.property-features {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
    flex-wrap: wrap;
}

.property-features span {
    display: flex;
    align-items: center;
    font-size: 0.9rem;
    color: var(--dark-gray);
    padding: 3px 0;
}

.property-features i {
    color: var(--gold-primary);
    margin-right: 5px;
}

.property-description {
    margin-bottom: 15px;
    font-size: 0.9rem;
    line-height: 1.5;
    color: var(--light-gray);
}

.property-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 15px;
    border-top: 1px solid #eee;
}

.property-price {
    font-weight: 700;
    font-size: 1.2rem;
    color: var(--gold-primary);
    position: relative;
    padding-left: 10px;
}

.property-price::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    height: 80%;
    width: 3px;
    background-color: var(--gold-primary);
    border-radius: 3px;
}

.btn-small {
    padding: 8px 15px;
    font-size: 0.9rem;
    display: inline-block;
    background-color: var(--gold-primary);
    color: var(--black);
    border-radius: 8px;
    font-weight: bold;
    text-transform: uppercase;
    transition: all 0.3s ease;
    border: 2px solid var(--gold-primary);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn-small::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.2);
    transition: all 0.4s ease;
    z-index: -1;
}

.btn-small:hover::before {
    left: 0;
}

.btn-small:hover {
    background-color: transparent;
    color: var(--gold-primary);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(212, 175, 55, 0.2);
}

/* Property Cards List View */
.results-list {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.results-list .property-card {
    display: flex;
    flex-direction: row;
    height: auto;
}

.results-list .property-image {
    width: 300px;
    height: auto;
    min-height: 250px;
    flex-shrink: 0;
}

.results-list .property-content {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    padding: 25px 30px;
}

.results-list .property-description {
    flex-grow: 1;
    font-size: 1rem;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 40px;
}

.page-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: var(--white);
    border: 1px solid #ddd;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.page-btn.active,
.page-btn:hover {
    background-color: var(--gold-primary);
    color: var(--white);
    border-color: var(--gold-primary);
    transform: scale(1.05);
    box-shadow: 0 3px 10px rgba(212, 175, 55, 0.3);
}

.page-dots {
    display: flex;
    align-items: center;
    justify-content: center;
}

.page-btn.next {
    width: auto;
    padding: 0 15px;
}

/* Map Section */
.map-section {
    padding: 60px 0;
    background-color: var(--off-white);
    position: relative;
}

.map-section::before {
    content: '';
    position: absolute;
    top: -50px;
    left: 0;
    width: 100%;
    height: 50px;
    background: linear-gradient(to top left, var(--off-white) 0%, var(--off-white) 50%, transparent 50%, transparent 100%);
}

.map-section h2 {
    margin-bottom: 30px;
    position: relative;
    display: inline-block;
}

.map-section h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 50px;
    height: 3px;
    background-color: var(--gold-primary);
}

.map-container {
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(212, 175, 55, 0.1);
    height: 500px;
    transition: all 0.3s ease;
}

.map-container:hover {
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
    transform: translateY(-5px);
}

/* CTA Section */
.cta-section {
    background-color: var(--black);
    background-image: linear-gradient(rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.8)), url('../images/cta-bg.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    color: var(--white);
    padding: 80px 0;
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, rgba(212, 175, 55, 0.3), transparent);
    z-index: 1;
}

.cta-content {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.cta-content h2 {
    color: var(--gold-primary);
    margin-bottom: 20px;
    font-size: 2.5rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.cta-content p {
    margin-bottom: 30px;
    font-size: 1.2rem;
    line-height: 1.6;
}

/* Responsive Design */
@media (max-width: 992px) {
    .search-hero {
        height: 30vh;
    }
    
    .search-hero h1 {
        font-size: 2.5rem;
    }
    
    .results-list .property-card {
        flex-direction: column;
    }
    
    .results-list .property-image {
        width: 100%;
        height: 200px;
    }
}

@media (max-width: 768px) {
    .search-hero {
        height: 25vh;
    }
    
    .search-hero h1 {
        font-size: 2rem;
    }
    
    .filter-row {
        flex-direction: column;
        gap: 15px;
    }
    
    .filter-column {
        width: 100%;
    }
    
    .results-header {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width: 576px) {
    .search-hero {
        height: 20vh;
    }
    
    .search-hero h1 {
        font-size: 1.8rem;
    }
    
    .amenities-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    }
    
    .search-buttons {
        flex-direction: column;
    }
} 