@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Playfair+Display:wght@500;600;700&display=swap');

body,
html {
    overflow-x: hidden;
}


html {
    scroll-behavior: smooth;
    overscroll-behavior: contain;
}

:root {
    --ink: #172a25;
    --muted: #718079;
    --green: #25634f;
    --green-dark: #164637;
    --mint: #edf4ef;
    --cream: #f7f6f1;
    --line: #e3e8e3;
    --gold: #c99b58;
    --white: #fff;
    --red: #a93d36
}

* {
    box-sizing: border-box
}

body {
    margin: 0;
    background: #f4f6f3;
    color: var(--ink);
    font: 15px/1.6 'DM Sans', sans-serif
}

a {
    color: var(--green);
    text-decoration: none
}

a:hover {
    color: var(--green-dark)
}

.topbar {
    height: 72px;
    padding: 0 max(calc((100vw - 1160px)/2), 28px);
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: white;
    border-bottom: 1px solid var(--line)
}

.brand {
    font: 600 21px 'Playfair Display', serif;
    color: var(--green-dark)
}

.brand span {
    font: 500 12px 'DM Sans', sans-serif;
    color: var(--muted);
    margin-left: 8px
}

.topbar nav {
    display: flex;
    align-items: center;
    gap: 24px
}

.topbar nav form {
    margin: 0
}

.link-button,
.danger-link {
    border: 0;
    background: none;
    padding: 0;
    font: inherit;
    color: var(--muted);
    cursor: pointer
}

.container {
    max-width: 1120px;
    margin: 42px auto 88px;
    padding: 0 24px
}

.topbar+main {
    min-height: calc(100vh - 140px)
}

footer {
    padding: 28px;
    text-align: center;
    color: var(--muted);
    font-size: 12px
}

h1,
h2,
h3 {
    font-family: 'Playfair Display', serif;
    line-height: 1.2
}

h1 {
    font-size: 38px;
    margin: 3px 0 8px
}

h2 {
    font-size: 24px
}

.muted {
    color: var(--muted);
    margin: 0
}

.eyebrow {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .17em;
    color: var(--green);
    margin: 0 0 9px
}

.page-heading {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 0 0 28px
}

.button {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    min-height: 44px;
    border-radius: 7px;
    padding: 0 18px;
    font: 600 13px 'DM Sans', sans-serif;
    cursor: pointer;
    border: 1px solid transparent
}

.button.primary {
    background: var(--green);
    color: white
}

.button.primary:hover {
    background: var(--green-dark)
}

.button.secondary {
    background: white;
    border-color: var(--line);
    color: var(--ink)
}

.empty,
.login-card,
.form-card,
.table-wrap {
    background: white;
    border: 1px solid var(--line);
    border-radius: 12px;
    box-shadow: 0 6px 24px #18352a08
}

.empty {
    text-align: center;
    padding: 72px 20px
}

.empty h2 {
    margin: 8px 0
}

.empty p {
    color: var(--muted);
    margin: 0 0 24px
}

.empty-icon {
    margin: auto;
    color: var(--green);
    font-size: 25px;
    background: var(--mint);
    width: 54px;
    height: 54px;
    display: grid;
    place-items: center;
    border-radius: 50%
}

.table-wrap {
    overflow: auto
}

table {
    width: 100%;
    border-collapse: collapse;
    text-align: left
}

th {
    font-size: 10px;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--muted);
    background: #fbfcfa
}

th,
td {
    padding: 17px 20px;
    border-bottom: 1px solid var(--line)
}

tbody tr:last-child td {
    border: 0
}

td small {
    display: block;
    color: var(--muted);
    font-size: 12px
}

.badge {
    font-size: 11px;
    padding: 4px 9px;
    border-radius: 20px;
    background: #f0f1ed
}

.badge.published {
    background: #e7f3ec;
    color: var(--green)
}

.badge.archived {
    background: #f1eeee;
    color: #776d6d
}

.actions {
    white-space: nowrap;
    display: flex;
    gap: 14px;
    align-items: center
}

.actions form {
    display: inline
}

.danger-link {
    color: var(--red);
    font-size: 12px
}

.back {
    display: inline-block;
    color: var(--muted);
    font-size: 13px;
    margin-bottom: 20px
}

.editor-form {
    display: grid;
    gap: 18px
}

.form-card {
    padding: 28px
}

.section-title {
    display: flex;
    gap: 15px;
    align-items: flex-start;
    margin-bottom: 22px
}

.section-title>span {
    background: var(--mint);
    color: var(--green);
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    font-size: 11px;
    font-weight: 700;
    flex: none
}

.section-title h2 {
    font-size: 22px;
    margin: 0 0 3px
}

.section-title p {
    font-size: 13px;
    color: var(--muted);
    margin: 0
}

.grid {
    display: grid;
    gap: 16px
}

.grid.two {
    grid-template-columns: 1fr 1fr
}

label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    color: #40534c
}

input,
textarea,
select {
    width: 100%;
    display: block;
    margin-top: 6px;
    border: 1px solid #dfe5df;
    border-radius: 6px;
    padding: 11px 12px;
    font: 14px 'DM Sans', sans-serif;
    color: var(--ink);
    background: #fff
}

textarea {
    resize: vertical
}

input:focus,
textarea:focus,
select:focus {
    outline: 2px solid #c4ded0;
    border-color: #78a58d
}

.spaced {
    margin-top: 16px
}

.day-editor {
    background: #f8faf8;
    border: 1px solid var(--line);
    padding: 18px;
    border-radius: 9px;
    margin: 0 0 12px;
    display: grid;
    gap: 13px
}

.day-top {
    display: flex;
    justify-content: space-between;
    align-items: center
}

.day-number {
    color: var(--green);
    font-size: 13px
}

.package-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px
}

.package-editor {
    border: 1px solid var(--line);
    border-radius: 9px;
    padding: 18px
}

.package-heading {
    display: flex;
    align-items: center;
    gap: 9px;
    margin: 0 0 12px
}

.package-heading h3 {
    font-size: 19px;
    margin: 0
}

.package-editor label+label {
    margin-top: 12px
}

.tier-dot {
    width: 10px;
    height: 10px;
    display: inline-block;
    border-radius: 50%;
    background: #91aa8e
}

.tier-dot.midrange {
    background: #4d9580
}

.tier-dot.luxury {
    background: #c39a50
}

.tier-dot.high_end {
    background: #586b8b
}

.form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px
}

.error,
.notice {
    padding: 12px 16px;
    border-radius: 7px;
    background: #fff0ee;
    color: #933c35;
    margin: 0 0 18px;
    font-size: 13px
}

.notice {
    background: #e9f4ec;
    color: var(--green)
}

.login-card {
    max-width: 430px;
    margin: 70px auto;
    padding: 34px
}

.login-card h1 {
    font-size: 32px
}

.stack {
    display: grid;
    gap: 17px;
    margin-top: 25px
}

.preview-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 22px
}

.preview-actions .back {
    margin: 0
}

.action-row {
    display: flex;
    gap: 10px
}

.action-row form {
    margin: 0
}

.itinerary-document {
    max-width: 940px;
    margin: 0 auto;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 32px #18352a0a
}

.hero {
    padding: 70px 8%;
    background: linear-gradient(120deg, #173e32, #32664e);
    color: white
}

.hero .eyebrow {
    color: #c5d8c8
}

.hero h1 {
    font-size: 46px;
    max-width: 700px;
    margin: 12px 0 22px
}

.hero-meta {
    display: flex;
    gap: 24px;
    color: #dbe7df;
    font-size: 13px
}

.overview {
    padding: 43px 8%;
    border-bottom: 1px solid var(--line)
}

.overview>p:last-child {
    font: 18px/1.8 'Playfair Display', serif;
    max-width: 760px;
    margin: 0
}

.itinerary-days,
.options {
    padding: 42px 8%
}

.preview-day {
    display: grid;
    grid-template-columns: 220px 1fr;
    gap: 24px;
    align-items: center;
    padding: 22px 0;
    border-bottom: 1px solid var(--line)
}

.preview-day:last-child {
    border-bottom: 0
}

.preview-day img {
    width: 220px;
    height: 150px;
    object-fit: cover;
    border-radius: 8px;
    background: var(--mint)
}

.day-kicker {
    font-size: 10px;
    letter-spacing: .15em;
    color: var(--green);
    font-weight: 700
}

.preview-day h2 {
    margin: 3px 0 6px;
    font-size: 22px
}

.preview-day p {
    margin: 0;
    color: #53635c;
    white-space: normal
}

.options {
    background: var(--cream)
}

.options>h2 {
    margin: 0 0 24px;
    font-size: 28px
}

.option-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 13px
}

.option-card {
    padding: 22px;
    background: white;
    border: 1px solid var(--line);
    border-radius: 8px
}

.option-card h3 {
    display: inline-block;
    margin: 0 0 12px 8px;
    font-size: 20px
}

.option-card .price {
    font-size: 23px;
    font-weight: 700;
    color: var(--green-dark);
    margin: 0 0 18px
}

.price small {
    font-size: 10px;
    color: var(--muted);
    font-weight: 500
}

.option-card h4 {
    margin: 15px 0 4px;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: .1em;
    color: var(--muted)
}

.option-card p:not(.price) {
    font-size: 13px;
    margin: 0;
    color: #495a52
}

.document-footer {
    display: flex;
    justify-content: space-between;
    padding: 26px 8%;
    color: var(--muted);
    font-size: 12px
}

.document-footer strong {
    color: var(--green-dark)
}

@media(max-width:700px) {
    .container {
        margin: 28px auto 55px;
        padding: 0 16px
    }

    .page-heading {
        align-items: flex-start;
        gap: 15px;
        flex-direction: column
    }

    h1 {
        font-size: 31px
    }

    .grid.two,
    .package-grid,
    .option-grid {
        grid-template-columns: 1fr
    }

    .form-card {
        padding: 20px
    }

    .hero {
        padding: 48px 7%
    }

    .hero h1 {
        font-size: 36px
    }

    .preview-day {
        grid-template-columns: 1fr;
        gap: 14px
    }

    .preview-day img {
        width: 100%;
        height: 210px
    }

    .action-row {
        flex-wrap: wrap;
        justify-content: flex-end
    }

    .preview-actions {
        align-items: flex-start;
        gap: 10px
    }

    .document-footer {
        gap: 8px;
        flex-direction: column
    }

    .topbar {
        padding: 0 18px
    }

    .brand span {
        display: none
    }
}

@media print {
    body {
        background: white
    }

    .topbar,
    footer,
    .preview-actions {
        display: none !important
    }

    .container {
        margin: 0;
        padding: 0;
        max-width: none
    }

    .itinerary-document {
        box-shadow: none;
        border: 0
    }

    .hero,
    .options {
        print-color-adjust: exact;
        -webkit-print-color-adjust: exact
    }

    .preview-day,
    .option-card {
        break-inside: avoid
    }
}