:root {
  --bg: #f4f6f8;
  --surface: #ffffff;
  --text: #18212b;
  --muted: #697586;
  --line: #dce2e8;
  --accent: #0b67f0;
  --accent-dark: #0756cb;
  --success: #168a4a;
  --shadow: 0 10px 30px rgba(20, 32, 45, .07);
}
* { box-sizing: border-box; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
.topbar {
  height: 72px;
  background: #fff;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 32px;
}
.brand { display:flex; align-items:center; gap:12px; }
.brand-mark {
  width:40px; height:40px; border-radius:10px; background:var(--accent);
  color:#fff; display:grid; place-items:center; font-weight:800;
}
.brand-name { font-weight:750; }
.brand-subtitle { font-size:12px; color:var(--muted); margin-top:2px; }
.status { padding:6px 10px; border-radius:999px; font-size:11px; font-weight:700; letter-spacing:.05em; }
.status-demo { background:#eef3f8; color:#657180; }
.status-live { background:#eaf8f0; color:var(--success); }
.status-error { background:#fff0f0; color:#bd3030; }
.container { max-width:1180px; margin:0 auto; padding:34px 24px 50px; }
.hero { margin-bottom:22px; }
.eyebrow { color:var(--accent); font-size:12px; font-weight:800; text-transform:uppercase; letter-spacing:.08em; margin:0 0 8px; }
h1 { font-size:32px; margin:0 0 8px; }
.hero-text { max-width:780px; color:var(--muted); line-height:1.55; margin:0; }
.card { background:var(--surface); border:1px solid var(--line); border-radius:14px; box-shadow:var(--shadow); }
.form-card { padding:22px; margin-bottom:18px; }
.form-grid { display:grid; grid-template-columns:1fr 42px 1fr; gap:14px; align-items:end; }
.field label { display:block; font-size:13px; font-weight:700; margin-bottom:8px; }
.input-wrap { position:relative; }
.input-wrap input {
  width:100%; height:48px; border:1px solid #cfd7df; border-radius:10px;
  padding:0 14px 0 48px; font-size:15px; outline:none; background:#fff;
  transition:.15s;
}
.input-wrap input:focus { border-color:var(--accent); box-shadow:0 0 0 3px rgba(11,103,240,.11); }
.pin {
  position:absolute; left:13px; top:50%; transform:translateY(-50%);
  width:24px; height:24px; border-radius:50%; color:#fff; display:grid; place-items:center;
  font-size:11px; font-weight:800; z-index:2; pointer-events:none;
}
.pin-origin { background:#1976d2; }
.pin-destination { background:#e54b4b; }
.swap-btn {
  width:42px; height:42px; border:1px solid var(--line); background:#fff; border-radius:10px;
  font-size:21px; cursor:pointer; color:#52606d; margin-bottom:3px;
}
.swap-btn:hover { border-color:#aeb9c4; background:#f8fafc; }
.selected-place { min-height:18px; margin:7px 2px 0; font-size:11px; color:var(--muted); }
.actions { display:flex; align-items:center; gap:10px; margin-top:16px; }
.primary-btn, .secondary-btn {
  height:42px; padding:0 16px; border-radius:9px; border:1px solid transparent;
  font-weight:700; cursor:pointer;
}
.primary-btn { background:var(--accent); color:#fff; }
.primary-btn:hover { background:var(--accent-dark); }
.secondary-btn { background:#fff; color:#344250; border-color:var(--line); }
.message { font-size:13px; color:var(--muted); margin-left:5px; }
.map-card { overflow:hidden; }
#map { height:520px; position:relative; background:#e9edf1; }
.map-overlay {
  position:absolute; inset:0; display:flex; flex-direction:column; align-items:center; justify-content:center;
  gap:8px; color:#4f5d6b; z-index:5; background:linear-gradient(#eef2f5,#e5eaf0);
}
.map-overlay-icon { font-size:42px; }
.map-overlay span { font-size:12px; color:#7b8794; }
.map-overlay.hidden { display:none; }
.stats { display:grid; grid-template-columns:repeat(3,1fr); gap:14px; margin:18px 0; }
.stat { padding:18px 20px; }
.stat-label { display:block; font-size:12px; color:var(--muted); margin-bottom:7px; }
.stat strong { font-size:22px; }
.demo-card { padding:20px 22px; }
.demo-head { display:flex; align-items:center; justify-content:space-between; gap:20px; }
.demo-head h2 { font-size:18px; margin:0 0 5px; }
.demo-head p { margin:0; color:var(--muted); font-size:13px; }
.examples { display:flex; gap:8px; margin-top:14px; flex-wrap:wrap; }
.example-link { background:none; border:0; padding:0; color:var(--accent); cursor:pointer; font-size:13px; }
.example-link:hover { text-decoration:underline; }
footer { text-align:center; color:#87929e; font-size:12px; padding:20px; }
.pac-container { z-index:99999 !important; }
@media (max-width: 760px) {
  .topbar { padding:0 16px; }
  .container { padding:24px 14px 40px; }
  .form-grid { grid-template-columns:1fr; }
  .swap-btn { display:none; }
  .actions { flex-wrap:wrap; }
  #map { height:430px; }
  .stats { grid-template-columns:1fr; }
  .demo-head { align-items:flex-start; flex-direction:column; }
}

.place-autocomplete {
  --gmpx-color-surface: #fff;
  --gmpx-color-on-surface: #18212b;
  --gmpx-color-primary: #0b67f0;
  --gmpx-font-family-base: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --gmpx-font-size-base: 15px;
  --gmpx-font-size-small: 12px;
  --gmpx-shape-corner: 10px;
  --gmpx-control-height: 48px;
  z-index: 10;
}
