/* ==========================================================================
   Yacht Booking - Frontend Styles
   ========================================================================== */

:root {
    --yacht-primary: #000C29;
    --yacht-radius: 0px;
    --yacht-shadow-overlay: rgba(0, 0, 0, 0.45);
    --yacht-shadow-text: 0 4px 12px rgba(0, 0, 0, 0.3);
    --yacht-white-alpha-20: rgba(255, 255, 255, 0.2);
    --yacht-black-alpha-60: rgba(0, 0, 0, 0.6);
}

/* ── Base Overrides ────────────────────────────────────────────────────── */
.yacht-plugin-canvas .text-primary {
    color: var(--yacht-primary);
}

.yacht-plugin-canvas .bg-primary {
    background-color: var(--yacht-primary);
}

.yacht-plugin-canvas .bg-primary-dark {
    background-color: var(--yacht-primary-dark);
}

.yacht-plugin-canvas .border-primary {
    border-color: var(--yacht-primary);
}

/* Force Material Icons to prevent theme override and text-rendering bugs */
.material-symbols-outlined {
    font-family: 'Material Symbols Outlined' !important;
    font-weight: normal;
    font-style: normal;
    font-size: 24px;
    line-height: 1.3;
    letter-spacing: normal;
    text-transform: none;
    display: inline-block;
    white-space: nowrap;
    word-wrap: normal;
    direction: ltr;
    -webkit-font-feature-settings: 'liga';
    -moz-font-feature-settings: 'liga';
    font-feature-settings: 'liga';
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ── Page Wrapper (Unified) ────────────────────────────────────────────── */
.yacht-page-wrapper {
    background: var(--yacht-bg);
    min-height: 100vh;
    font-family: var(--yacht-font-family);
    scroll-behavior: smooth;
    color: var(--yacht-text);
    margin: 0;
    padding: 0;
    /* Backgrounds and Heros should touch the header edge */
}

@media (max-width: 768px) {
    .yacht-page-wrapper {
        padding: 0;
    }
}

/* ── Plugin Canvas ─────────────────────────────────────────────────────── */
.yacht-plugin-canvas {
    margin: 0;
    padding: 0;
    width: 100%;
    max-width: 100%;
    overflow-x: clip;
    position: relative;
    box-sizing: border-box;
}

/* Core Elementor-compatible max-width container */
.yacht-container {
    max-width: 1440px;
    /* Standard Elementor wide boxed layout */
    margin: 0 auto;
    width: 100%;
    padding: 0;
    box-sizing: border-box;
}

@media (max-width: 768px) {
    .yacht-container {
        padding: 0 16px;
    }
}

/* Target ONLY the main content area strings (Astra, generic themes)
   Crucially, this uses .site-content as a parent to ensure we NEVER accidentally 
   target the site-header's container, preserving its padding. */
body.yacht-plugin-canvas .site-content,
body.yacht-plugin-canvas .site-content .ast-container,
body.yacht-plugin-canvas .site-content #primary,
body.yacht-plugin-canvas #main {
    max-width: 100% !important;
    width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
    display: block !important;
    float: none !important;
    box-sizing: border-box !important;
}

/* We have removed aggressive full-width overrides that were causing theme conflicts (e.g. stripping header padding).
   Instead, the plugin now natively hooks into the theme's page layout definitions in class-yacht-frontend.php */


.yacht-star-selector input[type="radio"] {
    position: absolute !important;
    height: 1px !important;
    width: 1px !important;
    overflow: hidden !important;
    clip: rect(1px, 1px, 1px, 1px) !important;
    white-space: nowrap !important;
    pointer-events: none !important;
}

.yacht-main-content {
    width: 100%;
}

/* ── Dynamic Grid Gallery (16:9 Aspect Ratio Focus)  ─────────────── */
.yacht-gallery-grid--dynamic {
    display: grid;
    gap: 12px;
    width: 100%;
    background: transparent;
}

.yacht-gallery-item {
    position: relative;
    overflow: hidden;
    width: 100%;
    /* Restore project default radius */
}

.yacht-gallery-img,
.yacht-gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    /* Restore project default radius */
}

/* ── Proper Premium Hero Rebuild (Cinematic 21:9) ───────────────────────── */
.yacht-single-hero {
    width: 100%;
    background: var(--yacht-black);
    overflow: hidden;
}

.yacht-single-hero__container {
    width: 100%;
    position: relative;
    aspect-ratio: 16 / 9;
}

@media (min-width: 1025px) {
    .yacht-single-hero__container {
        aspect-ratio: 21 / 9;
        max-height: 550px;
        min-height: 350px;
    }
}

.yacht-single-hero__wrapper {
    width: 100%;
    height: 100%;
    position: relative;
}

.yacht-single-hero__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.yacht-single-hero__link:hover .yacht-single-hero__image {
    transform: scale(1.03);
}

.yacht-single-hero__overlay {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at center, rgba(0, 0, 0, 0.2) 0%, rgba(0, 0, 0, 0.6) 100%);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 2rem;
    pointer-events: none;
}

.yacht-single-hero__content {
    max-width: 1200px;
    width: 100%;
    text-align: center;
    pointer-events: auto;
}

.yacht-single-hero__title {
    color: var(--yacht-white);
    margin: 0;
    text-shadow: var(--yacht-shadow-text);
    font-size: clamp(1.8rem, 8vw, 55px);
    font-weight: var(--yacht-weight-semibold);
    line-height: 1.1;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 0 1rem;
}

.yacht-hero-divider {
    width: 100px;
    height: 1.5px;
    background: var(--yacht-white);
    margin: 0.5rem auto;
    opacity: 0.9;
    box-shadow: var(--yacht-shadow-sm);
}

.yacht-single-hero__meta {
    color: var(--yacht-white);
    font-size: var(--yacht-font-xl);
    font-weight: var(--yacht-weight-medium);
    letter-spacing: 0.02em;
    text-shadow: var(--yacht-shadow-text);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

@media (max-width: 768px) {
    .yacht-hero-divider {
        margin: 0.3rem auto;
        width: 80px;
    }

    .yacht-single-hero__meta {
        font-size: var(--yacht-font-sm);
        gap: 10px;
    }
}

.yacht-hero-meta-sep {
    opacity: 0.4;
    font-weight: 300;
}

/* Breadcrumbs inside Hero */
.yacht-hero-breadcrumbs {
    position: absolute;
    top: 2rem;
    left: 2rem;
    z-index: 10;
    color: rgba(255, 255, 255, 0.8);
    font-size: 12px;
    font-weight: 500;
}

@media (min-width: 1024px) {
    .yacht-hero-breadcrumbs {
        top: 3rem;
        left: 4rem;
    }
}

.yacht-hero-breadcrumbs a {
    color: var(--yacht-white);
    text-decoration: none;
    opacity: 0.8;
}

.yacht-hero-breadcrumbs a:hover {
    opacity: 1;
}

/* Placeholder for missing images */
.yacht-single-hero__placeholder {
    width: 100%;
    height: 100%;
    background: var(--yacht-bg-dark);
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ───────────────────────────────────────────────────────────────────────── */
/* ── Global 16:9 Aspect Ratio Sync (Cards & Slider Only) ────────────────── */
/* ───────────────────────────────────────────────────────────────────────── */

/* Archive & Similar Cards */
.yacht-archive-card__image-container {
    aspect-ratio: 3/2 !important;
    overflow: hidden;
}

/* Gallery Slider Items */
.yacht-gallery-scroller .yacht-gallery-item img {
    aspect-ratio: 3/2 !important;
    object-fit: cover;
}

/* ── UI Cleanup ── */
.yacht-archive-card__btn::after {
    display: none !important;
    content: none !important;
}



.yacht-fav-btn {
    background: var(--yacht-accent);
    border: none;
    color: var(--yacht-white);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1.5rem;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: var(--yacht-font-sm);
    font-weight: var(--yacht-weight-semibold);
}

.yacht-fav-btn:hover {
    filter: brightness(1.1);
}

.yacht-fav-btn .material-symbols-outlined {
    font-size: 1.25rem;
}

/* View All Overlay */
.yacht-gallery-view-all {
    position: absolute;
    bottom: 1.5rem;
    right: 1.5rem;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(8px);
    color: var(--yacht-white);
    padding: 0.75rem 1.5rem;
    pointer-events: auto;
    border: 1px solid rgba(255, 255, 255, 0.2);
    text-decoration: none;
    transition: all 0.3s ease;
    z-index: 5;
}

.yacht-gallery-view-all:hover {
    background: rgba(0, 0, 0, 0.6);
    transform: translateY(-2px);
    border-color: rgba(255, 255, 255, 0.4);
}

/* ── Section Navigation ────────────────────────────────────────────────── */
.yacht-single-nav {
    background: var(--yacht-bg-dark);
    /* Special layout color, maybe define variable? */
    color: var(--yacht-white);
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    width: 100%;
}

.yacht-single-nav__inner {
    width: 100%;
    margin: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
    padding: 0 4rem;
}

.yacht-single-nav__links {
    display: flex;
    gap: 3rem;
    height: 100%;
}

.yacht-single-nav__links a {
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    display: flex;
    align-items: center;
    border-bottom: 3px solid transparent;
    transition: all 0.2s ease;
    height: 100%;
    font-size: var(--yacht-font-sm);
    font-weight: var(--yacht-weight-semibold);
}

.yacht-single-nav__links a.active,
.yacht-single-nav__links a:hover {
    color: var(--yacht-white);
    border-bottom-color: var(--yacht-white);
}

@media (max-width: 768px) {
    .yacht-single-nav__inner {
        height: 60px;
        padding: 0 1rem;
    }

    .yacht-single-nav__links {
        gap: 1.5rem;
    }

    .yacht-single-nav__links a {
        font-size: 0.7rem;
    }
}

/* Main Layout */
.yacht-single-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    width: 100%;
    margin: 0;
}

@media (min-width: 1024px) {
    .yacht-single-layout {
        grid-template-columns: 1fr 380px;
        align-items: start;
        /* Critical for sticky to work in grid */
    }

    .yacht-single-layout .yacht-single-sidebar {
        position: sticky;
        top: 64px;
        height: max-content;
        z-index: 90;
    }
}

/* ── Spec Cards ────────────────────────────────────────────────────────── */
.yacht-specs-section {
    margin-bottom: 2rem;
}

.yacht-specs-section__title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: var(--yacht-primary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    display: flex;
    align-items: center;
    gap: 12px;
}

.yacht-specs-section__title::before {
    content: '';
    width: 4px;
    height: 24px;
    background: var(--yacht-primary);
}

.yacht-single-specs {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin-bottom: 2.5rem;
}

@media (min-width: 640px) {
    .yacht-single-specs {
        grid-template-columns: repeat(4, 1fr);
    }
}

.yacht-spec-card {
    background: var(--yacht-surface);
    border: 1px solid var(--yacht-border-light);
    padding: 24px;
    display: flex;
    align-items: center;
    gap: 16px;
    transition: all 0.3s ease;
}

.yacht-spec-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--yacht-shadow);
    border-color: var(--yacht-border);
}

.yacht-spec-card__icon-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    background: var(--yacht-surface-soft);
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.yacht-spec-card:hover .yacht-spec-card__icon-wrap {
    background: var(--yacht-primary);
    box-shadow: 0 4px 12px rgba(26, 46, 74, 0.15);
}

.yacht-spec-card:hover .yacht-spec-card__icon {
    color: var(--yacht-white);
}

.yacht-spec-card__icon {
    font-size: 20px !important;
    color: var(--yacht-primary);
}

.yacht-spec-card__info {
    display: flex;
    flex-direction: column;
    min-width: 0;
    gap: 2px;
}

.yacht-spec-card__label {
    color: var(--yacht-text-muted);
    font-size: var(--yacht-font-sm);
    font-weight: var(--yacht-weight-medium);
    margin: 0;
    line-height: var(--yacht-leading-tight);
}

.yacht-spec-card__value {
    color: var(--yacht-text);
    font-size: var(--yacht-font-base);
    font-weight: var(--yacht-weight-semibold);
    margin: 0;
    line-height: var(--yacht-leading-tight);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ── Video Section ─────────────────────────────────────────────────────── */
.yacht-video-container {
    position: relative;
    padding-bottom: 56.25%;
    /* 16:9 Ratio */
    height: 0;
    overflow: hidden;
    background: var(--yacht-black);
    box-shadow: var(--yacht-shadow-md);
    margin-top: 1rem;
}

.yacht-video-container iframe,
.yacht-video-container video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.yacht-self-video {
    object-fit: cover;
}

/* ── Location Section ──────────────────────────────────────────────────── */
.yacht-location-wrap {
    display: flex;
    flex-direction: column;
    gap: 0;
    overflow: hidden;
    border: 1px solid var(--yacht-border-light);
    box-shadow: var(--yacht-shadow-md);
}

.yacht-single-map {
    height: 350px;
    width: 100%;
    z-index: 10;
    transition: opacity 0.3s ease;
}

@media (min-width: 768px) {
    .yacht-single-map {
        height: 400px;
    }
}

.yacht-location-content {
    padding: 24px;
    background: var(--yacht-white);
    border-top: 1px solid var(--yacht-border-light);
}

.yacht-location-details {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

@media (min-width: 640px) {
    .yacht-location-details {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
    }
}

.yacht-location-address {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    color: var(--yacht-text);
    font-size: var(--yacht-font-base);
    line-height: var(--yacht-leading-normal);
    flex: 1;
}

.yacht-location-address .material-symbols-outlined {
    color: var(--yacht-primary);
    font-size: 24px;
    margin-top: -2px;
}

.yacht-btn-directions {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--yacht-primary);
    color: var(--yacht-white);
    padding: 12px 24px;
    text-decoration: none;
    font-weight: var(--yacht-weight-semibold);
    font-size: var(--yacht-font-sm);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 12px var(--yacht-primary-light);
    white-space: nowrap;
    width: fit-content;
}

.yacht-btn-directions:hover {
    background: var(--yacht-primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px var(--yacht-primary-light);
    color: var(--yacht-white);
}

.yacht-btn-directions .material-symbols-outlined {
    font-size: 20px;
}

/* ── Content Sections ──────────────────────────────────────────────────── */
.yacht-single-main {
    min-width: 0;
}

.yacht-single-section {
    margin-bottom: 2.5rem;
    padding-bottom: 2.5rem;
    border-bottom: 1px solid var(--yacht-border-light);
}

.yacht-single-section:last-child {
    border-bottom: none;
}

.yacht-single-section__title {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.yacht-section-card {
    background: var(--yacht-surface);
    border: 1px solid var(--yacht-border);
    padding: 32px;
    box-shadow: var(--yacht-shadow);
    margin-bottom: 32px;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.yacht-section-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
}

.yacht-section-card__header {
    display: flex;
    align-items: center;
    gap: 16px;
    /* Increased gap slightly for breathing room */
    margin-bottom: 24px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--yacht-border-light);
}

.yacht-section-card__icon {
    font-family: 'Material Symbols Outlined' !important;
    font-size: 28px;
    /* Slightly larger icons for better presence */
    color: var(--yacht-primary);
    font-weight: normal;
    font-style: normal;
    line-height: 1;
    display: flex;
    /* Flex icons for internal centering */
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    white-space: nowrap;
    -webkit-font-smoothing: antialiased;
    font-feature-settings: 'liga';
}

/* Higher specificity to override theme/WooCommerce h2 defaults */
.yacht-plugin-canvas .yacht-section-card__title {
    font-size: 1.6rem;
    font-weight: var(--yacht-weight-bold);
    margin: 0;
    padding: 0;
    color: var(--yacht-text);
    line-height: var(--yacht-leading-tight);
    display: block;
}

.yacht-single-prose {
    color: var(--yacht-text-muted);
    font-size: var(--yacht-font-base);
    line-height: var(--yacht-leading-relaxed);
}

.yacht-single-prose p {
    margin: 0 0 1.25rem;
}


/* Prevent collapsing header at block start */
.yacht-single-prose> :first-child {
    margin-top: 0 !important;
}

.yacht-single-prose p:last-child {
    margin-bottom: 0;
}

/* ── Item Chips (Facilities, etc.) ─────────────────────────────────────── */
/* ── Feature Grid (Upgraded from Chips) ────────────────────────────────── */
.yacht-feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 16px;
}

.yacht-stat-card {
    position: relative;
    padding: 24px;
    color: var(--yacht-white) !important;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    gap: 16px;
    min-height: 140px;
    box-shadow: var(--yacht-shadow-md);
    transition: transform 0.2s, box-shadow 0.2s;
    border: none !important;
    border-radius: var(--yacht-radius);
}

.yacht-feature-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    background: var(--yacht-bg);
    transition: all 0.2s ease;
    border: 1px solid transparent;
    border-radius: var(--yacht-radius);
}

.yacht-feature-item:hover {
    background: var(--yacht-surface);
    border-color: var(--yacht-border-light);
    transform: translateY(-2px);
    box-shadow: var(--yacht-shadow-sm);
}

.yacht-feature-item__icon {
    width: 40px;
    height: 40px;
    background: var(--yacht-white);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--yacht-primary);
    font-size: 20px;
    box-shadow: var(--yacht-shadow-sm);
    border-radius: var(--yacht-radius);
}

.yacht-feature-item__label {
    font-size: var(--yacht-font-sm);
    font-weight: var(--yacht-weight-semibold);
    color: var(--yacht-text);
}

/* ── Map ───────────────────────────────────────────────────────────────── */
/* Consolidated into .yacht-location-wrap .yacht-single-map above */

/* ── Sidebar Cards (Robust Component) ─────────────────────────────────── */
.yacht-sidebar-card {
    background: var(--yacht-surface);
    border: 1px solid var(--yacht-border);
    padding: 32px;
    box-shadow: var(--yacht-shadow);
    margin-bottom: 24px;
    position: relative;
    overflow: hidden;
    display: block;
    border-radius: var(--yacht-radius);
}

.yacht-sidebar-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--yacht-shadow-lg);
    transition: transform 0.3s ease;
}

.yacht-sidebar-card__header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 24px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--yacht-border-light);
}

.yacht-sidebar-card__icon {
    font-family: 'Material Symbols Outlined' !important;
    font-size: 24px;
    color: var(--yacht-primary);
    font-weight: normal;
    font-style: normal;
    line-height: 1.3;
    display: inline-block;
    white-space: nowrap;
    -webkit-font-smoothing: antialiased;
    font-feature-settings: 'liga';
}

.yacht-sidebar-card__title {
    margin: 0;
    font-size: var(--yacht-font-lg);
    font-weight: var(--yacht-weight-bold);
    color: var(--yacht-text);
}

/* Pricing Card Special Polish */
.yacht-pricing-card {
    border-top: none;
}

.yacht-rates-grid {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.yacht-rate-box {
    background: var(--yacht-surface-soft);
    border: 1px solid var(--yacht-border-light);
    padding: 16px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s ease;
    border-radius: var(--yacht-radius);
}

.yacht-rate-box:hover {
    background: var(--yacht-surface);
    border-color: var(--yacht-border);
    transform: translateY(-2px);
    box-shadow: var(--yacht-shadow-sm);
}

.yacht-quick-action:hover {
    border-color: var(--yacht-primary);
    transform: translateX(4px);
    box-shadow: var(--yacht-shadow-sm);
    border-radius: var(--yacht-radius);
}

.yacht-rate-box__label {
    font-size: var(--yacht-font-sm);
    color: var(--yacht-text-muted);
    font-weight: 500;
}

.yacht-rate-box__price {
    display: flex;
    align-items: baseline;
    gap: 6px;
}

.yacht-rate-box__currency {
    font-size: var(--yacht-font-sm);
    color: var(--yacht-text-light);
    font-weight: 500;
}

.yacht-rate-box__amount {
    font-size: var(--yacht-font-xl);
    color: var(--yacht-text-strong);
    font-weight: 600;
    letter-spacing: -0.5px;
}

/* Form Polish */
.yacht-single-form__input {
    background: var(--yacht-bg);
    border: 1px solid var(--yacht-border);
    padding: 12px 16px;
    width: 100%;
    margin-top: 4px;
}

/* Submit button consolidated below in body.yacht-plugin-canvas */

/* Consultant Card */
.yacht-consultant-card__profile {
    display: flex;
    align-items: center;
    gap: 20px;
}

/* Avatar consolidated below in .yacht-single-team__avatar */

/* Availability Card */
.yacht-availability-card {
    background: var(--yacht-surface);
}

/* Consultant Card */
.yacht-consultant-card {
    /* Inherits standard yacht-sidebar-card margin-bottom */
}

.yacht-consultant-card .yacht-sidebar-card__header {
    margin-bottom: 1rem;
}

/* ───────────────────────────────────────────────────────────────────────── */

/* ── Sidebar Pricing Sub-styles ───────────────────────────────────────── */
.yacht-pricing-card__content {
    display: flex;
    flex-direction: column;
}

/* ── Inquiry Form ──────────────────────────────────────────────────────── */
.yacht-single-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    /* Increased for better row spacing */
}

.yacht-single-form__row {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    /* Match parent gap */
}

@media (min-width: 480px) {
    .yacht-single-form__row {
        display: grid;
        grid-template-columns: 1fr 1fr;
    }
}

.yacht-single-form__field {
    display: flex;
    flex-direction: column;
    gap: 8px;
    /* Standard label to input gap */
}

.yacht-single-form__label {
    color: var(--yacht-text-muted);
    font-size: var(--yacht-font-xs);
    font-weight: var(--yacht-weight-semibold);
    text-transform: uppercase;
    letter-spacing: 0.02em;
}

.yacht-single-form__input {
    width: 100%;
    height: var(--yacht-input-h, 46px);
    padding: 0 16px;
    border: 1px solid var(--yacht-border);
    background: var(--yacht-bg);
    font-size: var(--yacht-font-sm);
    color: var(--yacht-text);
    font-family: inherit;
    transition: var(--yacht-transition);
    box-sizing: border-box;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.01);
    -webkit-appearance: none;
    appearance: none;
    line-height: normal;
}

.yacht-single-form__input:focus {
    outline: none;
    border-color: var(--yacht-primary);
    box-shadow: 0 0 0 3px var(--yacht-primary-light);
    background: var(--yacht-surface);
}

body.yacht-plugin-canvas .yacht-single-form__submit {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    height: var(--yacht-input-h, 46px);
    padding: 0 24px;
    background: var(--yacht-primary);
    color: var(--yacht-white);
    border: 1px solid transparent;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(26, 46, 74, 0.15);
    transition: var(--yacht-transition);
    margin-top: 1rem;
    font-size: var(--yacht-font-sm);
    font-weight: var(--yacht-weight-semibold);
    white-space: nowrap;
    outline: none;
    line-height: normal;
}

body.yacht-plugin-canvas .yacht-single-form__submit:hover {
    background: var(--yacht-primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(26, 46, 74, 0.2);
}

body.yacht-plugin-canvas .yacht-single-form__submit:active {
    transform: translateY(0);
    box-shadow: 0 2px 4px rgba(26, 46, 74, 0.1);
}

/* ───────────────────────────────────────────────────────────────────────── */

.yacht-single-team__avatar {
    width: 4rem;
    height: 4rem;
    background: var(--yacht-primary-light);
    color: var(--yacht-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 1.5rem;
    font-weight: 700;
    overflow: hidden;
}

.yacht-single-team__avatar-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.yacht-single-team__info {
    flex: 1;
    min-width: 0;
}

.yacht-single-team__name {
    color: var(--yacht-text-strong);
    font-weight: 700;
    margin: 0;
    font-size: 1.1rem;
}

.yacht-single-team__job {
    font-size: var(--yacht-font-xs);
    color: var(--yacht-text-muted);
    margin: 0.15rem 0 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.yacht-consultant-card__profile {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 24px;
}

.yacht-single-team__details {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.yacht-single-team__detail-link {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: var(--yacht-text);
    transition: all 0.2s ease;
}

.yacht-single-team__detail-link:hover {
    color: var(--yacht-primary);
}

.yacht-single-team__icon {
    width: 32px;
    height: 32px;
    background: var(--yacht-surface-soft);
    border: 1px solid var(--yacht-border-light);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: var(--yacht-primary);
    transition: all 0.2s ease;
}

.yacht-single-team__detail-link:hover .yacht-single-team__icon {
    background: var(--yacht-primary);
    color: var(--yacht-white);
    border-color: var(--yacht-primary);
}

.yacht-single-team__icon .material-symbols-outlined {
    font-size: 1.1rem;
}

.yacht-single-team__detail-text {
    font-size: var(--yacht-font-sm);
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}


/* ── Elementor Flex Container Fix ── */
/* Prevents Elementor's flex containers from collapsing the widget height. */
/* Targets the full chain: e-con > elementor-widget > widget-container > our content */

/* The widget element itself: prevent flex shrinking */
.elementor-widget-yacht_grid,
.elementor-widget-experience_grid,
.elementor-widget-water_sport_grid {
    flex: 0 0 auto !important;
    width: 100% !important;
    height: auto !important;
    min-height: 0 !important;
    overflow: visible !important;
}

/* The widget's inner container */
.elementor-widget-yacht_grid>.elementor-widget-container,
.elementor-widget-experience_grid>.elementor-widget-container,
.elementor-widget-water_sport_grid>.elementor-widget-container {
    height: auto !important;
    overflow: visible !important;
    display: block !important;
    width: 100% !important;
}

/* ── Elementor Integration Container ── */
.yacht-elementor-container {
    display: block;
    width: 100%;
    position: relative;
    box-sizing: border-box;
}

/* ── Native Component-Based Archive ─────────────────────────────────────── */
.yacht-archive-layout {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    background-color: var(--yacht-bg);
}

/* ── Legacy Archive Spacing (Maintained for site stability) ──────────────── */
.yacht-archive-wrapper,
.yacht-single-layout {
    padding: 60px 0 60px;
}

/* ── New Independent Grid Widget Spacing (Managed by Elementor) ──────────── */
.yacht-grid-wrapper {
    padding: 0;
}

/* Remove 60px padding specifically inside Elementor Widgets */
.yacht-elementor-archive-widget .yacht-archive-wrapper {
    padding: 0;
}

@media (max-width: 768px) {

    /* ── Legacy Mobile Spacing (Restored for stability) ── */
    .yacht-archive-wrapper,
    .yacht-single-layout {
        padding: 40px 0 60px;
    }

    /* ── New Independent Grid Mobile Spacing ── */
    .yacht-grid-wrapper {
        padding: 0;
    }
}

/* ── Archive wrapper: always grid for legacy archive pages ── */
.yacht-archive-wrapper {
    width: 100%;
    display: grid;
    grid-template-columns: 320px 1fr;
    gap: 40px;
    align-items: start;
    box-sizing: border-box;
}

/* ── Grid widget wrapper: always grid, columns depend on sidebar ── */
.yacht-grid-wrapper {
    width: 100%;
    display: grid;
    grid-template-columns: 1fr;
    box-sizing: border-box;
}

.yacht-grid-wrapper:not(.yacht-grid-wrapper--no-sidebar) {
    grid-template-columns: 320px 1fr;
    gap: 40px;
    align-items: start;
}

.yacht-archive-results,
.yacht-grid-results {
    width: 100%;
    display: block;
    position: relative;
    box-sizing: border-box;
}

.yacht-archive-wrapper.yacht-archive-wrapper--no-sidebar {
    grid-template-columns: 1fr;
}

/* yacht-grid-wrapper--no-sidebar is already display:block, no grid needed */

@media (max-width: 1024px) {

    .yacht-archive-wrapper,
    .yacht-grid-wrapper:not(.yacht-grid-wrapper--no-sidebar) {
        display: flex !important;
        flex-direction: column;
        gap: 32px;
    }
}

@media (max-width: 768px) {
    .yacht-archive-wrapper {
        margin-top: 0;
    }
}

/* ── Archive Hero Component ────────────────────────────────────────────── */
.yacht-archive-hero {
    position: relative;
    height: 55vh;
    min-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
    background-color: var(--yacht-primary-dark);
    /* Parallax Base Rules */
    background-attachment: fixed;
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
}

.yacht-archive-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, var(--yacht-primary-dark) 0%, var(--yacht-primary) 100%);
    opacity: 0.85;
    /* Adjust opacity as needed for image visibility */
    z-index: 1;
}

.yacht-archive-hero__bg {
    /* Deprecated in favor of inline bg image and pseudo-element overlay, left for fallback if needed */
    display: none;
}

.yacht-archive-hero__content {
    position: relative;
    z-index: 2;
    padding: 0 24px;
    max-width: 800px;
    color: var(--yacht-white);
}

.yacht-archive-hero__eyebrow {
    display: block;
    font-size: var(--yacht-font-sm);
    font-weight: var(--yacht-weight-bold);
    text-transform: uppercase;
    letter-spacing: 4px;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 16px;
}

.yacht-archive-hero__title {
    font-size: clamp(40px, 5vw, 64px);
    font-weight: var(--yacht-weight-bold);
    line-height: 1.1;
    margin: 0 0 24px 0;
    color: var(--yacht-white);
}

.yacht-archive-hero__subtitle {
    font-size: var(--yacht-font-lg);
    line-height: var(--yacht-leading-relaxed);
    color: rgba(255, 255, 255, 0.85);
    margin: 0 auto;
    max-width: 600px;
}

/* ── Archive Sidebar & Filter Panel Component ──────────────────────────── */
.yacht-archive-sidebar {
    position: relative;
}

@media (min-width: 1025px) {
    .yacht-archive-sidebar {
        position: sticky;
        top: 64px;
        height: max-content;
    }
}

.yacht-filter-panel {
    background: var(--yacht-surface);
    padding: 32px;
    box-shadow: var(--yacht-shadow-lg);
    border: 1px solid var(--yacht-border);
}

.yacht-filter-panel__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--yacht-border-light);
}

.yacht-filter-panel__title {
    margin: 0;
    font-size: var(--yacht-font-lg);
    font-weight: var(--yacht-weight-bold);
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--yacht-text);
}

.yacht-filter-clear {
    font-size: var(--yacht-font-xs);
    font-weight: var(--yacht-weight-bold);
    color: var(--yacht-text-muted);
    text-transform: uppercase;
    text-decoration: none;
    letter-spacing: 1px;
    transition: color 0.2s;
}

.yacht-filter-clear:hover {
    color: var(--yacht-primary);
}

.yacht-filter-form {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.yacht-filter-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.yacht-filter-label {
    font-size: var(--yacht-font-xs);
    font-weight: var(--yacht-weight-bold);
    color: var(--yacht-text-strong);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.yacht-input-group {
    position: relative;
    display: flex;
    align-items: center;
}

.yacht-input-group .yacht-input {
    padding-left: 44px;
    border-radius: var(--yacht-radius);
}

.yacht-input-icon {
    position: absolute;
    left: 14px;
    color: var(--yacht-text-muted);
    font-size: 20px;
    pointer-events: none;
}

.yacht-filter-row {
    display: flex;
    align-items: center;
    gap: 12px;
}

.yacht-filter-divider {
    color: var(--yacht-text-muted);
    font-weight: var(--yacht-weight-bold);
}

.yacht-filter-actions {
    margin-top: 8px;
}

/* ── Archive Results Header Component ──────────────────────────────────── */
.yacht-results-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 32px;
    background: var(--yacht-surface);
    padding: 16px 24px;
    box-shadow: var(--yacht-shadow-sm);
    border: 1px solid var(--yacht-border);
}

@media (max-width: 640px) {
    .yacht-results-header {
        flex-direction: column;
        gap: 16px;
        align-items: flex-start;
    }
}

.yacht-results-count {
    font-size: var(--yacht-font-sm);
    color: var(--yacht-text-muted);
}

.yacht-results-count strong {
    color: var(--yacht-text-strong);
}

.yacht-results-sort {
    display: flex;
    align-items: center;
    gap: 12px;
}

.yacht-results-sort .material-symbols-outlined {
    color: var(--yacht-text-muted);
}

.yacht-sort-select {
    border: none;
    background: transparent;
    padding: 0 24px 0 0;
    height: auto;
    font-weight: var(--yacht-weight-bold);
    color: var(--yacht-text-strong);
    cursor: pointer;
    box-shadow: none !important;
}

.yacht-sort-select:focus {
    background: transparent;
    outline: none;
}

/* ── Archive Yacht Grid ────────────────────────────────────────────────── */
.yacht-yacht-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    grid-auto-rows: min-content;
    gap: 32px;
    margin-bottom: 32px;
    width: 100%;
}

@media (max-width: 768px) {
    .yacht-yacht-grid {
        grid-template-columns: 1fr !important;
        gap: 24px;
        margin-bottom: 24px;
    }
}

/* ── Listing Card Component ────────────────────────────────────────────── */
.yacht-archive-card {
    background: var(--yacht-surface);
    border: 1px solid var(--yacht-border-light);
    display: flex;
    flex-direction: column;
    min-height: 480px;
    /* Base minimum for structural integrity */
    height: auto;
    padding: 0 !important;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
}

.yacht-archive-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.12);
    border-color: var(--yacht-primary-light);
}

.yacht-archive-card--clickable {
    cursor: pointer;
}

.yacht-archive-card__image-container {
    position: relative;
    width: 100%;
    aspect-ratio: 3/2;
    overflow: hidden;
    background: var(--yacht-surface-soft);
    border-radius: 0 !important;
}

.yacht-archive-card__image-link {
    display: block;
    width: 100%;
    height: 100%;
    position: relative;
}

.yacht-archive-card__image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.yacht-archive-card:hover .yacht-archive-card__image {
    transform: scale(1.08);
}

/* WhatsApp Floating Icon */
.yacht-archive-card__wa-link {
    position: absolute;
    bottom: 12px;
    right: 12px;
    width: 36px;
    height: 36px;
    background: var(--yacht-white);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--yacht-archive-text-white);
    /* Reference variable if defined, or white */
    box-shadow: var(--yacht-shadow-lg);
    z-index: 10;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
    border-radius: var(--yacht-radius);
}

.yacht-archive-card__wa-link:hover {
    transform: scale(1.1) rotate(5deg);
    background: var(--yacht-success);
    color: var(--yacht-white);
    box-shadow: 0 6px 16px rgba(37, 211, 102, 0.3);
}

.yacht-archive-card__wa-icon {
    width: 20px;
    height: 20px;
    display: block;
}

.yacht-archive-card__image-placeholder {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--yacht-border-strong);
}

.yacht-archive-card__image-placeholder .material-symbols-outlined {
    font-size: 64px;
    opacity: 0.5;
}

.yacht-archive-card__badges {
    position: absolute;
    top: 16px;
    right: 16px;
    z-index: 2;
}

.yacht-badge {
    background: var(--yacht-surface);
    color: var(--yacht-primary);
    padding: 6px 14px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    border: 1px solid var(--yacht-border-light);
}

/* Moved to top left, changed to circular white icon */
.yacht-archive-card__favorite {
    position: absolute;
    top: 16px;
    left: 16px;
    width: 44px;
    height: 44px;
    padding: 0;
    margin: 0;
    background: var(--yacht-surface);
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--yacht-primary);
    cursor: default;
    z-index: 2;
    line-height: 1;
}

.yacht-archive-card__favorite .material-symbols-outlined {
    font-size: 24px;
}

.yacht-archive-card__body {
    padding: 16px 20px;
    display: flex;
    flex-direction: column;
    flex: 1;
    text-align: center;
}

.yacht-archive-card__header {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    margin-bottom: 8px;
}

.yacht-archive-card__title {
    margin: 0;
    font-size: 22px;
    font-weight: 600;
    line-height: 1.2;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.yacht-archive-card__title a {
    color: var(--yacht-primary);
    text-decoration: none;
    transition: color 0.2s;
}

.yacht-archive-card__title a:hover {
    color: var(--yacht-primary);
}

.yacht-archive-card__subtitle {
    font-size: 14px;
    color: var(--yacht-text-muted);
    letter-spacing: 0.5px;
}

.yacht-archive-card__specs-flat {
    font-size: 14px;
    font-weight: 500;
    color: var(--yacht-primary);
    margin-bottom: 4px;
    letter-spacing: 1px;
}

.yacht-archive-card__pricing-flat {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--yacht-primary);
    margin-bottom: 4px;
}

.yacht-archive-card__duration-min {
    font-size: 0.85rem;
    color: #64748b;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.yacht-archive-card__duration-min::before {
    content: "schedule";
    font-family: 'Material Symbols Outlined';
    font-size: 1.1rem;
}

.yacht-archive-card__footer--split {
    margin-top: auto;
    display: flex;
    gap: 8px;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding-top: 15px;
    border-top: 1px solid var(--yacht-border-light);
}

@media (max-width: 768px) {
    .yacht-archive-card__footer--split {
        flex-direction: row;
        gap: 8px;
        justify-content: center;
    }

    .yacht-archive-card__footer--split .yacht-archive-card__btn {
        width: auto;
        padding: 8px 12px;
        font-size: 13px;
        flex: 1;
    }
}

.yacht-archive-card .yacht-archive-card__btn {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    flex: 1;
    padding: 12px 16px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    border-radius: 0;
    background: #ffffff;
    border: 1px solid var(--yacht-primary);
    color: var(--yacht-primary) !important;
}

/* Primary & Secondary both share the same outline look for cards */
.yacht-archive-card__btn--primary,
.yacht-archive-card__btn--secondary {
    background: #ffffff;
    color: var(--yacht-primary) !important;
    border: 1px solid var(--yacht-primary);
}

/* Hover state: Solid background with white text */
.yacht-archive-card .yacht-archive-card__btn:hover {
    background: var(--yacht-primary);
    border-color: var(--yacht-primary);
    color: #ffffff !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    border-radius: 0;
}

/* Specific classes maintained for compatibility but styles inherited */

/* ── Archive Empty State & Pagination ──────────────────────────────────── */
.yacht-empty-state {
    grid-column: 1 / -1;
    text-align: center;
    padding: 80px 24px;
    background: var(--yacht-surface);
    border: 1px dashed var(--yacht-border-strong);
}

.yacht-empty-icon {
    font-size: 64px;
    color: var(--yacht-border-strong);
    margin-bottom: 16px;
}

.yacht-empty-title {
    font-size: var(--yacht-font-2xl);
    font-weight: var(--yacht-weight-bold);
    color: var(--yacht-text-strong);
    margin: 0 0 12px 0;
}

.yacht-empty-desc {
    font-size: var(--yacht-font-base);
    color: var(--yacht-text-muted);
    max-width: 400px;
    margin: 0 auto 24px;
}






/* ── Footer ────────────────────────────────────────────────────────────── */
.yacht-site-footer {
    background: var(--yacht-bg-dark);
    color: rgba(255, 255, 255, 0.5);
    padding: 4rem 2rem;
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.yacht-site-footer p {
    font-size: var(--yacht-font-sm);
    margin: 0;
}

/* ── Feature Grid ────────────────────────────────────────────────────────── */
.yacht-feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.25rem;
    margin-top: 1.5rem;
}

.yacht-feature-item {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    padding: 1.25rem;
    background: var(--yacht-surface-soft);
    border: 1px solid var(--yacht-border-light);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.yacht-feature-item:hover {
    background: var(--yacht-surface);
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
    border-color: var(--yacht-primary);
}

.yacht-feature-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.75rem;
    height: 2.75rem;
    background: var(--yacht-surface);
    color: var(--yacht-primary);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.yacht-feature-item:hover .yacht-feature-icon {
    background: var(--yacht-primary);
    color: var(--yacht-white);
    transform: rotate(5deg) scale(1.05);
}

.yacht-feature-icon .material-symbols-outlined {
    font-size: 1.5rem;
    font-variation-settings: 'FILL' 1, 'wght' 400;
}

.yacht-feature-label {
    font-size: var(--yacht-font-base);
    font-weight: var(--yacht-weight-medium);
    color: var(--yacht-text);
    line-height: 1.4;
}

/* ── Premium Gallery Grid Preview (Flexible Natural Heights) ────────── */
.yacht-gallery-grid-wrap {
    background: var(--yacht-surface);
    border: 1px solid var(--yacht-border-light);
    padding: 32px;
    margin: 32px 0;
    box-shadow: var(--yacht-shadow-sm);
}

.yacht-gallery-grid-preview {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    /* Set to user-specified height for perfect vertical scale */
    grid-auto-rows: 270px;
    gap: 15px;
}

.yacht-gallery-grid-item {
    position: relative;
    overflow: hidden;
    background: var(--yacht-black);
    /* Removed patched heights: Items now naturally fill the grid rows defined above */
}

/* Staggered Span Alignment */
.yacht-gallery-grid-item:nth-child(1),
.yacht-gallery-grid-item:nth-child(5) {
    grid-column: span 2;
}

@media (max-width: 1024px) {
    .yacht-gallery-grid-wrap {
        padding: 24px;
        margin: 24px 0;
    }

    .yacht-gallery-grid-preview {
        grid-template-columns: repeat(2, 1fr);
        grid-auto-rows: 200px;
        gap: 12px;
    }

    .yacht-gallery-grid-item {
        display: block;
        /* Ensure visibility */
    }
}

@media (max-width: 768px) {
    .yacht-gallery-grid-wrap {
        padding: 20px;
        margin: 20px 0;
    }

    .yacht-gallery-grid-preview {
        grid-auto-rows: 180px;
        gap: 10px;
    }

    /* Reset previous spans */
    .yacht-gallery-grid-item {
        grid-column: span 1 !important;
    }

    /* 1-2-1-2 repeating pattern */
    /* Pattern: 1 full (span 2), 2 half (span 1 each) = Repeat every 3 items */
    .yacht-gallery-grid-item:nth-child(3n+1) {
        grid-column: span 2 !important;
    }
}

.yacht-gallery-grid-link {
    display: block;
    width: 100%;
    height: 100%;
    position: relative;
}

.yacht-gallery-grid-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.6s ease;
}

.yacht-gallery-grid-item:hover img {
    transform: scale(1.05);
}

/* "DINA" First Image Overlay Style */
.yacht-gallery-title-overlay {
    position: absolute;
    top: 25px;
    width: 100%;
    text-align: center;
    color: var(--yacht-white);
    display: flex;
    flex-direction: column;
    align-items: center;
    pointer-events: none;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
    z-index: 2;
}

.yacht-gallery-title-overlay__name {
    font-size: clamp(1.2rem, 2.5vw, 2.2rem);
    font-weight: 700;
    letter-spacing: 3px;
    text-transform: uppercase;
    border-bottom: 2px solid var(--yacht-white);
    padding-bottom: 5px;
    margin-bottom: 5px;
}

.yacht-gallery-title-overlay__size {
    font-size: clamp(0.9rem, 1.2vw, 1.2rem);
    font-weight: 500;
    letter-spacing: 2px;
}

/* "GALLERY +X" Exact Reference Styling */
.yacht-gallery-grid-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 15%;
}

.yacht-gallery-grid-overlay__content {
    border: 1px solid rgba(255, 255, 255, 0.6);
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.yacht-gallery-grid-overlay__text {
    color: var(--yacht-white);
    display: flex;
    flex-direction: column;
    gap: 10px;
    border-radius: var(--yacht-radius);
}

.yacht-gallery-grid-overlay__label {
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 2px;
}

.yacht-gallery-grid-overlay__count {
    font-size: 32px;
    font-weight: 300;
    line-height: 1;
}



/* ── Sidebar Video Card ────────────────────────────────────────────────── */

.yacht-video-container {
    position: relative;
    width: 100%;
    aspect-ratio: 16/9;
    background: var(--yacht-black);
    overflow: hidden;
}

.yacht-video-container iframe,
.yacht-video-container video {
    width: 100%;
    height: 100%;
    display: block;
}

.yacht-sidebar-card.yacht-video-card {
    margin-bottom: 24px;
}

/* ──────────────── Single Yacht Mobile Optimizations ──────────────── */
@media (max-width: 768px) {



    .yacht-gallery-main {
        height: 60vh;
        min-height: 350px;
    }

    /* 2. Reduce Left/Right Gap for Main Content */
    .yacht-single-page {
        padding-left: 0 !important;
        padding-right: 0 !important;
    }

    .yacht-single-layout {
        grid-template-columns: 1fr;
    }

    /* 3. Reduce Gap inside Cards */
    .yacht-section-card {
        padding: 20px !important;
        margin-bottom: 24px;
    }

    .yacht-single-specs {
        grid-template-columns: 1fr 1fr;
        gap: 12px;
        margin-bottom: 24px;
    }

    .yacht-spec-card {
        padding: 16px;
    }

    /* 4. Reduce Gap inside Sidebar Cards */
    .yacht-sidebar-card {
        padding: 20px !important;
    }
}

/* ── Reviews ────────────────────────────────────────────────────────── */
/* ── Redesigned Review System (Premium) ────────────────────────── */
.yacht-reviews-container {
    padding-top: 8px;
}

.yacht-reviews-summary-pro {
    display: grid;
    grid-template-columns: 320px 1fr;
    gap: 48px;
    background: var(--yacht-surface);
    padding: 40px;
    margin-bottom: 48px;
    border: 1px solid var(--yacht-border-light);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03);
    align-items: center;
}

/* What's Included Grid */
.yacht-included-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 24px;
}

.yacht-included-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px;
    background: var(--yacht-surface-soft);
    border: 1px solid var(--yacht-border-light);
    transition: var(--yacht-transition);
}

.yacht-included-item:hover {
    transform: translateY(-3px);
    background: var(--yacht-white);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
    border-color: var(--yacht-border-strong);
}

.yacht-included-icon {
    width: 42px;
    height: 42px;
    background: var(--yacht-white);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.04);
}

.yacht-included-icon .material-symbols-outlined {
    font-size: 20px;
    color: var(--yacht-primary);
    font-variation-settings: 'FILL' 0, 'wght' 400;
}

.yacht-included-label {
    font-size: var(--yacht-font-sm);
    font-weight: var(--yacht-weight-medium);
    color: var(--yacht-text);
    line-height: var(--yacht-leading-snug);
}

@media (max-width: 992px) {
    .yacht-included-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    .yacht-included-grid {
        grid-template-columns: 1fr;
    }

    .yacht-included-item {
        padding: 14px;
    }
}

/* Premium Review Form Card - Total Aesthetic Overhaul */
.yacht-review-form-premium {
    display: none;
    position: relative;
    z-index: 20;
    margin-top: 24px;
    background: var(--yacht-surface);
    border: 2px dotted var(--yacht-border-strong);
    padding: 32px;
    margin-bottom: 40px;
    transition: all 0.4s cubic-bezier(0.19, 1, 0.22, 1);
    box-shadow: var(--yacht-shadow);
}

.yacht-form-pro {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.yacht-form-pro__group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.yacht-form-pro__actions {
    display: flex;
    gap: 16px;
    justify-content: flex-end;
    align-items: center;
    margin-top: 16px;
}

.yacht-form-pro .yacht-input {
    width: 100%;
    height: var(--yacht-input-h, 46px);
    padding: 0 16px;
    border: 1px solid var(--yacht-border);
    background: var(--yacht-bg);
    font-size: var(--yacht-font-sm);
    color: var(--yacht-text);
    font-family: inherit;
    transition: var(--yacht-transition);
    box-sizing: border-box;
}

.yacht-form-pro textarea.yacht-input {
    height: auto;
    min-height: 120px;
    padding: 16px;
    resize: vertical;
}

.yacht-form-pro .yacht-input:focus {
    outline: none;
    border-color: var(--yacht-primary);
    box-shadow: 0 0 0 3px var(--yacht-primary-light);
    background: var(--yacht-surface);
}

.yacht-reviews-container .yacht-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    height: var(--yacht-input-h, 46px);
    padding: 0 24px;
    font-size: var(--yacht-font-sm);
    font-weight: var(--yacht-weight-semibold);
    transition: var(--yacht-transition);
    cursor: pointer;
    border: none;
    outline: none;
    text-decoration: none;
}

.yacht-reviews-container .yacht-btn-primary {
    background: var(--yacht-primary);
    color: var(--yacht-white);
    box-shadow: var(--yacht-shadow-md);
    border-radius: var(--yacht-radius);
}

.yacht-reviews-container .yacht-btn-primary:hover {
    background: var(--yacht-primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--yacht-shadow-lg);
}

.yacht-reviews-container .yacht-btn-secondary {
    background: transparent;
    color: var(--yacht-muted);
    border: 1px solid var(--yacht-border);
    border-radius: var(--yacht-radius);
}

.yacht-reviews-container .yacht-btn-secondary:hover {
    color: var(--yacht-text);
    background: var(--yacht-bg);
}

.yacht-reviews-summary-pro__left {
    display: flex;
    flex-direction: column;
    gap: 24px;
    padding-right: 48px;
    border-right: 1px solid var(--yacht-border-light);
}

.yacht-reviews-summary-pro__score-wrap {
    display: flex;
    align-items: center;
    gap: 24px;
}

.yacht-reviews-summary-pro__number {
    font-size: var(--yacht-font-5xl);
    font-weight: var(--yacht-weight-bold);
    line-height: var(--yacht-leading-tight);
    color: var(--yacht-text);
    letter-spacing: -2px;
}

.yacht-reviews-summary-pro__stars-col {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.yacht-reviews-summary-pro__stars {
    display: flex;
    gap: 2px;
}

.yacht-reviews-summary-pro__stars .material-symbols-outlined {
    font-size: 22px !important;
    font-variation-settings: 'FILL' 1, 'wght' 400, 'GRAD' 0, 'opsz' 24;
}

.yacht-reviews-summary-pro__count {
    font-size: var(--yacht-font-sm);
    font-weight: var(--yacht-weight-medium);
    color: var(--yacht-text-muted);
}

/* Rating Bars */
.yacht-rating-bars {
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-width: 400px;
}

.yacht-rating-bar-row {
    display: flex;
    align-items: center;
    gap: 16px;
    font-size: var(--yacht-font-xs);
    font-weight: var(--yacht-weight-semibold);
    color: var(--yacht-text-muted);
}

.yacht-rating-bar-label {
    width: 60px;
    flex-shrink: 0;
}

.yacht-rating-bar-wrap {
    flex: 1;
    height: 8px;
    background: var(--yacht-bg);
    overflow: hidden;
    position: relative;
}

.yacht-rating-bar-fill {
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    background: var(--yacht-primary);
    transition: width 1s cubic-bezier(0.16, 1, 0.3, 1);
}

.yacht-rating-bar-pct {
    width: 40px;
    text-align: right;
    color: var(--yacht-text-light);
}

/* Review Cards Grid */
.yacht-reviews-grid {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.yacht-review-card {
    background: var(--yacht-surface);
    padding: 32px;
    border: 2px dotted var(--yacht-border-strong);
    /* Premium dotted order card feel */
    transition: all 0.3s ease;
    position: relative;
}

.yacht-review-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--yacht-shadow);
    border-color: var(--yacht-primary-light);
}

.yacht-review-card__header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 24px;
}

.yacht-review-card__user {
    display: flex;
    align-items: center;
    gap: 16px;
}

.yacht-review-card__avatar {
    width: 52px;
    height: 52px;
    background: linear-gradient(135deg, var(--yacht-primary-light) 0%, var(--yacht-info-light) 100%);
    color: var(--yacht-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: var(--yacht-weight-bold);
    font-size: var(--yacht-font-xl);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.5);
}

.yacht-review-card__meta {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.yacht-review-card__name-wrap {
    display: flex;
    align-items: center;
    gap: 6px;
}

.yacht-review-card__name {
    font-weight: var(--yacht-weight-bold);
    color: var(--yacht-text);
    font-size: var(--yacht-font-lg);
    letter-spacing: -0.01em;
    font-family: var(--yacht-font-family);
}

.yacht-review-card__verified {
    color: var(--yacht-info);
    display: flex;
    align-items: center;
}

.yacht-review-card__verified .material-symbols-outlined {
    font-size: 1.25rem;
    font-variation-settings: 'FILL' 1;
}

.yacht-review-card__date {
    font-size: var(--yacht-font-sm);
    color: var(--yacht-text-light);
    font-weight: var(--yacht-weight-medium);
}

.yacht-review-card__rating {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 4px;
}

.yacht-review-card__rating-num {
    font-size: var(--yacht-font-lg);
    font-weight: var(--yacht-weight-bold);
    color: var(--yacht-star);
}

.yacht-review-card__rating-stars {
    display: flex;
    gap: 2px;
}

.yacht-review-card__rating-stars .material-symbols-outlined {
    font-size: 18px !important;
    font-variation-settings: 'FILL' 1;
}

.yacht-review-card__content {
    font-size: var(--yacht-font-base);
    line-height: var(--yacht-leading-relaxed);
    color: var(--yacht-text-muted);
    font-weight: var(--yacht-weight-normal);
    font-family: var(--yacht-font-family);
}

.yacht-review-card__content p {
    margin: 0;
}

.yacht-review-card__status {
    margin-top: 20px;
    padding: 8px 16px;
    background: var(--yacht-warning-light);
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: var(--yacht-font-xs);
    color: var(--yacht-warning);
    font-weight: var(--yacht-weight-semibold);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.yacht-review-card__status .material-symbols-outlined {
    font-size: 16px;
}

@media (max-width: 991px) {
    .yacht-reviews-summary-pro {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .yacht-reviews-summary-pro__left {
        padding-right: 0;
        border-right: none;
        border-bottom: 1px solid var(--yacht-border-light);
        padding-bottom: 32px;
    }
}

@media (max-width: 575px) {
    .yacht-reviews-summary-pro {
        padding: 32px 24px;
    }

    .yacht-review-card {
        padding: 24px;
    }

    .yacht-review-card__header {
        flex-direction: column;
        gap: 20px;
    }

    .yacht-review-card__rating {
        align-items: flex-start;
    }
}

.yacht-success-msg {
    padding: 24px;
    background: var(--yacht-success-light);
    border: 1px solid var(--yacht-success);
    color: var(--yacht-success-dark);
    /* Keeping dark text contrast */
    text-align: center;
    font-weight: var(--yacht-weight-semibold);
}

.yacht-star-selector {
    display: flex;
    flex-direction: row-reverse;
    justify-content: flex-end;
    gap: 8px;
}

.yacht-star-selector label {
    cursor: pointer;
    display: block;
    line-height: 1;
}

.yacht-star-selector label .material-symbols-outlined {
    font-size: 3rem;
    /* Larger for better luxury interaction */
    color: var(--yacht-border);
    transition: var(--yacht-transition);
    font-variation-settings: 'FILL' 0;
}

.yacht-star-selector input:checked~label .material-symbols-outlined,
.yacht-star-selector label:hover .material-symbols-outlined,
.yacht-star-selector label:hover~label .material-symbols-outlined {
    color: var(--yacht-star) !important;
    font-variation-settings: 'FILL' 1;
    filter: drop-shadow(0 0 8px var(--yacht-star-alpha));
}

.yacht-star-selector label:hover .material-symbols-outlined {
    transform: scale(1.25) rotate(5deg);
}

/* --------------------------------------------------------------------------
   12. Elementor & Advanced Card Styles
   -------------------------------------------------------------------------- */

/* ──────────────── Style 2: Elite Glassmorphism ──────────────── */
.yacht-card-elite {
    background: var(--yacht-surface);
    overflow: hidden;
    box-shadow: var(--yacht-shadow);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    height: 100%;
    display: flex;
    flex-direction: column;
    border-radius: var(--yacht-radius);
}

.yacht-card-elite:hover {
    transform: translateY(-8px);
    box-shadow: var(--yacht-shadow-md);
}

.yacht-card-elite__image-wrap {
    position: relative;
    aspect-ratio: 3/2;
    overflow: hidden;
    background: var(--yacht-surface-soft);
}

.yacht-card-elite__image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s ease;
}

.yacht-card-elite:hover .yacht-card-elite__image {
    transform: scale(1.1);
}

.yacht-card-elite__glass-header {
    position: absolute;
    top: 15px;
    left: 15px;
    right: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 2;
}

.yacht-card-elite__location {
    background: rgba(var(--yacht-white-rgb, 255, 255, 255), 0.2);
    backdrop-filter: blur(10px);
    padding: 6px 12px;
    color: var(--yacht-white);
    font-size: 12px;
    display: flex;
    align-items: center;
    gap: 4px;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.yacht-card-elite__badge {
    background: var(--yacht-primary);
    color: var(--yacht-white);
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    padding: 6px 12px;
    letter-spacing: 1px;
}

.yacht-card-elite__glass-footer {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 30px 20px 20px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
    color: var(--yacht-white);
    z-index: 2;
}

.yacht-card-elite__title {
    font-size: 22px;
    font-weight: 700;
    margin: 0 0 5px;
    color: var(--yacht-white) !important;
}

.yacht-card-elite__meta {
    font-size: 13px;
    opacity: 0.9;
    display: flex;
    align-items: center;
    gap: 10px;
}

.yacht-card-elite__content {
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--yacht-white);
    margin-top: auto;
}

.yacht-card-elite__pricing {
    display: flex;
    flex-direction: column;
}

.yacht-card-elite__amount {
    font-size: 20px;
    font-weight: 800;
    color: var(--yacht-primary);
}

.yacht-card-elite__label {
    font-size: 12px;
    color: var(--yacht-text-light);
    text-transform: uppercase;
    font-weight: 600;
}

.yacht-card-elite__btn {
    background: var(--yacht-primary);
    color: var(--yacht-white) !important;
    padding: 12px 18px;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
}

.yacht-card-elite__btn:hover {
    background: var(--yacht-primary-dark);
}

/* ──────────────── Style 3: Minimal Visual Reveal ──────────────── */
.yacht-card-minimal {
    position: relative;
    overflow: hidden;
    aspect-ratio: 3/2;
    height: auto;
    transition: all 0.4s ease;
    background: var(--yacht-surface-soft);
}

.yacht-card-minimal__link {
    display: block;
    height: 100%;
    text-decoration: none;
}

.yacht-card-minimal__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.yacht-card-minimal__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.95), transparent 70%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 30px;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.4s ease;
}

.yacht-card-minimal:hover .yacht-card-minimal__overlay {
    opacity: 1;
    transform: translateY(0);
}

.yacht-card-minimal:hover .yacht-card-minimal__image {
    transform: scale(1.1);
}

.yacht-card-minimal__title {
    color: var(--yacht-white) !important;
    font-size: 24px;
    font-weight: 700;
    margin: 0 0 5px;
}

.yacht-card-minimal__meta {
    color: rgba(255, 255, 255, 0.8);
    font-size: 14px;
    margin-bottom: 15px;
}

.yacht-card-minimal__price {
    color: var(--yacht-white);
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 20px;
}

.yacht-card-minimal__btn {
    display: inline-block;
    border: 1px solid var(--yacht-white);
    color: var(--yacht-white);
    padding: 10px 20px;
    font-size: 14px;
    font-weight: 600;
}



/* ───────────────────────────────────────────────────────────────────────── */
/* ── Similar Yachts Section ─────────────────────────────────────────────── */
/* ───────────────────────────────────────────────────────────────────────── */

/* .yacht-container has been moved centrally to the top of the file */

.yacht-similar-section {
    width: 100%;
    margin: 0;
    padding: 60px 0;
    background: var(--yacht-surface-soft);
}

.yacht-similar-header {
    margin-bottom: 40px;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
}

.yacht-similar-title {
    font-size: var(--yacht-font-2xl);
    font-weight: var(--yacht-weight-bold);
    color: var(--yacht-text-strong);
    margin: 0;
    letter-spacing: -0.5px;
}

@media (max-width: 768px) {
    .yacht-similar-section {
        padding: 40px 0;
    }

    .yacht-similar-title {
        font-size: var(--yacht-font-xl);
    }
}

/* ───────────────────────────────────────────────────────────────────────── */
/* ── Horizontal Top Filter Component ────────────────────────────────────── */
/* ───────────────────────────────────────────────────────────────────────── */

.yacht-filter-horizontal-wrapper {
    width: 100%;
    margin-bottom: 32px;
    /* Reduced from 40px */
}

.yacht-filter-horizontal-form {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 4px;
    /* Reduced gap based on user feedback */
    align-items: stretch;
}

.yacht-filter-horizontal-field {
    display: flex;
}

select.yacht-filter-horizontal-input,
.yacht-filter-horizontal-input {
    width: 100%;
    height: 52px;
    padding: 0 16px;
    background: var(--yacht-surface);
    border: 1px solid var(--yacht-border);
    font-size: 13px;
    font-weight: 600;
    color: var(--yacht-text-strong);
    letter-spacing: 0.5px;
    font-family: inherit;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    cursor: pointer;
    text-transform: uppercase;
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2311263c' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
}

.yacht-filter-horizontal-input::placeholder {
    color: var(--yacht-text-strong);
    opacity: 1;
}

.yacht-filter-horizontal-input:focus {
    outline: none;
    border-color: var(--yacht-primary);
    box-shadow: var(--yacht-shadow-sm);
}

.yacht-filter-horizontal-action {
    display: flex;
}

.yacht-filter-horizontal-btn {
    width: 100%;
    height: 52px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 24px;
    background: var(--yacht-primary);
    color: var(--yacht-white);
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 1px;
    border: none;
    cursor: pointer;
    transition: var(--yacht-transition);
}

.yacht-filter-horizontal-btn:hover {
    background: var(--yacht-primary-dark);
    transform: translateY(-1px);
    box-shadow: var(--yacht-shadow-sm);
}

/* Tablet Stacking */
@media (max-width: 1024px) {
    .yacht-filter-horizontal-form {
        grid-template-columns: repeat(3, 1fr);
    }

    .yacht-filter-horizontal-action {
        grid-column: span 3;
    }
}

/* Mobile Stacking */
@media (max-width: 768px) {
    .yacht-filter-horizontal-form {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .yacht-filter-horizontal-action {
        grid-column: span 1;
    }
}

/* ── Modern Duration Slider ────────────────────────────────────────────── */
.yacht-duration-group {
    margin-bottom: 10px;
    padding-top: 10px;
}

.yacht-duration-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.yacht-duration-display {
    font-size: 14px;
    font-weight: 700;
    color: var(--yacht-primary);
    background: var(--yacht-primary-light);
    padding: 6px 16px;
    letter-spacing: 0.5px;
    display: inline-flex;
    align-items: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(4px);
}

.yacht-range-container {
    width: 100%;
    position: relative;
}

.yacht-range-input {
    appearance: none;
    -webkit-appearance: none;
    width: 100%;
    background: var(--yacht-border-light);
    outline: none;
    cursor: pointer;
    vertical-align: middle;
    transition: all 0.3s ease;
}

/* Chrome/Safari Custom Fill Track */
.yacht-range-input::-webkit-slider-runnable-track {
    width: 100%;
    cursor: pointer;
    background: transparent;
    /* Handled by JS gradient for progress fill */
}

.yacht-range-input::-webkit-slider-thumb {
    height: 22px;
    width: 22px;
    background: var(--yacht-primary);
    cursor: pointer;
    -webkit-appearance: none;
    margin-top: -8px;
    /* Centers thumb on track */
    border: 3px solid var(--yacht-white);
    box-shadow: var(--yacht-shadow-md);
    transition: transform 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.2s;
    position: relative;
    z-index: 2;
}

.yacht-range-input:hover::-webkit-slider-thumb {
    box-shadow: var(--yacht-shadow-lg);
    transform: scale(1.1);
}

.yacht-range-input:active::-webkit-slider-thumb {
    transform: scale(1.2);
    background: var(--yacht-primary-dark);
}

/* Firefox */
.yacht-range-input::-moz-range-track {
    width: 100%;
    cursor: pointer;
    background: var(--yacht-border-light);
}

.yacht-range-input::-moz-range-thumb {
    height: 18px;
    width: 18px;
    border: 3px solid var(--yacht-white);
    background: var(--yacht-primary);
    cursor: pointer;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.2);
}

.yacht-range-input::-moz-range-progress {
    background: var(--yacht-primary);
}

/* ── Elementor Search Widget ────────────────────────────────────────────── */
.yacht-header-search-wrap {
    display: inline-block;
}

.yacht-header-search-btn {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 10px 20px;
    border: 1px solid var(--yacht-white);
    background: transparent;
    color: var(--yacht-white);
    text-decoration: none;
    font-weight: 600;
    letter-spacing: 2px;
    font-size: 15px;
    transition: all 0.3s ease;
    line-height: 1;
}

.yacht-header-search-btn:hover {
    background: var(--yacht-white);
    color: var(--yacht-black) !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(255, 255, 255, 0.2);
}

.yacht-header-search-btn .material-symbols-outlined {
    font-size: 20px;
}

.yacht-header-search-text {
    line-height: 1;
}

/* ── Pagination & Loading ────────────────────────────────────────────────── */






/* Global Button Styles (Sharp & Variable-First) */
button.yacht-btn,
a.yacht-btn,
.yacht-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    border-radius: var(--yacht-radius) !important;
    font-family: var(--yacht-font-family);
    cursor: pointer;
    border: none;
}

.yacht-btn--primary {
    background: var(--yacht-primary) !important;
    color: var(--yacht-white) !important;
}

.yacht-btn--primary:hover {
    background: var(--yacht-primary-dark) !important;
    box-shadow: var(--yacht-shadow-md);
    transform: translateY(-1px);
}

/* Load More Specifics */
.yacht-loading-wrapper {
    text-align: center;
    margin: 40px 0 20px;
    width: 100%;
}

.yacht-load-more-btn {
    min-width: 200px;
    gap: 10px;
    padding: 16px 32px;
}

.yacht-load-more-btn.is-loading {
    opacity: 0.8;
    pointer-events: none;
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

.yacht-yacht-grid>.listing-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* ==========================================================================
   PROMOTION POPUP (GLOBALLY ACCESSIBLE)
   =================================
   Following the WhatsApp Modal pattern for site-wide reliability.
   ========================================================================== */

.yacht-promo-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 12, 41, 0.85);
    backdrop-filter: blur(12px);
    z-index: 999998;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s ease;
}

.yacht-promo-overlay.is-active {
    opacity: 1 !important;
    visibility: visible !important;
}

.yacht-promo-popup {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -45%) scale(0.95);
    width: 90%;
    max-width: 900px;
    background: var(--yacht-primary);
    color: var(--yacht-white);
    z-index: 999999;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 0;
    box-shadow: var(--yacht-shadow-lg);
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.yacht-promo-popup.is-active {
    opacity: 1 !important;
    visibility: visible !important;
    transform: translate(-50%, -50%) scale(1) !important;
}

.yacht-promo-popup__close {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 32px;
    height: 32px;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    border-radius: 0;
    color: var(--yacht-white);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: var(--yacht-transition);
}

.yacht-promo-popup__close:hover {
    background: var(--yacht-white);
    color: var(--yacht-primary);
    transform: rotate(90deg);
}

.yacht-promo-popup__content {
    display: grid;
    grid-template-columns: 1fr;
    min-height: auto;
}

@media screen and (min-width: 769px) {
    .yacht-promo-popup__content {
        grid-template-columns: 1fr 1fr;
        min-height: 500px;
        align-items: stretch;
    }
}

.yacht-promo-popup__image {
    width: 100%;
    height: 100%;
    background: var(--yacht-black);
    position: relative;
    overflow: hidden;
}

.yacht-promo-popup__image img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    filter: brightness(0.85);
}

.yacht-promo-popup__body {
    padding: 60px 40px;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background: var(--yacht-primary);
    position: relative;
    height: 100%;
    gap: 32px;
}

.yacht-promo-actions {
    width: 100%;
    display: flex;
    justify-content: center;
}

.yacht-promo-popup__title {
    font-size: 2rem;
    font-weight: 900;
    line-height: 1.1;
    margin: 0;
    color: var(--yacht-white);
}

.yacht-promo-timer {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    margin-bottom: 25px;
}

.yacht-promo-timer__item {
    background: rgba(255, 255, 255, 0.05);
    padding: 5px 15px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 0;
}

.yacht-promo-timer__val {
    display: block;
    font-size: var(--yacht-font-xl);
    font-weight: var(--yacht-weight-bold);
    color: var(--yacht-white);
}

.yacht-promo-timer__label {
    display: block;
    font-size: var(--yacht-font-tiny);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: rgba(255, 255, 255, 0.5);
    margin-top: 2px;
}

.yacht-promo-cta {
    background: var(--yacht-white) !important;
    color: var(--yacht-primary) !important;
    font-weight: var(--yacht-weight-bold) !important;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    padding: 18px 24px;
    transition: var(--yacht-transition);
    border: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    margin-top: auto;
}

.yacht-promo-cta:hover {
    background: rgba(255, 255, 255, 0.9) !important;
    color: var(--yacht-primary) !important;
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

@media screen and (max-width: 480px) {
    .yacht-promo-popup {
        width: 85% !important;
    }

    .yacht-promo-popup__body {
        padding: 20px;
    }

    .yacht-promo-popup__title {
        font-size: var(--yacht-font-xl);
    }
}

/* -- Pagination Styling (Global & Elementor) -- */





/* Neutralize Material Icons and other nested elements borders/padding */



/* --------------------------------------------------------------------------

/* ==========================================================================
    Table Footer & Pagination (Consolidated Source of Truth)
   ========================================================================== */
.yacht-data-table__footer {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    padding: 16px 24px !important;
    background: var(--yacht-surface) !important;
    border-top: 1px solid var(--yacht-border) !important;
    border-bottom-left-radius: var(--yacht-radius-lg) !important;
    border-bottom-right-radius: var(--yacht-radius-lg) !important;
    width: 100% !important;
    box-sizing: border-box !important;
}

.yacht-data-table__footer .yacht-label {
    margin: 0 !important;
    white-space: nowrap !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 12px;
    font-size: var(--yacht-font-xs) !important;
    color: var(--yacht-text-muted) !important;
}

.yacht-pagination,
.elementor-pagination {
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    margin-left: auto !important;
    /* FORCES RIGHT ALIGNMENT */
    margin-right: 0 !important;
    padding: 0 !important;
}

.yacht-pagination a,
.yacht-pagination span,
.elementor-pagination a,
.elementor-pagination span {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-width: 36px !important;
    height: 36px !important;
    padding: 0 12px !important;
    font-size: var(--yacht-font-xs) !important;
    font-weight: var(--yacht-weight-bold) !important;
    text-decoration: none !important;
    color: var(--yacht-text-muted) !important;
    border: 1px solid var(--yacht-border) !important;
    background: var(--yacht-surface) !important;
    border-radius: var(--yacht-radius) !important;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1) !important;
    box-sizing: border-box !important;
}

.yacht-pagination a:hover,
.elementor-pagination a:hover {
    background: var(--yacht-bg-light) !important;
    color: var(--yacht-primary) !important;
    border-color: var(--yacht-primary-light) !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05) !important;
}

.yacht-pagination .current,
.elementor-pagination .current {
    background: var(--yacht-primary) !important;
    color: var(--yacht-white) !important;
    border-color: var(--yacht-primary) !important;
    box-shadow: 0 4px 12px rgba(0, 12, 41, 0.25) !important;
}

.yacht-pagination .prev,
.yacht-pagination .next,
.elementor-pagination .prev,
.elementor-pagination .next {
    padding: 0 !important;
    width: 36px !important;
}

.yacht-pagination .material-symbols-outlined,
.elementor-pagination .material-symbols-outlined {
    font-size: 18px !important;
}

/* ==========================================================================
   Yacht Carousel Widget Styles
   ========================================================================== */

.yacht-carousel-wrapper {
    position: relative;
    width: 100%;
    /* overflow must NOT be hidden here — it clips Swiper nav arrows */
}

.yacht-carousel-swiper {
    padding-bottom: 50px;
    /* Space for dots */
    position: relative;
    /* Swiper sets overflow:hidden on itself — do not duplicate it here */
}

/* Swiper classes - DO NOT add width or display flex here. Let Swiper.js handle it. */
.yacht-carousel-swiper .swiper-wrapper {}

.yacht-carousel-swiper .swiper-slide {
    height: 100%;
    position: relative;
}

/* Card Base */
.yacht-carousel-item {
    position: relative;
    min-height: 400px;
    height: 100%;
    width: 100%;
    border-radius: var(--yacht-radius-lg, 16px);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 40px;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.yacht-carousel-item__bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1;
}

.yacht-carousel-item:hover .yacht-carousel-item__bg {
    transform: scale(1.1);
}

/* Overlays */
.yacht-carousel-item__overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 12, 41, 0.4);
    z-index: 2;
    transition: all 0.4s ease;
}

/* Content Positioning */
.yacht-carousel-item__content {
    position: relative;
    z-index: 3;
    width: 100%;
}

.yacht-carousel-pos--bottom .yacht-carousel-item__content {
    margin-top: auto;
}

/* Style Variants */

/* 1. Classic Center (Ref Design) */
.yacht-carousel--classic .yacht-carousel-item__overlay {
    background: linear-gradient(to bottom, rgba(0, 12, 41, 0.2), rgba(0, 12, 41, 0.6));
}

/* 2. Elegant Bottom */
.yacht-carousel--bottom .yacht-carousel-item {
    align-items: flex-start;
    text-align: left;
    justify-content: flex-end;
}

.yacht-carousel--bottom .yacht-carousel-item__overlay {
    background: linear-gradient(to top, rgba(0, 12, 41, 0.8) 0%, transparent 60%);
}

/* 3. Glass Elite */
.yacht-carousel--glass .yacht-carousel-item__content {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--yacht-radius, 12px);
    padding: 30px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
}

/* 4. Minimal Reveal */
.yacht-carousel--minimal .yacht-carousel-item__content {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.yacht-carousel--minimal .yacht-carousel-item:hover .yacht-carousel-item__content {
    opacity: 1;
    transform: translateY(0);
}

.yacht-carousel--minimal .yacht-carousel-item:hover .yacht-carousel-item__overlay {
    background: rgba(0, 12, 41, 0.7);
}

/* Typography & Elements */
.yacht-carousel-item__icon {
    font-size: 42px;
    color: #FFD700;
    margin-bottom: 20px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.yacht-carousel-item__icon i,
.yacht-carousel-item__icon svg {
    width: 1em;
    height: 1em;
    fill: currentColor;
}

.yacht-carousel-item__title {
    color: #fff;
    font-size: 28px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin: 0 0 10px 0;
}

.yacht-carousel-item__subtitle {
    color: rgba(255, 255, 255, 0.9);
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 30px;
}

/* Buttons */
.yacht-carousel-btn {
    display: inline-flex;
    align-items: center;
    padding: 14px 28px;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 50px;
    transition: all 0.3s ease;
}

.yacht-carousel-btn--solid {
    background: #000C29;
    color: #fff;
}

.yacht-carousel-btn--solid:hover {
    background: #fff;
    color: #000C29;
    transform: translateY(-2px);
}

.yacht-carousel-btn--outline {
    background: transparent;
    color: #fff;
    border: 2px solid #fff;
}

.yacht-carousel-btn--outline:hover {
    background: #fff;
    color: #000C29;
}

.yacht-carousel-btn--link {
    background: transparent;
    color: #fff;
    padding: 0;
    column-gap: 8px;
}

.yacht-carousel-btn--link:hover {
    color: #FFD700;
}

/* Navigation Overrides */
.yacht-carousel-nav {
    color: #fff;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(5px);
    width: 44px !important;
    height: 44px !important;
    min-width: 44px;
    min-height: 44px;
    margin: 0 !important;
    padding: 0 !important;
    border-radius: 50% !important;
    transition: all 0.3s ease;
    display: flex !important;
    align-items: center;
    justify-content: center;
}

.yacht-carousel-nav:hover {
    background: rgba(255, 255, 255, 0.3);
}

.yacht-carousel-nav::after {
    display: none;
}

.yacht-carousel-pagination .swiper-pagination-bullet {
    background: #fff;
    opacity: 0.5;
}

.yacht-carousel-pagination .swiper-pagination-bullet-active {
    background: #FFD700;
    opacity: 1;
}

/* ==========================================================================
   Overlay Card System (Experiences & Water Sports)
   ========================================================================== */
.yacht-card-overlay {
    width: 100%;
    position: relative;
    min-height: 400px;
    height: 100%;
    width: 100%;
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    color: #ffffff;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.yacht-card-overlay:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.yacht-card-overlay__bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    transition: transform 0.6s ease;
    z-index: 1;
}

.yacht-card-overlay:hover .yacht-card-overlay__bg {
    transform: scale(1.1);
}

.yacht-card-overlay__overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0) 40%, rgba(0, 0, 0, 0.8) 100%);
    z-index: 2;
}

.yacht-card-overlay__content {
    position: relative;
    padding: 30px;
    z-index: 3;
}

.yacht-card-overlay__content--center {
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: rgba(0, 0, 0, 0.3);
}

.yacht-card-overlay__date {
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 12px;
    opacity: 0.9;
}

.yacht-card-overlay__title {
    color: #ffffff !important;
    font-size: 28px;
    font-weight: 700;
    line-height: 1.2;
    margin: 0 0 20px 0 !important;
}

.yacht-card-overlay__title--caps {
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 32px;
}

.yacht-card-overlay__subtitle {
    font-size: 18px;
    margin-bottom: 30px;
    opacity: 0.9;
}

.yacht-card-overlay__icon {
    margin-bottom: 20px;
}

.yacht-card-overlay__icon .material-symbols-outlined {
    font-size: 48px;
    color: #ffffff;
}

.yacht-card-overlay__btn {
    display: inline-flex;
    align-items: center;
    padding: 12px 24px;
    background: #f8fafc;
    color: #0f172a !important;
    text-decoration: none !important;
    border-radius: 8px;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s ease;
}

.yacht-card-overlay__btn:hover {
    background: #ffffff;
    transform: translateX(5px);
}

.yacht-card-overlay__link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #ffffff !important;
    text-decoration: none !important;
    font-weight: 600;
    font-size: 16px;
    letter-spacing: 1px;
    transition: all 0.3s ease;
}

.yacht-card-overlay__link:hover {
    gap: 12px;
    opacity: 0.8;
}

.yacht-card-overlay__link .material-symbols-outlined {
    font-size: 20px;
}


/* Pricing Styles for Overlay Cards */
.yacht-card-overlay__price {
    background: #0ea5e9;
    color: #ffffff;
    display: inline-flex;
    flex-direction: column;
    padding: 8px 15px;
    border-radius: 6px;
    margin-bottom: 15px;
    line-height: 1.2;
}

.yacht-card-overlay__price-ws {
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 6px 16px;
    border-radius: 30px;
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 25px;
}

.yacht-u-text-xs {
    font-size: 10px;
    letter-spacing: 1px;
}

.yacht-u-ml-4 {
    margin-left: 4px;
}


/* Modern Overlay Card (Experience & Water Sport) */
.yacht-modern-card {
    position: relative;
    border-radius: var(--yacht-radius, 12px);
    overflow: hidden;
    aspect-ratio: 1 / 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: #fff;
    cursor: pointer;
    transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    background: #000;
}

.yacht-modern-card:hover {
    transform: translateY(-8px);
}

.yacht-modern-card--clickable {
    cursor: pointer;
}

.yacht-modern-card__bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.yacht-modern-card__bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.yacht-modern-card:hover .yacht-modern-card__bg img {
    transform: scale(1.1);
}

.yacht-modern-card__overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0.85));
    z-index: 2;
}

.yacht-modern-card__content {
    position: relative;
    z-index: 3;
    padding: 30px;
    width: 100%;
}

.yacht-modern-card__icon {
    margin-bottom: 20px;
    opacity: 0.9;
}

.yacht-modern-card__icon .material-symbols-outlined {
    font-size: 40px !important;
    color: #fff !important;
}

.yacht-modern-card__title {
    font-size: 28px;
    font-weight: 800;
    text-transform: capitalize;
    letter-spacing: 2px;
    margin: 0 0 10px 0;
    color: #fff;
    text-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
}

.yacht-modern-card__subtitle {
    font-size: 16px;
    font-weight: 500;
    margin: 0 0 30px 0;
    opacity: 0.9;
    letter-spacing: 1px;
    color: #fff;
}

.yacht-modern-card__btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    color: #fff;
    letter-spacing: 1.5px;
    padding-bottom: 5px;
    border-bottom: 2px solid rgba(255, 255, 255, 0.3);
    transition: all 0.3s ease;
}

.yacht-modern-card__btn:hover {
    border-bottom-color: #fff;
    gap: 15px;
    color: #fff;
}

.yacht-modern-card__price {
    position: absolute;
    top: 20px;
    right: 20px;
    z-index: 4;
    background: var(--yacht-primary, #000C29);
    padding: 8px 15px;
    border-radius: 4px;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.yacht-modern-card__price-label {
    font-size: 10px !important;
    text-transform: uppercase !important;
    opacity: 0.7;
    margin-bottom: 2px;
    color: #fff !important;
}

.yacht-modern-card__price-value {
    font-size: 16px !important;
    font-weight: 700 !important;
    color: #fff !important;
}

/* ========================================================================== 
   Scoped Modern Overrides for Experience & Water Sport 
   ========================================================================== */
.yacht-modern-card--experience,
.yacht-modern-card--sport {
    justify-content: flex-end !important;
}

.yacht-modern-card--experience .yacht-modern-card__bg,
.yacht-modern-card--sport .yacht-modern-card__bg {
    background-size: cover !important;
    background-position: center !important;
    background-repeat: no-repeat !important;
    transition: transform 0.6s ease !important;
}

.yacht-modern-card--experience:hover .yacht-modern-card__bg,
.yacht-modern-card--sport:hover .yacht-modern-card__bg {
    transform: scale(1.1) !important;
}

.yacht-modern-card--experience .yacht-modern-card__title,
.yacht-modern-card--sport .yacht-modern-card__title {
    font-weight: 700;
    letter-spacing: 0;
}

.yacht-modern-card--experience .yacht-modern-card__btn,
.yacht-modern-card--sport .yacht-modern-card__btn {
    letter-spacing: 0;
    font-weight: 700;
}

.yacht-modern-card--experience .yacht-modern-card__content,
.yacht-modern-card--sport .yacht-modern-card__content {
    padding-bottom: 50px !important;
}


.single-experience .yacht-single-hero__title,
.single-water_sport .yacht-single-hero__title {
    font-size: 40px;
}


/* Reset top margin of first element to ensure sidebar alignment */
.single-experience .yacht-single-main> :first-child,
.single-water_sport .yacht-single-main> :first-child {
    margin-top: 0 !important;
}

/* Reset theme heading margins inside plugin prose content to fix excessive gaps */
.yacht-single-prose.entry-content :where(h1, h2, h3, h4, h5, h6) {
    margin-top: 1em !important;
    margin-bottom: 0.5em !important;
}

.yacht-single-prose.entry-content :where(h1, h2, h3, h4, h5, h6):first-child {
    margin-top: 0 !important;
}

/* Mobile responsive font size for hero title */
@media (max-width: 768px) {
    .single-experience .yacht-single-hero__title,
    .single-water_sport .yacht-single-hero__title {
        font-size: 28px !important;
        line-height: 1.2 !important;
    }
}

/* ==========================================================================
   Defensive SVG Safety Guard & Icon Reset (Anti-Icon Blowup Insurance)
   ========================================================================== */
svg.elementor-star-rating,
.elementor-widget-icon svg,
.elementor-icon svg,
.elementor-image svg,
.elementor-social-icon svg {
    max-width: 100%;
    width: 1em;
    height: 1em;
    display: inline-block;
}

/* Force SVGs to match their specified Elementor wrapper dimensions */
.elementor-widget-icon svg,
.elementor-icon svg {
    width: 100% !important;
    height: 100% !important;
}

.elementor-widget-icon-list .elementor-icon-list-icon svg {
    width: 1.2em !important;
    height: 1.2em !important;
    display: inline-block;
    vertical-align: middle;
}

/* Specific Turbo Header & Footer Builder element styling resets */
.hfe-search-icon-toggle svg,
.hfe-search-submit svg,
.hfe-social-share-link svg,
.hfe-menu-toggle svg {
    width: 1em;
    height: 1em;
}