/* assets/style.css - minimal purple UI */
:root{
  --bg:#f3ecff;
  --panel:#ffffff;
  --primary:#6c63ff;
  --primary-600:#584ff0;
  --text:#1f2340;
  --muted:#62677a;
  --border:#e4e6ef;
}

*{box-sizing:border-box}
html,body{height:100%}
body{
  margin:0;
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji", "Segoe UI Emoji";
  color:var(--text);
  background:linear-gradient(180deg, #bfaaff 0%, var(--bg) 100%);
}
.app{display:grid; grid-template-columns: 360px 1fr; gap:16px; height:100vh; padding:16px;}
.panel{
  background:var(--panel);
  border-radius:16px;
  padding:16px;
  box-shadow: 0 10px 30px rgba(0,0,0,.08);
  overflow:auto;
}
.brand{display:flex; gap:12px; align-items:center; margin-bottom:10px;}
.brand .logo{font-size:28px; background:#e7e4ff; color:var(--primary); padding:10px; border-radius:12px;}
.brand h1{font-size:20px; margin:0 0 4px 0}
.brand p{margin:0; color:var(--muted); font-size:12px}

.form .input-row, .form .grid{margin-bottom:12px}
.form label{display:block; font-weight:600; margin-bottom:6px}
.form input, .form select{
  width:100%; padding:10px 12px; border:1px solid var(--border); border-radius:10px;
  outline:none; background:#fff; color:var(--text);
}
.form input:focus, .form select:focus{border-color:var(--primary)}
.grid{display:grid; grid-template-columns: 1fr 1fr; gap:12px}
.searchbar{display:flex; gap:8px}
.btn{border:0; padding:10px 14px; border-radius:10px; cursor:pointer}
.btn-primary{background:var(--primary); color:#fff}
.btn-primary:hover{background:var(--primary-600)}
.full{grid-column:1 / -1}
.advanced{background:#faf9ff; border:1px dashed #d9d6ff; padding:10px; border-radius:10px}
.advanced summary{cursor:pointer; font-weight:600; color:#4e49c6}

.stats{margin:10px 0; color:var(--muted)}
.list{display:grid; gap:8px}
.card{
  border:1px solid var(--border); border-radius:12px; padding:10px; background:#fff;
}
.card h3{margin:0 0 6px 0; font-size:14px}
.card p{margin:0; color:var(--muted); font-size:12px}

.mapwrap{position:relative; border-radius:16px; overflow:hidden; box-shadow: 0 10px 30px rgba(0,0,0,.08);}
#map{height:100%; min-height:300px}

@media (max-width: 960px){
  .app{grid-template-columns: 1fr; height:auto}
  #map{height:60vh}
}


/* Ensure map is visible and tall */
.mapwrap{min-height:80vh;}
#map{height:100%; min-height:80vh}


/* Results table */
.result-table{width:100%; border-collapse:separate; border-spacing:0; font-size:12px; background:#fff; border:1px solid var(--border); border-radius:12px; overflow:hidden; display:block; max-height:28vh; overflow-y:auto}
.result-table thead th{position:sticky; top:0; background:#2b2d42; color:#fff; text-align:left; padding:8px 10px; font-weight:700; letter-spacing:.2px}
.result-table tbody td{padding:8px 10px; border-top:1px solid var(--border)}
.result-table tbody tr:hover{background:#faf9ff; cursor:pointer}
.result-table .mono{font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;}

/* Full-width fixed table layout */
.result-table.fixed{table-layout:fixed; width:100%; display:table; max-height:none; overflow:visible}
.result-table.fixed thead th:nth-child(1){width:80px}
.result-table.fixed thead th:nth-child(2){width:70px}
.result-table.fixed thead th:nth-child(3){width:70px}
.result-table.fixed thead th:nth-child(4){width:80px}
.result-table.fixed thead th:nth-child(5){width:100px}
.result-table.fixed thead th:nth-child(6){width:110px}
.result-table.fixed thead th:nth-child(7){width:110px}
.result-table.fixed thead th:nth-child(8){width:100px}
.result-table.fixed thead th:nth-child(9){width:90px}
.result-table.fixed thead th:nth-child(10){width:110px}
.result-table.fixed thead th:nth-child(11){width:160px}
.result-table td, .result-table th{white-space:nowrap; overflow:hidden; text-overflow:ellipsis}
