:root{
  --bg: #0b1220;
  --surface: #0f172a;
  --card: #0b1220;
  --text: #0f172a;
  --muted: #6b7280;

  --primary: #2563eb;
  --primary-2: #1d4ed8;

  --border: rgba(15, 23, 42, 0.10);
  --ring: rgba(37, 99, 235, 0.18);

  --radius: 14px;
  --shadow: 0 18px 45px rgba(15, 23, 42, 0.10);
}

*{ box-sizing:border-box; }
html, body{ height:100%; }
body{
  margin:0;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  color: #0f172a;
  background: #f5f7fb;
}

/* Layout container */
.container{
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 18px;
}

/* ===== Header / Navbar ===== */
.site-header{
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(10px);
}

.nav{
  display:flex;
  align-items:center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 0;
}

.brand{
  display:flex;
  align-items:center;
  gap: 10px;
  text-decoration:none;
  color: inherit;
  font-weight: 750;
  letter-spacing: -0.02em;
}

.brand-logo-frame{
  position:relative;
  display:block;
  width:48px;
  height:35px;
  flex:0 0 auto;
  overflow:hidden;
}

.brand-logo{
  position:absolute;
  top:0;
  left:-2px;
  display:block;
  width:52px;
  height:auto;
}

.brand-text{
  font-size:1rem;
}

.brand-mark{
  width: 34px;
  height: 34px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  border-radius: 10px;
  background: rgba(37, 99, 235, 0.10);
  color: var(--primary);
  font-weight: 900;
}

.nav-links{
  display:flex;
  align-items:center;
  gap: 14px;
  flex: 1;
  justify-content: flex-start;
}

.nav-link{
  text-decoration:none;
  color: #0f172a;
  font-weight: 550;
  padding: 8px 10px;
  border-radius: 10px;
  transition: background .15s ease, transform .15s ease;
}

.nav-link:hover{
  background: rgba(15, 23, 42, 0.05);
}

.nav-actions{
  margin-left: auto;
  display:flex;
  align-items:center;
  gap: 10px;
  flex-wrap: wrap;
  justify-content:flex-end;
}

.nav-user{
  color: var(--muted);
  font-size: 0.95rem;
  white-space: nowrap;
}

/* ===== Buttons ===== */
.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap: 8px;
  padding: 9px 12px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: #fff;
  color: #0f172a;
  text-decoration:none;
  font-weight: 650;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease, border-color .15s ease;
}

.btn:hover{
  transform: translateY(-1px);
  box-shadow: 0 10px 22px rgba(15, 23, 42, 0.10);
  background: #ffffff;
}

.btn:active{
  transform: translateY(0);
  box-shadow: none;
}

.btn-ghost{
  background: rgba(255,255,255,0.65);
}

.btn-primary{
  border-color: var(--primary);
  background: var(--primary);
  color: #fff;
}

.btn-primary:hover{
  background: var(--primary-2);
  border-color: var(--primary-2);
  box-shadow: 0 14px 28px rgba(37, 99, 235, 0.22);
}

main.container{
  padding-top: 28px;
  padding-bottom: 40px;
}

/* General helpers */
.muted{ color: var(--muted); }

/* ===== Footer ===== */
.site-footer{
  margin-top: 40px;
  border-top: 1px solid var(--border);
  background: #ffffff;
}

.footer-grid{
  display:grid;
  grid-template-columns: minmax(300px, 2fr) repeat(4, 1fr);
  gap: 22px;
  padding: 28px 0;
}

.footer-funding-summary{
  max-width: 390px;
}

.footer-eu-lockup{
  display:flex;
  align-items:center;
  gap: 12px;
  margin-bottom: 12px;
  color: #111827;
  font-size: 1.05rem;
  line-height: 1.25;
}

.footer-eu-logo-frame{
  display:block;
  width: 78px;
  height: 60px;
  flex: 0 0 auto;
  overflow:hidden;
}

.footer-eu-logo{
  display:block;
  width:auto;
  height:60px;
}

.footer-funding-disclaimer{
  margin:0;
  color:#6b7280;
  font-size:0.8rem;
  line-height:1.5;
}

.footer-title{
  font-size: 0.9rem;
  font-weight: 750;
  color: #111827;
  margin-bottom: 10px;
}

.footer-col{
  display:flex;
  flex-direction:column;
  gap: 8px;
}

.footer-link{
  color: #374151;
  text-decoration:none;
  padding: 4px 0;
}

.footer-link:hover{
  color: #111827;
  text-decoration: underline;
}

.footer-bottom{
  padding: 14px 0 22px;
  border-top: 1px solid var(--border);
  display:flex;
  justify-content: space-between;
  align-items:center;
}

/* Responsive */
@media (max-width: 900px){
  .nav{ flex-wrap: wrap; }
  .nav-links{ justify-content: flex-start; width: 100%; }
  .footer-grid{ grid-template-columns: 1fr 1fr; }
  .footer-funding-summary{ grid-column: 1 / -1; }
}

@media (max-width: 560px){
  .footer-grid{ grid-template-columns: 1fr; }
  .nav-actions{ width: 100%; justify-content: flex-start; }
}

#addrLocateBtn{
  display: inline-flex;
  align-items: center;
  gap: 6px;            /* space between icon and text */
}

#addrLocateBtn::before{
  content: "";
  width: 16px;
  height: 16px;
  display: inline-block;
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;

  /* inline SVG icon */
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 21s7-4.35 7-11a7 7 0 1 0-14 0c0 6.65 7 11 7 11z'/%3E%3Ccircle cx='12' cy='10' r='2'/%3E%3C/svg%3E");
}
