/**
 * Yacht Search Page Styles
 *
 * Covers the redesigned yachts-for-sale listing page:
 * sidebar filters, card grid, FEATURED badge, SEO content
 * sections, and responsive breakpoints.
 *
 * Existing card styles (.card-yacht, .card-yacht-listings, .meta,
 * .spec, etc.) live in the theme SCSS and are NOT overridden here.
 */

/* ==========================================================================
   1. Search Section Layout
   ========================================================================== */

.yacht-search {
    display: flex;
    max-width: 100%;
    margin: 0 auto;
    padding: 40px 30px;
    gap: 30px;
}

/* ==========================================================================
   2. Sidebar
   ========================================================================== */

.yacht-search__sidebar {
    width: 280px;
    flex-shrink: 0;
    background: #fff;
    padding: 24px 24px 24px 0;
    position: sticky;
    top: 100px;
    max-height: calc(100vh - 120px);
    overflow-y: auto;
    align-self: flex-start;
    border-right: 1px solid #eee;
}

.yacht-search__sidebar label,
.yacht-search__sidebar .filter-label {
    display: block;
    font-family: 'Montserrat', sans-serif;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: #666;
    margin-bottom: 6px;
}

.yacht-search__sidebar input[type="text"],
.yacht-search__sidebar input[type="number"],
.yacht-search__sidebar select {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 0;
    font-family: 'Montserrat', sans-serif;
    font-size: 14px;
    background: #fff;
    box-sizing: border-box;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}

.yacht-search__sidebar input[type="text"]:focus,
.yacht-search__sidebar input[type="number"]:focus,
.yacht-search__sidebar select:focus {
    border-color: #fdba2e;
    outline: none;
}

/* Yacht name autocomplete dropdown */
.ui-autocomplete.ui-menu {
    background: #fff;
    border: 1px solid #ddd;
    border-top: none;
    max-height: 240px;
    overflow-y: auto;
    list-style: none;
    padding: 0;
    margin: 0;
    z-index: 10000;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.ui-autocomplete.ui-menu .ui-menu-item-wrapper {
    padding: 8px 12px;
    font-family: 'Montserrat', sans-serif;
    font-size: 13px;
    color: #333;
    cursor: pointer;
    border: none;
}

.ui-autocomplete.ui-menu .ui-menu-item-wrapper.ui-state-active,
.ui-autocomplete.ui-menu .ui-menu-item-wrapper:hover {
    background: #f5f5f5;
    color: #1a1a1a;
    border: none;
    margin: 0;
}

.yacht-search__sidebar .filter-group {
    margin-bottom: 20px;
}

/* Type pills */
.yacht-search__sidebar .type-pills {
    display: inline-flex;
    flex-wrap: wrap;
    gap: 6px;
}

.yacht-search__sidebar .type-pill {
    display: inline-block;
    padding: 6px 14px;
    font-family: 'Montserrat', sans-serif;
    font-size: 12px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    border: 1px solid #ddd;
    background: #fff;
    color: #333;
    cursor: pointer;
    border-radius: 0;
    transition: background 0.2s, color 0.2s, border-color 0.2s;
}

.yacht-search__sidebar .type-pill:hover {
    border-color: #fdba2e;
}

.yacht-search__sidebar .type-pill.active {
    background: #fdba2e;
    color: #000;
    border-color: #fdba2e;
}

/* Range slider container */
.yacht-search__sidebar .range-slider-container {
    margin: 10px 0;
}

/* jQuery UI slider overrides */
.yacht-search__sidebar .ui-slider {
    height: 6px;
    background: #ddd;
    border: none;
    border-radius: 3px;
    position: relative;
    margin: 0 9px; /* half the handle width so handles don't clip at edges */
}

.yacht-search__sidebar .ui-slider .ui-slider-range {
    background: #fdba2e;
    border-radius: 3px;
}

.yacht-search__sidebar .ui-slider .ui-slider-handle {
    width: 18px;
    height: 18px;
    background: #fdba2e;
    border: none;
    border-radius: 50%;
    top: -6px;
    cursor: pointer;
    outline: none;
}

.yacht-search__sidebar .ui-slider .ui-slider-handle:focus,
.yacht-search__sidebar .ui-slider .ui-slider-handle:active {
    box-shadow: 0 0 0 3px rgba(200, 168, 78, 0.25);
}

/* Select2 overrides — multiselect */
.yacht-search__sidebar .select2-container {
    margin-bottom: 0 !important;
    height: auto !important;
}

.yacht-search__sidebar .select2-container--default .select2-selection--multiple {
    border: 1px solid #ddd;
    border-radius: 0;
    min-height: 40px;
    padding: 5px 8px;
    background: #fff;
    cursor: pointer;
    box-sizing: border-box;
}

.yacht-search__sidebar .select2-container--default .select2-selection--multiple:focus,
.yacht-search__sidebar .select2-container--default.select2-container--open .select2-selection--multiple {
    border-color: #fdba2e;
    outline: none;
}

.yacht-search__sidebar .select2-container--default .select2-selection--multiple .select2-selection__rendered {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 4px;
    padding: 0;
    list-style: none;
}

.yacht-search__sidebar .select2-container--default .select2-selection--multiple .select2-selection__choice {
    background: #f0f0f0;
    border: none;
    border-radius: 2px;
    font-family: 'Montserrat', sans-serif;
    font-size: 10px;
    font-weight: 600;
    color: #333;
    padding: 3px 8px;
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    line-height: 1.4;
    display: inline-flex;
    align-items: center;
    max-width: 100%;
}

.yacht-search__sidebar .select2-container--default .select2-selection--multiple .select2-selection__choice__remove {
    color: #999;
    margin-right: 4px;
    font-size: 14px;
    line-height: 1;
}

.yacht-search__sidebar .select2-container--default .select2-selection--multiple .select2-selection__choice__remove:hover {
    color: #333;
}

.yacht-search__sidebar .select2-container--default .select2-selection--multiple .select2-search--inline {
    margin: 0;
}

.yacht-search__sidebar .select2-container--default .select2-selection--multiple .select2-search__field {
    font-family: 'Montserrat', sans-serif;
    font-size: 14px;
    margin-top: 0;
    padding: 0 4px;
    line-height: 28px;
}

.yacht-search__sidebar .select2-container--default .select2-selection--multiple .select2-search__field::placeholder {
    color: #333;
    font-size: 14px;
}

/* Hide the clear-all X when multiple items selected — pills have individual X */
.yacht-search__sidebar .select2-selection__clear {
    display: none;
}

/* Select2 dropdown — match the select2 container width exactly */
.yacht-search__sidebar .select2-container--open .select2-dropdown {
    border: 1px solid #ddd;
    border-top: none;
    box-sizing: border-box !important;
}

.yacht-search__sidebar .select2-results {
    max-height: 250px;
    overflow-y: auto;
    overflow-x: hidden;
}

.yacht-search__sidebar .select2-results__option {
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Select2 dropdown — checkbox style results */
.select2-results__option {
    padding: 6px 12px;
    font-family: 'Montserrat', sans-serif;
    font-size: 13px;
}

.select2-results__option[aria-selected="true"] {
    background: #fef9ed;
    color: #333;
}

/* Select2 overrides — single (other dropdowns) */
.yacht-search__sidebar .select2-container--default .select2-selection--single {
    border: 1px solid #ddd;
    border-radius: 0;
    height: 38px;
    padding: 4px 12px;
}

.yacht-search__sidebar .select2-container--default .select2-selection--single:focus,
.yacht-search__sidebar .select2-container--default.select2-container--open .select2-selection--single {
    border-color: #fdba2e;
}

.yacht-search__sidebar .select2-container--default .select2-selection--single .select2-selection__rendered {
    font-family: 'Montserrat', sans-serif;
    font-size: 14px;
    color: #333;
    line-height: 28px;
}

/* Clear all link */
.yacht-search__sidebar .clear-all {
    display: inline-block;
    color: #555;
    font-family: 'Montserrat', sans-serif;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    background: none;
    border: none;
    padding: 0;
    margin-top: 12px;
}

.yacht-search__sidebar .clear-all:hover {
    color: #333;
    text-decoration: underline;
}

/* ==========================================================================
   3. Grid Header
   ========================================================================== */

.yacht-search__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    border-bottom: 1px solid #eee;
    padding: 16px 0;
    margin-left: -30px;  /* bleed left to sidebar border */
    padding-left: 30px;
    margin-right: -30px; /* bleed right to page edge */
    padding-right: 30px;
    margin-bottom: 20px;
    position: sticky;
    top: 100px;
    background: #fff;
    z-index: 90;
}

.yacht-search__count {
    font-family: 'Montserrat', sans-serif;
    font-size: 18px;
    font-weight: 400;
    color: #1a1a1a;
    letter-spacing: 0.5px;
}

.yacht-search__results {
    flex: 1;
    min-width: 0;
}

.yacht-search__sort {
    font-family: 'Montserrat', sans-serif;
    font-size: 13px;
    color: #666;
}

.yacht-search__sort select {
    font-family: 'Montserrat', sans-serif;
    font-size: 13px;
    border: 1px solid #ddd;
    padding: 6px 10px;
    border-radius: 0;
    background: #fff;
}

.yacht-search__toggles {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.yacht-search__toggles .selector {
    font-family: 'Montserrat', sans-serif;
    font-size: 13px;
    color: #555;
}

.yacht-search__toggles .toggle {
    cursor: pointer;
    color: #999;
    text-decoration: none;
    transition: color 0.2s;
}

.yacht-search__toggles .toggle.active {
    color: #1a1a1a;
    font-weight: 600;
}

.yacht-search__toggles .toggle:hover {
    color: #1a1a1a;
}

select.yacht-search__sort {
    padding: 8px 12px;
    border: 1px solid #ddd;
    font-family: 'Montserrat', sans-serif;
    font-size: 13px;
    background: #fff;
    border-radius: 0;
}

/* ==========================================================================
   4. Yacht Card Grid
   ========================================================================== */

.yacht-search__grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
}

/* Sidebar visible + 2 cols on smaller desktops */
@media (min-width: 1025px) and (max-width: 1200px) {
    .yacht-search__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

/* Override theme card width/flex — theme sets 50% flex-basis but grid cells handle sizing */
.yacht-search__grid .card-yacht-listings {
    flex: none !important;
    width: 100% !important;
    max-width: 100% !important;
    float: none !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    margin-bottom: 0 !important;
    box-sizing: border-box;
}

/* Remove gold gap below cards — grid gap handles spacing, not inner margin */
.yacht-search__grid .card-yacht-listings .inner {
    margin-bottom: 0;
}

/* Prevent hover shadow from bleeding onto neighbors */
.yacht-search__grid .card-yacht-listings .inner {
    position: relative;
    z-index: 1;
}
.yacht-search__grid .card-yacht-listings .inner:hover {
    z-index: 2;
}

.yacht-search__results {
    flex: 1;
    min-width: 0;
}

/* ==========================================================================
   5. FEATURED Badge
   ========================================================================== */

.yacht-card__badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: #000;
    color: #fff;
    font-family: 'Montserrat', sans-serif;
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 4px 12px;
    z-index: 2;
    line-height: 1;
}

/* Sold overlay — semi-transparent bar across the image */
.yacht-card__sold-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.45);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1;
}

.yacht-card__sold-overlay span {
    font-family: 'Montserrat', sans-serif;
    font-size: 18px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 4px;
    color: #fff;
    padding: 8px 24px;
    border: 2px solid #fff;
}

/* Ensure card image wrapper is positioned for the badge */
.yacht-search__grid .featured-image {
    position: relative;
}

/* ==========================================================================
   6. Load More Button
   ========================================================================== */

.yacht-search__load-more {
    text-align: center;
    padding: 40px 0;
}

.yacht-search__load-more button {
    font-family: 'Montserrat', sans-serif;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    border: 2px solid #fdba2e;
    background: transparent;
    color: #333;
    padding: 14px 40px;
    cursor: pointer;
    border-radius: 0;
    transition: background 0.2s, color 0.2s;
}

.yacht-search__load-more button:hover {
    background: #fdba2e;
    color: #fff;
}

.yacht-search__load-more button:focus {
    outline: none;
}

.yacht-search__load-more button.loading {
    opacity: 0.5;
    pointer-events: none;
}

/* ==========================================================================
   7. Value Prop Strip
   ========================================================================== */

.value-prop-strip {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 0;
}

.value-prop-strip .stat {
    text-align: center;
    padding: 0 30px;
    border-right: 1px solid #fdba2e;
}

.value-prop-strip .stat:last-child {
    border-right: none;
}

.value-prop-strip .stat-number {
    font-family: 'Playfair Display', serif;
    font-weight: 300;
}

.value-prop-strip .stat-label {
    font-family: 'Montserrat', sans-serif;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
}

/* ==========================================================================
   8. Editorial Section
   ========================================================================== */

.editorial-intro {
    max-width: 880px;
    margin: 0 auto;
    font-family: 'Montserrat', sans-serif;
    font-size: 16px;
    line-height: 1.7;
}

.editorial-intro a {
    color: #333;
    text-decoration: underline;
    transition: color 0.2s;
}

.editorial-intro a:hover {
    color: #fdba2e;
}

.editorial-intro h2,
.editorial-intro h3 {
    font-family: 'Playfair Display', serif;
    font-weight: 300;
}

/* ==========================================================================
   9. Types Section
   ========================================================================== */

.types-section {
    background: #121212;
    color: #fff;
}

.types-section h2 {
    font-family: 'Playfair Display', serif;
    font-weight: 300;
    color: #fff;
}

.types-section p {
    font-family: 'Montserrat', sans-serif;
    font-size: 16px;
    line-height: 1.7;
    color: #ccc;
}

.types-section a {
    color: #fdba2e;
    text-decoration: none;
    transition: color 0.2s;
}

.types-section a:hover {
    color: #D4B65A;
}

.types-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.type-card {
    position: relative;
    aspect-ratio: 16 / 9;
    background: #333;
    overflow: hidden;
    display: flex;
    align-items: flex-end;
}

.type-card img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.type-card:hover img {
    transform: scale(1.05);
}

.type-card__overlay {
    position: relative;
    z-index: 1;
    width: 100%;
    padding: 16px;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.7));
}

.type-card__title {
    font-family: 'Montserrat', sans-serif;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #fff;
}

/* ==========================================================================
   10. Process Timeline
   ========================================================================== */

.process-section h2 {
    font-family: 'Playfair Display', serif;
    font-weight: 300;
}

.process-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    position: relative;
}

/* Connecting gold line */
.process-grid::before {
    content: '';
    position: absolute;
    top: 30px;
    left: 10%;
    right: 10%;
    height: 2px;
    background: #fdba2e;
    z-index: 0;
}

.process-step {
    text-align: center;
    position: relative;
    z-index: 1;
}

.process-step__number {
    font-family: 'Playfair Display', serif;
    font-size: 42px;
    font-weight: 300;
    color: #fdba2e;
    line-height: 1;
    margin-bottom: 16px;
    background: #fff;
    display: inline-block;
    padding: 0 10px;
}

.process-step__title {
    font-family: 'Montserrat', sans-serif;
    font-size: 15px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #333;
    margin-bottom: 10px;
}

.process-step__desc {
    font-family: 'Montserrat', sans-serif;
    font-size: 14px;
    color: #666;
    line-height: 1.7;
}

/* ==========================================================================
   11. Why Moran Section
   ========================================================================== */

.why-moran-section h2 {
    font-family: 'Playfair Display', serif;
    font-weight: 300;
}

.why-moran-grid {
    display: grid;
    grid-template-columns: 60% 40%;
    gap: 40px;
    align-items: start;
}

.why-moran-section p {
    font-family: 'Montserrat', sans-serif;
    font-size: 16px;
    line-height: 1.7;
    color: #333;
}

.why-moran-section a {
    color: #fdba2e;
    text-decoration: none;
    transition: color 0.2s;
}

.why-moran-section a:hover {
    color: #D4B65A;
}

.why-moran-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

.why-moran-stat__number {
    font-family: 'Playfair Display', serif;
    font-size: 48px;
    font-weight: 300;
    color: #fdba2e;
    line-height: 1;
    margin-bottom: 6px;
}

.why-moran-stat__label {
    font-family: 'Montserrat', sans-serif;
    font-size: 13px;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* ==========================================================================
   12. FAQ Section
   ========================================================================== */

.faq-section {
    max-width: 880px;
    margin: 0 auto;
}

.faq-section h2 {
    font-family: 'Playfair Display', serif;
    font-weight: 300;
}

.faq-item {
    border-bottom: 1px solid #e0e0e0;
}

.faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding: 20px 0;
    font-family: 'Montserrat', sans-serif;
    font-size: 16px;
    font-weight: 600;
    color: #333;
    background: transparent;
    border: none;
    cursor: pointer;
    text-align: left;
    line-height: 1.4;
}

.faq-question:hover {
    color: #fdba2e;
}

.faq-icon {
    color: #fdba2e;
    font-size: 24px;
    flex-shrink: 0;
    margin-left: 16px;
    transition: transform 0.3s;
    line-height: 1;
}

.faq-item.active .faq-icon {
    transform: rotate(45deg);
}

.faq-answer {
    padding: 0 0 20px;
    font-family: 'Montserrat', sans-serif;
    font-size: 15px;
    color: #666;
    line-height: 1.7;
    display: none;
}

.faq-item.active .faq-answer {
    display: block;
}

.faq-answer a {
    color: #fdba2e;
    text-decoration: none;
}

.faq-answer a:hover {
    text-decoration: underline;
}

/* ==========================================================================
   13. CTA Banner
   ========================================================================== */

.cta-banner {
    background: #fdba2e;
    text-align: center;
    padding: 60px 30px;
}

.cta-banner h2 {
    font-family: 'Playfair Display', serif;
    font-size: 36px;
    font-weight: 300;
    color: #121212;
    margin-bottom: 12px;
}

.cta-banner .cta-subtitle {
    font-family: 'Montserrat', sans-serif;
    font-size: 16px;
    color: #4a3d1a;
    margin-bottom: 30px;
}

.cta-banner__buttons {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 16px;
    margin-bottom: 20px;
}

.cta-banner__btn--primary {
    display: inline-block;
    font-family: 'Montserrat', sans-serif;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    background: #121212;
    color: #fff;
    padding: 14px 36px;
    border: 2px solid #121212;
    border-radius: 0;
    cursor: pointer;
    text-decoration: none;
    transition: background 0.2s, color 0.2s;
}

.cta-banner__btn--primary:hover {
    background: #333;
    border-color: #333;
    color: #fff;
}

.cta-banner__btn--secondary {
    display: inline-block;
    font-family: 'Montserrat', sans-serif;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    background: transparent;
    color: #121212;
    padding: 14px 36px;
    border: 2px solid #121212;
    border-radius: 0;
    cursor: pointer;
    text-decoration: none;
    transition: background 0.2s, color 0.2s;
}

.cta-banner__btn--secondary:hover {
    background: #121212;
    color: #fff;
}

.cta-banner__phone {
    font-family: 'Montserrat', sans-serif;
    font-size: 14px;
    color: #5a4d2a;
}

.cta-banner__phone a {
    color: #5a4d2a;
    text-decoration: none;
}

.cta-banner__phone a:hover {
    text-decoration: underline;
}

/* ==========================================================================
   14. Responsive Breakpoints
   ========================================================================== */

/* -- Mobile/tablet filter toggle button (inside sticky header) -- */
.yacht-search__mobile-filter-btn {
    display: none;
    font-family: 'Montserrat', sans-serif;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    background: #000;
    color: #fff;
    padding: 10px 20px;
    border: none;
    border-radius: 0;
    cursor: pointer;
    white-space: nowrap;
}

.yacht-search__mobile-filter-btn:hover {
    background: #1a1a1a;
}

/* Close button inside mobile drawer */
.yacht-search__sidebar-close {
    display: none;
    position: fixed;
    top: 14px;
    right: 16px;
    background: #000;
    border: none;
    font-size: 24px;
    color: #fff;
    cursor: pointer;
    line-height: 1;
    padding: 8px 14px;
    z-index: 10001;
    border-radius: 0;
}

/* Mobile filter drawer state — !important to override media query display:none */
.yacht-search__sidebar.yacht-search__sidebar--mobile-open {
    display: block !important;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    background: #fff;
    padding: 60px 24px 140px;
    max-height: none;
    border-right: none;
}

.yacht-search__sidebar.yacht-search__sidebar--mobile-open .yacht-search__sidebar-close {
    display: block;
}

/* Apply Filters button — shown only in mobile drawer */
.yacht-search__sidebar-apply {
    display: none;
}

.yacht-search__sidebar.yacht-search__sidebar--mobile-open .yacht-search__sidebar-apply {
    display: block;
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 16px 24px;
    background: #000;
    color: #fff;
    font-family: 'Montserrat', sans-serif;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    border: none;
    cursor: pointer;
    z-index: 10001;
    text-align: center;
}

/* Move Clear All into the fixed bottom area on mobile */
.yacht-search__sidebar.yacht-search__sidebar--mobile-open .clear-all {
    position: fixed;
    bottom: 56px;
    left: 0;
    width: 100%;
    text-align: center;
    background: #fff;
    padding: 12px 0;
    z-index: 10001;
    margin: 0;
    border-top: 1px solid #eee;
}

/* -- Tablet: max-width 1024px -- */
@media (max-width: 1024px) {
    .yacht-search {
        flex-direction: column;
        padding: 30px 20px;
    }

    .yacht-search__sidebar {
        display: none;
        width: 100%;
        position: static;
        max-height: none;
        border-right: none;
        padding: 24px 0;
    }

    .yacht-search__mobile-filter-btn {
        display: block;
        width: 100%;
        margin-top: 10px;
    }

    .yacht-search__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .yacht-search__count {
        font-size: 16px;
    }

    .types-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .process-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px;
    }

    .process-grid::before {
        display: none;
    }

    .why-moran-grid {
        grid-template-columns: 1fr;
    }

    .cta-banner h2 {
        font-size: 30px;
    }
}

/* -- Mobile: max-width 768px -- */
@media (max-width: 768px) {
    .yacht-search {
        padding: 24px 12px;
    }

    .yacht-search__grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .yacht-search__header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
        top: 60px;
    }

    .yacht-search__header .yacht-search__toggles { order: 1; }
    .yacht-search__header .yacht-search__mobile-filter-btn { order: 2; }
    .yacht-search__header .yacht-search__count { order: 3; width: 100%; text-align: center; }

    .yacht-search__toggles {
        display: flex;
        flex-direction: row;
        align-items: center;
        width: 100%;
        justify-content: space-between;
        gap: 10px;
    }

    .yacht-search__toggles .selector {
        font-size: 11px;
        white-space: nowrap;
    }

    select.yacht-search__sort {
        font-size: 11px;
        padding: 4px 6px;
        max-width: 130px;
    }

    .types-grid {
        grid-template-columns: 1fr;
    }

    .process-grid {
        grid-template-columns: 1fr;
    }

    .process-step {
        padding-bottom: 24px;
    }

    /* Value prop strip: stack vertically */
    .value-prop-strip {
        flex-direction: column;
        gap: 16px;
    }

    .value-prop-strip .stat {
        border-right: none;
        border-bottom: 1px solid #fdba2e;
        padding: 0 0 16px;
    }

    .value-prop-strip .stat:last-child {
        border-bottom: none;
    }

    /* CTA buttons: stack */
    .cta-banner__buttons {
        flex-direction: column;
    }

    .cta-banner__btn--primary,
    .cta-banner__btn--secondary {
        width: 100%;
        max-width: 300px;
        text-align: center;
    }

    .cta-banner h2 {
        font-size: 26px;
    }

    .cta-banner {
        padding: 40px 20px;
    }

    .why-moran-stats {
        grid-template-columns: 1fr 1fr;
        gap: 20px;
    }

    .why-moran-stat__number {
        font-size: 36px;
    }

    .faq-question {
        font-size: 15px;
        padding: 16px 0;
    }
}

/* ==========================================================================
   15. Grid Loading State
   ========================================================================== */

.yacht-search__grid.loading {
    opacity: 0.5;
    pointer-events: none;
    transition: opacity 0.2s;
}
