.home-search-shell {
  max-width: 1180px;
  margin: 0 auto;
  padding-bottom: 7rem;
}

.home-search {
  width: 100%;
  min-height: calc(100vh - var(--topbar-height, 3.6rem));
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(4rem, 12vh, 8rem) 0;
  text-align: center;
}

.home-search h1 {
  margin: 0 0 1.75rem 0;
  font-family: var(--font-ui);
  font-size: clamp(4.25rem, 12vw, 6.4rem);
  line-height: 1;
  font-weight: 500;
  letter-spacing: 0;
}

.home-search-form {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  width: 100%;
  max-width: 720px;
  min-height: 3.25rem;
  margin: 0 auto;
  padding: 0.25rem 0.25rem 0.25rem 1.25rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: white;
  box-shadow: 0 1px 6px rgba(32, 33, 36, 0.18);
}

.home-search-form:focus-within {
  border-color: #c7c7c7;
  box-shadow: 0 1px 8px rgba(32, 33, 36, 0.26);
}

.home-search-form input {
  flex: 1;
  width: 100%;
  min-width: 0;
  min-height: 2.75rem;
  padding: 0;
  border: 0;
  background: transparent;
}

.home-search-form input:focus {
  outline: none;
}

.home-search-form button {
  align-self: stretch;
  width: 3rem;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: var(--text);
  color: white;
  display: grid;
  place-items: center;
}

.home-search-form button:hover {
  background: #333;
}

.home-search-form button img {
  width: 1.35rem;
  height: 1.35rem;
  object-fit: contain;
}

.home-shortcuts {
  display: flex;
  justify-content: center;
  gap: 1.25rem;
  margin-top: 2rem;
}

.home-shortcut {
  display: grid;
  justify-items: center;
  gap: 0.6rem;
  width: 5.5rem;
  color: var(--text);
  text-decoration: none;
  font-size: 0.88rem;
  line-height: 1.2;
}

.home-shortcut-icon {
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #f1e0d7;
  transition: background 0.16s ease, transform 0.16s ease;
}

.home-shortcut:hover .home-shortcut-icon,
.home-shortcut:focus-visible .home-shortcut-icon {
  background: #ead1c4;
  transform: translateY(-1px);
}

.home-shortcut:focus-visible {
  outline: 2px solid var(--text);
  outline-offset: 0.45rem;
  border-radius: 0.75rem;
}

.home-shortcut-pin {
  position: relative;
  width: 1.1rem;
  height: 1.1rem;
  border: 0.18rem solid #8f4c21;
  border-radius: 50% 50% 50% 0;
  transform: rotate(-45deg);
}

.home-shortcut-pin::after {
  content: "";
  position: absolute;
  inset: 0.23rem;
  border-radius: 50%;
  background: #8f4c21;
}

.home-shortcut-label {
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.home-search .flash {
  margin-top: 1.5rem;
  text-align: left;
}

.home-faq {
  width: 100%;
  max-width: 1080px;
  margin: 7.5rem auto 0;
  text-align: left;
}

.home-faq h2 {
  margin: 0 0 2.5rem;
  text-align: center;
  font-size: 2rem;
  line-height: 1.2;
  font-weight: 500;
}

.home-faq-item {
  border-bottom: 1px solid var(--border);
}

.home-faq-item:first-of-type {
  border-top: 1px solid var(--border);
}

.home-faq-item summary {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 1.25rem;
  align-items: center;
  padding: 1.1rem 0;
  cursor: pointer;
  font-weight: 700;
  list-style: none;
}

.home-faq-item summary::-webkit-details-marker {
  display: none;
}

.home-faq-item summary::after {
  content: "+";
  font-size: 1.45rem;
  line-height: 1;
  font-weight: 400;
  transition: transform 0.16s ease;
}

.home-faq-item[open] summary::after {
  transform: rotate(45deg);
}

.home-faq-answer {
  margin: 0;
  padding: 0 2.75rem 1.1rem 0;
  color: var(--muted);
  line-height: 1.5;
}

.home-tour-replay {
  width: 100%;
  max-width: 1080px;
  margin: 3rem auto 0;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: center;
}

.home-tour-replay-button {
  min-width: min(18rem, 100%);
}

.search-page-shell {
  max-width: 960px;
}

.search-page-header {
  margin: 2rem 0 2.5rem 0;
}

.search-page-form {
  max-width: 680px;
  margin: 0;
}

.search-results-panel h1 {
  margin: 0 0 0.25rem 0;
  font-size: 1.7rem;
  line-height: 1.3;
  font-weight: normal;
}

.search-summary {
  margin: 0 0 1.5rem 0;
  color: var(--muted);
}

.search-result-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

.search-result-section h2 {
  margin: 0 0 0.75rem 0;
  font-size: 1.2rem;
  line-height: 1.3;
  font-weight: normal;
}

/* Search and forms */
.search-bar {
  display: flex;
  gap: 0.5rem;
  margin: 1.5rem 0;
}

.search-bar input {
  flex: 1;
  padding: 0.75rem;
  border: 1px solid var(--border);
  background: white;
}

.search-bar button {
  padding: 0.75rem 1.5rem;
  border: 1px solid var(--text);
  background: var(--text);
  color: white;
}

.search-bar button:hover {
  background: #333;
}

.hero-actions,
.pill-row,
.stat-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin: 1rem 0;
}

.pill {
  display: inline-block;
  border: 1px solid var(--border);
  padding: 0.5rem 1rem;
  background: white;
  font-size: 0.9rem;
}

@media (max-width: 720px) {
  .home-faq {
    margin-top: 5rem;
  }

  .home-faq h2 {
    margin-bottom: 1.75rem;
    font-size: 1.55rem;
  }

  .home-faq-item summary {
    padding: 1rem 0;
  }
}
