/* Контейнер страницы */
.boat-detail-container {
    width: 100%;
    padding: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

/* Карточка детальной информации */
.boat-detail {
    display: flex;
    flex-direction: column; /* Фото сверху, контент снизу (для всех устройств) */
    background: rgba(255, 255, 255, 0.95);
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    overflow: hidden;
    min-height: 400px;
    margin-bottom: 20px;
}

/* Секция изображения (верхняя часть) */
.boat-detail__image-wrapper {
    width: 100%;
    height: 400px; /* Высота баннера на десктопе */
    background-color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    border-bottom: 1px solid #eee;
}

.boat-detail__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center; /* Центрируем фото */
    display: block;
}

/* Секция контента (нижняя часть) */
.boat-detail__content {
    flex: 1;
    padding: 40px;
    display: flex;
    flex-direction: column;
}

/* Заголовки внутри контента */
.boat-detail__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 2px solid #00468b;
    padding-bottom: 15px;
    margin-bottom: 25px;
    flex-wrap: wrap; /* Чтобы ID переносился на очень узких экранах */
    gap: 10px;
}

.boat-detail__subtitle {
    font-size: 1.6rem;
    color: #00468b;
    font-weight: 700;
}

.boat-detail__id {
    font-size: 0.9rem;
    color: #888;
    background: #f0f0f0;
    padding: 4px 8px;
    border-radius: 4px;
    white-space: nowrap;
}

/* Мета-данные (владелец, сайт) */
.boat-detail__meta {
    margin-bottom: 30px;
    background: #f9f9f9;
    padding: 20px;
    border-radius: 8px;
    border: 1px solid #eee;
}

.boat-detail__row {
    font-size: 1.05rem;
    margin-bottom: 10px;
    color: #333;
}

.boat-detail__row:last-child {
    margin-bottom: 0;
}

.boat-detail__link {
    color: #00468b;
    text-decoration: none;
    font-weight: 600;
}

.boat-detail__link:hover {
    text-decoration: underline;
}

/* Полное описание */
.boat-detail__description h3 {
    font-size: 1.2rem;
    color: #444;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.boat-detail__description p {
    font-size: 1rem;
    line-height: 1.7;
    color: #222;
    text-align: justify;
    white-space: pre-line; /* Сохраняет переносы строк из БД */
}

/* Футер с кнопками */
.boat-detail__footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 40px;
    padding-top: 25px;
    border-top: 1px solid #eee;
    flex-wrap: wrap;
    gap: 20px;
}

/* Кнопка "Назад" */
.boat-detail__btn-back {
    text-decoration: none;
    color: #555;
    font-weight: 500;
    transition: color 0.3s;
}

.boat-detail__btn-back:hover {
    color: #000;
}

/* Кнопка "Арендовать" (Зеленая) */
.boat-detail__btn-rent {
    text-decoration: none;
    background-color: #28a745;
    color: #fff;
    font-weight: 600;
    padding: 12px 25px;
    border-radius: 6px;
    box-shadow: 0 4px 6px rgba(40, 167, 69, 0.2);
    transition: all 0.3s ease;
    font-size: 1rem;
}

.boat-detail__btn-rent:hover {
    background-color: #218838;
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(40, 167, 69, 0.3);
}

/* Кнопка "Войти для аренды" (Серая) */
.boat-detail__btn-login {
    text-decoration: none;
    background-color: #6c757d;
    color: #fff;
    font-weight: 600;
    padding: 12px 25px;
    border-radius: 6px;
    transition: all 0.3s ease;
    font-size: 1rem;
    border: 1px solid #6c757d;
}

.boat-detail__btn-login:hover {
    background-color: #5a6268;
    border-color: #545b62;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(108, 117, 125, 0.2);
}

/* Блок "Нет данных" */
.no-data-wrapper {
    background: rgba(255, 255, 255, 0.9);
    padding: 40px;
    text-align: center;
    border-radius: 8px;
    margin-top: 20px;
}

.no-data {
    font-size: 1.3rem;
    margin-bottom: 20px;
    color: #333;
}

/* Адаптивность для мобильных устройств */
@media (max-width: 768px) {
    .boat-detail__image-wrapper {
        height: 250px; /* Уменьшаем высоту баннера на мобильном */
    }

    .boat-detail__content {
        padding: 20px;
    }

    .boat-detail__header {
        flex-direction: column;
        align-items: flex-start;
    }

    .boat-detail__footer {
        flex-direction: column-reverse; /* Кнопку "назад" вниз */
        align-items: stretch; /* Кнопки на всю ширину */
    }

    .boat-detail__btn-back {
        text-align: center;
        padding: 10px;
    }

    .boat-detail__btn-rent,
    .boat-detail__btn-login {
        text-align: center;
    }
}
