/* ===== Page header (breadcrumb + title) ===== */
.page-header {
    margin-bottom: 24px;
}

.breadcrumb {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-bottom: 14px;
}

.breadcrumb__item {
    font-size: 14px;
    color: #64748b;
    text-decoration: none;
    transition: color 0.15s;
}
.breadcrumb__item:hover { color: #374151; }

.breadcrumb__item--last {
    color: #64748b;
}
.breadcrumb__item--last:hover { color: #1f2933; }

.breadcrumb__sep {
    font-size: 14px;
    color: #94a3b8;
    line-height: 1;
}

.page-header__row {
    display: flex;
    align-items: center;
    gap: 16px;
}

.page-title {
    font-size: 28px;
    font-weight: 700;
    color: #1f2933;
    margin: 0;
    line-height: 1.2;
}

/* ===== Header row ===== */
.all-boats-header {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 16px;
}

.ba-reset {
    padding: 7px 12px;
    color: #6b7280;
    font-size: 13px;
    text-decoration: none;
    border-radius: 20px;
    transition: color 0.15s;
    white-space: nowrap;
}
.ba-reset:hover { color: #0B1F33; }

.all-boats-title {
    display: none;
    font-size: 24px;
    font-weight: 600;
    margin: 0;
    color: #1f2933;
}

/* ===== Boat-type dropdown ===== */
.bt-filter {
    position: relative;
    flex-shrink: 0;
}

.bt-filter__btn {
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    gap: 6px;
    padding: 7px 12px;
    background: #ffffff;
    border: 1.5px solid #c8d9ea;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 500;
    color: #1f2933;
    cursor: pointer;
    white-space: nowrap;
    transition: border-color 0.15s, background 0.15s;
    font-family: inherit;
    line-height: 1.4;
}
.bt-filter__btn:hover { border-color: #6b96b8; background-color: #ffffff; }
.bt-filter__btn--active { border-color: #f97316; }
.bt-filter__btn--active:hover { border-color: #f97316; }

.bt-filter__arrow {
    color: #9ca3af;
    margin-left: 4px;
    flex-shrink: 0;
}

.bt-filter__dropdown {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    min-width: 200px;
    white-space: nowrap;
    background: #fff;
    border: 1.5px solid #d5e3f0;
    border-radius: 10px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.12);
    padding: 6px 0;
    z-index: 300;
    max-height: 260px;
    overflow-y: auto;
}

.bt-filter__option {
    padding: 6px 12px;
    font-size: 13px;
    color: #1f2933;
    cursor: pointer;
    transition: background 0.1s;
}
.bt-filter__option:hover { background: #f0f4f8; }
.bt-filter__option--active {
    font-weight: 600;
    color: #0B1F33;
    background: #eef3fa;
}


/* ===== Brands menu ===== */
.brands-block {
    margin-bottom: 4px;
}

.brands-block__label {
    font-size: 18px;
    font-weight: 700;
    color: #1f2933;
    margin-bottom: 8px;
}

.brands-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    padding: 2px 0 0;
}

.brands-tab {
    display: inline-flex;
    align-items: center;
    gap: 0;
    padding: 7px 12px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 500;
    color: #374151;
    text-decoration: none;
    background: transparent;
    cursor: pointer;
    transition: background 0.15s, color 0.15s;
    max-width: 220px;
}

.brands-tab__name {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.brands-tab__count {
    flex-shrink: 0;
    margin-left: 6px;
    font-size: 12px;
    padding: 2px 6px;
    border-radius: 999px;
    background: #e5e7eb;
    color: #6b7280;
    line-height: 1.4;
}

.brands-tab:hover {
    background: #f3f4f6;
    color: #111827;
}

.brands-tab--active {
    background: #111827;
    color: #fff;
}

.brands-tab--active .brands-tab__count {
    background: rgba(255,255,255,0.2);
    color: #fff;
}


#boats-list {
    margin-top: 0;
}

/* ===== Shared boats grid (reused on model/brand pages) ===== */
.boats-grid {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    grid-auto-rows: 1fr;
    align-items: stretch;
    gap: 24px;
    margin: 0;
    width: 100%;
}

.boats-grid li {
    display: flex;
    min-width: 0;
}


/* ===== Контейнер всех лодок ===== */
#all_boats {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

#all_boats .brands-block {
    margin-top: 1px;
    margin-bottom: 6px;
}

/* ===== Сетка лодок ===== */
#all_boats ul {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    grid-auto-rows: 1fr;
    align-items: stretch;
    gap: 24px;
    margin: 0;
    width: 100%;
}

/* li must also stretch so .boat can fill it */
#all_boats ul li {
    display: flex;
    min-width: 0;
}

/* ===== Subscribe model button ===== */
.fb-apply {
    padding: 7px 18px;
    background: #f97316;
    color: #fff;
    border: none;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.15s;
    font-family: inherit;
    white-space: nowrap;
}
.fb-apply:hover { background: #ea6c0b; }

#sub-model-btn {
    min-width: 192px;
    text-align: center;
}

.sub-model-unsub {
    padding: 7px 18px;
    background: #dde2e8;
    color: #1f2937;
    border: none;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.15s;
    font-family: inherit;
    white-space: nowrap;
}
.sub-model-unsub:hover { background: #cfd4db; }
