/* ==========================================================================
   CKEditor 5 Content Styles for Tours & Travel Website
   ========================================================================== */

/* ==========================================================================
   1. CSS Reset & Base Styles
   ========================================================================== */

/* Box sizing for all elements */
.ck-content *,
.ck-content *::before,
.ck-content *::after {
    box-sizing: border-box;
}

/* Base typography */
.ck-content {
    font-family: 'Volkhov', Georgia, 'Times New Roman', serif;
    font-size: 16px;
    line-height: 1.7;
    color: #2d3436;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

/* ==========================================================================
   2. Typography - Headings
   ========================================================================== */

.ck-content h1,
.ck-content h2,
.ck-content h3,
.ck-content h4,
.ck-content h5,
.ck-content h6 {
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-weight: 600;
    line-height: 1.3;
    margin: 1.5em 0 0.75em;
    color: #1a1a2e;
}

.ck-content h1 {
    font-size: 2.5rem;
    letter-spacing: -0.02em;
    border-bottom: 3px solid #00a8cc;
    padding-bottom: 0.3em;
}

.ck-content h2 {
    font-size: 2rem;
    letter-spacing: -0.01em;
    color: #1e3a5f;
}

.ck-content h3 {
    font-size: 1.5rem;
    color: #2c5282;
}

.ck-content h4 {
    font-size: 1.25rem;
    color: #2d3748;
}

.ck-content h5 {
    font-size: 1.1rem;
    color: #4a5568;
}

.ck-content h6 {
    font-size: 1rem;
    color: #718096;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* ==========================================================================
   3. Typography - Paragraphs
   ========================================================================== */

.ck-content p {
    margin: 1em 0;
    line-height: 1.8;
}

.ck-content p.lead {
    font-size: 1.2rem;
    font-weight: 400;
    color: #4a5568;
    line-height: 1.6;
}

.ck-content p.dropcap::first-letter {
    float: left;
    font-size: 3.5rem;
    font-weight: 700;
    line-height: 0.8;
    padding-right: 0.1em;
    color: #00a8cc;
}

.ck-content p.highlight {
    background: linear-gradient(120deg, rgba(0, 168, 204, 0.15) 0%, rgba(0, 168, 204, 0.05) 100%);
    padding: 0.5em 1em;
    border-left: 4px solid #00a8cc;
    border-radius: 0 4px 4px 0;
}

/* ==========================================================================
   4. Typography - Inline Elements
   ========================================================================== */

.ck-content strong,
.ck-content b {
    font-weight: 700;
    color: #1a1a2e;
}

.ck-content em,
.ck-content i {
    font-style: italic;
}

.ck-content u {
    text-decoration: underline;
    text-decoration-color: #00a8cc;
    text-decoration-thickness: 2px;
}

.ck-content s,
.ck-content del {
    text-decoration: line-through;
    color: #a0aec0;
}

.ck-content mark {
    background: #fef3c7;
    padding: 0.15em 0.3em;
    border-radius: 3px;
}

.ck-content code {
    font-family: 'Fira Code', 'Monaco', 'Consolas', monospace;
    font-size: 0.9em;
    background: #edf2f7;
    padding: 0.2em 0.5em;
    border-radius: 4px;
    color: #e53e3e;
}

.ck-content kbd {
    font-family: 'Fira Code', 'Monaco', 'Consolas', monospace;
    font-size: 0.85em;
    background: #2d3748;
    color: #fff;
    padding: 0.2em 0.5em;
    border-radius: 4px;
    box-shadow: 0 2px 0 #1a202c;
}

/* ==========================================================================
   5. Links
   ========================================================================== */

.ck-content a {
    color: #00a8cc;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.2s ease;
    border-bottom: 1px solid transparent;
}

.ck-content a:hover {
    color: #0077a3;
    border-bottom-color: #00a8cc;
}

.ck-content a.btn-primary {
    display: inline-block;
    background: linear-gradient(135deg, #00a8cc 0%, #0077a3 100%);
    color: #fff !important;
    padding: 0.75em 1.5em;
    border-radius: 50px;
    font-weight: 600;
    font-family: 'Poppins', sans-serif;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 0.05em;
    box-shadow: 0 4px 15px rgba(0, 168, 204, 0.3);
    border: none !important;
}

.ck-content a.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 168, 204, 0.4);
}

.ck-content a.btn-secondary {
    display: inline-block;
    background: #fff;
    color: #00a8cc !important;
    padding: 0.75em 1.5em;
    border-radius: 50px;
    font-weight: 600;
    font-family: 'Poppins', sans-serif;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 0.05em;
    border: 2px solid #00a8cc !important;
}

.ck-content a.btn-secondary:hover {
    background: #00a8cc;
    color: #fff !important;
}

.ck-content a.text-link {
    border-bottom: 2px dotted #00a8cc;
}

.ck-content a.text-link:hover {
    border-bottom-style: solid;
}

/* ==========================================================================
   6. Lists
   ========================================================================== */

.ck-content ul,
.ck-content ol {
    margin: 1em 0;
    padding-left: 1.5em;
}

.ck-content li {
    margin: 0.5em 0;
    line-height: 1.6;
}

.ck-content ul {
    list-style-type: disc;
}

.ck-content ul li::marker {
    color: #00a8cc;
}

.ck-content ol {
    list-style-type: decimal;
}

.ck-content ol li::marker {
    font-weight: 600;
    color: #00a8cc;
}

/* Styled lists for tours */
.ck-content ul.feature-list {
    list-style: none;
    padding-left: 0;
}

.ck-content ul.feature-list li {
    position: relative;
    padding-left: 2.5em;
    margin-bottom: 1em;
}

.ck-content ul.feature-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    top: 0;
    width: 1.8em;
    height: 1.8em;
    background: linear-gradient(135deg, #00a8cc 0%, #0077a3 100%);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8em;
    font-weight: bold;
}

.ck-content ul.checklist {
    list-style: none;
    padding-left: 0;
}

.ck-content ul.checklist li {
    position: relative;
    padding-left: 2em;
}

.ck-content ul.checklist li::before {
    content: '☐';
    position: absolute;
    left: 0;
    color: #00a8cc;
    font-size: 1.2em;
}

.ck-content ul.star-rating {
    list-style: none;
    padding-left: 0;
    display: flex;
    gap: 0.2em;
}

.ck-content ul.star-rating li::before {
    content: '★';
    color: #ffc107;
    font-size: 1.2em;
}

.ck-content dl {
    margin: 1em 0;
}

.ck-content dt {
    font-weight: 600;
    color: #1e3a5f;
    margin-top: 1em;
}

.ck-content dd {
    margin-left: 0;
    padding-left: 1em;
    border-left: 3px solid #e2e8f0;
    color: #4a5568;
}

/* ==========================================================================
   7. Blockquotes
   ========================================================================== */

.ck-content blockquote {
    margin: 1.5em 0;
    padding: 1em 1.5em;
    border-left: 5px solid #00a8cc;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border-radius: 0 8px 8px 0;
    font-style: italic;
    position: relative;
}

.ck-content blockquote::before {
    content: '“';
    font-size: 4rem;
    color: #00a8cc;
    opacity: 0.2;
    position: absolute;
    top: -0.2em;
    left: 0.2em;
    font-family: Georgia, serif;
}

.ck-content blockquote p {
    margin: 0;
    position: relative;
    z-index: 1;
}

.ck-content blockquote cite {
    display: block;
    margin-top: 1em;
    font-size: 0.9rem;
    color: #718096;
    font-style: normal;
    font-weight: 500;
}

.ck-content blockquote cite::before {
    content: '— ';
}

/* Travel testimonial style */
.ck-content blockquote.testimonial {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    padding: 2em;
    text-align: center;
}

.ck-content blockquote.testimonial::before {
    display: none;
}

.ck-content blockquote.testimonial .testimonial-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto 1em;
    border: 3px solid #00a8cc;
}

.ck-content blockquote.testimonial cite {
    font-size: 1rem;
    color: #1a1a2e;
}

.ck-content blockquote.testimonial cite span {
    display: block;
    font-size: 0.85rem;
    color: #718096;
    margin-top: 0.3em;
}

/* ==========================================================================
   8. Images & Figures
   ========================================================================== */

.ck-content figure {
    margin: 1.5em 0;
    max-width: 100%;
}

/*
 * CKEditor-rendered images: rounded 1rem (16px), soft shadow, smooth
 * load-in. Catch-all `.ck-content img` covers every kind of editor
 * output — proper <figure>/<div class="image"> wrappers AND bare
 * <p><span><img></span></p> markup pasted in from Word / Google Docs.
 */
.ck-content img {
    max-width: 100%;
    height: auto;
    width: auto;                /* override Word's inline width/height attrs */
    border-radius: 1rem;
    box-shadow:
        0 8px 20px -8px rgba(15, 23, 42, 0.18),
        0 2px 4px -2px rgba(15, 23, 42, 0.08);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    background-color: #f8fafc;
    margin: 1.25em auto;        /* breathing room above/below + auto-center */
    display: block;             /* most blog images are full-width, not inline */
}

.ck-content img:hover {
    transform: translateY(-2px);
    box-shadow:
        0 16px 32px -12px rgba(15, 23, 42, 0.25),
        0 4px 8px -2px rgba(15, 23, 42, 0.10);
}

/*
 * Word/Google-Docs pasted markup wraps images in a `<span>` inside a
 * `<p>`. That breaks block-level layout (the span stays inline-flow).
 * Force the wrapping span to behave as a block so the image gets its
 * margin: 1.25em auto centering.
 */
.ck-content p > span:has(> img),
.ck-content p > span:only-child:has(img) {
    display: block;
    text-align: center;
    margin: 1.25em 0;
}

/* Empty `<p>&nbsp;</p>` paragraphs (Word's spacing) collapse to a small gap */
.ck-content p:empty,
.ck-content p:has(> :only-child[v\:shapes]) {
    margin: 0.5em 0;
}

.ck-content figure figcaption,
.ck-content .image > figcaption {
    font-size: 0.875rem;
    color: #64748b;
    text-align: center;
    margin-top: 0.65em;
    font-style: italic;
    padding: 0 0.5em;
    line-height: 1.5;
}

/* Default image wrapper — inline so editors can wrap images with text */
.ck-content .image {
    display: inline-block;
    margin: 0.75em 0;
    max-width: 100%;
}

/* Block-aligned image: takes its own line, centered */
.ck-content .image-style-block {
    display: block;
    margin: 2em auto;
    text-align: center;
}

/* Side-floated images — text wraps naturally around them.
   Small-screen guard: stop floating below 640px so text isn't crushed. */
.ck-content .image-style-side {
    float: right;
    margin: 0.25em 0 1em 1.75em;
    max-width: 50%;
    shape-outside: margin-box;
}

.ck-content .image-style-align-left {
    float: left;
    margin: 0.25em 1.75em 1em 0;
    max-width: 50%;
    shape-outside: margin-box;
}

.ck-content .image-style-align-right {
    float: right;
    margin: 0.25em 0 1em 1.75em;
    max-width: 50%;
    shape-outside: margin-box;
}

.ck-content .image-style-align-center {
    display: block;
    margin: 1.75em auto;
    text-align: center;
    clear: both;
}

@media (max-width: 640px) {
    .ck-content .image-style-side,
    .ck-content .image-style-align-left,
    .ck-content .image-style-align-right {
        float: none;
        margin-left: auto;
        margin-right: auto;
        max-width: 100%;
        display: block;
    }
}

/* Editor's "thumbnail" style — slightly tighter, white-framed card look */
.ck-content .image.thumbnail img {
    border-radius: 1.25rem;
    padding: 4px;
    background: #ffffff;
    box-shadow: 0 8px 24px -10px rgba(15, 23, 42, 0.25);
}

.ck-content .image.thumbnail:hover img {
    transform: scale(1.03) translateY(-2px);
}

/* Circular avatar */
.ck-content .image.circle img {
    border-radius: 9999px;
    object-fit: cover;
    aspect-ratio: 1 / 1;
}

/* Gallery grid */
.ck-content .gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 0.9rem;
    margin: 1.75em 0;
}

.ck-content .gallery figure { margin: 0; }

.ck-content .gallery img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 1rem;
    box-shadow: 0 4px 12px -4px rgba(15, 23, 42, 0.18);
}

/* ==========================================================================
   FAQ accordion
   --------------------------------------------------------------------------
   The static/js/ck-content-enhance.js script rewrites `<h2>FAQ</h2>` +
   following `<h3>?</h3><p>answer</p>` pairs into `<details class="faq-item">`
   elements. These rules style the result as a clean, branded accordion that
   opens on click. Native `<details>` means it also works without JS — it
   just renders as collapsed text instead of an accordion.
   ========================================================================== */

.ck-content .faq-item {
    margin: 0.875em 0;
    padding: 0;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 0.875rem;
    overflow: hidden;
    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease,
        transform 0.2s ease;
}

.ck-content .faq-item:hover {
    border-color: rgba(5, 92, 157, 0.4);  /* brand-blue 40% */
    box-shadow: 0 6px 18px -6px rgba(15, 23, 42, 0.12);
}

.ck-content .faq-item[open] {
    border-color: var(--brand-blue);
    box-shadow: 0 12px 28px -10px rgba(5, 92, 157, 0.22);
}

.ck-content .faq-item > summary {
    list-style: none;
    cursor: pointer;
    padding: 0.95rem 1.25rem;
    margin: 0;
    font-family: 'Volkhov', serif;
    font-weight: 700;
    font-size: 1rem;
    color: var(--brand-blue);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.85rem;
    user-select: none;
    line-height: 1.4;
    transition: background-color 0.2s ease;
}

@media (min-width: 640px) {
    .ck-content .faq-item > summary {
        padding: 1.1rem 1.5rem;
        font-size: 1.0625rem;
    }
}

.ck-content .faq-item > summary:hover {
    background-color: rgba(249, 168, 38, 0.06); /* faint brand-yellow tint */
}

.ck-content .faq-item > summary::-webkit-details-marker {
    display: none;
}

.ck-content .faq-item > summary::marker {
    content: '';
}

/* Plus / minus pseudo-element on the right */
.ck-content .faq-item > summary::after {
    content: '+';
    flex-shrink: 0;
    width: 1.75rem;
    height: 1.75rem;
    border-radius: 9999px;
    background: rgba(5, 92, 157, 0.08);
    color: var(--brand-blue);
    font-family: 'Poppins', sans-serif;
    font-weight: 400;
    font-size: 1.25rem;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.2s ease, transform 0.2s ease;
}

.ck-content .faq-item[open] > summary::after {
    content: '\2212'; /* minus */
    background: var(--brand-blue);
    color: #ffffff;
    transform: rotate(180deg);
}

/* Body of the accordion (everything after summary) */
.ck-content .faq-item > *:not(summary) {
    padding-left: 1.25rem;
    padding-right: 1.25rem;
    margin: 0.5em 0;
    color: #374151;
    line-height: 1.65;
}

@media (min-width: 640px) {
    .ck-content .faq-item > *:not(summary) {
        padding-left: 1.5rem;
        padding-right: 1.5rem;
    }
}

.ck-content .faq-item > *:not(summary):first-of-type {
    padding-top: 0;
    margin-top: 0;
}

.ck-content .faq-item > *:last-child {
    padding-bottom: 1.1rem;
    margin-bottom: 0;
}

@media (min-width: 640px) {
    .ck-content .faq-item > *:last-child {
        padding-bottom: 1.35rem;
    }
}

/* Reduce motion: skip the transitions */
@media (prefers-reduced-motion: reduce) {
    .ck-content .faq-item,
    .ck-content .faq-item > summary,
    .ck-content .faq-item > summary::after {
        transition: none !important;
    }
}

/* ==========================================================================
   9. Tables
   ========================================================================== */

.ck-content .table-responsive {
    overflow-x: auto;
    margin: 1.5em 0;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}

.ck-content table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
}

.ck-content table thead {
    background: linear-gradient(135deg, #1e3a5f 0%, #2c5282 100%);
}

.ck-content table thead th {
    padding: 1em;
    color: #fff;
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    text-align: left;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 0.05em;
}

.ck-content table tbody tr {
    border-bottom: 1px solid #e2e8f0;
    transition: background 0.2s ease;
}

.ck-content table tbody tr:last-child {
    border-bottom: none;
}

.ck-content table tbody tr:hover {
    background: #f8fafc;
}

.ck-content table tbody td {
    padding: 1em;
    border-right: 1px solid #e2e8f0;
}

.ck-content table tbody td:last-child {
    border-right: none;
}

.ck-content table tbody tr:nth-child(even) {
    background: #f8fafc;
}

.ck-content table tbody tr:nth-child(even):hover {
    background: #f1f5f9;
}

/* Pricing table specific */
.ck-content table.pricing-table {
    border: 2px solid #00a8cc;
}

.ck-content table.pricing-table thead {
    background: linear-gradient(135deg, #00a8cc 0%, #0077a3 100%);
}

.ck-content table.pricing-table .price {
    font-size: 1.5rem;
    font-weight: 700;
    color: #00a8cc;
    font-family: 'Poppins', sans-serif;
}

/* Itinerary table */
.ck-content table.itinerary-table {
    position: relative;
}

.ck-content table.itinerary-table tbody td:first-child {
    font-weight: 600;
    color: #00a8cc;
    width: 100px;
    text-align: center;
    background: #f0f9ff;
}

/* ==========================================================================
   10. Code Blocks
   ========================================================================== */

.ck-content pre {
    background: #1e1e1e;
    color: #d4d4d4;
    padding: 1.25em;
    border-radius: 8px;
    overflow-x: auto;
    margin: 1.5em 0;
    font-family: 'Fira Code', 'Monaco', 'Consolas', monospace;
    font-size: 0.9rem;
    line-height: 1.6;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.ck-content pre code {
    background: transparent;
    color: inherit;
    padding: 0;
    font-size: inherit;
}

/* ==========================================================================
   11. Media Embeds (Videos, Iframes)
   ========================================================================== */

.ck-content .media {
    margin: 1.5em 0;
    border-radius: 8px;
    overflow: hidden;
}

.ck-content .media iframe,
.ck-content iframe {
    width: 100%;
    border: none;
    display: block;
}

.ck-content .media-video {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.ck-content .media-video iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.ck-content .media-audio {
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    padding: 2em;
    border-radius: 12px;
    text-align: center;
}

.ck-content .media-audio audio {
    width: 100%;
    max-width: 400px;
}

/* Map embed styling */
.ck-content .map-embed {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.ck-content .map-embed iframe {
    min-height: 350px;
}

/* ==========================================================================
   12. Travel-Specific Elements
   ========================================================================== */

/* Info boxes / Callouts */
.ck-content .info-box {
    padding: 1.5em;
    border-radius: 8px;
    margin: 1.5em 0;
    border-left: 5px solid;
}

.ck-content .info-box.info {
    background: #ebf8ff;
    border-color: #4299e1;
}

.ck-content .info-box.warning {
    background: #fffaf0;
    border-color: #ed8936;
}

.ck-content .info-box.danger {
    background: #fff5f5;
    border-color: #fc8181;
}

.ck-content .info-box.success {
    background: #f0fff4;
    border-color: #68d391;
}

.ck-content .info-box .info-title {
    font-weight: 700;
    color: #1a1a2e;
    margin-bottom: 0.5em;
    display: flex;
    align-items: center;
    gap: 0.5em;
}

/* Tour highlights */
.ck-content .tour-highlights {
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    padding: 1.5em;
    border-radius: 12px;
    margin: 1.5em 0;
    border: 1px solid #e2e8f0;
}

.ck-content .tour-highlights h3 {
    margin-top: 0;
    color: #00a8cc;
    font-size: 1.25rem;
}

/* Itinerary timeline */
.ck-content .timeline {
    position: relative;
    padding-left: 2em;
    margin: 1.5em 0;
}

.ck-content .timeline::before {
    content: '';
    position: absolute;
    left: 0.5em;
    top: 0;
    bottom: 0;
    width: 3px;
    background: linear-gradient(to bottom, #00a8cc, #0077a3);
    border-radius: 3px;
}

.ck-content .timeline-item {
    position: relative;
    margin-bottom: 1.5em;
}

.ck-content .timeline-item::before {
    content: '';
    position: absolute;
    left: -1.55em;
    top: 0.3em;
    width: 12px;
    height: 12px;
    background: #00a8cc;
    border-radius: 50%;
    border: 3px solid #fff;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.ck-content .timeline-item .day {
    font-weight: 700;
    color: #00a8cc;
    font-family: 'Poppins', sans-serif;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.ck-content .timeline-item h4 {
    margin: 0.3em 0;
    font-size: 1.1rem;
}

/* Pricing cards */
.ck-content .price-card {
    background: #fff;
    border-radius: 12px;
    padding: 2em;
    margin: 1.5em 0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 2px solid transparent;
    transition: all 0.3s ease;
    text-align: center;
}

.ck-content .price-card.featured {
    border-color: #00a8cc;
    transform: scale(1.02);
    box-shadow: 0 8px 30px rgba(0, 168, 204, 0.2);
}

.ck-content .price-card .price-amount {
    font-size: 3rem;
    font-weight: 700;
    color: #00a8cc;
    font-family: 'Poppins', sans-serif;
    line-height: 1;
}

.ck-content .price-card .price-currency {
    font-size: 1.5rem;
    vertical-align: super;
}

.ck-content .price-card .price-period {
    font-size: 1rem;
    color: #718096;
    margin-bottom: 1em;
}

.ck-content .price-card .price-features {
    list-style: none;
    padding: 0;
    margin: 1.5em 0;
    text-align: left;
}

.ck-content .price-card .price-features li {
    padding: 0.5em 0;
    border-bottom: 1px solid #f1f5f9;
}

.ck-content .price-card .price-features li:last-child {
    border-bottom: none;
}

.ck-content .price-card .price-features li::before {
    content: '✓';
    color: #48bb78;
    margin-right: 0.5em;
    font-weight: bold;
}

/* Badges */
.ck-content .badge {
    display: inline-block;
    padding: 0.3em 0.8em;
    font-size: 0.75rem;
    font-weight: 600;
    font-family: 'Poppins', sans-serif;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-radius: 50px;
    vertical-align: middle;
}

.ck-content .badge-primary {
    background: #00a8cc;
    color: #fff;
}

.ck-content .badge-success {
    background: #48bb78;
    color: #fff;
}

.ck-content .badge-warning {
    background: #ed8936;
    color: #fff;
}

.ck-content .badge-danger {
    background: #fc8181;
    color: #fff;
}

.ck-content .badge-info {
    background: #4299e1;
    color: #fff;
}

.ck-content .badge-outline {
    background: transparent;
    border: 2px solid currentColor;
    color: inherit;
}

/* Difficulty level */
.ck-content .difficulty {
    display: inline-flex;
    align-items: center;
    gap: 0.5em;
    padding: 0.4em 1em;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    font-family: 'Poppins', sans-serif;
}

.ck-content .difficulty.easy {
    background: #c6f6d5;
    color: #276749;
}

.ck-content .difficulty.moderate {
    background: #feebc8;
    color: #c05621;
}

.ck-content .difficulty.challenging {
    background: #fed7d7;
    color: #c53030;
}

/* Duration display */
.ck-content .duration {
    display: inline-flex;
    align-items: center;
    gap: 0.5em;
    font-weight: 500;
    color: #4a5568;
}

.ck-content .duration::before {
    content: '⏱';
}

/* Weather widget style */
.ck-content .weather-widget {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    padding: 1.5em;
    border-radius: 12px;
    text-align: center;
    margin: 1em 0;
}

.ck-content .weather-widget .temperature {
    font-size: 3rem;
    font-weight: 700;
    font-family: 'Poppins', sans-serif;
}

.ck-content .weather-widget .condition {
    font-size: 1.1rem;
    opacity: 0.9;
}

/* Location card */
.ck-content .location-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    margin: 1.5em 0;
}

.ck-content .location-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.ck-content .location-card .location-info {
    padding: 1.5em;
}

.ck-content .location-card h4 {
    margin: 0 0 0.5em;
}

.ck-content .location-card .address {
    color: #718096;
    font-size: 0.9rem;
}

/* ==========================================================================
   13. HR (Horizontal Rules)
   ========================================================================== */

.ck-content hr {
    border: none;
    height: 3px;
    background: linear-gradient(to right, transparent, #00a8cc, transparent);
    margin: 2em 0;
}

.ck-content hr.fancy {
    height: 1px;
    background: #e2e8f0;
    position: relative;
}

.ck-content hr.fancy::after {
    content: '✈';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: #fff;
    padding: 0 1em;
    color: #00a8cc;
    font-size: 1.2rem;
}

/* ==========================================================================
   14. Details / Summary (Accordions)
   ========================================================================== */

.ck-content details {
    background: #f8fafc;
    border-radius: 8px;
    margin: 1em 0;
    overflow: hidden;
    border: 1px solid #e2e8f0;
}

.ck-content summary {
    padding: 1em 1.25em;
    cursor: pointer;
    font-weight: 600;
    color: #1e3a5f;
    font-family: 'Poppins', sans-serif;
    position: relative;
    list-style: none;
    transition: background 0.2s ease;
}

.ck-content summary:hover {
    background: #f1f5f9;
}

.ck-content summary::-webkit-details-marker {
    display: none;
}

.ck-content summary::after {
    content: '+';
    position: absolute;
    right: 1.25em;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.5rem;
    color: #00a8cc;
    font-weight: 300;
}

.ck-content details[open] summary::after {
    content: '−';
}

.ck-content details .details-content {
    padding: 1.25em;
    border-top: 1px solid #e2e8f0;
    background: #fff;
}

/* ==========================================================================
   15. Responsive Design (Mobile)
   ========================================================================== */

@media (max-width: 1024px) {
    .ck-content {
        font-size: 15px;
    }

    .ck-content h1 {
        font-size: 2.2rem;
    }

    .ck-content h2 {
        font-size: 1.8rem;
    }

    .ck-content h3 {
        font-size: 1.4rem;
    }
}

@media (max-width: 768px) {
    .ck-content {
        font-size: 15px;
        line-height: 1.7;
    }

    .ck-content h1 {
        font-size: 1.8rem;
        border-bottom-width: 2px;
    }

    .ck-content h2 {
        font-size: 1.5rem;
    }

    .ck-content h3 {
        font-size: 1.25rem;
    }

    .ck-content h4 {
        font-size: 1.1rem;
    }

    /* Images - remove floats on mobile */
    .ck-content .image-style-side,
    .ck-content .image-style-align-left,
    .ck-content .image-style-align-right {
        float: none;
        margin: 1em auto;
        max-width: 100%;
        display: block;
    }

    /* Tables - horizontal scroll */
    .ck-content table {
        font-size: 0.9rem;
    }

    .ck-content table thead th,
    .ck-content table tbody td {
        padding: 0.75em 0.5em;
    }

    /* Timeline adjustments */
    .ck-content .timeline {
        padding-left: 1.5em;
    }

    .ck-content .timeline::before {
        left: 0.25em;
    }

    .ck-content .timeline-item::before {
        left: -1.3em;
    }

    /* Price card responsive */
    .ck-content .price-card {
        padding: 1.5em;
    }

    .ck-content .price-card.featured {
        transform: none;
    }

    .ck-content .price-card .price-amount {
        font-size: 2.5rem;
    }

    /* Gallery grid responsive */
    .ck-content .gallery {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    }

    .ck-content .gallery img {
        height: 150px;
    }

    /* Video embed responsive */
    .ck-content .media-video {
        margin: 1em 0;
    }

    /* Blockquotes */
    .ck-content blockquote {
        padding: 1em;
    }

    .ck-content blockquote.testimonial {
        padding: 1.5em;
    }

    /* Buttons - larger touch targets */
    .ck-content a.btn-primary,
    .ck-content a.btn-secondary {
        padding: 0.875em 1.75em;
    }

    /* Info boxes */
    .ck-content .info-box {
        padding: 1em;
    }
}

@media (max-width: 480px) {
    .ck-content {
        font-size: 14px;
    }

    .ck-content h1 {
        font-size: 1.6rem;
    }

    .ck-content h2 {
        font-size: 1.35rem;
    }

    .ck-content p.lead {
        font-size: 1.1rem;
    }

    .ck-content .gallery {
        grid-template-columns: 1fr;
    }

    .ck-content .gallery img {
        height: 200px;
    }

    /* Table - very small screens */
    .ck-content table {
        font-size: 0.85rem;
    }
}

/* ==========================================================================
   16. Print Styles
   ========================================================================== */

@media print {
    .ck-content {
        font-size: 12pt;
        color: #000;
        line-height: 1.5;
    }

    .ck-content h1,
    .ck-content h2,
    .ck-content h3 {
        color: #000;
        page-break-after: avoid;
    }

    .ck-content h4,
    .ck-content h5,
    .ck-content h6 {
        color: #333;
    }

    .ck-content a {
        color: #000;
        text-decoration: underline;
    }

    .ck-content .image img {
        max-width: 100% !important;
    }

    .ck-content table {
        border: 1px solid #000;
    }

    .ck-content table thead {
        background: #eee !important;
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }

    .ck-content .info-box {
        border: 1px solid #ccc;
    }
}

/* ==========================================================================
   17. Accessibility Enhancements
   ========================================================================== */

/* Focus states */
.ck-content a:focus,
.ck-content button:focus,
.ck-content input:focus,
.ck-content textarea:focus,
.ck-content select:focus {
    outline: 3px solid rgba(0, 168, 204, 0.4);
    outline-offset: 2px;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    .ck-content *,
    .ck-content *::before,
    .ck-content *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* High contrast mode */
@media (prefers-contrast: high) {
    .ck-content {
        --border-color: #000;
    }

    .ck-content table {
        border: 2px solid #000;
    }

    .ck-content blockquote {
        border-width: 5px;
    }
}

/* ==========================================================================
   18. Utility Classes
   ========================================================================== */

/* Text alignment */
.ck-content .text-center {
    text-align: center;
}

.ck-content .text-left {
    text-align: left;
}

.ck-content .text-right {
    text-align: right;
}

.ck-content .text-justify {
    text-align: justify;
}

/* Text colors */
.ck-content .text-primary {
    color: #00a8cc;
}

.ck-content .text-secondary {
    color: #718096;
}

.ck-content .text-success {
    color: #48bb78;
}

.ck-content .text-warning {
    color: #ed8936;
}

.ck-content .text-danger {
    color: #fc8181;
}

.ck-content .text-muted {
    color: #a0aec0;
}

/* Spacing utilities */
.ck-content .mt-0 {
    margin-top: 0;
}

.ck-content .mt-1 {
    margin-top: 0.5em;
}

.ck-content .mt-2 {
    margin-top: 1em;
}

.ck-content .mt-3 {
    margin-top: 1.5em;
}

.ck-content .mb-0 {
    margin-bottom: 0;
}

.ck-content .mb-1 {
    margin-bottom: 0.5em;
}

.ck-content .mb-2 {
    margin-bottom: 1em;
}

.ck-content .mb-3 {
    margin-bottom: 1.5em;
}

.ck-content .my-2 {
    margin-top: 1em;
    margin-bottom: 1em;
}

/* ==========================================================================
   19. Editor-Specific Overrides
   ========================================================================== */

/* Selection styling */
.ck-content ::selection {
    background: #00a8cc;
    color: #fff;
}

/* Placeholder text */
.ck-content [data-placeholder]::before {
    content: attr(data-placeholder);
    color: #a0aec0;
    pointer-events: none;
    position: absolute;
}

/* ==========================================================================
   End of CKEditor 5 Content Styles
   ========================================================================== */