*{box-sizing:border-box}
body{margin:0;font-family:Inter,system-ui,-apple-system,Segoe UI,sans-serif;background:#f4f6f8;color:#17202a}
header{height:90px;background:#111827;color:white;display:flex;align-items:center;padding:10px 24px;justify-content:space-between}
.brand{font-weight:700;font-size:20px}
.brand span{font-weight:400;opacity:.75;margin-left:8px}
.wrap{max-width:1280px;margin:auto;padding:24px}
.hero{display:flex;justify-content:space-between;align-items:end;margin-bottom:18px}
.hero h1{margin:0;font-size:34px}
.muted{color:#65717c}
.card{background:white;border-radius:14px;box-shadow:0 2px 12px #00000010;border:1px solid #e4e9ed}
.pill{background:#e9f0f5;padding:7px 10px;border-radius:999px;font-size:13px;white-space:nowrap}

/* Upozorenje */
.warning{display:flex;align-items:flex-start;gap:13px;margin-bottom:18px;padding:14px 17px;border:1px solid #e7c56b;border-left:4px solid #d59b19;border-radius:10px;background:#fff9e8;color:#594714;font-size:14px;line-height:1.45}
.warning strong{display:block;margin-bottom:2px;color:#45370e}
.warning-icon{flex:0 0 24px;width:24px;height:24px;border-radius:50%;display:flex;align-items:center;justify-content:center;background:#d59b19;color:#fff;font-weight:800;font-size:15px}

/* Filteri */
.filters{display:flex;align-items:flex-end;gap:12px;padding:16px 18px;margin-bottom:12px;flex-wrap:wrap}
.filter-field{display:flex;flex-direction:column;gap:6px}
.filter-field label{font-size:12px;font-weight:700;color:#687680}
.filter-field input,.filter-field select{height:40px;border:1px solid #cfd8df;border-radius:8px;background:#fff;color:#17202a;padding:0 11px;font:inherit;font-size:14px;outline:none}
.filter-field input:focus,.filter-field select:focus{border-color:#587b91;box-shadow:0 0 0 3px rgba(21,62,88,.08)}
.filter-mag input{width:155px}
.filter-actions{display:flex;gap:8px;margin-left:auto}
.btn{height:40px;border-radius:8px;padding:0 15px;font:inherit;font-size:14px;font-weight:650;cursor:pointer;display:inline-flex;align-items:center;justify-content:center}
.btn-primary{background:#153e58;color:#fff;border:1px solid #153e58}
.btn-primary:hover{background:#0f3249}
.btn-secondary{background:#fff;color:#40505b;border:1px solid #cfd8df}
.btn-secondary:hover{background:#f4f6f8}
.results-info{min-height:27px;padding:2px 4px 8px;color:#65717c;font-size:13px}

/* Lista događaja */
.events{overflow:hidden}
.eventrow{display:grid;grid-template-columns:100px 1fr 210px 120px;align-items:center;padding:17px 22px;border-bottom:1px solid #e7ebee;text-decoration:none;color:inherit;transition:background-color .12s ease}
.eventrow:nth-child(odd){background:#fff}
.eventrow:nth-child(even){background:#f3f5f7}
.eventrow:hover{background:#e8f1f8}
.eventrow:last-child{border-bottom:0}
.mag{justify-self:start;display:inline-flex;align-items:center;justify-content:center;min-width:66px;padding:7px 10px;border-radius:9px;background:#e8eef2;color:#233744;font-size:21px;font-weight:780;line-height:1}
.mag-medium{background:#fff0d5;color:#80500b}
.mag-strong{background:#fde2df;color:#9c2d23}
.event-title{font-size:18px;font-weight:650;margin-bottom:3px}
.coords,.depth{font-size:14px;color:#3e4d57}
.no-results{padding:34px 22px;text-align:center;color:#65717c}
.load-more-wrap{text-align:center;padding:18px 0 6px}
.btn-more{background:#fff;color:#153e58;border:1px solid #c7d2d9;min-width:130px}
.btn-more:hover{background:#edf3f6}

/* Postojeći stilovi detalja događaja */
.grid{display:grid;grid-template-columns:1fr 340px;gap:20px}
.map{height:610px;border-radius:14px;overflow:hidden}
.side{padding:20px}
.tabs{display:flex;gap:8px;flex-wrap:wrap;margin:0 0 14px}
.tab{border:1px solid #cfd8df;background:white;border-radius:9px;padding:9px 13px;cursor:pointer}
.tab.active{background:#153e58;color:#fff;border-color:#153e58}
.kv{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin-top:18px}
.kv div{padding:11px;background:#f6f8fa;border-radius:8px}
.kv b{display:block;font-size:12px;color:#687680;margin-bottom:3px}
.legend{font-size:13px;margin-top:14px}
.station-table{margin-top:20px;overflow:auto;max-height:390px}
table{border-collapse:collapse;width:100%;font-size:13px}
th,td{padding:8px;border-bottom:1px solid #edf0f2;text-align:right}
th:first-child,td:first-child{text-align:left}
.map-img{width:100%;border-radius:10px;margin-top:12px}
.section-title{margin:28px 0 12px}
.header-logos{height:100%;display:flex;align-items:center;gap:18px}
.header-logos img{display:block;width:auto;object-fit:contain}
.crossnet-logo{height:54px;max-width:200px}
.eu-logo{height:38px;max-width:145px}

@media(max-width:850px){
  .grid{grid-template-columns:1fr}
  .eventrow{grid-template-columns:78px 1fr;padding:15px 14px}
  .eventrow>:nth-child(3),.eventrow>:nth-child(4){display:none}
  .mag{min-width:58px;font-size:18px;padding:7px 8px}
  .event-title{font-size:16px}
  .map{height:480px}
  header{padding:0 16px}
  .wrap{padding:16px}
  .hero{align-items:flex-start;gap:12px}
  .hero h1{font-size:29px}
  .filters{align-items:stretch}
  .filter-field{flex:1 1 140px}
  .filter-field input,.filter-field select,.filter-mag input{width:100%}
  .filter-actions{width:100%;margin-left:0}
  .filter-actions .btn{flex:1}
  .warning{font-size:13px}
}
