﻿:root {
  --ink: #1f2937;
  --muted: #7d8494;
  --line: #e7e9ef;
  --panel: #fff;
  --cream: #f8f9fc;
  --accent: #ef6d57;
  --accent-dark: #d9543e;
  --teal: #3d9b91;
  --shadow: 0 18px 50px rgba(31, 41, 55, .09);
}
* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; font-family: Helvetica, Arial, sans-serif; color: var(--ink); background: var(--cream); }
button, input, textarea { font: inherit; }
button { cursor: pointer; }
.app-shell { min-height: 100vh; display: flex; }
.sidebar { width: 20%; min-width: 260px; padding: 31px 24px 22px; background: #fff; border-right: 1px solid var(--line); display: flex; flex-direction: column; }
.brand-row { display: flex; align-items: center; gap: 11px; margin-bottom: 52px; }
.brand-mark { width: 38px; height: 38px; border-radius: 13px; display: grid; place-items: center; color: #fff; font-family: Helvetica, Arial, sans-serif; font-size: 22px; background: var(--accent); box-shadow: 0 7px 16px rgba(239, 109, 87, .27); }
.brand-name { font-family: Helvetica, Arial, sans-serif; font-weight: 700; font-size: 22px; line-height: 1; letter-spacing: -.5px; }
.brand-subtitle { color: #a6aab7; font-size: 10px; letter-spacing: 1.3px; text-transform: uppercase; margin-top: 4px; }
.sidebar-label, .eyebrow { color: #a5a9b5; font-size: 10px; font-weight: 800; letter-spacing: 1.5px; text-transform: uppercase; }
.sidebar-label { margin: 0 8px 13px; }
.side-nav { display: grid; gap: 8px; }
.nav-item { width: 100%; border: 0; background: transparent; border-radius: 13px; color: #828897; padding: 12px 11px; display: flex; align-items: center; gap: 12px; text-align: left; font-size: 13px; font-weight: 700; transition: .2s ease; }
.nav-item:hover { color: var(--ink); background: #f7f8fb; }
.nav-item.active { color: var(--accent); background: #fff1ed; }
.nav-icon { width: 23px; font-size: 18px; text-align: center; }
.nav-count { margin-left: auto; min-width: 24px; height: 22px; border-radius: 9px; display: grid; place-items: center; color: #b0b5c0; background: #f1f2f6; font-size: 11px; }
.nav-item.active .nav-count { color: var(--accent); background: #fff; }
.sidebar-divider { height: 1px; background: var(--line); margin: 34px 0 27px; }
.tip-card { margin: 0 3px; border-radius: 16px; padding: 18px 15px; background: #f1f7f6; color: #648c87; font-size: 12px; line-height: 1.6; }
.tip-orb { width: 29px; height: 29px; display: grid; place-items: center; margin-bottom: 10px; border-radius: 50%; color: #fff; background: var(--teal); }
.tip-card p { margin: 0; }
.sidebar-footer { display: flex; align-items: center; gap: 10px; margin-top: auto; padding: 18px 4px 0; border-top: 1px solid var(--line); }
.avatar { width: 35px; height: 35px; border-radius: 11px; display: grid; place-items: center; background: #d8e8e5; color: #4c8d85; font-weight: 800; }
.profile-copy { display: grid; gap: 2px; min-width: 0; flex: 1; }
.profile-copy strong { font-size: 12px; }
.profile-copy span { color: #a0a5b1; font-size: 10px; }
.more-btn, .close-btn, .icon-btn { border: 0; background: transparent; color: #adb2bd; }
.more-btn { letter-spacing: 2px; }
.main-content { width: 80%; min-width: 0; display: flex; flex-direction: column; }
.topbar { min-height: 97px; padding: 25px 32px 19px; display: flex; align-items: center; justify-content: space-between; background: rgba(255,255,255,.8); border-bottom: 1px solid var(--line); }
.topbar h1 { font-family: Helvetica, Arial, sans-serif; font-size: 28px; line-height: 1.1; letter-spacing: -.5px; margin: 7px 0 0; }
.topbar-actions { display: flex; gap: 10px; }
.ghost-btn, .primary-btn, .secondary-btn, .danger-btn, .text-btn { border-radius: 10px; border: 0; font-weight: 700; font-size: 12px; padding: 12px 16px; transition: .2s ease; }
.ghost-btn { color: #7d8490; background: #f3f4f7; }
.ghost-btn:hover { background: #eaebf0; }
.primary-btn { color: #fff; background: var(--accent); box-shadow: 0 8px 16px rgba(239,109,87,.18); }
.primary-btn:hover { background: var(--accent-dark); transform: translateY(-1px); }
.secondary-btn { color: var(--teal); background: #eaf4f2; }
.danger-btn { color: #c45548; background: #fff0ee; }
.full-btn { width: 100%; }
.workspace { position: relative; display: flex; flex: 1; min-height: 0; overflow: hidden; }
.map-panel { position: relative; flex: 1; min-width: 0; background: #dce8e9; overflow: hidden; }
.map-canvas { width: 100%; height: 100%; min-height: calc(100vh - 98px); }
.map-canvas::after { content: ''; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(135deg, rgba(255,255,255,.12), transparent 40%); }
.map-overlay { position: absolute; left: 20px; right: 20px; display: flex; justify-content: space-between; align-items: center; z-index: 2; }
.map-overlay-top { top: 18px; }
.map-overlay-bottom { bottom: 18px; }
.map-status, .map-hint, .map-legend { padding: 9px 12px; border-radius: 9px; background: rgba(255,255,255,.9); color: #7d8794; font-size: 11px; box-shadow: 0 5px 20px rgba(50,73,83,.08); backdrop-filter: blur(5px); }
.map-status { display: flex; align-items: center; gap: 7px; }
.status-dot, .legend-dot { width: 7px; height: 7px; border-radius: 50%; display: inline-block; }
.status-dot { background: #68b7ab; }
.legend-dot--active { background: var(--accent); margin-right: 5px; }
.legend-dot--event { background: #e49a36; margin: 0 5px 0 10px; }
.map-controls { display: grid; gap: 5px; }
.map-control { width: 34px; height: 34px; border: 0; border-radius: 9px; background: rgba(255,255,255,.92); color: #6d7884; font-size: 18px; box-shadow: 0 5px 20px rgba(50,73,83,.08); }
.map-hint { color: #a2a7b1; }
.map-fallback { position: absolute; inset: 0; z-index: 3; display: grid; align-content: center; justify-items: center; text-align: center; padding: 20px; background: linear-gradient(135deg, #e4efee, #eaf1ec); color: #667d7b; }
.map-fallback[hidden] { display: none; }
.map-fallback h3 { margin: 12px 0 6px; color: #365e5b; font-family: Helvetica, Arial, sans-serif; font-size: 24px; }
.map-fallback p { max-width: 420px; margin: 0 0 16px; font-size: 12px; line-height: 1.6; }
.map-fallback code { padding: 2px 5px; border-radius: 5px; background: rgba(255,255,255,.65); }
.fallback-icon { width: 53px; height: 53px; display: grid; place-items: center; border-radius: 18px; background: #d4e6e2; color: var(--teal); font-size: 30px; }
.drawer { position: absolute; z-index: 4; top: 20px; right: 22px; bottom: 20px; width: 390px; max-width: calc(100% - 44px); padding: 28px 27px; background: rgba(255,255,255,.98); border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow); overflow-y: auto; }
.drawer-head { display: flex; justify-content: space-between; gap: 15px; align-items: flex-start; margin-bottom: 25px; }
.drawer h2 { margin: 7px 0 0; font-family: Helvetica, Arial, sans-serif; font-size: 24px; letter-spacing: -.4px; }
.close-btn { display: none; font-size: 22px; }
.search-row { display: flex; gap: 8px; margin-bottom: 18px; }
.search-box { flex: 1; display: flex; align-items: center; gap: 8px; padding: 0 12px; border: 1px solid var(--line); border-radius: 10px; color: #a9aeba; }
.search-box input { width: 100%; border: 0; outline: 0; padding: 11px 0; color: var(--ink); background: transparent; font-size: 12px; }
.icon-btn { width: 38px; height: 38px; border: 1px solid var(--line); border-radius: 10px; font-size: 14px; }
.trip-list { display: grid; gap: 11px; }
.trip-card { position: relative; display: flex; gap: 13px; padding: 10px; border: 1px solid var(--line); border-radius: 14px; background: #fff; transition: .2s ease; }
.trip-card:hover { border-color: #d7dbe4; box-shadow: 0 8px 20px rgba(40,50,65,.06); transform: translateY(-1px); }
.trip-thumb { width: 76px; height: 76px; flex: 0 0 auto; border-radius: 10px; background-position: center; background-size: cover; }
.trip-copy { min-width: 0; display: grid; align-content: center; gap: 5px; padding-right: 24px; }
.trip-copy h3 { overflow: hidden; margin: 0; color: #303744; font-size: 13px; text-overflow: ellipsis; white-space: nowrap; }
.trip-copy p { overflow: hidden; margin: 0; color: #a2a7b2; font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.trip-date { color: var(--accent); font-size: 10px; font-weight: 800; }
.card-menu { position: absolute; top: 9px; right: 9px; border: 0; background: transparent; color: #b2b6c0; letter-spacing: 2px; }
.empty-state { padding: 46px 15px; text-align: center; }
.empty-illustration { width: 58px; height: 58px; display: grid; place-items: center; margin: 0 auto 16px; border-radius: 20px; color: var(--accent); background: #fff1ed; font-size: 28px; }
.empty-state h3 { margin: 0 0 6px; font-family: Helvetica, Arial, sans-serif; font-size: 22px; }
.empty-state p { margin: 0 auto 18px; max-width: 250px; color: #9ca2ae; font-size: 12px; line-height: 1.6; }
.form-intro { display: flex; gap: 11px; padding: 12px; margin-bottom: 21px; border-radius: 12px; color: #708884; background: #f1f7f6; font-size: 11px; line-height: 1.5; }
.form-intro p { margin: 0; }
.form-badge { width: 22px; height: 22px; flex: 0 0 auto; display: grid; place-items: center; border-radius: 7px; color: #fff; background: var(--teal); }
.field { display: grid; gap: 7px; margin-bottom: 16px; }
.field > span { color: #5f6877; font-size: 11px; font-weight: 800; }
.field em { color: #afb4bd; font-style: normal; font-weight: 500; }
.field input, .field textarea { width: 100%; border: 1px solid var(--line); outline: 0; border-radius: 10px; padding: 11px 12px; color: var(--ink); background: #fff; font-size: 12px; resize: vertical; transition: .2s ease; }
.field input:focus, .field textarea:focus { border-color: #c8ddd9; box-shadow: 0 0 0 3px rgba(61,155,145,.1); }
.field-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 11px; }
.cover-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.cover-option { height: 56px; border: 2px solid transparent; border-radius: 9px; cursor: pointer; background-size: cover; background-position: center; }
.cover-option.selected { border-color: var(--accent); box-shadow: 0 0 0 2px #fff; }
.form-actions { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 26px; }
.text-btn { padding-left: 0; color: #a0a6b1; background: transparent; }
.details-view { display: grid; gap: 18px; }
.back-link { width: max-content; border: 0; padding: 0; color: #9ba2ae; background: transparent; font-size: 11px; font-weight: 700; }
.detail-cover { height: 150px; border-radius: 15px; background-position: center; background-size: cover; }
.detail-heading { display: flex; justify-content: space-between; gap: 10px; align-items: flex-start; }
.detail-heading h2 { margin-top: 6px; }
.detail-description { color: #7f8793; font-size: 12px; line-height: 1.7; margin: -3px 0 0; }
.detail-dates { display: flex; align-items: center; gap: 8px; padding: 12px; border-radius: 10px; color: #708884; background: #f1f7f6; font-size: 11px; }
.detail-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.detail-stats > div { padding: 13px; border: 1px solid var(--line); border-radius: 11px; display: grid; gap: 3px; }
.detail-stats strong { font-size: 15px; }
.detail-stats span { color: #a2a8b3; font-size: 10px; }
.toast { position: fixed; left: 50%; bottom: 25px; z-index: 10; transform: translate(-50%, 20px); padding: 11px 17px; border-radius: 10px; color: #fff; background: #2c3942; box-shadow: var(--shadow); opacity: 0; pointer-events: none; font-size: 12px; transition: .25s ease; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }
[hidden] { display: none !important; }
@media (max-width: 1100px) { .sidebar { min-width: 220px; padding-inline: 16px; } .drawer { width: 360px; } .topbar { padding-inline: 22px; } }
@media (max-width: 820px) { .sidebar { width: 100%; min-width: 0; height: auto; padding: 17px 18px; } .app-shell { display: block; } .brand-row { margin-bottom: 18px; } .sidebar-label, .sidebar-divider, .tip-card, .sidebar-footer { display: none; } .side-nav { grid-template-columns: 1fr 1fr; } .main-content { width: 100%; } .topbar { min-height: 86px; padding: 16px 18px; } .topbar h1 { font-size: 22px; } .topbar-actions .ghost-btn { display: none; } .workspace { display: block; overflow: visible; } .map-panel { height: 48vh; min-height: 340px; } .map-canvas { min-height: 100%; } .drawer { position: relative; top: auto; right: auto; bottom: auto; width: 100%; max-width: none; padding: 22px 18px 30px; border: 0; border-radius: 0; box-shadow: none; } }
@media (max-width: 500px) { .topbar-actions .primary-btn { padding: 10px 11px; font-size: 11px; } .topbar h1 { font-size: 19px; } .eyebrow { font-size: 9px; } .field-grid { grid-template-columns: 1fr; gap: 0; } }



.map-legend { transform: translate(-10px, -19px); }




.point-modal { position: absolute; z-index: 7; top: 78px; left: 24px; width: 315px; padding: 20px; border: 1px solid rgba(231,233,239,.95); border-radius: 16px; background: rgba(255,255,255,.98); box-shadow: 0 18px 45px rgba(31,41,55,.16); backdrop-filter: blur(10px); }
.point-modal[hidden] { display: none; }
.point-modal h3 { margin: 6px 0 17px; font-family: Helvetica, Arial, sans-serif; font-size: 22px; letter-spacing: -.3px; }
.point-modal-close { position: absolute; top: 10px; right: 12px; width: 27px; height: 27px; border: 0; border-radius: 8px; color: #9ca3af; background: transparent; font-size: 22px; line-height: 1; }
.point-modal-close:hover { color: var(--ink); background: #f3f4f7; }
.point-field { display: grid; gap: 6px; margin-bottom: 12px; }
.point-field > span { color: #5f6877; font-size: 10px; font-weight: 800; }
.point-field em { color: #afb4bd; font-style: normal; font-weight: 500; }
.point-field input, .point-field textarea { width: 100%; border: 1px solid var(--line); outline: 0; border-radius: 9px; padding: 9px 10px; color: var(--ink); background: #fff; font-size: 11px; resize: vertical; }
.point-field input:focus, .point-field textarea:focus { border-color: #c8ddd9; box-shadow: 0 0 0 3px rgba(61,155,145,.1); }
.point-field input[readonly] { color: #89929d; background: #f7f8fa; }
.point-actions, .point-view-actions { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-top: 16px; }
.point-actions .primary-btn { padding: 10px 12px; font-size: 11px; }
.point-actions .text-btn { font-size: 11px; }
.point-coords { display: inline-flex; padding: 6px 8px; border-radius: 7px; color: #6b8e89; background: #f1f7f6; font-size: 10px; }
.point-description { margin: 14px 0 0; color: #7f8793; font-size: 11px; line-height: 1.6; }
.point-view-actions .secondary-btn, .point-view-actions .danger-btn { flex: 1; padding: 10px 9px; font-size: 11px; }
@media (max-width: 820px) { .point-modal { top: 18px; left: 16px; right: 16px; width: auto; } }

.route-fields { display: grid; gap: 11px; margin-bottom: 16px; }
.route-point-field { display: grid; gap: 7px; }
.route-point-field > span { color: #5f6877; font-size: 11px; font-weight: 800; }
.route-point-row { display: grid; gap: 6px; }
.map-pick-btn { width: max-content; padding: 9px 11px; border: 1px solid #dce9e6; border-radius: 9px; color: #468f86; background: #f1f7f6; font-size: 11px; font-weight: 800; }
.map-pick-btn:hover { border-color: #b9d4cf; background: #e7f2ef; }
.route-point-value { overflow: hidden; color: #9ba2ae; font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.form-select { width: 100%; min-height: 39px; padding: 9px 10px; border: 1px solid var(--line); border-radius: 9px; outline: 0; color: var(--ink); background: #fff; font-size: 11px; }
.form-select:focus { border-color: #c8ddd9; box-shadow: 0 0 0 3px rgba(61,155,145,.1); }
.route-field-grid { align-items: start; }
.route-field-grid .field { min-width: 0; }
.route-pick-banner { position: absolute; z-index: 6; top: 69px; left: 50%; display: flex; align-items: center; gap: 15px; max-width: calc(100% - 32px); padding: 10px 13px; border: 1px solid var(--line); border-radius: 10px; color: #586e6a; background: rgba(255,255,255,.96); box-shadow: var(--shadow); font-size: 11px; transform: translateX(-50%); }
.route-pick-banner[hidden] { display: none; }
.route-pick-banner button { width: 22px; height: 22px; border: 0; border-radius: 6px; color: #9ca3af; background: #f3f4f7; font-size: 18px; line-height: 1; }
.detail-route { display: grid; gap: 12px; padding: 14px; border: 1px solid var(--line); border-radius: 12px; background: #fff; }
.detail-route-points { display: grid; gap: 9px; }
.detail-route-points > div { display: flex; align-items: center; gap: 8px; min-width: 0; }
.detail-route-points strong { overflow: hidden; color: #596270; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.route-point-dot { width: 8px; height: 8px; flex: 0 0 auto; border-radius: 50%; }
.route-point-dot--start { background: #43a379; }
.route-point-dot--end { background: var(--accent); }
.detail-route-meta { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; color: #82908e; font-size: 10px; }
.detail-route > p { margin: 0; color: #8c929e; font-size: 11px; line-height: 1.5; }

.trip-tabs { position: sticky; top: -28px; z-index: 3; display: grid; grid-template-columns: 1fr 1fr; gap: 3px; padding: 4px; margin: -8px 0 18px; border: 1px solid var(--line); border-radius: 11px; background: #f5f6f8; }
.trip-tab { min-height: 35px; border: 0; border-radius: 8px; color: #969daa; background: transparent; font-size: 10px; font-weight: 800; }
.trip-tab.active { color: var(--accent); background: #fff; box-shadow: 0 2px 7px rgba(31,41,55,.07); }
.trip-tab-panel[hidden] { display: none; }
.events-panel { min-height: 240px; }
.events-panel-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; margin-bottom: 17px; }
.events-panel-heading h3 { margin: 0 0 5px; font-family: Helvetica, Arial, sans-serif; font-size: 18px; }
.events-panel-heading p { margin: 0; color: #9ba2ae; font-size: 10px; line-height: 1.5; }
.events-panel-heading .primary-btn { flex: 0 0 auto; padding: 10px 11px; font-size: 10px; }
.event-list { display: grid; gap: 10px; }
.event-card { position: relative; display: grid; grid-template-columns: 48px minmax(0,1fr); gap: 10px; padding: 12px; border: 1px solid var(--line); border-radius: 12px; background: #fff; }
.event-time { align-self: start; padding: 7px 5px; border-radius: 8px; color: var(--accent); background: #fff1ed; text-align: center; font-size: 10px; font-weight: 800; }
.event-card-content { min-width: 0; }
.event-card-title { margin: 0 0 4px; color: #303744; font-size: 12px; }
.event-card-type, .event-card-location { color: #9ba2ae; font-size: 9px; }
.event-card-description { margin: 7px 0 0; color: #7f8793; font-size: 10px; line-height: 1.5; white-space: pre-wrap; }
.event-card-link { display: inline-block; margin-top: 7px; color: #468f86; font-size: 10px; text-decoration: none; overflow-wrap: anywhere; }
.event-card-actions { display: flex; gap: 6px; margin-top: 8px; }
.event-card-actions button { border: 0; padding: 0; color: #9299a5; background: transparent; font-size: 9px; font-weight: 800; }
.event-card-actions button:hover { color: var(--accent); }
.events-empty { padding: 36px 15px; border: 1px dashed #dfe3e9; border-radius: 12px; color: #9ba2ae; text-align: center; font-size: 11px; line-height: 1.6; }
.event-list { gap: 17px; }
.event-day { display: grid; gap: 9px; }
.event-day-heading { display: grid; gap: 3px; padding: 0 0 8px; border-bottom: 1px solid var(--line); }
.event-day-heading span { color: var(--accent); font-size: 9px; font-weight: 800; letter-spacing: 1px; text-transform: uppercase; }
.event-day-heading strong { color: #3b4350; font-size: 12px; text-transform: capitalize; }
.event-day-list { display: grid; gap: 8px; }
.event-day-empty { padding: 10px 12px; border: 1px dashed #e3e6eb; border-radius: 10px; color: #a4aab4; font-size: 10px; }
.event-day-extra { margin-top: 6px; }
.event-extra-date { padding: 5px 2px 0; color: #8e96a2; font-size: 10px; text-transform: capitalize; }
.event-modal-backdrop { position: fixed; inset: 0; z-index: 20; display: grid; place-items: center; overflow-y: auto; padding: 20px; background: rgba(25,34,44,.36); backdrop-filter: blur(3px); }
.event-modal-backdrop[hidden] { display: none; }
.event-modal { position: relative; display: block; width: min(100%, 520px); max-height: calc(100vh - 40px); overflow-y: auto; padding: 25px; border: 1px solid var(--line); border-radius: 18px; background: #fff; box-shadow: 0 24px 70px rgba(20,28,38,.2); }
.event-modal h3 { margin: 6px 0 20px; font-family: Helvetica, Arial, sans-serif; font-size: 23px; }
.event-modal .field { margin-bottom: 13px; }
.event-modal .field-grid { gap: 12px; }
.event-modal .form-actions { margin-top: 18px; }
.event-map-pick-btn { margin-top: 2px; }
@media (max-width: 500px) { .event-modal { padding: 21px 16px; } .events-panel-heading { display: grid; } .trip-tab { font-size: 9px; } }

.trip-load-more { margin-top: 12px; }
