/* ===== Карточка лодки ===== */
.boat {
    background-color: #ffffff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    display: flex;
    flex-direction: column;
    height: 100%; /* fill the grid cell height */
    width: 100%;
    box-sizing: border-box;
    position: relative;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.boat:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.08);
}

/* ===== Фото ===== */
.boat__image-link {
    position: relative;
    display: block;
}
.boat__image-link img {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
}
.boat__pending-badge {
    position: absolute;
    top: 8px;
    right: 8px;
    background: rgba(75, 85, 99, 0.85);
    color: #fff;
    font-size: 11px;
    font-weight: 600;
    padding: 3px 9px;
    border-radius: 6px;
    pointer-events: none;
}

/* ===== Контент ===== */
.boat__content {
    padding: 12px 16px 8px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

/* ===== Footer ===== */
.boat__footer {
    padding: 8px 16px 12px;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 6px;
    border-top: 1px solid #f3f4f6;
    margin-top: auto;
    overflow: hidden;
}

.boat__owner-avatar-link {
    display: flex;
    flex-shrink: 0;
    border-radius: 4px;
    overflow: hidden;
}
.boat__owner-avatar {
    width: 22px;
    height: 22px;
    border-radius: 4px;
    object-fit: cover;
    flex-shrink: 0;
    display: block;
}

.boat__owner-avatar--placeholder {
    background: #0B1F33;
    color: #fff;
    font-size: 9px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
}

.boat__owner-name {
    font-size: 12px;
    font-weight: 600;
    color: #6b7280;
    text-decoration: none;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: color 0.15s;
    flex-shrink: 1;
    min-width: 0;
}
.boat__owner-name:hover { color: #0B1F33; }

.boat__city {
    font-size: 11px;
    color: #9ca3af;
    white-space: nowrap;
    flex-shrink: 0;
}

.boat__stat {
    display: flex;
    align-items: center;
    gap: 3px;
    font-size: 12px;
    color: #9ca3af;
    flex-shrink: 0;
    margin-left: auto;
}

.boat__stat + .boat__stat {
    margin-left: 6px;
}

/* Название лодки */
.boat__content h3 {
    font-size: 18px;
    font-weight: 600;
    margin: 0;
}

.boat__content h3 a {
    color: #0B1F33;
    text-decoration: none;
    display: inline-block;
    transition: text-decoration 0.2s ease;
}

.boat__content h3 a:hover {
    text-decoration: underline;
}

.boat__meta {
    font-size: 13px;
    color: #6b7280;
    margin: 0;
}

/* ===== Кнопка удаления лодки ===== */
.delete-boat-btn {
    position: absolute;
    bottom: 12px;
    left: 12px;
    padding: 6px 14px;
    background-color: rgba(239, 68, 68, 0.85);
    color: white;
    font-weight: 600;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.2s ease, transform 0.2s ease;
    font-size: 14px;
    text-align: center;
}

.delete-boat-btn:hover {
    background-color: rgba(185, 28, 28, 0.85);
    transform: translateY(-1px);
}

.boat__content h3 a.boat__title--ex { color: #9ca3af; }
.boat__content h3 a.boat__title--ex:hover { color: #9ca3af; }
