/* CSS pour le moteur de recherche HEKTOR */

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

/* Formulaire de recherche */
.hektor-search-form {
    background: #f8f9fa;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.hektor-search-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 20px;
}

.hektor-search-field {
    display: flex;
    flex-direction: column;
}

.hektor-search-field label {
    font-weight: 600;
    margin-bottom: 8px;
    color: #2c3e50;
    font-size: 14px;
}

.hektor-search-field input,
.hektor-search-field select {
    padding: 12px 15px;
    border: 2px solid #e9ecef;
    font-size: 16px;
    transition: border-color 0.3s ease;
    background: white;
}

.hektor-search-field input:focus,
.hektor-search-field select:focus {
    outline: none;
    border-color: #3498db;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
}

/* Filtres avancés */
.hektor-search-advanced {
    border-top: 1px solid #dee2e6;
    padding-top: 20px;
    margin-top: 20px;
    display: none;
}

.hektor-search-advanced.show {
    display: block;
}

/* Boutons d'action */
.hektor-search-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-top: 25px;
    flex-wrap: wrap;
}

.hektor-btn {
    padding: 12px 24px;
    border: none;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    text-align: center;
    transition: all 0.3s ease;
    min-width: 120px;
}

.hektor-btn-primary {
    background: #3498db;
    color: white;
}

.hektor-btn-primary:hover {
    background: #2980b9;
    transform: translateY(-2px);
}

.hektor-btn-secondary {
    background: #95a5a6;
    color: white;
}

.hektor-btn-secondary:hover {
    background: #7f8c8d;
}

.hektor-btn-link {
    background: transparent;
    color: #3498db;
    border: 2px solid #3498db;
}

.hektor-btn-link:hover {
    background: #3498db;
    color: white;
}

.hektor-btn-alert {
    background: #e74c3c;
    color: white;
}

.hektor-btn-alert:hover {
    background: #c0392b;
}

/* Section alerte email */
.hektor-search-alert {
    background: #fff3cd;
    border: 1px solid #ffeaa7;
    padding: 20px;
    margin-top: 25px;
}

.hektor-alert-checkbox {
    margin-bottom: 15px;
}

.hektor-alert-checkbox label {
    display: flex;
    align-items: center;
    font-weight: 500;
    color: #856404;
    cursor: pointer;
}

.hektor-alert-checkbox input[type="checkbox"] {
    margin-right: 10px;
    transform: scale(1.2);
}

.hektor-alert-email {
    margin-top: 15px;
}

.hektor-alert-email label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    color: #856404;
}

.hektor-email-row {
    display: flex;
    gap: 10px;
    align-items: stretch;
}

.hektor-email-row input[type="email"] {
    flex: 1;
    padding: 12px 15px;
    border: 2px solid #ffeaa7;
    font-size: 16px;
}

.hektor-email-row input[type="email"]:focus {
    outline: none;
    border-color: #f39c12;
}

.hektor-alert-info {
    margin-top: 10px;
    font-size: 14px;
    color: #856404;
    font-style: italic;
}

/* Résultats de recherche */
.hektor-search-results {
    margin-top: 30px;
}

.hektor-search-results-header {
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid #3498db;
}

.hektor-search-results-header h3 {
    margin: 0;
    color: #2c3e50;
    font-size: 24px;
}

.hektor-search-results-list {
    display: grid;
    gap: 25px;
}




.hektor-property-image {
    position: relative;
    overflow: hidden;
}

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



.hektor-no-image {
    width: 100%;
    height: 100%;
    background: #ecf0f1;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #7f8c8d;
    font-size: 14px;
}

.hektor-property-content {
    padding: 25px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.hektor-property-title {
    margin: 0 0 15px 0;
    font-size: 20px;
    line-height: 1.3;
}

.hektor-property-title a {
    color: #2c3e50;
    text-decoration: none;
    transition: color 0.3s ease;
}

.hektor-property-title a:hover {
    color: #3498db;
}

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

.hektor-property-details span {
    background: #ecf0f1;
    padding: 5px 12px;
    font-size: 14px;
    color: #2c3e50;
    font-weight: 500;
}

.hektor-property-price {
    margin-bottom: 20px;
}

.hektor-price {
    font-size: 24px;
    font-weight: bold;
    color: #e74c3c;
}

.hektor-property-actions {
    margin-top: auto;
}

/* Messages */
.hektor-search-messages {
    margin-top: 20px;
}

.hektor-message {
    padding: 15px 20px;
    margin-bottom: 15px;
    font-weight: 500;
}

.hektor-message.success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.hektor-message.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.hektor-message.info {
    background: #d1ecf1;
    color: #0c5460;
    border: 1px solid #bee5eb;
}

/* Pas de résultats */
.hektor-no-results {
    text-align: center;
    padding: 60px 20px;
    background: #f8f9fa;
    color: #6c757d;
    font-size: 18px;
}

/* Loading */
.hektor-loading {
    text-align: center;
    padding: 40px;
}

.hektor-spinner {
    border: 4px solid #f3f3f3;
    border-top: 4px solid #3498db;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* Responsive */
@media (max-width: 768px) {
    .hektor-search-container {
        padding: 15px;
    }

    .hektor-search-form {
        padding: 20px;
    }

    .hektor-search-row {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .hektor-search-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .hektor-btn {
        width: 100%;
    }

    .hektor-property-item {
        grid-template-columns: 1fr;
    }

    .hektor-property-image {
        height: 200px;
    }

    .hektor-email-row {
        flex-direction: column;
    }

    .hektor-property-details {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .hektor-search-form {
        padding: 15px;
    }

    .hektor-property-content {
        padding: 20px;
    }

    .hektor-property-title {
        font-size: 18px;
    }

    .hektor-price {
        font-size: 20px;
    }
}
