/* 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; }
