:root {
  color-scheme: light;
  --navy: #17324d;
  --navy-2: #244b6e;
  --blue: #2b6ea6;
  --teal: #1f756f;
  --ink: #15212c;
  --muted: #607080;
  --line: #dce4ea;
  --surface: #ffffff;
  --surface-2: #f5f8fa;
  --surface-3: #edf3f6;
  --success: #1f7a4d;
  --warning: #9b6200;
  --danger: #b3261e;
  --shadow: 0 12px 34px rgba(22, 50, 77, 0.1);
  --radius: 18px;
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", sans-serif;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: var(--surface-2);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100%;
  background:
    radial-gradient(circle at top right, rgba(43, 110, 166, 0.08), transparent 35%),
    var(--surface-2);
  color: var(--ink);
  -webkit-tap-highlight-color: transparent;
}

button,
input,
select,
textarea {
  font: inherit;
}

button,
select,
input[type="radio"] + span {
  touch-action: manipulation;
}

button {
  cursor: pointer;
}

button:disabled {
  cursor: default;
  opacity: 0.45;
}

input,
select,
textarea {
  color: var(--ink);
}

input,
select,
textarea,
.input-shell {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
}

input,
select,
textarea {
  width: 100%;
  min-height: 46px;
  padding: 11px 12px;
  outline: none;
}

textarea {
  min-height: 112px;
  resize: vertical;
  line-height: 1.45;
}

input:focus,
select:focus,
textarea:focus,
.input-shell:focus-within {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(43, 110, 166, 0.14);
}

h1,
h2,
h3,
p,
dl,
dd {
  margin: 0;
}

h1,
h2,
h3 {
  letter-spacing: -0.02em;
}

p {
  line-height: 1.5;
}

.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;
}

.app-header {
  position: sticky;
  z-index: 20;
  top: 0;
  padding: calc(10px + var(--safe-top)) 16px 10px;
  background: rgba(245, 248, 250, 0.92);
  border-bottom: 1px solid rgba(220, 228, 234, 0.92);
  backdrop-filter: blur(18px) saturate(160%);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
}

.header-row {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) 44px;
  align-items: center;
  max-width: 980px;
  margin: 0 auto;
  gap: 8px;
}

.app-mark {
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  border-radius: 13px;
  background: var(--navy);
  color: #fff;
  font-size: 24px;
  font-weight: 800;
}

.header-copy {
  min-width: 0;
}

.header-copy h1 {
  overflow: hidden;
  font-size: 18px;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.header-copy p {
  overflow: hidden;
  margin-top: 2px;
  color: var(--muted);
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.icon-button {
  display: inline-grid;
  width: 42px;
  height: 42px;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: 12px;
  background: transparent;
  color: var(--navy);
  font-size: 28px;
  font-weight: 600;
}

.icon-button:active {
  background: var(--surface-3);
  transform: scale(0.97);
}

.dashboard-shell,
.detail-shell {
  width: min(100%, 980px);
  margin: 0 auto;
  padding: 18px 14px calc(108px + var(--safe-bottom));
}

.install-banner {
  display: grid;
  grid-template-columns: 38px 1fr auto;
  width: 100%;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
  padding: 14px;
  border: 1px solid rgba(43, 110, 166, 0.2);
  border-radius: 16px;
  background: linear-gradient(135deg, #eef6fc, #f9fcfe);
  color: var(--navy);
  text-align: left;
}

.install-banner strong,
.install-banner small {
  display: block;
}

.install-banner small {
  margin-top: 3px;
  color: var(--muted);
  line-height: 1.35;
}

.install-icon {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border-radius: 10px;
  background: var(--navy);
  color: #fff;
  font-size: 24px;
}

.dashboard-intro,
.section-group-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.dashboard-intro h2,
.section-group-heading h2,
.recommended-group h2 {
  font-size: 24px;
}

.eyebrow {
  margin-bottom: 4px;
  color: var(--teal);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.primary-button,
.secondary-button,
.danger-button,
.danger-ghost,
.text-button,
.dictate-button {
  min-height: 44px;
  border-radius: 12px;
  font-weight: 700;
}

.primary-button {
  padding: 11px 16px;
  border: 1px solid var(--navy);
  background: var(--navy);
  color: #fff;
}

.primary-button:active {
  background: #0f2538;
}

.secondary-button {
  padding: 10px 14px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--navy);
}

.secondary-button:active {
  background: var(--surface-3);
}

.compact {
  min-height: 38px;
  padding: 8px 11px;
  border-radius: 10px;
  font-size: 13px;
}

.text-button {
  min-height: 34px;
  padding: 6px 8px;
  border: 0;
  background: transparent;
  color: var(--blue);
}

.text-button.small {
  min-height: 28px;
  padding: 3px 6px;
  font-size: 12px;
}

.filter-panel,
.export-bar,
.hero-card,
.danger-zone,
.settings-section {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: 0 4px 16px rgba(23, 50, 77, 0.04);
}

.filter-panel {
  margin-bottom: 12px;
  padding: 12px;
}

.search-field {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface-2);
}

.search-field input {
  min-height: 44px;
  padding-inline: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.filter-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 10px;
}

.filter-grid label,
.form-field {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.filter-grid select {
  min-width: 0;
  font-size: 13px;
}

.export-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
  padding: 12px 14px;
}

.export-bar strong,
.export-bar span {
  display: block;
}

.export-bar span {
  margin-top: 2px;
  color: var(--muted);
  font-size: 12px;
}

.export-actions {
  display: flex;
  gap: 8px;
}

.house-list {
  display: grid;
  gap: 12px;
}

.house-card {
  position: relative;
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr) 22px;
  min-height: 145px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: 0 6px 22px rgba(23, 50, 77, 0.055);
  outline: none;
}

.house-card:focus-visible {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(43, 110, 166, 0.16);
}

.house-card:active {
  transform: scale(0.992);
}

.house-cover {
  display: grid;
  min-height: 100%;
  place-items: center;
  overflow: hidden;
  background: linear-gradient(145deg, #dbe9f3, #edf4f8);
  color: var(--navy-2);
  font-size: 36px;
}

.house-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.house-card-body {
  min-width: 0;
  padding: 14px 8px 13px 14px;
}

.house-card h3 {
  overflow: hidden;
  font-size: 16px;
  line-height: 1.28;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.card-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}

.badge {
  display: inline-flex;
  min-height: 25px;
  align-items: center;
  padding: 4px 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
}

.badge.decision {
  background: #eaf0f5;
  color: var(--navy);
}

.badge.tour-pending {
  background: #fff2d9;
  color: #855500;
}

.badge.tour-done {
  background: #e5f0fa;
  color: #245f90;
}

.badge.decision-no {
  background: #fde8e7;
  color: #94251e;
}

.badge.decision-maybe {
  background: #f5ebff;
  color: #6f3c96;
}

.badge.decision-yes {
  background: #e1f3e9;
  color: #17633d;
}

.badge.liking {
  background: var(--surface-3);
  color: var(--muted);
}

.badge.liking.good,
.badge.liking.excellent {
  background: #e1f3e9;
  color: #17633d;
}

.badge.liking.bad {
  background: #fde8e7;
  color: #94251e;
}

.house-meta {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px 14px;
  margin-top: 12px;
}

.house-meta dt {
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
}

.house-meta dd {
  overflow: hidden;
  margin-top: 2px;
  font-size: 12px;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.card-chevron {
  align-self: center;
  color: #8a9aa8;
  font-size: 28px;
}

.empty-state {
  display: grid;
  min-height: 310px;
  place-items: center;
  align-content: center;
  padding: 30px;
  border: 1px dashed #bdcbd5;
  border-radius: var(--radius);
  color: var(--muted);
  text-align: center;
}

.empty-state h3 {
  margin-top: 10px;
  color: var(--ink);
  font-size: 20px;
}

.empty-state p {
  max-width: 360px;
  margin: 6px 0 18px;
}

.empty-icon {
  display: grid;
  width: 60px;
  height: 60px;
  place-items: center;
  border-radius: 18px;
  background: var(--surface-3);
  color: var(--navy);
  font-size: 32px;
}

.floating-add {
  position: fixed;
  z-index: 15;
  right: max(18px, env(safe-area-inset-right));
  bottom: calc(20px + var(--safe-bottom));
  display: grid;
  width: 58px;
  height: 58px;
  place-items: center;
  border: 0;
  border-radius: 18px;
  background: var(--navy);
  box-shadow: 0 12px 28px rgba(23, 50, 77, 0.3);
  color: #fff;
  font-size: 32px;
}

.detail-status-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

#save-indicator::before {
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-right: 6px;
  border-radius: 50%;
  background: var(--success);
  content: "";
}

#save-indicator[data-status="saving"]::before {
  background: var(--warning);
}

#save-indicator[data-status="error"]::before {
  background: var(--danger);
}

.hero-card {
  margin-bottom: 14px;
  padding: 16px;
  background: linear-gradient(145deg, #fff, #f5f9fc);
}

.choice-fieldset {
  min-width: 0;
  margin: 0 0 18px;
  padding: 0;
  border: 0;
}

.choice-fieldset:last-child {
  margin-bottom: 0;
}

.fieldset-heading,
.notes-heading,
.photo-heading,
.repeatable-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.choice-fieldset legend,
.notes-heading label,
.photo-heading strong {
  padding: 0;
  color: var(--ink);
  font-size: 14px;
  font-weight: 800;
}

.choice-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 9px;
}

.choice-chip {
  position: relative;
}

.choice-chip input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.choice-chip span {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  padding: 9px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: #425261;
  font-size: 13px;
  font-weight: 700;
}

.choice-chip input:checked + span {
  border-color: var(--navy);
  background: var(--navy);
  color: #fff;
  box-shadow: 0 5px 14px rgba(23, 50, 77, 0.18);
}

.choice-chip input:focus-visible + span {
  box-shadow: 0 0 0 3px rgba(43, 110, 166, 0.22);
}

.section-group,
.repeatable-section {
  margin-top: 28px;
}

.section-card {
  margin-bottom: 11px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: 0 4px 14px rgba(23, 50, 77, 0.035);
}

.section-card > summary {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  min-height: 58px;
  align-items: center;
  gap: 10px;
  padding: 14px 16px;
  list-style: none;
  color: var(--navy);
  font-size: 16px;
  font-weight: 800;
}

.section-card > summary::-webkit-details-marker,
.recommended-group > summary::-webkit-details-marker {
  display: none;
}

.section-card > summary::after {
  margin-left: 6px;
  color: var(--muted);
  content: "+";
  font-size: 20px;
}

.section-card[open] > summary::after {
  content: "−";
}

.section-card > summary {
  grid-template-columns: minmax(0, 1fr) auto auto;
}

.summary-status {
  overflow: hidden;
  max-width: 130px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.section-card[open] > summary {
  border-bottom: 1px solid var(--line);
  background: #fbfcfd;
}

.section-body {
  padding: 16px;
}

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

.form-grid.wide {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.form-field.full {
  grid-column: 1 / -1;
}

.form-field.grow {
  flex: 1;
}

.form-field > span {
  color: var(--muted);
}

.input-shell {
  display: flex;
  min-height: 46px;
  align-items: center;
  padding: 0 10px;
}

.input-shell > span {
  color: var(--muted);
  font-weight: 700;
}

.input-shell input {
  min-width: 0;
  padding-inline: 5px;
  border: 0;
  box-shadow: none;
}

.notes-field {
  margin-top: 18px;
}

.notes-heading {
  margin-bottom: 7px;
}

.notes-field small {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.4;
}

.dictate-button {
  min-height: 34px;
  padding: 6px 10px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--navy);
  font-size: 12px;
}

.dictate-button span {
  color: var(--danger);
  font-size: 9px;
}

.dictate-button.listening {
  border-color: #e7a39f;
  background: #fff2f1;
  color: var(--danger);
}

.photo-manager {
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.photo-heading > div:first-child span {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 11px;
}

.photo-actions {
  display: flex;
  gap: 7px;
}

.photo-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-top: 12px;
}

.photo-thumb {
  position: relative;
  overflow: hidden;
  aspect-ratio: 1;
  margin: 0;
  border-radius: 12px;
  background: var(--surface-3);
}

.photo-open {
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  background: transparent;
}

.photo-open img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.photo-delete {
  position: absolute;
  top: 5px;
  right: 5px;
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.85);
  border-radius: 50%;
  background: rgba(21, 33, 44, 0.72);
  color: #fff;
  font-size: 20px;
}

.photo-empty,
.inline-empty {
  grid-column: 1 / -1;
  padding: 18px;
  border: 1px dashed #bdcbd5;
  border-radius: 12px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
  text-align: center;
}

.repeatable-list {
  display: grid;
  gap: 11px;
}

.repeatable-card {
  margin-bottom: 0;
}

.repeatable-title-row {
  align-items: end;
  margin-bottom: 18px;
}

.danger-ghost {
  padding: 9px 11px;
  border: 1px solid #efc6c3;
  background: #fff7f6;
  color: var(--danger);
  font-size: 12px;
}

.recommended-group {
  margin-top: 28px;
  overflow: hidden;
  border: 1px solid #cbdbe5;
  border-radius: var(--radius);
  background: #f3f8fb;
}

.recommended-group > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 18px;
  list-style: none;
  color: var(--navy);
}

.recommended-group > summary span:not(.eyebrow) {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.4;
}

.recommended-group > summary > span:last-child {
  margin: 0;
  color: var(--navy);
  font-size: 26px;
}

.recommended-group[open] > summary > span:last-child {
  transform: rotate(45deg);
}

.recommended-body {
  padding: 0 12px 12px;
}

.danger-zone {
  margin-top: 30px;
  padding: 18px;
  border-color: #efcfcc;
  background: #fffafa;
}

.danger-zone h2 {
  color: var(--danger);
  font-size: 18px;
}

.danger-zone p {
  margin: 5px 0 14px;
  color: var(--muted);
  font-size: 13px;
}

.danger-button {
  padding: 10px 14px;
  border: 1px solid var(--danger);
  background: var(--danger);
  color: #fff;
}

.modal,
.image-modal {
  width: min(calc(100% - 24px), 620px);
  max-height: calc(100dvh - 24px - var(--safe-top) - var(--safe-bottom));
  overflow: auto;
  padding: 0;
  border: 0;
  border-radius: 22px;
  background: var(--surface);
  box-shadow: 0 26px 80px rgba(12, 28, 42, 0.3);
}

.modal::backdrop,
.image-modal::backdrop {
  background: rgba(11, 27, 41, 0.55);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
}

.modal-card {
  padding: 20px;
}

.modal-header {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
}

.modal-header h2 {
  font-size: 24px;
}

.modal-note {
  margin-bottom: 16px;
  padding: 11px 12px;
  border-radius: 12px;
  background: var(--surface-3);
  color: var(--muted);
  font-size: 13px;
}

.modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 20px;
  padding-top: 15px;
  border-top: 1px solid var(--line);
}

.settings-section {
  margin-top: 12px;
  padding: 14px;
  box-shadow: none;
}

.settings-section h3 {
  font-size: 16px;
}

.settings-section p {
  margin: 5px 0 12px;
  color: var(--muted);
  font-size: 13px;
}

.storage-meter {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  color: var(--navy);
  font-size: 12px;
}

.stacked-actions {
  display: grid;
  gap: 8px;
}

.danger-settings {
  border-color: #efcfcc;
  background: #fffafa;
}

.modal-footer {
  margin-top: 18px;
  color: var(--muted);
  font-size: 11px;
  text-align: center;
}

.install-steps {
  display: grid;
  gap: 12px;
  margin: 0;
  padding-left: 24px;
  color: #334554;
  line-height: 1.5;
}

.callout {
  display: grid;
  gap: 4px;
  margin-top: 18px;
  padding: 14px;
  border-radius: 14px;
  background: #fff4d9;
  color: #684400;
  font-size: 13px;
}

.image-modal {
  width: min(calc(100% - 16px), 900px);
  overflow: visible;
  background: #0f1820;
}

.image-modal img {
  display: block;
  width: 100%;
  max-height: calc(100dvh - 120px);
  border-radius: 18px 18px 0 0;
  object-fit: contain;
}

.image-modal p {
  padding: 12px 16px;
  color: #fff;
  font-size: 12px;
}

.image-close {
  position: absolute;
  z-index: 2;
  top: 8px;
  right: 8px;
  background: rgba(0, 0, 0, 0.55);
  color: #fff;
}

.progress-overlay {
  position: fixed;
  z-index: 100;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(11, 27, 41, 0.38);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
}

.progress-overlay[hidden] {
  display: none;
}

.progress-card {
  display: grid;
  width: min(100%, 330px);
  justify-items: center;
  gap: 8px;
  padding: 24px;
  border-radius: 18px;
  background: var(--surface);
  box-shadow: var(--shadow);
  text-align: center;
}

.progress-card span:last-child {
  color: var(--muted);
  font-size: 12px;
}

.spinner {
  width: 30px;
  height: 30px;
  border: 3px solid #dbe6ed;
  border-top-color: var(--navy);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.toast {
  position: fixed;
  z-index: 110;
  right: 14px;
  bottom: calc(16px + var(--safe-bottom));
  left: 14px;
  width: fit-content;
  max-width: min(560px, calc(100% - 28px));
  margin: auto;
  padding: 12px 15px;
  border-radius: 13px;
  background: #1d2a35;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.28);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  text-align: center;
}

.toast[data-tone="success"] {
  background: var(--success);
}

.toast[data-tone="warning"] {
  background: #805100;
}

.toast[data-tone="error"] {
  background: var(--danger);
}

.fatal-error {
  display: grid;
  min-height: 100dvh;
  place-items: center;
  align-content: center;
  gap: 12px;
  padding: 24px;
  text-align: center;
}

@media (max-width: 680px) {
  .filter-grid {
    grid-template-columns: 1fr 1fr;
  }

  .filter-grid label:last-child {
    grid-column: 1 / -1;
  }

  .export-bar {
    align-items: flex-start;
    flex-direction: column;
  }

  .export-actions {
    width: 100%;
  }

  .export-actions button {
    flex: 1;
  }

  .form-grid,
  .form-grid.wide {
    grid-template-columns: 1fr;
  }

  .form-field.full {
    grid-column: auto;
  }

  .photo-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .photo-actions {
    width: 100%;
  }

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

@media (max-width: 430px) {
  .dashboard-shell,
  .detail-shell {
    padding-inline: 10px;
  }

  .house-card {
    grid-template-columns: 92px minmax(0, 1fr) 18px;
  }

  .house-meta {
    gap: 8px;
  }

  .choice-chip span {
    min-height: 40px;
    padding: 8px 10px;
    font-size: 12px;
  }

  .photo-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .modal {
    width: calc(100% - 12px);
  }

  .modal-card {
    padding: 16px;
  }
}

@media (min-width: 760px) {
  .house-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .house-card {
    grid-template-columns: 120px minmax(0, 1fr) 22px;
  }

  .photo-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
