/**
 * Forte Marine Boats - Frontend Styles
 * Version: 1.0.0
 */

/* =========================================
   CSS Variables
   ========================================= */
:root {
    --fmb-primary: #0b3d6b;
    --fmb-primary-light: #1565a0;
    --fmb-primary-dark: #062a4a;
    --fmb-accent: #e8a517;
    --fmb-accent-hover: #d19414;
    --fmb-text: #1a1a2e;
    --fmb-text-light: #5a6275;
    --fmb-text-muted: #8b93a7;
    --fmb-bg: #f5f7fa;
    --fmb-white: #ffffff;
    --fmb-border: #e1e5eb;
    --fmb-border-light: #eef1f5;
    --fmb-shadow-sm: 0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
    --fmb-shadow: 0 4px 12px rgba(0,0,0,0.08);
    --fmb-shadow-lg: 0 10px 30px rgba(0,0,0,0.12);
    --fmb-radius: 8px;
    --fmb-radius-lg: 12px;
    --fmb-transition: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    --fmb-font: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

/* =========================================
   Base / Reset
   ========================================= */
.fmb-page-wrap {
    max-width: 1340px;
    margin: 0 auto;
    padding: 20px;
    font-family: var(--fmb-font);
    color: var(--fmb-text);
    line-height: 1.6;
}

.fmb-page-wrap *,
.fmb-page-wrap *::before,
.fmb-page-wrap *::after {
    box-sizing: border-box;
}

/* =========================================
   Buttons
   ========================================= */
.fmb-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 20px;
    font-size: 14px;
    font-weight: 600;
    border: 2px solid transparent;
    border-radius: var(--fmb-radius);
    cursor: pointer;
    text-decoration: none;
    transition: all var(--fmb-transition);
    white-space: nowrap;
    line-height: 1.4;
}

.fmb-btn-primary {
    background: var(--fmb-primary);
    color: var(--fmb-white);
    border-color: var(--fmb-primary);
}

.fmb-btn-primary:hover {
    background: var(--fmb-primary-light);
    border-color: var(--fmb-primary-light);
    color: var(--fmb-white);
    transform: translateY(-1px);
    box-shadow: var(--fmb-shadow);
}

.fmb-btn-outline {
    background: transparent;
    color: var(--fmb-primary);
    border-color: var(--fmb-border);
}

.fmb-btn-outline:hover {
    border-color: var(--fmb-primary);
    background: rgba(11, 61, 107, 0.04);
    color: var(--fmb-primary);
}

.fmb-btn-block {
    display: flex;
    justify-content: center;
    width: 100%;
}

/* =========================================
   Featured Boats Section
   ========================================= */
.fmb-featured-section {
    margin-bottom: 48px;
}

.fmb-featured-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    margin-bottom: 28px;
    padding-bottom: 16px;
    border-bottom: 2px solid var(--fmb-primary);
}

.fmb-featured-title {
    font-size: 28px;
    font-weight: 800;
    color: var(--fmb-primary-dark);
    margin: 0 0 4px;
    line-height: 1.2;
}

.fmb-featured-subtitle {
    font-size: 15px;
    color: var(--fmb-text-light);
    margin: 0;
}

.fmb-featured-grid .fmb-boat-card {
    border: 2px solid var(--fmb-accent);
}

/* =========================================
   Boat Grid
   ========================================= */
.fmb-boat-grid {
    display: grid;
    gap: 24px;
}

.fmb-grid-cols-2 { grid-template-columns: repeat(2, 1fr); }
.fmb-grid-cols-3 { grid-template-columns: repeat(3, 1fr); }
.fmb-grid-cols-4 { grid-template-columns: repeat(4, 1fr); }

/* List view */
.fmb-boat-grid.fmb-list-view {
    grid-template-columns: 1fr !important;
}

.fmb-list-view .fmb-boat-card .fmb-card-link {
    display: flex;
    flex-direction: row;
}

.fmb-list-view .fmb-boat-card .fmb-card-image {
    width: 320px;
    min-width: 320px;
    height: 220px;
    border-radius: var(--fmb-radius-lg) 0 0 var(--fmb-radius-lg);
}

.fmb-list-view .fmb-boat-card .fmb-card-body {
    flex: 1;
    padding: 20px 24px;
}

/* =========================================
   Boat Card
   ========================================= */
.fmb-boat-card {
    background: var(--fmb-white);
    border-radius: var(--fmb-radius-lg);
    border: 1px solid var(--fmb-border-light);
    overflow: hidden;
    transition: all var(--fmb-transition);
    position: relative;
}

.fmb-boat-card:hover {
    box-shadow: var(--fmb-shadow-lg);
    transform: translateY(-4px);
    border-color: var(--fmb-border);
}

.fmb-card-link {
    display: block;
    text-decoration: none;
    color: inherit;
}

.fmb-card-image {
    position: relative;
    width: 100%;
    height: 220px;
    overflow: hidden;
    background: var(--fmb-bg);
}

.fmb-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.fmb-boat-card:hover .fmb-card-image img {
    transform: scale(1.05);
}

.fmb-no-image {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    color: var(--fmb-text-muted);
    gap: 8px;
}

.fmb-no-image svg {
    width: 40px;
    height: 40px;
    opacity: 0.4;
}

.fmb-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    padding: 4px 10px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-radius: 4px;
    z-index: 2;
}

.fmb-badge-used {
    background: var(--fmb-primary);
    color: var(--fmb-white);
}

.fmb-badge-new {
    background: #10b981;
    color: var(--fmb-white);
}

.fmb-badge-featured {
    background: var(--fmb-accent);
    color: var(--fmb-white);
    top: auto;
    bottom: 12px;
    left: 12px;
}

.fmb-img-count {
    position: absolute;
    bottom: 12px;
    right: 12px;
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 4px 8px;
    background: rgba(0,0,0,0.6);
    color: #fff;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    z-index: 2;
}

.fmb-card-body {
    padding: 16px 18px 20px;
}

.fmb-card-price {
    font-size: 22px;
    font-weight: 800;
    color: var(--fmb-primary);
    margin-bottom: 4px;
}

.fmb-card-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--fmb-text);
    margin: 0 0 10px;
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.fmb-card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 8px;
}

.fmb-meta-item {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 13px;
    color: var(--fmb-text-light);
}

.fmb-meta-item svg {
    opacity: 0.5;
}

.fmb-card-engine {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 13px;
    color: var(--fmb-text-muted);
    margin-top: 6px;
    padding-top: 10px;
    border-top: 1px solid var(--fmb-border-light);
}

.fmb-card-engine svg { opacity: 0.4; }
.fmb-hours { color: var(--fmb-text-muted); }

/* =========================================
   Search & Filter Form
   ========================================= */
.fmb-search-section {
    margin-bottom: 32px;
    background: var(--fmb-white);
    border: 1px solid var(--fmb-border-light);
    border-radius: var(--fmb-radius-lg);
    padding: 24px;
    box-shadow: var(--fmb-shadow-sm);
}

.fmb-search-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
}

.fmb-search-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--fmb-primary-dark);
    margin: 0;
}

.fmb-toggle-filters {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    background: var(--fmb-bg);
    border: 1px solid var(--fmb-border);
    border-radius: var(--fmb-radius);
    font-size: 14px;
    font-weight: 600;
    color: var(--fmb-text);
    cursor: pointer;
    transition: all var(--fmb-transition);
}

.fmb-toggle-filters:hover {
    border-color: var(--fmb-primary);
    color: var(--fmb-primary);
}

.fmb-search-row {
    display: flex;
    gap: 12px;
    align-items: stretch;
    margin-bottom: 16px;
}

.fmb-search-input-wrap {
    flex: 1;
    position: relative;
    display: flex;
    align-items: center;
}

.fmb-search-input-wrap svg {
    position: absolute;
    left: 14px;
    color: var(--fmb-text-muted);
    pointer-events: none;
}

.fmb-search-input-wrap input {
    width: 100%;
    padding: 12px 14px 12px 42px;
    border: 1px solid var(--fmb-border);
    border-radius: var(--fmb-radius);
    font-size: 15px;
    transition: border-color var(--fmb-transition);
}

.fmb-search-input-wrap input:focus {
    outline: none;
    border-color: var(--fmb-primary);
    box-shadow: 0 0 0 3px rgba(11, 61, 107, 0.1);
}

.fmb-search-quick-filters {
    display: flex;
    gap: 10px;
    align-items: stretch;
}

.fmb-search-quick-filters select {
    padding: 10px 14px;
    border: 1px solid var(--fmb-border);
    border-radius: var(--fmb-radius);
    font-size: 14px;
    min-width: 160px;
    background: var(--fmb-white);
    cursor: pointer;
    color: var(--fmb-text);
}

.fmb-search-quick-filters select:focus {
    outline: none;
    border-color: var(--fmb-primary);
}

/* Advanced Filters */
.fmb-advanced-filters {
    display: none;
    padding-top: 16px;
    border-top: 1px solid var(--fmb-border-light);
}

.fmb-advanced-filters.active {
    display: block;
}

.fmb-filter-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-bottom: 20px;
}

.fmb-filter-group label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    color: var(--fmb-text-light);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 6px;
}

.fmb-filter-group select,
.fmb-filter-group input {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid var(--fmb-border);
    border-radius: var(--fmb-radius);
    font-size: 14px;
    background: var(--fmb-white);
    color: var(--fmb-text);
}

.fmb-filter-group select:focus,
.fmb-filter-group input:focus {
    outline: none;
    border-color: var(--fmb-primary);
    box-shadow: 0 0 0 3px rgba(11,61,107,0.08);
}

.fmb-range-inputs {
    display: flex;
    align-items: center;
    gap: 8px;
}

.fmb-range-inputs input {
    flex: 1;
    min-width: 0;
}

.fmb-range-sep {
    color: var(--fmb-text-muted);
    font-weight: 600;
}

.fmb-filter-actions {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    padding-top: 16px;
    border-top: 1px solid var(--fmb-border-light);
}

/* =========================================
   Listing Topbar
   ========================================= */
.fmb-listing-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
    padding: 12px 0;
}

.fmb-results-count {
    font-size: 15px;
    color: var(--fmb-text-light);
}

.fmb-sort-wrap {
    display: flex;
    align-items: center;
    gap: 10px;
}

.fmb-sort-wrap label {
    font-size: 13px;
    color: var(--fmb-text-muted);
    white-space: nowrap;
}

.fmb-sort-select {
    padding: 8px 12px;
    border: 1px solid var(--fmb-border);
    border-radius: var(--fmb-radius);
    font-size: 14px;
    background: var(--fmb-white);
    cursor: pointer;
}

.fmb-view-toggles {
    display: flex;
    gap: 2px;
    margin-left: 8px;
}

.fmb-view-btn {
    padding: 8px;
    border: 1px solid var(--fmb-border);
    background: var(--fmb-white);
    cursor: pointer;
    color: var(--fmb-text-muted);
    transition: all var(--fmb-transition);
}

.fmb-view-btn:first-child { border-radius: var(--fmb-radius) 0 0 var(--fmb-radius); }
.fmb-view-btn:last-child { border-radius: 0 var(--fmb-radius) var(--fmb-radius) 0; }

.fmb-view-btn.active,
.fmb-view-btn:hover {
    background: var(--fmb-primary);
    border-color: var(--fmb-primary);
    color: var(--fmb-white);
}

/* =========================================
   No Results
   ========================================= */
.fmb-no-results {
    grid-column: 1 / -1;
    text-align: center;
    padding: 60px 20px;
    color: var(--fmb-text-muted);
}

.fmb-no-results svg { margin-bottom: 16px; opacity: 0.3; }
.fmb-no-results h3 { margin: 0 0 8px; font-size: 20px; color: var(--fmb-text-light); }
.fmb-no-results p { margin: 0; font-size: 15px; }

/* =========================================
   Pagination
   ========================================= */
.fmb-pagination {
    margin-top: 40px;
    display: flex;
    justify-content: center;
}

.fmb-pagination ul {
    list-style: none;
    display: flex;
    gap: 4px;
    margin: 0;
    padding: 0;
}

.fmb-pagination li {
    margin: 0;
}

.fmb-pagination li a,
.fmb-pagination li span {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 12px;
    border: 1px solid var(--fmb-border);
    border-radius: var(--fmb-radius);
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    color: var(--fmb-text);
    background: var(--fmb-white);
    transition: all var(--fmb-transition);
}

.fmb-pagination li a:hover {
    background: var(--fmb-primary);
    border-color: var(--fmb-primary);
    color: var(--fmb-white);
}

.fmb-pagination li span.current {
    background: var(--fmb-primary);
    border-color: var(--fmb-primary);
    color: var(--fmb-white);
}

/* =========================================
   Single Boat Detail
   ========================================= */

/* Breadcrumb */
.fmb-breadcrumb {
    font-size: 13px;
    color: var(--fmb-text-muted);
    margin-bottom: 20px;
    padding: 12px 0;
}

.fmb-breadcrumb a {
    color: var(--fmb-primary);
    text-decoration: none;
}

.fmb-breadcrumb a:hover { text-decoration: underline; }

.fmb-bc-sep {
    margin: 0 8px;
    opacity: 0.4;
}

/* Gallery */
.fmb-gallery {
    margin-bottom: 32px;
}

.fmb-gallery-main {
    position: relative;
    border-radius: var(--fmb-radius-lg);
    overflow: hidden;
    background: #000;
    max-height: 560px;
}

.fmb-gallery-slider {
    position: relative;
    width: 100%;
    height: 560px;
}

.fmb-slide {
    display: none;
    width: 100%;
    height: 100%;
}

.fmb-slide.active {
    display: block;
}

.fmb-slide img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: #0a0a0a;
}

.fmb-slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    border: none;
    border-radius: 50%;
    background: rgba(255,255,255,0.9);
    color: var(--fmb-text);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    transition: all var(--fmb-transition);
    box-shadow: var(--fmb-shadow);
}

.fmb-slider-btn:hover {
    background: var(--fmb-white);
    transform: translateY(-50%) scale(1.05);
}

.fmb-slider-prev { left: 16px; }
.fmb-slider-next { right: 16px; }

.fmb-slider-counter {
    position: absolute;
    bottom: 16px;
    right: 16px;
    padding: 6px 14px;
    background: rgba(0,0,0,0.6);
    color: #fff;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    z-index: 10;
}

.fmb-detail-badge {
    position: absolute;
    top: 16px;
    left: 16px;
    padding: 6px 14px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-radius: 4px;
    z-index: 10;
}

/* Thumbnails */
.fmb-gallery-thumbs {
    display: flex;
    gap: 8px;
    margin-top: 10px;
    overflow-x: auto;
    padding: 4px 0;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
}

.fmb-thumb {
    flex-shrink: 0;
    width: 80px;
    height: 60px;
    border: 2px solid transparent;
    border-radius: 6px;
    overflow: hidden;
    cursor: pointer;
    opacity: 0.6;
    transition: all var(--fmb-transition);
    padding: 0;
    background: none;
}

.fmb-thumb.active,
.fmb-thumb:hover {
    border-color: var(--fmb-primary);
    opacity: 1;
}

.fmb-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Content Layout */
.fmb-detail-content {
    display: grid;
    grid-template-columns: 1fr 360px;
    gap: 36px;
    align-items: start;
}

.fmb-detail-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 24px;
    margin-bottom: 24px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--fmb-border-light);
}

.fmb-listing-tag {
    display: inline-block;
    padding: 3px 10px;
    background: var(--fmb-accent);
    color: var(--fmb-white);
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-radius: 3px;
    margin-bottom: 8px;
}

.fmb-detail-title {
    font-size: 28px;
    font-weight: 800;
    color: var(--fmb-primary-dark);
    margin: 0 0 6px;
    line-height: 1.2;
}

.fmb-boat-name {
    font-size: 16px;
    font-style: italic;
    color: var(--fmb-text-light);
}

.fmb-detail-location {
    display: flex;
    align-items: center;
    gap: 5px;
    color: var(--fmb-text-light);
    font-size: 14px;
    margin-top: 6px;
}

.fmb-detail-price-box {
    text-align: right;
    flex-shrink: 0;
}

.fmb-detail-price {
    font-size: 30px;
    font-weight: 800;
    color: var(--fmb-primary);
    white-space: nowrap;
}

.fmb-sale-class {
    display: inline-block;
    padding: 3px 10px;
    background: var(--fmb-bg);
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    color: var(--fmb-text-light);
    text-transform: uppercase;
    margin-top: 4px;
}

/* Quick Specs Bar */
.fmb-quick-specs {
    display: flex;
    flex-wrap: wrap;
    gap: 0;
    background: var(--fmb-bg);
    border-radius: var(--fmb-radius-lg);
    padding: 4px;
    margin-bottom: 32px;
}

.fmb-qspec {
    flex: 1;
    min-width: 100px;
    text-align: center;
    padding: 14px 12px;
    border-right: 1px solid var(--fmb-border-light);
}

.fmb-qspec:last-child { border-right: none; }

.fmb-qspec-label {
    display: block;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--fmb-text-muted);
    margin-bottom: 4px;
}

.fmb-qspec-value {
    display: block;
    font-size: 16px;
    font-weight: 700;
    color: var(--fmb-text);
}

/* Section Titles */
.fmb-detail-section {
    margin-bottom: 36px;
}

.fmb-section-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--fmb-primary-dark);
    margin: 0 0 18px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--fmb-border-light);
}

/* Description */
.fmb-description {
    font-size: 15px;
    line-height: 1.7;
    color: var(--fmb-text);
}

.fmb-description p { margin: 0 0 14px; }
.fmb-description ul { margin: 10px 0; padding-left: 20px; }

/* Specifications Grid */
.fmb-specs-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.fmb-spec-group-title {
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--fmb-primary);
    margin: 0 0 12px;
}

.fmb-spec-table {
    width: 100%;
    border-collapse: collapse;
}

.fmb-spec-table tr {
    border-bottom: 1px solid var(--fmb-border-light);
}

.fmb-spec-table td {
    padding: 9px 6px;
    font-size: 14px;
}

.fmb-spec-label {
    color: var(--fmb-text-light);
    width: 45%;
}

.fmb-spec-value {
    font-weight: 600;
    color: var(--fmb-text);
}

/* Engine Cards */
.fmb-engines-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 16px;
}

.fmb-engine-card {
    background: var(--fmb-bg);
    border-radius: var(--fmb-radius);
    padding: 18px;
}

.fmb-engine-card h4 {
    font-size: 14px;
    font-weight: 700;
    color: var(--fmb-primary);
    margin: 0 0 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Additional Details */
.fmb-addl-block {
    margin-bottom: 18px;
    font-size: 14px;
    line-height: 1.7;
}

.fmb-addl-block ul {
    margin: 8px 0;
    padding-left: 20px;
}

/* Videos */
.fmb-videos {
    display: grid;
    gap: 16px;
}

.fmb-video-wrap {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    border-radius: var(--fmb-radius-lg);
}

.fmb-video-wrap iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* =========================================
   Sidebar
   ========================================= */
.fmb-detail-sidebar {
    position: sticky;
    top: 20px;
}

.fmb-contact-card {
    background: var(--fmb-white);
    border: 1px solid var(--fmb-border);
    border-radius: var(--fmb-radius-lg);
    padding: 24px;
    margin-bottom: 20px;
    box-shadow: var(--fmb-shadow-sm);
}

.fmb-contact-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--fmb-primary-dark);
    margin: 0 0 16px;
}

.fmb-contact-company {
    font-size: 16px;
    font-weight: 600;
    color: var(--fmb-text);
    margin-bottom: 4px;
}

.fmb-contact-broker {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    color: var(--fmb-text-light);
    margin-bottom: 16px;
}

.fmb-contact-card .fmb-btn {
    margin-bottom: 10px;
}

/* Inquiry Form */
.fmb-inquiry-form {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid var(--fmb-border-light);
}

.fmb-inquiry-form h4 {
    font-size: 15px;
    font-weight: 600;
    margin: 0 0 14px;
    color: var(--fmb-text);
}

.fmb-form-row {
    margin-bottom: 10px;
}

.fmb-form-row input,
.fmb-form-row textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid var(--fmb-border);
    border-radius: var(--fmb-radius);
    font-size: 14px;
    font-family: var(--fmb-font);
    resize: vertical;
}

.fmb-form-row input:focus,
.fmb-form-row textarea:focus {
    outline: none;
    border-color: var(--fmb-primary);
    box-shadow: 0 0 0 3px rgba(11,61,107,0.08);
}

/* Share */
.fmb-share-card {
    background: var(--fmb-white);
    border: 1px solid var(--fmb-border);
    border-radius: var(--fmb-radius-lg);
    padding: 20px 24px;
    margin-bottom: 20px;
}

.fmb-share-card h4 {
    font-size: 14px;
    font-weight: 600;
    color: var(--fmb-text);
    margin: 0 0 12px;
}

.fmb-share-buttons {
    display: flex;
    gap: 8px;
}

.fmb-share-btn {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    border: 1px solid var(--fmb-border);
    background: var(--fmb-white);
    color: var(--fmb-text-light);
    text-decoration: none;
    cursor: pointer;
    transition: all var(--fmb-transition);
}

.fmb-share-fb:hover { background: #1877F2; border-color: #1877F2; color: #fff; }
.fmb-share-tw:hover { background: #1DA1F2; border-color: #1DA1F2; color: #fff; }
.fmb-share-email:hover { background: var(--fmb-primary); border-color: var(--fmb-primary); color: #fff; }
.fmb-share-copy:hover { background: var(--fmb-text); border-color: var(--fmb-text); color: #fff; }
.fmb-share-copy.copied { background: #10b981; border-color: #10b981; color: #fff; }

/* Similar Boats */
.fmb-similar-boats {
    background: var(--fmb-white);
    border: 1px solid var(--fmb-border);
    border-radius: var(--fmb-radius-lg);
    padding: 20px 24px;
}

.fmb-similar-boats h3 {
    font-size: 16px;
    font-weight: 700;
    color: var(--fmb-primary-dark);
    margin: 0 0 16px;
}

.fmb-similar-item {
    display: flex;
    gap: 12px;
    padding: 10px 0;
    border-bottom: 1px solid var(--fmb-border-light);
    text-decoration: none;
    color: inherit;
    transition: opacity var(--fmb-transition);
}

.fmb-similar-item:last-child { border-bottom: none; }
.fmb-similar-item:hover { opacity: 0.8; }

.fmb-similar-img {
    width: 80px;
    height: 60px;
    border-radius: 6px;
    overflow: hidden;
    flex-shrink: 0;
    background: var(--fmb-bg);
}

.fmb-similar-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.fmb-similar-info h4 {
    font-size: 13px;
    font-weight: 600;
    margin: 0 0 4px;
    color: var(--fmb-text);
    line-height: 1.3;
}

.fmb-similar-price {
    font-size: 14px;
    font-weight: 700;
    color: var(--fmb-primary);
}

/* =========================================
   Archive Header
   ========================================= */
.fmb-archive-header {
    margin-bottom: 32px;
    padding-bottom: 20px;
    border-bottom: 2px solid var(--fmb-border-light);
}

.fmb-archive-header h1 {
    font-size: 32px;
    font-weight: 800;
    color: var(--fmb-primary-dark);
    margin: 0 0 8px;
}

.fmb-archive-header p {
    font-size: 16px;
    color: var(--fmb-text-light);
    margin: 0;
}

.fmb-term-count {
    margin-top: 8px;
    font-size: 14px;
    color: var(--fmb-text-muted);
}

/* =========================================
   Loading state
   ========================================= */
.fmb-loading {
    text-align: center;
    padding: 40px;
}

.fmb-loading::after {
    content: '';
    display: inline-block;
    width: 32px;
    height: 32px;
    border: 3px solid var(--fmb-border);
    border-top-color: var(--fmb-primary);
    border-radius: 50%;
    animation: fmb-spin 0.7s linear infinite;
}

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

/* =========================================
   Responsive
   ========================================= */
@media (max-width: 1024px) {
    .fmb-grid-cols-4 { grid-template-columns: repeat(3, 1fr); }
    .fmb-filter-grid { grid-template-columns: repeat(3, 1fr); }
    .fmb-detail-content { grid-template-columns: 1fr 300px; }
}

@media (max-width: 768px) {
    .fmb-grid-cols-3,
    .fmb-grid-cols-4 { grid-template-columns: repeat(2, 1fr); }

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

    .fmb-search-row {
        flex-direction: column;
    }

    .fmb-search-quick-filters {
        flex-wrap: wrap;
    }

    .fmb-search-quick-filters select {
        flex: 1;
        min-width: 140px;
    }

    .fmb-detail-content {
        grid-template-columns: 1fr;
    }

    .fmb-detail-sidebar {
        position: static;
    }

    .fmb-gallery-slider {
        height: 350px;
    }

    .fmb-detail-header {
        flex-direction: column;
        gap: 12px;
    }

    .fmb-detail-price-box {
        text-align: left;
    }

    .fmb-specs-grid {
        grid-template-columns: 1fr;
    }

    .fmb-listing-topbar {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .fmb-quick-specs {
        flex-wrap: wrap;
    }

    .fmb-qspec {
        flex: 0 0 calc(33.33% - 4px);
        border-right: none;
        border-bottom: 1px solid var(--fmb-border-light);
    }

    .fmb-list-view .fmb-boat-card .fmb-card-link {
        flex-direction: column;
    }

    .fmb-list-view .fmb-boat-card .fmb-card-image {
        width: 100%;
        min-width: unset;
        height: 200px;
        border-radius: var(--fmb-radius-lg) var(--fmb-radius-lg) 0 0;
    }
}

@media (max-width: 480px) {
    .fmb-grid-cols-2,
    .fmb-grid-cols-3,
    .fmb-grid-cols-4 { grid-template-columns: 1fr; }

    .fmb-filter-grid { grid-template-columns: 1fr; }

    .fmb-gallery-slider { height: 260px; }

    .fmb-detail-title { font-size: 22px; }
    .fmb-detail-price { font-size: 24px; }
    .fmb-featured-title { font-size: 22px; }

    .fmb-qspec {
        flex: 0 0 calc(50% - 4px);
    }
}
