/* ==========================================================================
   GoFlyzy — Comparatore generale (hotel · auto · transfer · esperienze)
   Design identico al comparatore voli: stessi token, stessa struttura.
   Scritto a mano. Nessun build step.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Token — identici al comparatore voli per coerenza di marca
   -------------------------------------------------------------------------- */

/* I token stanno su :root, non su .gf-cmp, perché l'intestazione comune viene
   inclusa anche nelle pagine del tema BookingCore, dove il body non ha la
   classe .gf-cmp: lì i colori non si risolverebbero e la barra uscirebbe nera
   su nero. Nessun conflitto con il tema, che usa solo variabili --tw-*. */
:root {
    --navy:        #021931;
    --navy-soft:   #0B2B4A;
    --brand:       #1B8EF2;
    --brand-dark:  #0B6FC7;
    --brand-tint:  #E8F3FE;
    --good:        #0FB37E;
    --good-tint:   #E6F7F1;
    --warn:        #E8890C;
    --warn-tint:   #FDF3E4;
    --ink:         #101C2E;
    --ink-2:       #46566E;
    --ink-3:       #74839A;
    --line:        #E3E8EF;
    --line-soft:   #EFF2F7;
    --surface:     #FFFFFF;
    --canvas:      #F5F7FA;

    --r-sm:  8px;
    --r-md:  12px;
    --r-lg:  18px;
    --r-xl:  26px;

    --shadow-sm:  0 1px 2px rgba(16,28,46,.06), 0 1px 3px rgba(16,28,46,.04);
    --shadow-md:  0 4px 12px rgba(16,28,46,.07), 0 1px 3px rgba(16,28,46,.05);
    --shadow-lg:  0 12px 32px rgba(16,28,46,.12), 0 2px 8px rgba(16,28,46,.06);
    --shadow-pop: 0 16px 44px rgba(16,28,46,.16);
    --ring:       0 0 0 3px rgba(27,142,242,.22);

    --gap: 16px;
    --pad: 20px;
}

/* La tipografia resta invece limitata alle pagine autonome: applicarla al tema
   ridisegnerebbe pagine costruite su un altro carattere e un'altra scala. */
.gf-cmp {
    font-family: Inter, "Segoe UI", system-ui, -apple-system, sans-serif;
    font-size: 15px;
    line-height: 1.5;
    color: var(--ink);
    -webkit-font-smoothing: antialiased;
    font-feature-settings: "cv05" 1, "ss01" 1;
}

/* L'intestazione comune porta con sé il proprio carattere: sulle pagine del
   tema il resto continua a usare il suo, ma la barra è identica ovunque. */
.gf-cmp-top,
.gf-pop__menu {
    font-family: Inter, "Segoe UI", system-ui, -apple-system, sans-serif;
    font-size: 15px;
    line-height: 1.5;
}

.gf-cmp-top *,
.gf-cmp-top *::before,
.gf-cmp-top *::after,
.gf-pop__menu * { box-sizing: border-box; }

.gf-cmp-top a,
.gf-pop__menu a { text-decoration: none; }

/* --------------------------------------------------------------------------
   2. Base
   -------------------------------------------------------------------------- */

.gf-cmp *,
.gf-cmp *::before,
.gf-cmp *::after { box-sizing: border-box; }

.gf-cmp h1, .gf-cmp h2, .gf-cmp h3, .gf-cmp h4,
.gf-cmp p, .gf-cmp figure, .gf-cmp ul { margin: 0; padding: 0; }

.gf-cmp ul { list-style: none; }

/* :where() azzera la specificità del reset, così le regole dei componenti
   scritte più avanti vincono senza rincorrere con selettori più forti.
   Senza, ".gf-cmp a" (una classe + un tipo) batterebbe ".gf-cmp-tab" (una
   classe soltanto) e le linguette dentro l'intestazione blu erediterebbero
   il bianco: testo bianco su scheda bianca, cioè invisibile. */
.gf-cmp :where(a) { color: inherit; text-decoration: none; }

.gf-cmp :where(button, input, select, textarea) { font: inherit; color: inherit; }

.gf-cmp .tnum { font-variant-numeric: tabular-nums; }

.gf-cmp-page {
    background: var(--canvas);
    min-height: 100vh;
    overflow-x: clip;
}

.gf-cmp-shell {
    width: 100%;
    max-width: 1180px;
    margin-inline: auto;
    padding-inline: 20px;
}

.gf-cmp-sr {
    position: absolute; width: 1px; height: 1px;
    padding: 0; margin: -1px; overflow: hidden;
    clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* --------------------------------------------------------------------------
   3. Barra superiore — identica al comparatore voli
   -------------------------------------------------------------------------- */

.gf-cmp-top {
    background: var(--navy);
    color: #fff;
}

.gf-cmp-top__bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--gap);
    height: 68px;
}

.gf-cmp-top__logo img {
    height: 30px;
    width: auto;
    display: block;
}

.gf-cmp-top__nav {
    display: flex;
    align-items: center;
    gap: 4px;
}

.gf-cmp-top__nav a {
    padding: 8px 14px;
    border-radius: 999px;
    font-size: .92rem;
    font-weight: 500;
    color: rgba(255,255,255,.82);
    transition: background .15s, color .15s;
}

.gf-cmp-top__nav a:hover {
    background: rgba(255,255,255,.12);
    color: #fff;
}

.gf-cmp-top__nav a.is-active {
    background: rgba(255,255,255,.16);
    color: #fff;
}

/* Lato destro: valuta, lingua, accesso. */

.gf-cmp-top__side {
    display: flex;
    align-items: center;
    gap: 4px;
    flex: none;
}

.gf-cmp-top__link {
    padding: 8px 12px;
    border-radius: 999px;
    font-size: .9rem;
    font-weight: 500;
    color: rgba(255,255,255,.82);
}

.gf-cmp-top__link:hover { background: rgba(255,255,255,.12); color: #fff; }

.gf-cmp-top__signup {
    padding: 8px 16px;
    border-radius: 999px;
    background: var(--brand);
    color: #fff;
    font-size: .9rem;
    font-weight: 600;
    white-space: nowrap;
    transition: background .15s;
}

.gf-cmp-top__signup:hover { background: var(--brand-dark); color: #fff; }

/* Tendine costruite con <details>: nessun JavaScript, quindi funzionano
   anche sulle pagine autonome, che non caricano Bootstrap. */

.gf-pop { position: relative; }

.gf-pop > summary {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 8px 12px;
    border-radius: 999px;
    font-size: .9rem;
    font-weight: 500;
    color: rgba(255,255,255,.82);
    cursor: pointer;
    list-style: none;
    white-space: nowrap;
}

.gf-pop > summary::-webkit-details-marker { display: none; }

/* La freccia ruota all'apertura: senza, non si capisce che è una tendina. */
.gf-pop > summary::after {
    content: '';
    width: 6px; height: 6px;
    border-right: 1.6px solid currentColor;
    border-bottom: 1.6px solid currentColor;
    transform: rotate(45deg) translate(-2px, -2px);
    transition: transform .15s;
}

.gf-pop[open] > summary::after { transform: rotate(225deg) translate(-1px, -1px); }
.gf-pop > summary:hover { background: rgba(255,255,255,.12); color: #fff; }
.gf-pop[open] > summary { background: rgba(255,255,255,.16); color: #fff; }

.gf-pop__menu {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    z-index: 60;
    min-width: 132px;
    max-height: 62vh;
    overflow-y: auto;
    padding: 6px;
    border: 1px solid var(--line);
    border-radius: var(--r-md);
    background: var(--surface);
    box-shadow: var(--shadow-lg);
}

.gf-pop__menu--wide { min-width: 196px; }

/* Ancorato a sinistra: una tendina di navigazione aperta verso destra
   uscirebbe dallo schermo quando la voce sta a inizio barra. */
.gf-pop__menu--left { right: auto; left: 0; }

/* Le voci di menu con figli devono somigliare alle altre voci, non ai
   comandi di servizio a destra. */
.gf-pop--nav > summary {
    padding: 8px 14px;
    font-size: .92rem;
}

.gf-pop__menu a {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border-radius: var(--r-sm);
    font-size: .9rem;
    color: var(--ink-2);
    white-space: nowrap;
}

.gf-pop__menu a:hover { background: var(--canvas); color: var(--ink); }

.gf-pop__menu a.is-active {
    background: var(--brand-tint);
    color: var(--brand-dark);
    font-weight: 600;
}

/* --------------------------------------------------------------------------
   4. Hero — pagina indice e pagina modulo ricerca
   -------------------------------------------------------------------------- */

.gf-cmp-hero {
    background: linear-gradient(168deg, var(--navy) 0%, #063560 62%, #0A4B85 100%);
    color: #fff;
    padding: 58px 0 46px;
    position: relative;
    overflow: hidden;
}

.gf-cmp-hero::after {
    content: "";
    position: absolute;
    inset: auto -10% -55% 40%;
    height: 420px;
    background: radial-gradient(ellipse at center, rgba(27,142,242,.40), transparent 68%);
    pointer-events: none;
}

.gf-cmp-hero__inner { position: relative; z-index: 1; }

.gf-cmp-hero h1 {
    font-size: clamp(1.9rem, 4vw, 2.85rem);
    line-height: 1.14;
    font-weight: 700;
    letter-spacing: -.022em;
    max-width: 20ch;
}

.gf-cmp-hero p {
    margin-top: 12px;
    font-size: 1.05rem;
    color: rgba(255,255,255,.78);
    max-width: 52ch;
}

/* Schede comparto nella pagina indice */
.gf-cmp-hero .gf-cmp-verticals {
    margin-top: 30px;
}

/* Apertura con fotografia: la foto sta sotto una velatura scura, perché il
   testo bianco su un'immagine chiara diventa illeggibile e nessuna foto è
   uniforme abbastanza da fidarsi. */
.gf-cmp-hero--foto {
    padding: 74px 0 62px;
    background:
        linear-gradient(168deg, rgba(2,25,49,.90) 0%, rgba(6,53,96,.80) 55%, rgba(10,75,133,.72) 100%),
        var(--foto, none) center/cover no-repeat,
        linear-gradient(168deg, var(--navy) 0%, #063560 62%, #0A4B85 100%);
}

.gf-cmp-hero__avviso {
    margin-top: 16px;
    padding: 11px 14px;
    border: 1px solid rgba(232,137,12,.55);
    border-radius: var(--r-md);
    background: rgba(232,137,12,.16);
    color: rgba(255,255,255,.92);
    font-size: .9rem;
    max-width: 70ch;
}

.gf-cmp-hero__avviso strong { color: #FFD79A; }

/* Comparsa in entrata: breve e in tre tempi, quel tanto che basta a far
   leggere prima il titolo e poi il modulo. */
@keyframes gf-sali {
    from { opacity: 0; transform: translateY(14px); }
    to   { opacity: 1; transform: none; }
}

.gf-anima {
    animation: gf-sali .5s cubic-bezier(.22,.61,.36,1) both;
}

.gf-anima--2 { animation-delay: .07s; }
.gf-anima--3 { animation-delay: .14s; }

/* --------------------------------------------------------------------------
   7-ter. Sezioni della pagina comparto
   -------------------------------------------------------------------------- */

.gf-sez { padding: 46px 0; border-bottom: 1px solid var(--line); }
.gf-sez--ultima { border-bottom: 0; padding-bottom: 66px; }

.gf-sez__titolo {
    font-size: clamp(1.25rem, 2.2vw, 1.55rem);
    font-weight: 680;
    letter-spacing: -.015em;
    color: var(--ink);
}

.gf-sez__sub {
    margin-top: 8px;
    color: var(--ink-2);
    max-width: 66ch;
}

/* --- Mete --- */

.gf-mete {
    margin-top: 24px;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(212px, 1fr));
    gap: 12px;
}

.gf-meta {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 16px 18px;
    border: 1px solid var(--line);
    border-radius: var(--r-md);
    background: var(--surface);
    box-shadow: var(--shadow-sm);
    transition: transform .18s cubic-bezier(.22,.61,.36,1), box-shadow .18s, border-color .18s;
}

.gf-meta:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
    border-color: var(--brand);
}

.gf-meta__iata {
    font-size: .74rem;
    font-weight: 700;
    letter-spacing: .09em;
    color: var(--brand-dark);
    text-transform: uppercase;
}

.gf-meta__nome {
    font-size: 1.06rem;
    font-weight: 650;
    color: var(--ink);
}

.gf-meta__azione {
    margin-top: 6px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: .84rem;
    font-weight: 600;
    color: var(--ink-3);
    transition: color .18s;
}

.gf-meta:hover .gf-meta__azione { color: var(--brand-dark); }
.gf-meta__azione svg { transition: transform .18s; }
.gf-meta:hover .gf-meta__azione svg { transform: translateX(3px); }

/* --- Come funziona --- */

.gf-passi {
    margin-top: 24px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(258px, 1fr));
    gap: 16px;
}

.gf-passo {
    padding: 22px;
    border: 1px solid var(--line);
    border-radius: var(--r-lg);
    background: var(--surface);
}

.gf-passo__n {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px; height: 30px;
    border-radius: 50%;
    background: var(--brand-tint);
    color: var(--brand-dark);
    font-weight: 700;
    font-size: .92rem;
}

.gf-passo h3 {
    margin-top: 14px;
    font-size: 1.02rem;
    font-weight: 650;
    color: var(--ink);
}

.gf-passo p {
    margin-top: 7px;
    font-size: .93rem;
    color: var(--ink-2);
    line-height: 1.62;
}

/* --- Altri comparti --- */

.gf-altri {
    margin-top: 22px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(206px, 1fr));
    gap: 12px;
}

.gf-altro {
    display: flex;
    flex-direction: column;
    gap: 3px;
    padding: 17px 19px;
    border: 1px solid var(--line);
    border-radius: var(--r-md);
    background: var(--canvas);
    transition: background .16s, border-color .16s, transform .18s;
}

.gf-altro:hover {
    background: var(--surface);
    border-color: var(--brand);
    transform: translateY(-2px);
}

.gf-altro__nome { font-weight: 650; color: var(--ink); }
.gf-altro__sub  { font-size: .86rem; color: var(--ink-3); }

/* --- Domande --- */

.gf-faq {
    margin-top: 22px;
    border: 1px solid var(--line);
    border-radius: var(--r-lg);
    background: var(--surface);
    overflow: hidden;
}

.gf-faq__voce + .gf-faq__voce { border-top: 1px solid var(--line-soft); }

.gf-faq__voce > summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 17px 20px;
    font-weight: 600;
    color: var(--ink);
    cursor: pointer;
    list-style: none;
}

.gf-faq__voce > summary::-webkit-details-marker { display: none; }

.gf-faq__voce > summary::after {
    content: '';
    flex: none;
    width: 8px; height: 8px;
    border-right: 1.8px solid var(--ink-3);
    border-bottom: 1.8px solid var(--ink-3);
    transform: rotate(45deg) translate(-2px, -2px);
    transition: transform .16s;
}

.gf-faq__voce[open] > summary::after { transform: rotate(225deg) translate(-1px, -1px); }
.gf-faq__voce > summary:hover { background: var(--canvas); }

.gf-faq__voce p {
    padding: 0 20px 18px;
    color: var(--ink-2);
    line-height: 1.68;
    max-width: 78ch;
}

/* --- Paesi --- */

.gf-paesi {
    margin-top: 22px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.gf-paese {
    padding: 9px 16px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: var(--surface);
    font-size: .9rem;
    font-weight: 500;
    color: var(--ink-2);
    transition: border-color .16s, color .16s, background .16s;
}

.gf-paese:hover {
    border-color: var(--brand);
    color: var(--brand-dark);
    background: var(--brand-tint);
}

/* --------------------------------------------------------------------------
   5. Schede comparto (pagina indice)
   -------------------------------------------------------------------------- */

.gf-cmp-verticals {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 12px;
}

.gf-cmp-vertical {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px;
    background: rgba(255,255,255,.10);
    border: 1px solid rgba(255,255,255,.18);
    border-radius: var(--r-lg);
    color: #fff;
    transition: background .15s, border-color .15s, transform .12s;
    text-decoration: none;
}

.gf-cmp-vertical:hover {
    background: rgba(255,255,255,.18);
    border-color: rgba(255,255,255,.36);
    color: #fff;
    transform: translateY(-2px);
}

.gf-cmp-vertical__icon {
    flex: none;
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
    border-radius: 12px;
    background: rgba(255,255,255,.15);
}

.gf-cmp-vertical__text b {
    display: block;
    font-size: 1.05rem;
    font-weight: 650;
}

.gf-cmp-vertical__text span {
    font-size: .85rem;
    opacity: .75;
}

/* --------------------------------------------------------------------------
   6. Testata risultati (compact)
   -------------------------------------------------------------------------- */

.gf-cmp-rehead {
    background: var(--navy);
    padding-bottom: 22px;
}

.gf-cmp-breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    padding-top: 22px;
    padding-bottom: 14px;
    font-size: .88rem;
    color: rgba(255,255,255,.7);
}

.gf-cmp-breadcrumb a { color: rgba(255,255,255,.7); }
.gf-cmp-breadcrumb a:hover { color: #fff; }
.gf-cmp-breadcrumb b { color: #fff; }

/* --------------------------------------------------------------------------
   7. Modulo di ricerca
   -------------------------------------------------------------------------- */

.gf-cmp-search {
    background: var(--surface);
    border-radius: var(--r-lg);
    box-shadow: var(--shadow-lg);
    padding: 14px;
}

.gf-cmp-hero .gf-cmp-search { margin-top: 30px; }

/* --------------------------------------------------------------------------
   7-bis. Ricerca dell'eroe in home
   Linguette costruite con radio nascoste: cambiano pannello senza JavaScript.
   -------------------------------------------------------------------------- */

.gf-home-search { position: relative; }

/* Le radio restano raggiungibili da tastiera: nasconderle con display:none le
   toglierebbe dall'ordine di tabulazione e le linguette diventerebbero
   inutilizzabili senza mouse. */
.gf-home-search__radio {
    position: absolute;
    width: 1px; height: 1px;
    opacity: 0;
    pointer-events: none;
}

.gf-home-search__tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 14px;
}

.gf-home-tab {
    display: inline-flex;
    align-items: center;
    padding: 9px 18px;
    border-radius: 999px;
    background: rgba(2,25,49,.55);
    backdrop-filter: blur(6px);
    color: rgba(255,255,255,.9);
    font-size: .92rem;
    font-weight: 500;
    cursor: pointer;
    margin: 0;
    transition: background .15s, color .15s;
}

.gf-home-tab:hover { background: rgba(2,25,49,.75); color: #fff; }

.gf-home-panel { display: none; }

/* I pannelli del comparatore non hanno una scheda propria, quello dei voli sì:
   darla a entrambi produrrebbe un riquadro dentro l'altro. */
.gf-home-panel:not(.gf-home-panel--flight) {
    background: var(--surface);
    border-radius: var(--r-lg);
    box-shadow: var(--shadow-lg);
    padding: 14px;
}

#gf-home-tab-flight:checked   ~ .gf-home-search__panels .gf-home-panel--flight,
#gf-home-tab-hotel:checked    ~ .gf-home-search__panels .gf-home-panel--hotel,
#gf-home-tab-car:checked      ~ .gf-home-search__panels .gf-home-panel--car,
#gf-home-tab-transfer:checked ~ .gf-home-search__panels .gf-home-panel--transfer,
#gf-home-tab-activity:checked ~ .gf-home-search__panels .gf-home-panel--activity { display: block; }

#gf-home-tab-flight:checked   ~ .gf-home-search__tabs label[for="gf-home-tab-flight"],
#gf-home-tab-hotel:checked    ~ .gf-home-search__tabs label[for="gf-home-tab-hotel"],
#gf-home-tab-car:checked      ~ .gf-home-search__tabs label[for="gf-home-tab-car"],
#gf-home-tab-transfer:checked ~ .gf-home-search__tabs label[for="gf-home-tab-transfer"],
#gf-home-tab-activity:checked ~ .gf-home-search__tabs label[for="gf-home-tab-activity"] {
    background: var(--surface);
    color: var(--ink);
    font-weight: 600;
}

/* La radio è invisibile, quindi la messa a fuoco da tastiera va segnalata
   altrove: senza, chi naviga con il tab non vede dove si trova. */
.gf-home-search__radio:focus-visible ~ .gf-home-search__tabs {
    box-shadow: var(--ring);
    border-radius: 999px;
}

.gf-cmp-search__tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    padding: 2px 2px 12px;
}

.gf-cmp-tab {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 7px 14px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: var(--surface);
    font-size: .88rem;
    font-weight: 500;
    color: var(--ink-2);
    cursor: pointer;
    text-decoration: none;
    transition: all .15s;
}

.gf-cmp-tab:hover { border-color: #C9D3E0; color: var(--ink); }

.gf-cmp-tab.is-active {
    background: var(--brand-tint);
    border-color: var(--brand);
    color: var(--brand-dark);
}

.gf-cmp-search__grid {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: stretch;
}

/* Campi del modulo */
.gf-cmp-field {
    position: relative;
    border: 1px solid var(--line);
    border-radius: var(--r-md);
    padding: 9px 14px;
    background: var(--surface);
    transition: border-color .15s, box-shadow .15s;
    flex: 1 1 180px;
    min-width: 0;
}

.gf-cmp-field--date   { flex: 0 1 164px; }
.gf-cmp-field--guests { flex: 0 1 140px; }
.gf-cmp-field--wide   { flex: 2 1 280px; }

.gf-cmp-field:focus-within {
    border-color: var(--brand);
    box-shadow: var(--ring);
}

.gf-cmp-field__label {
    display: block;
    font-size: .7rem;
    font-weight: 600;
    letter-spacing: .07em;
    text-transform: uppercase;
    color: var(--ink-3);
    margin-bottom: 1px;
}

.gf-cmp-field input,
.gf-cmp-field select {
    width: 100%;
    border: 0;
    outline: 0;
    background: transparent;
    font-size: .98rem;
    font-weight: 600;
    color: var(--ink);
    padding: 0;
    min-width: 0;
}

.gf-cmp-field input::placeholder {
    color: #A9B4C5;
    font-weight: 500;
}

.gf-cmp-field input[type="text"] { text-overflow: ellipsis; }

.gf-cmp-submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    min-width: 130px;
    padding: 0 26px;
    border: 0;
    border-radius: var(--r-md);
    background: var(--brand);
    color: #fff;
    font-size: 1rem;
    font-weight: 650;
    cursor: pointer;
    transition: background .15s, transform .06s;
    align-self: stretch;
}

.gf-cmp-submit:hover  { background: var(--brand-dark); }
.gf-cmp-submit:active { transform: translateY(1px); }

/* --------------------------------------------------------------------------
   8. Sommario ricerca (nel blocco risultati)
   -------------------------------------------------------------------------- */

.gf-cmp-summary {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 10px;
    padding: 22px 0 14px;
    color: #fff;
}

.gf-cmp-summary h1 {
    font-size: 1.3rem;
    font-weight: 680;
    letter-spacing: -.01em;
}

.gf-cmp-summary__meta {
    font-size: .9rem;
    color: rgba(255,255,255,.7);
}

/* --------------------------------------------------------------------------
   9. Barra risultati (conteggio + ordinamento)
   -------------------------------------------------------------------------- */

.gf-cmp-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    align-items: center;
    justify-content: space-between;
    padding: 20px 0 14px;
}

.gf-cmp-count {
    font-size: .95rem;
    color: var(--ink-2);
}

.gf-cmp-count strong { color: var(--ink); }

.gf-cmp-save {
    color: var(--good);
    font-weight: 650;
}

.gf-cmp-sort {
    display: flex;
    gap: 0;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--r-md);
    overflow: hidden;
}

.gf-cmp-sort a {
    padding: 9px 16px;
    font-size: .88rem;
    font-weight: 500;
    color: var(--ink-2);
    border-right: 1px solid var(--line-soft);
    transition: background .14s, color .14s;
    text-decoration: none;
}

.gf-cmp-sort a:last-child { border-right: 0; }
.gf-cmp-sort a:hover { background: var(--line-soft); color: var(--ink); }

.gf-cmp-sort a.is-active {
    background: var(--brand-tint);
    color: var(--brand-dark);
    font-weight: 650;
    box-shadow: inset 0 -2.5px 0 var(--brand);
}

/* --------------------------------------------------------------------------
   10. Scheda offerta
   -------------------------------------------------------------------------- */

.gf-cmp-offer {
    display: grid;
    grid-template-columns: 1fr 200px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--r-lg);
    margin-bottom: 12px;
    overflow: hidden;
    transition: border-color .15s, box-shadow .15s;
}

.gf-cmp-offer:hover {
    border-color: #C9D8EA;
    box-shadow: var(--shadow-md);
}

/* Bandiera "prezzo più basso" */
.gf-cmp-offer__flag {
    grid-column: 1 / -1;
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 7px var(--pad);
    background: var(--good-tint);
    color: #0A7D58;
    font-size: .8rem;
    font-weight: 650;
}

.gf-cmp-offer__body {
    padding: var(--pad);
}

.gf-cmp-offer__title {
    font-size: 1.06rem;
    font-weight: 650;
    margin-bottom: 3px;
}

.gf-cmp-offer__sub {
    font-size: .88rem;
    color: var(--ink-3);
    margin-bottom: 10px;
}

/* Etichette rapide: colazione inclusa, cancellazione gratuita... */
.gf-cmp-offer__tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 10px;
}

.gf-cmp-tag {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 3px 9px;
    border-radius: 6px;
    font-size: .76rem;
    font-weight: 600;
    background: var(--canvas);
    color: var(--ink-2);
}

.gf-cmp-tag--good { background: var(--good-tint); color: #0A7D58; }
.gf-cmp-tag--info { background: var(--brand-tint); color: var(--brand-dark); }

/* Dati strutturati: distanza dal centro, posti, bagagli... */
.gf-cmp-offer__facts {
    display: flex;
    flex-wrap: wrap;
    gap: 4px 14px;
    font-size: .82rem;
    color: var(--ink-3);
    margin-bottom: 10px;
}

.gf-cmp-offer__facts dt { display: none; }
.gf-cmp-offer__facts dd { margin: 0; }
.gf-cmp-offer__facts dd::before { content: attr(data-label) ": "; font-weight: 550; color: var(--ink-2); }

/* Rating */
.gf-cmp-offer__rating {
    font-size: .88rem;
    color: var(--ink-2);
}

.gf-cmp-offer__rating b {
    font-size: 1rem;
    color: var(--ink);
    font-weight: 700;
}

/* Colonna destra: prezzo + pulsante */
.gf-cmp-offer__buy {
    border-left: 1px solid var(--line-soft);
    padding: var(--pad);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: stretch;
    gap: 9px;
    background: #FCFDFE;
}

.gf-cmp-price {
    text-align: right;
    line-height: 1.1;
}

.gf-cmp-price__v {
    font-size: 1.62rem;
    font-weight: 750;
    letter-spacing: -.028em;
    color: var(--ink);
}

.gf-cmp-offer--cheapest .gf-cmp-price__v { color: var(--good); }

.gf-cmp-price__unit {
    font-size: .76rem;
    color: var(--ink-3);
    margin-top: 2px;
}

.gf-cmp-price__source {
    font-size: .74rem;
    color: var(--ink-3);
    text-align: center;
}

.gf-cmp-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    padding: 11px 16px;
    border: 0;
    border-radius: var(--r-sm);
    font-size: .93rem;
    font-weight: 650;
    cursor: pointer;
    transition: background .15s, border-color .15s;
    width: 100%;
    text-decoration: none;
}

.gf-cmp-cta--own {
    background: var(--brand);
    color: #fff;
}

.gf-cmp-cta--own:hover { background: var(--brand-dark); color: #fff; }

.gf-cmp-cta--out {
    background: var(--surface);
    border: 1.5px solid var(--line);
    color: var(--ink);
}

.gf-cmp-cta--out:hover { border-color: var(--brand); color: var(--brand-dark); }

/* --------------------------------------------------------------------------
   11. Avvisi (demo / parziale)
   -------------------------------------------------------------------------- */

.gf-cmp-note {
    display: flex;
    gap: 10px;
    padding: 12px 16px;
    border-radius: var(--r-md);
    font-size: .88rem;
    margin-bottom: 14px;
}

.gf-cmp-note--warn { background: var(--warn-tint); color: #7A4805; }
.gf-cmp-note--info { background: var(--brand-tint); color: var(--brand-dark); }

/* --------------------------------------------------------------------------
   12. Stato vuoto
   -------------------------------------------------------------------------- */

.gf-cmp-empty {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--r-lg);
    padding: 56px 28px;
    text-align: center;
    margin-top: 8px;
}

.gf-cmp-empty h2 {
    font-size: 1.12rem;
    font-weight: 650;
    margin-bottom: 6px;
}

.gf-cmp-empty p {
    color: var(--ink-3);
    max-width: 46ch;
    margin-inline: auto;
    margin-top: 6px;
}

/* --------------------------------------------------------------------------
   13. Nota a piè di pagina
   -------------------------------------------------------------------------- */

.gf-cmp-footer-note {
    font-size: .8rem;
    color: var(--ink-3);
    padding: 20px 0 48px;
}

/* --------------------------------------------------------------------------
   14. Destinazioni (pagina indice) — sezione fuori dall'hero
   -------------------------------------------------------------------------- */

.gf-cmp-body {
    padding: 44px 0 64px;
}

/* --------------------------------------------------------------------------
   15. Responsive
   -------------------------------------------------------------------------- */

@media (max-width: 1080px) {
    .gf-cmp-field, .gf-cmp-field--date, .gf-cmp-field--guests { flex: 1 1 calc(50% - 8px); }
    .gf-cmp-submit { flex: 1 1 100%; padding: 13px 26px; }
}

@media (max-width: 900px) {
    .gf-cmp-top__bar {
        height: auto;
        padding-block: 12px;
        gap: 12px;
    }

    .gf-cmp-top__nav {
        min-width: 0;
        overflow-x: auto;
        scrollbar-width: none;
        -webkit-overflow-scrolling: touch;
    }

    .gf-cmp-top__nav::-webkit-scrollbar { display: none; }
    .gf-cmp-top__nav a { white-space: nowrap; }
    .gf-cmp-top__logo { flex: none; }

    .gf-cmp-offer { grid-template-columns: 1fr; }

    .gf-cmp-offer__buy {
        border-left: 0;
        border-top: 1px solid var(--line-soft);
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
    }

    .gf-cmp-price { text-align: left; }
    .gf-cmp-cta   { width: auto; min-width: 140px; }
    .gf-cmp-price__source { display: none; }
}

@media (max-width: 620px) {
    .gf-cmp { font-size: 14.5px; }
    .gf-cmp-hero { padding: 36px 0 40px; }
    .gf-cmp-field, .gf-cmp-field--date, .gf-cmp-field--guests { flex: 1 1 100%; }
    .gf-cmp-verticals { grid-template-columns: 1fr 1fr; }
    .gf-cmp-sort { flex-direction: column; }
    .gf-cmp-sort a { border-right: 0; border-bottom: 1px solid var(--line-soft); }
    .gf-cmp-sort a:last-child { border-bottom: 0; }
}

@media (prefers-reduced-motion: reduce) {
    .gf-cmp *, .gf-cmp *::before, .gf-cmp *::after {
        transition-duration: .01ms !important;
        animation-duration:  .01ms !important;
    }
}
