/* ── Reset & Base ──────────────────────────────────── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    font-weight: 400;
    font-size: 16px;
    line-height: 1.5;
    color: #fff;
    background: #1a1a1a;
    -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; border: none; background: none; font: inherit; }
input, textarea, select { font: inherit; }

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 40px;
}

/* ── Typography ───────────────────────────────────── */
h1, h2, h3 {
    font-family: 'Playfair Display', Georgia, serif;
    font-weight: 500;
    line-height: 1.2;
}

/* ── Header ───────────────────────────────────────── */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: #5f9595;
    height: 60px;
    transition: background 0.3s;
}

.header--scrolled {
    background: rgba(95, 149, 149, 0.95);
    backdrop-filter: blur(10px);
}

.header__nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
}

.header__left,
.header__right {
    display: flex;
    align-items: center;
    gap: 30px;
}

.header__link {
    font-size: 15px;
    font-weight: 400;
    color: #fff;
    opacity: 0.85;
    transition: opacity 0.2s;
    white-space: nowrap;
}

.header__link:hover,
.header__link.active {
    opacity: 1;
}

.header__logo {
    font-family: 'Marck Script', cursive;
    font-size: 28px;
    font-weight: 400;
    color: #fff;
    letter-spacing: 0.5px;
    white-space: nowrap;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    top: 40%;
    transform: translate(-50%, -50%);
    line-height: 1;
}

.header__burger {
    display: none;
    flex-direction: column;
    gap: 5px;
    width: 28px;
    padding: 4px 0;
}

.header__burger span {
    display: block;
    width: 100%;
    height: 2px;
    background: #fff;
    border-radius: 1px;
    transition: transform 0.3s, opacity 0.3s;
}

.header__burger.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.header__burger.active span:nth-child(2) { opacity: 0; }
.header__burger.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile menu */
.mobile-menu {
    position: fixed;
    top: 60px;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(26, 26, 26, 0.97);
    z-index: 99;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
}

.mobile-menu.open {
    opacity: 1;
    visibility: visible;
}

.mobile-menu__inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 40px 20px;
    gap: 24px;
}

.mobile-menu__link {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 24px;
    color: #fff;
    opacity: 0.9;
    transition: opacity 0.2s;
}

.mobile-menu__link:hover { opacity: 1; }

/* ── Hero ─────────────────────────────────────────── */
.hero {
    padding: 80px 0 40px;
}

.hero__inner {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    min-height: 680px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 60px 40px;
}

.hero__bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.hero__bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero__bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.35);
}

.hero__content {
    position: relative;
    z-index: 1;
    max-width: 800px;
}

.hero__title {
    font-size: 56px;
    font-weight: 500;
    color: #fff;
    margin-bottom: 24px;
    letter-spacing: -0.5px;
}

.hero__subtitle {
    font-size: 18px;
    font-weight: 300;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 40px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 16px 48px;
    background: #5f9595;
    color: #fff;
    font-size: 16px;
    font-weight: 500;
    border-radius: 8px;
    transition: background 0.2s, transform 0.2s;
    border: none;
    cursor: pointer;
}

.btn:hover {
    background: #4d8282;
    transform: translateY(-1px);
}

.btn--outline {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.btn--outline:hover {
    background: rgba(255, 255, 255, 0.1);
}

/* ── Section Titles ───────────────────────────────── */
.section {
    padding: 80px 0;
}

.section__header {
    text-align: center;
    margin-bottom: 50px;
}

.section__title {
    font-size: 42px;
    font-weight: 500;
    margin-bottom: 16px;
    color: #fff;
}

.section__desc {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.6);
    max-width: 560px;
    margin: 0 auto;
    line-height: 1.6;
}

/* ── Fleet / Boat Cards ───────────────────────────── */
.fleet__categories {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.fleet__cat-btn {
    padding: 10px 24px;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.7);
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.2s;
}

.fleet__cat-btn:hover,
.fleet__cat-btn.active {
    color: #fff;
    background: #5f9595;
    border-color: #5f9595;
}

.boats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.boat-card {
    background: #292929;
    border-radius: 16px;
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
}

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

.boat-card__image {
    position: relative;
    aspect-ratio: 4 / 3;
    overflow: hidden;
}

.boat-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s;
}

.boat-card:hover .boat-card__image img {
    transform: scale(1.05);
}

.boat-card__price-badge {
    position: absolute;
    bottom: 12px;
    left: 12px;
    background: rgba(0, 0, 0, 0.65);
    backdrop-filter: blur(8px);
    padding: 6px 14px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    color: #fff;
}

.boat-card__body {
    padding: 20px;
}

.boat-card__name {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 20px;
    font-weight: 500;
    margin-bottom: 8px;
    color: #fff;
}

.boat-card__desc {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.55);
    line-height: 1.5;
    margin-bottom: 16px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.boat-card__meta {
    display: flex;
    align-items: center;
    gap: 16px;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.45);
}

.boat-card__meta svg {
    width: 16px;
    height: 16px;
    opacity: 0.5;
}

.boat-card__meta-item {
    display: flex;
    align-items: center;
    gap: 6px;
}

/* ── Prices ────────────────────────────────────────── */
.prices-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.price-card {
    background: #292929;
    border-radius: 16px;
    padding: 32px;
    text-align: center;
    transition: transform 0.3s;
}

.price-card:hover {
    transform: translateY(-2px);
}

.price-card__title {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 20px;
    font-weight: 500;
    margin-bottom: 12px;
}

.price-card__desc {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.55);
    margin-bottom: 20px;
    line-height: 1.5;
}

.price-card__price {
    font-size: 24px;
    font-weight: 600;
    color: #5f9595;
}

/* ── Booking Form ─────────────────────────────────── */
.booking {
    background: #222;
}

.booking__inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.booking__info {
    padding-right: 20px;
}

.booking__title {
    font-size: 42px;
    font-weight: 500;
    margin-bottom: 16px;
}

.booking__desc {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.6);
    line-height: 1.6;
    margin-bottom: 24px;
}

.booking__contact {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.5);
}

.booking__contact a {
    color: #5f9595;
}

.booking-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.form-group label {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.6);
    font-weight: 500;
}

.form-input {
    width: 100%;
    padding: 14px 16px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 10px;
    color: #fff;
    font-size: 15px;
    transition: border-color 0.2s;
    outline: none;
}

.form-input:focus {
    border-color: #5f9595;
}

.form-input::placeholder {
    color: rgba(255, 255, 255, 0.3);
}

textarea.form-input {
    min-height: 100px;
    resize: vertical;
}

select.form-input {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' stroke='rgba(255,255,255,0.5)' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    padding-right: 40px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.booking-form .btn {
    width: 100%;
    margin-top: 8px;
}

.form-message {
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 14px;
    display: none;
}

.form-message--success {
    background: rgba(76, 175, 80, 0.15);
    color: #81c784;
    display: block;
}

.form-message--error {
    background: rgba(244, 67, 54, 0.15);
    color: #e57373;
    display: block;
}

/* ── Reviews ───────────────────────────────────────── */
.reviews-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.review-card {
    background: #292929;
    border-radius: 16px;
    padding: 28px;
}

.review-card__header {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 16px;
}

.review-card__avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: #5f9595;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: 600;
    color: #fff;
    flex-shrink: 0;
}

.review-card__avatar img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
}

.review-card__author {
    font-weight: 600;
    font-size: 16px;
}

.review-card__stars {
    color: #f4b942;
    font-size: 14px;
    letter-spacing: 2px;
}

.review-card__text {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.65);
    line-height: 1.6;
}

/* ── Footer ────────────────────────────────────────── */
.footer {
    background: #111;
    padding: 60px 0 30px;
}

.footer__grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer__logo {
    font-family: 'Marck Script', cursive;
    font-size: 28px;
    font-weight: 400;
    margin-bottom: 12px;
}

.footer__desc {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.5);
    line-height: 1.6;
}

.footer__title {
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 16px;
    color: rgba(255, 255, 255, 0.8);
}

.footer__link {
    display: block;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: 10px;
    transition: color 0.2s;
}

.footer__link:hover { color: #5f9595; }

.footer__text {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.5);
}

.footer__socials {
    display: flex;
    gap: 12px;
}

.footer__social {
    width: 44px;
    height: 44px;
    border-radius: 0;
    background: none;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.7);
    transition: opacity 0.2s, transform 0.2s;
}

.footer__social:hover {
    opacity: 0.8;
    transform: scale(1.08);
    background: none;
    color: #fff;
}

.footer__social svg,
.footer__social img {
    width: 44px !important;
    height: 44px !important;
}

.footer__bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding-top: 24px;
    text-align: center;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.35);
}

/* ── WhatsApp Button ──────────────────────────────── */
.whatsapp-btn {
    position: fixed;
    bottom: 28px;
    right: 28px;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: #5f9595;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 90;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    transition: transform 0.2s, background 0.2s;
}

.whatsapp-btn:hover {
    transform: scale(1.1);
    background: #4d8282;
}

/* ── Boat Detail Page ─────────────────────────────── */
.boat-detail {
    padding-top: 80px;
}

.boat-detail__gallery {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 12px;
    margin-bottom: 40px;
}

.boat-detail__main-img {
    border-radius: 16px;
    overflow: hidden;
    aspect-ratio: 16 / 10;
}

.boat-detail__main-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.boat-detail__thumbs {
    display: grid;
    grid-template-rows: 1fr 1fr;
    gap: 12px;
}

.boat-detail__thumb {
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
}

.boat-detail__thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.boat-detail__thumb:hover img {
    transform: scale(1.05);
}

.boat-detail__content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 60px;
}

.boat-detail__title {
    font-size: 36px;
    margin-bottom: 8px;
}

.boat-detail__category {
    font-size: 14px;
    color: #5f9595;
    margin-bottom: 24px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.boat-detail__desc {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.7;
    margin-bottom: 32px;
}

.boat-detail__specs {
    list-style: none;
    margin-bottom: 32px;
}

.boat-detail__specs li {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    font-size: 15px;
}

.boat-detail__specs li span:first-child {
    color: rgba(255, 255, 255, 0.5);
}

.boat-detail__features {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 32px;
}

.boat-detail__features li {
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.06);
    border-radius: 8px;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
}

.boat-detail__sidebar {
    position: sticky;
    top: 80px;
}

.boat-detail__price-box {
    background: #292929;
    border-radius: 16px;
    padding: 32px;
}

.boat-detail__price {
    font-size: 32px;
    font-weight: 600;
    color: #5f9595;
    margin-bottom: 8px;
}

.boat-detail__price-note {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: 24px;
}

.boat-detail__guests {
    display: flex;
    gap: 20px;
    margin-bottom: 24px;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.6);
}

/* ── Catalog Page ─────────────────────────────────── */
.catalog {
    padding-top: 100px;
}

.catalog__title {
    font-size: 42px;
    margin-bottom: 8px;
}

.catalog__count {
    font-size: 15px;
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: 40px;
}

/* ── Breadcrumbs ──────────────────────────────────── */
.breadcrumbs {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.4);
    margin-bottom: 20px;
    padding-top: 80px;
}

.breadcrumbs a {
    color: rgba(255, 255, 255, 0.5);
    transition: color 0.2s;
}

.breadcrumbs a:hover {
    color: #5f9595;
}

.breadcrumbs__sep {
    font-size: 12px;
}

/* ── Lightbox ─────────────────────────────────────── */
.lightbox {
    position: fixed;
    inset: 0;
    z-index: 200;
    background: rgba(0, 0, 0, 0.92);
    display: none;
    align-items: center;
    justify-content: center;
}

.lightbox.open { display: flex; }

.lightbox__img {
    max-width: 90vw;
    max-height: 85vh;
    border-radius: 12px;
    object-fit: contain;
}

.lightbox__close {
    position: absolute;
    top: 20px;
    right: 24px;
    width: 40px;
    height: 40px;
    color: #fff;
    font-size: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.7;
    transition: opacity 0.2s;
}

.lightbox__close:hover { opacity: 1; }

.lightbox__nav {
    position: absolute;
    top: 40%;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    color: #fff;
    font-size: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.6;
    transition: opacity 0.2s;
}

.lightbox__nav:hover { opacity: 1; }
.lightbox__nav--prev { left: 20px; }
.lightbox__nav--next { right: 20px; }

/* ── Responsive ───────────────────────────────────── */
@media (max-width: 1100px) {
    .container { padding: 0 24px; }
    .header__left, .header__right { display: none; }
    .header__burger { display: flex; }
    .header__logo { position: absolute; left: 50%; top: 40%; transform: translate(-50%, -50%); }
    .header__nav { justify-content: space-between; padding: 0 24px; }
    .boats-grid { grid-template-columns: repeat(2, 1fr); }
    .prices-grid { grid-template-columns: repeat(2, 1fr); }
    .reviews-grid { grid-template-columns: repeat(2, 1fr); }
    .footer__grid { grid-template-columns: repeat(2, 1fr); }
    .booking__inner { grid-template-columns: 1fr; gap: 40px; }
    .boat-detail__content { grid-template-columns: 1fr; gap: 32px; }
    .boat-detail__sidebar { position: static; }
}

@media (max-width: 768px) {
    .container { padding: 0 16px; }

    .header__left,
    .header__right { display: none; }

    .header__logo {
        position: absolute;
        left: 50%;
        top: 40%;
        transform: translate(-50%, -50%);
    }

    .header__nav {
        justify-content: space-between;
        padding: 0 16px;
    }

    .header__burger { display: flex; }

    .hero__inner { min-height: 500px; padding: 40px 20px; }
    .hero__title { font-size: 36px; }
    .hero__subtitle { font-size: 16px; }

    .section { padding: 50px 0; }
    .section__title { font-size: 30px; }

    .boats-grid { grid-template-columns: 1fr; gap: 16px; }
    .prices-grid { grid-template-columns: 1fr; gap: 16px; }
    .reviews-grid { grid-template-columns: 1fr; gap: 16px; }

    .booking__inner { gap: 32px; }
    .booking__title { font-size: 30px; }
    .form-row { grid-template-columns: 1fr; }

    .footer__grid { grid-template-columns: 1fr; gap: 32px; }

    .boat-detail__gallery { grid-template-columns: 1fr; }
    .boat-detail__thumbs { grid-template-columns: repeat(3, 1fr); grid-template-rows: auto; }
    .boat-detail__title { font-size: 28px; }
    .catalog__title { font-size: 30px; }

    .breadcrumbs { padding-top: 70px; }
}

@media (max-width: 480px) {
    .hero__title { font-size: 28px; }
    .btn { padding: 14px 32px; font-size: 15px; }
    .section__title { font-size: 26px; }
    .boat-card__body { padding: 16px; }
    .boat-card__name { font-size: 18px; }
}

/* ── Utilities ────────────────────────────────────── */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

.text-center { text-align: center; }
.mt-40 { margin-top: 40px; }
.mb-0 { margin-bottom: 0; }

/* ── Rules Section ────────────────────────────────── */
.rules {
    background: #222;
}

.rules__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-bottom: 48px;
}

.rule-card {
    background: #292929;
    border-radius: 16px;
    padding: 28px;
}

.rule-card__icon {
    font-size: 28px;
    margin-bottom: 12px;
}

.rule-card__title {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 18px;
    font-weight: 500;
    margin-bottom: 12px;
    color: #fff;
}

.rule-card__text {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.6);
    line-height: 1.7;
}

.rule-card__text strong {
    color: rgba(255, 255, 255, 0.85);
    font-weight: 500;
}

.rule-card__list {
    list-style: none;
    margin-top: 8px;
    padding: 0;
}

.rule-card__list li {
    position: relative;
    padding-left: 16px;
    margin-bottom: 4px;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.55);
}

.rule-card__list li::before {
    content: '·';
    position: absolute;
    left: 4px;
    color: #5f9595;
    font-weight: 700;
}

.rules__bottom {
    text-align: center;
    padding-top: 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.rules__bottom-title {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 28px;
    font-weight: 500;
    margin-bottom: 8px;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.rules__bottom-sub {
    font-size: 16px;
    color: #5f9595;
    font-weight: 500;
    letter-spacing: 1px;
}

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

@media (max-width: 768px) {
    .rules__grid { grid-template-columns: 1fr; gap: 16px; }
    .rules__bottom-title { font-size: 22px; }
}

/* ── Form row 3 cols ──────────────────────────────── */
.form-row--3 { grid-template-columns: 1fr 1fr 1fr; }
@media (max-width: 768px) {
    .form-row--3 { grid-template-columns: 1fr 1fr 1fr; }
}
@media (max-width: 480px) {
    .form-row--3 { grid-template-columns: 1fr; }
}



/* ── New Gallery ──────────────────────────────────── */
.gallery {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 12px;
    margin-bottom: 40px;
    max-height: 560px;
}

.gallery__main {
    border-radius: 16px;
    overflow: hidden;
    cursor: pointer;
    height: 100%;
}

.gallery__main img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: opacity 0.3s;
}

.gallery__thumbs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    overflow-y: auto;
    max-height: 560px;
    scrollbar-width: thin;
    scrollbar-color: rgba(255,255,255,0.15) transparent;
}

.gallery__thumbs::-webkit-scrollbar { width: 4px; }
.gallery__thumbs::-webkit-scrollbar-track { background: transparent; }
.gallery__thumbs::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.15); border-radius: 2px; }

.gallery__thumb {
    border-radius: 10px;
    overflow: hidden;
    cursor: pointer;
    aspect-ratio: 4 / 3;
    border: 2px solid transparent;
    transition: border-color 0.2s, opacity 0.2s;
}

.gallery__thumb:hover { opacity: 0.85; }

.gallery__thumb--active {
    border-color: #5f9595;
}

.gallery__thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Mobile gallery: horizontal scroll */
.gallery-mobile {
    display: none;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 12px;
    padding-bottom: 12px;
    margin-bottom: 32px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.gallery-mobile::-webkit-scrollbar { display: none; }

.gallery-mobile__slide {
    flex: 0 0 85%;
    scroll-snap-align: start;
    border-radius: 14px;
    overflow: hidden;
    aspect-ratio: 4 / 3;
}

.gallery-mobile__slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

@media (max-width: 768px) {
    .gallery { display: none; }
    .gallery-mobile { display: flex; }
}

@media (min-width: 769px) and (max-width: 1100px) {
    .gallery { grid-template-columns: 1fr 240px; max-height: 450px; }
    .gallery__thumbs { max-height: 450px; }
}

/* ── Tablet & iPad fixes ──────────────────────────── */
@media (max-width: 1100px) {
    .boat-detail { padding-top: 70px; }
    .boat-detail__content { grid-template-columns: 1fr !important; gap: 24px !important; }
    .boat-detail__sidebar { position: static !important; }
    .gallery { grid-template-columns: 1fr !important; max-height: none !important; }
    .gallery__main { max-height: 500px; }
    .gallery__thumbs {
        display: flex !important;
        overflow-x: auto !important;
        gap: 8px !important;
        max-height: none !important;
        padding-bottom: 8px;
    }
    .gallery__thumb {
        flex: 0 0 120px;
        aspect-ratio: 4 / 3;
    }
    .breadcrumbs { padding-top: 70px; }
    .booking__inner { grid-template-columns: 1fr !important; }
}
