/* Itinerary tool v1 - shared styles for editor and client view.
   Visual language mirrors the approved prototype: paper background, ink text,
   hairline borders, pill buttons, teal hero on the client itinerary. */
:root {
  --ds-page: #faf8f5; --ds-ink: #1c1b1a; --ds-ink-2: #5f5b57; --ds-hairline: #e3ded8;
  --accent: #0f5257; --danger: #b3261e;
}
* { box-sizing: border-box; }
body { margin: 0; font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif; color: var(--ds-ink); background: var(--ds-page); -webkit-font-smoothing: antialiased; }
main { max-width: 680px; margin: 0 auto; padding: 28px 16px 90px; }
h1 { font-size: 26px; letter-spacing: -.01em; margin: 4px 0 6px; }
h2 { font-size: 18px; margin: 30px 0 10px; }
h3 { font-size: 15px; margin: 24px 0 6px; }
.muted { color: var(--ds-ink-2); font-size: 13px; line-height: 1.5; }
label { display: block; font-size: 13px; color: var(--ds-ink-2); margin: 12px 0 2px; }
input, textarea, select { width: 100%; padding: 9px 10px; border: 1px solid var(--ds-hairline); border-radius: 10px; font: inherit; background: #fff; color: var(--ds-ink); }
textarea { min-height: 70px; }
input:focus, textarea:focus, select:focus { outline: 2px solid var(--accent); outline-offset: -1px; border-color: transparent; }
button { font: inherit; cursor: pointer; border-radius: 999px; border: 1px solid var(--ds-hairline); background: transparent; color: var(--ds-ink); padding: 9px 16px; min-height: 40px; }
button.primary { background: var(--ds-ink); color: var(--ds-page); border-color: var(--ds-ink); }
button.danger { color: var(--danger); }
.row { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 12px; }
@media (max-width: 560px) { .grid2 { grid-template-columns: 1fr; } }
.card { background: #fff; border: 1px solid var(--ds-hairline); border-radius: 12px; padding: 14px; margin: 10px 0; }
.panel { background: #fff; border: 1px solid var(--ds-hairline); border-radius: 12px; padding: 4px 16px 14px; margin: 12px 0; }
.badge { display: inline-block; border-radius: 6px; padding: 2px 8px; font-size: 11px; font-weight: 700; letter-spacing: .5px; color: #fff; text-transform: uppercase; }
.badge.flight { background: #0e6ba8; } .badge.stay { background: #6b4fa0; } .badge.transfer { background: #b26a00; }
.badge.activity { background: #2e7d32; } .badge.dining { background: #b3261e; } .badge.note { background: #5f6368; }
.item-head { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.item-title { font-weight: 700; font-size: 15px; }
.item-meta { color: var(--ds-ink-2); font-size: 13px; margin-top: 2px; }
.item-actions { margin-top: 8px; display: flex; gap: 8px; flex-wrap: wrap; }
.item-actions button { padding: 4px 12px; min-height: 32px; font-size: 13px; }
.day { margin-top: 26px; padding-bottom: 5px; border-bottom: 1px solid var(--ds-hairline); font-weight: 700; font-size: 15px; }
.private-tag { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .5px; color: var(--danger); border: 1px solid currentColor; border-radius: 6px; padding: 1px 6px; }
.linkbox { word-break: break-all; background: var(--ds-page); border: 1px solid var(--ds-hairline); border-radius: 8px; padding: 8px 10px; font-size: 12px; font-family: ui-monospace, Menlo, Consolas, monospace; }

/* Client itinerary */
.hero { background: var(--accent); color: #fff; border-radius: 16px; padding: 24px 20px; margin: 8px 0 16px; }
.hero .eyebrow { text-transform: uppercase; letter-spacing: 2px; font-size: 11px; opacity: .8; }
.hero h1 { font-size: 25px; margin: 10px 0 6px; color: #fff; }
.hero .sub { opacity: .93; font-size: 14px; line-height: 1.55; }
#map { height: 320px; border-radius: 12px; margin: 16px 0 4px; border: 1px solid var(--ds-hairline); }
.attribution { font-size: 11px; color: var(--ds-ink-2); margin: 2px 0 10px; }
.v-item { display: flex; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--ds-hairline); page-break-inside: avoid; }
.v-ico { width: 14px; flex: none; padding-top: 5px; }
.v-dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; }
.v-dot.flight { background: #0e6ba8; } .v-dot.stay { background: #6b4fa0; } .v-dot.transfer { background: #b26a00; }
.v-dot.activity { background: #2e7d32; } .v-dot.dining { background: #b3261e; } .v-dot.note { background: #5f6368; }
.v-title { font-weight: 700; font-size: 15px; }
.v-meta { color: var(--ds-ink-2); font-size: 13px; margin-top: 2px; }
.v-ref { color: var(--ds-ink-2); font-size: 12px; margin-top: 3px; }
main a { color: var(--ds-ink-2); }
a.loc { color: inherit; text-decoration: underline; text-decoration-style: dotted; text-underline-offset: 2px; }
button.cal { font: inherit; font-size: 12px; padding: 3px 10px; border: 1px solid #d8d3c8; border-radius: 999px; background: #fff; cursor: pointer; vertical-align: middle; margin-left: 8px; }
button.cal:hover { background: #f3efe6; }
@media print { button.cal { display: none !important; } }

/* Location typeahead suggestions */
#i-fields label { position: relative; }
.suggest { position: absolute; left: 0; right: 0; top: 100%; background: #fff; border: 1px solid #bbb; border-radius: 6px; box-shadow: 0 4px 12px rgba(0,0,0,.15); z-index: 20; max-height: 190px; overflow: auto; }
.suggest button { display: block; width: 100%; text-align: left; padding: 6px 10px; border: 0; background: none; cursor: pointer; font-size: 14px; }
.suggest button:hover { background: #e0f2f1; }

#login-overlay { max-width: 420px; margin: 48px auto; }
.login-card h1 { margin-top: 0; }
.btn-block { display: block; text-align: center; padding: 10px; border-radius: 6px; background: #1a56db; color: #fff; text-decoration: none; }
.center { text-align: center; }
.linklike { background: none; border: none; color: #1a56db; cursor: pointer; padding: 0; font: inherit; }
.suggest [role=option][aria-selected=true] { background: #e1f0f1; outline: 2px solid #0e5860; }

/* Linen & Latitude: approved light luxury direction. Screen-only so the
   existing low-ink PDF, static map fallback and export behavior stay intact. */
@media screen {
:root { --ds-page:#fcfaf6; --ds-ink:#183c3e; --ds-ink-2:#56615d; --ds-hairline:#dce4dc; --accent:#174f53; }
body { font-family:Arial,Helvetica,sans-serif; line-height:1.55; }
main { max-width:900px; padding:36px 28px 90px; }
h1,h2 {font-family:Georgia,'Times New Roman',serif;font-weight:400;letter-spacing:-.025em;line-height:1.16;}
h1 {font-size:40px;margin:12px 0;} h2 {font-size:29px;margin:30px 0 16px;} h3 {font-size:17px;}
.brand {font-size:11px;font-weight:600;letter-spacing:.16em;text-transform:uppercase;color:#174f53;border-bottom:1px solid #b08a4c;padding-bottom:18px;margin-bottom:22px;}
.muted {line-height:1.65;}
button {min-height:44px;border-radius:8px;border-color:#b9cac1;background:#fff;font-size:13px;font-weight:600;padding:10px 16px;}
button.primary,.btn-block {background:#174f53;color:#fff;border-color:#174f53;border-radius:8px;}
button:hover {background:#edf4ef;} button.primary:hover {background:#103d40;}
button:focus-visible,a:focus-visible {outline:3px solid #174f53;outline-offset:3px;}
button:disabled {cursor:wait;opacity:.65;}
input,textarea,select {min-height:46px;border-radius:7px;border-color:#b9cac1;padding:11px 12px;margin-top:6px;}
label {margin-top:18px;} input[type=checkbox] {min-height:20px;min-width:20px;accent-color:#174f53;}
.panel {padding:12px 24px 22px;margin:20px 0;border-radius:14px;}
.card {padding:22px;border-radius:14px;margin:14px 0;}
#trips .card:nth-child(3n+1) {background:#e1eee8;border-color:#cedfd5;}
#trips .card:nth-child(3n+2) {background:#f7e7df;border-color:#e9d8ce;}
#trips .card:nth-child(3n) {background:#ece8f4;border-color:#dcd7e7;}
.item-title {font-size:17px;} .item-meta {line-height:1.65;} .item-actions {margin-top:14px;gap:10px;}
.item-actions button {min-height:40px;padding:8px 13px;}
.day {font-family:Georgia,serif;font-size:24px;font-weight:400;line-height:1.3;margin-top:34px;padding:0 0 14px;border-color:#b08a4c;display:flex;align-items:center;justify-content:space-between;gap:14px;flex-wrap:wrap;}
button.cal {font-family:Arial,sans-serif;font-size:12px;min-height:44px;margin:0;border-radius:8px;}
.hero {background:#eff5ee url('images/linen-palette.png') center/cover no-repeat;color:#183c3e;border-radius:18px;padding:42px 36px;margin:8px 0 24px;border:1px solid #dce4dc;position:relative;isolation:isolate;overflow:hidden;}
.hero:before {content:'';position:absolute;inset:0;background:linear-gradient(90deg,#eff5ee 18%,#eff5eefa 48%,#eff5ee55 100%);z-index:-1;}
.hero .eyebrow {font-size:11px;letter-spacing:.17em;color:#174f53;opacity:1;font-weight:600;}
.hero-caption {font-size:11px;text-transform:uppercase;letter-spacing:.12em;margin-top:30px;}
.hero h1 {font-size:48px;color:#183c3e;max-width:650px;margin:12px 0 20px;overflow-wrap:anywhere;}
.hero .sub {font-size:15px;opacity:1;line-height:1.8;}
.v-item {border:1px solid #dce4dc;background:#fff;border-radius:12px;padding:24px 22px;margin:14px 0;gap:18px;}
.v-item>div:last-child {min-width:0;flex:1;} .v-ico {width:32px;height:32px;display:grid;place-items:center;background:#d9eeeb;border-radius:50%;padding:0;}
.v-stay .v-ico {background:#f4e7c9;} .v-dining .v-ico {background:#f8e0d7;} .v-transfer .v-ico {background:#e7edf6;} .v-activity .v-ico {background:#e7e5f0;}
.v-dot {width:10px;height:10px;} .v-title {font-size:20px;line-height:1.4;margin:5px 0 12px;font-weight:600;overflow-wrap:anywhere;}
.v-category {font-size:10px;text-transform:uppercase;letter-spacing:.13em;color:#56615d;font-weight:600;}
.v-meta {font-size:14px;line-height:1.65;margin-top:4px;overflow-wrap:anywhere;} main a {color:#174f53;}
#map {border-radius:14px;margin-top:24px;} .linkbox {background:#f4f7f2;}
#login-overlay {max-width:460px;margin:50px auto;padding:0 16px;}.login-card {padding:26px;}
.suggest button {min-height:44px;border-radius:0;}.suggest [role=option][aria-selected=true] {background:#d9eeeb;}
.linklike {background:none;border:0;min-height:44px;padding:6px;color:#174f53;}
@media(max-width:560px) {main {padding:24px 16px 70px;}h1 {font-size:34px;}h2 {font-size:26px;}.hero {padding:30px 22px;}.hero h1 {font-size:38px;}.hero .sub {font-size:14px;}.panel {padding:8px 16px 18px;}.card {padding:18px;}.v-item {padding:18px 14px;gap:11px;}.v-ico {width:27px;height:27px;}.v-title {font-size:18px;}.v-meta {font-size:13px;}.day {font-size:22px;align-items:flex-start;flex-direction:column;}.brand {font-size:10px;letter-spacing:.13em;}#map {height:280px;}}
}
.v-category {font-size:10px;text-transform:uppercase;letter-spacing:.1em;}

/* Cruise itinerary items */
.badge.port,.v-dot.port{background:#226e7a}.badge.excursion,.v-dot.excursion{background:#607949}
.v-port{background:#f0f7f7}.v-excursion{background:#f5f7ef}

.day-jumps{display:flex;gap:8px;flex-wrap:wrap;margin:22px 0}.day-jumps button{background:#e7efeb;border:1px solid #d0dfd8;border-radius:20px;color:#214e49;padding:7px 12px;text-decoration:none;font-size:13px}.day-jumps button:focus-visible{outline:3px solid #296c66;outline-offset:2px}.trip-summary{background:#fffdf9;border:1px solid #dce4de;border-radius:16px;padding:22px;margin:22px 0}.trip-summary h2,#trip-days>h2{font-family:Georgia,serif;font-size:25px;color:#1e4b47}.summary-grid{display:grid;grid-template-columns:1fr 1fr;gap:24px}.summary-grid ul{list-style:none;padding:0;margin:0}.summary-grid li{padding:12px 0;border-bottom:1px solid #e4e6df;break-inside:avoid}.summary-grid h3{font-size:15px;color:#49635d}.summary-grid strong,.summary-grid div{overflow-wrap:anywhere}.day{scroll-margin-top:20px} @media(max-width:650px){.summary-grid{grid-template-columns:1fr;gap:14px}.trip-summary{padding:16px}}

.type-icon{display:inline-block;width:22px;height:22px;flex:none;vertical-align:middle}.badge{display:inline-flex;gap:5px;align-items:center}.badge .type-icon{width:16px;height:16px}.v-symbol{display:inline-flex;width:36px;height:36px;align-items:center;justify-content:center;color:#205e62}.v-ico{background:none!important}.v-symbol.stay{color:#715f88}.v-symbol.transfer{color:#94713e}.v-symbol.activity,.v-symbol.excursion{color:#597744}.v-symbol.dining{color:#965f50}.v-symbol.note{color:#66736e}

#app>.brand-title{font-family:Georgia,'Times New Roman',serif;font-weight:400;font-size:clamp(38px,6vw,60px);line-height:1.08;letter-spacing:-.035em;text-transform:none;padding-bottom:20px;margin:8px 0 12px;overflow-wrap:anywhere}#app>.editor-label{font-size:17px;color:#556d66;margin:0 0 14px;letter-spacing:.02em}

.item-details{margin-top:12px}.item-details summary{cursor:pointer;color:#174f53;font-weight:600;padding:6px 0}.item-details[open] summary{margin-bottom:6px}.map-legend{padding:12px 18px;border:1px solid #d5dfd8;border-radius:12px;margin:12px 0 28px}.map-legend h3{margin:5px 0}.map-legend li{padding:5px;overflow-wrap:anywhere}.number-pin{display:flex;align-items:center;justify-content:center;min-width:28px;height:28px;border:2px solid white;border-radius:50%;background:#0f766e;color:white;font:bold 13px sans-serif;box-shadow:0 1px 5px #555}dialog{max-width:min(560px,90vw);max-height:85vh;overflow:auto;border:1px solid #c4d7cf;border-radius:16px;padding:24px;background:#fcfaf6;color:#183c3e}dialog::backdrop{background:#122c2a99}dialog input[type=checkbox]{display:inline;width:auto;margin:0 9px 0 0}dialog label{display:block;padding:8px 0}dialog h2{margin-top:0}

.type-filters{border:1px solid var(--line,#d5dfda);border-radius:12px;margin:16px 0;padding:14px}.type-filters label{display:inline-flex;align-items:center;gap:7px;margin:5px 12px 5px 0}.type-filters input{width:auto}.type-hidden{display:none!important}.carryover-note{font-size:.85em;margin:5px 0}

.v-meta{white-space:pre-line;overflow-wrap:anywhere}

.public-trip-detail,.advisor-contact{border:1px solid var(--line,#d5dfda);background:white;border-radius:12px;padding:20px;margin:16px 0;overflow-wrap:anywhere}.public-trip-detail p{white-space:pre-line}

.photo-gallery{display:grid;gap:16px;margin:18px 0}.photo-gallery figure{margin:0;break-inside:avoid}.photo-gallery img{display:block;width:100%;max-height:460px;object-fit:contain;background:#eee;border-radius:10px}.photo-gallery figcaption{font-size:.9rem;color:#526562;padding-top:6px;white-space:pre-wrap;overflow-wrap:anywhere}.photo-edit{margin:14px 0;padding:10px;border:1px solid #ccc;border-radius:8px}.photo-edit img{display:block;width:100%;max-height:220px;object-fit:contain}.photo-upload{max-width:100%}
.calendar-type-options{display:flex;flex-wrap:wrap;gap:8px 12px;padding:10px;margin:12px 0}.calendar-type-options label{display:flex;gap:6px;align-items:center;margin:0;font-size:.9rem}.calendar-type-options input{width:auto;margin:0}.calendar-type-options legend{font-size:.9rem}
