.p7-single-yacht .page-hero {
    min-height: 28vw;
}

/* Yacht Page Favorite Heart Styles */
.yacht-page-favorite-heart {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: none;
    border: 1px solid #002a3a;
    color: #002a3a;
    padding: 8px 12px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
    margin-left: 10px;
    position: relative;
}

.yacht-page-favorite-heart:hover {
    background: rgba(0, 42, 58, 0.1);
    transform: translateY(-1px);
}

.yacht-page-favorite-heart svg {
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.yacht-page-favorite-heart svg path {
    transition: all 0.3s ease;
}

.yacht-page-favorite-heart.favorited {
    background: #002a3a;
    color: white;
    border-color: #002a3a;
}

.yacht-page-favorite-heart.favorited svg path {
    fill: white;
    stroke: white;
}

.yacht-page-favorite-heart.favorited .allied-icon {
    display: block !important;
    position: absolute;
    top: 50%;
    left: 20px;
    transform: translate(-50%, -50%);
    pointer-events: none;
}

.yacht-page-favorite-heart.favorited span {
    color: white;
}

.yacht-page-favorite-heart.loading {
    opacity: 0.7;
    pointer-events: none;
}

.yacht-page-favorite-heart.loading svg {
    animation: heartPulse 1s infinite ease-in-out;
}

/* Message styles for yacht page */
.yacht-page-favorite-message {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(39, 174, 96, 0.9);
    color: white;
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 12px;
    white-space: nowrap;
    z-index: 20;
    margin-top: 5px;
    animation: fadeInMessage 0.3s ease-in-out;
}

.yacht-page-favorite-message.error {
    background: rgba(231, 76, 60, 0.9);
}

/* Yacht favorite section */
.yacht-favorite-section {
    padding: 15px 0;
}

/* Mobile responsive styles */
@media (max-width: 768px) {
    .share-row {
        flex-direction: column;
        gap: 10px;
        align-items: flex-start;
    }
    
    .yacht-page-favorite-heart {
        margin-left: 0;
        width: 100%;
        justify-content: center;
    }
    
    .yacht-favorite-section {
        margin: 15px 0;
        padding: 10px 0;
    }
}
.p7-single-yacht .page-hero .content h2 {font-size:37px; font-weight:bold;}
@media (max-width:810px) {
    .p7-single-yacht .page-hero .inner{
        display: flex;
        width: fit-content;
        flex-direction: column;
        align-items: flex-start;
    }
    .p7-single-yacht .page-hero .content {
        padding: 120px 0 90px;
    }
}
@media (max-width:700px) {
    .p7-single-yacht .page-hero {
        min-height: 40vw;
    }
  
    .p7-single-yacht .page-hero .content h2 {font-size:16px;}
}
.p7-single-yacht .page-hero .content p.description.sold-description {background:#A83609; color:#fff; width:fit-content; padding:10px 20px; margin-top:15px;}

.p7-single-yacht .conversion-zone {padding:34px 0 36px; background:#f4f4f4;}
.p7-single-yacht .conversion-zone .btn {margin:5px;}

.p7-single-yacht .brochure-form {max-width:600px; position:relative; margin:auto; padding:30px; background:#F4F4F4;}
.p7-single-yacht .brochure-form h3 {text-align:center; font-size:36px; font-weight:bold; color:var(--color-headline); margin-bottom:30px;}
.p7-single-yacht .brochure-form .fields {display:flex; flex-wrap:wrap; justify-content:space-between;}
.p7-single-yacht .brochure-form .fields .field {flex:0 0 46%; margin-bottom:1.8em;}
.p7-single-yacht .brochure-form .fields .field.field-large {flex-basis:100%;}
.p7-single-yacht .brochure-form .fields .field input:not(input[type="checkbox"]):not(input[type="radio"]) {width:100%; font-size:16px; padding:10px;}
.p7-single-yacht .brochure-form label.error {color:red; font-size:11px; display:block; margin:10px 0;}
.p7-single-yacht .brochure-form .privacy-policy {display:block; margin-bottom:30px;}

.p7-single-yacht .intro {background:#f4f4f4; padding-bottom:36px;}
.p7-single-yacht .intro .headline {font-size:32px; margin-bottom:10px;}
.p7-single-yacht .intro .price {font-size:18px; font-weight:500; color:var(--color-headline); margin-bottom:10px;}
.p7-single-yacht .intro .location {font-size:16px; font-weight:500; color:var(--color-headline); margin-bottom:10px;}

/* Share row under location */
.p7-single-yacht .intro .share-row {
    margin: 6px 0 14px;
}
.p7-single-yacht .intro .share-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #98A2AA; /* light grey */
    text-decoration: none;
    font-size: 14px;
}
.p7-single-yacht .intro .share-link:hover { color: #6b7680; }
.p7-single-yacht .intro .share-link .share-icon { display: inline-block; }

.p7-single-yacht .description-wrapper{ padding:36px 0;}
.p7-single-yacht .description-wrapper .buttons { margin-top:30px; }
.p7-single-yacht .description-wrapper .buttons .btn { margin-right:5px; }
.p7-single-yacht .wysiwyg {
    line-height: 1.5em;
}

.p7-single-yacht .gallery-wrapper{ background-color: #F4F4F4; padding-bottom:36px;}

.p7-single-yacht .broker-wrapper .inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    
}

.p7-single-yacht .mfp-content .broker-wrapper {max-width:800px; position:relative; margin:auto;}

.p7-single-yacht .broker-wrapper .inner a.headshot {position:relative; width:150px; height:150px; border-radius:100%; border:8px solid white; overflow:hidden;}
.p7-single-yacht .broker-wrapper .inner a.headshot img {position:absolute; top:0; left:0; width:100%; height:100%; object-fit:cover;}

.p7-single-yacht .broker-wrapper{ padding: 36px 0; background-color: #F4F4F4; }
.p7-single-yacht .broker-wrapper .info h2{ font-size: 1.7em; font-weight: bold; color:#002A3A;}
.p7-single-yacht .broker-wrapper .info p{ color:#3DBEE3; }


.p7-single-yacht .mfp-content .broker-wrapper .inner {justify-content:center; padding:0;}
.p7-single-yacht .mfp-content .broker-wrapper .inner a.headshot {margin-right:15px;}
.p7-single-yacht .mfp-content .broker-wrapper .contact {margin:50px 0 0;}


@media (max-width:1080px) {
    .p7-single-yacht .broker-wrapper .inner {justify-content:center;}
    .p7-single-yacht .broker-wrapper .inner a.headshot {margin-right:15px;}

    .p7-single-yacht .broker-wrapper .contact {
    width: 100%;
    margin: 1em 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    }
    .p7-single-yacht .broker-wrapper .contact a:first-child {
    margin-bottom: 0;
    margin-right: 1em;
    font-size: 1em;
    text-align: center;
    }
}



.p7-single-yacht .content-video-outer-wrapper.top-divider+div:not(.top-divider):before{
    display: none;
}

.p7-single-yacht .content-video-wrapper{
    background-color: #F4F4F4;
    display: flex;
    flex-direction: row;
}

.p7-single-yacht .content-video-wrapper h2{ 
    font-size: 1.3em;
    margin: 0 0 0.5em;
    font-weight: bold;
    color: #002A3A;
}

.p7-single-yacht .content-video-wrapper > div:first-child{
    flex: 0 0 40%;
    padding: 3em 2em;
}
.p7-single-yacht .content-video-wrapper > a:last-child{
    flex: 0 0 60%;
    position: relative;
    overflow: hidden;
    aspect-ratio: 16/9;
}
.p7-single-yacht .content-video-wrapper > a:last-child img.thumbnail {
    width: 100%;
    height: 100%;
    transform: translate(-50%, -50%);
    position: absolute;
    top: 50%;
    left: 50%;
    z-index: 1;
    object-fit: cover;
}
.p7-single-yacht .content-video-wrapper > a:last-child img.icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 2;
}

@media (max-width:810px){

    .p7-single-yacht .content-video-wrapper > div{
	width: 100%!important;
    }

    .p7-single-yacht .content-video-wrapper > a:last-child{
	min-height: 500px;
    }
    .p7-single-yacht .content-video-wrapper{
	flex-direction: column;
    }
    .p7-single-yacht .broker-wrapper .contact{
        flex-direction: column;
        justify-content: center;
        align-items: center;
    }
    .p7-single-yacht .broker-wrapper .contact a:first-child{
        margin-bottom: 1em;
        margin-right: 0;
    }

   
}


.p7-single-yacht .image-content-block {padding:0 0 100px;}

.p7-single-yacht .image-content-block .row {display:flex; justify-content:space-between; margin-top:60px;}
.p7-single-yacht .image-content-block .row:first-child {margin-top:0;}
.p7-single-yacht .image-content-block .headline {text-align: center;}
.p7-single-yacht .image-content-block .row:nth-child(even) {flex-direction:row-reverse;}
.p7-single-yacht .image-content-block .row .image {position:relative; flex:0 0 calc(50% - 21px);}
.p7-single-yacht .image-content-block .row .image img {position:absolute; top:0; left:0; width:100%; height:100%; object-fit:cover;}
.p7-single-yacht .image-content-block .row .content {flex:0 0 calc(50% - 21px);}
.p7-single-yacht .image-content-block .row .content .button-wrapper {margin-top:30px;}

@media (max-width:810px) {

	.p7-single-yacht .image-content-block .row {display:block;}
	.p7-single-yacht .image-content-block .row .image {aspect-ratio:1/1; margin-bottom:30px;}

}

.p7-single-yacht .engines-content-block{
    background-color: #002A3A;
    color: #ffffff;
        padding: 5em 0;
} 

.p7-single-yacht .engines-content-block table td{border-color: white;}
.p7-single-yacht .engines-content-block h2,
.p7-single-yacht .engines-content-block h3{
    color: #ffffff;
    text-align: center;
    margin-bottom: 1em;
}


.p7-single-yacht .engines-content-block h3{
    text-transform: uppercase;
}
.p7-single-yacht .engines-content-block .row {
    display: flex;
    column-gap: 2em;
}

.p7-single-yacht .engines-content-block .row > div{
    width: 50%;
}


@media (max-width:810px){
    .p7-single-yacht .engines-content-block .row {
	flex-direction: column;
    }
    .p7-single-yacht .engines-content-block .row > div{
	width: 100%;
	margin: 1em 0;
    }
}



table{
    border-spacing: 0;
    border-collapse: separate;
    width: 100%;
}

table tr:first-child td {
    border-top: 1px solid #002A3A;
}
.single-campaigns table tr:first-child td {
    border-top: none;
}
.single-campaigns table td{
    border: none;
    padding: 0;
}
table td {
    border-bottom: 1px solid #002A3A;
    padding: 1em .5em 1em 0;
    table-layout: fixed;
    display: table-cell;
        font-size: .9em;
}

table td:last-child {
    text-align: right;
    padding-right: 0;
}

.top-divider{
    padding: 180px 0 0;
}


hr {
    border-bottom: 2px solid #002A3A;
    margin: 5em 0;
        z-index: 30;
    position: relative;
}

.gallery div.slick-slide {
    display: grid;
    grid-template-columns: repeat(2, 1fr); 
    grid-template-rows: repeat(2, 1fr); 
    grid-gap: 15px; 
    height: auto; 
}


.gallery div.slick-slide a {
    display: block; 
}

.gallery div.slick-slide a img {
    width: 100%;
    height: auto;
    object-fit: cover;
}

/*@media (max-width: 768px) {*/
/*    .gallery div.slick-slide a {*/
/*        box-sizing: border-box;*/
/*    }*/
/*}*/





.gallery .slick-prev:before {
  font-family: 'allied-marine-icons'!important;
  content: "\e903";
}
.gallery .slick-next:before {
  font-family: 'allied-marine-icons'!important;
  content: "\e904";
}

.gallery .slick-arrow {
    position: absolute;
    top: calc(50% - 30px);
    z-index: 10;
}

.gallery .slick-prev {
    left: -60px;
}

.gallery .slick-next {
    right: -60px;
}

.gallery .slick-arrow:before {
    font-size: 60px;
}
@media screen and (max-width: 1220px){
    .gallery .slick-prev {
        left: -35px;
    }

    .gallery .slick-next {
        right: -35px;
    }
}


/*@media (max-width:810px){*/

/*    .gallery .slick-prev {*/
/*    	left: 10px;*/
/*    }*/

/*    .gallery .slick-next {*/
/*    	right: 10px;*/
/*    }*/


/*    .gallery div.slick-slide {*/
/*    	display: flex;*/
/*    	flex-direction: column;*/
/*    	height: 1000px;*/
/*    }*/

/*    .gallery div.slick-slide a {*/
/*        aspect-ratio:16/9;*/
/*    }*/

/*}*/
@media only screen and (max-width: 700px){
    .gallery div.slick-slide {
        display: grid;
        /*grid-template-columns: repeat(1, 1fr);*/
        /*grid-template-rows: repeat(1, 1fr);*/
        grid-gap: 15px;
        height: auto;
    }
    .gallery-wrapper{
        padding: 0 20px;
    }
    .p7-single-yacht .intro{
        padding-bottom: 15px;
    }
    .p7-single-yacht .conversion-zone{
        padding: 20px 0 30px;
    }

}

