/* InfoIschia Search Results Page Styles
   Extracted from search_results.html inline styles. */

/* ============================================
   SEARCH BAR (same as Home)
   ============================================ */
.search-box {
    background: white;
    border: none;
    border-radius: 70px;
    box-shadow: 0 12px 60px rgba(0,0,0,0.22);
    padding: 0;
    position: relative;
    z-index: 10;
    overflow: hidden;
}
.search-box .search-fields {
    display: flex;
    align-items: stretch;
}
.search-box .search-field {
    flex: 1;
    padding: 30px 40px;
    cursor: pointer;
    transition: background 0.2s;
    position: relative;
    border: none;
}
.search-box .search-field:hover { background: #f0f0f0; }
.search-box .search-field:not(:last-child)::after {
    content: '';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    height: 40%;
    width: 1px;
    background: #e0e0e0;
}
.search-box .search-field-label {
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #1e3c72;
    margin-bottom: 8px;
}
.search-box .search-field-value {
    font-size: 26px;
    color: #333;
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.search-box .search-field-value.placeholder { color: #999; }
.search-box .search-field select {
    border: none;
    background: transparent;
    font-size: 26px;
    font-weight: 500;
    color: #333;
    padding: 0;
    width: 100%;
    cursor: pointer;
    -webkit-appearance: none;
    appearance: none;
    outline: none;
}
.search-box .search-field i.field-icon {
    font-size: 18px;
    color: var(--accent, #f5a623);
    margin-right: 6px;
}
/* Inline search button */
.search-box .search-field-btn {
    flex: 0 0 auto;
    padding: 0;
    display: flex;
    align-items: stretch;
}
.search-box .search-field-btn::after { display: none; }
.search-box .search-field-btn:hover { background: transparent; }
.search-box .search-btn-inner {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 44px;
    background: linear-gradient(135deg, #f5a623, #e8951e);
    color: white;
    font-size: 22px;
    cursor: pointer;
    transition: all 0.2s;
    border: none;
}
.search-box .search-btn-inner:hover {
    background: linear-gradient(135deg, #e8951e, #d4850a);
}
/* Mobile search trigger */
.mobile-search-trigger {
    width: 100%;
    padding: 16px 20px;
    background: white;
    border: none;
    border-radius: 14px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.12);
    font-size: 15px;
    color: #999;
    font-weight: 500;
    text-align: left;
    cursor: pointer;
}
.mobile-search-trigger:active {
    background: #f0f0f0;
}

/* ===== Flatpickr Calendar in Modal ===== */
#searchModal .flatpickr-calendar.inline {
    box-shadow: none;
    border: none;
    background: transparent;
}
#searchModal .flatpickr-months {
    padding: 0;
    margin-bottom: 4px;
    align-items: center;
}
#searchModal .flatpickr-months .flatpickr-prev-month,
#searchModal .flatpickr-months .flatpickr-next-month {
    position: static;
    padding: 4px 8px;
    fill: var(--primary, #1e3c72);
}
#searchModal .flatpickr-months .flatpickr-prev-month:hover svg,
#searchModal .flatpickr-months .flatpickr-next-month:hover svg {
    fill: var(--accent, #f5a623);
}
#searchModal .flatpickr-month {
    height: auto;
    overflow: visible;
}
#searchModal .flatpickr-current-month {
    font-size: 15px;
    font-weight: 700;
    color: var(--primary, #1e3c72);
    padding-top: 2px;
}
#searchModal .flatpickr-weekday {
    font-size: 13px;
    font-weight: 700;
    color: var(--primary, #1e3c72);
}
#searchModal .flatpickr-day {
    height: 44px;
    line-height: 44px;
    font-size: 15px;
    font-weight: 500;
    max-width: 44px;
    border-radius: 50%;
    margin: 1px 0;
}
#searchModal .flatpickr-day.today:not(.selected):not(.startRange):not(.endRange) {
    border-color: var(--primary, #1e3c72);
}
#searchModal .flatpickr-day:hover:not(.selected):not(.startRange):not(.endRange):not(.inRange) {
    background: rgba(30, 60, 114, 0.08);
    border-color: transparent;
}
#searchModal .flatpickr-day.inRange {
    background: #dde5f0 !important;
    border-color: transparent !important;
    border-radius: 0 !important;
    box-shadow: -5px 0 0 #dde5f0, 5px 0 0 #dde5f0 !important;
    color: var(--primary, #1e3c72) !important;
    font-weight: 600;
}
#searchModal .flatpickr-day.startRange {
    background: var(--primary, #1e3c72) !important;
    color: white !important;
    border-radius: 50% !important;
    border-color: var(--primary, #1e3c72) !important;
    box-shadow: 5px 0 0 #dde5f0 !important;
    font-weight: 700;
}
#searchModal .flatpickr-day.endRange {
    background: var(--primary, #1e3c72) !important;
    color: white !important;
    border-radius: 50% !important;
    border-color: var(--primary, #1e3c72) !important;
    box-shadow: -5px 0 0 #dde5f0 !important;
    font-weight: 700;
}
#searchModal .flatpickr-day.startRange.endRange {
    box-shadow: none !important;
}
#searchModal .flatpickr-day.startRange:hover,
#searchModal .flatpickr-day.endRange:hover {
    background: var(--primary-dark, #152a4f) !important;
    border-color: var(--primary-dark, #152a4f) !important;
}
/* Reduce modal whitespace */
#searchModal .container.py-4 {
    padding-top: 0.75rem !important;
    padding-bottom: 0.75rem !important;
}
#searchModal #modalDatesSection {
    padding: 1.25rem !important;
    margin-bottom: 0.75rem !important;
}
#searchModal #modalDatesSection h6 {
    margin-bottom: 0.75rem !important;
}
#searchModal #modalGuestsSection {
    padding: 1.25rem !important;
    margin-bottom: 0.75rem !important;
}

/* Modal search button */
#modalSearchBtn {
    background: var(--accent, #f5a623);
    color: white;
    border: none;
    border-radius: 12px;
    transition: all 0.2s;
}
#modalSearchBtn:hover:not(:disabled) {
    background: var(--accent-hover, #e09000);
}
#modalSearchBtn:disabled {
    background: #ccc;
    color: #999;
    cursor: not-allowed;
}

/* Search bar mobile */
@media (max-width: 991px) {
    .search-box {
        border-radius: 16px;
        box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    }
    .search-box .search-fields {
        flex-direction: column;
    }
    .search-box .search-field {
        padding: 14px 20px;
    }
    .search-box .search-field:not(:last-child)::after {
        width: 85%;
        height: 1px;
        right: auto;
        left: 50%;
        top: auto;
        bottom: 0;
        transform: translateX(-50%);
    }
    .search-box .search-field-value { font-size: 16px; }
    .search-box .search-field select { font-size: 16px; }
    .search-box .search-field-btn { display: none; }
}
/* Search modal mobile fixes */
@media (max-width: 768px) {
    #searchModal select, #searchModal input, #searchModal button {
        font-size: 16px !important;
    }
    #searchModal .flatpickr-calendar.inline {
        width: 100% !important;
        max-width: 100% !important;
        box-shadow: none !important;
    }
    #searchModal .flatpickr-innerContainer,
    #searchModal .flatpickr-rContainer,
    #searchModal .flatpickr-days,
    #searchModal .dayContainer {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 100% !important;
    }
    #searchModal .flatpickr-months {
        width: 100% !important;
        padding: 10px 0;
    }
    #searchModal .flatpickr-calendar {
        width: 100% !important;
        max-width: 100% !important;
    }
    #searchModal .flatpickr-day {
        height: 44px !important;
        line-height: 44px !important;
        max-width: 44px;
    }
    #searchModal .flatpickr-months .flatpickr-prev-month,
    #searchModal .flatpickr-months .flatpickr-next-month {
        padding: 12px !important;
    }
    #searchModal .modal-footer {
        padding-bottom: 20px !important;
        z-index: 9999 !important;
    }
}

/* ============================================
   FILTERS SIDEBAR
   ============================================ */
.filters-sidebar {
    background: white;
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.07);
    position: sticky;
    top: 20px;
    max-height: calc(100vh - 40px);
    overflow-y: auto;
    border: 1px solid #f0f0f0;
}
.filter-label {
    font-weight: 700;
    font-size: 0.88rem;
    color: var(--primary);
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
    letter-spacing: 0.01em;
}
.filter-group {
    padding-bottom: 16px;
    margin-bottom: 16px;
    border-bottom: 1px solid #f0f2f5;
}
.filter-group:last-child {
    border-bottom: none;
    padding-bottom: 0;
    margin-bottom: 0;
}

/* Filter icons */
.filter-icon {
    font-size: 0.9rem;
    width: 28px;
    height: 28px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    flex-shrink: 0;
}
.filter-icon-stars { background: #fff8e1; color: #f5a623; }
.filter-icon-location { background: #e8f5e9; color: #43a047; }
.filter-icon-treatment { background: #fce4ec; color: #e91e63; }
.filter-icon-price { background: #fff3e0; color: #ef6c00; }
.filter-icon-amenities { background: #e3f2fd; color: #1976d2; }

/* Checkboxes modern style */
.filters-sidebar .form-check-input {
    width: 18px;
    height: 18px;
    border: 2px solid #d0d5dd;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.15s;
}
.filters-sidebar .form-check-input:checked {
    background-color: var(--primary);
    border-color: var(--primary);
}
.filters-sidebar .form-check-input:focus {
    box-shadow: 0 0 0 3px rgba(30,60,114,0.15);
}
.filters-sidebar .form-check-label {
    cursor: pointer;
    font-size: 0.85rem;
    color: #444;
    transition: color 0.15s;
    padding-left: 2px;
}
.filters-sidebar .form-check:hover .form-check-label {
    color: var(--primary);
}
.filters-sidebar .form-check {
    padding-top: 3px;
    padding-bottom: 3px;
}

/* Radio modern style */
.filters-sidebar .form-check-input[type="radio"] {
    border-radius: 50%;
}
.filters-sidebar .form-check-input[type="radio"]:checked {
    background-color: var(--primary);
    border-color: var(--primary);
}

/* Sort select */
.filters-sidebar .form-select {
    border-radius: 10px;
    border: 1.5px solid #e0e4ea;
    font-size: 0.85rem;
    padding: 8px 12px;
    transition: border-color 0.2s;
}
.filters-sidebar .form-select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(30,60,114,0.1);
}

/* Switch toggle */
.filters-sidebar .form-switch .form-check-input {
    width: 38px;
    height: 20px;
    border-radius: 12px;
}
.filters-sidebar .form-switch .form-check-input:checked {
    background-color: #27ae60;
    border-color: #27ae60;
}

/* Filter active chips */
.filter-active-count { background: var(--accent); color: white; font-size: 0.7rem; font-weight: 700; padding: 2px 7px; border-radius: 10px; margin-left: 6px; }
.filter-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }
.filter-chip {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: #e8f4fc;
    color: var(--primary);
    font-size: 0.78rem;
    font-weight: 600;
    padding: 5px 12px;
    border-radius: 20px;
    border: 1px solid rgba(30,60,114,0.12);
    cursor: pointer;
    transition: all 0.2s;
}
.filter-chip:hover { background: #d0e8f7; }
.filter-chip .bi-x { font-size: 0.9rem; opacity: 0.7; }
.filter-chip .bi-x:hover { opacity: 1; }

/* Results count alert */
.filters-sidebar .alert {
    border-radius: 10px;
    background: linear-gradient(135deg, #f0f4ff 0%, #f8f9fa 100%);
    border: 1px solid #e0e8f5;
    font-size: 0.88rem;
}
.filters-sidebar .alert strong {
    color: var(--primary);
    font-size: 1.1rem;
}

@media (max-width: 991px) {
    .filters-sidebar { position: static; margin-bottom: 20px; }
}

/* Offcanvas mobile filters */
#filtersOffcanvas .offcanvas-header { background: linear-gradient(135deg, var(--primary) 0%, var(--secondary, #2a5298) 100%); color: white; }
#filtersOffcanvas .offcanvas-header .btn-close { filter: invert(1); }

/* ============================================
   HOTEL CARDS — Horizontal Layout
   ============================================ */
.hotel-card-horizontal { background: #ffffff; border-radius: 16px; overflow: hidden; border: 1px solid #f0f0f0; box-shadow: 0 4px 12px rgba(0,0,0,0.08); transition: all 0.2s ease; margin-bottom: 0; }
.hotel-card-horizontal:hover { transform: translateY(-3px); box-shadow: 0 8px 20px rgba(0,0,0,0.12); }
.hotel-card-horizontal h5:hover { text-decoration: underline; }

/* Hotel card image */
.hotel-card-img { object-fit: cover; min-height: 220px; border-radius: 16px 0 0 16px; }
@media (max-width: 767px) {
    .hotel-card-img { border-radius: 12px 12px 0 0 !important; min-height: 180px !important; }
}

/* Hotel card title */
.hotel-card-title { font-size: 1.4rem; font-weight: 700; color: var(--primary); }

/* Hotel card unavailable state */
.hotel-unavailable { opacity: 0.8; }
.hotel-unavailable:hover { opacity: 1; }

/* Hotel description clamp */
.hotel-description { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; line-height: 1.5; }

/* Hotel meta */
.location-tag { color: var(--accent); font-size: 13px; font-weight: 500; }
.rating-badge { background: var(--primary); color: white; font-size: 12px; font-weight: 600; padding: 2px 8px; border-radius: 6px; }
.availability-badge { position: absolute; top: 12px; right: 12px; }
.badge-promo { position: absolute; top: 12px; left: 12px; background: #e74c3c; color: white; padding: 5px 12px; border-radius: 20px; font-size: 12px; font-weight: 600; }
.text-accent { color: var(--accent); }

/* ============================================
   PRICING DISPLAY
   ============================================ */
.price-display-xl { font-size: clamp(1.5rem, 5vw, 2rem); font-weight: 700; color: var(--accent); }
.price-display-sm { font-size: 1.1rem; font-weight: 700; color: #666; }
.price-dates { font-size: 0.95rem; }
.price-dates strong { font-size: 1.05rem; }

/* ============================================
   GUEST COUNTER BUTTONS
   ============================================ */
.btn-counter { width: 36px; height: 36px; display: flex; align-items: center; justify-content: center; padding: 0; }
.guests-dropdown { min-width: 280px; max-width: calc(100vw - 30px); }

/* ============================================
   VERTICAL HOTEL CARD (Grid layout)
   ============================================ */
.hotel-card { background: white; border-radius: 12px; overflow: hidden; box-shadow: 0 3px 15px rgba(0,0,0,0.08); transition: transform 0.3s, box-shadow 0.3s; height: 100%; display: flex; flex-direction: column; }
.hotel-card:hover { transform: translateY(-5px); box-shadow: 0 10px 30px rgba(0,0,0,0.15); }
.hotel-card .card-img { height: 200px; object-fit: cover; }
.hotel-card .card-body { padding: 1.2rem; flex: 1; display: flex; flex-direction: column; }

/* ============================================
   SEPARATOR BADGE (Alternative results)
   ============================================ */
.separator-badge { display: inline-block; background: white; padding: 12px 20px; border-radius: 50px; box-shadow: 0 2px 12px rgba(0,0,0,0.08); margin-top: -35px; position: relative; }

/* ============================================
   NO RESULTS STATE
   ============================================ */
#noResults i { color: #ccc; }

/* ============================================
   RESULTS SUMMARY BAR
   ============================================ */
.results-summary { display: none; }
.results-summary .results-count { font-size: 0.95rem; color: #555; font-weight: 500; }
.results-summary .results-count strong { color: var(--primary); font-size: 1.1rem; }

/* ============================================
   FOOTER (search page specific)
   ============================================ */
.search-footer { background: var(--primary); color: white; padding: 60px 0 30px; margin-top: 80px; }
.search-footer h5 { font-size: 1.1rem; font-weight: 600; margin-bottom: 20px; color: white; }
.search-footer a { color: rgba(255,255,255,0.7); text-decoration: none; transition: color 0.3s; }
.search-footer a:hover { color: white; }
.search-footer .social-links a { display: inline-block; width: 40px; height: 40px; border-radius: 50%; background: rgba(255,255,255,0.1); text-align: center; line-height: 40px; margin-right: 10px; }
.search-footer .social-links a:hover { background: var(--accent); }
.search-footer .copyright { text-align: center; margin-top: 40px; padding-top: 30px; border-top: 1px solid rgba(255,255,255,0.1); color: rgba(255,255,255,0.6); font-size: 14px; }

/* ============================================
   MOBILE RESPONSIVE
   ============================================ */
/* Gap verticale tra card + respiro immagine/testo */
#petFriendlyCards, #noPetCards, #availableCards, #alternativeCards { --bs-gutter-y: 2rem; }
#petFriendlyCards:empty, #noPetCards:empty { margin-top: 0 !important; }
.hotel-card-horizontal .card-body { padding-left: 24px; }

@media (max-width: 768px) {
    .search-bar-card .row { gap: 4px; }
    .hotel-card-horizontal .card-body { padding: 1rem !important; }
    #petFriendlyCards, #noPetCards, #availableCards, #alternativeCards { --bs-gutter-y: 1.25rem; }
    .hotel-card-horizontal { border-radius: 12px; }
}

@media (max-width: 576px) {
    .price-display-xl { font-size: 1.5rem; }
}

/* ============================================
   HOTELS LIST PAGE (grid view)
   ============================================ */

/* Page Header */
.page-header { background: linear-gradient(135deg, var(--primary) 0%, var(--secondary, #2a5298) 100%); padding: 60px 0 40px; color: white; text-align: center; }
.page-header h1 { font-size: 2.5rem; font-weight: 700; margin-bottom: 15px; }
.page-header p { font-size: 1.2rem; opacity: 0.9; }
@media (max-width: 768px) { .page-header h1 { font-size: 1.8rem; } .page-header p { font-size: 1rem; } }

/* Filter Tabs */
.filter-tabs { background: white; padding: 20px 0; box-shadow: 0 2px 10px rgba(0,0,0,0.05); margin-bottom: 40px; }
.filter-tabs .nav-pills { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.filter-tabs .nav-pills .nav-link { color: var(--primary); border: 2px solid #eee; border-radius: 25px; padding: 10px 25px; font-weight: 600; transition: all 0.3s; }
.filter-tabs .nav-pills .nav-link:hover,
.filter-tabs .nav-pills .nav-link.active { background: var(--accent); color: white; border-color: var(--accent); }

/* Hotel Grid Card */
.hotel-card-img-wrapper { position: relative; height: 220px; overflow: hidden; }
.hotel-card-img-wrapper img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.3s; }
.hotel-card:hover .hotel-card-img-wrapper img { transform: scale(1.05); }
.hotel-card-badge { position: absolute; top: 15px; left: 15px; background: var(--accent); color: white; padding: 5px 15px; border-radius: 20px; font-size: 13px; font-weight: 700; }
.hotel-card-stars { position: absolute; top: 15px; right: 15px; background: rgba(0,0,0,0.6); color: white; padding: 5px 10px; border-radius: 20px; font-size: 12px; }
.hotel-card-body { padding: 20px; flex: 1; display: flex; flex-direction: column; }
/* .hotel-card-title already defined above for search */
.hotel-card-location { color: #666; font-size: 14px; margin-bottom: 10px; display: flex; align-items: center; gap: 5px; }
.hotel-card-description { color: #666; font-size: 14px; margin-bottom: 15px; flex: 1; }
.hotel-card-footer { display: flex; justify-content: space-between; align-items: center; padding-top: 15px; border-top: 1px solid #eee; }
.hotel-card-price { display: flex; flex-direction: column; }
.hotel-card-price .label { font-size: 12px; color: #999; }
.hotel-card-price .amount { font-size: 1.5rem; font-weight: 700; color: var(--accent); }
.btn-discover { background: var(--primary); color: white; border: none; padding: 10px 25px; border-radius: 25px; font-weight: 600; transition: all 0.3s; text-decoration: none; }
.btn-discover:hover { background: var(--secondary, #2a5298); color: white; transform: translateX(5px); }
@media (max-width: 768px) { .hotel-card-img-wrapper { height: 180px; } }

/* Top Bar */
.top-bar { background: var(--light-bg, #f8f9fa); padding: 8px 0; font-size: 13px; }
.top-bar a { color: #666; text-decoration: none; }
.top-bar a:hover { color: var(--primary); }

/* Footer bottom bar */
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); padding-top: 20px; margin-top: 40px; font-size: 14px; color: rgba(255,255,255,0.6); }

/* ============================================
   RATING BADGE — Booking.com style
   ============================================ */
.rating-badge-lg {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
}
.rating-badge-lg .rating-score {
    background: var(--primary);
    color: white;
    font-size: 0.95rem;
    font-weight: 700;
    padding: 4px 8px;
    border-radius: 8px 8px 8px 2px;
    line-height: 1;
    min-width: 36px;
    text-align: center;
}
.rating-badge-lg .rating-label {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--primary);
    line-height: 1.2;
}
.rating-badge-lg .rating-label small {
    display: block;
    font-weight: 400;
    color: #888;
    font-size: 0.7rem;
}

/* ============================================
   BOOKING REASONS / SELLING POINTS
   ============================================ */
.booking-reasons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4px 12px;
    margin-bottom: 12px;
}
.booking-reason-item {
    font-size: 0.82rem;
    color: #333;
    display: flex;
    align-items: baseline;
    gap: 5px;
    line-height: 1.4;
}
.booking-reason-item .bi-check-circle-fill {
    color: #27ae60;
    font-size: 0.75rem;
    flex-shrink: 0;
}

/* ============================================
   AMENITY PILLS (fallback for no booking reasons)
   ============================================ */
.amenity-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 12px;
}
.amenity-pill {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: #f0f4f8;
    color: #555;
    font-size: 0.75rem;
    padding: 3px 10px;
    border-radius: 20px;
    white-space: nowrap;
}
.amenity-pill i {
    font-size: 0.8rem;
    color: var(--primary);
}

/* ============================================
   DISTANCE BADGES
   ============================================ */
.distance-info {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    font-size: 0.8rem;
    color: #666;
}
.distance-info span {
    display: inline-flex;
    align-items: center;
    gap: 3px;
}

/* ============================================
   CTA BUTTONS — Enhanced
   ============================================ */
.btn-cta-primary {
    background: var(--accent);
    color: white;
    border: none;
    font-weight: 700;
    font-size: 0.95rem;
    padding: 10px 24px;
    border-radius: 8px;
    transition: all 0.25s;
    text-decoration: none;
    display: inline-block;
    text-align: center;
}
.btn-cta-primary:hover {
    background: var(--accent-hover, #e09000);
    color: white;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(245,166,35,0.35);
}
.btn-wa-search {
    width: 38px;
    height: 38px;
    background: #25D366;
    color: #fff;
    border: none;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    text-decoration: none;
    transition: all 0.25s;
    flex-shrink: 0;
}
.btn-wa-search:hover {
    background: #128C7E;
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(37,211,102,0.35);
}
.btn-cta-secondary {
    color: var(--primary);
    font-size: 0.8rem;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    transition: color 0.2s;
}
.btn-cta-secondary:hover {
    color: var(--accent);
    text-decoration: underline;
}

/* ============================================
   PRICE PER NIGHT
   ============================================ */
.price-per-night {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--accent);
}

/* ============================================
   WHATSAPP FLOATING BUTTON
   ============================================ */
.whatsapp-float {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 1050;
    display: flex;
    align-items: center;
    gap: 8px;
    background: #25d366;
    color: white;
    padding: 12px 20px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: none;
    box-shadow: 0 4px 15px rgba(37,211,102,0.4);
    transition: all 0.3s;
    animation: whatsapp-pulse 3s infinite;
}
.whatsapp-float:hover {
    background: #20ba5a;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(37,211,102,0.5);
}
.whatsapp-float i {
    font-size: 1.3rem;
}
@keyframes whatsapp-pulse {
    0%, 100% { box-shadow: 0 4px 15px rgba(37,211,102,0.4); }
    50% { box-shadow: 0 4px 25px rgba(37,211,102,0.6); }
}

@media (max-width: 576px) {
    .whatsapp-float span { display: none; }
    .whatsapp-float { padding: 14px; border-radius: 50%; }
    .whatsapp-float i { font-size: 1.5rem; }
    .booking-reasons { grid-template-columns: 1fr; }
    .rating-badge-lg .rating-label small { display: none; }
}

/* Desktop: hide WA button on search cards */
@media (min-width: 769px) {
    .btn-wa-search { display: none !important; }
}

/* ============================================
   CARD DIVIDER
   ============================================ */
.card-price-divider {
    border: 0;
    border-top: 1px solid #eee;
    margin: 10px 0;
}

/* ============================================
   WISHLIST HEART
   ============================================ */
.wishlist-heart {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 3;
    width: 38px;
    height: 38px;
    border: none;
    border-radius: 50%;
    background: rgba(255,255,255,0.9);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    transition: all 0.3s ease;
}
.wishlist-heart i {
    font-size: 1.15rem;
    color: #999;
    transition: all 0.3s ease;
}
.wishlist-heart:hover {
    transform: scale(1.1);
    background: white;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}
.wishlist-heart:hover i { color: #e74c3c; }
.wishlist-heart.active {
    background: white;
    animation: heartPop 0.4s ease;
}
.wishlist-heart.active i { color: #e74c3c; }

@keyframes heartPop {
    0% { transform: scale(1); }
    30% { transform: scale(1.3); }
    60% { transform: scale(0.9); }
    100% { transform: scale(1); }
}

/* ============================================
   WISHLIST REGISTRATION MODAL
   ============================================ */
.wishlist-modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: rgba(0,0,0,0.5);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}
.wishlist-modal-overlay.show {
    opacity: 1;
    visibility: visible;
}
.wishlist-modal {
    background: white;
    border-radius: 20px;
    padding: 40px 36px;
    max-width: 420px;
    width: 90%;
    text-align: center;
    position: relative;
    transform: translateY(20px) scale(0.95);
    transition: all 0.3s ease;
    box-shadow: 0 20px 60px rgba(0,0,0,0.2);
}
.wishlist-modal-overlay.show .wishlist-modal {
    transform: translateY(0) scale(1);
}
.wishlist-modal-close {
    position: absolute;
    top: 14px;
    right: 18px;
    background: none;
    border: none;
    font-size: 1.6rem;
    color: #999;
    cursor: pointer;
    line-height: 1;
    transition: color 0.2s;
}
.wishlist-modal-close:hover { color: #333; }
.wishlist-modal-icon {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: linear-gradient(135deg, #ffe0e0, #ffc8c8);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}
.wishlist-modal-icon i {
    font-size: 1.8rem;
    color: #e74c3c;
}
.wishlist-modal-title {
    font-weight: 700;
    color: #1e3c72;
    margin-bottom: 10px;
    font-size: 1.3rem;
}
.wishlist-modal-text {
    color: #666;
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 24px;
}
.wishlist-modal-btn {
    display: inline-block;
    background: linear-gradient(135deg, #f5a623, #e8951e);
    color: white;
    padding: 14px 36px;
    border-radius: 12px;
    font-weight: 700;
    font-size: 1.05rem;
    text-decoration: none;
    box-shadow: 0 4px 15px rgba(245,166,35,0.35);
    transition: all 0.2s;
    width: 100%;
}
.wishlist-modal-btn:hover {
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(245,166,35,0.45);
}
.wishlist-modal-login {
    display: block;
    margin-top: 16px;
    color: #888;
    font-size: 0.88rem;
    text-decoration: none;
}
.wishlist-modal-login:hover { color: #1e3c72; }
.wishlist-modal-login strong { color: #1e3c72; }

/* ============================================
   MOBILE SEARCH OPTIMIZATION
   ============================================ */

/* --- Search Summary Bar (mobile only) --- */
.search-summary {
    display: none; /* hidden on desktop */
}

/* --- Sticky Toolbar (mobile only) --- */
.search-toolbar {
    display: none; /* hidden on desktop */
}

/* --- Sort Bottom Sheet --- */
.sort-sheet-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.4);
    z-index: 9998;
    display: none;
    opacity: 0;
    transition: opacity 0.25s;
}
.sort-sheet-backdrop.active { display: block; opacity: 1; }
.sort-sheet {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: white;
    border-radius: 16px 16px 0 0;
    z-index: 9999;
    transform: translateY(100%);
    transition: transform 0.3s cubic-bezier(0.32, 0.72, 0, 1);
    padding-bottom: env(safe-area-inset-bottom, 0);
}
.sort-sheet.active { transform: translateY(0); }
.sort-sheet-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px 12px;
    border-bottom: 1px solid #eee;
}
.sort-sheet-header h3 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--primary);
    margin: 0;
}
.sort-sheet-close {
    background: none;
    border: none;
    font-size: 1.4rem;
    color: #999;
    cursor: pointer;
    padding: 0;
    line-height: 1;
}
.sort-sheet-options { padding: 8px 0; }
.sort-sheet-option {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 20px;
    font-size: 0.92rem;
    color: var(--text-dark, #111827);
    cursor: pointer;
    transition: background 0.15s;
    border: none;
    background: none;
    width: 100%;
    text-align: left;
}
.sort-sheet-option:active { background: #f0f4f8; }
.sort-sheet-option.active { color: var(--primary); font-weight: 700; }
.sort-sheet-option.active::after {
    content: '\F26A'; /* bi-check-lg */
    font-family: 'bootstrap-icons';
    margin-left: auto;
    color: var(--primary);
    font-size: 1.1rem;
}

@media (max-width: 767px) {
    /* Hide full search form, show compact summary */
    .v2-search { display: none !important; }
    .v2-search.mobile-expanded { display: flex !important; }

    .search-summary {
        display: flex;
        align-items: center;
        gap: 12px;
        background: white;
        margin: 12px 12px 0;
        border-radius: 14px;
        padding: 12px 16px;
        box-shadow: 0 2px 12px rgba(0,0,0,0.08);
        cursor: pointer;
        transition: box-shadow 0.2s;
    }
    .search-summary:active { box-shadow: 0 2px 8px rgba(0,0,0,0.12); }
    .search-summary-icon {
        width: 40px;
        height: 40px;
        border-radius: 50%;
        background: linear-gradient(135deg, var(--accent, #f5a623), #e8951e);
        color: white;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 1.1rem;
        flex-shrink: 0;
    }
    .search-summary-text { flex: 1; min-width: 0; }
    .search-summary-main {
        font-size: 0.95rem;
        font-weight: 600;
        color: var(--text-dark, #111827);
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    .search-summary-sub {
        font-size: 0.8rem;
        color: var(--text-gray, #6b7280);
        margin-top: 2px;
    }
    .search-summary-edit {
        color: var(--primary);
        font-size: 0.82rem;
        font-weight: 600;
        white-space: nowrap;
        flex-shrink: 0;
    }
    .search-summary.hidden { display: none !important; }

    /* Sticky toolbar */
    .search-toolbar {
        display: flex;
        align-items: center;
        gap: 8px;
        position: sticky;
        top: 0;
        z-index: 90;
        background: white;
        border-bottom: 1px solid #eee;
        padding: 8px 12px;
        margin: 6px -12px 0;
        width: calc(100% + 24px);
    }
    .search-toolbar-count {
        font-size: 0.82rem;
        color: var(--text-gray, #6b7280);
        font-weight: 500;
        flex-shrink: 0;
    }
    .search-toolbar-count strong { color: var(--primary); font-size: 0.95rem; }
    .search-toolbar-spacer { flex: 1; }
    .search-toolbar-btn {
        display: inline-flex;
        align-items: center;
        gap: 4px;
        background: var(--light-bg, #f8f9fa);
        border: 1.5px solid #e0e4ea;
        border-radius: 20px;
        padding: 6px 14px;
        font-size: 0.8rem;
        font-weight: 600;
        color: var(--text-dark, #111827);
        cursor: pointer;
        white-space: nowrap;
    }
    .search-toolbar-btn i { font-size: 0.85rem; color: var(--primary); }
    .search-toolbar-btn:active { background: #e8ecf0; }

    /* Hide old mobile filter button */
    .col-lg-3 > .btn.d-lg-none { display: none !important; }

    /* Hide desktop results summary (replaced by toolbar) */
    .results-summary { display: none !important; }

    /* --- Card Optimizations — Compact Mobile --- */
    .hotel-card-img { min-height: auto !important; max-height: none; aspect-ratio: 3 / 2; }

    /* Selling points compact on mobile */
    .booking-reasons { grid-template-columns: 1fr !important; gap: 2px !important; margin-bottom: 8px !important; }
    .booking-reason-item { font-size: 0.75rem; }

    /* Hide divider on mobile */
    .card-price-divider { display: none !important; }

    /* WhatsApp button compact on mobile */
    .btn-wa-search { font-size: 0.9rem; padding: 8px 10px; }

    /* Card body compact */
    .hotel-card-horizontal .card-body { padding: 10px 14px 12px !important; }

    /* Title slightly smaller */
    .hotel-card-title { font-size: 1.05rem; }

    /* Price prominent */
    .price-display-xl { font-size: 2.4rem; }
    .price-per-night { font-size: 0.85rem; }

    /* CTA full-width */
    .btn-cta-primary { padding: 12px 16px; font-size: 0.9rem; flex: 1; text-align: center; display: inline-block; border-radius: 10px; }

    /* Price + CTA stack vertically */
    .card-price-cta-row {
        flex-direction: column !important;
        gap: 10px !important;
        align-items: stretch !important;
    }
    .card-price-cta-row > div:last-child {
        text-align: center !important;
        align-items: stretch !important;
        width: 100%;
    }
    .card-price-cta-row > div:last-child > div {
        width: 100%;
    }
    .card-price-cta-row > div:last-child .d-flex {
        flex-direction: row !important;
        align-items: center !important;
        width: 100%;
    }

    /* Treatment description compact — escludiamo .card-summary-line che deve wrappare
       per ospitare riepiloghi multi-camera con bambini senza troncare */
    .card-price-cta-row .small.text-muted:not(.card-summary-line) {
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    /* Rating badge compact */
    .rating-badge-lg .rating-label { font-size: 0.72rem; }

    /* Distance info compact */
    .distance-info { font-size: 0.72rem; }

    /* Cards container — breathing room between cards */
    #availableCards.row.g-3 { --bs-gutter-y: 1.5rem; }
    #alternativeCards.row.g-3 { --bs-gutter-y: 1.5rem; }
}

/* ============================================
   FILTRI — Voci checkbox: tronca testo lungo (Trattamento, Amenities, ecc.)
   ============================================ */
#starsOptions .form-check,
#locationOptions .form-check,
#treatmentOptions .form-check,
#amenityOptions .form-check {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 4px;
    min-height: 32px;
}
#starsOptions .form-check-input,
#locationOptions .form-check-input,
#treatmentOptions .form-check-input,
#amenityOptions .form-check-input {
    flex-shrink: 0;
    margin-left: 0;
    margin-top: 0;
}
#starsOptions .form-check-label,
#locationOptions .form-check-label,
#treatmentOptions .form-check-label,
#amenityOptions .form-check-label {
    flex: 1;
    min-width: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    cursor: pointer;
}

/* ============================================
   FILTRI OFFCANVAS — header blu + footer Mostra risultati
   ============================================ */
.filters-offcanvas-mobile {
    --bs-offcanvas-width: 100%;
    max-width: 100vw;
}
.filters-offcanvas-mobile .offcanvas-header {
    background: var(--primary, #1e3c72);
    color: #fff;
    padding: 14px 18px;
}
.filters-offcanvas-mobile .offcanvas-header h5 {
    margin: 0;
    font-weight: 700;
    color: #fff;
}
.filters-offcanvas-mobile .offcanvas-body {
    padding-bottom: 12px;
}
/* Mobile filter modal — ingrandimento testo per leggibilità */
.filters-offcanvas-mobile .offcanvas-header h5 { font-size: 1.35rem; }
.filters-offcanvas-mobile .offcanvas-body .filter-label {
    font-size: 1.1rem;
    margin-bottom: 12px;
}
.filters-offcanvas-mobile .offcanvas-body .filter-icon {
    width: 32px;
    height: 32px;
    font-size: 1rem;
}
.filters-offcanvas-mobile .offcanvas-body .form-select {
    font-size: 1.05rem;
    padding: 12px 14px;
    min-height: 52px;
}
.filters-offcanvas-mobile .offcanvas-body .filters-sidebar .form-check-label,
.filters-offcanvas-mobile .offcanvas-body #starsOptions .form-check-label,
.filters-offcanvas-mobile .offcanvas-body #locationOptions .form-check-label,
.filters-offcanvas-mobile .offcanvas-body #treatmentOptions .form-check-label,
.filters-offcanvas-mobile .offcanvas-body #amenityOptions .form-check-label {
    font-size: 1.05rem;
}
.filters-offcanvas-mobile .offcanvas-body .filters-sidebar .form-check-input,
.filters-offcanvas-mobile .offcanvas-body #starsOptions .form-check-input,
.filters-offcanvas-mobile .offcanvas-body #locationOptions .form-check-input,
.filters-offcanvas-mobile .offcanvas-body #treatmentOptions .form-check-input,
.filters-offcanvas-mobile .offcanvas-body #amenityOptions .form-check-input {
    width: 22px;
    height: 22px;
}
.filters-offcanvas-mobile .offcanvas-body #starsOptions .form-check,
.filters-offcanvas-mobile .offcanvas-body #locationOptions .form-check,
.filters-offcanvas-mobile .offcanvas-body #treatmentOptions .form-check,
.filters-offcanvas-mobile .offcanvas-body #amenityOptions .form-check {
    min-height: 40px;
    gap: 10px;
    margin-bottom: 6px;
}
.filters-offcanvas-mobile .offcanvas-body #filterPets .form-check-label,
.filters-offcanvas-mobile .offcanvas-body #filterPets .form-check-input {
    font-size: 1.05rem;
}
.filters-offcanvas-mobile .offcanvas-body #filterPets .form-check-input {
    width: 2.5rem;
    height: 1.4rem;
}
.filters-offcanvas-mobile .offcanvas-body .form-check-label.small {
    font-size: 1.05rem !important;
}
.filters-offcanvas-mobile .offcanvas-footer-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 18px 18px calc(36px + env(safe-area-inset-bottom, 0px));
    background: #fff;
    border-top: 1px solid #e6ebf2;
    box-shadow: 0 -4px 16px rgba(15, 30, 60, 0.08);
}
.filters-offcanvas-mobile .offcanvas-footer-actions .btn-primary {
    background: var(--accent, #f5a623);
    border-color: var(--accent, #f5a623);
    color: #fff;
    font-weight: 700;
    font-size: 1.25rem;
    min-height: 68px;
    border-radius: 16px;
    box-shadow: 0 4px 14px rgba(224, 144, 0, 0.35);
}
.filters-offcanvas-mobile .offcanvas-footer-actions .btn-primary:hover,
.filters-offcanvas-mobile .offcanvas-footer-actions .btn-primary:focus {
    background: var(--accent-hover, #e09000);
    border-color: var(--accent-hover, #e09000);
    color: #fff;
}
.filters-offcanvas-mobile .offcanvas-footer-actions .btn-primary:disabled {
    background: #b8c1cf;
    border-color: #b8c1cf;
    box-shadow: none;
    opacity: 1;
}
.filters-offcanvas-mobile .offcanvas-footer-actions .btn-link {
    text-decoration: underline;
    font-weight: 600;
    font-size: 1.15rem;
    min-height: 68px;
    padding-left: 14px;
    padding-right: 14px;
}

/* ============================================
   HOTEL CARD MOBILE COMPACTION — CTA above-the-fold
   ============================================ */
@media (max-width: 767.98px) {
    /* Immagine più orizzontale: 16:9 invece di 3:2 → ~40px in meno */
    .hotel-card-img {
        aspect-ratio: 16 / 9 !important;
        min-height: auto !important;
        object-fit: cover;
    }

    /* Selling points: mostra solo i primi 2 su mobile */
    .booking-reasons .booking-reason-item:nth-child(n+3) {
        display: none;
    }

    /* Padding card body più compatto */
    .hotel-card-horizontal .card-body {
        padding: 14px 14px 12px !important;
    }

    /* Divider prezzo: spazio ridotto */
    .card-price-divider {
        margin-top: 10px !important;
        margin-bottom: 10px !important;
    }

    /* Prezzo XL un filo più piccolo per stare sulla stessa riga della CTA */
    .price-display-xl { font-size: 1.5rem; }
}

/* ============================================
   HERO SEARCH CLOSE BUTTON (mobile, only when form is expanded)
   ============================================ */
.v2-search-close {
    display: none;
    position: absolute;
    top: 8px;
    right: 8px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1.5px solid #e6ebf2;
    background: #fff;
    color: var(--primary, #1e3c72);
    font-size: 1rem;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 11;
    box-shadow: 0 2px 8px rgba(15, 30, 60, 0.08);
    -webkit-tap-highlight-color: transparent;
}
.v2-search-close:active { transform: scale(0.94); }
.v2-search.mobile-expanded { position: relative; padding-top: 56px; }
.v2-search.mobile-expanded .v2-search-close { display: inline-flex; }
@media (min-width: 768px) {
    .v2-search-close { display: none !important; }
    .v2-search.mobile-expanded { padding-top: 12px; }
}

/* ============================================
   MOBILE TAP-TARGETS (>=44px touch surface) — ads landing quality
   ============================================ */
@media (max-width: 767.98px) {
    /* Sticky toolbar chips: Ordina / Filtri */
    .search-toolbar-btn {
        padding: 10px 16px;
        font-size: 0.88rem;
        min-height: 44px;
        border-radius: 22px;
    }
    .search-toolbar-btn i { font-size: 0.95rem; }
    .search-toolbar { gap: 10px; padding: 10px 12px; }

    /* Wishlist heart sulla card */
    .wishlist-heart,
    .v3-wish.wishlist-heart {
        width: 44px;
        height: 44px;
        top: 10px;
        right: 10px;
    }
    .wishlist-heart i { font-size: 1.25rem; }

    /* WhatsApp button sulla card */
    .btn-wa-search {
        width: 44px;
        height: 44px;
        font-size: 1.2rem;
    }

    /* "Modifica" CTA nella search-summary: superficie cliccabile più ampia */
    .search-summary-edit {
        padding: 8px 10px;
        margin: -8px -10px -8px 0;
        font-size: 0.88rem;
    }
}

