/*
 * Section nav styles intentionally live in the THEME, not here:
 * wp-content/themes/moran/assets/styles/components/_section-nav.scss
 *
 * This file used to carry a full duplicate. main.css loads after this
 * stylesheet, so the theme copy already won every declaration — verified
 * by normalising both sides (media conditions, ::/: pseudo forms, cssnano's
 * rgba->hsla rewriting): 0 of the plugin's nav declarations were absent from
 * the compiled theme CSS. Duplicating it here blocked deferring this file,
 * because the two copies fought over `.smls-section-nav-inner`.
 */

.single-yacht_listing.single-master_yachts .header-yacht-static .background-image > img{
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.single-yacht_listing.single-master_yachts .yacht-gallery-overlay .background-image img{
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
}

.single-yacht_listing.single-master_yachts .yacht-gallery-overlay .fancy-box-image{
    display: block;
    position: relative;
    aspect-ratio: 680 / 480;
    overflow: hidden;
}

.single-yacht_listing.single-master_yachts .yacht-gallery-overlay .fancy-box-image img{
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.smls-similar-yachts{
    padding: 60px 0;
    background: #f5f5f5;
}

.smls-similar-yachts h2{
    margin-bottom: 30px;
    font-family: 'Playfair Display', serif;
    font-weight: 300;
}

.smls-similar-yachts .featured-yachts-carousel-wrapper .swiper-button-prev,
.smls-similar-yachts .featured-yachts-carousel-wrapper .swiper-button-next{
    width: 50px;
    height: 50px;
    background: rgba(0, 0, 0, 0.8);
    border: none;
    border-radius: 50%;
    color: #fff;
    margin-top: -25px;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: visible;
}

.smls-similar-yachts .featured-yachts-carousel-wrapper .swiper-button-prev::after,
.smls-similar-yachts .featured-yachts-carousel-wrapper .swiper-button-next::after{
    position: static;
    display: block;
    width: auto;
    height: auto;
    mask-image: none !important;
    -webkit-mask-image: none !important;
    mask-size: unset !important;
    -webkit-mask-size: unset !important;
    mask-repeat: unset !important;
    -webkit-mask-repeat: unset !important;
    background-color: transparent !important;
    font-family: swiper-icons;
    font-size: 18px;
    font-weight: bold;
    color: #fff;
    top: auto;
    left: auto;
    right: auto;
    text-align: center;
}

.smls-similar-yachts .featured-yachts-carousel-wrapper .swiper-button-prev::after{
    content: 'prev';
}

.smls-similar-yachts .featured-yachts-carousel-wrapper .swiper-button-next::after{
    content: 'next';
}

.smls-similar-yachts .featured-yachts-carousel-wrapper .swiper-button-prev:hover,
.smls-similar-yachts .featured-yachts-carousel-wrapper .swiper-button-next:hover{
    background: #b08d57;
    border: none;
    color: #000;
}

.smls-similar-yachts .featured-yachts-carousel-wrapper .swiper-button-prev:hover::after,
.smls-similar-yachts .featured-yachts-carousel-wrapper .swiper-button-next:hover::after{
    color: #000;
}

.smls-similar-yachts .featured-yachts-carousel-wrapper .swiper-button-prev.swiper-button-disabled,
.smls-similar-yachts .featured-yachts-carousel-wrapper .swiper-button-next.swiper-button-disabled{
    opacity: 0.3;
    cursor: not-allowed;
    pointer-events: none;
}

.smls-similar-yachts .featured-yachts-carousel-wrapper .swiper-button-next{
    right: 15px;
}

.smls-similar-yachts .featured-yachts-carousel-wrapper .swiper-button-prev{
    left: 15px;
}

@media (max-width: 767px) {
    .smls-similar-yachts .featured-yachts-carousel-wrapper .swiper-button-prev,
.smls-similar-yachts .featured-yachts-carousel-wrapper .swiper-button-next{
        display: none !important;
    }
}

.listing .archive-description{
    margin-bottom: 20px;
    color: #666;
    line-height: 1.7;
}

.yacht-video-section,
.yacht-virtual-tour-section{
    padding: 60px 0;
}

.smls-video-wrapper,
.smls-tour-wrapper{
    position: relative;
    padding-bottom: 56.25%; /* 16:9 */
    height: 0;
    overflow: hidden;
}

.smls-video-wrapper iframe,
.smls-tour-wrapper iframe{
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.single-yacht_listing .yacht-description-2-col ul,
.single-yacht_listing .yacht-spec-split__content ul{
    list-style: none;
    padding: 0;
    margin: 0;
}

.single-yacht_listing .yacht-description-2-col ul li,
.single-yacht_listing .yacht-spec-split__content ul li{
    padding: 0 0 12px 20px;
    position: relative;
    line-height: 1.7;
}

.single-yacht_listing .yacht-description-2-col ul li::before,
.single-yacht_listing .yacht-spec-split__content ul li::before{
    content: '\2014';
    position: absolute;
    left: 0;
}

.smls-desc-wrap{
    position: relative;
}

.yacht-spec-split .smls-desc-collapsed{
    max-height: 400px !important;
    overflow: hidden;
}

.smls-desc-fade{
    display: none;
}

.smls-desc-collapsed .smls-desc-fade{
    display: block;
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 100px;
    background: linear-gradient(to bottom, rgba(255,255,255,0) 0%, rgba(255,255,255,1) 100%);
    pointer-events: none;
}

.smls-read-more{
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    width: fit-content;
    background: none;
    border: none;
    padding: 10px 0;
    margin: 8px auto 0;
    cursor: pointer;
    font-family: 'Montserrat', sans-serif;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    color: #666;
    position: relative;
    transition: color 0.3s ease;
}

.smls-read-more::before{
    content: '';
    position: absolute;
    bottom: 4px;
    left: 0;
    width: 100%;
    height: 1px;
    background-color: #b5b5b5;
    transform: scaleX(0.55);
    transform-origin: center;
    transition: transform 0.4s ease, background-color 0.3s ease;
}

.smls-read-more::after{
    content: '\2193';
    font-size: 14px;
    font-weight: 300;
    transition: transform 0.3s ease, color 0.3s ease;
}

.smls-read-more:focus:not(:focus-visible){
    outline: none;
}

.smls-read-more:hover,
.smls-read-more:focus-visible{
    color: #333;
    outline: none;
}

.smls-read-more:hover::before,
.smls-read-more:focus-visible::before{
    transform: scaleX(1);
    background-color: #999;
}

.smls-read-more:hover::after,
.smls-read-more:focus-visible::after{
    color: #333;
    transform: translateY(2px);
}

.smls-read-more[aria-expanded="true"]{
    color: #999;
}

.smls-read-more[aria-expanded="true"]::after{
    content: '\2191';
}

.smls-read-more[aria-expanded="true"]::before{
    transform: scaleX(0.25);
    background-color: #ccc;
}

.smls-read-more[aria-expanded="true"]:hover{
    color: #555;
}

.smls-read-more[aria-expanded="true"]:hover::before{
    transform: scaleX(0.7);
    background-color: #aaa;
}

@media (max-width: 767px) {
    .smls-read-more{
        font-size: 11px;
        letter-spacing: 2px;
        padding: 8px 0;
        margin-top: 6px;
    }
}

@media (min-width: 768px) and (max-width: 991px) {
    .smls-read-more{
        font-size: 11.5px;
        letter-spacing: 2.2px;
    }
}

@media (min-width: 992px) {
    .smls-desc-collapsed{
        max-height: 220px;
    }
}

.smls-location-sentence{
    margin-top: 20px;
    font-style: italic;
    color: #666;
}

.card-yacht .meta .spec .card-dollars.active,
.card-yacht .meta .spec .card-euros.active{
    display: inline;
}

.smls-status-tabs{
    display: flex;
    gap: 0;
    margin-bottom: 25px;
    border-bottom: 1px solid #ddd;
}

.smls-tab{
    padding: 10px 20px;
    font-family: 'Montserrat', sans-serif;
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    text-decoration: none;
    color: #888;
    border-bottom: 2px solid transparent;
    transition: color 0.2s, border-color 0.2s;
}

.smls-tab:hover{
    color: #333;
    text-decoration: none;
}

.smls-tab.active{
    color: #333;
    border-bottom-color: #b08d57;
}

.smls-filter-bar{
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    margin-bottom: 25px;
    padding: 15px 0;
}

.smls-filter-bar select{
    font-family: 'Montserrat', sans-serif;
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.5px;
    padding: 8px 32px 8px 12px;
    border: 1px solid #ddd;
    background: #fff url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="12" height="8"><path d="M1 1l5 5 5-5" stroke="%23666" stroke-width="1.5" fill="none"/></svg>') right 10px center no-repeat;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    cursor: pointer;
    min-width: 160px;
    color: #333;
    transition: border-color 0.2s;
}

.smls-filter-bar select:hover,
.smls-filter-bar select:focus{
    border-color: #b08d57;
    outline: none;
}

.smls-filter-submit{
    font-family: 'Montserrat', sans-serif;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    padding: 9px 20px;
    background: #333;
    color: #fff;
    border: 1px solid #333;
    cursor: pointer;
    transition: background 0.2s, border-color 0.2s;
}

.smls-filter-submit:hover{
    background: #b08d57;
    border-color: #b08d57;
}

.smls-filter-clear{
    font-family: 'Montserrat', sans-serif;
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.5px;
    color: #888;
    text-decoration: none;
    transition: color 0.2s;
}

.smls-filter-clear:hover{
    color: #b08d57;
    text-decoration: none;
}

@media (max-width: 767px) {
    .smls-filter-bar{
        flex-direction: column;
        align-items: stretch;
    }

    .smls-filter-bar select{
        min-width: 100%;
    }

    .smls-filter-submit{
        width: 100%;
    }
}

/* ── Spec Column Padding (inner edges of left/right col-lg-6) ── */
@media (min-width: 992px) {
    .single-yacht_listing .yacht-specification .row > .col-lg-6:first-child{
        padding-right: 25px;
    }
    .single-yacht_listing .yacht-specification .row > .col-lg-6:last-child{
        padding-left: 25px;
    }
}

.yacht-spec-split{
    display: flex;
    width: 100%;
}

.yacht-spec-split__content{
    flex: 1 1 60%;
    background: #fff;
    /* Tight top: the block always opens with the back link, which belongs up
       near the section nav rather than floating mid-gap. The breathing room
       moved to .smls-back-link's bottom margin instead. */
    padding: 26px clamp(40px, 5vw, 120px) 50px !important;
}

.yacht-spec-split__specs{
    flex: 0 0 400px;
    background: #fdba2e;
    padding: 40px clamp(30px, 3vw, 50px);
    color: #1a1a1a;
}

/* 18px matches body copy everywhere else on the site (news articles, page
   content). This block ran 17px here and 15px under 992px, which read
   noticeably small next to the rest of the site on phones and tablets. */
.yacht-spec-split__content p,
.yacht-spec-split__content .smls-desc-wrap{
    font-size: 18px !important;
    line-height: 1.85 !important;
}

.smls-back-link{
    display: inline-block;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    color: #999;
    margin-bottom: 26px;
}
/* 11px is a phone size — give it back some presence on tablet and desktop. */
@media (min-width: 768px) {
    .smls-back-link{
        font-size: 12px;
        letter-spacing: 1.4px;
    }
}

@media (min-width: 992px) {
    .smls-back-link{
        font-size: 13px;
        letter-spacing: 1.5px;
    }
}

.smls-back-link a{
    color: #999;
    text-decoration: none;
    transition: color 0.2s ease;
}
.smls-back-link a:hover{
    color: #333;
    text-decoration: none;
}

.yacht-spec-split__content .smls-read-more{
    text-align: left !important;
    margin: 5px 0 0 !important;
    justify-content: flex-start !important;
    font-weight: 900 !important;
    font-size: 14px !important;
    color: #000 !important;
    letter-spacing: 2px !important;
}

.spec-cta-right{
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 12px;
    margin-top: 20px;
}

a.spec-cta-btn,
a.spec-cta-btn:link,
a.spec-cta-btn:visited{
    display: inline-block;
    padding: 15px 40px;
    border: none !important;
    color: #fff !important;
    background: #000 !important;
    font-weight: 700;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 2px;
    text-decoration: none !important;
    transition: all 0.25s ease-in-out;
}

a.spec-cta-btn:hover{
    color: #fdba2e !important;
    background: #000 !important;
    text-decoration: none !important;
}

a.spec-cta-btn:not([target="_blank"]),
a.spec-cta-btn:not([target="_blank"]):link,
a.spec-cta-btn:not([target="_blank"]):visited{
    color: #fdba2e !important;
}

a.spec-cta-btn:not([target="_blank"]):hover{
    color: #fff !important;
}


.spec-cta-row--sold{
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px 32px;
    margin-top: 52px;
    padding-top: 28px;
    border-top: 1px solid #e5e5e5;
}

.spec-cta-row--sold .spec-cta-right{
    margin: 0;
}

.spec-cta-row--sold .smls-sell-cta{
    flex: 1 1 300px;
    margin: 0;
    padding: 0;
    border-top: 0;
}

@media (max-width: 767px) {
    .spec-cta-row--sold{
        gap: 14px;
    }

    .spec-cta-row--sold .smls-sell-cta{
        flex-basis: 100%;
    }
}

.yacht-spec-split__price{
    padding-bottom: 14px;
    margin-bottom: 12px;
}

.spec-price-label{
    font-size: 12px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 4px;
}

.spec-price-value{
    font-size: 22px;
    font-weight: 700;
    line-height: 1.2;
}

.spec-price-approx{
    font-size: 13px;
    font-weight: 400;
    opacity: 0.7;
    margin-top: 2px;
}

.spec-charter-rate{
    padding: 12px 0;
    border-bottom: 1px solid rgba(0,0,0,0.1);
}

.spec-charter-rate:last-child{
    border-bottom: none;
}

.spec-charter-season{
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    opacity: 0.6;
    margin-bottom: 4px;
}

.spec-charter-rate .spec-price-value{
    font-size: 20px;
}

.yacht-spec-split__price--charter{
    padding-bottom: 8px;
}

.yacht-spec-split__grid{
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 0 16px;
    padding: 10px 0;
    border-bottom: 1px solid rgba(0,0,0,0.15);
    text-align: center;
}

.spec-grid-label{
    font-size: 11px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    opacity: 0.7;
    margin-bottom: 2px;
}

.spec-grid-value{
    font-size: 14px;
    font-weight: 700;
}

.yacht-spec-split__group{
    padding-top: 12px;
}

.yacht-spec-split__group + .yacht-spec-split__group{
    padding-top: 16px;
}

.spec-split-row{
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    padding: 10px 0;
    border-bottom: 1px solid rgba(0,0,0,0.15);
}

.spec-split-label{
    font-size: 12px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.8px;
}

.spec-split-value{
    font-size: 15px;
    font-weight: 700;
    text-align: right;
}

.spec-split-value a{
    color: #1a1a1a;
    text-decoration: underline;
}

.spec-split-row--stacked{
    flex-direction: column;
    align-items: flex-start;
}

.spec-split-row--stacked .spec-split-value{
    text-align: left;
    margin-top: 2px;
}

/* ── Responsive: wider specs on large screens ── */
@media (min-width: 1600px) {
    .yacht-spec-split__specs{ flex: 0 0 420px; }
}

/* ── Tablet + Mobile: stack vertically ── */
@media (max-width: 991px) {
    .yacht-spec-split{
        flex-direction: column;
    }

    .yacht-spec-split__content{
        padding: 18px 20px 36px;
    }

    .yacht-spec-split__content h1{
        font-size: 30px !important;
    }

    .yacht-spec-split__content h2{
        font-size: 28px !important;
        line-height: 1.3 !important;
    }

    .yacht-spec-split__content p,
.yacht-spec-split__content .smls-desc-wrap{
        font-size: 18px !important;
        line-height: 1.7 !important;
    }

    .yacht-spec-split__specs{
        flex: none;
        width: 100%;
        padding: 36px 20px;
    }

    a.spec-cta-btn,
a.spec-cta-btn:link,
a.spec-cta-btn:visited{
        font-size: 11px !important;
        padding: 12px 20px !important;
        letter-spacing: 1.5px;
    }

    .spec-cta-right{
        justify-content: flex-start;
    }
}

/* ── Mobile: smaller headings ── */
@media (max-width: 767px) {
    .yacht-spec-split__content h1{
        font-size: 24px !important;
    }

    .yacht-spec-split__content h2{
        font-size: 25px !important;
        line-height: 1.3 !important;
    }
}

.single-yacht_listing .header-yacht-static .category{
    text-transform: uppercase;
    letter-spacing: 2px;
}
