/* FlairFly Voli Elicottero - stili */

/* ===== LISTA CARD ===== */
.flairfly-voli-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
    height: 100%;
}

.flairfly-volo-card--compact {
    display: grid;
    grid-template-columns: 120px minmax(0, 1.85fr) minmax(220px, 0.75fr);
    align-items: stretch;
    gap: 18px;
    min-height: 150px;
    background: #ffffff;
    border: 1px solid #dbe3e7;
    border-radius: 18px;
    padding: 14px;
    box-shadow: 0 8px 20px rgba(20, 35, 45, 0.04);
    overflow: hidden;
    transition: all 0.2s ease;
}

.flairfly-volo-card__col { min-width: 0; }
.flairfly-volo-card__col--media { display: flex; }
.flairfly-volo-card__col--main { display: flex; flex-direction: column; justify-content: center; }
.flairfly-volo-card__col--aside { display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center; }

.flairfly-volo-card__media { width: 100%; height: 100%; border-radius: 12px; overflow: hidden; }
.flairfly-volo-card__media img { width: 100%; height: 100%; object-fit: cover; }

.flairfly-volo-card__eyebrow { font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase; color: #c57a4a; font-weight: 700; margin-bottom: 6px; }
.flairfly-volo-card__title { font-size: 18px; color: #233e49; margin-bottom: 8px; }

.flairfly-volo-card__meta { display: flex; flex-direction: column; gap: 6px; }
.flairfly-volo-card__meta-row { display: flex; align-items: center; gap: 8px; font-size: 14px; }

.flairfly-volo-card__icon i { color: #c57a4a; font-size: 16px; width: 20px; text-align: center; }

.flairfly-volo-card__excerpt { font-size: 13px; line-height: 1.5; color: #5b6a72; margin-bottom: 12px; max-width: 220px; }

.flairfly-volo-card__cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 150px;
    height: 40px;
    border-radius: 10px;
    background: #c57a4a;
    border: 1px solid #c57a4a;
    color: #ffffff !important;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.2s ease;
    box-shadow: 0 8px 20px rgba(20, 35, 45, 0.2) !important;
}

.flairfly-volo-card__cta:hover { background: #ffffff; color: #c57a4a !important; }

@media (max-width: 1024px) {
    .flairfly-volo-card--compact { grid-template-columns: 120px 1fr; }
    .flairfly-volo-card__col--aside { grid-column: 1 / -1; }
}

/* ===== LISTA ROTTE ELICOTTERO (SEO) ===== */
.flairfly-routes-text-list {
    display: grid !important;
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    gap: 24px 28px;
}
.flairfly-routes-text-group { min-width: 0; }
.flairfly-routes-text-title { margin: 0 0 8px; font-size: 15px; line-height: 1.35; font-weight: 700 !important; color: #c57a4a; }
.flairfly-routes-text-items { margin: 0; padding: 0; list-style: none !important; }
.flairfly-routes-text-items li { list-style: none !important; margin: 0 0 5px 0; padding: 0; }
.flairfly-routes-text-items li::marker { content: ""; }
.flairfly-routes-text-items li::before { content: none !important; }
.flairfly-routes-text-item { display: flex; align-items: flex-start; gap: 8px; font-size: 13px; font-weight: 600 !important; line-height: 1.45; }
.flairfly-routes-text-arrow { color: #c57a4a; font-weight: 600 !important; line-height: 1.45; flex: 0 0 auto; margin-right: 2px; }
.flairfly-routes-text-link { color: #c57a4a !important; font-size: 13px; font-weight: 600 !important; text-decoration: none; }
.flairfly-routes-text-link:hover, .flairfly-routes-text-link:focus { color: #233e49 !important; font-size: 13px; font-weight: 600 !important; text-decoration: none; }
.flairfly-routes-text-link:visited { color: #c57a4a !important; font-size: 13px; font-weight: 600 !important; }

@media (max-width: 1024px) { .flairfly-routes-text-list { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; } }
@media (max-width: 640px)  { .flairfly-routes-text-list { grid-template-columns: 1fr !important; } }

/* ===== MAPPE (stile Empty Legs) ===== */
.ffve-map-wrap { margin: 0; position: relative; z-index: 1; }
.ffve-map-el {
    --ffve-h: 600px;
    display: block; width: 100%; height: var(--ffve-h);
    border: 2px solid #233E49; border-radius: 20px; overflow: hidden;
    position: relative; z-index: 0; background: #1b2f39; color: #fff;
    font-family: sans-serif; padding: 15px; box-sizing: border-box;
}
@media (max-width: 768px) { .ffve-map-el { height: min(var(--ffve-h), 520px); } }
.ffve-map-el .leaflet-container, .ffve-map-wrap .leaflet-container { font-family: Montserrat, sans-serif; }
.ffve-map-wrap .leaflet-tile-pane { filter: url(#ffveduo); }
.ffve-map-wrap .leaflet-popup-content-wrapper { border-radius: 16px; box-shadow: 0 4px 16px rgba(35, 62, 73, .25); }
.ffve-map-wrap .leaflet-popup-content { margin: 14px 16px; }
.ffve-map-wrap .leaflet-bar a { color: #233E49; }
.ffve-map-wrap .leaflet-bar { border: 0; box-shadow: 0 2px 8px rgba(35, 62, 73, .25); }
.ffve-map-wrap .leaflet-control-attribution { background: rgba(255, 255, 255, .7); font-size: 10px; }
.leaflet-tooltip.ffve-tip { background: #c5744a; color: #fff; border: 0; box-shadow: none; border-radius: 8px; font: 600 12px Montserrat, sans-serif; padding: 3px 8px; }
.leaflet-tooltip-top.ffve-tip:before { border-top-color: #c5744a; }
.leaflet-tooltip.ffve-tip-active { background: #3cae6b; color: #fff; border: 0; box-shadow: none; border-radius: 8px; font: 600 12px Montserrat, sans-serif; padding: 3px 8px; }
.leaflet-tooltip-top.ffve-tip-active:before { border-top-color: #3cae6b; }
.ffve-flight { padding: 8px 0; border-bottom: 1px solid #EAEAEA; }
.ffve-flight:last-child { border-bottom: 0; }
.ffve-flight b { color: #233E49; font-size: 13px; }
.ffve-flight .ffve-meta { font-size: 12px; color: #233E49; margin: 3px 0 8px; }
.ffve-flight .ffve-cta {
    display: block; text-align: center; padding: 8px; border-radius: 10px; background: #c57a4a;
    color: #fff !important; font-size: 12px; font-weight: 700; text-decoration: none;
}
.ffve-flight .ffve-cta:hover { background: #a86744; }

/* ===== LEGACY: vecchia form Elementor (togliere quando tutte le pagine usano gli shortcode nuovi) ===== */
.flairfly-route-form { display: grid; grid-template-columns: 1fr 1fr auto; gap: 16px; align-items: end; margin: 24px 0; }
.flairfly-route-field label { display: block; margin-bottom: 8px; font-weight: 600; }
.flairfly-route-field select, .flairfly-route-field button {
    width: 100%; min-height: 48px; border-radius: 12px; padding: 0 14px;
    border: 1px solid #d9d9d9; background: #ffffff; box-sizing: border-box;
}
.flairfly-route-field button { cursor: pointer; }
@media (max-width: 768px) { .flairfly-route-form { grid-template-columns: 1fr; } }

.ff-fields-row { display: grid; grid-template-columns: repeat(5, 15fr); gap: 15px; }
@media (max-width: 1024px) { .ff-fields-row { grid-template-columns: 1fr; } }

.flairfly-route-form label, .flairfly-form-group label, .flairfly-route-form .form-group label { display: block !important; margin-bottom: 4px !important; }

.flairfly-route-form button, .flairfly-route-form input[type="submit"], .flairfly-route-form .flairfly-btn, button.flairfly-btn {
    background-color: #c07a53 !important; color: #ffffff !important; border: none !important; border-radius: 6px !important;
    padding: 12px 24px !important; font-size: 16px !important; font-weight: 600 !important; box-shadow: none !important; opacity: 1 !important;
}
.flairfly-route-form button:hover, .flairfly-route-form input[type="submit"]:hover, .flairfly-route-form .flairfly-btn:hover, button.flairfly-btn:hover {
    background-color: #a86744 !important; color: #ffffff !important;
}
