* { margin: 0; padding: 0; box-sizing: border-box; }
body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: #f0f2f5;
  color: #333;
  min-height: 100vh;
}
#preloader {
  position: fixed; top: 0; left: 0; width: 100%; height: 100%;
  background: #f0f2f5; display: flex; flex-direction: column;
  align-items: center; justify-content: center; z-index: 9999;
  transition: opacity 0.4s ease;
}
#preloader.hidden { opacity: 0; pointer-events: none; }
.spinner {
  width: 48px; height: 48px; border: 4px solid #d2e3fc;
  border-top-color: #1a73e8; border-radius: 50%;
  animation: spin 0.8s linear infinite; margin-bottom: 16px;
}
@keyframes spin { to { transform: rotate(360deg); } }
#preloader p { color: #666; font-size: 1.1em; }
.container { max-width: 1200px; margin: 0 auto; padding: 20px; }
header { text-align: center; margin-bottom: 30px; padding: 30px 0; }
header h1 { font-size: 2em; color: #1a73e8; margin-bottom: 8px; }
.subtitle { color: #666; font-size: 1.1em; }
.search-section { position: relative; margin-bottom: 30px; }
.search-box {
  display: flex; gap: 10px; max-width: 600px; margin: 0 auto;
  background: #fff; padding: 6px; border-radius: 12px; box-shadow: 0 2px 12px rgba(0,0,0,0.1);
}
.search-box input {
  flex: 1; border: none; padding: 14px 18px; font-size: 16px; outline: none; border-radius: 8px;
}
.search-box button {
  padding: 14px 28px; background: #1a73e8; color: #fff; border: none;
  border-radius: 8px; font-size: 16px; cursor: pointer; transition: background 0.2s;
}
.search-box button:hover { background: #1557b0; }
.autocomplete-list {
  position: absolute; top: 62px; left: 50%; transform: translateX(-50%);
  width: 600px; background: #fff; border-radius: 0 0 12px 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15); max-height: 350px; overflow-y: auto; z-index: 100;
  display: none;
}
.autocomplete-item {
  padding: 12px 18px; cursor: pointer; border-bottom: 1px solid #eee;
  transition: background 0.15s;
}
.autocomplete-item:hover, .autocomplete-item.active { background: #e8f0fe; }
.autocomplete-item .addr { font-weight: 500; }
.autocomplete-item .org { font-size: 0.85em; color: #666; margin-top: 2px; }
.results-section { margin-top: 20px; }
.result-card {
  background: #fff; border-radius: 12px; padding: 30px; box-shadow: 0 2px 12px rgba(0,0,0,0.08);
  margin-bottom: 20px;
}
.result-header { margin-bottom: 25px; }
.result-header h2 { font-size: 1.4em; color: #1a73e8; margin-bottom: 5px; }
.result-header .org-name { font-size: 1.1em; color: #333; font-weight: 500; }
.result-header .org-name a { color: #1a73e8; text-decoration: none; }
.result-header .org-name a:hover { text-decoration: underline; }
.back-link { font-size: 0.85em; color: #666; text-decoration: none; display: inline-block; margin-bottom: 8px; }
.back-link:hover { color: #1a73e8; }
.info-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 12px; }
.info-item {
  background: #f8f9fa; padding: 12px 16px; border-radius: 8px; border-left: 3px solid #1a73e8;
}
.info-item[data-address] { cursor: pointer; transition: background 0.15s; }
.info-item[data-address]:hover { background: #e8f0fe; }
.info-item[data-address] .value { color: #1a73e8; }
.info-item .label { font-size: 0.8em; color: #888; text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 4px; }
.info-item .value { font-size: 1em; color: #333; font-weight: 500; }
.show-more-btn {
  display: inline-block; margin-top: 20px; padding: 10px 24px; background: #1a73e8;
  color: #fff; border: none; border-radius: 8px; cursor: pointer; font-size: 14px;
  transition: background 0.2s;
}
.show-more-btn:hover { background: #1557b0; }
.section-block { margin-bottom: 20px; }
.section-title {
  font-size: 0.85em; font-weight: 600; color: #1a73e8;
  text-transform: uppercase; letter-spacing: 0.8px;
  margin-bottom: 10px; padding-bottom: 6px;
  border-bottom: 2px solid #e8f0fe;
}
.section-block .info-item { border-left-color: #34a853; }
.quick-links {
  max-width: 600px; margin: 0 auto 20px; text-align: center;
  font-size: 0.85em; color: #666;
}
.quick-links span { display: block; margin-bottom: 8px; font-weight: 500; }
.org-tags { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; }
.org-tag {
  background: #e8f0fe; color: #1a73e8; padding: 4px 12px; border-radius: 20px;
  cursor: pointer; font-size: 0.85em; transition: background 0.2s; white-space: nowrap;
}
.org-tag:hover { background: #d2e3fc; }
.stats-section {
  display: flex; gap: 30px; justify-content: center; margin: 40px 0;
  padding: 30px; background: #fff; border-radius: 12px; box-shadow: 0 2px 12px rgba(0,0,0,0.08);
}
.stat-item { text-align: center; }
.stat-number { display: block; font-size: 2em; font-weight: 700; color: #1a73e8; }
.stat-label { font-size: 0.9em; color: #666; }
.loading { text-align: center; padding: 60px 40px; color: #666; }
.loading .spinner { margin: 0 auto 16px; }
@media (max-width: 650px) {
  .search-box, .autocomplete-list { width: 100%; }
  .info-grid { grid-template-columns: 1fr; }
  .stats-section { flex-direction: column; gap: 15px; }
}
