/* ============================================================
   base.css — SPARK layout. Warm, plain, handout-feeling —
   deliberately not LOGI's dark operational-terminal look.
   ============================================================ */

:root {
  --color-bg:      #faf7f2;
  --color-surface: #ffffff;
  --color-border:  #e2dcd0;
  --color-text:    #2b2620;
  --color-muted:   #7a7266;
  --color-accent:  #d3691e;
  --color-accent-2:#2f7a3d;
  --font: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --header-height: 56px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
  height: 100%;
  background: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.5;
}

header {
  height: var(--header-height);
  background: var(--color-surface);
  border-bottom: 3px solid var(--color-accent);
  display: flex;
  align-items: center;
  padding: 0 20px;
}

.header-inner { display: flex; align-items: baseline; gap: 14px; }
.header-logo { font-size: 1.4rem; font-weight: 800; color: var(--color-accent); letter-spacing: 0.03em; }
.header-sub  { font-size: 0.85rem; color: var(--color-muted); }

#app {
  display: flex;
  height: calc(100vh - var(--header-height));
  overflow: hidden;
}

#map-column {
  width: 55%;
  min-width: 320px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  border-right: 1px solid var(--color-border);
  position: relative;
}

#map { flex: 1; }

#map-search {
  display: flex;
  gap: 8px;
  padding: 10px;
  background: var(--color-surface);
  border-bottom: 1px solid var(--color-border);
}
#search-input {
  flex: 1;
  padding: 8px 10px;
  border: 1px solid var(--color-border);
  border-radius: 4px;
  font-family: var(--font);
  font-size: 0.9rem;
}
#search-btn {
  padding: 8px 16px;
  border: none;
  border-radius: 4px;
  background: var(--color-accent-2);
  color: #fff;
  font-weight: 600;
  cursor: pointer;
}
#search-status { font-size: 0.8rem; color: var(--color-muted); align-self: center; }

#map-hint {
  position: absolute;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(43, 38, 32, 0.85);
  color: #fff;
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 0.85rem;
  z-index: 500;
}
#map-hint.hidden { display: none; }

#onepager-column {
  flex: 1;
  overflow-y: auto;
  padding: 28px;
  display: flex;
  justify-content: center;
}

@media (max-width: 900px) {
  #app { flex-direction: column; height: auto; overflow: visible; }
  #map-column { width: 100%; min-width: 0; border-right: none; border-bottom: 1px solid var(--color-border); height: 60vh; }
  #onepager-column { padding: 16px; }
}
