/* Base reset */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  height: 100%;
}
body {
  font-family: verdana, arial, helvetica, sans-serif;
  font-size: 13px;
  line-height: 1.4;
  min-height: 100%;
  display: grid;
  grid-template-rows: auto 1fr auto;
}
header,
main,
footer {
  width: 100%;
}

/* Space between children */
.space-y-2 > * + * {
  margin-top: 8px;
}

/* Colors */
.text-blue {
  color: #00008b;
}
.text-gray {
  color: #666;
}
.bg-white {
  background: #fff;
}
.bg-gray {
  background: #f9f9f9;
}

/* Typography */
.text-xs {
  font-size: 11px;
}
.text-sm {
  font-size: 12px;
}
.text-xl {
  font-size: 18px;
}
.font-bold {
  font-weight: bold;
}

/* Spacing */
.m-0 {
  margin: 0;
}
.mt-4 {
  margin-top: 16px;
}
.mb-4 {
  margin-bottom: 16px;
}
.mx-auto {
  margin-left: auto;
  margin-right: auto;
}
.p-4 {
  padding: 16px;
}
.px-3 {
  padding-left: 12px;
  padding-right: 12px;
}
.py-1 {
  padding-top: 4px;
  padding-bottom: 4px;
}
.py-3 {
  padding-top: 12px;
  padding-bottom: 12px;
}

/* Layout */
.flex {
  display: flex;
}
.flex-row {
  flex-direction: row;
}
.flex-col {
  flex-direction: column;
}
.justify-between {
  justify-content: space-between;
}
.items-center {
  align-items: center;
}
.gap-2 {
  gap: 8px;
}
.gap-8 {
  gap: 32px;
}
.max-w {
  max-width: 800px;
}
.relative {
  position: relative;
}
.absolute {
  position: absolute;
}
.top-full {
  top: 100%;
}
.left-0 {
  left: 0;
}
.right-0 {
  right: 0;
}
.z-10 {
  z-index: 100;
}
.overflow-auto {
  overflow-y: auto;
}
.max-h-96 {
  max-height: 400px;
}

/* Borders */
.border {
  border: 1px solid #ccc;
}
.border-b {
  border-bottom: 1px solid #ccc;
}
.border-t {
  border-top: 1px solid #ccc;
}
.border-light {
  border-color: #eee;
}
.rounded {
  border-radius: 3px;
}
.shadow {
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Links */
a {
  color: #00008b;
  text-decoration: underline;
}
a:visited {
  color: #800080;
}

/* Headings */
h1 {
  font-size: 24px;
  color: #800080;
  margin: 16px 0;
  font-weight: bold;
}
h2 {
  font-size: 16px;
  color: #00008b;
  margin: 12px 0 8px;
  font-weight: bold;
}
h3 {
  font-size: 14px;
  color: #666;
  margin: 8px 0 4px;
  font-weight: bold;
}

/* Lists */
ul {
  margin: 8px 0;
  padding-left: 20px;
}
li {
  margin: 3px 0;
}
p {
  margin: 8px 0;
}

/* Components */
.tag {
  background: #f0f0f0;
  padding: 2px 6px;
  margin-right: 4px;
  margin-bottom: 3px;
  border-radius: 3px;
  font-size: 11px;
  color: #666;
  display: inline-block;
  text-decoration: none;
}
.tag:hover {
  background: #e0e0e0;
  text-decoration: none;
}

/* Search */
#search-input {
  width: 100%;
  padding: 6px 10px;
  font-size: 13px;
  font-family: inherit;
  border: 1px solid #ccc;
  border-radius: 3px;
}
#search-input:focus {
  outline: none;
  border-color: #00008b;
}

#search-results {
  display: none;
}

.search-result {
  display: block;
  padding: 8px 10px;
  border-bottom: 1px solid #eee;
  text-decoration: none;
  color: #000;
}
.search-result:hover {
  background: #f0f0f0;
}
.search-result strong {
  display: block;
  color: #00008b;
}
.search-result span {
  display: block;
  font-size: 11px;
  color: #666;
  margin-top: 2px;
}

/* Map */
#map {
  height: 200px;
}

/* Mobile */
@media (max-width: 600px) {
  .sm-flex-col {
    flex-direction: column;
    gap: 8px;
    text-align: center;
  }
  body {
    font-size: 12px;
  }
}
