/* Common resets */
html, body {
  margin: 0;
  padding: 0;
  height: 100%;
  font-family: sans-serif;
  background-color: #f8f9fa;
}

/* Title Bar */
#titlebar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 50px;
  background-color: #343a40;
  color: #fff;
  display: flex;
  align-items: center;
  padding: 0 20px;
  z-index: 100;
}
#titlebar .brand a {
  color: #fff;
  font-weight: bold;
  text-decoration: none;
}
#titlebar label,
#titlebar input,
#titlebar button {
  font-size: 14px;
  margin-left: 10px;
}

/* Tool Cards */
.tool {
  max-width: 400px;
  margin: 20px auto 20px; /* leave space for fixed title bar */
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  padding: 20px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.tool:hover {
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}
.tool h1 {
  margin-top: 0;
  font-size: 1.5em;
  color: #343a40;
}
.tool p {
  font-size: 1em;
  line-height: 1.5;
  color: #555;
}
.tool a {
  display: inline-block;
  margin-top: 10px;
  text-decoration: none;
  color: #007BFF;
  border: 1px solid #007BFF;
  padding: 8px 16px;
  border-radius: 4px;
  transition: background-color 0.3s, color 0.3s;
}
.tool a:hover {
  background-color: #007BFF;
  color: #fff;
}

/* Photographic Life List Rows */
.row {
  display: grid;
  grid-template-columns: 40px 3fr 1fr 2fr 1fr;
  align-items: center;
  padding: 4px 8px;
  border-bottom: 1px solid #ddd;
  font-size: 14px;
  background: #fff;
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
  box-sizing: border-box;
}
.row:nth-child(odd) { background: #f9f9f9; }
.rank   { text-align: right; font-weight: 500; }
.name   { color: #343a40; font-weight: 500; margin-left: 4px; }
.name .sci { font-style: italic; color: #666; font-size: 12px; margin-left: 4px; }
.date a { text-decoration: none; color: #007BFF; }
.date a:hover { text-decoration: underline; }
.loc    { color: #555; }
.view a {
  text-decoration: none;
  color: #007BFF;
  font-size: 13px;
}
.view a:hover { text-decoration: underline; }

/* Map container */
#map {
  position: absolute;
  top: 50px; /* adjust for fixed title bar */
  bottom: 0;
  left: 0;
  right: 0;
}

/* Legend */
#legend {
  margin-left: auto;
  display: flex;
  align-items: center;
  font-size: 14px;
}
#legend div {
  width: 100px;
  height: 10px;
  border: 1px solid #fff;
  margin: 0 5px;
}
