/* ==========================================================================
   Fafa Conciergerie — habillage (premier passage : lisibilité fiche logement)
   ========================================================================== */

/* Bouton « Voir plus » de la description : lisible et cliquable */
#view_more_desc {
    display: inline-block;
    margin-top: 10px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: underline;
    text-underline-offset: 3px;
}

/* Description : respiration typographique */
#listing_description_content p {
    line-height: 1.7;
}

/* Équipements : ne montrer que ce que le logement offre vraiment
   (le thème liste TOUS les termes, avec ✘ barré pour les absents) */
.listing_detail.not_present {
    display: none;
}

/* Guides : le compteur de commentaires n'apporte rien */
.span_comments {
    display: none;
}

/* ==========================================================================
   Prix « à partir de » + masquage des frais de ménage
   Le prix affiché est un PLANCHER (tarification dynamique PriceLabs) : on le
   présente en « à partir de », jamais « /nuit » (qui laisse croire à un prix fixe).
   ========================================================================== */

/* Cartes (slider, listes, home) : retire « /nuit », ajoute « À partir de » dessus */
.price_unit .pernight { display: none; }
.price_unit::before {
    content: "À partir de";
    display: block;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: .02em;
    opacity: .72;
    line-height: 1.1;
}
html[lang^="en"] .price_unit::before { content: "From"; }

/* Barre prix de la fiche (hero / sticky) : « 42 € par nuit » -> « À partir de 42 € » */
.listing_main_image_price .pernight_label { display: none; }
.listing_main_image_price::before {
    content: "À partir de ";
    font-size: .72em;
    font-weight: 600;
    opacity: .78;
}
html[lang^="en"] .listing_main_image_price::before { content: "From "; }

/* Fiche — ligne « Frais de ménage » des détails : masquée (repliée dans le prix) */
.listing_detail.list_detail_prop_price_cleaning_fee { display: none; }

/* Récap de réservation (AJAX) + facture : ligne ménage masquée.
   Le montant reste inclus dans le total ; le JS le replie dans la ligne « Prix ». */
.invoice_row:has(#cleaning-fee),
.booking_price_line:has(.cleaning_fee_value),
.cost_row:has(.cleaning_fee_value) { display: none; }

/* ==========================================================================
   Composants éditoriaux (pages À propos, Services…)
   ========================================================================== */

/* Carte blanche élégante (appliquée aux colonnes Elementor via classe) */
.fafa-card-inner,
.fafa-card > .elementor-widget-wrap {
    background: #ffffff;
    border-radius: 14px;
    box-shadow: 0 6px 24px rgba(20, 21, 57, 0.07);
    padding: 30px 26px !important;
    height: 100%;
    transition: transform .18s ease, box-shadow .18s ease;
}
.fafa-card-inner:hover,
.fafa-card > .elementor-widget-wrap:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 32px rgba(20, 21, 57, 0.12);
}
.fafa-card-inner .fafa-card-emoji,
.fafa-card .fafa-card-emoji {
    font-size: 34px;
    line-height: 1;
    display: block;
    margin-bottom: 12px;
}

/* Timeline en étapes numérotées */
.fafa-steps {
    display: flex;
    gap: 24px;
    flex-wrap: wrap;
    counter-reset: fafa-step;
    margin-top: 10px;
}
.fafa-step {
    flex: 1 1 200px;
    position: relative;
    background: #ffffff;
    border-radius: 14px;
    box-shadow: 0 6px 24px rgba(20, 21, 57, 0.07);
    padding: 54px 22px 24px;
}
.fafa-step::before {
    counter-increment: fafa-step;
    content: counter(fafa-step);
    position: absolute;
    top: -22px;
    left: 22px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: #cd1b6d;
    color: #fff;
    font-weight: 700;
    font-size: 19px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(205, 27, 109, 0.35);
}
.fafa-step h4 {
    margin: 0 0 8px;
    font-size: 17px;
}
.fafa-step p {
    margin: 0;
    font-size: 14.5px;
    line-height: 1.6;
    color: #5a5c72;
}

/* Cartes photo (zones d'intervention) */
.fafa-zones {
    display: flex;
    gap: 22px;
    flex-wrap: wrap;
}
.fafa-zone {
    flex: 1 1 240px;
    min-height: 230px;
    border-radius: 14px;
    background-size: cover;
    background-position: center;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: flex-end;
    text-decoration: none;
    box-shadow: 0 6px 24px rgba(20, 21, 57, 0.15);
    transition: transform .18s ease;
}
.fafa-zone:hover { transform: translateY(-3px); }
.fafa-zone::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(20,21,57,0) 35%, rgba(20,21,57,.82) 100%);
}
.fafa-zone-label {
    position: relative;
    z-index: 1;
    padding: 18px 20px;
    color: #fff;
}
.fafa-zone-label strong {
    display: block;
    font-size: 21px;
}
.fafa-zone-label span {
    font-size: 13.5px;
    opacity: .85;
}

/* Tarifs de préparation initiale (page À propos) */
.fafa-prep-price {
    margin: 14px 0 0;
    font-size: 34px;
    font-weight: 700;
    color: #cd1b6d;
    line-height: 1;
}
.fafa-prep-price span {
    font-size: 15px;
    font-weight: 600;
    color: #5a5c72;
    margin-left: 3px;
}

/* Gros chiffre (tarif) */
.fafa-bignum .elementor-heading-title {
    font-size: 76px !important;
    line-height: 1;
    color: #cd1b6d;
}

/* Icône de carte : pastille douce + Font Awesome (remplace les emojis) */
.fafa-card-icon {
    width: 58px;
    height: 58px;
    border-radius: 50%;
    background: rgba(205, 27, 109, 0.09);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
}
.fafa-card-icon i {
    font-size: 22px;
    color: #cd1b6d;
    line-height: 1;
}

/* ==========================================================================
   Modale de paiement Stripe : lisibilité et élégance
   (le thème style les champs Stripe en TEXTE BLANC — illisible sur fond clair)
   ========================================================================== */
.wpestate_form1-card {
    background: #141539;
    border-radius: 10px;
    padding: 18px 16px;
    margin: 12px 0 6px;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}
#card-errors {
    color: #cd1b6d;
    font-size: 13.5px;
    margin: 8px 0;
    min-height: 18px;
}
#instant_booking_modal .modal-content,
.wpestate_stripe_form .modal-content {
    border-radius: 14px;
}
#instant_booking_modal input[type="text"],
#instant_booking_modal input[type="email"],
#instant_booking_modal input[type="tel"],
#wpestate_form_name,
#wpestate_form_email {
    width: 100%;
    border: 1px solid #e2e3ef;
    border-radius: 10px;
    padding: 12px 14px;
    margin-bottom: 10px;
    font-size: 15px;
}
#wpestate_stripe_form_button_sumit {
    background: #cd1b6d;
    color: #fff;
    border: 0;
    border-radius: 26px;
    padding: 14px 30px;
    font-weight: 600;
    cursor: pointer;
    width: 100%;
    margin-top: 8px;
    transition: background .15s ease;
}
#wpestate_stripe_form_button_sumit:hover {
    background: #b0175d;
}
#wpestate_stripe_alert {
    color: #5a5c72;
}
#wpestate_stripe_alert_succes {
    color: #1a9b62;
    font-weight: 600;
}

/* Widget avis : masque la ligne « Évaluation Airbnb : 4.6 sur 5… » */
.ti-widget .ti-rating-text {
    display: none !important;
}

/* ==========================================================================
   Avis voyageurs (source Beds24/Airbnb)
   ========================================================================== */
.fafa-reviews {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    margin-top: 14px;
}
.fafa-review-card {
    background: #fff;
    border: 1px solid #ecedf5;
    border-radius: 14px;
    padding: 20px;
    box-shadow: 0 4px 16px rgba(20, 21, 57, 0.05);
}
.fafa-review-head {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 10px;
}
.fafa-review-avatar {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: #141539;
    color: #fff;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 42px;
    font-size: 17px;
}
.fafa-review-meta {
    display: flex;
    flex-direction: column;
    line-height: 1.3;
}
.fafa-review-meta strong { font-size: 15px; }
.fafa-review-meta em {
    font-style: normal;
    font-size: 12.5px;
    color: #8a8ca6;
}
.fafa-review-source {
    margin-left: auto;
    color: #ff5a5f;
    font-size: 19px;
}
.fafa-review-stars {
    color: #cd1b6d;
    font-size: 13px;
    letter-spacing: 2px;
    margin-bottom: 8px;
}
.fafa-review-text {
    margin: 0;
    font-size: 14.5px;
    line-height: 1.65;
    color: #3f415c;
}
.fafa-review-prop {
    display: inline-block;
    margin-top: 10px;
    font-size: 12.5px;
    color: #8a8ca6;
}
.fafa-reviews-badge {
    font-size: 14px;
    color: #cd1b6d;
    font-weight: 600;
    margin-left: 10px;
}
.fafa-reviews-panel { margin-top: 20px; }

/* Badge source Booking.com sur les cartes avis */
.fafa-src-booking {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    border-radius: 5px;
    background: #003580;
    color: #fff;
    font-size: 12px;
    font-weight: 700;
}

/* Badge source « avis du site » */
.fafa-src-site {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    border-radius: 5px;
    background: #cd1b6d;
    color: #fff;
    font-size: 12px;
    font-weight: 700;
}

/* Page contact : champ « site web » superflu masqué, cartes d'orientation */
.third-form.last-third {
    display: none;
}
.fafa-contact-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 22px;
    margin: 18px 0 30px;
}

/* ==========================================================================
   Guides de bienvenue (par logement, protégés par mot de passe)
   ========================================================================== */
.fafa-guide-intro {
    font-size: 16px;
    line-height: 1.7;
    color: #3f415c;
    max-width: 720px;
}
.fafa-guide h3 {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 28px 0 8px;
    font-size: 19px;
    color: #141539;
}
.fafa-guide h3 i {
    color: #cd1b6d;
    font-size: 17px;
    width: 24px;
    text-align: center;
}
.fafa-guide p { line-height: 1.7; color: #3f415c; }

/* Index des guides : cartes par logement */
.fafa-guide-cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
    gap: 18px;
    margin-top: 22px;
}
.fafa-guide-card {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 22px 20px;
    background: #fff;
    border: 1px solid #ecedf5;
    border-radius: 14px;
    box-shadow: 0 4px 16px rgba(20, 21, 57, .05);
    text-decoration: none;
    transition: transform .18s ease, box-shadow .18s ease;
}
.fafa-guide-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 28px rgba(20, 21, 57, .12);
}
.fafa-guide-lock {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: rgba(205, 27, 109, .09);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 8px;
}
.fafa-guide-lock i { color: #cd1b6d; font-size: 16px; }
.fafa-guide-card strong { font-size: 17px; color: #141539; }
.fafa-guide-city { font-size: 13px; color: #8a8ca6; }
.fafa-guide-cta {
    margin-top: 8px;
    font-size: 13.5px;
    font-weight: 600;
    color: #cd1b6d;
}

/* Sélecteur de langue FR/EN dans le menu */
.fafa-lang-switcher { display: flex; align-items: center; gap: 4px; }
/* Switcher relogé hors du flux : positionné à gauche de la zone compte
   sans contribuer à sa largeur (évite le chevauchement menu/compte) */
.user_menu .fafa-lang-in-header {
    position: absolute;
    right: calc(100% + 6px);
    top: 50%;
    transform: translateY(-50%);
    display: inline-flex;
    align-items: center;
    gap: 4px;
    line-height: normal;
    white-space: nowrap;
}
.fafa-lang-switcher .fafa-lang {
    display: inline-block;
    padding: 3px 8px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 700;
    opacity: .6;
}
.fafa-lang-switcher .fafa-lang-current {
    opacity: 1;
    background: rgba(205, 27, 109, 0.12);
    color: #cd1b6d;
}

/* Nav items : espacement légèrement resserré pour libérer de la place
   à droite (zone compte + switcher de langue) */
#access ul.menu > li > a {
    padding-left: 16px;
    padding-right: 16px;
}

/* Le menu est centré dans #access : on décale l'axe de centrage vers la
   gauche pour dégager la zone compte + switcher de langue à droite. */
#access {
    padding-right: 150px;
    box-sizing: border-box;
}

/* Anti-flash : cache le switcher tant qu'il est dans le menu desktop
   (le JS le déplace ensuite dans la zone compte, où il s'affiche) */
ul.menu > .fafa-lang-switcher { display: none; }
