/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, #0d6efd 0%, #0099ff 100%);
    padding: 2rem 0;
}

.hero-section h1 {
    font-size: 2rem;
    font-weight: 500;
}

/* Conteneur de recherche */
.search-container {
    background-color: #f8f9fa;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    margin-bottom: 2rem;
}

.search-form {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    align-items: flex-end;
}

.search-form .form-group {
    flex: 1;
    min-width: 200px;
}

/* Ensure radio button labels in the search container are readable */
.search-container .form-check-label {
    color: #212529; /* Default dark Bootstrap text color */
}

/* Boutons de vue */
.view-buttons {
    margin-bottom: 1.5rem;
}

.view-buttons .btn {
    min-width: 120px;
}

/* Filtres actifs */
.active-filters {
    margin: 1rem 0;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: center;
}

.badge {
    font-size: 0.9rem;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    background-color: #e9ecef;
    color: #495057;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.badge .close {
    font-size: 1.2rem;
    line-height: 1;
    color: #6c757d;
    cursor: pointer;
    padding: 0 0.2rem;
}

.badge .close:hover {
    color: #343a40;
}

/* Cartes de propriété */
.annonce-card {
    height: 100%;
    border-radius: 12px;
    transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
    overflow: hidden;
    background-color: #fff;
    display: flex;
    flex-direction: column;
}

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

.annonce-card .image-container {
    position: relative;
    overflow: hidden;
}

.annonce-card .annonce-img {
    height: 220px;
    object-fit: cover;
    width: 100%;
    display: block;
    transition: transform 0.3s ease;
}

.annonce-card:hover .annonce-img {
    transform: scale(1.05);
}

/* Carousel Arrows */
.carousel-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(255, 255, 255, 0.9);
    border: none;
    color: #333;
    border-radius: 50%;
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    cursor: pointer;
    opacity: 0;
    transition: opacity 0.2s ease-in-out, background-color 0.2s ease-in-out;
    z-index: 10;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.image-container:hover .carousel-arrow {
    opacity: 1;
}

.carousel-arrow:hover {
    background-color: white;
}

.carousel-arrow.prev-arrow {
    left: 10px;
}

.carousel-arrow.next-arrow {
    right: 10px;
}

/* Status Dot and Text */
.status-dot-container {
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 5;
    display: flex;
    align-items: center;
}

.status-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 1px solid rgba(0, 0, 0, 0.1);
    margin-right: 6px;
    position: relative;
    cursor: help;
}

/* Define status colors */
.status-dot[data-status="disponible"] {
    background-color: #28a745;
}

.status-dot[data-status="loué"],
.status-dot[data-status="loue"] {
    background-color: #0d6efd;
}

.status-dot[data-status="vendu"],
.status-dot[data-status="reserve"],
.status-dot[data-status="réservé"] {
    background-color: #fd7e14;
}

.status-text {
    display: none;
    background-color: rgba(0, 0, 0, 0.75);
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.75rem;
    white-space: nowrap;
    position: absolute;
    left: calc(100% + 5px);
    top: 50%;
    transform: translateY(-50%);
    opacity: 0;
    transition: opacity 0.2s ease-in-out;
}

.status-dot-container:hover .status-text {
    display: block;
    opacity: 1;
}

/* Card Body and Info */
.annonce-card-body {
    padding: 0.8rem 1rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.annonce-title {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
    color: #333;
}

.annonce-location {
    font-size: 0.85rem;
    color: #6c757d;
    margin-bottom: 0.25rem;
}

.annonce-price {
    font-size: 1.1rem;
    font-weight: 700;
    color: #212529;
    margin-bottom: 0.5rem;
}

.annonce-specs {
    font-size: 0.8rem;
    color: #6c757d;
    margin-top: auto;
}

.annonce-specs span {
    margin-right: 0.5rem;
}
.annonce-specs span:last-child {
    margin-right: 0;
}

/* Pagination */
.pagination {
    margin-top: 2rem;
    justify-content: center;
}

.page-link {
    color: #2c3e50;
    padding: 0.5rem 1rem;
}

.page-item.active .page-link {
    background-color: #2c3e50;
    border-color: #2c3e50;
}

/* Responsive */
@media (max-width: 768px) {
    .search-form {
        flex-direction: column;
    }
    
    .search-form .form-group {
        width: 100%;
    }
    
    .annonce-card .annonce-img {
        height: 150px;
    }
}

/* Floating Map Button */
.btn-map-float {
    position: fixed;
    bottom: 30px !important;
    right: 30px !important;
    left: auto !important;
    z-index: 9999 !important;
    padding: 0.75rem 1.5rem;
    font-size: 1.1rem;
    border-radius: 2rem;
    box-shadow: 0 4px 16px rgba(0,0,0,0.12);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
@media (max-width: 767.98px) {
    .btn-map-float {
        right: 10px !important;
        left: 10px !important;
        bottom: 10px !important;
        width: auto;
        justify-content: center;
    }
} 