.hp-v2-info-strip,
.hp-v2-info-popup,
.hp-v2-info-interstitial {
  display: none !important;
}

.hp-v2-page-shell:has(.hp-v2-ms-page) {
  background: #e5e7eb;
  min-height: 100dvh;
  padding-bottom: 0 !important;
}

body.hp-v2:has(.hp-v2-ms-page) {
  background: #e5e7eb !important;
}

.hp-v2:has(.hp-v2-ms-page) .hp-v2-info-strip,
.hp-v2:has(.hp-v2-ms-page) .hp-v2-info-popup,
.hp-v2:has(.hp-v2-ms-page) .hp-v2-info-interstitial {
  display: none !important;
}

.hp-v2-page-shell:has(.hp-v2-ms-page) {
  background: #e5e7eb;
}

.hp-v2-ms-page {
  --ms-text: #1f2937;
  --ms-muted: #6b7280;
  --ms-line: #e5e7eb;
  --ms-surface: #f3f4f6;
  --ms-teal: #0f766e;
  --ms-teal-deep: #115e59;
  --ms-accent: #0f766e;
  min-height: 100vh;
  color: var(--ms-text);
  padding: max(env(safe-area-inset-top), 8px) 0 max(env(safe-area-inset-bottom), 12px);
}

.hp-v2-ms-shell {
  width: min(100%, 430px);
  margin: 0 auto;
  padding: 0 8px 16px;
}

.hp-v2-ms-topbar {
  display: grid;
  gap: 0;
  position: sticky;
  top: 0;
  z-index: 32;
}

.hp-v2-ms-back-link {
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 0;
  color: #4b5563;
  text-decoration: none;
  background: transparent;
  border: 0;
}

.hp-v2-ms-hero {
  border-radius: 0;
  padding: 8px 16px 10px;
  background: #e5e7eb;
  border-bottom: 1px solid #d1d5db;
  box-shadow: none;
}

.hp-v2-ms-topbar-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.hp-v2-ms-city-inline {
  min-width: 0;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.hp-v2-ms-city-inline p {
  margin: 0;
  font-size: 0.94rem;
  color: #111827;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.hp-v2-ms-city-inline strong {
  font-weight: 700;
}

.hp-v2-ms-city-context {
  display: none;
}

.hp-v2-ms-city-switch {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  border: 0;
  border-radius: 0;
  min-height: 40px;
  padding: 0;
  font-size: 0.9rem;
  font-weight: 700;
  color: #111827;
  background: transparent;
  text-decoration: none;
}

.hp-v2-ms-city-switch-short {
  display: none;
}

.hp-v2-ms-city-switch .material-symbols-rounded {
  font-size: 18px;
}

.hp-v2-ms-searchbox {
  margin-top: 10px;
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 56px;
  border-radius: 8px;
  padding: 0 14px;
  background: #ffffff;
  border: 1px solid #e5e7eb;
}

.hp-v2-ms-search-icon {
  color: #9ca3af;
  font-size: 20px;
}

.hp-v2-ms-searchbox input {
  flex: 1;
  min-width: 0;
  border: 0;
  outline: 0;
  font-size: 0.95rem;
  color: #374151;
  background: transparent;
}

.hp-v2-ms-searchbox input::placeholder {
  color: #9ca3af;
}

.hp-v2-ms-clear {
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #6b7280;
  background: #f3f4f6;
}

.hp-v2-ms-clear .material-symbols-rounded {
  font-size: 16px;
}

.hp-v2-ms-tabbar {
  margin-top: 12px;
  display: flex;
  justify-content: space-between;
  gap: 10px;
  background: transparent;
  border: 0;
  border-radius: 0;
  padding: 0;
  overflow-x: hidden;
  width: 100%;
  scrollbar-width: none;
}

.hp-v2-ms-tabbar::-webkit-scrollbar {
  display: none;
}

.hp-v2-ms-tab {
  flex: 1 1 auto;
  border: 0;
  background: transparent;
  color: #111827;
  border-radius: 0;
  min-height: 40px;
  padding: 10px 0 8px;
  font-size: 0.88rem;
  font-weight: 500;
  border-bottom: 3px solid transparent;
  text-align: left;
  min-width: 0;
}

.hp-v2-ms-tab.is-active {
  background: transparent;
  color: #0f766e;
  border-bottom-color: #0f766e;
}

.hp-v2-ms-inline-location {
  margin-top: 8px;
  width: 100%;
  min-height: 48px;
  display: flex;
  align-items: center;
  gap: 6px;
  border: 0;
  background: transparent;
  padding: 0 2px;
  color: #374151;
  font-size: 0.93rem;
  font-weight: 600;
  text-align: left;
}

.hp-v2-ms-inline-location .material-symbols-rounded {
  font-size: 18px;
}

.hp-v2-ms-inline-location .material-symbols-rounded:first-child {
  color: #0f766e;
}

.hp-v2-ms-inline-location .material-symbols-rounded:last-child {
  margin-left: auto;
  color: #6b7280;
}

.hp-v2-ms-content,
.hp-v2-ms-storyboard,
.hp-v2-ms-results {
  display: grid;
  gap: 14px;
}

.hp-v2-ms-content {
  margin-top: 0;
  background: var(--ms-surface);
  border-radius: 0 0 12px 12px;
  padding: 12px 16px;
  border: 0;
  box-shadow: none;
}

.hp-v2-ms-section {
  display: grid;
  gap: 8px;
}

.hp-v2-ms-section-head h3 {
  margin: 0;
  font-size: 1rem;
  color: #111827;
  font-weight: 800;
}

.hp-v2-ms-section-head p {
  margin: 2px 0 0;
  font-size: 0.82rem;
  color: var(--ms-muted);
}

.hp-v2-ms-chip-rail,
.hp-v2-ms-card-rail {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 2px;
  scrollbar-width: none;
}

.hp-v2-ms-chip-rail::-webkit-scrollbar,
.hp-v2-ms-card-rail::-webkit-scrollbar {
  display: none;
}

.hp-v2-ms-rail-chip {
  min-width: 145px;
  border: 1px solid var(--ms-line);
  border-radius: 10px;
  background: #ffffff;
  padding: 8px 10px;
  text-align: left;
  font-weight: 700;
  color: #1f2937;
}

.hp-v2-ms-rail-chip span {
  display: block;
  font-size: 0.86rem;
}

.hp-v2-ms-rail-chip small {
  margin-top: 2px;
  display: inline-flex;
  border-radius: 999px;
  background: #ecfeff;
  color: #0f766e;
  font-size: 0.62rem;
  font-weight: 700;
  padding: 1px 6px;
}

.hp-v2-ms-hub-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.hp-v2-ms-hub-card {
  min-height: 88px;
  border-radius: 12px;
  border: 1px solid #d1fae5;
  background: linear-gradient(180deg, #ffffff 0%, #f0fdfa 100%);
  text-decoration: none;
  color: #1f2937;
  padding: 10px;
  display: grid;
  align-content: start;
}

.hp-v2-ms-hub-card strong {
  font-size: 0.86rem;
  line-height: 1.2;
}

.hp-v2-ms-hub-card p {
  margin: 4px 0 0;
  font-size: 0.76rem;
  color: #64748b;
  line-height: 1.25;
}

.hp-v2-ms-discovery-card {
  flex: 0 0 min(160px, calc(100vw - 86px));
  border: 1px solid var(--ms-line);
  border-radius: 12px;
  background: #ffffff;
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 8px 10px;
}

.hp-v2-ms-discovery-card strong {
  display: block;
  font-size: 0.88rem;
}

.hp-v2-ms-discovery-card p {
  margin: 3px 0 0;
  font-size: 0.75rem;
  color: var(--ms-muted);
}

.hp-v2-ms-discovery-card .material-symbols-rounded {
  font-size: 15px;
  color: #0f766e;
}

.hp-v2-ms-alt-link-row {
  display: inline-flex;
  gap: 6px;
  align-items: center;
  color: var(--ms-muted);
  font-size: 0.8rem;
}

.hp-v2-ms-alt-link-row .material-symbols-rounded {
  font-size: 15px;
  color: #2d8894;
}

.hp-v2-ms-alt-link-row button {
  border: 0;
  background: transparent;
  padding: 0;
  color: #0f766e;
  font-size: 0.8rem;
  font-weight: 700;
}

.hp-v2-ms-landmark-pill {
  flex: 0 0 min(212px, calc(100vw - 84px));
  min-height: 40px;
  border: 1px solid var(--ms-line);
  border-radius: 12px;
  background: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  text-align: left;
  padding: 0 12px;
  font-size: 0.8rem;
  font-weight: 700;
  color: #374151;
}

.hp-v2-ms-landmark-pill .material-symbols-rounded {
  font-size: 14px;
  color: #0f766e;
}

.hp-v2-ms-project-card {
  flex: 0 0 100%;
  border-radius: 12px;
  border: 1px solid var(--ms-line);
  overflow: hidden;
  background: #ffffff;
}

.hp-v2-ms-project-media {
  height: 120px;
  background:
    linear-gradient(140deg, rgba(15, 118, 110, 0.46), rgba(20, 184, 166, 0.28)),
    radial-gradient(circle at top left, rgba(255, 255, 255, 0.28), transparent 48%);
}

.hp-v2-ms-project-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.hp-v2-ms-project-media-placeholder {
  width: 100%;
  height: 100%;
  background:
    linear-gradient(135deg, rgba(15, 118, 110, 0.42), rgba(20, 184, 166, 0.28)),
    linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.12));
}

.hp-v2-ms-project-tag {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  align-items: center;
  padding: 10px 12px 6px;
}

.hp-v2-ms-project-tag strong {
  font-size: 1rem;
  line-height: 1.25;
}

.hp-v2-ms-project-badge {
  flex: 0 0 auto;
  border-radius: 999px;
  background: #ecfeff;
  color: #0f766e;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 3px 10px;
}

.hp-v2-ms-project-body {
  padding: 0 12px 12px;
}

.hp-v2-ms-project-body p {
  margin: 0;
  color: var(--ms-muted);
  font-size: 0.83rem;
}

.hp-v2-ms-project-body strong {
  margin-top: 8px;
  display: block;
  font-size: 1.5rem;
  line-height: 1;
}

.hp-v2-ms-results-note {
  border-radius: 10px;
  background: #ecfdf5;
  color: #065f46;
  border: 1px solid #a7f3d0;
  font-size: 0.8rem;
  padding: 8px 10px;
}

.hp-v2-ms-results-list {
  display: grid;
  gap: 8px;
}

.hp-v2-ms-result-card {
  border: 1px solid var(--ms-line);
  border-radius: 12px;
  background: #ffffff;
  width: 100%;
  display: grid;
  grid-template-columns: 34px 1fr auto;
  align-items: center;
  gap: 10px;
  text-align: left;
  padding: 10px;
}

.hp-v2-ms-result-icon {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: #ecfeff;
  color: var(--ms-teal);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.hp-v2-ms-result-icon .material-symbols-rounded,
.hp-v2-ms-result-arrow {
  font-size: 17px;
}

.hp-v2-ms-result-topline {
  display: flex;
  gap: 7px;
  align-items: center;
}

.hp-v2-ms-result-title {
  font-size: 0.9rem;
  font-weight: 700;
  color: #111827;
}

.hp-v2-ms-result-badge {
  font-size: 0.66rem;
  border-radius: 999px;
  background: #ecfdf5;
  color: #065f46;
  padding: 2px 7px;
  font-weight: 700;
}

.hp-v2-ms-result-subtitle {
  margin-top: 2px;
  display: block;
  font-size: 0.75rem;
  color: var(--ms-muted);
}

.hp-v2-ms-result-arrow {
  color: #6b7280;
}

.hp-v2-ms-empty {
  text-align: center;
  border: 1px dashed #cbd5e1;
  border-radius: 12px;
  padding: 18px 14px;
  color: #475569;
}

.hp-v2-ms-empty .material-symbols-rounded {
  font-size: 28px;
  color: #94a3b8;
}

.hp-v2-ms-empty h3 {
  margin: 8px 0 6px;
  font-size: 0.98rem;
}

.hp-v2-ms-empty p {
  margin: 0;
  font-size: 0.8rem;
}

.hp-v2-ms-sheet {
  position: fixed;
  inset: 0;
  z-index: 80;
}

.hp-v2-ms-sheet-backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  background: rgba(17, 24, 39, 0.46);
}

.hp-v2-ms-sheet-panel {
  position: absolute;
  left: 10px;
  right: 10px;
  bottom: max(10px, env(safe-area-inset-bottom));
  border-radius: 16px;
  background: #ffffff;
  border: 1px solid #e5e7eb;
  padding: 12px;
  box-shadow: 0 -8px 30px rgba(17, 24, 39, 0.22);
}

.hp-v2-ms-sheet-handle {
  width: 52px;
  height: 4px;
  border-radius: 999px;
  margin: 0 auto 10px;
  background: #d1d5db;
}

.hp-v2-ms-sheet-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.hp-v2-ms-sheet-head h3 {
  margin: 0;
  font-size: 1.02rem;
}

.hp-v2-ms-sheet-head p {
  margin: 4px 0 0;
  color: var(--ms-muted);
  font-size: 0.78rem;
}

.hp-v2-ms-city-grid {
  margin-top: 10px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.hp-v2-ms-city-grid button {
  min-height: 42px;
  border: 1px solid var(--ms-line);
  border-radius: 11px;
  background: #ffffff;
  color: #1f2937;
  font-weight: 700;
}

.hp-v2-ms-current-location {
  margin-top: 10px;
  width: 100%;
  min-height: 42px;
  border: 1px solid #99f6e4;
  border-radius: 11px;
  background: #ecfeff;
  color: var(--ms-teal);
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.hp-v2-ms-sheet-panel--confirm {
  text-align: center;
}

.hp-v2-ms-confirm-icon {
  margin: 2px auto 8px;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: #ecfeff;
  color: var(--ms-teal);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.hp-v2-ms-sheet-panel--confirm h3 {
  margin: 0;
}

.hp-v2-ms-sheet-panel--confirm p {
  margin: 6px 0 0;
  color: var(--ms-muted);
  font-size: 0.83rem;
}

.hp-v2-ms-confirm-actions {
  margin-top: 10px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.hp-v2-ms-ghost-btn,
.hp-v2-search-btn {
  min-height: 40px;
  border-radius: 10px;
  font-weight: 700;
  border: 1px solid transparent;
}

.hp-v2-ms-ghost-btn {
  border-color: var(--ms-line);
  background: #ffffff;
  color: #374151;
}

.hp-v2-search-btn {
  border-color: #14b8a6;
  color: #ffffff;
  background: linear-gradient(180deg, #14b8a6 0%, #0f766e 100%);
}

@media (max-width: 360px) {
  .hp-v2-ms-shell {
    padding-left: 8px;
    padding-right: 8px;
  }

  .hp-v2-ms-city-switch-long {
    display: none;
  }

  .hp-v2-ms-city-switch-short {
    display: inline;
  }

  .hp-v2-ms-tab {
    font-size: 0.8rem;
  }
}
