/* Variables */
:root {
    --primary-color: #0d6efd;
    --secondary-color: #6c757d;
    --success-color: #198754;
    --white: #ffffff;
}

/* General Styles */
body {
    font-family: 'Inter', sans-serif;
    background-color: #f8f9fa;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

main {
    flex: 1;
}

/* Hero Section */
.hero-section {
    background-color: var(--primary-color);
    padding: 3rem 0;
    color: var(--white);
}

.search-container {
    background-color: var(--white);
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
}

/* Property Cards */
.property-card {
    border: none;
    border-radius: 10px;
    overflow: hidden;
    transition: transform 0.3s ease;
    margin-bottom: 2rem;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
}

.property-card:hover {
    transform: translateY(-5px);
}

.property-image {
    height: 200px;
    object-fit: cover;
    width: 100%;
}

.property-status {
    position: absolute;
    top: 1rem;
    left: 1rem;
    padding: 0.5rem 1rem;
    border-radius: 5px;
    font-weight: 600;
    font-size: 0.9rem;
}

.status-disponible {
    background-color: var(--success-color);
    color: var(--white);
}

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

.property-details {
    display: flex;
    gap: 1.5rem;
    margin: 1rem 0;
    color: var(--secondary-color);
}

.property-location {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--secondary-color);
}

/* Search Form */
.search-form {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.search-input {
    border: 1px solid #dee2e6;
    border-radius: 5px;
    padding: 0.75rem 1rem;
    font-size: 1rem;
}

.search-button {
    background-color: var(--primary-color);
    color: var(--white);
    border: none;
    border-radius: 5px;
    padding: 0.75rem 2rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.search-button:hover {
    background-color: #0b5ed7;
}

/* Action Buttons */
.action-button {
    padding: 0.5rem 1.5rem;
    border-radius: 5px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
}

.btn-voir {
    background-color: #e9ecef;
    color: #495057;
}

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

.btn-voir:hover, .btn-contacter:hover {
    opacity: 0.9;
    transform: translateY(-2px);
}

/* Messages */
.message-count {
    position: absolute;
    top: -5px;
    right: -5px;
    background-color: #dc3545;
    color: white;
    border-radius: 50%;
    padding: 0.25rem 0.5rem;
    font-size: 0.75rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .search-form {
        flex-direction: column;
    }
    
    .search-input {
        width: 100%;
    }
    
    .property-card {
        margin-bottom: 1.5rem;
    }
}

/* Annonces à la une section */
.annonces-une {
    padding: 3rem 0;
}

.annonces-une h2 {
    margin-bottom: 2rem;
    font-weight: 600;
}

/* Footer Styling */
footer {
    background-color: #343a40;
    color: var(--white);
    padding: 4rem 0 2rem;
    margin-top: auto;
}

footer h5 {
    font-weight: 600;
    margin-bottom: 1.5rem;
}

footer a {
    color: var(--white);
    text-decoration: none;
    transition: opacity 0.3s ease;
}

footer a:hover {
    opacity: 0.8;
}

/* Navigation */
.navbar {
    padding: 1rem 0;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.navbar-brand {
    font-weight: 600;
}

.nav-link {
    font-weight: 500;
}

/* Custom Shadows */
.shadow-custom {
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
}

/* Cards */
.card {
    transition: transform 0.2s, box-shadow 0.2s;
    border: none;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

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

.card-img-top {
    height: 200px;
    object-fit: cover;
}

/* Buttons */
.btn {
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
}

.btn-primary {
    background-color: #0d6efd;
    border-color: #0d6efd;
}

.btn-primary:hover {
    background-color: #0b5ed7;
    border-color: #0a58ca;
}

/* Forms */
.form-control:focus {
    border-color: #0d6efd;
    box-shadow: 0 0 0 0.25rem rgba(13,110,253,0.25);
}

.form-label {
    font-weight: 500;
    color: #495057;
}

/* Map */
#map {
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.map-filters {
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

/* Custom Animations */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.fade-in {
    animation: fadeIn 0.3s ease-in;
}

/* Message Badges */
.badge {
    font-size: 0.75rem;
    padding: 0.25em 0.6em;
    border-radius: 1rem;
}

/* Info Windows */
.map-info-window {
    padding: 10px;
}

.map-info-window img {
    border-radius: 4px;
    margin-bottom: 10px;
}

/* Loading Spinner */
.spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #0d6efd;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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