@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Poppins:wght@600;700&display=swap');

:root{
  --bg: #f5f6f8;
  --panel: #ffffff;
  --ink: #16181d;
  --muted: #6b7280;
  --saffron: #ff7a1a;
  --green: #0a7a3d;
  --navy: #23408e;
  --navy-dark: #182c66;
  --line: #e5e7eb;
  --shadow: 0 1px 2px rgba(16,24,40,0.04), 0 1px 3px rgba(16,24,40,0.06);
  --shadow-md: 0 4px 12px rgba(16,24,40,0.08);
  --radius: 10px;
}
*{ box-sizing:border-box; }
body{
  margin:0; font-family: 'Inter', system-ui, sans-serif;
  background: var(--bg); color: var(--ink); -webkit-font-smoothing:antialiased;
}

/* ---------- Header ---------- */
header{
  background: linear-gradient(90deg, var(--saffron), #ffffff 48%, var(--green) 100%);
  padding: 3px 0;
}
.header-inner{
  background: var(--panel);
  margin: 3px 16px;
  border-radius: var(--radius);
  padding: 20px 28px;
  display:flex; align-items:center; justify-content:space-between; flex-wrap:wrap; gap:12px;
  box-shadow: var(--shadow);
}
.header-inner h1{
  margin:0; font-family:'Poppins', sans-serif; font-weight:700; font-size: 21px;
  display:flex; align-items:center; gap:8px; letter-spacing:-0.01em;
}
.header-inner .tag{ color: var(--muted); font-size: 13px; margin-top:3px; font-weight:500; }

nav{
  display:flex; gap: 8px; max-width: 1000px; margin: 22px auto 0; padding: 0 16px;
  overflow-x:auto;
}
nav button{
  flex:1; min-width: 130px; font-family:'Inter',sans-serif; font-size: 13.5px; font-weight:600;
  padding: 13px 10px; border-radius: 10px 10px 0 0; border:1px solid var(--line); border-bottom:none;
  background: #eceef1; color: var(--muted); cursor:pointer; transition: background .15s, color .15s;
  letter-spacing: 0.01em;
}
nav button:hover{ background:#e2e5ea; }
nav button.active{ background: var(--panel); color: var(--ink); box-shadow: var(--shadow); }

main{ max-width: 1000px; margin: 0 auto; padding: 0 16px 48px; }
.panel{
  background: var(--panel); border: 1px solid var(--line); border-radius: 0 var(--radius) var(--radius) var(--radius);
  padding: 24px; min-height: 320px; box-shadow: var(--shadow);
}
.panel.hidden{ display:none; }

.search-row{ display:flex; gap:10px; margin-bottom: 18px; flex-wrap:wrap; }
.search-row input, .search-row select{
  font-family:inherit; font-size:14px; padding: 10px 14px; border:1px solid var(--line); border-radius:8px;
  background:#fff; transition: border-color .15s;
}
.search-row input:focus, .search-row select:focus{ outline:none; border-color: var(--navy); }
.search-row input{ flex:2; min-width:200px; }
.search-row select{ flex:1; min-width:150px; }

.scheme-card{
  border:1px solid var(--line); border-radius: var(--radius); padding:16px 18px; margin-bottom:12px;
  transition: box-shadow .15s, border-color .15s;
}
.scheme-card:hover{ box-shadow: var(--shadow-md); border-color:#d8dce3; }
.scheme-card h3{ margin:0 0 8px; font-size:15.5px; font-weight:600; letter-spacing:-0.005em; }
.scheme-card .cat{
  display:inline-block; font-size:10.5px; font-weight:700; color: var(--navy);
  background:#eaeefb; padding:3px 9px; border-radius:20px; margin-bottom:9px; letter-spacing:0.03em; text-transform:uppercase;
}
.scheme-card p{ margin: 5px 0; font-size: 13.5px; color:#3a3f47; line-height:1.5; }
.scheme-card p b{ color: var(--muted); font-weight:600; }
.scheme-card a{ font-size:13px; color: var(--navy); font-weight:600; text-decoration:none; }
.scheme-card a:hover{ text-decoration:underline; }

/* ---------- Prices ---------- */
.price-grid{ display:grid; grid-template-columns: 1fr 1fr; gap:16px; margin-bottom: 20px; }
@media (max-width:600px){ .price-grid{ grid-template-columns: 1fr; } }
.price-card{
  border:1px solid var(--line); border-radius: var(--radius); padding:20px; text-align:center;
  background: linear-gradient(180deg, #fffdfa 0%, #fff 100%);
  box-shadow: var(--shadow);
}
.price-card .label{ font-size:11.5px; color:var(--muted); text-transform:uppercase; letter-spacing:0.08em; font-weight:600; }
.price-card .value{ font-family:'Poppins',sans-serif; font-size: 30px; font-weight:700; margin: 8px 0; color: var(--navy-dark); }
.price-card .sub{ font-size: 12px; color: var(--muted); }
.price-card.loading .value{ color: var(--muted); font-size:16px; font-family:'Inter',sans-serif; font-weight:500; }

.note{
  font-size:12.5px; color: #4a5058; background:#f8f6ef; border:1px solid var(--line);
  border-radius:8px; padding:12px 14px; margin-top:12px; line-height:1.5;
}
.note b{ color:var(--ink); }

.key-row{ display:flex; gap:8px; margin-top:10px; }
.key-row input{ flex:1; font-family:inherit; font-size:13px; padding:9px 12px; border:1px solid var(--line); border-radius:8px; }
.key-row button{
  font-family:inherit; font-size:13px; font-weight:600; padding:9px 16px; border-radius:8px;
  border:1px solid var(--navy); background: var(--navy); color:#fff; cursor:pointer; transition: background .15s;
}
.key-row button:hover{ background: var(--navy-dark); }

.train-form{ display:flex; gap:10px; margin-bottom: 14px; flex-wrap:wrap; }
.train-form input{ flex:1; min-width:160px; font-family:inherit; font-size:14px; padding:10px 14px; border:1px solid var(--line); border-radius:8px; }
.train-form input:focus{ outline:none; border-color: var(--green); }
.train-form button{
  font-family:inherit; font-size:14px; font-weight:600; padding:10px 20px; border-radius:8px;
  border:1px solid var(--green); background: var(--green); color:#fff; cursor:pointer; transition: background .15s;
}
.train-form button:hover{ background:#065c2d; }
.official-links{ display:flex; gap:10px; flex-wrap:wrap; margin-top:16px; }
.official-links a{
  font-size:13px; font-weight:600; text-decoration:none; color: var(--navy); border:1px solid var(--line);
  padding:9px 16px; border-radius:8px; background:#f3f6ff; transition: background .15s;
}
.official-links a:hover{ background:#e8edff; }

.map-filter-btn{
  font-family:inherit; font-size:13px; font-weight:600; padding:9px 16px; border-radius:8px;
  border:1px solid var(--line); background:#f2f3f5; color:#444; cursor:pointer; transition: background .15s, color .15s;
}
.map-filter-btn.active{ background: var(--navy); color:#fff; border-color: var(--navy); }
.map-filter-btn:disabled{ opacity:0.5; cursor:not-allowed; }
#mapContainer{ z-index:0; box-shadow: var(--shadow); }

footer{ text-align:center; padding: 24px 16px 34px; color: var(--muted); font-size: 12.5px; }
footer a{ color: var(--navy); font-weight:600; text-decoration:none; }
footer a:hover{ text-decoration:underline; }
