/**
 * Zoro Booking — Charter Pages
 * Isolated styles for /charters/ archive + /charters/{slug}/ landing pages.
 *
 * Strategy:
 *  - Everything is scoped under .zb-cp-wrap so it only affects our pages.
 *  - All custom classes use .zb-cp-* prefix to avoid clashes with theme classes.
 *  - The wrapper aggressively resets common theme overrides
 *    (text-decoration, list-style, pseudo-element content, etc.) without
 *    leaking into the surrounding theme header/footer.
 *  - !important is used sparingly — only for the cross-cutting resets
 *    where themes commonly fight back.
 */

/* =====================================================================
   ISOLATION RESET — applied to the wrapper and ALL descendants.
   Fights against theme-injected line-through, ::before content, weird
   list bullets, etc. Does NOT touch elements outside .zb-cp-wrap.
   ===================================================================== */
.zb-cp-wrap,
.zb-cp-wrap * {
    text-decoration: none !important;
    text-decoration-line: none !important;
    text-decoration-color: transparent !important;
    text-decoration-style: solid !important;
    text-shadow: none !important;
    box-shadow: none;
}

.zb-cp-wrap *::before,
.zb-cp-wrap *::after {
    content: normal;
}

.zb-cp-wrap p,
.zb-cp-wrap li,
.zb-cp-wrap h1,
.zb-cp-wrap h2,
.zb-cp-wrap h3,
.zb-cp-wrap h4,
.zb-cp-wrap span {
    background-image: none !important;
    -webkit-text-fill-color: currentColor !important;
}

/* =====================================================================
   WRAPPER
   ===================================================================== */
.zb-cp-wrap {
    max-width: 1100px;
    margin: 0 auto;
    padding: 24px 20px 80px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    color: #1c1c1c;
    line-height: 1.6;
    font-size: 16px;
    box-sizing: border-box;
}

.zb-cp-wrap *,
.zb-cp-wrap *::before,
.zb-cp-wrap *::after {
    box-sizing: border-box;
}

/* Headings */
.zb-cp-wrap .zb-cp-h1 {
    font-size: 2.4rem;
    margin: 8px 0 14px;
    line-height: 1.15;
    color: #1c1c1c;
    font-weight: 700;
}
.zb-cp-wrap .zb-cp-h2 {
    font-size: 1.6rem;
    margin: 36px 0 14px;
    color: #1c1c1c;
    font-weight: 700;
    line-height: 1.25;
}
.zb-cp-wrap .zb-cp-h3 {
    font-size: 1.15rem;
    margin: 18px 0 10px;
    color: #1c1c1c;
    font-weight: 600;
    line-height: 1.3;
}

/* Paragraphs + lists baseline */
.zb-cp-wrap p {
    margin: 0 0 14px;
    color: #2c2c2c;
}
.zb-cp-wrap ul,
.zb-cp-wrap ol {
    margin: 0 0 16px;
    padding-left: 22px;
}
.zb-cp-wrap li {
    margin-bottom: 6px;
    color: #2c2c2c;
}

/* Links baseline */
.zb-cp-wrap a {
    color: #1a5276;
    text-decoration: none;
}
.zb-cp-wrap a:hover {
    color: #134260;
}

/* =====================================================================
   BREADCRUMBS
   ===================================================================== */
.zb-cp-wrap .zb-cp-breadcrumbs {
    font-size: 0.85rem;
    color: #666;
    margin-bottom: 18px;
}
.zb-cp-wrap .zb-cp-breadcrumbs a {
    color: #1a5276;
}
.zb-cp-wrap .zb-cp-breadcrumbs .zb-cp-sep {
    margin: 0 6px;
    color: #aaa;
}

/* =====================================================================
   HERO (used on both archive + landing)
   ===================================================================== */
.zb-cp-wrap .zb-cp-hero {
    padding: 28px;
    background: linear-gradient(135deg, #fafbfc, #f1f3f5);
    border-radius: 12px;
    margin-bottom: 30px;
}
.zb-cp-wrap .zb-cp-eyebrow {
    color: #1a5276;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    font-size: 0.8rem;
    font-weight: 600;
    margin: 0;
}
.zb-cp-wrap .zb-cp-summary {
    font-size: 1.1rem;
    color: #444;
    margin: 12px 0 16px;
}

/* Meta inline list (duration · guests · price) */
.zb-cp-wrap .zb-cp-meta {
    list-style: none;
    padding: 0;
    margin: 0 0 18px;
    display: flex;
    flex-wrap: wrap;
    gap: 16px 28px;
    font-size: 0.95rem;
}
.zb-cp-wrap .zb-cp-meta li {
    margin: 0;
    color: #2c2c2c;
}
.zb-cp-wrap .zb-cp-meta li strong {
    color: #1a5276;
    font-weight: 600;
}

/* CTA button */
.zb-cp-wrap .zb-cp-cta {
    display: inline-block;
    background: #1a5276;
    color: #ffffff !important;
    padding: 12px 24px;
    border-radius: 30px;
    text-decoration: none !important;
    font-weight: 600;
    border: none;
    cursor: pointer;
}
.zb-cp-wrap .zb-cp-cta:hover {
    background: #134260;
    color: #ffffff !important;
}

/* =====================================================================
   SECTIONS
   ===================================================================== */
.zb-cp-wrap .zb-cp-section {
    margin: 30px 0;
}

.zb-cp-wrap .zb-cp-highlights ul {
    padding-left: 22px;
}
.zb-cp-wrap .zb-cp-highlights li {
    margin-bottom: 6px;
}

/* Booking box (Bókun widget wrapper) */
.zb-cp-wrap .zb-cp-booking {
    background: #ffffff;
    border: 2px solid #1a5276;
    border-radius: 12px;
    padding: 26px;
    margin: 36px 0;
}
.zb-cp-wrap .zb-cp-bokun-widget-wrap {
    min-height: 400px;
    margin-top: 16px;
}
/* Allow Bókun widget's own styles inside this wrapper — undo our resets */
.zb-cp-wrap .zb-cp-bokun-widget-wrap,
.zb-cp-wrap .zb-cp-bokun-widget-wrap * {
    text-decoration: revert !important;
    text-decoration-line: revert !important;
    text-decoration-color: revert !important;
}
.zb-cp-wrap .zb-cp-bokun-widget-wrap *::before,
.zb-cp-wrap .zb-cp-bokun-widget-wrap *::after {
    content: revert;
}

/* Two-column grid (included / not included) */
.zb-cp-wrap .zb-cp-grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 28px;
    margin: 30px 0;
}
@media (max-width: 720px) {
    .zb-cp-wrap .zb-cp-grid-2 { grid-template-columns: 1fr; }
    .zb-cp-wrap .zb-cp-h1 { font-size: 1.8rem; }
}

/* Check / X bulleted lists */
.zb-cp-wrap .zb-cp-list-check,
.zb-cp-wrap .zb-cp-list-x {
    list-style: none;
    padding: 0;
}
.zb-cp-wrap .zb-cp-list-check li,
.zb-cp-wrap .zb-cp-list-x li {
    padding-left: 26px;
    position: relative;
    margin-bottom: 6px;
}
.zb-cp-wrap .zb-cp-list-check li::before {
    content: '\2713'; /* ✓ */
    position: absolute;
    left: 0;
    color: #2e7d32;
    font-weight: 700;
}
.zb-cp-wrap .zb-cp-list-x li::before {
    content: '\2717'; /* ✗ */
    position: absolute;
    left: 0;
    color: #c62828;
    font-weight: 700;
}

/* Highlight boxes (meeting point, policy) */
.zb-cp-wrap .zb-cp-callout {
    background: #fafbfc;
    border-left: 4px solid #1a5276;
    padding: 16px 22px;
    border-radius: 6px;
    margin: 24px 0;
}

/* FAQ accordion */
.zb-cp-wrap .zb-cp-faq details {
    border-bottom: 1px solid #e3e6ea;
    padding: 12px 0;
}
.zb-cp-wrap .zb-cp-faq summary {
    font-weight: 600;
    cursor: pointer;
    padding: 6px 0;
    color: #1c1c1c;
    list-style: none;
}
.zb-cp-wrap .zb-cp-faq summary::-webkit-details-marker {
    display: none;
}
.zb-cp-wrap .zb-cp-faq summary::before {
    content: '+';
    color: #1a5276;
    font-weight: 700;
    margin-right: 8px;
    display: inline-block;
    width: 14px;
}
.zb-cp-wrap .zb-cp-faq details[open] summary::before {
    content: '−';
}
.zb-cp-wrap .zb-cp-faq p {
    margin: 8px 0 0;
    color: #444;
}

/* Related charters grid (landing page bottom) */
.zb-cp-wrap .zb-cp-other-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 18px;
    margin-top: 16px;
}
.zb-cp-wrap .zb-cp-other-card {
    display: block;
    padding: 18px;
    background: #ffffff;
    border: 1px solid #e3e6ea;
    border-radius: 10px;
    color: inherit;
    transition: border-color 0.15s, transform 0.15s;
}
.zb-cp-wrap .zb-cp-other-card:hover {
    border-color: #1a5276;
    transform: translateY(-2px);
}
.zb-cp-wrap .zb-cp-other-card .zb-cp-h3 {
    color: #1a5276;
    margin-top: 0;
}
.zb-cp-wrap .zb-cp-other-meta {
    color: #666;
    font-size: 0.85rem;
    margin-bottom: 0;
}

/* =====================================================================
   ARCHIVE PAGE (/charters/)
   ===================================================================== */
.zb-cp-wrap .zb-cp-archive-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 22px;
    margin-bottom: 40px;
}
.zb-cp-wrap .zb-cp-card {
    padding: 22px;
    background: #ffffff;
    border: 1px solid #e3e6ea;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    transition: border-color 0.15s, transform 0.15s;
}
.zb-cp-wrap .zb-cp-card:hover {
    border-color: #1a5276;
    transform: translateY(-2px);
}
.zb-cp-wrap .zb-cp-card .zb-cp-h2 {
    margin-top: 0;
    font-size: 1.25rem;
}
.zb-cp-wrap .zb-cp-card .zb-cp-h2 a {
    color: #1a5276;
}
.zb-cp-wrap .zb-cp-card-summary {
    color: #444;
    flex-grow: 1;
    font-size: 0.97rem;
}
.zb-cp-wrap .zb-cp-card-meta {
    list-style: none;
    padding: 0;
    margin: 12px 0;
    display: flex;
    flex-wrap: wrap;
    gap: 6px 16px;
    font-size: 0.9rem;
    color: #666;
}
.zb-cp-wrap .zb-cp-card-meta li {
    margin: 0;
    color: #666;
}
.zb-cp-wrap .zb-cp-card-meta li:not(:last-child)::after {
    content: '\00B7'; /* middle dot */
    margin-left: 16px;
    color: #ccc;
}
.zb-cp-wrap .zb-cp-card-cta {
    align-self: flex-start;
    background: #1a5276;
    color: #ffffff !important;
    padding: 10px 20px;
    border-radius: 26px;
    font-weight: 600;
    margin-top: 8px;
}
.zb-cp-wrap .zb-cp-card-cta:hover {
    background: #134260;
    color: #ffffff !important;
}

/* About section (archive) */
.zb-cp-wrap .zb-cp-about {
    background: #fafbfc;
    border-radius: 10px;
    padding: 22px 26px;
}
.zb-cp-wrap .zb-cp-about p {
    margin: 0 0 12px;
}
