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

/* Safety net: ensure all single-boat content sections are always
   visible regardless of JS init state or theme conflicts. */
.single-boat-wrapper,
.boat-left,
.boat-right,
.boat-full-description,
.boat-accordion,
.boat-accordion .accordion-item {
    visibility: visible !important;
    opacity: 1 !important;
}
.single-boat-wrapper {
    display: block !important;
}
.boat-main-content {
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;
}
.boat-full-description,
.boat-accordion {
    display: block !important;
}
.boat-accordion .accordion-item {
    display: block !important;
}

: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 — pure CSS scroll-snap, no Swiper
----------------------------------------------------------- */
.boat-gallery-wrapper {
    width: 100%;
    margin-bottom: 20px;
}

.boat-gallery-main {
    width: 100% !important;
    max-width: 100% !important;
    position: relative;
    border-radius: 6px;
    overflow: hidden !important;
    background: #f0f0f0;
}

.gallery-track {
    display: flex !important;
    flex-wrap: nowrap !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
    width: 100% !important;
}
.gallery-track::-webkit-scrollbar {
    display: none;
}

.gallery-slide {
    flex: 0 0 100% !important;
    width: 100% !important;
    min-width: 100% !important;
    max-width: 100% !important;
    scroll-snap-align: start;
    scroll-snap-stop: always;
    box-sizing: border-box !important;
}

.gallery-slide a {
    display: block;
    width: 100%;
}

.gallery-slide img {
    width: 100% !important;
    height: 400px !important;
    object-fit: cover !important;
    border-radius: 6px;
    display: block;
}

/* Arrows — always visible on desktop, hidden on mobile */
.gallery-arrow-prev,
.gallery-arrow-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255,255,255,0.85);
    border: none;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    color: var(--primary);
    transition: background 0.2s ease;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.gallery-arrow-prev:hover,
.gallery-arrow-next:hover {
    background: #fff;
}

.gallery-arrow-prev {
    left: 10px;
}
.gallery-arrow-next {
    right: 10px;
}

/* Dots */
.gallery-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    padding: 8px 0;
}

.gallery-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    border: none;
    background: #ccc;
    cursor: pointer;
    padding: 0;
    transition: background 0.2s ease;
}

.gallery-dot-active {
    background: var(--primary);
}

/* Thumbnails */
.boat-gallery-thumbs {
    width: 100% !important;
    margin-top: 10px;
    display: flex !important;
    flex-wrap: nowrap !important;
    gap: 8px;
    overflow-x: auto !important;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
}
.boat-gallery-thumbs::-webkit-scrollbar {
    display: none;
}

.thumb-slide {
    flex: 0 0 80px !important;
    cursor: pointer;
    opacity: 0.5;
    transition: opacity 0.25s ease;
    border: none;
    padding: 0;
    background: none;
    text-decoration: none;
    display: block;
    line-height: 0;
}

.thumb-slide:hover {
    opacity: 0.8;
}

.thumb-slide.thumb-active {
    opacity: 1;
}

.thumb-slide img {
    width: 80px;
    height: 60px;
    object-fit: cover;
    border-radius: 4px;
    display: block;
}

@media (max-width: 768px) {
    .gallery-slide img {
        height: 300px;
    }
    .gallery-arrow-prev,
    .gallery-arrow-next {
        display: none;
    }
}

@media (max-width: 480px) {
    .gallery-slide img {
        height: 240px;
    }
    .thumb-slide {
        flex: 0 0 65px;
    }
    .thumb-slide img {
        width: 65px;
        height: 50px;
    }
}
/* GLightbox — ensure close button and navigation arrows are always visible */
.glightbox-clean .gclose,
.glightbox-clean .gnext,
.glightbox-clean .gprev {
    display: flex !important;
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
}
.glightbox-clean .gclose svg,
.glightbox-clean .gnext svg,
.glightbox-clean .gprev svg {
    display: block !important;
    opacity: 1 !important;
}
.glightbox-container {
    z-index: 99999 !important;
}

/* -----------------------------------------------------------
   DETAILS LIST
----------------------------------------------------------- */
.boat-details-card {
    background: #f7f9fb;
    border: 1px solid #e2e8ee;
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 20px;
}

.boat-details-heading {
    margin: 0 0 14px 0;
    font-size: 18px;
    font-weight: 700;
    color: var(--text-dark);
    padding-bottom: 10px;
    border-bottom: 2px solid var(--primary);
}

.boat-details-list {
    list-style: none;
    padding: 0;
    margin-bottom: 0;
}

.boat-details-list li {
    margin-bottom: 10px;
    font-size: 15px;
    line-height: 1.4;
    display: flex;
    justify-content: space-between;
    gap: 8px;
    color: #1a1a1a;
}

.boat-details-list li strong {
    font-weight: 600;
    color: var(--text-dark);
    flex-shrink: 0;
}

.boat-short-description {
    font-size: 14px;
    line-height: 1.5;
    margin-top: 16px;
    padding-top: 14px;
    border-top: 1px solid #e2e8ee;
    color: #2a2a2a;
}

/* -----------------------------------------------------------
   PRICE BOX
----------------------------------------------------------- */
.boat-price-box {
    display: flex;
    align-items: baseline;
    gap: 6px;
    padding: 18px 20px;
    margin-bottom: 20px;
    background: linear-gradient(135deg, #0879ad 0%, #066a99 100%);
    border-radius: 10px;
    color: #fff;
}

.boat-price-label {
    font-size: 14px;
    opacity: 0.9;
}

.boat-price-amount {
    font-size: 28px;
    font-weight: 800;
    line-height: 1;
}

.boat-price-unit {
    font-size: 14px;
    opacity: 0.85;
}

/* -----------------------------------------------------------
   SINGLE PAGE FEATURED BADGE
----------------------------------------------------------- */
.boat-single-featured-badge {
    display: inline-block;
    padding: 5px 14px;
    margin-bottom: 14px;
    background: #d4a017;
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    border-radius: 4px;
}

/* -----------------------------------------------------------
   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;
    color: #1a1a1a !important;
}

.boat-accordion .accordion-content li strong {
    font-weight: 600;
    color: #111 !important;
}

/* Mobile accordion layout */
@media (max-width: 600px) {
    .boat-accordion .accordion-content li {
        width: 100%;
        font-size: 15px;
        line-height: 1.5;
        color: #1a1a1a !important;
    }
    .boat-accordion .accordion-content li strong {
        color: #111 !important;
    }
    .boat-accordion .accordion-content ul {
        gap: 8px 0;
    }
    .boat-details-list li {
        font-size: 16px;
        line-height: 1.5;
        color: #1a1a1a;
    }
    .boat-details-list li strong {
        color: #111;
    }
    .boat-short-description {
        font-size: 15px;
        color: #2a2a2a;
    }
}

/* Dark mode */
@media (prefers-color-scheme: dark) {
    .boat-details-card {
        background: #1a1a1a;
        border-color: #333;
    }

    .boat-details-heading {
        color: #fff;
        border-bottom-color: #68c7f0;
    }

    .boat-details-list li {
        color: #ddd;
    }
    .boat-details-list li strong {
        color: #fff;
    }

    .boat-short-description {
        border-color: #333;
        color: #ccc;
    }

    .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 !important;
    }
    .boat-accordion .accordion-content li strong {
        color: #fff !important;
    }
}
/* FORCE GRID LAYOUT */
.bm-pro-featured-grid {
    display: grid !important;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)) !important;
    gap: 20px !important;
    align-items: start;
}

/* FORCE CARD TO BE A GRID ITEM, NOT FULL-WIDTH BLOCK */
.bm-pro-boat-card {
    width: 100% !important;
    max-width: 100% !important;
    display: flex !important;
    flex-direction: column;
    align-items: center;
    background: #fff;
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    padding: 15px;
    text-align: center;
}

/* FIX IMAGE SIZE */
.bm-pro-boat-thumb img,
.boat-card-image img {
    width: 100% !important;
    height: 150px !important;
    object-fit: cover !important;
    border-radius: 6px;
}

/* FIX ANCHOR STYLES THAT FORCE FULL WIDTH */
.bm-pro-boat-card a.boat-card {
    display: block !important;
    width: 100% !important;
}
/* FEATURED RIBBON */
.bm-pro-ribbon {
    position: absolute;
    top: 10px;
    left: -10px;
    background: #e60023;
    color: #fff;
    padding: 6px 40px;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    transform: rotate(-45deg);
    z-index: 20;
    pointer-events: none;
    box-shadow: 0 3px 6px rgba(0,0,0,0.2);
}

/* Ensure parent is positioned */
.bm-pro-boat-card,
.boat-card {
    position: relative;
}
/* BOAT SEASON PRICES GRID LAYOUT */
.bm-season-prices-wrapper {
    margin-bottom: 30px;
}

.bm-season-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 10px;
}

.bm-season-table th,
.bm-season-table td {
    border: 1px solid #ddd;
    padding: 8px 10px;
}

.bm-season-table th {
    background: #f7f7f7;
    font-weight: 600;
}
.season-subtitles-row {
    margin-top: 10px;
    font-size: 14px;
    opacity: 0.8;
}
/* -----------------------------------------------------------
   INQUIRY FORM
----------------------------------------------------------- */
.boat-inquiry-section {
    margin-top: 40px;
    margin-bottom: 40px;
}

.boat-inquiry-card {
    max-width: 700px;
    margin: 0 auto;
    background: #f7f9fb;
    border: 1px solid #e2e8ee;
    border-radius: 12px;
    padding: 32px 28px;
}

.boat-inquiry-heading {
    margin: 0 0 6px 0;
    font-size: 24px;
    font-weight: 700;
    color: var(--text-dark);
    text-align: center;
}

.boat-inquiry-subtitle {
    margin: 0 0 24px 0;
    font-size: 15px;
    color: #555;
    text-align: center;
    line-height: 1.5;
}

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

.boat-inquiry-row {
    display: flex;
    gap: 16px;
}

.boat-inquiry-field {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.boat-inquiry-field-full {
    gap: 5px;
}

.boat-inquiry-field label,
.boat-inquiry-field-full label {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-dark);
}

.boat-inquiry-field label .required,
.boat-inquiry-field-full label .required {
    color: #d63638;
}

.boat-inquiry-field input,
.boat-inquiry-field-full input,
.boat-inquiry-field-full textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #cdd5df;
    border-radius: 6px;
    font-size: 15px;
    font-family: inherit;
    color: var(--text-dark);
    background: #fff;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.boat-inquiry-field input:focus,
.boat-inquiry-field-full input:focus,
.boat-inquiry-field-full textarea:focus {
    border-color: #0073aa;
    box-shadow: 0 0 0 3px rgba(0, 115, 170, 0.15);
    outline: none;
}

.boat-inquiry-field-full textarea {
    resize: vertical;
    line-height: 1.5;
}

.boat-inquiry-actions {
    display: flex;
    justify-content: center;
    margin-top: 4px;
}

.boat-inquiry-submit {
    padding: 12px 36px;
    background: linear-gradient(135deg, #0879ad 0%, #066a99 100%);
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: opacity 0.2s ease, transform 0.1s ease;
}

.boat-inquiry-submit:hover {
    opacity: 0.92;
}

.boat-inquiry-submit:active {
    transform: scale(0.98);
}

.boat-inquiry-submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.boat-inquiry-message {
    text-align: center;
    font-size: 15px;
    font-weight: 500;
    padding: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
}

.boat-inquiry-message.success {
    color: #2a7f2a;
    max-height: 60px;
    padding: 10px 0;
}

.boat-inquiry-message.error {
    color: #d63638;
    max-height: 60px;
    padding: 10px 0;
}

/* Mobile */
@media (max-width: 600px) {
    .boat-inquiry-card {
        padding: 20px 16px;
    }
    .boat-inquiry-row {
        flex-direction: column;
        gap: 12px;
    }
}

/* Dark mode */
@media (prefers-color-scheme: dark) {
    .boat-inquiry-card {
        background: #1a1a1a;
        border-color: #333;
    }
    .boat-inquiry-heading {
        color: #fff;
    }
    .boat-inquiry-subtitle {
        color: #aaa;
    }
    .boat-inquiry-field label,
    .boat-inquiry-field-full label {
        color: #eee;
    }
    .boat-inquiry-field input,
    .boat-inquiry-field-full input,
    .boat-inquiry-field-full textarea {
        background: #2a2a2a;
        border-color: #444;
        color: #eee;
    }
    .boat-inquiry-field input:focus,
    .boat-inquiry-field-full input:focus,
    .boat-inquiry-field-full textarea:focus {
        border-color: #68c7f0;
        box-shadow: 0 0 0 3px rgba(104, 199, 240, 0.2);
    }
    .boat-inquiry-message.success {
        color: #5cb85c;
    }
    .boat-inquiry-message.error {
        color: #e86b6b;
    }
}

