/**
* Theme Name: WP Pro Real Estate 7 Child
* Description: This is a child theme of WP Pro Real Estate 7, generated by Real Estate 7.
* Author: <a href="https://www.contempothemes.com/">Contempo Thèmes</a>
* Template: realestate-7
* Version: 3.5.6
*/

/* ===================================
   Styles de pagination personnalisés
   =================================== */

/* Conteneur de pagination */
.pagination-container {
  display: flex;
  gap: 8px;
  justify-content: center;
  align-items: center;
  margin: 20px 0;
}

/* Style de base des boutons de pagination */
.pagination-container a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 46px;
  height: 46px;
  padding: 0 12px;
  background-color: #ffffff;
  color: #333333;
  border: 1px solid #e0e0e0;
  border-radius: 4px;
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
  transition: all 0.3s ease;
  cursor: pointer;
}

/* Effet hover */
.pagination-container a:hover {
  background-color: #f5f5f5;
  border-color: #d0d0d0;
  color: #000000;
}

/* État actif */
.pagination-container a.active {
  background-color: #007bff;
  color: #ffffff;
  border-color: #007bff;
  cursor: default;
}

/* Désactiver le hover sur l'élément actif */
.pagination-container a.active:hover {
  background-color: #007bff;
  border-color: #007bff;
  color: #ffffff;
}

/* État focus pour l'accessibilité */
.pagination-container a:focus {
  outline: 2px solid #007bff;
  outline-offset: 2px;
}

/* État actif au focus */
.pagination-container a.active:focus {
  outline-color: #0056b3;
}

/* ============================================
   AUTRES ANNONCES À PROXIMITÉ - CAROUSEL
   ============================================ */

.other-nearby-listings {
    margin-top: 40px;
    margin-bottom: 40px;
    padding: 0 20px;
}

.other-nearby-listings h3 {
    font-size: 28px;
    font-weight: 600;
    margin-bottom: 30px;
    color: #2c3e50;
}

/* Wrapper du carousel */
.nearby-carousel-wrapper {
    position: relative;
    margin: 0 auto;
    max-width: 1200px;
}

/* Container du carousel */
.nearby-carousel {
    overflow: hidden;
    position: relative;
}

/* Track qui contient tous les items */
.nearby-carousel-track {
    display: flex;
    gap: 24px;
    transition: transform 0.5s ease-in-out;
}

/* Item individuel - Largeur augmentée */
.nearby-item {
    flex: 0 0 calc(33.333% - 16px);
    min-width: 0;
}

.nearby-item a {
    display: block;
    text-decoration: none;
    color: inherit;
    height: 100%;
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.nearby-item a:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.3);
}

/* Image container - Hauteur réduite, largeur maximale */
.nearby-image {
    position: relative;
    width: 100%;
    height: 240px;
    overflow: hidden;
    background: #f5f5f5;
}

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

.nearby-item a:hover .nearby-image img {
    transform: scale(1.1);
}

/* Overlay sombre sur l'image */
.nearby-image::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        to bottom,
        rgba(0, 0, 0, 0.3) 0%,
        rgba(0, 0, 0, 0.5) 100%
    );
    z-index: 1;
}

.nearby-image .no-image {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    font-size: 14px;
}

/* Badge de statut en haut à droite */
.listing-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(231, 76, 60, 0.9);
    color: white;
    padding: 8px 16px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    z-index: 3;
    /*backdrop-filter: blur(5px);*/
}

/* Contenu superposé sur l'image */
.nearby-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 25px;
    z-index: 2;
    color: white;
}

.nearby-content h4 {
    font-size: 24px;
    font-weight: 700;
    margin: 0 0 8px;
    color: white;
    line-height: 1.3;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}

.nearby-location {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.9);
    margin: 0 0 15px;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.5);
}

/* Badge de prix en bas */
.ct-price {
	display:inline-block;
	background:#03b5c3;
	color:white;
	font-weight:normal!important;
	font-size:.75em;
	letter-spacing:0.05em;
	text-transform:uppercase;
	text-shadow:none!important;
	font-weight:normal!important;
}

/* Boutons de navigation - CACHÉS */
.carousel-nav {
    display: none;
}

/* Dots de navigation - CACHÉS */
.carousel-dots {
    display: none;
}

/* ============================================
   RESPONSIVE
   ============================================ */

/* Tablette */
@media (max-width: 1024px) {
    .nearby-item {
        flex: 0 0 calc(50% - 12px);
    }
    
    .nearby-image {
        height: 220px;
    }
}

/* Mobile */
@media (max-width: 768px) {
    .other-nearby-listings {
        margin-top: 30px;
        margin-bottom: 30px;
        padding: 0 15px;
    }
    
    .other-nearby-listings h3 {
        font-size: 22px;
        margin-bottom: 20px;
    }
    
    .nearby-item {
        flex: 0 0 100%;
    }
    
    .nearby-image {
        height: 200px;
    }
    
    .nearby-content {
        padding: 20px;
    }
    
    .nearby-content h4 {
        font-size: 18px;
    }
    
    .nearby-price {
        font-size: 16px;
        padding: 8px 16px;
    }
}

@media (max-width: 480px) {
    .nearby-carousel-track {
        gap: 16px;
    }
    
    .nearby-image {
        height: 180px;
    }
    
    .nearby-content {
        padding: 15px;
    }
    
    .nearby-content h4 {
        font-size: 16px;
    }
}

/* ===== MODALE RDV ===== */

#rdv-overlay{
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.6);
    z-index: 999999;
}

#rdv-modal{
    background: #fff;
    max-width: 450px;
    margin: 8% auto;
    padding: 25px;
    border-radius: 8px;
    position: relative;
}

#rdv-modal input{
    width: 100%;
    margin-bottom: 10px;
    padding: 10px;
}

.rdv-close{
    position: absolute;
    top: 10px;
    right: 15px;
    cursor: pointer;
    font-size: 22px;
}

/* Ligne Prénom + Nom */
.rdv-row{
    display: flex;
    gap: 10px;
}

.rdv-row input{
    width: 100%;
}

#rdv-alert.success{ color: green; }
#rdv-alert.error{ color: red; }

/* FIX FREEZE SITE APRÈS MODALE */
body.modal-open {
    overflow: hidden !important;
}

body.noscroll-modal {
    overflow: hidden !important;
}

#rdv-overlay {
    position: fixed;
    inset: 0;
    z-index: 999999;
    background: rgba(0,0,0,.6);
}

#rdv-modal {
    pointer-events: auto;
}

/* ========================================
   ALIGNEMENT DU MENU DE NAVIGATION
   ======================================== */

#listing-sections {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    list-style: none;
    margin: 0;
    padding: 0;
    background-color: #00bcd4;
    overflow-x: auto;
    overflow-y: hidden;
    white-space: nowrap;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* Internet Explorer et Edge */
}

#listing-sections::-webkit-scrollbar {
    display: none; /* Chrome, Safari, Opera */
}

#listing-sections li {
    display: inline-flex;
    align-items: center;
    margin: 0;
    padding: 0;
    flex-shrink: 0;
}

#listing-sections li a {
    display: block;
    padding: 10px 15px;
    color: white;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: background-color 0.3s ease;
    white-space: nowrap;
}

#listing-sections li a:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

#listing-sections li.listing-nav-icon {
    padding: 10px 15px;
    color: white;
    cursor: pointer;
}

#listing-sections li.listing-nav-icon i {
    font-size: 18px;
}

/* Pour les petits écrans - menu scrollable horizontalement SANS barre visible */
@media (max-width: 1024px) {
    #listing-sections {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none; /* Firefox */
        -ms-overflow-style: none; /* Internet Explorer et Edge */
    }
    
    #listing-sections::-webkit-scrollbar {
        display: none; /* Chrome, Safari, Opera */
    }
    
    #listing-sections li a {
        padding: 12px 15px;
        font-size: 13px;
    }
}

/* ✅ Responsive mobile : empile les éléments verticalement */
@media (max-width: 768px) {
    #listing-sections {
        flex-direction: column;
        align-items: stretch;
        white-space: normal;
    }

    #listing-sections li {
        width: 100%;
        border-bottom: 1px solid rgba(255,255,255,0.25);
    }

     #listing-sections li,
        #listing-sections li a {
            /*border: none !important;*/
            border-bottom: 1px solid rgba(0,0,0,0.15);
    }
    
    #listing-sections li a {
        padding: 12px 15px;
        font-size: 13px;
        width: 100%;
    }

    #listing-sections li.listing-nav-icon {
        width: 100%;
    }
     #listing-sections li:last-child {
        border-bottom: 1px solid rgba(0,0,0,0.15);
    }
}

/* Container principal */
.ct-other-nearby-listings {
    margin: 40px 0;
}

/* Espacement entre les items du carousel */
.ct-other-nearby-listings .owl-carousel .ct-item {
    padding: 0 10px;
    margin-bottom: 20px;
}

.ct-other-nearby-listings .ct-image-wrap {
    position: relative;
    display: block;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.ct-other-nearby-listings .ct-image-wrap img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.3s ease;
}

.ct-other-nearby-listings .ct-image-wrap:hover img {
    transform: scale(1.05);
}

/* Overlay avec dégradé pour meilleure lisibilité */
.ct-other-nearby-listings .ct-image-wrap::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 60%;
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
    z-index: 1;
}

.ct-other-nearby-listings .ct-overlay-info {
    position: absolute;
    bottom: 15px;
    left: 15px;
    right: 15px;
    color: #fff;
    z-index: 2;
}

/* Titre du bien */
.ct-other-nearby-listings .ct-listing-title {
    color: #ffffff !important;
    font-size: 20px !important;
    font-weight: 600 !important;
    margin: 0 0 8px 0 !important;
    line-height: 1.3 !important;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

/* Adresse */
.ct-other-nearby-listings .ct-location {
    display: block;
    font-size: 14px;
    opacity: 0.95;
    margin-bottom: 8px;
    text-shadow: 0 1px 3px rgba(0,0,0,0.3);
}

/* Prix en couleur primaire */
.ct-other-nearby-listings .ct-price {
    display: inline-block;
    margin-top: 6px;
    padding: 6px 14px;
    background: #007bff;
    color: #fff;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
}

/* Configuration du carousel Owl */
.ct-other-nearby-listings .owl-carousel {
    margin: 0 -10px;
}

.ct-other-nearby-listings .owl-stage {
    display: flex;
    align-items: stretch;
}

/* Responsive */
@media (max-width: 768px) {
    #listing-sections li::before,
    #listing-sections li::after,
    #listing-sections li a::before,
     #listing-sections li,
    #listing-sections li a {
        border: none !important;
    }

    #listing-sections li a::after {
        display: none !important;
        content: none !important;
    }
    .ct-other-nearby-listings .ct-listing-title {
        font-size: 16px !important;
    }
    
    .ct-other-nearby-listings .ct-location {
        font-size: 13px;
    }
     #listing-sections {
         border-bottom: 1px solid rgba(0,0,0,0.15);
    }
}



/* =====================================================
   FORCE STYLE FORMULAIRE INSCRIPTION (ELEMENTOR SAFE)
   ===================================================== */

/* Wrapper */
body .re7-registration-form-wrapper {
    max-width: 720px !important;
    margin: 40px auto !important;
    padding: 35px 40px !important;
    background: #ffffff !important;
    border-radius: 14px !important;
    box-shadow: 0 12px 40px rgba(0,0,0,0.08) !important;
    border: 1px solid #ececec !important;
}

/* Messages */
body .re7-registration-form-wrapper .auth-message {
    padding: 14px 18px !important;
    margin-bottom: 25px !important;
    border-radius: 8px !important;
    font-size: 14px !important;
    text-align: center !important;
}

body .re7-registration-form-wrapper .auth-message.success {
    background: #e8f8f3 !important;
    color: #117a65 !important;
    border: 1px solid #bdebe0 !important;
}

body .re7-registration-form-wrapper .auth-message.error {
    background: #fdecea !important;
    color: #c0392b !important;
    border: 1px solid #f5b7b1 !important;
}

/* Champs */
body .re7-registration-form-wrapper input[type="text"],
body .re7-registration-form-wrapper input[type="email"],
body .re7-registration-form-wrapper input[type="password"],
body .re7-registration-form-wrapper input[type="tel"] {
    width: 100% !important;
    padding: 14px 16px !important;
    font-size: 14px !important;
    border-radius: 8px !important;
    border: 1.8px solid #dcdfe3 !important;
    background: #fafafa !important;
    box-shadow: none !important;
}

/* Focus */
body .re7-registration-form-wrapper input:focus {
    border-color: #00b4d8 !important;
    background: #ffffff !important;
    box-shadow: 0 0 0 4px rgba(0,180,216,0.18) !important;
}

/* Labels */
body .re7-registration-form-wrapper label {
    font-size: 13px !important;
    font-weight: 600 !important;
    color: #2c3e50 !important;
    margin-bottom: 6px !important;
    display: block !important;
}

/* Grille */
body .re7-registration-form-wrapper .two-columns {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 22px !important;
}

/* Bouton */
body .re7-registration-form-wrapper .btn-primary {
    width: 100% !important;
    padding: 16px !important;
    background: linear-gradient(135deg, #00b4d8 0%, #0096c7 100%) !important;
    color: #ffffff !important;
    font-size: 14px !important;
    font-weight: 700 !important;
    border-radius: 10px !important;
    border: none !important;
    cursor: pointer !important;
    text-transform: uppercase !important;
    letter-spacing: 0.6px !important;
    box-shadow: 0 8px 24px rgba(0,180,216,0.35) !important;
}

body .re7-registration-form-wrapper .btn-primary:hover {
    background: linear-gradient(135deg, #0096c7 0%, #0077b6 100%) !important;
    transform: translateY(-2px) !important;
}

/* Responsive */
@media (max-width: 768px) {
    body .re7-registration-form-wrapper {
        padding: 25px 20px !important;
    }

    body .re7-registration-form-wrapper .two-columns {
        grid-template-columns: 1fr !important;
    }
}

/* BOUTON CRÉER UN COMPTE – PREMIUM */
.re7-registration-form-wrapper .btn-primary {
    width: 100%;
    height: 56px;
    background: linear-gradient(135deg, #00b4d8 0%, #0096c7 100%);
    color: #ffffff;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 12px 30px rgba(0, 180, 216, 0.45);
}

/* Hover */
.re7-registration-form-wrapper .btn-primary:hover {
    background: linear-gradient(135deg, #0096c7 0%, #0077b6 100%);
    transform: translateY(-3px);
    box-shadow: 0 18px 38px rgba(0, 180, 216, 0.55);
}

/* Click */
.re7-registration-form-wrapper .btn-primary:active {
    transform: translateY(0);
    box-shadow: 0 8px 20px rgba(0, 180, 216, 0.35);
}

/* Désactivé */
.re7-registration-form-wrapper .btn-primary:disabled {
    background: #cfd8dc;
    cursor: not-allowed;
    box-shadow: none;
}
