/**
 * Bluenose Yacht Sales — New Boat Model Page Styles
 * Matches the existing BYS site design language:
 *   Navy:      #0e1e30
 *   White:     #ffffff
 *   Light Blue:#e8f0f8
 *   Red:       #e4002b (Jeanneau accent)
 *   Body Text: #333333
 *
 * Add this CSS to your child theme's style.css or enqueue separately.
 */

/* ========== GENERAL ========== */
.bys-boat-page {
    max-width: 1200px;
    margin: 0 auto;
    font-family: 'Open Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: #333333;
    line-height: 1.6;
}

.bys-boat-page h2 {
    color: #0e1e30;
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 16px;
    padding-bottom: 8px;
    border-bottom: 2px solid #e8f0f8;
}

.bys-boat-page h3 {
    color: #0e1e30;
    font-size: 22px;
    font-weight: 600;
    margin-top: 24px;
    margin-bottom: 12px;
}

.bys-boat-page h4 {
    color: #0e1e30;
    font-size: 18px;
    font-weight: 600;
    margin-top: 16px;
    margin-bottom: 8px;
}

.bys-boat-page section {
    padding: 40px 20px;
}

/* ========== TITLE ROW ========== */
.bys-title-row {
    background-color: #e8f0f8;
    padding: 30px 20px;
}

.bys-title-row__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
}

.bys-title-row__bys-logo img {
    max-height: 80px;
    width: auto;
}

.bys-title-row__model-name {
    font-size: 36px;
    font-weight: 700;
    color: #0e1e30;
    text-align: center;
    flex: 1;
    margin: 0 20px;
}

.bys-title-row__brand-logo img {
    max-height: 80px;
    width: auto;
}

/* ========== IMAGE CAROUSEL ========== */
.bys-carousel {
    display: flex;
    position: relative;
    padding: 0;
    overflow: hidden;
    max-height: 600px;
}

.bys-carousel__sidebar {
    width: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    writing-mode: vertical-rl;
    text-orientation: mixed;
    font-weight: 700;
    font-size: 16px;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #ffffff;
    cursor: pointer;
    flex-shrink: 0;
}

.bys-carousel__sidebar--interior {
    background: rgba(14, 30, 48, 0.85);
    background-size: cover;
}

.bys-carousel__sidebar--exterior {
    background: rgba(228, 0, 43, 0.85);
    background-size: cover;
}

.bys-carousel__main {
    flex: 1;
    position: relative;
    background: #000;
    overflow: hidden;
}

.bys-carousel__track {
    width: 100%;
    height: 100%;
}

.bys-carousel__slide {
    display: none;
    width: 100%;
    height: 100%;
}

.bys-carousel__slide--active {
    display: block;
}

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

.bys-carousel__nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.3);
    color: #ffffff;
    border: none;
    font-size: 48px;
    cursor: pointer;
    padding: 10px 16px;
    z-index: 10;
    line-height: 1;
    transition: background 0.2s;
}

.bys-carousel__nav:hover {
    background: rgba(255, 255, 255, 0.6);
}

.bys-carousel__nav--prev { left: 10px; }
.bys-carousel__nav--next { right: 10px; }

.bys-carousel__dots {
    position: absolute;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 10;
}

.bys-carousel__dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 2px solid #ffffff;
    background: transparent;
    cursor: pointer;
    padding: 0;
    transition: background 0.2s;
}

.bys-carousel__dot--active,
.bys-carousel__dot:hover {
    background: #ffffff;
}

/* ========== VIDEO ========== */
.bys-video {
    padding: 40px 20px;
    text-align: center;
}

.bys-video__wrapper {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    max-width: 800px;
    margin: 0 auto;
}

.bys-video__wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* ========== DESCRIPTION ========== */
.bys-description {
    background: #ffffff;
}

.bys-description__content p {
    margin-bottom: 16px;
    font-size: 16px;
    line-height: 1.7;
}

/* ========== DETAILED SPECS ========== */
.bys-detailed-specs {
    background: #f8fafc;
}

.bys-detailed-specs__content ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.bys-detailed-specs__content li {
    padding: 10px 0;
    border-bottom: 1px solid #e8f0f8;
    font-size: 15px;
}

.bys-detailed-specs__content li strong {
    color: #0e1e30;
    margin-right: 8px;
}

/* ========== SPEC TABLE ========== */
.bys-spec-table__table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 16px;
}

.bys-spec-table__table thead th {
    background: #0e1e30;
    color: #ffffff;
    padding: 12px 16px;
    text-align: left;
    font-size: 15px;
    font-weight: 600;
}

.bys-spec-table__table td {
    padding: 12px 16px;
    font-size: 15px;
    border-bottom: 1px solid #e8f0f8;
}

.bys-spec-table__row--alt td {
    background: #f0f6fc;
}

.bys-spec-table__row--price td {
    background: #e8f0f8;
    font-size: 16px;
    color: #0e1e30;
}

/* ========== FAQ ACCORDION ========== */
.bys-faq {
    background: #ffffff;
}

.bys-faq__item {
    border: 1px solid #e8f0f8;
    border-radius: 4px;
    margin-bottom: 8px;
    overflow: hidden;
}

.bys-faq__question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding: 16px 20px;
    background: #ffffff;
    border: none;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    color: #0e1e30;
    text-align: left;
    transition: background 0.2s;
}

.bys-faq__question:hover {
    background: #f8fafc;
}

.bys-faq__icon {
    font-size: 24px;
    font-weight: 300;
    color: #0e1e30;
    flex-shrink: 0;
    margin-left: 16px;
}

.bys-faq__answer {
    padding: 0 20px 16px;
    font-size: 15px;
    line-height: 1.6;
    color: #555;
}

/* ========== INQUIRY FORM ========== */
.bys-inquiry {
    background: #f8fafc;
    text-align: center;
}

.bys-inquiry h2 {
    border-bottom: none;
}

.bys-inquiry__dealer {
    color: #666;
    margin-bottom: 24px;
}

.bys-inquiry__form {
    max-width: 700px;
    margin: 0 auto;
    text-align: left;
}

.bys-inquiry__row {
    display: flex;
    gap: 16px;
    margin-bottom: 16px;
}

.bys-inquiry__field {
    flex: 1;
}

.bys-inquiry__field--full {
    margin-bottom: 16px;
}

.bys-inquiry__field label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #0e1e30;
    margin-bottom: 4px;
}

.bys-inquiry__field input,
.bys-inquiry__field textarea {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid #d0d5dd;
    border-radius: 4px;
    font-size: 15px;
    font-family: inherit;
    transition: border-color 0.2s;
    box-sizing: border-box;
}

.bys-inquiry__field input:focus,
.bys-inquiry__field textarea:focus {
    border-color: #0e1e30;
    outline: none;
}

.bys-inquiry__submit {
    display: block;
    width: 100%;
    max-width: 300px;
    margin: 24px auto 0;
    padding: 14px 32px;
    background: #0e1e30;
    color: #ffffff;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}

.bys-inquiry__submit:hover {
    background: #1a3050;
}

/* ========== RESPONSIVE ========== */
@media (max-width: 768px) {
    .bys-title-row__inner {
        flex-direction: column;
        gap: 16px;
        text-align: center;
    }

    .bys-title-row__model-name {
        font-size: 28px;
        margin: 0;
    }

    .bys-carousel {
        flex-direction: column;
        max-height: none;
    }

    .bys-carousel__sidebar {
        width: 100%;
        height: 40px;
        writing-mode: horizontal-tb;
        font-size: 13px;
    }

    .bys-carousel__main {
        min-height: 250px;
    }

    .bys-inquiry__row {
        flex-direction: column;
        gap: 16px;
    }

    .bys-boat-page h2 {
        font-size: 24px;
    }
}

/* ========== ERROR STATE ========== */
.bys-error {
    text-align: center;
    color: #cc0000;
    padding: 40px;
    font-size: 16px;
}
