.carousel-item img {
    max-height: 500px;
    object-fit: cover;
}

.thumb-container {
    display: flex;
    justify-content: center;
    gap: 2px;
    margin-top: 10px;
    overflow-x: scroll;
}

.thumb-container img {
    min-width: 128px;
    width: 128px;
    height: 96px;
    cursor: pointer;
    object-fit: cover;
    border: 2px solid transparent;
    transition: 0.3s;
    border-radius: .5rem;
}

.thumb-container img.active {
    border-color: #007bff;
}

.thumb-container::-webkit-scrollbar {
    height: 6px; /* Thin scrollbar */
}

.thumb-container::-webkit-scrollbar-track {
    background: #222; /* Dark background */
    border-radius: 10px;
}

.thumb-container::-webkit-scrollbar-thumb {
    background: linear-gradient(45deg, #000, #444); /* Glossy black effect */
    border-radius: 10px;
}

.thumb-container::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(45deg, #111, #555); /* Slightly lighter on hover */
}

.gallery-overlay {
    position: relative;
    overflow: hidden;
    height:120px;
}

.gallery-overlay img {    
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.gallery-overlay .overlay-text {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background: rgba(0, 0, 0, 0.6);
    color: white;
    padding: 10px 20px;
    font-size: 16px;
    font-weight: bold;
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
    /* Centering the text */
    display: flex;
    justify-content: center;  /* Centers horizontally */
    align-items: center;      /* Centers vertically */
    text-align: center;       /* Ensures text is centered */
}

.gallery-overlay:hover .overlay-text {
    opacity: 1;
}

.yt-video-embed-wrapper {
    position: relative;
    padding-top: 56.25%; /* 16:9 aspect ratio */
    height: 0;
    overflow: hidden;
}
  
.yt-video-embed-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

.yt-hidden-item{
    display:none;
}

.tt-subheading{
    font-weight:bold;
    margin-right: 10px;
}

.image-has-hover-effects, .gjs-image-wrapper{
    overflow: hidden;
}

.image-has-hover-effects .gjs-image {
    transition: transform 0.4s ease;
}

.image-has-hover-effects:hover .gjs-image {
transform: scale(1.1);
}

span.custom-svg-icon svg{
    width:100%;
    height:100%;
}

body .svg-icon svg{
    width: 100%;
    height: 100%;
}

.yt-cards .col-yacht{
    margin-bottom:20px;
}

.yt-template-custom .grid-view .col-yacht{
    margin-bottom:20px;
}

.yt-template-custom .grid-view .col-yacht .card{
    height:100%;
}

@media (min-width: 768px) { /* Apply only on desktops (Bootstrap's md breakpoint) */
    .sticky-sidebar {
        position: -webkit-sticky; /* For Safari */
        position: sticky;
        top: 20px; /* Adjust distance from the top */
    }
}

.btn.yt_button.component:hover{
    color:inherit;
}
/* for form styling*/

.yt-search-form-design2 .col-input.yt-d2-fields{
    border:none;
    background: none;
    box-shadow: 0px 4px 6px -1px rgba(0, 0, 0, 0.1);
    margin-bottom:30px;
}

.yt-search-form-design2 .col-input.yt-d2-fields label {
    margin-top:4px;
    color: #6d6d6d !important;
}

.yt-search-form-design2 .col-input.yt-d2-fields .yt-input {
    outline:none;
    border: 2px solid transparent; /* Invisible border */
    border-radius: 8px; /* Smooth rounded corners */
    padding: 10px 15px;
    transition: all 0.3s ease-in-out;
    margin-left:5px;
    color: #000000; /* Soft gray */
}

.yt-search-form-design2 .col-input.yt-d2-fields .yt-input.extra-attrs-fields{
    padding: 10px 5px;
}

body .yt-search-form-design2 select.yt-input:not([multiple]){
    padding-left: 15px !important;
    color: #4a4a4a !important;
    background-image: linear-gradient(45deg, transparent 50%, #555555 50%), linear-gradient(135deg, #999999 50%, transparent 50%);
}

body .yt-search-form-design2 .col-input.yt-d2-fields select.yt-input.yt-additional-attr{
    padding-left: 5px !important;
    padding-right: 15px !important;
    max-width: 65px;
}

.yt-search-form-design2 .include-filters label{
    color:#585858 !important
}

.yt-search-form-design2 .include-filters label.include-text{
    margin-right:20px;
}

.yt-search-form-design2 .include-filters label.IncludeCheckbox{
    font-weight: 400;
    padding-right: 10px;
}

.yt-search-form-design2 .include-filters label.IncludeCheckbox .yt-checkbox-field{
    margin-top: 3px;
    margin-right: 2px;
    float: left;
}

.yt-search-form-design2 .col-input.yt-d2-fields .yt-input::placeholder {
    color: #9e9e9e !important; /* Soft gray */
    transition: color 0.3s ease-in-out;
}

.yt-search-form-design2 .col-input.yt-d2-fields .yt-input:focus,
.yt-search-form-design2 .col-input.yt-d2-fields .yt-input:hover {
    border-color: rgba(100, 149, 237, 0.6); /* Soft Cornflower Blue */
    box-shadow: 0px 0px 12px rgba(100, 149, 237, 0.5); /* Soft glowing effect */
}

.yt-search-form-design2 .col-input.yt-d2-fields .yt-input:focus::placeholder {
    color: rgba(150, 150, 150, 0.5); /* Slightly faded on focus */
}

.yt-search-form-design2 input[type=submit].yt-btn {
    background: linear-gradient(180deg, #ff416c, #ff4b2b); /* Gradient for glossy look */
    color: white;
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: bold;
    text-transform: uppercase;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: all 0.4s ease-in-out;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.2);
}

/* Glossy highlight effect */
.yt-search-form-design2 input[type=submit].yt-btn::before {
    content: "";
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.3) 10%, transparent 10%);
    opacity: 0;
    transition: opacity 0.4s ease-in-out, transform 0.4s ease-in-out;
    transform: scale(0);
}

/* Hover effect */
.yt-search-form-design2 input[type=submit].yt-btn:hover::before {
    opacity: 1;
    transform: scale(1);
}

.yt-search-form-design2 input[type=submit].yt-btn:hover {
    box-shadow: 0px 6px 15px rgba(0, 0, 0, 0.3);
    transform: translateY(-2px);
}

.yt-dynamic-slider button{
    border:none;
}

.yt-dynamic-slider button:hover, .yt-dynamic-slider button:focus{
    background-color: #0000001a;

}

.yt-search-form-design2 .include-filters label.IncludeCheckbox span{
    margin-top: 3px;
    margin-left: 2px;
    float: left;
}

[data-col-max-height] {
  overflow: hidden;
  transition: max-height 0.9s ease;
}

.iti{
    width:100%;
}

.gallery-panel figure {
    overflow: visible;
    display: block;
}

.myAutoGridSlider{
    width:100%;
}

.accordion-content {
  overflow: hidden;
  max-height: 0;
  transition: max-height 0.4s ease;
  display: none;
  padding: 0; /* important */
}

.accordion-inner {
  padding: 10px 0; /* move your padding here */
}

.yt-fav-toggle{
  position:absolute;
  top:12px;
  right:12px;
  width:34px;
  height:34px;
  border-radius:50%;
  background:white;
  cursor:pointer;
  z-index:999;
  display:flex;
  align-items:center;
  justify-content:center;
  box-shadow:0 2px 6px rgba(0,0,0,.2);
}

.yt-fav-toggle::before{
  content:"♡";
  font-size:16px;
}

.yt-fav-toggle:hover{
  background:#e63946;
  color:white;
}

.yt-fav-toggle.active{
  background:#e63946;
  color:white;
}

.yt-fav-toggle.active::before{
  content:"♥";
}

.col-yacht .pic{
  position:relative;
}

.yt-gallery-container{
    position:relative;
}

/* ===== Compare Layout Base ===== */

.yatco-favorites-listing-shortcode-wrapper.yatco-compare-wrapper{
    position:relative;
}

.yatco-favorites-listing-shortcode-wrapper .slider-viewport {
    overflow: hidden;
    width: 100%;
    position: relative;
}

.yatco-favorites-listing-shortcode-wrapper .slider-track {
    display: flex;
    transition: transform 0.6s cubic-bezier(0.23, 1, 0.32, 1);
    gap: 2rem;
}

.yatco-favorites-listing-shortcode-wrapper .vessel-column {
    flex: 0 0 calc(33.333% - 1.35rem);
    min-width: calc(33.333% - 1.35rem);
}

/* Navigation Buttons */

.yatco-favorites-listing-shortcode-wrapper .nav-button {
    position: absolute;
    top: 35%;
    transform: translateY(-50%);
    z-index: 40;
    background: #fff;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    border: 1px solid rgba(0,31,61,0.1);
    cursor: pointer;
    transition: all 0.2s ease;
    color:rgb(33, 33, 33);
}

.yatco-favorites-listing-shortcode-wrapper .yatco-compare-wrapper .nav-button:hover {
    background: #f8fafc;
    transform: translateY(-50%) scale(1.05);
    color:rgb(33, 33, 33);
}

.yatco-favorites-listing-shortcode-wrapper .nav-button:disabled {
    opacity: 0;
    pointer-events: none;
}

.yatco-favorites-listing-shortcode-wrapper .nav-prev { left: 10px; }
.yatco-favorites-listing-shortcode-wrapper .nav-next { right: 10px; }

/* Remove default summary arrow */
.yatco-favorites-listing-shortcode-wrapper details summary::-webkit-details-marker {
    display: none;
}

/* Simple utility replacements */

.yatco-favorites-listing-shortcode-wrapper .bg-button {
    background: #2196F3;
}

.yatco-favorites-listing-shortcode-wrapper .bg-dropdown {
    background: #EEEEEE;
}

.yatco-favorites-listing-shortcode-wrapper .text-primary {
    color: #212121;
}

.yatco-favorites-listing-shortcode-wrapperyatco-compare-wrapper .flex {
    display: flex;
}

.yatco-favorites-listing-shortcode-wrapper.yatco-compare-wrapper .rounded {
    border-radius: 6px;
}

.yatco-favorites-listing-shortcode-wrapper.yatco-compare-wrapper .shadow-sm {
    box-shadow: 0 2px 6px rgba(0,0,0,0.05);
}

.yatco-favorites-listing-shortcode-wrapper.yatco-compare-wrapper .p-6 {
    padding: 1.5rem;
}

.yatco-favorites-listing-shortcode-wrapper.yatco-compare-wrapper .justify-between {
    justify-content: space-between;
}

.yatco-favorites-listing-shortcode-wrapper.yatco-compare-wrapper .items-center {
    align-items: center;
}

.yatco-favorites-listing-shortcode-wrapper.yatco-compare-wrapper .gap-4 {
    gap: 1rem;
}

.yatco-favorites-listing-shortcode-wrapper.yatco-compare-wrapper .text-sm {
    font-size: 0.875rem;
}

.yatco-favorites-listing-shortcode-wrapper.yatco-compare-wrapper .text-gray-500 {
    color: #6B7280;
}

.yatco-favorites-listing-shortcode-wrapper.yatco-compare-wrapper .text-gray-700 {
    color: #374151;
}

.yatco-favorites-listing-shortcode-wrapper.yatco-compare-wrapper .flex-col {
    flex-direction: column;
}

.yatco-favorites-listing-shortcode-wrapper.yatco-compare-wrapper .w-full {
    width: 100%;
}

.yatco-favorites-listing-shortcode-wrapper.yatco-compare-wrapper .mb-4 {
    margin-bottom: 1rem;
}

.yatco-favorites-listing-shortcode-wrapper.yatco-compare-wrapper .mb-2 {
    margin-bottom: 0.5rem;
}

.yatco-favorites-listing-shortcode-wrapper.yatco-compare-wrapper .p-10 {
    padding: 2.5rem;
}

.yatco-favorites-listing-shortcode-wrapper.yatco-compare-wrapper .text-center {
    text-align: center;
}

.yatco-favorites-listing-shortcode-wrapper.yatco-compare-wrapper .align-center {
    align-items: center;
}

.yatco-favorites-listing-shortcode-wrapper.yatco-compare-wrapper .mb-12 {
    margin-bottom: 3rem;
}

.yatco-favorites-listing-shortcode-wrapper.yatco-compare-wrapper .group:not(:first-child) {
    margin-top: 1rem;
}

.yatco-favorites-listing-shortcode-wrapper.yatco-compare-wrapper .tracking-wider {
    letter-spacing: 0.05em;
}

.yatco-favorites-listing-shortcode-wrapper.yatco-compare-wrapper .uppercase {
    text-transform: uppercase;
}

.yatco-favorites-listing-shortcode-wrapper.yatco-compare-wrapper .font-bold {
    font-weight: 700;
}

.yatco-favorites-listing-shortcode-wrapper.yatco-compare-wrapper .text-sm {
    font-size: 0.875rem;
    line-height: 1.25rem;
}

.yatco-favorites-listing-shortcode-wrapper.yatco-compare-wrapper .text-primary\/60 {
    color: rgb(33 33 33 / 0.6);
}

.yatco-favorites-listing-shortcode-wrapper.yatco-compare-wrapper .text-xs {
    font-size: 0.75rem;
    line-height: 1rem;
}

.yatco-favorites-listing-shortcode-wrapper.yatco-compare-wrapper .aspect-\[3\/2\] {
    aspect-ratio: 3 / 2;
}

.yatco-favorites-listing-shortcode-wrapper.yatco-compare-wrapper .object-cover {
    object-fit: cover;
}

.yatco-favorites-listing-shortcode-wrapper.yatco-compare-wrapper .w-full {
    width: 100%;
}

.yatco-favorites-listing-shortcode-wrapper.yatco-compare-wrapper .h-full {
    height: 100%;
}

.yatco-favorites-listing-shortcode-wrapper .yatco-clickable{
    cursor: pointer;
}

.yatco-favorites-listing-shortcode-wrapper.yatco-compare-wrapper .tracking-\[0\.2em\] {
    letter-spacing: 0.2em;
}

.yatco-favorites-listing-shortcode-wrapper.yatco-compare-wrapper .font-bold {
    font-weight: 700;
}

.yatco-favorites-listing-shortcode-wrapper.yatco-compare-wrapper .text-\[11px\] {
    font-size: 11px;
}

.yatco-favorites-listing-shortcode-wrapper.yatco-compare-wrapper .pb-0 {
    padding-bottom: 0;
}

.yatco-favorites-listing-shortcode-wrapper.yatco-compare-wrapper .mb-0 {
    margin-bottom: 0;
}

.yatco-favorites-listing-shortcode-wrapper.yatco-compare-wrapper .text-primary\/60 {
    color: rgb(33 33 33 / 0.6);
}

.yatco-favorites-listing-shortcode-wrapper.yatco-compare-wrapper .yatco-inquiry-btn{
    border:none;
    background-color:rgb(33 150 243);
    margin-top:20px;
    width:100%;
}

.yatco-favorites-listing-shortcode-wrapper.yatco-compare-wrapper .transition-all {
    transition-property: all;
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
    transition-duration: 150ms;
}

.yatco-favorites-listing-shortcode-wrapper.yatco-compare-wrapper .yatco-inquiry-btn:hover {
    opacity: 0.9;
}

.yatco-favorites-listing-shortcode-wrapper.yatco-compare-wrapper .py-3 {
    padding-top: 0.75rem !important;
    padding-bottom: 0.75rem !important;
}

.yatco-favorites-listing-shortcode-wrapper .yce-featured-listings-detail-value{
    font-weight:bold;
}

.yatco-favorites-listing-shortcode-wrapper.yatco-compare-wrapper .vessel-column {
    position: relative;
}

@media (min-width:768px) {
    .yatco-favorites-listing-shortcode-wrapper .yce-remove-featured-yacht-icon {
        display: none; /* hidden initially only tablet and desktop*/
    }
}

@media (max-width:767px) {
    .yatco-favorites-listing-shortcode-wrapper .yce-mobile-hide {
        display: none;
    }
}

.yatco-favorites-listing-shortcode-wrapper .yce-remove-featured-yacht-icon {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 22px;
    height: 22px;
    cursor: pointer;
    z-index: 10;
}

/* Draw X */
.yatco-favorites-listing-shortcode-wrapper .yce-remove-featured-yacht-icon::before,
.yatco-favorites-listing-shortcode-wrapper .yce-remove-featured-yacht-icon::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 14px;
    height: 2px;
    background: #fff;
    transform-origin: center;
}

.yatco-favorites-listing-shortcode-wrapper .yce-remove-featured-yacht-icon::before {
    transform: translate(-50%, -50%) rotate(45deg);
}

.yatco-favorites-listing-shortcode-wrapper .yce-remove-featured-yacht-icon::after {
    transform: translate(-50%, -50%) rotate(-45deg);
}

/* Optional circle background */
.yatco-favorites-listing-shortcode-wrapper .yce-remove-featured-yacht-icon {
    background: rgba(0,0,0,0.6);
    border-radius: 50%;
}

/* Show on parent hover */
.yatco-favorites-listing-shortcode-wrapper .vessel-column {
    position: relative;
}

.yatco-favorites-listing-shortcode-wrapper .vessel-column:hover .yce-remove-featured-yacht-icon {
    display: block;
}

/* Skeleton Card Wrapper */
.yatco-favorites-listing-shortcode-wrapper .yatco-skeleton-card {
    min-width: 300px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

/* Shimmer Base */
.yatco-favorites-listing-shortcode-wrapper .yatco-skeleton {
    position: relative;
    overflow: hidden;
    background: #e5e7eb;
    border-radius: 6px;
}

/* Shimmer Animation */
.yatco-favorites-listing-shortcode-wrapper .yatco-skeleton::after {
    content: "";
    position: absolute;
    top: 0;
    left: -150%;
    width: 150%;
    height: 100%;
    background: linear-gradient(
        90deg,
        rgba(255,255,255,0) 0%,
        rgba(255,255,255,0.6) 50%,
        rgba(255,255,255,0) 100%
    );
    animation: yatco-shimmer 1.4s infinite;
}

@keyframes yatco-shimmer {
    100% {
        left: 150%;
    }
}

/* Image Skeleton */
.yatco-favorites-listing-shortcode-wrapper .yatco-skeleton-image {
    width: 100%;
    aspect-ratio: 3/2;
}

/* Heading Skeleton */
.yatco-favorites-listing-shortcode-wrapper .yatco-skeleton-title {
    height: 14px;
    width: 80%;
}

/* Subheading Skeleton */
.yatco-favorites-listing-shortcode-wrapper .yatco-skeleton-subtitle {
    height: 12px;
    width: 60%;
}

.yatco-favorites-listing-shortcode-wrapper .yatco-skeleton-button {
    height: 48px;
    width: 100%;
}

.yatco-favorites-listing-shortcode-wrapper .yce-featured-listings-vesselname{
    margin-top:30px;
}

.yatco-vessel-gallery.gallery-panel .yt-row.lgi:before{
    display:none;
}