/* -----------------------------------------------------------
   ARCHIVE WRAPPER
----------------------------------------------------------- */
.boats-archive-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 1rem;
}

/* -----------------------------------------------------------
   FILTER BAR
----------------------------------------------------------- */
.boat-filter-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    gap: 12px 16px;
    margin-bottom: 2rem;
    padding: 20px 24px;
    background: #f7f9fb;
    border: 1px solid #e2e8ee;
    border-radius: 10px;
}

.boat-filter-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
    flex: 1 1 140px;
    min-width: 120px;
}

.boat-filter-group label {
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    color: #5a6b7e;
}

.boat-filter-group select,
.boat-filter-group input {
    padding: 9px 12px;
    border: 1px solid #d0d9e3;
    border-radius: 6px;
    font-size: 14px;
    color: #2c3e50;
    background: #fff;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    width: 100%;
    box-sizing: border-box;
}

.boat-filter-group select:focus,
.boat-filter-group input:focus {
    border-color: #0879ad;
    box-shadow: 0 0 0 3px rgba(8, 121, 173, 0.15);
    outline: none;
}

.boat-filter-actions {
    display: flex;
    gap: 10px;
    flex: 0 0 auto;
}

.boat-filter-btn {
    padding: 9px 22px;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease;
}

.boat-filter-btn[type="submit"] {
    background: #0879ad;
    color: #fff;
}

.boat-filter-btn[type="submit"]:hover {
    background: #066a99;
}

.boat-filter-reset {
    background: transparent;
    color: #5a6b7e;
    border: 1px solid #d0d9e3;
}

.boat-filter-reset:hover {
    background: #eef2f6;
    color: #2c3e50;
}

@media (max-width: 768px) {
    .boat-filter-bar {
        padding: 16px;
    }

    .boat-filter-actions {
        width: 100%;
    }

    .boat-filter-btn {
        flex: 1;
        text-align: center;
    }
}

/* -----------------------------------------------------------
   GRID
----------------------------------------------------------- */
.boat-archive-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
    position: relative;
    min-height: 200px;
    transition: opacity 0.2s ease;
}

.boat-grid-loading {
    opacity: 0.4;
    pointer-events: none;
}

@media (max-width: 1024px) {
    .boat-archive-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .boat-archive-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .boat-archive-grid {
        grid-template-columns: 1fr;
    }
}

/* -----------------------------------------------------------
   CARD
----------------------------------------------------------- */
.boat-card {
    display: block;
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    text-decoration: none;
    color: var(--text-dark);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    border: 1px solid var(--border-light);
}

.boat-card:focus-visible {
    outline: 3px solid #0b80b8;
    outline-offset: 3px;
}

.boat-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.12);
}

/* -----------------------------------------------------------
   IMAGE
----------------------------------------------------------- */
.boat-card-image {
    position: relative;
}

.boat-card-image img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
}

.boat-card-featured-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    padding: 5px 12px;
    background: #d4a017;
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    border-radius: 4px;
    z-index: 1;
    box-shadow: 0 2px 6px rgba(0,0,0,0.2);
}

.boat-card--featured {
    border-color: #d4a017;
    border-width: 2px;
}

.boat-card-placeholder {
    width: 100%;
    height: 200px;
    background: #ddd;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #666;
    font-size: 14px;
}

/* -----------------------------------------------------------
   TITLE
----------------------------------------------------------- */
.boat-card-content {
    padding: 16px;
}

.boat-card-title {
    margin: 0;
    font-size: 18px;
    line-height: 1.25;
    text-align: center;
    font-weight: 600;
    color: var(--text-dark);
}

.boat-card-details {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px 12px;
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px solid var(--border-light);
    color: #425466;
    font-size: 13px;
    line-height: 1.4;
}

.boat-card-detail {
    display: inline-flex;
    gap: 4px;
    align-items: baseline;
}

.boat-card-detail strong {
    color: var(--text-dark);
    font-weight: 600;
}

.boat-card-price {
    width: 100%;
    justify-content: center;
    color: #0879ad;
    font-weight: 600;
}

.boat-card-link {
    display: block;
    margin-top: 16px;
    color: #0879ad;
    font-size: 14px;
    font-weight: 600;
    text-align: center;
}

/* -----------------------------------------------------------
   DARK MODE SUPPORT
----------------------------------------------------------- */
@media (prefers-color-scheme: dark) {
    .boat-filter-bar {
        background: #1a1a1a;
        border-color: #333;
    }

    .boat-filter-group label {
        color: #aaa;
    }

    .boat-filter-group select,
    .boat-filter-group input {
        background: #2a2a2a;
        border-color: #444;
        color: #eee;
    }

    .boat-filter-group select:focus,
    .boat-filter-group input:focus {
        border-color: #68c7f0;
        box-shadow: 0 0 0 3px rgba(104, 199, 240, 0.2);
    }

    .boat-filter-reset {
        color: #aaa;
        border-color: #444;
    }

    .boat-filter-reset:hover {
        background: #333;
        color: #fff;
    }

    .boat-card {
        background: #1f1f1f;
        border-color: #333;
        color: #eee;
    }

    .boat-card-title {
        color: #fff;
    }

    .boat-card-details {
        border-color: #333;
        color: #ccc;
    }

    .boat-card-detail strong {
        color: #fff;
    }

    .boat-card-price,
    .boat-card-link {
        color: #68c7f0;
    }

    .boat-card-placeholder {
        background: #444;
        color: #ccc;
    }

    .boat-card-featured-badge {
        background: #c9951a;
    }

    .boat-card--featured {
        border-color: #c9951a;
    }
}