:root {
  --ink: #0a0d12;
  --ink-2: #202733;
  --paper: #f3f7fb;
  --white: #ffffff;
  --blue: #087ee8;
  --blue-dark: #0058c9;
  --blue-bright: #08a5e9;
  --blue-soft: #e7f3ff;
  --muted: #5e6875;
  --line: #d6e0ea;
  --success: #1f6b51;
  --shadow: 0 16px 42px rgba(10, 54, 105, 0.12);
  --radius: 18px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.5;
}

button,
select,
input {
  font: inherit;
}

a {
  color: inherit;
}

button,
a,
select,
input {
  -webkit-tap-highlight-color: transparent;
}

:focus-visible {
  outline: 3px solid rgba(8, 126, 232, 0.42);
  outline-offset: 3px;
}

.site-header {
  position: sticky;
  z-index: 20;
  top: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 76px;
  padding: 12px clamp(20px, 4vw, 64px);
  color: var(--ink);
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  color: var(--white);
  background: linear-gradient(145deg, var(--blue-dark), var(--blue-bright));
  border-radius: 10px;
  font-size: 0.82rem;
  font-weight: 900;
  letter-spacing: 0.04em;
}

.brand strong,
.brand small {
  display: block;
}

.brand strong {
  font-size: 0.9rem;
  letter-spacing: 0.01em;
}

.brand small {
  margin-top: 2px;
  color: #657080;
  font-size: 0.79rem;
  letter-spacing: 0.01em;
}

.site-header nav {
  display: flex;
  align-items: center;
  gap: 22px;
}

.site-header nav a {
  font-size: 0.9rem;
  font-weight: 650;
  text-decoration: none;
}

.site-header nav a:hover {
  color: var(--blue-dark);
}

.youtube-link {
  padding: 10px 14px;
  color: var(--white);
  background: var(--blue);
  border-radius: 999px;
}

.youtube-link:hover {
  color: var(--white) !important;
  background: var(--blue-dark);
}

.firm-logo {
  display: grid;
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  overflow: hidden;
  place-items: center;
  background: var(--ink);
  border-radius: 50%;
}

.firm-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.app-shell {
  display: grid;
  grid-template-columns: minmax(280px, 354px) minmax(0, 1fr);
  min-height: calc(100vh - 76px);
}

.filters-panel {
  align-self: start;
  min-height: calc(100vh - 76px);
  padding: 34px clamp(22px, 3vw, 40px);
  background: var(--white);
  border-right: 1px solid var(--line);
}

.filters-panel h1,
.results-area h2,
.compare-dialog h2,
.contact-dialog h2,
.builder-dialog h2,
.privacy-dialog h2 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  letter-spacing: -0.025em;
}

.filters-panel h1 {
  max-width: 280px;
  font-size: clamp(1.8rem, 3vw, 2.35rem);
  line-height: 1.05;
}

.filter-heading > p:last-child {
  margin: 12px 0 0;
  color: var(--muted);
}

.eyebrow {
  margin: 0 0 6px;
  color: var(--blue-dark);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

#finder-form {
  display: grid;
  gap: 20px;
  margin-top: 30px;
}

.field {
  display: grid;
  gap: 8px;
  color: var(--ink-2);
  font-size: 0.91rem;
  font-weight: 720;
}

select {
  width: 100%;
  min-height: 46px;
  padding: 0 38px 0 13px;
  color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 10px;
}

.range-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.range-label output {
  color: var(--blue-dark);
  font-weight: 800;
}

input[type="range"] {
  width: 100%;
  accent-color: var(--blue);
}

.range-ends {
  display: flex;
  justify-content: space-between;
  margin-top: -5px;
  color: #85858b;
  font-size: 0.75rem;
  font-weight: 550;
}

.feature-list {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  border: 0;
}

.feature-list legend {
  margin-bottom: 10px;
  font-size: 0.91rem;
  font-weight: 720;
}

.feature-list label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: var(--ink-2);
  cursor: pointer;
  font-size: 0.89rem;
}

.feature-list input {
  width: 18px;
  height: 18px;
  margin: 1px 0 0;
  accent-color: var(--blue);
}

.text-button {
  width: fit-content;
  padding: 0;
  color: var(--blue-dark);
  background: none;
  border: 0;
  border-bottom: 1px solid currentColor;
  cursor: pointer;
  font-size: 0.87rem;
  font-weight: 750;
}

.agent-note {
  display: flex;
  gap: 11px;
  margin-top: 34px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

.agent-initials {
  display: grid;
  flex: 0 0 42px;
  width: 42px;
  height: 42px;
  place-items: center;
  color: var(--white);
  background: var(--blue);
  border-radius: 50%;
  font-size: 0.78rem;
  font-weight: 850;
}

.agent-note p {
  margin: 0;
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.45;
}

.agent-note strong {
  display: block;
  margin-bottom: 2px;
  color: var(--ink);
}

.results-area {
  min-width: 0;
  padding: clamp(22px, 4vw, 48px);
}

.visual-intro {
  position: relative;
  display: grid;
  grid-template-columns: minmax(280px, 0.78fr) minmax(420px, 1.35fr);
  min-height: 250px;
  overflow: hidden;
  color: var(--white);
  background: linear-gradient(145deg, var(--blue-dark), var(--blue-bright));
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.visual-copy {
  position: relative;
  z-index: 1;
  align-self: center;
  min-width: 0;
  padding: clamp(26px, 4vw, 44px);
}

.visual-copy h2 {
  margin-top: 10px;
  font-size: clamp(2rem, 3.4vw, 3.25rem);
  line-height: 0.99;
  overflow-wrap: break-word;
}

.visual-copy p {
  margin: 14px 0 0;
  color: rgba(255, 255, 255, 0.9);
  font-size: clamp(0.96rem, 1.6vw, 1.12rem);
}

.hero-summary {
  max-width: 36rem;
  line-height: 1.5;
}

.brand-badge {
  display: inline-flex;
  padding: 6px 9px;
  color: var(--blue-dark);
  background: var(--white);
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 850;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero-figure {
  position: relative;
  min-width: 0;
  min-height: 250px;
  margin: 0;
  background: #d5e6f5;
}

.hero-figure img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 250px;
  object-fit: cover;
  object-position: center;
}

.hero-figure figcaption {
  position: absolute;
  right: 12px;
  bottom: 10px;
  padding: 4px 7px;
  color: rgba(255, 255, 255, 0.88);
  background: rgba(10, 13, 18, 0.62);
  border-radius: 5px;
  font-size: 0.7rem;
}

.results-toolbar {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-top: 36px;
}

.market-search {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  margin-top: 22px;
  padding: 22px 24px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: 0 7px 24px rgba(17, 17, 20, 0.04);
}

.market-search h2 {
  font-size: clamp(1.35rem, 2.2vw, 1.85rem);
  line-height: 1.1;
}

.market-search p:last-child {
  margin: 7px 0 0;
  color: var(--muted);
  font-size: 0.88rem;
}

.market-search .button {
  flex: 0 0 auto;
}

.results-grid > .market-search {
  grid-column: 1 / -1;
  margin-top: 0;
}

.results-toolbar h2 {
  font-size: clamp(1.8rem, 3vw, 2.55rem);
}

.sort-control {
  display: grid;
  grid-template-columns: auto minmax(160px, 210px);
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 700;
}

.active-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  min-height: 18px;
  margin: 15px 0 20px;
}

.results-notice {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 0.86rem;
}

.filter-chip {
  padding: 6px 10px;
  color: #064e9f;
  background: var(--blue-soft);
  border: 1px solid #b9dcfb;
  border-radius: 999px;
  font-size: 0.76rem;
  font-weight: 700;
}

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

.community-card {
  display: flex;
  min-width: 0;
  flex-direction: column;
  padding: clamp(20px, 2.5vw, 28px);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: 0 7px 24px rgba(17, 17, 20, 0.045);
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    border-color 180ms ease;
}

.community-card:hover {
  transform: translateY(-3px);
  border-color: #9cccf6;
  box-shadow: 0 14px 32px rgba(8, 80, 148, 0.11);
}

.card-topline,
.card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.location-label {
  color: var(--blue-dark);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.builder-label {
  color: var(--muted);
  font-size: 0.77rem;
  font-weight: 650;
}

.community-card h3 {
  margin: 13px 0 3px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.7rem;
  line-height: 1.08;
}

.community-detail-link {
  position: relative;
  display: inline-block;
  text-decoration-color: transparent;
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
  transition: color 160ms ease, text-decoration-color 160ms ease;
}

.community-detail-arrow {
  display: inline-block;
  margin-left: 0.2em;
  font-size: 0.84em;
  transition: transform 160ms ease;
}

.community-detail-link:hover {
  color: var(--blue-dark);
  text-decoration-color: currentColor;
}

.community-detail-link:hover .community-detail-arrow {
  transform: translateX(3px);
}

@media (max-width: 780px) {
  .community-detail-link::before {
    position: absolute;
    top: -12px;
    right: -4px;
    bottom: -3px;
    left: -4px;
    content: "";
  }
}

.price {
  margin: 0;
  color: var(--ink-2);
  font-size: 0.94rem;
  font-weight: 800;
}

.community-summary {
  margin: 16px 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.card-meta {
  justify-content: flex-start;
  flex-wrap: wrap;
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid #e2e9f0;
}

.card-meta span {
  color: #515158;
  font-size: 0.78rem;
  font-weight: 650;
}

.card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 14px;
}

.card-tags span {
  padding: 5px 8px;
  color: #445365;
  background: #eef3f8;
  border-radius: 6px;
  font-size: 0.72rem;
  font-weight: 700;
}

.card-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 9px;
  margin-top: 20px;
}

.card-action {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  padding: 10px 13px;
  color: var(--ink);
  background: var(--white);
  border: 1px solid #c7c4bb;
  border-radius: 9px;
  cursor: pointer;
  font-size: 0.82rem;
  font-weight: 800;
  text-align: center;
  text-decoration: none;
}

.card-actions .tour-action {
  grid-column: 1 / -1;
  color: var(--white);
  background: var(--blue-dark);
  border-color: var(--blue-dark);
}

.compare-toggle[aria-pressed="true"] {
  color: #064e9f;
  background: var(--blue-soft);
  border-color: var(--blue);
}

.empty-state {
  grid-column: 1 / -1;
  padding: 54px 24px;
  text-align: center;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.empty-state h3 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.7rem;
}

.empty-state p {
  max-width: 520px;
  margin: 9px auto 20px;
  color: var(--muted);
}

.about-matt {
  display: grid;
  grid-template-columns: minmax(180px, 0.55fr) minmax(0, 1.45fr);
  gap: clamp(26px, 4vw, 52px);
  align-items: stretch;
  margin-top: 22px;
  padding: clamp(26px, 4vw, 42px);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 10px 30px rgba(10, 54, 105, 0.08);
}

.about-photo {
  position: relative;
  min-height: 350px;
  margin: 0;
  overflow: hidden;
  background: #dce6ef;
  border-radius: 14px;
}

.about-photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 22%;
}

.about-photo figcaption {
  position: absolute;
  right: 12px;
  bottom: 12px;
  left: 12px;
  padding: 8px 10px;
  color: var(--white);
  background: rgba(10, 13, 18, 0.72);
  border-radius: 7px;
  font-size: 0.76rem;
  font-weight: 750;
  text-align: center;
}

.about-copy h2 {
  font-size: clamp(1.9rem, 3vw, 2.6rem);
  line-height: 1.05;
}

.about-copy > p:not(.eyebrow) {
  margin: 13px 0 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.about-copy .about-affiliation {
  color: var(--ink-2);
  font-weight: 750;
}

.about-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.about-actions .button.secondary {
  color: var(--ink);
  border-color: #b4b1a9;
}

.compare-tray {
  position: fixed;
  z-index: 30;
  right: 22px;
  bottom: 22px;
  left: calc(354px + 22px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 15px 18px;
  color: var(--white);
  background: rgba(17, 17, 20, 0.97);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 14px;
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.25);
}

.compare-tray[hidden] {
  display: none;
}

.compare-tray strong {
  display: block;
}

.compare-tray > div > span {
  color: #bdbdc2;
  font-size: 0.78rem;
}

.tray-actions,
.dialog-footer > div {
  display: flex;
  gap: 9px;
}

.button {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  padding: 10px 15px;
  border-radius: 9px;
  cursor: pointer;
  font-size: 0.84rem;
  font-weight: 800;
  text-decoration: none;
}

.button.primary {
  color: var(--white);
  background: var(--blue);
  border: 1px solid var(--blue);
}

.button.secondary {
  color: inherit;
  background: transparent;
  border: 1px solid #6a6a70;
}

.compare-dialog,
.contact-dialog,
.builder-dialog,
.privacy-dialog {
  width: min(1000px, calc(100vw - 32px));
  max-height: calc(100vh - 40px);
  padding: 0;
  overflow: hidden;
  background: var(--paper);
  border: 0;
  border-radius: 18px;
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.35);
}

.compare-dialog::backdrop,
.contact-dialog::backdrop,
.builder-dialog::backdrop,
.privacy-dialog::backdrop {
  background: rgba(5, 5, 7, 0.7);
  backdrop-filter: blur(3px);
}

.contact-dialog {
  width: min(650px, calc(100vw - 32px));
}

.builder-dialog {
  width: min(680px, calc(100vw - 32px));
}

.privacy-dialog {
  width: min(720px, calc(100vw - 32px));
}

.contact-content {
  padding: 26px;
}

.contact-content > p:first-child {
  margin: 0 0 20px;
  color: var(--muted);
}

.contact-options {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 10px;
}

.contact-options .button.secondary {
  color: var(--ink);
  border-color: #b4b1a9;
}

.builder-visit-note {
  margin: 22px 0 0;
  padding: 15px 17px;
  color: #3f4d5d;
  background: var(--blue-soft);
  border: 1px solid #b9dcfb;
  border-radius: 10px;
  font-size: 0.82rem;
}

.builder-dialog-content {
  padding: 26px;
}

.privacy-content {
  padding: 26px;
  color: var(--ink-2);
}

.privacy-content p:first-child {
  margin-top: 0;
}

.privacy-content li + li {
  margin-top: 10px;
}

.privacy-content a {
  color: var(--blue-dark);
  font-weight: 750;
}

.privacy-updated {
  color: var(--muted);
  font-size: 0.85rem;
}

.builder-dialog-content > p:first-child {
  margin: 0;
  color: var(--ink-2);
}

.builder-warning {
  margin: 18px 0 0;
  padding: 15px 17px;
  color: #3f4d5d;
  background: var(--blue-soft);
  border: 1px solid #b9dcfb;
  border-radius: 10px;
  font-size: 0.9rem;
  font-weight: 700;
}

.builder-dialog-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 22px;
}

.dialog-heading,
.dialog-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 22px 26px;
  background: var(--white);
}

.dialog-heading {
  border-bottom: 1px solid var(--line);
}

.dialog-heading h2 {
  font-size: 2rem;
}

.close-button {
  width: 42px;
  height: 42px;
  color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 50%;
  cursor: pointer;
  font-size: 1.7rem;
  line-height: 1;
}

.compare-table-wrap {
  max-height: min(58vh, 540px);
  overflow: auto;
  padding: 22px 26px;
}

.compare-table {
  width: 100%;
  min-width: 680px;
  border-collapse: collapse;
  background: var(--white);
  border: 1px solid var(--line);
}

.compare-table th,
.compare-table td {
  padding: 14px 16px;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--line);
  border-right: 1px solid var(--line);
}

.compare-table th {
  color: var(--muted);
  background: #edf3f9;
  font-size: 0.78rem;
}

.compare-table th:not(:first-child) {
  color: var(--ink);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.06rem;
}

.compare-table td {
  font-size: 0.87rem;
}

.dialog-footer {
  border-top: 1px solid var(--line);
}

.dialog-footer p {
  margin: 0;
  color: var(--muted);
  font-size: 0.82rem;
}

.dialog-footer .button.secondary {
  color: var(--ink);
  border-color: #b4b1a9;
}

footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  padding: 26px clamp(20px, 4vw, 64px);
  color: #bdbdc2;
  background: #080809;
  font-size: 0.76rem;
}

footer p {
  max-width: 600px;
  margin: 0;
}

footer a {
  color: #7cc5ff;
  font-weight: 750;
  text-decoration: none;
  white-space: nowrap;
}

footer .privacy-link {
  padding: 0;
  color: #7cc5ff;
  background: transparent;
  border: 0;
  font: inherit;
  font-weight: 750;
  text-decoration: none;
  cursor: pointer;
}

.footer-firm {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 210px;
  color: var(--white);
  line-height: 1.35;
}

.footer-firm img {
  width: 42px;
  height: 42px;
  object-fit: contain;
}

@media (max-width: 1040px) {
  .app-shell {
    grid-template-columns: 300px minmax(0, 1fr);
  }

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

  .compare-tray {
    left: 322px;
  }

  .visual-intro {
    grid-template-columns: minmax(300px, 0.9fr) minmax(290px, 1.1fr);
  }

  .visual-copy {
    padding: 30px;
  }

  .visual-copy h2 {
    font-size: 2.4rem;
  }

  footer {
    flex-wrap: wrap;
  }
}

@media (max-width: 920px) {
  .visual-intro {
    grid-template-columns: 1fr;
    min-height: 0;
  }

  .hero-figure,
  .hero-figure img {
    min-height: 280px;
  }
}

@media (max-width: 780px) {
  .site-header {
    min-height: 68px;
  }

  .site-header nav > a:first-child {
    display: none;
  }

  .brand strong {
    font-size: 0.82rem;
  }

  .brand small {
    font-size: 0.7rem;
  }

  .youtube-link {
    padding: 9px 11px;
    font-size: 0.78rem !important;
  }

  .app-shell {
    display: block;
  }

  .filters-panel {
    min-height: auto;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .agent-note {
    display: none;
  }

  #finder-form {
    grid-template-columns: 1fr 1fr;
  }

  .feature-list {
    grid-column: 1 / -1;
    grid-template-columns: 1fr 1fr;
  }

  .text-button {
    grid-column: 1 / -1;
  }

  .visual-intro {
    grid-template-columns: 1fr;
    min-height: 0;
  }

  .hero-figure,
  .hero-figure img {
    min-height: 280px;
  }

  .results-toolbar {
    align-items: flex-start;
    flex-direction: column;
  }

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

  .sort-control {
    width: 100%;
  }

  .sort-control select {
    min-width: 0;
  }

  .about-matt {
    grid-template-columns: 1fr;
  }

  .about-photo {
    min-height: 360px;
  }

  .compare-tray {
    right: 12px;
    bottom: 12px;
    left: 12px;
  }
}

@media (max-width: 560px) {
  .site-header {
    padding: 10px 14px;
  }

  .brand-mark {
    width: 39px;
    height: 39px;
  }

  .brand strong {
    max-width: 150px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .brand small {
    display: none;
  }

  .filters-panel,
  .results-area {
    padding: 24px 18px;
  }

  #finder-form {
    grid-template-columns: 1fr;
  }

  .feature-list,
  .text-button {
    grid-column: auto;
  }

  .feature-list {
    grid-template-columns: 1fr;
  }

  .visual-intro {
    min-height: 0;
  }

  .visual-copy h2 {
    max-width: 320px;
    font-size: 2.25rem;
  }

  .card-topline,
  .dialog-footer {
    align-items: stretch;
    flex-direction: column;
  }

  .contact-options {
    grid-template-columns: 1fr;
  }

  .builder-dialog-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .card-topline {
    gap: 3px;
  }

  .compare-tray {
    align-items: stretch;
    flex-direction: column;
    gap: 10px;
  }

  .tray-actions .button {
    flex: 1;
  }

  .about-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .dialog-footer > div {
    width: 100%;
  }

  .dialog-footer .button {
    flex: 1;
  }

  footer {
    flex-direction: column;
    align-items: flex-start;
  }

  footer a {
    white-space: normal;
  }
}

@media (max-width: 420px) {
  .firm-logo {
    display: none;
  }

  .card-actions {
    grid-template-columns: 1fr;
  }

  .card-actions .tour-action {
    grid-column: auto;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}
