        :root {
            --primary: #00B98E;
            --secondary: #FF6922;
            --light: #EFFDF5;
            --dark: #0E2E50;
            --border-radius: 12px;
            --box-shadow: 0 4px 20px rgba(0,0,0,0.1);
            --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        }

        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }

        body {
            font-family: 'Heebo', sans-serif;
            background-color: #f8f9fa;
            line-height: 1.6;
        }

        /* Utility classes */
        .btn-primary {
            background-color: var(--primary);
            border-color: var(--primary);
            transition: var(--transition);
        }

        .btn-primary:hover,
        .btn-primary:focus {
            background-color: #009577;
            border-color: #009577;
            transform: translateY(-1px);
        }

        .text-primary { color: var(--primary) !important; }
        .bg-primary { background-color: var(--primary) !important; }

        /* Contact info */
        .contact-info {
            position: fixed;
            top: 20px;
            right: 20px;
            background: rgba(255,255,255,0.95);
            backdrop-filter: blur(10px);
            padding: 16px;
            border-radius: var(--border-radius);
            box-shadow: var(--box-shadow);
            z-index: 1000;
            transition: var(--transition);
        }

        .contact-info:hover {
            transform: translateY(-2px);
            box-shadow: 0 8px 32px rgba(0,0,0,0.15);
        }

        .contact-agent {
            display: flex;
            flex-direction: column;
        }

        .contact-agent:last-child { margin-bottom: 0; }

        .agent-name {
            font-weight: 600;
            color: #333;
            font-size: 14px;
        }

        .agent-phone {
            color: var(--primary);
            font-weight: 500;
            text-decoration: none;
			    white-space: nowrap; 
    display: inline-flex; 
    align-items: center;
    gap: 4px; 
        }

        .agent-phone:hover { color: #009577; }

        /* Property cards */
        .property-item {
            background: white;
            border-radius: var(--border-radius);
            overflow: hidden;
            box-shadow: var(--box-shadow);
            transition: var(--transition);
            cursor: pointer;
            height: 100%;
        }

        .property-item:hover {
            transform: translateY(-5px);
            box-shadow: 0 12px 40px rgba(0,0,0,0.15);
        }

        .property-image {
            position: relative;
            height: 250px;
            overflow: hidden;
        }

        .property-image img {
            width: 100%;
            height: 100%;
            object-fit: cover;
            transition: var(--transition);
        }

        .property-item:hover .property-image img {
            transform: scale(1.05);
        }

        .property-badges {
            position: absolute;
            top: 15px;
            left: 15px;
            z-index: 2;
        }

        .property-badge {
            background: var(--primary);
            color: white;
            padding: 6px 12px;
            border-radius: 5px;
            font-size: 12px;
            font-weight: 500;
            margin-right: 5px;
            display: inline-block;
        }

        .property-type {
            position: absolute;
            bottom: 15px;
            left: 15px;
            background: rgba(0,0,0,0.7);
            color: white;
            padding: 8px 15px;
            border-radius: 5px;
            font-weight: 600;
            font-size: 14px;
        }

        .property-ref {
            font-size: 0.9rem;
            color: #777;
            font-weight: 400;
        }

        .property-details {
            padding: 25px 25px 0px 25px;
        }

        .property-price {
            font-size: 1.5rem;
            font-weight: bold;
            color: var(--primary);
            margin-bottom: 10px;
        }

        .property-price-ref {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 15px;
        }

        .property-title {
            font-size: 1.1rem;
            font-weight: 600;
            margin-bottom: 10px;
            color: #333;
            text-decoration: none;
        }

        .property-title:hover { color: var(--primary); }

        .property-location {
            color: #666;
            margin-bottom: 15px;
            font-size: 0.9rem;
        }

        .property-features {
            display: flex;
            justify-content: space-between;
            padding-top: 15px;
            border-top: 1px solid #eee;
        }

        .feature-item {
            text-align: center;
            flex: 1;
            font-size: 0.85rem;
            color: #666;
        }

        .feature-item i {
            color: var(--primary);
            margin-right: 5px;
        }

        /* Image slider */
        .image-slider {
            position: relative;
            height: 100%;
        }

        .image-slider img {
            display: none;
            width: 100%;
            height: 100%;
            object-fit: cover;
        }

        .image-slider img.active {
            display: block;
        }

        .slider-controls {
            position: absolute;
            top: 50%;
            left: 0;
            right: 0;
            display: flex;
            justify-content: space-between;
            z-index: 3;
            padding: 0 15px;
            transform: translateY(-50%);
            opacity: 0;
            transition: var(--transition);
        }

        .property-item:hover .slider-controls,
        .lightbox .slider-controls {
            opacity: 1;
        }
.property-item {
  display: flex;
  flex-direction: column;     /* empile image, détails, features */
  height: 100%;               /* occupe toute la hauteur dispo */
}

.property-details {
  flex-grow: 1;               /* prend tout l’espace libre */
}

.property-features {
  margin-top: auto;           /* pousse la section en bas */
  min-height: 50px;           /* (optionnel) force une hauteur identique */
  display: flex;
  flex-wrap: wrap;
  align-items: center;        /* aligne verticalement les icônes */
  gap: 10px;                  /* espace entre items */
}
        .slider-btn {
            background: rgba(0,0,0,0.6);
            color: white;
            border: none;
            border-radius: 50%;
            width: 35px;
            height: 35px;
            display: flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            font-size: 18px;
            transition: var(--transition);
        }

        .slider-btn:hover {
            background: rgba(0,0,0,0.8);
        }

        .slider-dots {
            position: absolute;
            bottom: 15px;
            left: 50%;
            transform: translateX(-50%);
            display: flex;
            gap: 5px;
            z-index: 3;
        }

        .slider-dot {
            width: 8px;
            height: 8px;
            border-radius: 50%;
            background: rgba(255,255,255,0.6);
            cursor: pointer;
            transition: background 0.3s ease;
            border: none;
            padding: 0;
        }

        .slider-dot.active {
            background: white;
        }

        /* Search form */
        .search-form {
            background: white;
            padding: 30px;
            border-radius: var(--border-radius);
            box-shadow: var(--box-shadow);
            margin-bottom: 30px;
        }

        .form-control,
        .form-select {
            border-radius: 8px;
            border: 2px solid #e9ecef;
            transition: var(--transition);
        }

        .form-control:focus,
        .form-select:focus {
            border-color: var(--primary);
            box-shadow: 0 0 0 0.2rem rgba(0, 185, 142, 0.25);
        }

        /* Lightbox */
        .lightbox {
            display: none;
            position: fixed;
            z-index: 2000;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(0,0,0,0.9);
            backdrop-filter: blur(5px);
            justify-content: center;
            align-items: center;
            padding: 20px;
        }

        .lightbox-content {
            display: flex;
            max-width: 90vw;
            max-height: 90vh;
            background: white;
            border-radius: var(--border-radius);
            overflow: hidden;
            animation: lightboxIn 0.3s ease-out;
        }

        @keyframes lightboxIn {
            from {
                opacity: 0;
                transform: scale(0.9);
            }
            to {
                opacity: 1;
                transform: scale(1);
            }
        }

        .lightbox-image-container {
            flex: 1;
            position: relative;
            display: flex;
            justify-content: center;
            align-items: center;
            background: #f8f9fa;
            min-height: 400px;
        }

        .lightbox-image-container img {
            max-width: 100%;
            max-height: 70vh;
            object-fit: contain;
            border-radius: 8px;
        }

        .lightbox-description {
            flex: 0 0 400px;
            padding: 30px;
            overflow-y: auto;
            max-height: 70vh;
        }

        .lightbox-description h3 {
            margin-bottom: 15px;
            color: #333;
            font-size: 1.5rem;
        }

        .lightbox-description .price {
            font-size: 1.3rem;
            font-weight: bold;
            color: var(--primary);
            margin-bottom: 20px;
        }

        .detail-item {
            display: flex;
            justify-content: space-between;
            padding: 10px 0;
            border-bottom: 1px solid #eee;
        }

        .detail-label {
            font-weight: 600;
            color: #666;
        }

        .detail-value {
            color: #333;
            font-weight: 500;
        }

        .description-text {
            color: #555;
            line-height: 1.6;
            margin-top: 20px;
        }

        .close-lightbox {
            position: absolute;
            top: 20px;
            right: 30px;
            color: white;
            font-size: 30px;
            cursor: pointer;
            z-index: 2001;
            transition: var(--transition);
        }

        .close-lightbox:hover {
            color: #ccc;
            transform: scale(1.1);
        }

        /* Loading states */
        .loading,
        .no-results {
            text-align: center;
            padding: 60px 20px;
        }

        .spinner-border {
            width: 3rem;
            height: 3rem;
        }

        /* Buttons */
        .btn-osm {
            background: #f5c27a;
            color: white;
            border: none;
            transition: var(--transition);
        }

        .btn-osm:hover {
            background: #f0b565;
            color: white;
            transform: translateY(-1px);
        }

        #printLightbox {
            font-size: 0.9rem;
            padding: 8px 12px;
            border: 1px solid var(--primary);
            color: var(--primary);
            background: transparent;
            transition: var(--transition);
        }

        #printLightbox:hover {
            background: var(--primary);
            color: white;
        }

        /* Back to top */
        .back-to-top {
            position: fixed;
            bottom: 25px;
            right: 25px;
            display: none;
            z-index: 999;
            transition: var(--transition);
        }

        .back-to-top:hover {
            transform: translateY(-3px);
        }

        /* Responsive design */
        @media (max-width: 768px) {
            .contact-info {
                position: relative;
                top: 0;
                right: 0;
                margin-bottom: 20px;
                display: flex;
                justify-content: space-around;
            }

            .lightbox-content {
                flex-direction: column;
                max-height: 95vh;
            }

            .lightbox-description {
                flex: 0 0 400px;
                max-height: none;
            }

            .property-features {
                flex-wrap: wrap;
                gap: 10px;
            }

            .feature-item {
                flex: 0 0 48%;
            }

            .search-form {
                padding: 20px;
            }

            .search-form .row > div {
                margin-bottom: 15px;
            }
        }

        /* Performance optimizations */
        .property-item {
            contain: layout style paint;
        }

        .image-slider img {
            will-change: transform;
        }

        /* Focus indicators */
        .property-item:focus-within {
            outline: 2px solid var(--primary);
            outline-offset: 2px;
        }

        .slider-btn:focus,
        .slider-dot:focus {
            outline: 2px solid white;
            outline-offset: 2px;
        }
@media (max-width: 768px) {
    .contact-info {
        display: flex;
        justify-content: space-between; /* agents à gauche, bouton à droite */
        align-items: center;           /* centre verticalement le bouton */
    }

    .contact-info .agents-wrapper {
        display: flex;
        flex-direction: column; /* empile les agents */
        gap: 8px;
    }
}
.price-unit {
  font-size: 0.75em;   /* plus petit que le prix */
  color: #666;         /* gris doux */
  margin-left: 4px;    /* petit espace après le prix */
  font-weight: normal; /* pas en gras */
}
#annoncesCount {
  font-size: 0.9rem;
  color: #b1b1b1;
  text-align: right;
}
/* Titre vendeur dans le header */
.header-title {
    flex-grow: 1;
    text-align: center;
    margin: 0 20px;
}

.header-title h1 {
    font-family: 'Inter', sans-serif;
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--dark);
    margin: 0;
    line-height: 1.2;
}

.header-title .subtitle {
    font-size: 0.9rem;
    color: var(--primary);
    font-weight: 500;
    margin-top: 2px;
}

@media (max-width: 992px) {
    .header-title {
        margin: 15px 0;
        order: 3;
        width: 100%;
    }
    
    .header-title h1 {
        font-size: 1.5rem;
    }
}

@media (max-width: 576px) {
    .header-title h1 {
        font-size: 1.3rem;
    }
    
    .header-title .subtitle {
        font-size: 0.8rem;
    }
}