@import url('https://fonts.googleapis.com/css2?family=Tajawal:wght@400;500;700&display=swap');

@font-face {
    font-family: "Gustavo";
    src: url("../fonts/Gustavo-Medium.woff2") format("woff2");
    font-display: swap;
}

@font-face {
    font-family: "GustavoBold";
    src: url("../fonts/Gustavo-Bold.woff2") format("woff2");
    font-display: swap;
}

.trip-rich-content {
    background: transparent;
    color: #fff;
    font-family: "Gustavo", "Tajawal", sans-serif;
    font-size: 18px;
    font-weight: 400;
    line-height: 1.65;
    text-align: start;
    overflow-wrap: anywhere;
    word-break: break-word;
    word-spacing: normal;
    letter-spacing: normal;
    white-space: normal;
}

.trip-rich-content,
.trip-rich-content p,
.trip-rich-content div,
.trip-rich-content li,
.trip-rich-content span,
.trip-rich-content a,
.trip-rich-content h1,
.trip-rich-content h2,
.trip-rich-content h3,
.trip-rich-content h4,
.trip-rich-content h5,
.trip-rich-content h6,
.trip-rich-content blockquote,
.trip-rich-content td,
.trip-rich-content th {
    font-family: "Gustavo", "Tajawal", sans-serif !important;
    letter-spacing: normal !important;
    word-spacing: normal !important;
    white-space:  pre-wrap !important;
}

.trip-rich-content p,
.trip-rich-content li,
.trip-rich-content div,
.trip-rich-content span,
.trip-rich-content a,
.trip-rich-content blockquote,
.trip-rich-content td,
.trip-rich-content th {
    line-height: 1.65 !important;
}

.trip-rich-content > :first-child {
    margin-top: 0;
}

.trip-rich-content > :last-child {
    margin-bottom: 0;
}

.trip-rich-content p,
.trip-rich-content li,
.trip-rich-content div,
.trip-rich-content blockquote,
.trip-rich-content td,
.trip-rich-content th {
    font-size: 1em;
}

.trip-rich-content p {
    margin: 0 0 0.9em;
    color: inherit;
    text-align: start;
       min-height: 1.65em;
}

.trip-rich-content h1,
.trip-rich-content h2,
.trip-rich-content h3,
.trip-rich-content h4,
.trip-rich-content h5,
.trip-rich-content h6 {
    color: #fff;
    font-family: "GustavoBold", "Gustavo", "Tajawal", sans-serif !important;
    font-weight: 700;
    line-height: 1.3 !important;
    text-align: start;
    text-transform: none;
    margin: 1.35em 0 0.45em;
}

.trip-rich-content h1 { font-size: 32px; }
.trip-rich-content h2 { font-size: 28px; }
.trip-rich-content h3 { font-size: 24px; }
.trip-rich-content h4 { font-size: 21px; }
.trip-rich-content h5 { font-size: 18px; }
.trip-rich-content h6 { font-size: 16px; }

.trip-rich-content strong,
.trip-rich-content b {
    font-weight: 700;
}

.trip-rich-content em,
.trip-rich-content i {
    font-style: italic;
}

.trip-rich-content u {
    text-decoration: underline;
    text-underline-offset: 0.12em;
}

.trip-rich-content a {
    color: #fff;
    text-decoration: underline;
    text-underline-offset: 0.12em;
}

.trip-rich-content a:hover,
.trip-rich-content a:focus {
    color: #fff;
    text-decoration: underline;
}

.trip-rich-content ul,
.trip-rich-content ol {
    margin: 0 0 0.9em;
    padding: 0;
    padding-inline-start: 1.4em;
    display: block;
}

.trip-rich-content ul {
    list-style: disc outside;
}

.trip-rich-content ol {
    list-style: decimal outside;
}

.trip-rich-content li {
    display: list-item;
    list-style: inherit;
    margin: 0.28em 0;
    text-align: start;
}

.trip-rich-content li ul,
.trip-rich-content li ol {
    margin-top: 0.28em;
    margin-bottom: 0.28em;
}

.trip-rich-content blockquote {
    margin: 0 0 0.9em;
    padding: 0 0 0 1em;
    border-left: 3px solid rgba(255, 255, 255, 0.55);
    color: #fff;
}

.trip-rich-content hr {
    border: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.35);
    margin: 1.4em 0;
}

.trip-rich-content img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0.6em 0 1em;
}

.trip-rich-content table {
    width: 100%;
    max-width: 100%;
    margin: 0 0 1em;
    border-collapse: collapse;
    overflow-wrap: anywhere;
}

.trip-rich-content th,
.trip-rich-content td {
    border: 1px solid rgba(255, 255, 255, 0.35);
    padding: 0.45em 0.6em;
    vertical-align: top;
    text-align: start;
}

.trip-rich-content caption {
    caption-side: bottom;
    margin-top: 0.4em;
    color: rgba(255, 255, 255, 0.8);
    text-align: start;
}

.trip-rich-content[dir="rtl"],
.trip-rich-content [dir="rtl"],
.trip-rich-content [dir="rtl"] p,
.trip-rich-content [dir="rtl"] li,
.trip-rich-content [dir="rtl"] span,
.trip-rich-content [dir="rtl"] a,
.trip-rich-content [dir="rtl"] h1,
.trip-rich-content [dir="rtl"] h2,
.trip-rich-content [dir="rtl"] h3,
.trip-rich-content [dir="rtl"] h4,
.trip-rich-content [dir="rtl"] h5,
.trip-rich-content [dir="rtl"] h6 {
    direction: rtl;
    text-align: start;
    font-family: "Tajawal", "Gustavo", sans-serif !important;
}

.trip-rich-content [dir="rtl"] blockquote {
    padding: 0 1em 0 0;
    border-left: 0;
    border-right: 3px solid rgba(255, 255, 255, 0.55);
}

.trip-editor-help {
    color: #5c6570;
    font-size: 13px;
    margin: 0 0 8px;
}

.trip-form-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
    margin: 0 0 1.5rem;
}

.trip-editor .note-editor.note-frame {
    border: 1px solid #d5d8de;
    border-radius: 6px;
    background: #fff;
}

.trip-editor .note-toolbar {
    background: #f6f7f9;
    border-bottom: 1px solid #e1e4ea;
    padding: 6px;
}

.trip-editor .note-btn-group {
    margin: 2px;
}

.trip-editor .note-btn {
    background: #fff;
    border-color: #d5d8de;
}

.trip-editor .note-btn:hover,
.trip-editor .note-btn:focus,
.trip-editor .note-btn.focus {
    background: #eef7f8;
    outline: 2px solid #117a8b;
    outline-offset: 1px;
}

.trip-editor .note-editing-area {
    background: #111;
}

.trip-editor .note-editor .note-editable.trip-rich-content {
    background: #111 !important;
    color: #fff !important;
    min-height: 420px;
    padding: 1.25rem 1.4rem 1.6rem;
    caret-color: #fff;
}

.trip-editor .note-placeholder {
    color: rgba(255, 255, 255, 0.55) !important;
    padding: 1.25rem 1.4rem !important;
}

.trip-editor .note-statusbar {
    background: #f6f7f9;
    border-top: 1px solid #e1e4ea;
}

#tripPreviewModal .modal-dialog {
    width: calc(100% - 1.5rem);
    max-width: 960px;
    max-height: calc(100vh - 1.5rem);
    margin: 0.75rem auto;
}

#tripPreviewModal .modal-content {
    display: flex;
    flex-direction: column;
    max-height: calc(100vh - 1.5rem);
    overflow: hidden;
    background: #1b1b1b;
    color: #fff;
    border: 0;
    border-radius: 8px;
}

#tripPreviewModal .modal-header,
#tripPreviewModal .modal-footer {
    flex-shrink: 0;
    border-color: rgba(255, 255, 255, 0.12);
}

#tripPreviewModal .modal-title {
    font-size: 1.15rem;
    font-weight: 700;
}

#tripPreviewModal .close {
    color: #fff;
    opacity: 1;
    text-shadow: none;
}

#tripPreviewModal .modal-body {
    min-height: 0;
    overflow-y: auto;
    background: #111;
}

.trip-preview-note,
.trip-preview-hint {
    color: rgba(255, 255, 255, 0.72);
    font-size: 13px;
}

.trip-preview-frame {
    background: #111;
    max-width: 55rem;
    margin: 0.75rem auto 0;
    padding: 1.5rem 1.25rem 2rem;
}

#tripPreviewModal .btn-default {
    color: #111;
    background: #fff;
}

@media (max-width: 767px) {
    .trip-rich-content {
        font-size: 16px;
    }

    .trip-rich-content h1 { font-size: 28px; }
    .trip-rich-content h2 { font-size: 24px; }
    .trip-rich-content h3 { font-size: 21px; }
    .trip-rich-content h4 { font-size: 18px; }

    .trip-editor .note-editor .note-editable.trip-rich-content {
        min-height: 320px;
        padding: 1rem;
    }

    .trip-preview-frame {
        padding: 1rem 0.85rem 1.4rem;
    }

}
