.travel-journal-page {
    min-height: calc(100vh - 250px);
    background: var(--bg-color, #f7f7f7);
}

.travel-journal-hero,
.travel-journal-panel,
.travel-journal-card,
.travel-day-card,
.travel-entry-card,
.travel-editor-inspector {
    background: #fff;
    border: 1px solid rgba(0, 0, 0, .08);
    border-radius: var(--default-radius, .6rem);
    box-shadow: 0 8px 24px rgba(0, 0, 0, .04);
}

.travel-journal-hero {
    position: relative;
    overflow: hidden;
    padding: clamp(1.5rem, 4vw, 3.5rem);
}

.travel-journal-hero::after {
    position: absolute;
    right: -36px;
    bottom: -60px;
    width: 220px;
    height: 220px;
    border: 28px solid rgba(35, 168, 213, .12);
    border-radius: 50%;
    content: "";
}

.travel-journal-eyebrow {
    color: var(--bs-primary, #23a8d5);
    font-size: .78rem;
    font-weight: 700;
    letter-spacing: .14em;
    text-transform: uppercase;
}

.travel-journal-hero h1 {
    max-width: 760px;
    margin: .55rem 0 1rem;
    font-size: clamp(1.9rem, 4vw, 3.4rem);
    line-height: 1.08;
}

.travel-journal-hero p {
    max-width: 650px;
    margin-bottom: 0;
    color: #666;
    font-size: 1.1rem;
}

.travel-journal-route {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    gap: .55rem;
    margin-top: 1.5rem;
    color: #32446c;
}

.travel-journal-route span {
    width: 10px;
    height: 10px;
    border: 3px solid #23a8d5;
    border-radius: 50%;
    background: #fff;
}

.travel-journal-route i {
    width: 54px;
    border-top: 2px dashed rgba(50, 68, 108, .35);
}

.travel-journal-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.25rem;
}

.travel-journal-card {
    overflow: hidden;
    transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}

.travel-journal-card:hover {
    transform: translateY(-2px);
    border-color: rgba(35, 168, 213, .35);
    box-shadow: 0 14px 32px rgba(0, 0, 0, .08);
}

.travel-journal-card-cover {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16 / 9;
    background: #efefef;
}

.travel-journal-card-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .4s ease;
}

.travel-journal-card:hover .travel-journal-card-cover img {
    transform: scale(1.05);
}

.travel-journal-card-body {
    padding: 1.15rem;
}

.travel-journal-meta {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem 1rem;
    color: #777;
    font-size: .88rem;
}

.travel-journal-status {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    padding: .32rem .7rem;
    border-radius: 999px;
    background: #ccd2e0;
    color: #32446c;
    font-size: .78rem;
    font-weight: 700;
}

.travel-journal-status.is-published {
    background: rgba(34, 214, 140, .16);
    color: #167a54;
}

.travel-editor-shell {
    display: grid;
    grid-template-columns: minmax(0, 7fr) minmax(340px, 5fr);
    gap: 1.25rem;
    align-items: start;
}

.travel-editor-toolbar {
    position: sticky;
    z-index: 100;
    top: 0;
    padding: .85rem;
    background: rgba(247, 247, 247, .96);
    border-bottom: 1px solid rgba(0, 0, 0, .08);
}

.travel-editor-inspector {
    position: sticky;
    top: 88px;
    overflow: hidden;
}

.travel-editor-inspector-body {
    padding: 1rem;
    max-height: calc(100vh - 130px);
    overflow-y: auto;
}

.travel-day-card {
    overflow: hidden;
    margin-bottom: 1rem;
}

.travel-day-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem 1.1rem;
    border-bottom: 1px solid rgba(0, 0, 0, .08);
}

.travel-day-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 58px;
    height: 30px;
    margin-right: .6rem;
    border-radius: 999px;
    background: #23a8d5;
    color: #fff;
    font-size: .78rem;
    font-weight: 700;
}

.travel-day-entries {
    position: relative;
    padding: 1rem;
}

.travel-day-entries::before {
    position: absolute;
    top: 1.2rem;
    bottom: 1.2rem;
    left: 31px;
    border-left: 2px dashed rgba(35, 168, 213, .25);
    content: "";
}

.travel-entry-card {
    position: relative;
    display: grid;
    grid-template-columns: 40px minmax(0, 1fr) auto;
    gap: .75rem;
    align-items: center;
    margin-bottom: .65rem;
    padding: .75rem;
    cursor: pointer;
    transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}

.travel-entry-card:hover,
.travel-entry-card.is-active {
    transform: translateY(-2px);
    border-color: rgba(35, 168, 213, .45);
    box-shadow: 0 14px 32px rgba(0, 0, 0, .08);
}

.travel-entry-icon,
.travel-map-marker {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: #23a8d5;
    color: #fff;
}

.travel-entry-card h3 {
    margin: 0 0 .2rem;
    font-size: 1rem;
}

.travel-entry-card p {
    margin: 0;
    color: #777;
    font-size: .84rem;
}

.travel-entry-actions {
    display: flex;
    gap: .35rem;
}

.travel-icon-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: #efefef;
    color: #32446c;
}

.travel-icon-button:hover {
    background: #23a8d5;
    color: #fff;
}

.travel-add-entry {
    position: relative;
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
    margin-left: 50px;
}

.travel-wysiwyg-toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: .35rem;
    padding: .5rem;
    border: 1px solid rgba(0, 0, 0, .08);
    border-bottom: 0;
    border-radius: .6rem .6rem 0 0;
    background: #efefef;
}

.travel-wysiwyg {
    min-height: 190px;
    padding: .9rem;
    border: 1px solid rgba(0, 0, 0, .08);
    border-radius: 0 0 .6rem .6rem;
    background: #fff;
    line-height: 1.65;
    outline: none;
}

.travel-wysiwyg:focus {
    border-color: rgba(35, 168, 213, .65);
    box-shadow: 0 0 0 .2rem rgba(35, 168, 213, .12);
}

.travel-editor-map,
.travel-public-map {
    min-height: 320px;
    background: #efefef;
}

.travel-public-map {
    height: min(68vh, 660px);
    border-radius: var(--default-radius, .6rem);
}

.travel-map-marker {
    width: 32px;
    height: 32px;
    border: 3px solid #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, .2);
    font-size: .78rem;
    font-weight: 700;
}

.travel-place-results {
    max-height: 260px;
    overflow-y: auto;
    border: 1px solid rgba(0, 0, 0, .08);
    border-radius: .6rem;
    background: #fff;
}

.travel-place-result {
    width: 100%;
    padding: .7rem .8rem;
    border: 0;
    border-bottom: 1px solid rgba(0, 0, 0, .08);
    background: #fff;
    text-align: left;
}

.travel-place-result:hover {
    background: #efefef;
}

.travel-media-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: .75rem;
}

.travel-media-item {
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(0, 0, 0, .08);
    border-radius: .6rem;
    background: #fff;
}

.travel-media-item img,
.travel-media-item iframe {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    border: 0;
    object-fit: cover;
}

.travel-media-remove {
    position: absolute;
    top: .4rem;
    right: .4rem;
}

.travel-journal-cover-preview {
    overflow: hidden;
    aspect-ratio: 16 / 9;
    border: 1px solid rgba(0, 0, 0, .08);
    border-radius: .6rem;
    background: #efefef;
}

.travel-journal-cover-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.travel-public-hero {
    position: relative;
    min-height: 360px;
    overflow: hidden;
    border-radius: var(--default-radius, .6rem);
    background: #32446c;
}

.travel-public-hero img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.travel-public-hero::after {
    position: absolute;
    inset: 0;
    background: rgba(40, 40, 42, .52);
    content: "";
}

.travel-public-hero-content {
    position: relative;
    z-index: 1;
    display: flex;
    min-height: 360px;
    flex-direction: column;
    justify-content: flex-end;
    padding: clamp(1.4rem, 5vw, 3.5rem);
    color: #fff;
}

.travel-public-hero h1 {
    max-width: 820px;
    font-size: clamp(2rem, 5vw, 4rem);
    line-height: 1.05;
    text-shadow: 0 0 5px #000;
}

.travel-day-tabs {
    display: flex;
    gap: .5rem;
    overflow-x: auto;
    padding: .45rem;
    border-radius: 999px;
    background: #efefef;
}

.travel-day-tab {
    flex: 0 0 auto;
    padding: .65rem 1rem;
    border: 0;
    border-radius: 999px;
    background: transparent;
    color: #666;
}

.travel-day-tab.is-active {
    background: #fff;
    color: #23a8d5;
    box-shadow: 0 2px 20px rgba(0, 0, 0, .15);
}

.travel-public-entry {
    position: relative;
    padding-left: 62px;
    margin-bottom: 1.25rem;
}

.travel-public-entry::before {
    position: absolute;
    top: 42px;
    bottom: -1.45rem;
    left: 19px;
    border-left: 2px dashed rgba(35, 168, 213, .3);
    content: "";
}

.travel-public-entry:last-child::before {
    display: none;
}

.travel-public-entry-marker {
    position: absolute;
    top: 0;
    left: 0;
}

.travel-public-entry-card {
    padding: 1.2rem;
    background: #fff;
    border: 1px solid rgba(0, 0, 0, .08);
    border-radius: .6rem;
    box-shadow: 0 8px 24px rgba(0, 0, 0, .04);
}

.travel-empty {
    padding: 3rem 1.5rem;
    border: 2px dashed #6c757d;
    border-radius: .6rem;
    color: #666;
    text-align: center;
}

@media (max-width: 991.98px) {
    .travel-journal-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .travel-editor-shell {
        grid-template-columns: 1fr;
    }

    .travel-editor-inspector {
        position: static;
    }

    .travel-editor-inspector-body {
        max-height: none;
    }
}

@media (max-width: 767.98px) {
    .travel-journal-grid {
        grid-template-columns: 1fr;
    }

    .travel-public-map {
        height: 60vh;
    }

    .travel-entry-card {
        grid-template-columns: 36px minmax(0, 1fr);
    }

    .travel-entry-actions {
        grid-column: 2;
    }

    .travel-add-entry {
        margin-left: 0;
    }

    .travel-media-grid {
        grid-template-columns: 1fr;
    }
}

@media (prefers-reduced-motion: reduce) {
    .travel-journal-card,
    .travel-journal-card-cover img,
    .travel-entry-card {
        transition: none;
    }
}
