:root {
  --bg: #ffffff;
  --ink: #202124;
  --muted: #5f6368;
  --brand: #1a73e8;
  --border: #dfe1e5;
  --shadow: 0 1px 6px rgba(32, 33, 36, 0.18);
  --radius: 999px;
  --radius-sm: 10px;
  --max: 1100px;
  --font: "Manrope", sans-serif;
}

* {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
}

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
}

a {
  color: inherit;
  text-decoration: none;
}

a:hover {
  color: var(--brand);
}

.container {
  width: min(100%, var(--max));
  margin: 0 auto;
  padding: 24px 20px;
}

.hero {
  min-height: calc(100vh - 80px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.brand {
  font-size: clamp(40px, 6.5vw, 60px);
  font-weight: 700;
  letter-spacing: -0.01em;
  color: #000000;
}

.tagline {
  margin: 6px 0 22px;
  color: var(--muted);
  font-size: 14px;
}

.logo {
  font-weight: 700;
  font-size: 18px;
  color: #000000;
}

.search-form {
  width: min(760px, 92vw);
  margin: 0 auto;
}

.search-form--top {
  width: 100%;
  max-width: 760px;
}

.searchbar {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 6px 16px;
  background: #ffffff;
  box-shadow: var(--shadow);
  transition: box-shadow 0.2s ease, border-color 0.2s ease;
  min-height: 46px;
}

.searchbar:hover {
  box-shadow: 0 2px 8px rgba(32, 33, 36, 0.22);
}

.searchbar:focus-within {
  border-color: rgba(26, 115, 232, 0.4);
  box-shadow: 0 2px 10px rgba(32, 33, 36, 0.24);
}

.searchbar input {
  flex: 1 1 280px;
  border: none;
  background: transparent;
  padding: 10px 0;
  font-size: 16px;
  font-family: inherit;
  color: inherit;
}

.searchbar input::placeholder {
  color: #80868b;
}

.searchbar input:focus {
  outline: none;
}

.city-pill {
  position: relative;
  display: flex;
  align-items: center;
}

.city-pill select {
  appearance: none;
  border: 1px solid var(--border);
  background: #f8f9fa;
  color: var(--ink);
  border-radius: var(--radius);
  padding: 6px 28px 6px 12px;
  font-size: 13px;
  font-family: inherit;
  cursor: pointer;
  min-width: 140px;
}

.city-pill::after {
  content: "";
  position: absolute;
  right: 12px;
  top: 50%;
  width: 6px;
  height: 6px;
  border: solid #5f6368;
  border-width: 0 1.5px 1.5px 0;
  transform: translateY(-50%) rotate(45deg);
  pointer-events: none;
}

.search-actions {
  display: flex;
  justify-content: center;
  margin-top: 20px;
}

.btn {
  border: none;
  background: var(--brand);
  color: #ffffff;
  font-weight: 600;
  padding: 10px 18px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 14px;
}

.btn:hover {
  background: #1967d2;
}

.btn.secondary {
  background: #ffffff;
  color: var(--ink);
  border: 1px solid var(--border);
}

.btn.secondary:hover {
  border-color: #c7c9cc;
}

.btn.search-btn {
  background: #f8f9fa;
  color: #3c4043;
  border: 1px solid #f8f9fa;
  border-radius: 4px;
  box-shadow: none;
  padding: 10px 18px;
}

.btn.search-btn:hover {
  border-color: #dadce0;
  box-shadow: 0 1px 1px rgba(0, 0, 0, 0.08);
}

.btn.danger {
  background: #b44a3d;
}

.btn.danger:hover {
  background: #9f3f34;
}

.suggestions {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 8px);
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 16px;
  box-shadow: var(--shadow);
  overflow: hidden;
  text-align: left;
  z-index: 10;
}

.suggestions.hidden {
  display: none;
}

.suggestions .item {
  padding: 12px 16px;
  border-top: 1px solid rgba(223, 225, 229, 0.6);
  cursor: pointer;
}

.suggestions .item:first-child {
  border-top: none;
}

.suggestions .item:hover {
  background: rgba(26, 115, 232, 0.08);
}

.search-top {
  display: flex;
  align-items: center;
  gap: 20px;
  padding-top: 18px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(223, 225, 229, 0.7);
}

.search-top .logo {
  margin-right: 4px;
}

.results-block {
  padding-top: 18px;
  max-width: 760px;
}

.results {
  display: grid;
  gap: 14px;
}

.page.search .card {
  border: none;
  border-bottom: 1px solid rgba(223, 225, 229, 0.7);
  border-radius: 0;
  padding: 14px 0;
  background: transparent;
}

.page.search .card:last-child {
  border-bottom: none;
}

.card {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 16px;
  background: #ffffff;
}

.card h3 {
  margin: 0 0 6px;
  font-size: 18px;
}

.chip {
  display: inline-flex;
  align-items: center;
  border: 1px solid rgba(223, 225, 229, 0.9);
  background: #f8f9fa;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 12px;
  color: var(--muted);
  margin-right: 6px;
}

.muted {
  color: var(--muted);
}

.row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.field {
  display: grid;
  gap: 6px;
  margin-bottom: 12px;
}

.field label {
  font-size: 12px;
  color: var(--muted);
}

.field input,
.field textarea,
.field select {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  font-family: inherit;
  font-size: 14px;
  background: #ffffff;
}

.field textarea {
  min-height: 140px;
  resize: vertical;
}

.admin-page {
  display: grid;
  gap: 18px;
  padding-top: 18px;
}

.admin-head h1 {
  margin: 0;
  font-size: 22px;
  font-weight: 600;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 900px) {
  .searchbar {
    flex-direction: column;
    align-items: stretch;
    padding: 10px 12px;
  }

  .city-pill {
    width: 100%;
  }

  .city-pill select {
    width: 100%;
  }

  .search-top {
    flex-direction: column;
    align-items: flex-start;
  }

  .search-form--top {
    width: 100%;
  }

  .grid-2 {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 600px) {
  .hero {
    min-height: auto;
    padding: 40px 0 60px;
  }

  .brand {
    font-size: 34px;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition: none !important;
  }
}
