html, body { margin: 0; padding: 0; font-family: Arial, sans-serif; height: 100%; }
body { background: #f7f7f7; color: #111; }
.app-shell { min-height: 100vh; }
.app-header { display: flex; align-items: center; justify-content: space-between; padding: 12px 16px; background: #fff; border-bottom: 1px solid #eee; position: sticky; top: 0; z-index: 5; }
.app-header h1 { margin: 0; font-size: 20px; }
.guide-date { color: #666; font-size: 13px; margin-top: 4px; }
.ghost-btn { border: 1px solid #ddd; background: #fff; border-radius: 999px; padding: 8px 12px; }
.map-stack { position: relative; height: 42vh; }
#map { position: absolute; inset: 0; }
.map-top-tools { position: absolute; top: 12px; left: 12px; z-index: 3; display: flex; gap: 8px; flex-wrap: wrap; max-width: calc(100% - 24px); }
.map-mode-toggle { display: inline-flex; gap: 8px; padding: 8px; background: rgba(255,255,255,0.92); border-radius: 999px; box-shadow: 0 4px 18px rgba(0,0,0,0.08); }
.map-mode-btn, .layer-chip, .filter-chip, .save-place-btn, .candidate-item-actions button, .add-to-day-row button, .filter-row button { border: 1px solid #ddd; background: #fff; color: #111; border-radius: 999px; padding: 8px 12px; font-size: 12px; }
.map-mode-btn.is-active, .filter-chip.is-active, .save-place-btn.is-saved { background: #111; color: #fff; border-color: #111; }
.bottom-sheet { height: 34vh; background: #fff; border-top-left-radius: 20px; border-top-right-radius: 20px; box-shadow: 0 -10px 30px rgba(0,0,0,0.08); overflow: auto; }
.sheet-handle { width: 56px; height: 6px; background: #ddd; border-radius: 999px; margin: 10px auto; }
.sheet-grid { display: grid; gap: 16px; padding: 0 14px 16px; }
.pane h2 { margin: 0 0 10px; font-size: 16px; }
.day-tabs { display: flex; gap: 8px; margin-bottom: 10px; }
.day-tabs button { border: 1px solid #ddd; border-radius: 999px; background: #fff; padding: 8px 12px; }
.day-tabs button.is-active { background: #111; color: #fff; border-color: #111; }
.spot-card, .filtered-place-card { border-bottom: 1px solid #eee; padding: 10px 0; }
.spot-card.is-selected { background: #fafafa; }
.spot-title, .filtered-place-name, .candidate-item-name { font-weight: 700; }
.spot-time, .spot-note, .filtered-place-meta, .candidate-item-meta, .candidate-empty { font-size: 12px; color: #666; margin-top: 4px; }
.spot-head-row, .spot-edit-row, .spot-actions-row { display: flex; gap: 8px; }
.spot-head-row { justify-content: space-between; align-items: center; }
.spot-dirty-badge { font-size: 11px; color: #8b5cf6; border: 1px solid #c4b5fd; border-radius: 999px; padding: 2px 8px; background: #f5f3ff; }
.spot-field-label { font-size: 12px; color: #666; align-self: center; }
.spot-edit-row { margin-top: 8px; align-items: center; }
.spot-note-row { margin-top: 8px; }
.spot-edit-row input, .spot-note-row textarea, .spot-actions-row select { border: 1px solid #ddd; border-radius: 8px; padding: 6px 8px; font-size: 12px; background: #fff; }
.spot-edit-row input { flex: 1; min-width: 0; }
.spot-note-row textarea { width: 100%; min-height: 52px; resize: vertical; box-sizing: border-box; }
.spot-actions-row { margin-top: 8px; flex-wrap: wrap; align-items: center; }
.spot-actions-row button { border: 1px solid #ddd; background: #fff; border-radius: 8px; font-size: 12px; padding: 4px 8px; }

.explore-detail-panel { margin-top: 10px; border: 1px solid #ececec; border-radius: 12px; padding: 10px; background: #fcfcff; }
.explore-detail-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.explore-detail-head h3 { margin: 0; font-size: 15px; }
.explore-detail-head button { border: 1px solid #ddd; background: #fff; border-radius: 8px; font-size: 12px; padding: 4px 8px; }
.explore-detail-meta, .explore-detail-stay { font-size: 12px; color: #666; margin-top: 6px; }
.explore-detail-row { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.explore-detail-actions { margin-top: 10px; }
.explore-detail-add-row { display: flex; gap: 8px; margin-top: 8px; }
.explore-detail-add-row select { flex: 1; border: 1px solid #ddd; border-radius: 8px; padding: 6px 8px; font-size: 12px; }
.explore-detail-add-row button { border: 1px solid #ddd; background: #fff; border-radius: 8px; font-size: 12px; padding: 6px 10px; }
.filter-panel { padding: 4px 0 10px; }
.filter-row { display: flex; gap: 8px; margin-bottom: 10px; }
.filter-row input, .filter-row select, .add-to-day-row select { font-size: 14px; padding: 8px 10px; border: 1px solid #ddd; border-radius: 10px; background: #fff; }
.filter-row input, .filter-row select { flex: 1; }
.filter-section { margin-bottom: 12px; }
.filter-title { font-size: 12px; font-weight: 700; margin-bottom: 6px; }
.filter-chip-row, .filtered-place-tags { display: flex; gap: 8px; flex-wrap: wrap; }
.mini-chip { border: 1px solid #ddd; border-radius: 999px; background: #fff; padding: 4px 8px; font-size: 11px; }
.filtered-place-name-row { display: flex; justify-content: space-between; gap: 10px; align-items: start; }
.candidate-tray { border-top: 1px solid #eee; padding-top: 4px; }
.candidate-tray-header, .candidate-item { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.candidate-tray-header { margin-bottom: 10px; }
.candidate-count { display: inline-flex; min-width: 22px; height: 22px; align-items: center; justify-content: center; border-radius: 999px; background: #111; color: #fff; font-size: 12px; }
.candidate-item { border-bottom: 1px solid #eee; padding: 10px 0; }
.add-to-day-row { display: flex; gap: 8px; margin-top: 8px; }
@media (min-width: 900px) { .sheet-grid { grid-template-columns: 1fr 1fr 1fr; } .map-stack { height: 50vh; } }
