/*
 Theme Name:   Homey Child
 Theme URI:    https://www.zaynde.com
 Description:  Tema child per Homey – personalizzazioni e override sicuri
 Author:       Zaynde
 Author URI:   https://www.zaynde.com
 Template:     homey
 Version:      1.0.0
 License:      GNU General Public License v2 or later
 License URI:  http://www.gnu.org/licenses/gpl-2.0.html
 Tags:         custom, child theme, homey
 Text Domain:  homey-child
*/

/* ========== Importa lo stile del tema genitore ========== */
@import url("../homey/style.css");

/* ========== Personalizzazioni aggiuntive ========== */

/* Esempio: Cambiare colore link */
a {
  color: #1a73e8;
}
a:hover {
  color: #1257b1;
}


/* Aggiungi qui sotto le tue personalizzazioni */

/* Zaynde: titoli sezioni Membership */
.z-cat-title {
  margin: 20px 0 12px;
  border-bottom: 2px solid #eee;
  padding-bottom: 6px;
  color: #222;
  font-weight: 600;
  margin-bottom: 22px;
}
.z-cat-title--big {
  font-size: 2rem;
  line-height: 1.25;
  display: flex;
  align-items: center;
  gap: 8px;
}
.z-cat-title .z-cat-icon {
  width: 27px;
  height: 27px;
  display: inline-block;
  vertical-align: middle;
}

/* === Scheda alloggi solo Utenti - modifiche colori === */
/* === AGGIORNA (verde pieno, senza bordo, no hover bianco) === */
body button.btn.btn-dark-grey.btn-save-listing,
body button.btn.btn-dark-grey.btn-save-experience {
  color: #fff !important;
  background-color: c7c4bd !important;
  border: none !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  font-weight: 600;
}

/* Hover (rimane verde, solo leggermente più scuro) */
body button.btn.btn-dark-grey.btn-save-listing:hover,
body button.btn.btn-dark-grey.btn-save-experience:hover {
  background-color: #76b53a !important;
  color: #fff !important;
}

/* === VISUALIZZA (azzurro pieno, senza bordo, no hover bianco) === */
body a.btn.btn-dark-grey.btn-preview-listing,
body a.btn.btn-dark-grey.btn-preview-experience {
  color: #fff !important;
  background-color: #b4bcc1 !important;
  border: none !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  font-weight: 600;
}

/* Hover (leggermente più scuro) */
body a.btn.btn-dark-grey.btn-preview-listing:hover,
body a.btn.btn-dark-grey.btn-preview-experience:hover {
  background-color: #6ac2d3 !important;
  color: #fff !important;
}

/* === METTI IN EVIDENZA (arancio con bordo arrotondato e hover bianco) === */
body a.btn.btn-secondary.btn-slim {
  color: #cd791a !important;
  background-color: #fff !important;
  border: 2px solid #cd791a !important;
  border-radius: 6px !important;
  transition: all 0.25s ease-in-out;
  font-weight: 600;
}

/* Hover (bianco con testo arancio) */
body a.btn.btn-secondary.btn-slim:hover {
  color: #fff !important;
  background-color: #cd791a !important;
  border-color: #cd791a !important;
}

/* ============================================================
   PERSONALIZZAZIONE RICERCA HOMEY – BOTTONE FILTRI E JQUERY UI
   ============================================================ */

/* --- Bottone outlined rosa (colore tema) --- */
.btn-grey-outlined,
.btn-grey-outlined:focus {
    color: #f15e75 !important;
    background-color: transparent !important;
    border: 1px solid #f15e75 !important;
    position: relative;
    padding: 8px 16px;
    transition: all 0.3s ease;
}

/* Rimuove ogni testo generato via CSS (nessun ::before) */
.btn-grey-outlined::before {
    content: none !important;
}

/* --- Bottone "Filtri" in alto (toggle) --- */
.btn-filter-toggle i {
    font-size: 24px;              /* Dimensione icona */
    line-height: 1;
    vertical-align: middle;
    transition: transform 0.2s ease;
}

.btn-filter-toggle:hover i {
    transform: scale(1.1);        /* Effetto hover delicato */
}

.btn-filter-toggle .btn-label {
    margin-left: 8px;
    font-weight: 600;
    color: #f15e75;
    white-space: nowrap;
}

/* Su mobile: mostra solo l’icona per risparmiare spazio */
@media (max-width: 480px) {
    .btn-filter-toggle .btn-label {
        display: none;
    }
}

/* --- Pulsanti interni al pannello Filtri (Reimposta / Applica) --- */
#half-map-search-collapse .btn-grey-outlined {
    padding: revert;              /* Ripristina il padding originale */
}

/* ==================================================================
   PERSONALIZZAZIONE BARRA RADIUS E PULSANTI JQUERY UI FILTRO RICERCA 
   ================================================================ */

.ui-state-default,
.ui-widget-content .ui-state-default,
.ui-widget-header .ui-state-default,
.ui-button,
html .ui-button.ui-state-disabled:hover,
html .ui-button.ui-state-disabled:active {
    border: 1px solid #f15e75 !important;
    background: #fff !important;
    font-weight: 600;
    color: #f15e75 !important;
    transition: all 0.3s ease;
}

/* Hover */
.ui-state-default:hover,
.ui-widget-content .ui-state-default:hover,
.ui-widget-header .ui-state-default:hover,
.ui-button:hover {
    background: #f15e75 !important;
    color: #fff !important;
    border-color: #f15e75 !important;
}

/* Stato attivo o focus */
.ui-state-active,
.ui-button:active,
.ui-button:focus {
    background: #f15e75 !important;
    border-color: #f15e75 !important;
    color: #fff !important;
}

/* Stato disabilitato */
.ui-state-disabled,
.ui-button.ui-state-disabled {
    opacity: 0.6;
    background: #fff !important;
    color: #f15e75 !important;
    border: 1px solid #f15e75 !important;
}

/* Contenitori jQuery UI (es. slider Radius) */
.ui-widget.ui-widget-content {
    border: 1px solid #f15e75 !important;
    border-radius: 6px;
    box-shadow: 0 0 6px rgba(241, 94, 117, 0.3);
}

/* === Bottone FILTRI (desktop) — bordo 2px, icona dinamica, testo 24px === */
.half-map-search .half-map-search-buttons .btn-filter-toggle {
    position: relative;
    display: inline-grid !important;
    place-items: center !important;
    width: 40px;
    height: 40px;
    padding: 0 !important;
    border: 2px solid #f15e75 !important;
    border-radius: 4px !important;
    box-shadow: none !important;
    outline: none !important;
    background-color: transparent !important;
    transition: all 0.25s ease-in-out;
}

/* icona centrata e colore base */
.half-map-search .half-map-search-buttons .btn-filter-toggle i {
    font-size: 22px;
    line-height: 1;
    display: block;
    margin: 0;
    color: #2e2728;
    transition: color 0.25s ease-in-out, transform 0.2s ease;
}

/* etichetta "Filtri" a sinistra — stesso font del pulsante "Cerca" */
.half-map-search .half-map-search-buttons .btn-filter-toggle .btn-label {
    position: absolute;
    right: 100%;
    margin-right: 14px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 16px;
    font-family: "Quicksand", sans-serif;
    font-weight: 600;        
    color: #f15e75;
    white-space: nowrap;
    line-height: 1;
}

/* hover: bordo e icona evidenziati */
.half-map-search .half-map-search-buttons .btn-filter-toggle:hover {
    border-color: #f15e75 !important;
}

.half-map-search .half-map-search-buttons .btn-filter-toggle:hover i {
    color: #f15e75;
    transform: scale(1.05);
}

/* stato attivo (collapse aperto o cliccato) */
.half-map-search .half-map-search-buttons .btn-filter-toggle[aria-expanded="true"],
.half-map-search .half-map-search-buttons .btn-filter-toggle:active {
    border-color: #f15e75 !important;
    background-color: transparent !important;
}

.half-map-search .half-map-search-buttons .btn-filter-toggle[aria-expanded="true"] i,
.half-map-search .half-map-search-buttons .btn-filter-toggle:active i {
    color: #f15e75 !important;
}

/* mobile: mostra solo icona */
@media (max-width: 480px) {
  .half-map-search .half-map-search-buttons .btn-filter-toggle .btn-label {
    display: none;
  }
}