/* v91.16: Match Our Yachts padding exactly */
/* v95.50: Merged padding-top: 0 from v88.3 duplicate selector */
.yolo-ys-search-results {
    max-width: 100%;
    width: 100%;
    margin: 0 auto;
    padding: 0 20px 40px 20px !important;
    padding-top: 0 !important;
    overflow-x: hidden;
    box-sizing: border-box;
}

.yolo-ys-results-header {
    margin-bottom: 30px;
    text-align: center;
}

.yolo-ys-results-header h2 {
    font-size: 32px;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 10px;
}

.yolo-ys-results-count {
    font-size: 18px;
    color: #6b7280;
}

.yolo-ys-section-header {
    margin: 40px 0 20px 0;
    padding-bottom: 12px;
    border-bottom: 3px solid #b91c1c;
}

.yolo-ys-section-header h3 {
    font-size: 24px;
    font-weight: 700;
    color: #1f2937;
    margin: 0;
}

.yolo-ys-section-header.friends {
    border-bottom-color: #1e3a8a;
}

.yolo-ys-results-grid {
    /* Removed gap property - Bootstrap Grid .row with g-4 handles spacing */
    margin-bottom: 40px;
    width: 100%;
    box-sizing: border-box;
}

/* v85.5: Card spacing handled by Bootstrap g-4 gutter class on row containers */

.yolo-ys-no-results {
    text-align: center;
    padding: 60px 20px;
    background: #f9fafb;
    border-radius: 8px;
}

.yolo-ys-no-results h3 {
    font-size: 24px;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 12px;
}

.yolo-ys-no-results p {
    font-size: 16px;
    color: #6b7280;
}

.yolo-ys-loading {
    text-align: center;
    padding: 60px 20px;
}

.yolo-ys-loading-spinner {
    width: 50px;
    height: 50px;
    border: 4px solid #e5e7eb;
    border-top-color: #b91c1c;
    border-radius: 50%;
    animation: yolo-spin 1s linear infinite;
    margin: 0 auto 20px;
}

@keyframes yolo-spin {
    to { transform: rotate(360deg); }
}

.yolo-ys-loading p {
    font-size: 16px;
    color: #6b7280;
}

@media (max-width: 1024px) {
    .yolo-ys-results-grid {
        /* Removed gap property - Bootstrap Grid handles spacing */
    }
}

/* ========================================
   SEARCH FORM - REDESIGNED FOR VISIBILITY
   ======================================== */

/* v95.45: Further reduced padding to utilize more surface */
/* v95.50: NOTE - This form is hidden via display:none in v88.3 section below */
/* Keeping styles in case form is re-enabled in future */
.yolo-ys-results-search-form {
    background: #f8fafc !important;
    padding: 10px 10px !important;
    border-radius: 12px !important;
    margin-bottom: 20px !important;
    border: 1px solid #cbd5e1 !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08) !important;
    position: relative;
    overflow: hidden;
    display: none !important; /* v95.50: Merged from v88.3 - form hidden, filters include dates */
}

/* Decorative background element - removed for light theme */
.yolo-ys-results-search-form::before {
    display: none;
}

.yolo-ys-results-search-form .yolo-ys-search-form {
    display: flex;
    gap: 15px;
    align-items: stretch;
    position: relative;
    z-index: 1;
}

/* Form Field Base */
.yolo-ys-results-search-form .yolo-ys-form-field {
    position: relative;
    flex: 1;
    min-width: 0;
}

/* Select Field Styling */
.yolo-ys-results-search-form .yolo-ys-field-select {
    flex: 0 0 auto;
    width: 280px;
    position: relative;
}

.yolo-ys-results-search-form .yolo-ys-field-select select {
    width: 100%;
    height: 60px;
    padding: 0 45px 0 20px;
    font-size: 16px;
    font-weight: 500;
    color: #1f2937;
    background: #ffffff;
    border: 2px solid transparent;
    border-radius: 12px;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

/* Dropdown Arrow Icon for Results Page */
.yolo-ys-results-search-form .yolo-ys-select-arrow {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #1e3a8a;
    font-size: 14px;
    pointer-events: none;
    transition: transform 0.3s ease;
}

.yolo-ys-results-search-form .yolo-ys-field-select select:focus + .yolo-ys-select-arrow {
    transform: translateY(-50%) rotate(180deg);
}

.yolo-ys-results-search-form .yolo-ys-field-select select:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.yolo-ys-results-search-form .yolo-ys-field-select select:focus {
    outline: none;
    border-color: #fbbf24;
    box-shadow: 0 0 0 4px rgba(251, 191, 36, 0.3);
}

/* Date Field Styling */
.yolo-ys-results-search-form .yolo-ys-field-date {
    flex: 1;
    position: relative;
}

/* Calendar Icon for Results Page */
.yolo-ys-results-search-form .yolo-ys-date-icon {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #1e3a8a;
    font-size: 18px;
    pointer-events: none;
    z-index: 1;
}

.yolo-ys-results-search-form .yolo-ys-field-date input {
    width: 100%;
    height: 60px;
    padding: 0 20px 0 50px;
    font-size: 16px;
    font-weight: 500;
    color: #1f2937;
    background: #ffffff;
    border: 2px solid transparent;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.yolo-ys-results-search-form .yolo-ys-field-date input::placeholder {
    color: #6b7280;
    font-weight: 400;
}

.yolo-ys-results-search-form .yolo-ys-field-date input:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.yolo-ys-results-search-form .yolo-ys-field-date input:focus {
    outline: none;
    border-color: #fbbf24;
    box-shadow: 0 0 0 4px rgba(251, 191, 36, 0.3);
}

/* Button Field Styling */
.yolo-ys-results-search-form .yolo-ys-field-button {
    flex: 0 0 auto;
    width: 200px;
}

.yolo-ys-results-search-form .yolo-ys-search-button {
    width: 100%;
    height: 60px;
    padding: 0 30px;
    font-size: 16px;
    font-weight: 700;
    letter-spacing: 1px;
    color: #1e3a8a;
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    box-shadow: 0 4px 15px rgba(251, 191, 36, 0.4);
}

.yolo-ys-results-search-form .yolo-ys-search-button:hover {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(251, 191, 36, 0.5);
}

.yolo-ys-results-search-form .yolo-ys-search-button:active {
    transform: translateY(-1px);
}

.yolo-ys-results-search-form .yolo-ys-search-button span {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

/* Search icon in button */
.yolo-ys-results-search-form .yolo-ys-search-button span::before {
    content: '🔍';
    font-size: 18px;
}

/* ========================================
   MOBILE RESPONSIVE - SEARCH FORM
   ======================================== */

@media (max-width: 1024px) {
    .yolo-ys-results-search-form {
        padding: 25px 20px;
    }
    
    .yolo-ys-results-search-form .yolo-ys-search-form {
        flex-direction: column;
        gap: 12px;
    }
    
    .yolo-ys-results-search-form .yolo-ys-field-select,
    .yolo-ys-results-search-form .yolo-ys-field-date,
    .yolo-ys-results-search-form .yolo-ys-field-button {
        width: 100%;
        flex: 1 1 auto;
    }
    
    .yolo-ys-results-search-form .yolo-ys-field-select select,
    .yolo-ys-results-search-form .yolo-ys-field-date input,
    .yolo-ys-results-search-form .yolo-ys-search-button {
        height: 56px;
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    .yolo-ys-results-search-form {
        padding: 20px 15px;
        border-radius: 12px;
    }
    
    .yolo-ys-results-search-form .yolo-ys-field-select select,
    .yolo-ys-results-search-form .yolo-ys-field-date input,
    .yolo-ys-results-search-form .yolo-ys-search-button {
        height: 52px;
        font-size: 15px;
        border-radius: 10px;
    }
}
/* Tablet and below - handled by bootstrap-mobile-fixes.css */
@media (max-width: 768px) {
    .yolo-ys-results-header h2 {
        font-size: 24px;
    }
}

/* ========================================
   CLICKABLE CARD (v80.1)
   ======================================== */

/* Make entire card clickable with stretched link */
.yolo-ys-clickable-card {
    position: relative;
    cursor: pointer;
}

/* Stretched link covers the entire card */
.yolo-ys-card-link {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
    text-decoration: none;
    background: transparent;
}

/* Ensure interactive elements are above the card link */
.yolo-ys-clickable-card .swiper-button-prev,
.yolo-ys-clickable-card .swiper-button-next,
.yolo-ys-clickable-card .swiper-pagination {
    z-index: 10;
    position: relative;
}

/* Details button visual styling (no longer an <a> tag) */
.yolo-ys-clickable-card .yolo-ys-details-btn {
    position: relative;
    z-index: 0;
    pointer-events: none;
}

/* ========================================
   Yacht Card Styles - Match "Our Yachts" Design (v2.3.7)
   Updated to match the Our Fleet page design for consistency
   ======================================== */

.yolo-ys-yacht-card {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    position: relative;
}

.yolo-ys-yacht-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 16px rgba(0,0,0,0.15);
}

.yolo-ys-yacht-image {
    width: 100%;
    aspect-ratio: 3 / 2;
    overflow: hidden;
    background: #f3f4f6;
    position: relative;
}

.yolo-ys-yacht-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.3s ease;
}

.yolo-ys-yacht-card:hover .yolo-ys-yacht-image img {
    transform: scale(1.05);
}

.yolo-ys-yacht-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 80px;
    color: #9ca3af;
}

.yolo-ys-yacht-content {
    padding: 20px;
}

.yolo-ys-yacht-location {
    font-size: 14px;
    color: #6b7280;
    margin-bottom: 12px;
}

.yolo-ys-yacht-header {
    margin-bottom: 20px;
}

.yolo-ys-yacht-name {
    font-size: 20px;
    font-weight: 700;
    color: #1f2937;
    margin: 0 0 4px 0;
}

.yolo-ys-yacht-model {
    font-size: 16px;
    font-weight: 600;
    color: #1e3a8a;
    margin: 0;
}

/* v90.6: Specs grid - single row layout with 4 or 5 columns */
.yolo-ys-yacht-specs-grid {
    display: grid !important;
    grid-template-columns: repeat(4, 1fr) !important;
    gap: 0 !important;
    margin-bottom: 0 !important;
    border-bottom: 1px solid #e5e7eb !important;
}

/* 5 columns when yacht has refit */
.yolo-ys-yacht-specs-grid.has-refit {
    grid-template-columns: repeat(5, 1fr) !important;
}

.yolo-ys-spec-item {
    text-align: center !important;
    padding: 10px 4px !important;
    border-right: 1px solid #e5e7eb !important;
}

.yolo-ys-spec-item:last-child {
    border-right: none !important;
}

.yolo-ys-spec-value {
    font-size: 16px;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 2px;
}

.yolo-ys-spec-label {
    font-size: 10px;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

/* v90.6: Equipment row styling */
/* v100.124: Added negative margin to extend to card edges (match yacht-card.css) */
.yolo-ys-equipment-row {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 6px !important;
    padding: 10px 12px !important;
    background: #fafafa !important;
    border-bottom: 1px solid #e5e7eb !important;
    margin: 0 -20px !important; /* Extend to card edges */
    margin-bottom: 15px !important;
}

.yolo-ys-equipment-item {
    display: inline-flex !important;
    align-items: center !important;
    gap: 4px !important;
    font-size: 10px !important;
    color: #374151 !important;
    background: #fff !important;
    padding: 3px 6px !important;
    border-radius: 4px !important;
    border: 1px solid #e5e7eb !important;
}

.yolo-ys-equipment-item i {
    font-size: 11px !important;
}

/* Red button to match "Our Yachts" design */
.yolo-ys-details-btn {
    display: block;
    width: 100%;
    padding: 14px 20px;
    background: #b91c1c;
    color: white;
    text-align: center;
    text-decoration: none;
    border-radius: 4px;
    font-weight: 700;
    font-size: 14px;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
}

.yolo-ys-yacht-price {
    font-size: 16px;
    color: #059669;
    margin-bottom: 15px;
    padding: 12px;
    background: #f0fdf4;
    border-radius: 4px;
    text-align: center;
}

.yolo-ys-yacht-price strong {
    font-size: 20px;
    font-weight: 700;
}

.yolo-ys-details-btn:hover {
    background: #991b1b;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(185, 28, 28, 0.3);
    color: white;
}

/* ========================================
   FIX: Single Yacht Full Width Layout
   When only one yacht in a row, make it full width
   instead of constrained to 33.33% (col-lg-4)
   ======================================== */

/* Make all yacht cards in search results full width on large screens when there's only one */
@media (min-width: 992px) {
    /* Target the row that contains yacht cards */
    .yolo-ys-section-header + .container-fluid .row.g-4 .col-lg-4:first-child:last-child {
        max-width: 100% !important;
        flex: 0 0 100% !important;
        width: 100% !important;
    }
}

/* Mobile responsiveness for yacht cards */
@media (max-width: 768px) {
    .yolo-ys-yacht-image {
        aspect-ratio: 3 / 2;
    }
    
    .yolo-ys-yacht-specs-grid {
        margin-bottom: 15px;
    }
    
    .yolo-ys-spec-value {
        font-size: 16px;
    }
}


/* ========================================
   v81.22: Results Search Form - Nice Background
   ======================================== */

#yolo-ys-results-search-form {
    background: #f8fafc !important;
    padding: 25px 30px !important;
    border-radius: 12px !important;
    margin-bottom: 20px !important;
    border: 1px solid #cbd5e1 !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08) !important;
}

#yolo-ys-results-search-form .yolo-ys-search-form {
    display: flex;
    gap: 15px;
    align-items: center;
    flex-wrap: wrap;
}

#yolo-ys-results-search-form .yolo-ys-field-select,
#yolo-ys-results-search-form .yolo-ys-field-date {
    flex: 1;
    min-width: 200px;
}

#yolo-ys-results-search-form .yolo-ys-field-button {
    flex: 0 0 auto;
}

#yolo-ys-results-search-form select,
#yolo-ys-results-search-form input {
    height: 50px;
    padding: 0 15px;
    font-size: 15px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    background: #ffffff;
    width: 100%;
    transition: all 0.2s ease;
}

#yolo-ys-results-search-form select:hover,
#yolo-ys-results-search-form input:hover {
    border-color: #94a3b8;
}

#yolo-ys-results-search-form select:focus,
#yolo-ys-results-search-form input:focus {
    outline: none;
    border-color: #1e3a8a;
    box-shadow: 0 0 0 3px rgba(30, 58, 138, 0.1);
}

#yolo-ys-results-search-form .yolo-ys-search-button {
    height: 50px;
    padding: 0 30px;
    font-size: 15px;
    font-weight: 600;
    color: #ffffff;
    background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

#yolo-ys-results-search-form .yolo-ys-search-button:hover {
    background: linear-gradient(135deg, #b91c1c 0%, #991b1b 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(220, 38, 38, 0.3);
}

@media (max-width: 768px) {
    #yolo-ys-results-search-form {
        padding: 20px 15px !important;
    }
    
    #yolo-ys-results-search-form .yolo-ys-search-form {
        flex-direction: column;
        gap: 12px;
    }
    
    #yolo-ys-results-search-form .yolo-ys-field-select,
    #yolo-ys-results-search-form .yolo-ys-field-date,
    #yolo-ys-results-search-form .yolo-ys-field-button {
        width: 100%;
        flex: none;
    }
    
    #yolo-ys-results-search-form .yolo-ys-search-button {
        width: 100%;
    }
}


/* v85.6: Search form background styling */
div#yolo-ys-results-search-form {
    background: #f8fafc !important;
    padding: 30px !important;
}


/* v91.17: Match Our Yachts mobile padding - HIGH SPECIFICITY to override bootstrap-mobile-fixes.css */
@media (max-width: 768px) {
    body .yolo-ys-search-results,
    #content .yolo-ys-search-results,
    .entry-content .yolo-ys-search-results,
    main .yolo-ys-search-results,
    .site-content .yolo-ys-search-results {
        padding: 0 15px 30px 15px !important;
    }
    
    .yolo-ys-search-results .row.g-4 {
        margin-left: -8px !important;
        margin-right: -8px !important;
    }
    
    .yolo-ys-search-results .row.g-4 > [class*="col-"] {
        padding-left: 8px !important;
        padding-right: 8px !important;
    }
}

@media (max-width: 480px) {
    body .yolo-ys-search-results,
    #content .yolo-ys-search-results,
    .entry-content .yolo-ys-search-results,
    main .yolo-ys-search-results,
    .site-content .yolo-ys-search-results {
        padding: 0 10px 20px 10px !important;
    }
    
    .yolo-ys-search-results .row.g-4 {
        margin-left: -5px !important;
        margin-right: -5px !important;
    }
    
    .yolo-ys-search-results .row.g-4 > [class*="col-"] {
        padding-left: 5px !important;
        padding-right: 5px !important;
    }
    
    /* Full-width card appearance */
    .yolo-ys-search-results .yolo-ys-yacht-card {
        border-radius: 8px !important;
    }
}


/* ========================================
   WHITE SPACE FIXES - v88.2
   - Remove top white space (ALL SCREEN SIZES)
   - Fix left/right padding for exactly 5px edges on mobile
   ======================================== */

/* Remove top padding causing white space - DESKTOP & MOBILE */
body .yolo-ys-search-results,
#content .yolo-ys-search-results,
.entry-content .yolo-ys-search-results,
main .yolo-ys-search-results,
.site-content .yolo-ys-search-results,
.yolo-ys-search-results {
    padding-top: 0 !important;
}

/* Remove WordPress theme top padding/margin - DESKTOP & MOBILE */
.wp-block-group.has-global-padding {
    padding-top: 0 !important;
    margin-top: 0 !important;
}

/* v91.14: Match Our Yachts mobile padding - removed entry-content override */


/* ============================================
   v88.3 - FILTER REORGANIZATION CSS
   ============================================ */

/* v95.50: Removed duplicate .yolo-ys-search-results - merged into main definition at top */
/* v95.50: Removed duplicate .wp-block-group.has-global-padding - already defined above */

/* v95.50: Removed duplicate .yolo-ys-results-search-form - merged into main definition above */

/* v95.45: Filters container - minimal padding for more surface */
.filters-row {
    width: 100% !important;
    max-width: 100% !important;
    padding: 0 2px !important;
    box-sizing: border-box !important;
}

/* ============================================
   v95.40AH: FILTER LAYOUT - BOOTSTRAP 5 GRID
   - Uses Bootstrap 5 row/col classes (added via JS)
   - row g-2 for rows, col for equal width columns
   - 5 equal columns per row on desktop
   - Icons inside boxes (Pure CSS)
   - Range filters (Year, Length, Price) as combined Min-Max boxes
   - Buttons stacked vertically
   ============================================ */

/* Filter rows - ensure they display as flex rows and take full width */
#filter-row-1,
#filter-row-2 {
    display: flex !important;
    flex-wrap: wrap !important;
    width: 100% !important;
    margin-right: 0 !important;
    margin-left: 0 !important;
}

#filter-row-1 {
    margin-bottom: 10px !important;
}

/* v95.45: All filter groups - minimal padding for more surface */
#filter-row-1 > .filter-group,
#filter-row-1 > .col,
#filter-row-2 > .filter-group,
#filter-row-2 > .col,
#filter-row-2 > .filter-buttons-wrapper {
    flex: 1 1 0 !important;
    max-width: 20% !important;
    min-width: 0 !important;
    position: relative !important;
    padding: 0 2px !important;
    box-sizing: border-box !important;
}

/* v95.41: HIDE FILTER LABELS - icons will be inside boxes */
/* Use > to target only direct children, EXCLUDE equipment-checkbox labels */
#filter-row-1 .filter-group > label:not(.equipment-checkbox),
#filter-row-2 .filter-group > label:not(.equipment-checkbox) {
    display: none !important;
}

/* All filter groups - equal width, positioned for icon */
#filter-row-1 .filter-group,
#filter-row-2 .filter-group {
    position: relative !important;
    min-width: 0 !important;
}

/* v100.39: CSS ::before icons - positioned inside the filter box */
/* Clean approach: icons ONLY via CSS pseudo-elements, no inline spans */
#filter-row-1 .filter-group::before,
#filter-row-2 .filter-group::before {
    font-family: "Font Awesome 6 Pro", "Font Awesome 6 Free", "Font Awesome 5 Pro", "Font Awesome 5 Free", FontAwesome !important;
    font-weight: 900 !important;
    position: absolute !important;
    left: 12px !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    color: #1e3a8a !important;
    font-size: 14px !important;
    pointer-events: none !important;
    z-index: 10 !important;
}

/* Icon for each filter type */
#filter-row-1 .filter-group[data-filter="location"]::before { content: "\f3c5"; } /* map-marker-alt */
#filter-row-1 .filter-group[data-filter="dates"]::before { content: "\f073"; } /* calendar-alt */
#filter-row-1 .filter-group[data-filter="boat-type"]::before { content: "\f21a"; } /* ship */
#filter-row-1 .filter-group[data-filter="cabins"]::before { content: "\f236"; } /* bed */
#filter-row-1 .filter-group[data-filter="year"]::before { content: "\f133"; } /* calendar */
#filter-row-2 .filter-group[data-filter="sort"]::before { content: "\f0dc"; } /* sort */
#filter-row-2 .filter-group[data-filter="length"]::before { content: "\f545"; } /* ruler */
#filter-row-2 .filter-group[data-filter="equipment"]::before { content: "\f013"; } /* cog */
#filter-row-2 .filter-group[data-filter="price"]::before { content: "\f153"; } /* euro-sign */

/* v100.54: Inline icons from Icons Helper - hide CSS ::before when inline icon present */
.filter-group .filter-icon-inline {
    position: absolute !important;
    left: 12px !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    color: #1e3a8a !important;
    font-size: 14px !important;
    pointer-events: none !important;
    z-index: 11 !important;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Hide CSS ::before icon when inline icon is present */
.filter-group:has(.filter-icon-inline)::before {
    display: none !important;
}

/* v100.39: Labels removed from HTML - this rule kept for safety */
.filter-group > label {
    display: none !important;
}

/* Range filter groups - same width as other filters */
#filter-row-1 .filter-group.filter-range,
#filter-row-2 .filter-group.filter-range {
    /* Uses same flex: 1 0 0% as other filter groups */
}

/* All filter inputs (non-range) - with left padding for icon */
#filter-row-1 .filter-group:not(.filter-range) select,
#filter-row-1 .filter-group:not(.filter-range) input,
#filter-row-2 .filter-group:not(.filter-range) select,
#filter-row-2 .filter-group:not(.filter-range) input {
    height: 48px !important;
    width: 100% !important;
    border: 1px solid #cbd5e1 !important;
    border-radius: 8px !important;
    padding: 0 12px 0 38px !important;
    font-size: 13px !important;
    display: flex !important;
    align-items: center !important;
    text-align: left !important;
    text-align-last: left !important;
    background: white !important;
    box-sizing: border-box !important;
    cursor: pointer !important;
}

/* Equipment dropdown button - needs more padding for icon */
#filter-row-2 button#equipment-dropdown-toggle {
    height: 48px !important;
    width: 100% !important;
    border: 1px solid #cbd5e1 !important;
    border-radius: 8px !important;
    padding: 0 12px 0 40px !important;
    font-size: 13px !important;
    display: flex !important;
    align-items: center !important;
    text-align: left !important;
    background: white !important;
    box-sizing: border-box !important;
    cursor: pointer !important;
}

/* Equipment selected text - no ellipsis */
#equipment-selected-text {
    overflow: visible !important;
    text-overflow: clip !important;
    white-space: nowrap !important;
    max-width: none !important;
}

/* v95.39: Range inputs container - combined Min/Max box with icon */
#filter-row-1 .filter-group.filter-range .range-inputs,
#filter-row-2 .filter-group.filter-range .range-inputs {
    display: flex !important;
    align-items: center !important;
    background: white !important;
    border: 1px solid #cbd5e1 !important;
    border-radius: 8px !important;
    height: 48px !important;
    padding-left: 32px !important; /* Space for icon */
    position: relative !important;
    width: 100% !important;
    box-sizing: border-box !important;
}

/* v95.39: Range inputs - no individual borders, equal width */
#filter-row-1 .filter-group.filter-range .range-inputs select,
#filter-row-2 .filter-group.filter-range .range-inputs select {
    border: none !important;
    height: 44px !important;
    flex: 1 1 45% !important;
    padding: 0 4px !important;
    background: transparent !important;
    min-width: 0 !important;
    font-size: 12px !important;
    text-align: center !important;
    text-align-last: center !important;
}

/* v95.39: Range separator - styled dash */
#filter-row-1 .filter-group.filter-range .range-inputs .range-separator,
#filter-row-2 .filter-group.filter-range .range-inputs .range-separator {
    color: #6b7280 !important;
    font-weight: 600 !important;
    padding: 0 2px !important;
    flex: 0 0 auto !important;
}

/* v95.48: Range label - text label inside range box with proper spacing */
#filter-row-1 .filter-group.filter-range .range-inputs .range-label,
#filter-row-2 .filter-group.filter-range .range-inputs .range-label {
    font-size: 12px !important;
    font-weight: 500 !important;
    color: #374151 !important;
    padding-left: 6px !important;
    padding-right: 6px !important;
    flex: 0 0 auto !important;
    white-space: nowrap !important;
}

/* Buttons wrapper - stacked vertically, takes one column */
.filter-buttons-wrapper {
    display: flex !important;
    flex-direction: column !important;
    gap: 4px !important;
    min-width: 0 !important;
}

/* Apply Filters button - blue */
.filter-buttons-wrapper #apply-filters {
    flex: 1 !important;
    height: 22px !important;
    background: rgb(37, 99, 235) !important;
    color: white !important;
    border: none !important;
    border-radius: 6px !important;
    font-size: 11px !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    white-space: nowrap !important;
    padding: 0 8px !important;
}

/* Clear All button */
.filter-buttons-wrapper #clear-filters {
    flex: 1 !important;
    height: 22px !important;
    border: 1px solid #cbd5e1 !important;
    border-radius: 6px !important;
    font-size: 11px !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    background: white !important;
    white-space: nowrap !important;
    padding: 0 8px !important;
}

/* ============================================
   v95.40AH: RESPONSIVE BREAKPOINTS
   ============================================ */

/* Laptop/Tablet landscape (992px - 1199px): 5 columns still but tighter */
@media (max-width: 1199.98px) {
    #filter-row-1 > .filter-group,
    #filter-row-1 > .col,
    #filter-row-2 > .filter-group,
    #filter-row-2 > .col,
    #filter-row-2 > .filter-buttons-wrapper {
        padding: 0 3px !important;
    }
    
    #filter-row-1 select,
    #filter-row-1 input,
    #filter-row-2 select,
    #filter-row-2 input,
    #filter-row-2 button#equipment-dropdown-toggle {
        font-size: 11px !important;
        padding: 0 8px 0 32px !important;
    }
    
    #filter-row-1 .filter-group.filter-range .range-inputs select,
    #filter-row-2 .filter-group.filter-range .range-inputs select {
        font-size: 10px !important;
    }
}

/* Tablet portrait (768px - 991px): 3 columns per row */
@media (max-width: 991.98px) {
    #filter-row-1 > .filter-group,
    #filter-row-1 > .col,
    #filter-row-2 > .filter-group,
    #filter-row-2 > .col,
    #filter-row-2 > .filter-buttons-wrapper {
        flex: 0 0 33.333% !important;
        max-width: 33.333% !important;
        margin-bottom: 8px !important;
    }
    
    .filter-buttons-wrapper {
        flex-direction: row !important;
        gap: 8px !important;
    }
    
    .filter-buttons-wrapper #apply-filters,
    .filter-buttons-wrapper #clear-filters {
        height: 40px !important;
        font-size: 13px !important;
    }
}

/* v95.40AH: MOBILE FILTER FIXES */
/* Filters at TOP, becomes FIXED when scrolling past original position */
@media (max-width: 767.98px) {
    /* Mobile (768px and below): Full width stacked layout like search-filters */
    #filter-row-1,
    #filter-row-2 {
        display: flex !important;
        flex-direction: column !important;
        gap: 10px !important;
        width: 100% !important;
    }
    
    #filter-row-1 > .filter-group,
    #filter-row-1 > .col,
    #filter-row-2 > .filter-group,
    #filter-row-2 > .col {
        flex: 1 1 100% !important;
        max-width: 100% !important;
        width: 100% !important;
        margin-bottom: 0 !important;
        padding: 0 !important;
    }
    
    #filter-row-2 > .filter-buttons-wrapper {
        flex: 1 1 100% !important;
        max-width: 100% !important;
        width: 100% !important;
        margin-bottom: 0 !important;
        padding: 0 !important;
        margin-top: 5px !important;
    }
    
    /* FILTERS - Default state (in normal flow) */
    .yolo-ys-advanced-filters,
    #yolo-ys-advanced-filters {
        position: relative !important;
        top: auto !important;
        left: auto !important;
        right: auto !important;
        bottom: auto !important;
        z-index: 9999 !important;
        background: white !important;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08) !important;
        padding: 12px 10px !important;
        max-height: none !important;
        overflow-y: visible !important;
        border-radius: 0 !important;
        border-bottom: 1px solid #e5e7eb !important;
        margin: 0 !important;
        width: 100% !important;
        transition: box-shadow 0.2s ease !important;
    }
    
    /* FILTERS - Fixed state (when scrolled past) */
    .yolo-ys-advanced-filters.is-sticky,
    #yolo-ys-advanced-filters.is-sticky {
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        right: 0 !important;
        width: 100% !important;
        margin: 0 !important;
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15) !important;
        border-bottom: 2px solid #e5e7eb !important;
    }
    
    /* Placeholder to prevent content jump when filters become fixed */
    .yolo-ys-filters-placeholder {
        display: none;
    }
    
    .yolo-ys-filters-placeholder.active {
        display: block !important;
    }
    
    /* When filters content is expanded, allow scrolling */
    .yolo-ys-advanced-filters.filters-expanded,
    #yolo-ys-advanced-filters.filters-expanded {
        max-height: 80vh !important;
        overflow-y: auto !important;
    }
    
    /* Remove bottom padding since filters are now at top */
    .yolo-ys-search-results {
        padding-bottom: 40px !important;
    }
    
    /* v95.40AH: Mobile 2-column layout - 100% handled in 575.98px breakpoint below */
    
    /* Buttons wrapper on mobile */
    .filter-buttons-wrapper {
        display: flex !important;
        flex-direction: row !important;
        gap: 8px !important;
    }
    
    .filter-buttons-wrapper #apply-filters,
    .filter-buttons-wrapper #clear-filters {
        flex: 1 !important;
        height: 44px !important;
        font-size: 14px !important;
        font-weight: 600 !important;
    }
    
    /* v95.41: Labels hidden on mobile too (icons inside boxes) */
    /* Use > to target only direct children, EXCLUDE equipment-checkbox labels */
    #filter-row-1 .filter-group > label:not(.equipment-checkbox),
    #filter-row-2 .filter-group > label:not(.equipment-checkbox) {
        display: none !important;
    }
    
    /* Larger inputs on mobile for touch - 44px minimum */
    #filter-row-1 select,
    #filter-row-1 input,
    #filter-row-2 select,
    #filter-row-2 input,
    #filter-row-2 button#equipment-dropdown-toggle {
        height: 44px !important;
        font-size: 14px !important;
        padding: 0 10px 0 34px !important;
        width: 100% !important;
        border-radius: 8px !important;
    }
    
    #filter-row-1 .filter-group.filter-range .range-inputs,
    #filter-row-2 .filter-group.filter-range .range-inputs {
        height: 44px !important;
        padding-left: 30px !important;
    }
    
    #filter-row-1 .filter-group.filter-range .range-inputs select,
    #filter-row-2 .filter-group.filter-range .range-inputs select {
        font-size: 12px !important;
        padding: 0 2px !important;
    }
    
    /* Select2 mobile fixes */
    .select2-container {
        width: 100% !important;
    }
    
    .select2-container--default .select2-selection--single {
        height: 44px !important;
        border-radius: 8px !important;
    }
    
    .select2-container--default .select2-selection--single .select2-selection__rendered {
        line-height: 44px !important;
        padding-left: 12px !important;
        font-size: 16px !important;
    }
    
    .select2-container--default .select2-selection--single .select2-selection__arrow {
        height: 42px !important;
    }
    
    .filters-row {
        padding: 0 !important;
    }
    
    /* Featured badge mobile positioning - v95.4: Match logo height */
    .yolo-ys-featured-badge {
        height: 50px !important;
        padding: 0 10px !important;
        top: 8px !important;
        right: 8px !important;
    }
    
    .yolo-ys-featured-stars i {
        font-size: 10px !important;
    }
    
    .yolo-ys-featured-text {
        font-size: 8px !important;
    }
    
    /* v100.124: Equipment row mobile - match yacht-card.css styling */
    .yolo-ys-equipment-row {
        /* Removed gap: 4px - keep default 6px for better spacing */
        padding: 8px 10px !important;
    }
    
    .yolo-ys-equipment-item {
        font-size: 9px !important;
        padding: 2px 5px !important;
    }
    
    .yolo-ys-equipment-item i {
        font-size: 10px !important;
    }
}



/* ============================================
   v88.7: Select2 Custom Styling for Filters
   ============================================ */

/* Select2 container */
.select2-container--default .select2-selection--single {
    height: 45px !important;
    border: 1px solid #cbd5e1 !important;
    border-radius: 8px !important;
    background-color: #fff !important;
    display: flex !important;
    align-items: center !important;
}

.select2-container--default .select2-selection--single .select2-selection__rendered {
    line-height: 43px !important;
    padding-left: 12px !important;
    padding-right: 30px !important;
    color: #374151 !important;
    font-size: 13px !important;
}

.select2-container--default .select2-selection--single .select2-selection__arrow {
    height: 43px !important;
    right: 8px !important;
}

.select2-container--default .select2-selection--single .select2-selection__arrow b {
    border-color: #6b7280 transparent transparent transparent !important;
}

/* Dropdown styling */
.select2-container--default .select2-results__option {
    padding: 10px 12px !important;
    font-size: 13px !important;
}

.select2-container--default .select2-results__option--highlighted[aria-selected] {
    background-color: #f1f5f9 !important;
    color: #1f2937 !important;
}

.select2-container--default .select2-results__option[aria-selected=true] {
    background-color: rgb(37, 99, 235) !important;
    color: #fff !important;
}

.select2-dropdown {
    border: 1px solid #cbd5e1 !important;
    border-radius: 8px !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15) !important;
    margin-top: 4px !important;
}

/* Icon styling inside Select2 */
.select2-results__option i,
.select2-selection__rendered i {
    color: #6b7280;
    font-size: 14px;
}

.select2-results__option[aria-selected=true] i {
    color: #fff !important;
}

/* Focus state */
.select2-container--default.select2-container--focus .select2-selection--single,
.select2-container--default.select2-container--open .select2-selection--single {
    border-color: rgb(37, 99, 235) !important;
    box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.1) !important;
}

/* Range inputs - smaller width for Select2 */
.filter-range .select2-container {
    min-width: 80px !important;
}

/* Fix label icon spacing */
.filter-group label i,
.yolo-ys-form-field label i {
    margin-right: 6px !important;
}

/* ========================================
   v89.8: Equipment Checkbox Styling - FIXED
   Using maximum specificity with ID selector
   to override theme styles that set display:block
   ======================================== */

/* v95.40: Equipment checkbox labels - MUST be visible (override any label hiding rules) */
#equipment-dropdown-menu label.equipment-checkbox,
.equipment-dropdown-menu label.equipment-checkbox,
label.equipment-checkbox {
    display: flex !important;
    visibility: visible !important;
    height: auto !important;
    width: auto !important;
    overflow: visible !important;
    position: relative !important;
    opacity: 1 !important;
    flex-direction: row !important;
    align-items: center !important;
    flex-wrap: nowrap !important;
    padding: 10px 14px !important;
    cursor: pointer !important;
    transition: background-color 0.2s ease !important;
    border-radius: 6px !important;
    margin: 2px 0 !important;
    background: transparent !important;
    white-space: nowrap !important;
}

#equipment-dropdown-menu label.equipment-checkbox:hover,
.equipment-dropdown-menu label.equipment-checkbox:hover,
label.equipment-checkbox:hover {
    background-color: #f1f5f9 !important;
}

/* Custom checkbox - maximum specificity */
#equipment-dropdown-menu .equipment-checkbox input[type="checkbox"],
#equipment-dropdown-menu .equipment-checkbox input,
.equipment-dropdown-menu .equipment-checkbox input[type="checkbox"],
.equipment-checkbox input[type="checkbox"],
.equipment-checkbox input {
    /* Remove default appearance */
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    appearance: none !important;
    
    /* Fixed sizing */
    width: 18px !important;
    height: 18px !important;
    min-width: 18px !important;
    max-width: 18px !important;
    min-height: 18px !important;
    max-height: 18px !important;
    
    /* Styling */
    margin: 0 !important;
    margin-right: 10px !important;
    padding: 0 !important;
    cursor: pointer !important;
    border: 2px solid #94a3b8 !important;
    border-radius: 4px !important;
    background: #fff !important;
    transition: all 0.15s ease !important;
    position: relative !important;
    flex: 0 0 18px !important;
    flex-shrink: 0 !important;
    
    /* Reset any theme styles */
    box-shadow: none !important;
    outline: none !important;
}

/* Hover state */
#equipment-dropdown-menu .equipment-checkbox input[type="checkbox"]:hover,
.equipment-checkbox input[type="checkbox"]:hover,
.equipment-checkbox input:hover {
    border-color: #3b82f6 !important;
    background: #f0f9ff !important;
}

/* Checked state */
#equipment-dropdown-menu .equipment-checkbox input[type="checkbox"]:checked,
.equipment-checkbox input[type="checkbox"]:checked,
.equipment-checkbox input:checked {
    background: #3b82f6 !important;
    border-color: #3b82f6 !important;
}

/* Checkmark for checked state */
#equipment-dropdown-menu .equipment-checkbox input[type="checkbox"]:checked::before,
.equipment-checkbox input[type="checkbox"]:checked::before,
.equipment-checkbox input:checked::before {
    content: '' !important;
    display: block !important;
    position: absolute !important;
    left: 4px !important;
    top: 0px !important;
    width: 5px !important;
    height: 9px !important;
    border: solid white !important;
    border-width: 0 2px 2px 0 !important;
    transform: rotate(45deg) !important;
}

/* Focus state for accessibility */
#equipment-dropdown-menu .equipment-checkbox input[type="checkbox"]:focus,
.equipment-checkbox input[type="checkbox"]:focus {
    outline: 2px solid #3b82f6 !important;
    outline-offset: 2px !important;
}

/* Icon styling */
/* v100.80: Removed color override to allow admin Icons settings to work */
#equipment-dropdown-menu .equipment-checkbox i,
.equipment-dropdown-menu .equipment-checkbox i,
.equipment-checkbox i {
    display: inline-flex !important;
    width: 20px !important;
    min-width: 20px !important;
    text-align: center !important;
    justify-content: center !important;
    margin-right: 8px !important;
    font-size: 14px !important;
    flex: 0 0 20px !important;
    flex-shrink: 0 !important;
}

/* Equipment dropdown menu styling */
#equipment-dropdown-menu {
    position: absolute !important;
    top: 100% !important;
    left: 0 !important;
    right: auto !important;
    min-width: 220px !important;
    width: max-content !important;
    background: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 8px !important;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15) !important;
    z-index: 9999 !important;
    max-height: 280px !important;
    overflow-y: auto !important;
    padding: 6px 0 !important;
}

/* v100.40: Boat Type custom dropdown with icons */
.boat-type-dropdown {
    position: relative;
    width: 100%;
}

.boat-type-dropdown-toggle {
    width: 100%;
    height: 48px;
    padding: 0 12px 0 40px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    background: white;
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    font-size: 14px;
    color: #374151;
    transition: border-color 0.2s;
}

.boat-type-dropdown-toggle:hover {
    border-color: #3b82f6;
}

.boat-type-dropdown-toggle i {
    color: #6b7280;
    font-size: 12px;
    transition: transform 0.2s;
}

.boat-type-dropdown.open .boat-type-dropdown-toggle i {
    transform: rotate(180deg);
}

#boat-type-dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    min-width: 200px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    z-index: 9999;
    margin-top: 4px;
    padding: 6px 0;
}

.boat-type-dropdown.open #boat-type-dropdown-menu {
    display: block;
}

.boat-type-option {
    display: flex !important;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    cursor: pointer;
    transition: background-color 0.2s;
    font-size: 14px;
    color: #374151;
}

.boat-type-option:hover {
    background-color: #f1f5f9;
}

.boat-type-option.selected {
    background-color: #eff6ff;
    color: #1e40af;
}

.boat-type-option i {
    font-size: 16px;
    width: 20px;
    text-align: center;
}

/* v100.43: Location dropdown with icons */
.location-dropdown,
.cabins-dropdown,
.sort-dropdown {
    position: relative;
    width: 100%;
}

.location-dropdown-toggle,
.cabins-dropdown-toggle,
.sort-dropdown-toggle {
    width: 100%;
    height: 48px;
    padding: 0 12px 0 40px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    background: white;
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    font-size: 14px;
    color: #374151;
    transition: border-color 0.2s;
}

.location-dropdown-toggle:hover,
.cabins-dropdown-toggle:hover,
.sort-dropdown-toggle:hover {
    border-color: #3b82f6;
}

.location-dropdown-toggle i,
.cabins-dropdown-toggle i,
.sort-dropdown-toggle i {
    color: #6b7280;
    font-size: 12px;
    transition: transform 0.2s;
}

.location-dropdown.open .location-dropdown-toggle i,
.cabins-dropdown.open .cabins-dropdown-toggle i,
.sort-dropdown.open .sort-dropdown-toggle i {
    transform: rotate(180deg);
}

#location-dropdown-menu,
#cabins-dropdown-menu,
#sort-dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    min-width: 200px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    z-index: 9999;
    margin-top: 4px;
    padding: 6px 0;
    max-height: 280px;
    overflow-y: auto;
}

.location-dropdown.open #location-dropdown-menu,
.cabins-dropdown.open #cabins-dropdown-menu,
.sort-dropdown.open #sort-dropdown-menu {
    display: block;
}

.location-option,
.cabins-option,
.sort-option {
    display: flex !important;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    cursor: pointer;
    transition: background-color 0.2s;
    font-size: 14px;
    color: #374151;
}

.location-option:hover,
.cabins-option:hover,
.sort-option:hover {
    background-color: #f1f5f9;
}

.location-option.selected,
.cabins-option.selected,
.sort-option.selected {
    background-color: #eff6ff;
    color: #1e40af;
}

.location-option i,
.cabins-option i,
.sort-option i {
    font-size: 16px;
    width: 20px;
    text-align: center;
}

#equipment-dropdown-menu::-webkit-scrollbar {
    width: 6px;
}

#equipment-dropdown-menu::-webkit-scrollbar-track {
    background: #f1f5f9;
    border-radius: 3px;
}

#equipment-dropdown-menu::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 3px;
}

#equipment-dropdown-menu::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

/* Mobile responsive Select2 */
@media (max-width: 768px) {
    .select2-container--default .select2-selection--single {
        height: 42px !important;
    }
    
    .select2-container--default .select2-selection--single .select2-selection__rendered {
        line-height: 40px !important;
        font-size: 12px !important;
    }
    
    .select2-container--default .select2-results__option {
        padding: 8px 10px !important;
        font-size: 12px !important;
    }
}


/* v88.9: Pointer cursor for date picker input */
#yolo-ys-results-dates,
.yolo-ys-search-results input[type="text"][placeholder*="date"],
.flatpickr-input {
    cursor: pointer !important;
}

/* Select2 pointer cursor */
.select2-container .select2-selection {
    cursor: pointer !important;
}


/* v90.8: Featured Yacht Badge - 60px height with centered content */
.yolo-ys-featured-badge {
    position: absolute !important;
    top: 10px !important;
    right: 10px !important;
    background: rgba(255, 255, 255, 0.92) !important;
    height: 60px !important;
    padding: 0 14px !important;
    border-radius: 6px !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15) !important;
    z-index: 10 !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 3px !important;
}

.yolo-ys-featured-stars {
    display: flex !important;
    gap: 2px !important;
}

.yolo-ys-featured-stars i {
    font-size: 12px !important;
    color: #f59e0b !important;
}

.yolo-ys-featured-text {
    font-size: 9px !important;
    font-weight: 700 !important;
    color: #1f2937 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
}

/* v95.50: Removed duplicate .yolo-ys-yacht-image - position:relative already in main definition */


/*
 * v89.9.1 MOBILE FILTER FIX - COMPREHENSIVE
 * 
 * FIXES: Horizontal scroll, truncated text, narrow inputs
 * ============================================================
 */

@media (max-width: 767.98px) { /* v95.10: Changed to Bootstrap 5 breakpoint */
    /* v95.10: REMOVED html, body overflow-x: hidden - breaks position:sticky */
    /* Use overflow-x: clip on containers instead */
    
    /* v91.15: Removed padding - handled by bootstrap-mobile-fixes.css */
    .yolo-ys-search-results {
        width: 100% !important;
        max-width: 100vw !important;
        overflow-x: clip !important; /* v95.10: Changed from hidden to clip - doesn't break sticky */
        box-sizing: border-box !important;
    }
    
    .yolo-ys-search-results .container-fluid {
        width: 100% !important;
        max-width: 100% !important;
        /* padding: 0 !important; v95.10: REMOVED - handled by bootstrap-mobile-fixes.css */
        margin: 0 !important;
        overflow-x: clip !important; /* v95.10: Changed from hidden to clip */
    }
    
    /* Filter container - v95.7: proper width without negative margins */
    .yolo-ys-advanced-filters,
    #yolo-ys-advanced-filters {
        width: 100% !important;
        max-width: 100% !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        padding: 16px !important;
        box-sizing: border-box !important;
      overflow-x: clip !important; /* v95.17: Changed from hidden to clip */
    }
    
    /* Filter content wrapper - prevent overflow */
    .filters-content,
    #filters-content {
        width: 100% !important;
        max-width: 100% !important;
        padding: 0 !important;
        margin: 0 !important;
      overflow-x: clip !important; /* v95.17: Changed from hidden to clip */
        box-sizing: border-box !important;
    }
    
    /* v95.40AH: Filter rows - handled by earlier media query rules */
    /* DO NOT override #filter-row-1 and #filter-row-2 here - causes conflicts */
    
    .filters-row {
        width: 100% !important;
        max-width: 100% !important;
        padding: 0 !important;
        margin: 0 0 10px 0 !important;
        box-sizing: border-box !important;
    }
    
    /* All selects and inputs - full width, proper height */
    .filter-group select,
    .filter-group .select2-container,
    .filter-group input,
    .yolo-filter {
        width: 100% !important;
        height: 48px !important;
        font-size: 16px !important; /* v95.10: Changed from 14px to prevent iOS zoom */
        box-sizing: border-box !important;
    }
    
    /* Select2 container fixes - v95.50: merged with display:none from below */
    .select2-container {
        display: none !important; /* v95.50: Hide Select2 on mobile, use native selects */
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }
    
    .select2-container--default .select2-selection--single {
        height: 48px !important;
        display: flex !important;
        align-items: center !important;
    }
    
    /* Bigger and better aligned dropdown arrows */
    .select2-container--default .select2-selection--single .select2-selection__arrow {
        height: 48px !important;
        width: 30px !important;
        right: 5px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
    }
    
    .select2-container--default .select2-selection--single .select2-selection__arrow b {
        border-width: 8px 6px 0 6px !important;
        border-color: #374151 transparent transparent transparent !important;
        margin-top: 0 !important;
        margin-left: 0 !important;
        position: static !important;
    }
    
    .select2-container--default .select2-selection--single .select2-selection__rendered {
        line-height: 46px !important;
        padding-left: 12px !important;
        padding-right: 30px !important;
        font-size: 16px !important; /* v95.17: Changed from 14px to prevent iOS zoom */
        white-space: nowrap !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
    }
    
    /* Equipment dropdown - full width */
    .filter-equipment,
    .equipment-dropdown {
        width: 100% !important;
    }
    
    #equipment-dropdown-toggle,
    .equipment-dropdown-toggle {
        width: 100% !important;
        height: 48px !important;
        font-size: 16px !important; /* v95.17: Changed from 14px to prevent iOS zoom */
    }
    
    /* Filter buttons - side by side */
    .filter-buttons-wrapper {
        display: flex !important;
        flex-direction: row !important;
        width: 100% !important;
        gap: 10px !important;
        margin-top: 15px !important;
    }
    
    .filter-buttons-wrapper button,
    #apply-filters,
    #clear-filters {
        flex: 1 !important;
        height: 50px !important;
        font-size: 14px !important;
        font-weight: 600 !important;
    }
    
    /* v95.41: Labels HIDDEN - icons are inside boxes via CSS ::before */
    /* EXCLUDE equipment-checkbox labels which are the dropdown items! */
    .filter-group > label:not(.equipment-checkbox),
    #filter-row-1 .filter-group > label:not(.equipment-checkbox),
    #filter-row-2 .filter-group > label:not(.equipment-checkbox) {
        display: none !important;
        visibility: hidden !important;
        height: 0 !important;
        width: 0 !important;
        overflow: hidden !important;
        position: absolute !important;
        opacity: 0 !important;
    }
    
    /* v95.3: Native select styling for mobile (no Select2) */
    .filter-group select.yolo-filter {
        -webkit-appearance: none !important;
        -moz-appearance: none !important;
        appearance: none !important;
        background-color: #fff !important;
        background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23374151' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E") !important;
        background-repeat: no-repeat !important;
        background-position: right 12px center !important;
        background-size: 16px !important;
        padding-right: 40px !important;
        cursor: pointer !important;
    }
    
    /* v95.50: Removed duplicate .select2-container - merged into definition above */
    /* Show native selects on mobile */
    .filter-group select {
        display: block !important;
    }
}

/* v95.40AH: Extra small phones - 1 column layout */
@media (max-width: 575.98px) {
    /* Small mobile: 1 column per row */
    #filter-row-1 > .filter-group,
    #filter-row-1 > .col,
    #filter-row-2 > .filter-group,
    #filter-row-2 > .col,
    #filter-row-2 > .filter-buttons-wrapper {
        flex: 0 0 100% !important;
        max-width: 100% !important;
        margin-bottom: 8px !important;
    }
    
    /* Buttons stacked vertically on small mobile */
    .filter-buttons-wrapper {
        flex-direction: column !important;
    }
    
    .filter-buttons-wrapper #apply-filters,
    .filter-buttons-wrapper #clear-filters {
        font-size: 16px !important; /* Prevent iOS zoom */
    }
    
    /* v95.7: Adjust filter padding for smaller screens */
    .yolo-ys-advanced-filters,
    #yolo-ys-advanced-filters {
        padding: 12px !important;
        margin: 0 !important;
        width: 100% !important;
    }
    
    .filter-group select,
    .filter-group .select2-container,
    .filter-group input {
        height: 44px !important;
        font-size: 16px !important; /* Prevent iOS zoom */
    }
    
    .select2-container--default .select2-selection--single {
        height: 44px !important;
    }
    
    .select2-container--default .select2-selection--single .select2-selection__rendered {
        line-height: 42px !important;
        font-size: 16px !important;
    }
    
    /* v95.3: Native select styling for small screens */
    .filter-group select.yolo-filter {
        -webkit-appearance: none !important;
        -moz-appearance: none !important;
        appearance: none !important;
        background-color: #fff !important;
        background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%23374151' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E") !important;
        background-repeat: no-repeat !important;
        background-position: right 10px center !important;
        background-size: 14px !important;
        padding-right: 36px !important;
    }
    
    /* Hide Select2 containers on mobile */
    .select2-container {
        display: none !important;
    }
    
    /* Show native selects on mobile */
    .filter-group select {
        display: block !important;
    }
}


/*
 * v89.9 MOBILE PADDING FIX (restored in v91.12)
 * 
 * PROBLEM: Filters are right on the edge of mobile screen - no horizontal padding
 * ============================================================
 */

@media (max-width: 767.98px) { /* v95.10: Changed to Bootstrap 5 breakpoint */
    /* v91.15: Removed padding-left/right - handled by bootstrap-mobile-fixes.css */
    
    .yolo-ys-search-results .container-fluid {
        padding-left: 0 !important;
        padding-right: 0 !important;
    }
    
    /* FIX: Add proper horizontal padding to filter container */
    .yolo-ys-advanced-filters,
    #yolo-ys-advanced-filters {
        padding: 20px 16px !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
    }
    
    /* FIX: Add padding to filters content wrapper */
    .filters-content,
    #filters-content {
        padding: 0 !important;
        margin: 0 !important;
    }
    
    /* v95.40AH: Filter rows spacing - don't override flex layout */
    .filters-row {
        margin: 0 !important;
        padding: 0 !important;
    }
    
    /* v95.40AH: #filter-row-1 and #filter-row-2 layout handled by earlier rules */
    
    /* FIX: Ensure filter inputs have proper spacing */
    .filter-group select,
    .filter-group .select2-container,
    .filter-group input,
    .yolo-filter {
        width: 100% !important;
        margin: 0 !important;
    }
    
    /* FIX: Range inputs container */
    .filter-range .range-inputs {
        gap: 8px !important;
        padding: 0 !important;
        margin: 0 !important;
    }
    
    /* FIX: Equipment dropdown - full width with proper spacing */
    .filter-equipment,
    .equipment-dropdown {
        width: 100% !important;
        margin: 0 !important;
    }
    
    #equipment-dropdown-toggle,
    .equipment-dropdown-toggle {
        width: 100% !important;
    }
    
    /* FIX: Filter actions buttons - full width with spacing */
    .filter-actions,
    .filter-buttons-wrapper {
        margin-top: 20px !important;
        padding-top: 15px !important;
        gap: 12px !important;
    }
    
    .filter-actions button,
    .btn-apply-filters,
    .btn-clear-filters {
        width: 100% !important;
    }
    
    /* FIX: Mobile toggle button padding */
    .filters-mobile-toggle,
    #filters-mobile-toggle {
        padding: 14px 16px !important;
        margin-bottom: 15px !important;
    }
}

/* Extra small phones - even more padding - v95.10: Changed to Bootstrap 5 breakpoint */
@media (max-width: 575.98px) {
    .yolo-ys-advanced-filters,
    #yolo-ys-advanced-filters {
        padding: 18px 12px !important;
    }
    
    .filters-row,
    #filter-row-1,
    #filter-row-2 {
        gap: 14px !important;
    }
    
    /* v95.41: Labels HIDDEN on all screen sizes */
    /* EXCLUDE equipment-checkbox labels which are the dropdown items! */
    .filter-group > label:not(.equipment-checkbox),
    #filter-row-1 .filter-group > label:not(.equipment-checkbox),
    #filter-row-2 .filter-group > label:not(.equipment-checkbox) {
        display: none !important;
        visibility: hidden !important;
        height: 0 !important;
        width: 0 !important;
        overflow: hidden !important;
        position: absolute !important;
        opacity: 0 !important;
    }
    
    .filter-group select,
    .filter-group input {
        padding: 0 12px 0 38px !important;  /* v95.40: Keep left padding for icons */
        font-size: 16px !important; /* v95.17: Changed from 14px to prevent iOS zoom */
    }
    
    /* v95.3: Native select styling for extra small phones */
    .filter-group select.yolo-filter {
        -webkit-appearance: none !important;
        -moz-appearance: none !important;
        appearance: none !important;
        background-color: #fff !important;
        background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%23374151' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E") !important;
        background-repeat: no-repeat !important;
        background-position: right 10px center !important;
        background-size: 14px !important;
        padding-right: 36px !important;
    }
    
    /* Hide Select2 containers on mobile */
    .select2-container {
        display: none !important;
    }
    
    /* Show native selects on mobile */
    .filter-group select {
        display: block !important;
    }
}
