/* -----------------------------------------------------------
   GLOBAL RESET & VARIABLES
----------------------------------------------------------- */
*, *::before, *::after {
    box-sizing: border-box;
}

:root {
    --primary: #0073aa;
    --primary-dark: #005f8a;
    --text-dark: #222;
    --text-medium: #333;
    --bg-light: #f0f0f0;
    --border-light: #ddd;
}

/* -----------------------------------------------------------
   SINGLE BOAT WRAPPER
----------------------------------------------------------- */
.single-boat-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 1rem;
}

/* -----------------------------------------------------------
   TWO-COLUMN LAYOUT
----------------------------------------------------------- */
.boat-main-content {
    display: flex;
    align-items: flex-start;
    gap: 30px;
    margin-top: 20px;
}

.boat-left {
    flex: 0 0 70%;
    min-width: 0;
}

.boat-right {
    flex: 0 0 30%;
}

@media (max-width: 1024px) {
    .boat-main-content {
        flex-direction: column;
    }
    .boat-left,
    .boat-right {
        flex: 0 0 100%;
    }
}

/* -----------------------------------------------------------
   GALLERY
----------------------------------------------------------- */
.boat-gallery-wrapper {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 20px;
}

/* Main slider */
.boat-gallery-main {
    width: 100%;
    height: 400px;
    overflow: hidden;
    position: relative;
}

.boat-gallery-main .swiper-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 6px;
}

/* Scoped Swiper arrows */
.boat-gallery-main .swiper-button-next,
.boat-gallery-main .swiper-button-prev {
    color: var(--primary);
    top: 50%;
    transform: translateY(-50%);
}

/* Thumbnails — restored old behavior */
.boat-gallery-thumbs {
    width: 100%;
}

.boat-gallery-thumbs .swiper-slide {
    width: 100px;
    height: auto;              /* old behavior: height comes from image */
    flex-shrink: 0;            /* prevents collapse */
    opacity: 0.5;
    cursor: pointer;
    overflow: hidden;
}

.boat-gallery-thumbs .swiper-slide-thumb-active {
    opacity: 1;
}

/* The key: DO NOT force height before image loads */
.boat-gallery-thumbs img {
    width: 100%;
    height: auto;              /* critical: prevents stretching bar */
    display: block;            /* removes inline gaps */
    aspect-ratio: 100 / 70;    /* stable box before load */
    object-fit: cover;         /* same visual crop as before */
    border-radius: 4px;
}

/* Responsive gallery heights */
@media (max-width: 768px) {
    .boat-gallery-main {
        height: 300px;
    }
    .boat-gallery-thumbs .swiper-slide {
        width: 80px;
        /* height removed — image controls height */
    }
}

@media (max-width: 480px) {
    .boat-gallery-main {
        height: 240px;
    }
    .boat-gallery-thumbs .swiper-slide {
        width: 60px;
        /* height removed — image controls height */
    }
}
/* -----------------------------------------------------------
   DETAILS LIST
----------------------------------------------------------- */
.boat-details-list {
    list-style: none;
    padding: 0;
    margin-bottom: 20px;
}

.boat-details-list li {
    margin-bottom: 8px;
    font-size: 15px;
}

.boat-short-description {
    font-size: 14px;
    line-height: 1.5;
    margin-top: 15px;
}

/* -----------------------------------------------------------
   CTA BUTTON
----------------------------------------------------------- */
.boat-cta-button {
    display: inline-block;
    padding: 0.6rem 1.2rem;
    background: var(--primary);
    color: #fff !important;
    text-decoration: none;
    border-radius: 4px;
    transition: background 0.2s ease;
}

.boat-cta-button:hover {
    background: var(--primary-dark);
}

.boat-cta-button:focus {
    outline: 2px solid #fff;
    outline-offset: 2px;
}

/* -----------------------------------------------------------
   ACCORDION
----------------------------------------------------------- */
.boat-accordion {
    margin-top: 30px;
    border-top: 1px solid var(--border-light);
}

.boat-accordion .accordion-item {
    border-bottom: 1px solid var(--border-light);
}

.boat-accordion .accordion-header {
    width: 100%;
    background: var(--primary); /* NEW: solid primary background */
    color: #fff; /* NEW: white text */
    border-left: 4px solid var(--primary-dark);
    padding: 12px 15px;
    font-size: 16px;
    font-weight: 600;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    border: none;
    text-align: left;
    transition: background 0.2s ease;
}

.boat-accordion .accordion-header:hover {
    background: var(--primary-dark);
}

/* Title text inside header */
.boat-accordion .accordion-header span:first-child {
    color: #fff; /* NEW: ensure title is white */
    font-weight: 600;
}

/* The + icon */
.boat-accordion .accordion-toggle-indicator {
    font-size: 20px;
    line-height: 1;
    color: #fff; /* NEW: white icon */
}

/* Accordion content */
.boat-accordion .accordion-content {
    max-height: 0;
    overflow: hidden;
    padding: 0 15px;
    transition: max-height 0.3s ease, padding 0.3s ease;
    will-change: max-height;
}

.boat-accordion .accordion-content ul {
    list-style: none;
    padding: 10px 0 15px 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 10px 30px;
}

.boat-accordion .accordion-content li {
    width: calc(33.33% - 30px);
    font-size: 14px;
    line-height: 1.4;
}

.boat-accordion .accordion-content li strong {
    font-weight: 600;
}

/* Mobile accordion layout */
@media (max-width: 600px) {
    .boat-accordion .accordion-content li {
        width: 100%;
    }
    .boat-accordion .accordion-content ul {
        gap: 8px 0;
    }
}

/* Dark mode */
@media (prefers-color-scheme: dark) {
    .boat-accordion .accordion-header {
        background: var(--primary-dark);
        border-left-color: var(--primary);
        color: #fff;
    }
    .boat-accordion .accordion-header span:first-child,
    .boat-accordion .accordion-toggle-indicator {
        color: #fff;
    }
    .boat-accordion .accordion-content li {
        color: #ddd;
    }
}