/* --- AMÉLIORATION DE LA VISIBILITÉ DES CHAMPS (MODIFICATION ANNONCE WP RENTALS) --- */

/* Cible tous les champs de texte, zones de texte et listes déroulantes de la page d'édition */
.page-template-user_dashboard_edit_listing input[type="text"], 
.page-template-user_dashboard_edit_listing input[type="number"], 
.page-template-user_dashboard_edit_listing textarea, 
.page-template-user_dashboard_edit_listing select,
.page-template-user_dashboard_edit_listing .form-control {
    border: 2px solid #555555 !important; /* Bordure grise très foncée */
    background-color: #fcfcfc !important; /* Fond très légèrement grisé pour se détacher du blanc */
    color: #222222 !important; /* Texte écrit en noir très foncé */
    border-radius: 4px !important; /* Arrondi léger des angles */
}

/* Effet visuel très prononcé quand l'utilisateur clique ou tape dans le champ */
.page-template-user_dashboard_edit_listing input[type="text"]:focus, 
.page-template-user_dashboard_edit_listing input[type="number"]:focus, 
.page-template-user_dashboard_edit_listing textarea:focus, 
.page-template-user_dashboard_edit_listing select:focus,
.page-template-user_dashboard_edit_listing .form-control:focus {
    border-color: #0073aa !important; /* La bordure devient bleue WordPress au clic */
    background-color: #ffffff !important; /* Le fond redevient blanc pur */
    box-shadow: 0 0 5px rgba(0, 115, 170, 0.5) !important; /* Léger halo lumineux */
}

/* Si vous utilisez des listes déroulantes stylisées par Bootstrap (Selectpicker) */
.page-template-user_dashboard_edit_listing .bootstrap-select .dropdown-toggle {
    border: 2px solid #555555 !important;
    background-color: #fcfcfc !important;
    color: #222222 !important;
}


/* 1. Cache le bouton pour les visiteurs déconnectés */
#submit_action { 
    display: none !important; 
}

/* 2. Version ultra-puissante pour forcer l'affichage quand on est connecté */
body.logged-in #submit_action, 
html body .logged-in #submit_action { 
    display: inline-block !important; 
}