@font-face {
    font-family: Ubuntu;
    src: url("fonts/Ubuntu-R.ttf") format("truetype");
    font-style: normal;
    font-weight: 400;
    font-display: swap;
}
@font-face {
    font-family: Ubuntu;
    src: url("fonts/Ubuntu-M.ttf") format("truetype");
    font-style: normal;
    font-weight: 500;
    font-display: swap;
}
@font-face {
    font-family: Ubuntu;
    src: url("fonts/Ubuntu-B.ttf") format("truetype");
    font-style: normal;
    font-weight: 700;
    font-display: swap;
}
:root {
    color-scheme: light;
    --navy: #21294e;
    --ink: #252b2e;
    --muted: #505953;
    --olive: #525d40;
    --olive-wash: rgb(165 174 123 / 20%);
    --line: #d9ded4;
    font-family: Ubuntu;
    font-synthesis: none;
    color: var(--ink);
    background: #eef0ec;
}
*, *::before, *::after { box-sizing: border-box; }
body, h1, h2, p, ol, ul { margin: 0; }
button, a { font-family: inherit; }
a { color: inherit; }
a:focus-visible, button:focus-visible { outline: 2px solid #087eaf; outline-offset: 3px; }
.tour-view { width: 210mm; margin-inline: auto; padding: 16px 0 32px; }
.tour-tools {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 14px;
    margin-bottom: 14px;
    color: var(--navy);
    font-size: 14px;
}
.tour-tools a { text-underline-offset: 3px; }
.tour-tools button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 42px;
    padding: 8px 15px;
    border: 1px solid var(--navy);
    border-radius: 6px;
    color: white;
    background: var(--navy);
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
}
.tour-tools button:hover { background: #353f69; }
.tour-sheet {
    width: 210mm;
    height: 297mm;
    padding: 2.5mm 8.5mm 4mm;
    display: grid;
    grid-template-rows: 37mm 223mm 25mm;
    align-content: start;
    position: relative;
    overflow: hidden;
    background: white;
    box-shadow: 0 2px 6px #192b1914, 0 15px 45px #192b191f;
}
.tour-header { position: relative; }
.tour-wave {
    position: absolute;
    z-index: 0;
    pointer-events: none;
    top: -2.5mm;
    left: -8.5mm;
    width: 210mm;
    height: 32mm;
}
.tour-code {
    position: absolute;
    top: 3.5mm;
    right: 0;
    padding: 1mm 2mm;
    border: .25mm solid var(--navy);
    border-radius: .7mm;
    background: white;
    font-size: 8.3pt;
    font-weight: 700;
    line-height: 1;
    font-variant-numeric: tabular-nums;
    color: var(--navy);
    white-space: nowrap;
}
.tour-logo { position: absolute; top: 15.5mm; left: 1mm; width: 49mm; height: auto; }
.tour-heading {
    position: absolute;
    top: 16.1mm;
    bottom: 2mm;
    right: 9mm;
    left: 56mm;
    display: grid;
    align-content: center;
    text-align: center;
    color: var(--navy);
}
.tour-heading h1 {
    font-size: 15pt;
    font-weight: 700;
    line-height: 1.05;
    max-height: 11.2mm;
    overflow: hidden;
    overflow-wrap: anywhere;
    text-wrap: balance;
}
.tour-heading p {
    margin-top: 1.55mm;
    font-size: 8.5pt;
    font-weight: 500;
    line-height: 1.2;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    letter-spacing: .055em;
}
.tour-body {
    position: relative;
    display: grid;
    grid-template-rows: 155mm 42mm 26mm;
    padding-right: 50.4mm;
}
.tour-itinerary {
    display: grid;
    grid-template-rows: repeat(9, minmax(0, 1fr));
    row-gap: .7mm;
    padding: 0;
    list-style: none;
}
.tour-stop { min-height: 0; }
.tour-stop-copy { height: 100%; }
.tour-stop-copy {
    display: grid;
    align-content: start;
    gap: .65mm;
    min-width: 0;
    padding: 1.25mm 2.2mm 0;
    overflow: hidden;
    background: white;
}
.tour-stop:nth-child(odd):not(.tour-stop-empty) .tour-stop-copy { background: var(--olive-wash); }
.tour-stop-heading {
    display: grid;
    grid-template-columns: 28mm minmax(0, 1fr);
    align-items: baseline;
    min-height: 3.45mm;
    column-gap: 1.3mm;
    color: var(--navy);
    line-height: 1.15;
    font-size: 9pt;
    font-weight: 700;
}
.tour-stop-heading h2, .tour-time {
    font: inherit;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}
.tour-time {
    color: var(--olive);
    font-variant-numeric: tabular-nums;
}
.tour-description {
    height: 9.6mm;
    font-size: 8.5pt;
    line-height: 3.2mm;
    overflow: hidden;
    overflow-wrap: anywhere;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
}
.tour-description { white-space: pre-line; }
.is-clipped { cursor: help; }
.tour-warning:not([hidden]) { padding: 10px 12px; margin-bottom: 10px; border: 1px solid #d7a86a; color: #6b391b; background: #fff7e9; font-size: 13px; }
.tour-view:has(.tour-warning:not([hidden])) .is-clipped { outline: 1px dashed #a16030; outline-offset: 1px; }
.tour-photo {
    position: absolute;
    top: calc(var(--slot) * 24.85mm);
    right: 0;
    width: 48mm;
    height: 24.15mm;
    overflow: hidden;
    background: #f7f8f4;
}
.tour-stop-empty .tour-photo { background: white; }
.tour-photo img { display: block; width: 100%; height: 100%; object-fit: cover; }
.tour-services {
    padding: 3.1mm 0 1mm;
    display: grid;
    grid-template-columns: 1.24fr 1fr;
    gap: 3.4mm;
    min-height: 0;
}
.tour-services section {
    min-width: 0;
    height: 100%;
    min-height: 0;
    display: grid;
    grid-template-rows: auto minmax(0, 1fr);
    border: 1px solid var(--line);
    overflow: hidden;
}
.tour-services h2, .tour-prices h2 {
    background: #eff2ea;
    color: var(--olive);
    font-size: 9pt;
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: .055em;
    padding: 1.3mm 2.25mm;
}
.tour-services ul {
    align-self: stretch;
    padding: .95mm 1.4mm .55mm 5.6mm;
    list-style-type: circle;
    font-size: 8.1pt;
    line-height: 1.15;
    overflow-wrap: anywhere;
    overflow: hidden;
}
.tour-services li + li { margin-top: .17mm; }
.tour-services li::marker { color: var(--olive); }
.tour-prices { padding-top: 1.25mm; overflow: hidden; }
.tour-prices h2 { background: var(--navy); color: white; }
.tour-prices table {
    width: 100%;
    table-layout: fixed;
    border-collapse: collapse;
    border: 1px solid var(--line);
    font-size: 8.4pt;
    line-height: 1.15;
    text-align: center;
    font-variant-numeric: tabular-nums;
}
.tour-prices th, .tour-prices td { height: 4.45mm; padding: .3mm 1mm; border-right: 1px solid var(--line); }
.tour-prices thead { color: var(--navy); background: #edf1f4; }
.tour-prices tbody tr { border-top: 1px solid #e8ece6; }
.tour-prices tbody tr:nth-child(2n) { background: #f7f8f4; }
.tour-prices th:first-child { width: 29mm; }
.tour-prices th span, .tour-prices td span { display: block; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.tour-footer {
    align-self: end;
    min-height: 21mm;
    padding: 2.25mm 0 0;
    display: grid;
    grid-template-columns: 1fr 20mm 1fr;
    gap: 3mm;
    align-items: center;
    border-top: 1px solid #bfc8b6;
    font-size: 7.9pt;
    line-height: 1.36;
    color: var(--navy);
}
.tour-footer address { font-style: normal; }
.tour-footer address, .tour-links {
    border: 1px solid var(--line);
    padding: 1.6mm 2.1mm;
}
.tour-footer a { text-decoration: underline; text-decoration-color: #8695a2; text-underline-offset: .55mm; }
.tour-footer a:hover { color: #007ca8; }
.tour-license { display: block; width: 15.5mm; height: auto; margin-inline: auto; }
.tour-links { display: grid; justify-items: start; text-align: left; }

@media screen and (max-width: 835px) {
    html:not(.tour-print-mode) .tour-view { width: auto; max-width: 680px; padding: 12px 10px 22px; }
    html:not(.tour-print-mode) .tour-sheet {
        width: 100%;
        height: auto;
        display: block;
        padding: 0 13px 18px;
    }
    html:not(.tour-print-mode) .tour-header { display: grid; grid-template-columns: 1fr; gap: 12px; padding: max(55px, 12vw) 0 15px; }
    html:not(.tour-print-mode) .tour-wave { top: 0; left: -13px; width: calc(100% + 26px); height: auto; }
    html:not(.tour-print-mode) .tour-logo { position: relative; top: auto; left: auto; width: clamp(113px, 32vw, 169px); }
    html:not(.tour-print-mode) .tour-heading { position: relative; inset: auto; text-align: left; }
    html:not(.tour-print-mode) .tour-heading h1 { max-height: none; font-size: clamp(19px, 4vw, 25px); text-wrap: pretty; }
    html:not(.tour-print-mode) .tour-heading p { font-size: 11px; white-space: normal; }
    html:not(.tour-print-mode) .tour-body { display: block; padding: 0; }
    html:not(.tour-print-mode) .tour-itinerary { grid-template-rows: none; row-gap: 6px; }
    html:not(.tour-print-mode) .tour-stop { display: grid; grid-template-columns: minmax(0, 1fr) 29%; gap: 7px; }
    html:not(.tour-print-mode) .tour-stop-empty { display: none; }
    html:not(.tour-print-mode) .tour-stop-copy { padding: 8px; gap: 4px; }
    html:not(.tour-print-mode) .tour-stop-heading { display: flex; flex-direction: column; gap: 3px; font-size: 13px; min-height: 0; }
    html:not(.tour-print-mode) .tour-stop-heading h2 { white-space: normal; overflow-wrap: anywhere; }
    html:not(.tour-print-mode) .tour-description { display: block; height: auto; font-size: 12px; line-height: 1.34; }
    html:not(.tour-print-mode) .tour-photo { position: relative; inset: auto; width: auto; height: auto; }
    html:not(.tour-print-mode) .tour-photo img { position: absolute; inset: 0; min-height: 57px; }
    html:not(.tour-print-mode) .tour-services { padding-top: 13px; gap: 8px; grid-template-columns: 1fr 1fr; }
    html:not(.tour-print-mode) .tour-services section { height: auto; }
    html:not(.tour-print-mode) .tour-services h2, html:not(.tour-print-mode) .tour-prices h2 { font-size: 11px; padding: 6px 7px; }
    html:not(.tour-print-mode) .tour-services ul { padding: 6px 6px 6px 18px; font-size: 11px; }
    html:not(.tour-print-mode) .tour-prices { padding-top: 9px; }
    html:not(.tour-print-mode) .tour-prices table { font-size: 11px; }
    html:not(.tour-print-mode) .tour-prices th:first-child { width: 21%; }
    html:not(.tour-print-mode) .tour-prices th span, html:not(.tour-print-mode) .tour-prices td span { white-space: normal; overflow-wrap: anywhere; }
    html:not(.tour-print-mode) .tour-footer { margin-top: 13px; gap: 7px; font-size: 10px; grid-template-columns: 1fr auto 1fr; }
    html:not(.tour-print-mode) .tour-license { width: 43px; }
    html:not(.tour-print-mode) .tour-links a { overflow-wrap: anywhere; }
}
@media screen and (max-width: 450px) {
    html:not(.tour-print-mode) .tour-footer { grid-template-columns: minmax(0, 1fr) auto; }
    html:not(.tour-print-mode) .tour-links { grid-column: 1 / -1; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 3px 6px; justify-items: start; text-align: left; }
}
@media screen {
    body.embedded { background: white; }
    body.embedded .tour-view { padding-bottom: 14px; }
}
@page { size: A4 portrait; margin: 0; }
@media print {
    :root, body { background: white; color: var(--ink); }
    body { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
    .tour-tools, .tour-warning { display: none !important; }
    .tour-view .is-clipped { outline: 0 !important; }
    .tour-view { padding: 0; margin: 0; }
    .tour-sheet { margin: 0; box-shadow: none; break-inside: avoid; }
}


.tour-lira { width: .64em; height: .83em; vertical-align: -.05em; }

.tour-heading.has-period { top: 17mm; bottom: .4mm; }
@media screen and (max-width: 835px) {
    html:not(.tour-print-mode) .tour-heading.has-period { inset: auto; }
}
.tour-heading .tour-period {
    margin-top: .55mm;
    font-size: 7.5pt;
    letter-spacing: .015em;
    color: var(--olive);
}
.tour-period-picker {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
    padding: 8px 10px;
    color: var(--navy);
    background: white;
    border: 1px solid var(--line);
    border-radius: 6px;
    font-size: 14px;
}
.tour-period-picker select, .tour-period-picker button {
    font: inherit;
    color: inherit;
    padding: 4px 8px;
}
@media print { .tour-period-picker { display: none !important; } }
