/* Styles personnalisés pour CayorCity */

/* Général */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: #333;
    background-color: #f8f9fa;
}

/* Header et navigation */
.navbar-brand {
    font-size: 1.5rem;
    font-weight: bold;
    display: flex;
    align-items: center;
}

.navbar-brand img {
    max-width: 100%;
    height: auto;
}

/* Logo fallback pour les anciens navigateurs */
.no-svg .navbar-brand img[src$=".svg"] {
    display: none;
}
.no-svg .navbar-brand::after {
    content: "CayorCity";
    font-weight: bold;
    color: #ffffff;
}

/* Hero section */
.hero-section {
    background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('../images/hero-bg.jpg');
    background-size: cover;
    background-position: center;
    color: white;
    padding: 100px 0;
    margin-bottom: 30px;
}

.hero-section h1 {
    font-weight: bold;
    margin-bottom: 20px;
}

.hero-section .form-select,
.hero-section .form-control {
    height: 50px;
}

/* Propriétés cards */
.property-img-container {
    position: relative;
    height: 200px;
    overflow: hidden;
}

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

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

.property-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 0.8rem;
    padding: 5px 10px;
}

.property-features {
    display: flex;
    justify-content: space-between;
    margin-top: 15px;
    color: #666;
    font-size: 0.9rem;
}

.property-features span {
    margin-right: 10px;
}

.property-features span i {
    margin-right: 5px;
    color: #007bff;
}

/* Détails de la propriété */
.property-details-image {
    height: 400px;
    width: 100%;
    object-fit: cover;
}

.property-price {
    font-size: 1.8rem;
    font-weight: bold;
    color: #007bff;
}

.property-specs {
    background-color: #f8f9fa;
    border-radius: 5px;
    padding: 20px;
    margin-bottom: 20px;
}

.property-specs .spec-item {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
}

.property-specs .spec-icon {
    font-size: 1.2rem;
    color: #007bff;
    width: 30px;
    text-align: center;
    margin-right: 10px;
}

/* Formulaires */
.form-control:focus {
    box-shadow: none;
    border-color: #007bff;
}

/* Dashboard agence */
.dashboard-sidebar {
    background-color: #343a40;
    color: white;
    min-height: calc(100vh - 56px);
}

.dashboard-sidebar .nav-link {
    color: rgba(255, 255, 255, 0.75);
    padding: 10px 15px;
    border-radius: 0;
}

.dashboard-sidebar .nav-link:hover,
.dashboard-sidebar .nav-link.active {
    color: white;
    background-color: rgba(255, 255, 255, 0.1);
}

.dashboard-sidebar .nav-link i {
    margin-right: 10px;
    width: 20px;
    text-align: center;
}

/* Footer */
footer {
    padding: 40px 0 20px;
}

footer h5 {
    font-weight: bold;
    margin-bottom: 20px;
}

footer ul li {
    margin-bottom: 10px;
}

/* Galerie d'images */
.property-gallery {
    margin-bottom: 30px;
}

.property-gallery .thumbnail {
    cursor: pointer;
    height: 80px;
    overflow: hidden;
}

.property-gallery .thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.7;
    transition: opacity 0.3s;
}

.property-gallery .thumbnail.active img,
.property-gallery .thumbnail:hover img {
    opacity: 1;
}

/* Animation de chargement */
.loader {
    border: 5px solid #f3f3f3;
    border-top: 5px solid #007bff;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    animation: spin 1s linear infinite;
    margin: 20px auto;
}

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

/* Responsive */
@media (max-width: 768px) {
    .hero-section {
        padding: 50px 0;
    }
    
    .property-img-container {
        height: 150px;
    }
    
    .property-details-image {
        height: 250px;
    }
}

/* Image placeholder */
.no-image-placeholder {
    background-color: #e9ecef;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
}

.no-image-placeholder i {
    font-size: 3rem;
    color: #adb5bd;
}
