/* --- Scoped Premium Boat Details Styles --- */
/* Everything is scoped under .yacht-single-premium to avoid affecting other pages */

.yacht-single-premium {
    font-family: 'Raleway', sans-serif;
    color: #333;
    line-height: 1.6;
    max-width: 1200px;
    margin: 20px auto;
    padding: 0 20px;
    background: #fff;
}

/* --- Section Headers (Dark Bar Design) --- */
.yacht-single-premium .page-product-heading {
    background: #000 !important;
    color: #fff !important;
    padding: 12px 0 12px 20px !important;
    font-size: 16px !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    margin-top: 40px !important;
    margin-bottom: 25px !important;
    display: block !important;
    width: 100% !important;
}

.yacht-single-premium .page-product-box {
    margin-bottom: 40px;
}

.yacht-single-premium .page-product-box-brief {
    margin-top: 25px;
    margin-bottom: 30px;
}

.yacht-single-premium .page-product-box-brief .rte {
    font-size: 15px;
    color: #555;
    line-height: 1.7;
}

.yacht-single-premium .additional-desc {
    font-weight: 500;
    color: #333;
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 1px dashed #ddd;
}

/* --- Slider Section (Full Width) --- */
.yacht-single-premium .vd_slider_full_width {
    width: 100%;
    margin-bottom: 30px;
}

/* Slider Overrides and Controls */
.yacht-single-premium .slider-container {
    position: relative;
    margin-bottom: 10px;
}

.yacht-single-premium .slider-controls {
    position: absolute;
    top: 50%;
    width: 100%;
    transform: translateY(-50%);
    display: flex;
    justify-content: space-between;
    padding: 0 10px;
    pointer-events: none;
    z-index: 10;
}

.yacht-single-premium .slider-controls a {
    pointer-events: auto;
    background: rgba(255, 255, 255, 0.7);
    color: #000;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    text-decoration: none;
    transition: background 0.3s;
}

.yacht-single-premium .slider-controls a:hover {
    background: #fff;
}

/* Sidebar Broker Box */
.yacht-single-premium .vd-detail-box {
    border: 1px solid #ddd;
    padding: 25px;
    background: #fff;
}

.yacht-single-premium .vd-detail-heading {
    border-bottom: 1px solid #eee;
    padding-bottom: 15px;
    margin-bottom: 20px;
    font-size: 13px;
    text-transform: uppercase;
    color: #888;
    font-weight: 600;
    text-align: center;
}

.yacht-single-premium .vd_broker_img {
    max-width: 120px;
    height: auto;
    display: block;
    margin: 0 auto 20px;
    border-radius: 5px;
}

.yacht-single-premium .vd_broker_name_sbar {
    font-size: 18px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 5px;
    color: #000;
    margin-top: 0;
}

.yacht-single-premium .vd_brokerage_name_sbar {
    display: block;
    text-align: center;
    font-size: 13px;
    color: #666;
    margin-bottom: 20px;
}

.yacht-single-premium .vd_contact {
    margin-bottom: 12px;
    text-align: center;
}

.yacht-single-premium .vd_lnk {
    color: #000;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
}

.yacht-single-premium .iyba-price-box {
    margin-top: 25px;
    padding-top: 20px;
    border-top: 2px solid #000;
    text-align: center;
}

/* --- Slider & Broker Sidebar Enhancements --- */
.yacht-single-premium .vd_slider_full_width .iyba_slider .item img {
    height: 550px;
    object-fit: cover;
    border-radius: 4px;
}

@media (max-width: 991px) {
    .yacht-single-premium .vd_slider_full_width .iyba_slider .item img {
        height: 400px;
    }
}

@media (max-width: 576px) {
    .yacht-single-premium .vd_slider_full_width .iyba_slider .item img {
        height: 250px;
    }
}

.yacht-single-premium .vessel_broker_section {
    position: sticky;
    top: 30px;
    z-index: 100;
}

.yacht-single-premium .iyba-price {
    font-size: 32px;
    font-weight: 800;
    color: #000;
    margin: 0;
}

/* --- Main Information Grid --- */
.yacht-single-premium .iyba-detail-container {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 30px;
    margin-top: 30px;
}

.yacht-single-premium .iyba-main-heading {
    font-size: 28px;
    font-weight: 800;
    margin: 0 0 5px 0;
    text-transform: uppercase;
    color: #000;
}

.yacht-single-premium .iyba-sub-heading {
    font-size: 16px;
    font-weight: 600;
    color: #666;
    margin-bottom: 20px;
    margin-top: 0;
}



/* Granular Specs Grid */
.yacht-single-premium .specs-detail-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.yacht-single-premium .quick_specs_row {
    padding: 10px 0;
    border-bottom: 1px solid #f9f9f9;
    font-size: 13px;
    margin: 0;
}

.yacht-single-premium .quick_specs_row strong {
    color: #333;
    display: inline-block;
    width: 130px;
    font-weight: 700;
}

/* --- Photos Grid --- */
.yacht-single-premium .photos-row-wrapper {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

.yacht-single-premium .iyba-walkthrough-container {
    position: relative;
    overflow: hidden;
    padding-top: 66.66%;
    background: #eee;
}

.yacht-single-premium .iyba-walkthrough-container a {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.yacht-single-premium .iyba-walkthrough-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* --- Engines Section --- */
.yacht-single-premium .engines-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.yacht-single-premium .engine-item h4 {
    border-bottom: 2px solid #000;
    padding-bottom: 8px;
    margin: 0 0 15px 0;
    font-weight: 800;
    font-size: 16px;
    text-transform: uppercase;
    color: #000 !important;
}



/* --- Contact Us (Slanted Design) --- */
.yacht-single-premium .contact-us-section {
    margin-top: 60px;
    background: #fff;
    border-top: 1px solid #eee;
    padding-top: 40px;
}

.yacht-single-premium .contact_form_heading_wrapper {
    display: inline-block;
    background: #000;
    color: #fff;
    padding: 15px 40px;
    margin-bottom: 30px;
    position: relative;
    overflow: hidden;
}

.yacht-single-premium .contact_form_heading_wrapper::after {
    content: '';
    position: absolute;
    top: 0;
    right: -20px;
    width: 40px;
    height: 100%;
    background: #fff;
    transform: skew(-20deg);
}

.yacht-single-premium .contact_form_heading {
    position: relative;
    z-index: 1;
    margin: 0;
    font-weight: 900;
    font-size: 24px;
    text-transform: uppercase;
    color: #fff;
}

.yacht-single-premium .broker-footer-row {
    display: flex;
    gap: 40px;
    align-items: center;
}

/* Mobile Responsive Overrides */
@media (max-width: 991px) {
    .yacht-single-premium .iyba-detail-container {
        grid-template-columns: 1fr;
    }

    .yacht-single-premium .photos-row-wrapper {
        grid-template-columns: 1fr 1fr;
    }

    .yacht-single-premium .engines-row {
        grid-template-columns: 1fr;
    }
}

/* Main Arrow Container Styling */
.mfp-arrow {
    opacity: 0.7 !important;
    transition: opacity 0.3s !important;
    background: none !important;
    width: 60px !important;
    height: 100px !important;
    margin: 0 !important;
    padding: 0 !important;
    top: 50% !important;
    margin-top: -50px !important;
}

.mfp-arrow:hover {
    opacity: 1 !important;
}

/* Hide the duplicate shadow arrow (:before) */
.mfp-arrow:before {
    display: none !important;
}

.mfp-arrow-left {
    left: 3vw !important;
}

.mfp-arrow-right {
    right: 3vw !important;
}

.mfp-arrow:after {
    content: '' !important;
    display: block !important;
    width: 0 !important;
    height: 0 !important;
    position: absolute !important;
    top: 50% !important;
    margin-top: -20px !important;
}

.mfp-arrow-left:after {
    border-top: 20px solid transparent !important;
    border-bottom: 20px solid transparent !important;
    border-right: 20px solid #fff !important;
    left: 10px !important;
    /* tip at 3vw + 10px */
}

.mfp-arrow-right:after {
    border-top: 20px solid transparent !important;
    border-bottom: 20px solid transparent !important;
    border-left: 20px solid #fff !important;
    right: 10px !important;
    /* tip at 3vw + 10px from right */
}

.mfp-counter {
    font-family: inherit;
    font-size: 14px;
    color: #ccc;
}

/* Ensure arrows are on top of everything */
.mfp-wrap {
    z-index: 999999 !important;
}

.mfp-bg {
    z-index: 999998 !important;
}

/* Animations */
.mfp-fade.mfp-bg {
    opacity: 0;
    transition: all 0.15s ease-out;
}

.mfp-fade.mfp-bg.mfp-ready {
    opacity: 0.8;
}

.mfp-fade.mfp-bg.mfp-removing {
    opacity: 0;
}

.mfp-fade.mfp-wrap .mfp-content {
    opacity: 0;
    transition: all 0.15s ease-out;
}

.mfp-fade.mfp-wrap.mfp-ready .mfp-content {
    opacity: 1;
}

.mfp-fade.mfp-wrap.mfp-removing .mfp-content {
    opacity: 0;
}