/* ===== 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: #0B1F33; background-color: #ffffff; }
.bt-filter__btn--active { border-color: #0B1F33; }

.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;
}

@media (max-width: 768px) {
    .all-boats-title { display: block; }
}

/* ===== Brands menu ===== */
.brands-menu {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 8px;
    padding: 16px;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
}

.brands-menu__item {
    padding: 5px 10px;
    font-size: 14px;
    font-weight: 500;
    color: #374151;
    text-decoration: none;
    border-radius: 7px;
    text-align: center;
    transition: background 0.15s, color 0.15s;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.brands-menu__item:hover {
    background: #dce8f2;
    color: #0B1F33;
}

.brands-menu__item--active {
    background: #c8d9ea;
    color: #0B1F33;
    font-weight: 600;
}

@media (max-width: 1200px) {
    .brands-menu { grid-template-columns: repeat(5, 1fr); }
}

@media (max-width: 1024px) {
    .brands-menu { grid-template-columns: repeat(4, 1fr); }
}

@media (max-width: 768px) {
    .brands-menu { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 480px) {
    .brands-menu { grid-template-columns: repeat(2, 1fr); }
}

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

.boats-grid li {
    display: flex;
}

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

@media (max-width: 768px) {
    .boats-grid { grid-template-columns: 1fr; }
}

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

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

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

@media (max-width: 1024px) {
    #all_boats ul {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    #all_boats ul {
        grid-template-columns: 1fr;
    }
}

/* ===== 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; }
