/* =====================================================
   CharterWorld — Template Styles
   ===================================================== */

/* ===== PAGE HERO ===== */
.cw-page-hero {
    position: relative;
    width: 100%;
    min-height: 420px;
    display: flex;
    align-items: flex-end;
    justify-content: flex-start;
    background-size: cover;
    background-position: center;
    background-color: var(--cw-navy);
    overflow: hidden;
}

.cw-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0, 30, 60, 0.15) 0%, rgba(0, 30, 60, 0.75) 100%);
    z-index: 1;
}

.cw-hero-content {
    position: relative;
    z-index: 2;
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    padding: 60px 40px 50px;
}

.cw-hero-title {
    font-size: 42px;
    font-weight: 700;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin: 0 0 12px;
    line-height: 1.15;
}

.cw-hero-subtitle {
    font-size: 16px;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.85);
    max-width: 650px;
    line-height: 1.6;
    margin: 0;
}

/* ===== BREADCRUMB ===== */
.cw-breadcrumb ol {
    display: flex;
    list-style: none;
    padding: 0;
    margin: 0 0 20px;
    gap: 0;
}

.cw-breadcrumb li {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: rgba(255, 255, 255, 0.6);
}

.cw-breadcrumb li+li::before {
    content: '/';
    margin: 0 10px;
    color: rgba(255, 255, 255, 0.4);
}

.cw-breadcrumb a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: color 0.3s ease;
}

.cw-breadcrumb a:hover {
    color: #fff;
}

/* ===== TEMPLATE WRAP ===== */
.cw-template-wrap {
    padding: 60px 0 80px;
    background: #fff;
}

.cw-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px;
}

.cw-container-narrow {
    max-width: 800px;
}

/* ===== INTRO TEXT ===== */
.cw-intro-text {
    max-width: 800px;
    margin: 0 0 50px;
}

.cw-intro-text p {
    font-size: 16px;
    line-height: 1.7;
    color: var(--cw-grey);
    margin: 0 0 16px;
}

/* ===== SECTION ===== */
.cw-section {
    margin-bottom: 60px;
}

.cw-section:last-child {
    margin-bottom: 0;
}

/* ===== TAXONOMY GRID ===== */
.cw-tax-grid {
    display: grid;
    gap: 30px;
}

.cw-tax-grid.cw-grid-2 {
    grid-template-columns: repeat(2, 1fr);
}

.cw-tax-grid.cw-grid-3 {
    grid-template-columns: repeat(3, 1fr);
}

.cw-tax-grid.cw-grid-4 {
    grid-template-columns: repeat(4, 1fr);
}

/* ===== TAXONOMY CARD ===== */
.cw-tax-card {
    background: #fff;
    overflow: hidden;
    transition: transform 0.3s ease;
}

.cw-tax-card:hover {
    /*   transform: translateY(-4px); */
}

.cw-tax-card .cw-card-image {
    position: relative;
    width: 100%;
    aspect-ratio: 3 / 2;
    overflow: hidden;
    background: var(--cw-light-grey);
}

.cw-tax-card .cw-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.cw-tax-card:hover .cw-card-image img {
    transform: scale(1.04);
}

.cw-tax-card .cw-card-image-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 50%, rgba(0, 30, 60, 0.35) 100%);
    pointer-events: none;
}

.cw-tax-card .cw-card-content {
    padding: 18px 0 10px;
}

.cw-tax-card .cw-card-title {
    font-size: 16px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--cw-navy);
    margin: 0 0 6px;
}

.cw-tax-card .cw-card-title a {
    color: inherit;
    text-decoration: none;
}

.cw-tax-card .cw-card-desc {
    font-size: 13px;
    line-height: 1.5;
    color: var(--cw-grey);
    margin: 0 0 10px;
}

.cw-tax-card .cw-card-count {
    display: block;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--cw-coral);
    margin-bottom: 12px;
}

/* ===== ARCHIVE GRID ===== */
.cw-archive-grid {
    display: grid;
    gap: 30px;
}

.cw-archive-grid.cw-grid-2 {
    grid-template-columns: repeat(2, 1fr);
}

.cw-archive-grid.cw-grid-3 {
    grid-template-columns: repeat(3, 1fr);
}

.cw-archive-grid.cw-grid-4 {
    grid-template-columns: repeat(4, 1fr);
}

.cw-archive-card {
    background: #fff;
    overflow: hidden;
    transition: transform 0.3s ease;
}

.cw-archive-card:hover {
    transform: translateY(-4px);
}

.cw-archive-card .cw-card-image {
    position: relative;
    width: 100%;
    aspect-ratio: 3 / 2;
    overflow: hidden;
    background: var(--cw-light-grey);
}

.cw-archive-card .cw-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.cw-archive-card:hover .cw-card-image img {
    transform: scale(1.04);
}

.cw-archive-card .cw-card-content {
    padding: 18px 0 10px;
}

.cw-archive-card .cw-card-title {
    font-size: 16px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--cw-navy);
    margin: 0 0 6px;
}

.cw-archive-card .cw-card-title a {
    color: inherit;
    text-decoration: none;
}

.cw-archive-date {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--cw-coral);
    display: block;
    margin-bottom: 6px;
}

.cw-archive-excerpt {
    font-size: 13px;
    line-height: 1.5;
    color: var(--cw-grey);
    margin: 8px 0 15px;
}

/* ===== PAGINATION ===== */
.cw-pagination {
    display: flex;
    justify-content: center;
    gap: 6px;
    margin-top: 50px;
    padding-top: 30px;
    border-top: 1px solid var(--cw-border-light);
}

.cw-pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 42px;
    height: 42px;
    padding: 0 12px;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    color: var(--cw-navy);
    border: 1px solid var(--cw-border-medium);
    transition: all 0.3s ease;
}

.cw-pagination .page-numbers:hover,
.cw-pagination .page-numbers.current {
    background: var(--cw-navy);
    color: #fff;
    border-color: var(--cw-navy);
}

/* ===== SINGLE TESTIMONIAL ===== */
.cw-single-testimonial {
    margin-bottom: 60px;
}

.cw-testimonial-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--cw-border-light);
}

.cw-testimonial-meta span {
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--cw-grey);
}

.cw-testimonial-author {
    font-weight: 700;
    color: var(--cw-navy) !important;
}

.cw-testimonial-yacht {
    color: var(--cw-coral) !important;
}

.cw-testimonial-body blockquote {
    font-size: 18px;
    line-height: 1.8;
    color: var(--cw-navy);
    font-style: italic;
    border-left: 3px solid var(--cw-coral);
    padding-left: 25px;
    margin: 0;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 992px) {
    .cw-page-hero {
        min-height: 320px;
    }

    .cw-hero-title {
        font-size: 32px;
    }

    .cw-hero-content {
        padding: 40px 30px;
    }

    .cw-container {
        padding: 0 30px;
    }

    .cw-template-wrap {
        padding: 40px 0 60px;
    }

    .cw-tax-grid.cw-grid-3,
    .cw-tax-grid.cw-grid-4 {
        grid-template-columns: repeat(2, 1fr);
    }

    .cw-archive-grid.cw-grid-3,
    .cw-archive-grid.cw-grid-4 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .cw-page-hero {
        min-height: 260px;
    }

    .cw-hero-title {
        font-size: 26px;
    }

    .cw-hero-content {
        padding: 30px 20px;
    }

    .cw-container {
        padding: 0 20px;
    }

    .cw-template-wrap {
        padding: 30px 0 40px;
    }

    .cw-tax-grid.cw-grid-2,
    .cw-tax-grid.cw-grid-3,
    .cw-tax-grid.cw-grid-4 {
        grid-template-columns: 1fr;
    }

    .cw-archive-grid.cw-grid-2,
    .cw-archive-grid.cw-grid-3,
    .cw-archive-grid.cw-grid-4 {
        grid-template-columns: 1fr;
    }

    .cw-testimonial-body blockquote {
        font-size: 16px;
        padding-left: 18px;
    }
}

/* ===== PAGE HERO — FORCE ===== */
section.cw-page-hero {
    position: relative !important;
    width: 100% !important;
    min-height: 600px !important;
    background-size: cover !important;
    background-position: center center !important;
    background-repeat: no-repeat !important;
    background-color: var(--cw-navy, #0D2B44) !important;
    display: flex !important;
    align-items: flex-end !important;
    overflow: hidden !important;
    margin: 0 !important;
    padding: 0 !important;
    max-width: none !important;
    float: none !important;
}

/* Allow 100vh heroes (blog, charter yachts) to keep their height */
section.cw-page-hero[style*="100vh"] {
    height: 100vh !important;
    max-height: 1000px !important;
}

section.cw-page-hero .cw-hero-overlay {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    background: linear-gradient(to top,
            rgba(13, 43, 68, 0.75) 0%,
            rgba(13, 43, 68, 0.3) 50%,
            rgba(13, 43, 68, 0.1) 100%) !important;
    z-index: 1 !important;
}

section.cw-page-hero .cw-hero-inner {
    position: relative !important;
    z-index: 2 !important;
    width: 100% !important;
    max-width: 1200px !important;
    margin: 0 auto !important;
    padding: 60px 30px 50px !important;
}

section.cw-page-hero .cw-hero-title,
section.cw-page-hero .cw-hero-title * {
    color: #ffffff !important;
    font-size: 48px !important;
    font-weight: 300 !important;
    letter-spacing: 2px !important;
    text-transform: uppercase !important;
    margin: 0 !important;
}

section.cw-page-hero .cw-breadcrumb {
    margin-bottom: 15px !important;
    font-size: 13px !important;
    letter-spacing: 1px !important;
    text-transform: uppercase !important;
}

section.cw-page-hero .cw-breadcrumb a,
section.cw-page-hero .cw-breadcrumb a:visited {
    color: rgba(255, 255, 255, 0.7) !important;
    text-decoration: none !important;
}

section.cw-page-hero .cw-breadcrumb a:hover {
    color: #ffffff !important;
}

section.cw-page-hero .cw-bc-sep {
    color: rgba(255, 255, 255, 0.4) !important;
    margin: 0 8px !important;
}

section.cw-page-hero .cw-bc-current {
    color: rgba(255, 255, 255, 0.9) !important;
}

@media (max-width: 992px) {
    section.cw-page-hero {
        min-height: 420px !important;
    }

    section.cw-page-hero .cw-hero-title {
        font-size: 36px !important;
    }
}

@media (max-width: 576px) {
    section.cw-page-hero {
        min-height: 320px !important;
    }

    section.cw-page-hero .cw-hero-title {
        font-size: 28px !important;
    }

    section.cw-page-hero .cw-hero-inner {
        padding: 30px 15px 25px !important;
    }
}

/* ===== SIDEBAR LOCATIONS — OCEAN STYLE ===== */
/* ===== SIDEBAR LOCATIONS — FIXED ===== */
.column.one-third .cw-sidebar-locations {
    margin-left: 30px !important;
}

.cw-sidebar-locations {
    background: var(--cw-white, #fff);
    border: 1px solid var(--cw-border, rgba(0, 62, 120, 0.1));
    border-radius: 4px;
    padding: 30px 25px;
}

.cw-sidebar-header {
    margin-bottom: 20px;
}

.cw-sidebar-title {
    font-size: 13px !important;
    font-weight: 600 !important;
    text-transform: uppercase !important;
    letter-spacing: 2px !important;
    color: var(--cw-navy, #0D2B44) !important;
    margin: 0 0 12px !important;
}

.cw-sidebar-line {
    width: 40px;
    height: 2px;
    background: var(--cw-sand, #E6DBC1);
}

/* Accordion list */
.cw-loc-accordion {
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

.cw-loc-item {
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* Top-level items */
.cw-loc-accordion>.cw-loc-item {
    border-bottom: 1px solid var(--cw-border, rgba(0, 62, 120, 0.1));
}

.cw-loc-accordion>.cw-loc-item:last-child {
    border-bottom: none;
}

/* Header row */
.cw-loc-header {
    display: flex !important;
    align-items: center !important;
    gap: 8px;
    padding: 12px 0 !important;
}

/* Links */
.cw-loc-link {
    flex: 1 !important;
    color: var(--cw-grey, #444) !important;
    text-decoration: none !important;
    font-size: 14px !important;
    font-weight: 400 !important;
    line-height: 1.4 !important;
    transition: color 0.2s ease !important;
}

.cw-loc-link:hover {
    color: var(--cw-navy, #0D2B44) !important;
}

.cw-loc-link.is-current {
    color: var(--cw-navy, #0D2B44) !important;
    font-weight: 600 !important;
}

/* Count badge */
.cw-loc-count {
    font-size: 11px !important;
    color: #aaa !important;
    background: var(--cw-light-grey, #F5F5F5);
    border-radius: 10px;
    padding: 2px 8px;
    min-width: 24px;
    text-align: center;
    flex-shrink: 0;
}

/* Toggle button */
.cw-loc-toggle {
    background: none !important;
    border: none !important;
    cursor: pointer !important;
    padding: 4px !important;
    color: var(--cw-grey, #444) !important;
    transition: transform 0.3s ease !important;
    flex-shrink: 0 !important;
    display: flex !important;
    align-items: center !important;
}

.cw-loc-toggle:hover {
    color: var(--cw-navy, #0D2B44) !important;
}

.cw-loc-item.is-open>.cw-loc-header>.cw-loc-toggle {
    transform: rotate(180deg) !important;
}

/* Sub-levels */
.cw-loc-sub {
    list-style: none !important;
    margin: 0 !important;
    padding: 0 0 0 16px !important;
    overflow: hidden !important;
    transition: max-height 0.35s ease !important;
}

.cw-loc-sub .cw-loc-header {
    padding: 8px 0 !important;
}

.cw-loc-sub .cw-loc-link {
    font-size: 13px !important;
}

.cw-loc-sub .cw-loc-sub {
    padding-left: 14px !important;
}

.cw-loc-sub .cw-loc-sub .cw-loc-link {
    font-size: 12px !important;
    color: #888 !important;
}

.cw-loc-sub .cw-loc-sub .cw-loc-link:hover {
    color: var(--cw-navy, #0D2B44) !important;
}

/* Active state left accent */
.cw-loc-link.is-current::before {
    content: '';
    display: inline-block;
    width: 3px;
    height: 14px;
    background: var(--cw-sand, #E6DBC1);
    margin-right: 8px;
    border-radius: 2px;
    vertical-align: middle;
}

/* Sidebar sticky via CSS */
.sections_group>.section:first-child .column.one-third {
    position: -webkit-sticky !important;
    position: sticky !important;
    top: 80px !important;
    align-self: flex-start !important;
}

.sections_group>.section:first-child .section_wrapper {
    display: flex !important;
    align-items: flex-start !important;
}

/* ===== BUILDER SIDEBAR ===== */
.cw-sidebar-builder {
    background: var(--cw-white, #fff);
    border: 1px solid var(--cw-border, rgba(0, 62, 120, 0.1));
    border-radius: 4px;
    padding: 30px 25px;
    margin-left: 15px;
}

.cw-builder-details {
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

.cw-builder-details li {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    padding: 12px 0 !important;
    border-bottom: 1px solid var(--cw-border, rgba(0, 62, 120, 0.1));
}

.cw-builder-details li:last-child {
    border-bottom: none;
}

.cw-detail-label {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #999;
    font-weight: 500;
}

.cw-detail-value {
    font-size: 14px;
    color: var(--cw-navy, #0D2B44);
    font-weight: 500;
    text-align: right;
}

.cw-detail-value a {
    color: var(--cw-navy, #0D2B44) !important;
    text-decoration: none !important;
    border-bottom: 1px solid var(--cw-sand, #E6DBC1);
    transition: border-color 0.3s ease;
}

.cw-detail-value a:hover {
    border-color: var(--cw-navy, #0D2B44);
}

/* Term description */
.cw-term-description {
    max-width: 800px;
    margin: 40px auto;
    /* text-align: center; */
    font-size: 17px;
    line-height: 1.7;
    color: var(--cw-grey, #444);
}

/* Full content from location */
.cw-term-content {
    margin: 40px 0;
    font-size: 16px;
    line-height: 1.8;
    color: var(--cw-grey, #444);
}

.cw-term-content h2,
.cw-term-content h3,
.cw-term-content h4 {
    color: var(--cw-navy, #0D2B44);
    margin-top: 30px;
    margin-bottom: 15px;
}

.cw-term-content p {
    margin-bottom: 16px;
} 
.cw-term-content img {
    max-width: 100%;
    height: auto;
    border-radius: 4px;
    margin: 20px 0;
}

.cw-term-content a {
    color: var(--cw-navy, #0D2B44);
    border-bottom: 1px solid var(--cw-sand, #E6DBC1);
    text-decoration: none;
    transition: border-color 0.3s ease;
}

.cw-term-content a:hover {
    border-color: var(--cw-navy, #0D2B44);
    text-decoration: none;
}

/* === Yacht Navigation === */
.cw-yacht-navigation {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 40px;
    padding-top: 30px;
    border-top: 1px solid #e8e8e8;
    gap: 20px;
}

.cw-yacht-navigation a {
    display: flex;
    flex-direction: column;
    text-decoration: none;
    padding: 15px 20px;
    border-radius: 4px;
    transition: background 0.3s, transform 0.2s;
    max-width: 45%;
}

.cw-yacht-navigation a:hover {
    background: #f5f5f5;
    transform: translateY(-1px);
}

.cw-nav-prev {
    align-items: flex-start;
}

.cw-nav-next {
    align-items: flex-end;
    margin-left: auto;
}

.cw-nav-label {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #999;
    margin-bottom: 4px;
}

.cw-nav-title {
    font-size: 15px;
    color: #0D2B44;
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 280px;
}

.cw-nav-disabled {
    opacity: 0.3;
    pointer-events: none;
}

@media (max-width: 576px) {
    .cw-yacht-navigation {
        flex-direction: column;
        gap: 10px;
    }

    .cw-yacht-navigation a {
        max-width: 100%;
        align-items: center;
    }
}



/* =====================================================
   BLOG SIDEBAR
   ===================================================== */
.cw-blog-sidebar {
    box-sizing: border-box;
}

.cw-sidebar-inner {
    border-left: 1px solid #eee;
}

.cw-sidebar-block {
    margin-bottom: 40px;
}

.cw-sidebar-header-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 1px solid #eee;
}
.cw-sidebar-header-row .cw-sidebar-title {
    margin: 0;
    padding: 0;
    border-bottom: none;
    flex-shrink: 0;
}
.cw-sidebar-dropdown {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background: #fff;
    border: 1px solid #ddd;
    color: #333;
    padding: 4px 28px 4px 10px;
    font-size: 11px;
    cursor: pointer;
    border-radius: 0;
    min-width: 120px;
    height: 28px;
    line-height: 18px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='10' viewBox='0 0 24 24' fill='none' stroke='%23999' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 8px center;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.cw-sidebar-dropdown:focus {
    outline: none;
    border-color: #0d2b44;
}

.cw-sidebar-title {
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #0d2b44;
    margin: 0 0 20px;
    padding-bottom: 12px;
    border-bottom: 1px solid #eee;
}
.cw-sidebar-block .cw-sidebar-title {
    margin: 0;
    padding: 0;
    border-bottom: none;
}

.cw-sidebar-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.cw-sidebar-list li {
    margin-bottom: 15px;
}

.cw-sidebar-list li a {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    text-decoration: none;
    color: #333;
    transition: color 0.2s ease;
}

.cw-sidebar-list li a:hover {
    color: #0d2b44;
}

.cw-sidebar-thumb {
    flex: 0 0 60px;
    width: 60px;
    height: 45px;
    overflow: hidden;
    background: #f0f0f0;
    position: relative;
}

.cw-sidebar-thumb img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover;
    display: block;
    position: absolute;
    top: 0;
    left: 0;
}

.cw-sidebar-link-text {
    font-size: 14px;
    line-height: 1.4;
    flex: 1;
}

.cw-sidebar-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

/* ===== SIDEBAR CATEGORIES (notable-features style) ===== */
.cw-sidebar-cats-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}
.cw-sidebar-cats-list li {
    background: #f0f4f8;
    color: #0D2B44;
    padding: 5px 14px;
    font-size: 13px;
    line-height: 1.4;
}
.cw-sidebar-cats-list li a {
    color: inherit;
    text-decoration: none;
}
.cw-sidebar-cats-list li a:hover {
    text-decoration: none;
}
.cw-sidebar-cats-list li.is-current {
    background: var(--cw-navy, #0D2B44);
    color: #fff;
}
.cw-sidebar-cats-list li.is-current a {
    color: #fff;
}

/* ===== SIDEBAR TAGS (dashed border style) ===== */
.cw-sidebar-tags-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}
.cw-sidebar-tags-list li {
    display: inline-block;
}
.cw-sidebar-tags-list .cw-tag-chip {
    display: inline-block;
    padding: 5px 14px;
    border: 1px dashed rgba(13, 43, 68, 0.4);
    border-radius: 0;
    color: #0d2b44;
    font-size: 12px;
    font-weight: 400;
    letter-spacing: 0.5px;
    text-decoration: none;
    text-transform: uppercase;
    transition: all 0.3s ease;
    background: #fff;
}
.cw-sidebar-tags-list .cw-tag-chip:hover {
    background: #0d2b44;
    color: #fff;
    border-color: #0d2b44;
    text-decoration: none;
}
.cw-sidebar-tags-list .cw-tag-chip.is-active {
    background: var(--cw-navy, #0D2B44);
    color: #fff;
    border-color: var(--cw-navy, #0D2B44);
    border-style: solid;
}
.cw-sidebar-tags-list .cw-tag-chip.is-active:hover {
    background: var(--cw-navy-hover, #124066);
}

@media (max-width: 960px) {
    .cw-blog-sidebar,
    main.sections_group {
        width: 100% !important;
        float: none !important;
    }
    .cw-blog-sidebar {
        padding-top: 0 !important;
    }
    .cw-sidebar-inner {
        padding-left: 0 !important;
        border-left: none;
        border-top: 1px solid #eee;
        padding-top: 40px;
    }
}

/* =====================================================
   CHARTER YACHTS — ADVANCED SEARCH SIDEBAR
   ===================================================== */
.cw-charter-sidebar {
    box-sizing: border-box;
}

.cw-charter-sidebar .cw-sidebar-inner {
    border-left: 1px solid #eee;
    margin-left: 30px;
}

.cw-charter-sidebar .cw-sidebar-block {
    margin-bottom: 0;
    padding: 0 20px 20px;
}

.cw-charter-sidebar .cw-sidebar-title {
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #0d2b44;
    margin: 0 0 25px;
    padding-bottom: 12px;
    border-bottom: 1px solid #eee;
}

.cw-search-form {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.cw-search-field label {
    display: block;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #888;
    margin-bottom: 6px;
}

.cw-search-field select,
.cw-search-field input[type="number"] {
    width: 100%;
    padding: 10px 12px;
    font-size: 13px;
    color: #444;
    border: 1px solid #ddd;
    border-radius: 0;
    background: #fff;
    outline: none;
    transition: border-color 0.3s ease;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    height: 40px;
    line-height: 20px;
}

.cw-search-field select:focus,
.cw-search-field input[type="number"]:focus {
    border-color: #0d2b44;
}

/* Content area dropdown (sort/filter above listing) */
main .cw-location-dropdown-wrapper select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background: #fff;
    border: 1px solid #ccc;
    color: #333;
    padding: 8px 36px 8px 14px;
    font-size: 13px;
    cursor: pointer;
    border-radius: 0;
    min-width: 160px;
    height: 38px;
    line-height: 20px;
}

main .cw-location-dropdown-wrapper::after {
    content: '';
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    height: 0;
    border-left: 4px solid transparent;
    border-right: 4px solid transparent;
    border-top: 5px solid #666;
    pointer-events: none;
}

/* ===== RANGE SLIDERS ===== */
.cw-range-slider {
    position: relative;
    padding: 10px 0 5px;
}

.cw-range-values {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #666;
    margin-bottom: 8px;
}

.cw-range-slider input[type="range"] {
    position: absolute;
    width: 100%;
    height: 4px;
    background: none;
    pointer-events: none;
    -webkit-appearance: none;
    appearance: none;
    top: 32px;
    left: 0;
    margin: 0;
    padding: 0;
    border: none;
    outline: none;
}

.cw-range-slider .cw-range-min-input,
.cw-range-slider .cw-range-max-input {
    z-index: 3 !important;
}

/* Tracks made transparent — single grey bar comes from .cw-range-slider::before below */
.cw-range-slider input[type="range"]::-webkit-slider-runnable-track {
    width: 100%;
    height: 4px;
    background: transparent;
    border-radius: 2px;
    border: none;
}

.cw-range-slider input[type="range"]::-moz-range-track {
    width: 100%;
    height: 4px;
    background: transparent;
    border-radius: 2px;
    border: none;
}

/* Shared grey background bar — drawn once on the container */
.cw-range-slider::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: 32px;
    height: 4px;
    background: #ddd;
    border-radius: 2px;
    z-index: 0;
    pointer-events: none;
}

.cw-range-slider input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 16px;
    height: 16px;
    background: #0d2b44;
    border-radius: 50%;
    cursor: pointer;
    pointer-events: all;
    margin-top: -6px;
    border: 2px solid #fff;
    box-shadow: 0 1px 4px rgba(0,0,0,0.2);
    transition: transform 0.15s ease;
    position: relative;
    z-index: 4;
}

.cw-range-slider input[type="range"]::-moz-range-thumb {
    width: 16px;
    height: 16px;
    background: #0d2b44;
    border-radius: 50%;
    cursor: pointer;
    pointer-events: all;
    border: 2px solid #fff;
    box-shadow: 0 1px 4px rgba(0,0,0,0.2);
    transition: transform 0.15s ease;
    position: relative;
    z-index: 4;
}

.cw-range-slider input[type="range"]::-webkit-slider-thumb:hover {
    transform: scale(1.2);
}

.cw-range-slider input[type="range"]::-moz-range-thumb:hover {
    transform: scale(1.2);
}

.cw-range-track-fill {
    position: absolute;
    height: 4px;
    background: #0d2b44;
    border-radius: 2px;
    top: 32px;
    left: 0;
    pointer-events: none;
    z-index: 1;
}

.cw-search-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.cw-search-actions {
    margin-top: 10px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.cw-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    text-decoration: none;
    border: 1px solid transparent;
    cursor: pointer;
    transition: all 0.3s ease;
}

.cw-btn-primary {
    background: #0d2b44;
    color: #fff;
    border-color: #0d2b44;
}

.cw-btn-primary:hover {
    background: #1a4a70;
    color: #fff;
}

.cw-btn-reset {
    background: transparent;
    color: #888;
    border-color: #ddd;
}

.cw-btn-reset:hover {
    color: #0d2b44;
    border-color: #0d2b44;
    text-decoration: none !important;
}

/* ===== SEASON BLOCK (sidebar + carousel layout) ===== */
.cw-season-block {
    display: flex;
    gap: 0;
    align-items: flex-start;
    width: 100%;
    margin: 0 0 60px 0;
    padding: 0;
}

.cw-season-sidebar {
    flex: 0 0 25%;
    padding: 40px 30px 40px 40px;
}

.cw-season-title {
    font-size: 20px;
    font-weight: 500;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: #0d2b44;
    margin: 0 0 15px 0;
    line-height: 1.3;
}

.cw-season-price {
    font-size: 26px;
    font-weight: 300;
    color: #0d2b44;
    letter-spacing: 0.5px;
    margin-bottom: 3px;
}

.cw-season-period {
    font-size: 13px;
    color: #999;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 20px;
}

.cw-season-desc {
    font-size: 13px;
    color: #888;
    line-height: 1.6;
    margin-bottom: 15px;
}

.cw-season-sidebar .button {
    margin-top: 10px;
}

.cw-season-carousel {
    flex: 1;
    min-width: 0;
    overflow: hidden;
}

.cw-season-carousel .cw-component {
    padding: 0;
    margin: 0;
    max-width: 100%;
}

.cw-season-carousel .cw-carousel {
    margin: 0;
}

.cw-season-carousel .cw-nav-overlay .cw-nav-next {
    right: 10px;
}

.cw-season-carousel .cw-nav-overlay .cw-nav-prev {
    left: 10px;
}

.cw-season-sidebar .cw-builder-link {
    margin-top: 20px;
}

a.cw-builder-link {
    display: inline-block;
    padding: 10px 30px;
    border: 1px solid #0D2B44;
    color: #0D2B44;
    text-transform: uppercase;
    font-size: 12px;
    letter-spacing: 1px;
    text-decoration: none;
    transition: all 0.3s ease;
    background: transparent;
}

a.cw-builder-link:hover {
    background: #0D2B44;
    color: #fff;
    text-decoration: none !important;
}

.cw-action-btn {
    display: inline-block !important;
    padding: 10px 30px !important;
    border: 1px solid #0D2B44 !important;
    color: #0D2B44 !important;
    text-transform: uppercase !important;
    font-size: 12px !important;
    letter-spacing: 1px !important;
    text-decoration: none !important;
    transition: all 0.3s ease !important;
    background: transparent !important;
}

.cw-action-btn:hover {
    background: #0D2B44 !important;
    color: #fff !important;
}

@media (max-width: 768px) {
    .cw-season-block {
        flex-direction: column;
    }

    .cw-season-sidebar {
        flex: none;
        width: 100%;
    }
}

/* ===== SEARCH PAGE CONTENT ===== */
.cw-search-page-content {
    margin-bottom: 40px;
    padding: 30px;
    background: #fff;
    border: 1px solid #eee;
}

.cw-search-content-title {
    font-size: 22px;
    font-weight: 600;
    color: #0d2b44;
    margin: 0 0 15px;
    line-height: 1.3;
}

.cw-search-content-body {
    font-size: 15px;
    line-height: 1.7;
    color: #555;
}

.cw-search-content-body p {
    margin-bottom: 12px;
}

.cw-search-content-body p:last-child {
    margin-bottom: 0;
}

.cw-search-content-body h2,
.cw-search-content-body h3 {
    color: #0d2b44;
    margin-top: 20px;
    margin-bottom: 10px;
}

.cw-search-content-body img {
    max-width: 100%;
    height: auto;
    border-radius: 4px;
    margin: 15px 0;
}

.cw-search-content-body a {
    color: #0d2b44;
    border-bottom: 1px solid #e6dbc1;
    text-decoration: none;
    transition: border-color 0.3s ease;
}

.cw-search-content-body a:hover {
    border-color: #0d2b44;
}

/* Active filter tags */
.cw-active-filter {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 12px;
    background: #f5f5f5;
    border: 1px solid #e0e0e0;
    font-size: 12px;
    color: #555;
    white-space: nowrap;
}

.cw-active-filter a {
    color: #999;
    text-decoration: none;
    font-size: 14px;
    line-height: 1;
    transition: color 0.2s;
}

.cw-active-filter a:hover {
    color: #c44;
}

/* Mobile filter toggle / close / overlay (hidden on desktop) */
.cw-mobile-filter-toggle,
.cw-mobile-filter-close,
.cw-mobile-filter-overlay {
    display: none;
}

.cw-mobile-filter-toggle {
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    background: #0d2b44;
    color: #fff;
    border: none;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    margin-bottom: 20px;
}

.cw-mobile-filter-toggle svg {
    width: 18px;
    height: 18px;
}

.cw-mobile-filter-close {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    color: #0d2b44;
    cursor: pointer;
    z-index: 10001;
}

.cw-mobile-filter-close svg {
    width: 22px;
    height: 22px;
}

/* Responsive: stack on mobile */
@media (max-width: 960px) {
    main.sections_group {
        width: 100% !important;
    }

    .cw-charter-sidebar {
        position: fixed !important;
        inset: 0 !important;
        width: 100% !important;
        height: 100% !important;
        padding: 0 !important;
        z-index: 2147483647;
        pointer-events: none;
    }

    .cw-charter-sidebar .cw-sidebar-inner {
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        width: 85% !important;
        max-width: 360px !important;
        height: 100% !important;
        padding: 55px 20px 20px !important;
        margin: 0 !important;
        background: #fff;
        border: none !important;
        border-radius: 0 !important;
        box-shadow: 2px 0 20px rgba(0,0,0,0.2);
        transform: translateX(-100%);
        transition: transform 0.3s ease;
        pointer-events: auto;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        overscroll-behavior: contain;
        touch-action: auto;
        z-index: 2147483647;
    }

    .cw-charter-sidebar.is-open .cw-sidebar-inner {
        transform: translateX(0);
    }

    .cw-mobile-filter-overlay {
        display: block;
        position: fixed;
        inset: 0;
        background: rgba(13,43,68,0.5);
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.3s ease, visibility 0.3s ease;
        pointer-events: auto;
        touch-action: none;
        z-index: 2147483646;
    }

    .cw-charter-sidebar.is-open .cw-mobile-filter-overlay {
        opacity: 1;
        visibility: visible;
    }

    .cw-mobile-filter-toggle,
    .cw-mobile-filter-close {
        display: inline-flex;
    }

    .cw-mobile-filter-close {
        z-index: 2147483647;
    }

    .cw-charter-sidebar .cw-sidebar-inner {
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        width: 85% !important;
        max-width: 360px !important;
        height: 100% !important;
        padding: 55px 20px 20px !important;
        background: #fff;
        border: none !important;
        border-radius: 0 !important;
        box-shadow: 2px 0 20px rgba(0,0,0,0.2);
        transform: translateX(-100%);
        transition: transform 0.3s ease;
        pointer-events: auto;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        overscroll-behavior: contain;
        touch-action: auto;
        z-index: 100000;
    }

    .cw-charter-sidebar.is-open .cw-sidebar-inner {
        transform: translateX(0);
    }

    .cw-mobile-filter-overlay {
        display: block;
        position: fixed;
        inset: 0;
        background: rgba(13,43,68,0.5);
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.3s ease, visibility 0.3s ease;
        pointer-events: auto;
        touch-action: none;
        z-index: 99999;
    }

    .cw-charter-sidebar.is-open .cw-mobile-filter-overlay {
        opacity: 1;
        visibility: visible;
    }

    .cw-mobile-filter-toggle,
    .cw-mobile-filter-close {
        display: inline-flex;
    }

    .cw-mobile-filter-close {
        z-index: 100001;
    }

    html.cw-filter-panel-open,
    html.cw-filter-panel-open body {
        overflow: hidden !important;
        touch-action: none;
        height: 100%;
    }

    main.sections_group .section_wrapper {
        padding-left: 0 !important;
    }
}

/* Two-column taxonomy grid */
.cw-tax-grid.cw-grid-2 {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 30px !important;
}

@media (max-width: 768px) {
    .cw-tax-grid.cw-grid-2 {
        grid-template-columns: 1fr !important;
    }
}

/* =====================================================

/* =====================================================
   LOCATION HERO SLIDER
   ===================================================== */

section.cw-location-hero-slider .cw-yacht-hero-content {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    z-index: 2 !important;
    display: flex !important;
    align-items: flex-end !important;
    justify-content: center !important;
    text-align: left !important;
    color: #fff !important;
    margin-bottom: 80px;
}

section.cw-location-hero-slider .cw-hero-content-inner {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 30px 100px !important;
    text-align: left !important;
}

section.cw-location-hero-slider .cw-breadcrumb {
    margin-bottom: 15px;
    font-size: 13px;
    letter-spacing: 1px;
    text-transform: uppercase;
}

section.cw-location-hero-slider .cw-breadcrumb a {
    color: rgba(255, 255, 255, 0.7) !important;
    text-decoration: none;
}

section.cw-location-hero-slider .cw-breadcrumb a:hover {
    color: #fff !important;
}

section.cw-location-hero-slider .cw-bc-sep {
    color: rgba(255, 255, 255, 0.4) !important;
    margin: 0 8px !important;
}

section.cw-location-hero-slider .cw-bc-current {
    color: rgba(255, 255, 255, 0.9) !important;
}

section.cw-location-hero-slider .cw-location-dropdown-wrapper select {
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 8px 15px;
    border-radius: 4px;
    font-size: 14px;
    cursor: pointer;
    backdrop-filter: blur(5px);
}

section.cw-location-hero-slider .cw-location-dropdown-wrapper select option {
    color: #333;
    background: #fff;
}

section.cw-location-hero-slider .cw-hero-slider-dots {
    bottom: 25px;
}

section.cw-location-hero-slider .cw-hero-slider-nav button {
    z-index: 3;
}

@media (max-width: 768px) {
    section.cw-location-hero-slider .cw-hero-content-inner {
        padding: 0 20px 80px !important;
    }
}

/* =====================================================
   PAGE HERO SLIDER
   ===================================================== */

section.cw-page-hero-slider .cw-yacht-hero-content {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    z-index: 2 !important;
    display: flex !important;
    align-items: flex-end !important;
    justify-content: center !important;
    text-align: left !important;
    color: #fff !important;
    margin-bottom: 80px;
}

section.cw-page-hero-slider .cw-hero-content-inner {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 30px 100px !important;
    text-align: left !important;
}

section.cw-page-hero-slider .cw-breadcrumb {
    margin-bottom: 15px;
    font-size: 13px;
    letter-spacing: 1px;
    text-transform: uppercase;
}

section.cw-page-hero-slider .cw-breadcrumb a {
    color: rgba(255, 255, 255, 0.7) !important;
    text-decoration: none;
}

section.cw-page-hero-slider .cw-breadcrumb a:hover {
    color: #fff !important;
}

section.cw-page-hero-slider .cw-bc-sep {
    color: rgba(255, 255, 255, 0.4) !important;
    margin: 0 8px !important;
}

section.cw-page-hero-slider .cw-bc-current {
    color: rgba(255, 255, 255, 0.9) !important;
}

section.cw-page-hero-slider .cw-hero-slider-dots {
    bottom: 25px;
}

section.cw-page-hero-slider .cw-hero-slider-nav button {
    z-index: 3;
}

@media (max-width: 768px) {
    section.cw-page-hero-slider .cw-hero-content-inner {
        padding: 0 20px 80px !important;
    }
}