:root {
  color-scheme: light;
  --navy-950: #071529;
  --navy-900: #0b1f3a;
  --navy-800: #12325a;
  --blue-700: #1267c4;
  --blue-600: #1677d2;
  --blue-500: #278fe7;
  --blue-100: #e7f2fc;
  --blue-50: #f3f8fd;
  --ink: #172033;
  --muted: #647084;
  --line: #dce4ed;
  --surface: #ffffff;
  --canvas: #f5f7fa;
  --success: #087c5b;
  --danger: #b4233f;
  --shadow-sm: 0 8px 24px rgba(7, 21, 41, 0.07);
  --shadow-md: 0 18px 48px rgba(7, 21, 41, 0.12);
  --radius-sm: 0.85rem;
  --radius-md: 1.25rem;
  --radius-lg: 1.75rem;
  --header-height: 4.25rem;
  --content-width: 78rem;
  --transition: 180ms ease;
}

*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-width: 18rem;
  background: var(--canvas);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  font-size: 1rem;
  line-height: 1.6;
  overflow-x: hidden;
}

button, input, textarea, select { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; }
img { display: block; max-width: 100%; }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { color: var(--navy-950); line-height: 1.15; letter-spacing: -0.025em; }

:focus-visible {
  outline: 3px solid rgba(22, 119, 210, 0.5);
  outline-offset: 3px;
}

.skip-link {
  position: fixed;
  z-index: 1000;
  top: 0.75rem;
  left: 0.75rem;
  padding: 0.75rem 1rem;
  border-radius: 0.6rem;
  background: var(--surface);
  color: var(--navy-900);
  font-weight: 700;
  transform: translateY(-180%);
  transition: transform var(--transition);
}

.skip-link:focus { transform: translateY(0); }

.site-header {
  position: sticky;
  z-index: 100;
  top: 0;
  display: flex;
  min-height: var(--header-height);
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.65rem clamp(1rem, 3vw, 2.5rem);
  border-bottom: 1px solid rgba(220, 228, 237, 0.88);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 3px 16px rgba(7, 21, 41, 0.04);
  backdrop-filter: blur(14px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  color: var(--navy-900);
  font-size: 1.18rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  width: 2rem;
  height: 2rem;
  grid-template-columns: repeat(3, 1fr);
  align-items: end;
  gap: 0.16rem;
  padding: 0.38rem;
  border-radius: 0.65rem;
  background: var(--navy-900);
  box-shadow: 0 6px 18px rgba(11, 31, 58, 0.18);
}

.brand-mark span { display: block; border-radius: 999px; background: #fff; }
.brand-mark span:nth-child(1) { height: 46%; opacity: 0.72; }
.brand-mark span:nth-child(2) { height: 77%; }
.brand-mark span:nth-child(3) { height: 100%; background: var(--blue-500); }

.language-switch {
  display: inline-flex;
  padding: 0.25rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--blue-50);
}

.language-switch button {
  min-width: 2.75rem;
  min-height: 2.5rem;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-size: 0.82rem;
  font-weight: 800;
  transition: background var(--transition), color var(--transition), box-shadow var(--transition);
}

.language-switch button.is-active {
  background: var(--surface);
  color: var(--blue-700);
  box-shadow: 0 3px 10px rgba(7, 21, 41, 0.09);
}

.button {
  display: inline-flex;
  min-height: 3rem;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  padding: 0.75rem 1.1rem;
  border: 1px solid transparent;
  border-radius: 0.9rem;
  cursor: pointer;
  font-weight: 750;
  line-height: 1.25;
  text-align: center;
  text-decoration: none;
  transition: transform var(--transition), background var(--transition), box-shadow var(--transition), border-color var(--transition);
}

.button:hover { transform: translateY(-1px); }
.button:active { transform: translateY(0); }
.button-primary { background: var(--blue-700); color: #fff; box-shadow: 0 8px 22px rgba(18, 103, 196, 0.2); }
.button-primary:hover { background: #0d5dae; box-shadow: 0 10px 26px rgba(18, 103, 196, 0.27); }
.button-secondary { border-color: var(--line); background: var(--surface); color: var(--navy-900); }
.button-secondary:hover { border-color: #a9bdd1; background: var(--blue-50); }
.button-danger { border-color: #f1b9c4; background: #fff5f7; color: var(--danger); }
.button-danger:hover { border-color: #df8295; background: #ffe9ee; }
.button-arrow { font-size: 1.25rem; line-height: 1; }

.index-main {
  width: min(100% - 2rem, var(--content-width));
  margin: 0 auto;
  padding: clamp(2.5rem, 7vw, 6.5rem) 0 clamp(4rem, 8vw, 7rem);
}

.index-intro {
  max-width: 52rem;
  margin-bottom: clamp(3rem, 6vw, 5rem);
}

.eyebrow {
  margin-bottom: 0.85rem;
  color: var(--blue-700);
  font-size: 0.76rem;
  font-weight: 850;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.index-intro h1 {
  max-width: 48rem;
  margin-bottom: 1.15rem;
  font-size: clamp(2.35rem, 8vw, 5.4rem);
  text-wrap: balance;
}

.index-intro > p:last-child {
  max-width: 42rem;
  margin-bottom: 0;
  color: var(--muted);
  font-size: clamp(1.03rem, 2vw, 1.2rem);
}

.section-heading-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.section-heading-row h2 { margin: 0; font-size: clamp(1.45rem, 3vw, 2rem); }

.property-list-controls {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.property-filter {
  display: inline-flex;
  padding: 0.25rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
}

.property-filter button {
  min-height: 2.5rem;
  padding: 0.45rem 0.9rem;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-size: 0.82rem;
  font-weight: 800;
}

.property-filter button.is-active {
  background: var(--navy-900);
  color: #fff;
}

.property-count {
  display: inline-grid;
  width: 2.5rem;
  height: 2.5rem;
  place-items: center;
  border-radius: 50%;
  background: var(--navy-900);
  color: #fff;
  font-weight: 800;
}

.property-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}

.property-card {
  position: relative;
  display: flex;
  min-width: 0;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid rgba(220, 228, 237, 0.85);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition), box-shadow var(--transition);
}

.property-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.property-card.is-deleted { border-style: dashed; box-shadow: none; }
.property-card.is-deleted:hover { transform: none; box-shadow: none; }
.property-card.is-deleted .property-card-cover { filter: grayscale(0.75); opacity: 0.72; }

.property-card-cover {
  min-height: clamp(14rem, 52vw, 21rem);
  background-color: var(--navy-800);
  background-repeat: no-repeat;
  background-size: 300% 100%;
}

.property-card-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  align-items: flex-start;
  padding: clamp(1.2rem, 4vw, 1.75rem);
}

.property-card-meta {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.4rem;
}

.property-location {
  margin: 0;
  color: var(--blue-700);
  font-size: 0.78rem;
  font-weight: 850;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.property-status {
  flex: 0 0 auto;
  padding: 0.25rem 0.6rem;
  border-radius: 999px;
  background: #e8f7f1;
  color: var(--success);
  font-size: 0.7rem;
  font-weight: 850;
}

.property-status.is-deleted { background: #f3f4f6; color: var(--muted); }

.property-card h3 { margin-bottom: 0.7rem; font-size: clamp(1.55rem, 4vw, 2rem); }
.property-card-stretched-link { color: inherit; text-decoration: none; }
.property-card-stretched-link::after { position: absolute; z-index: 1; inset: 0; content: ""; }
.property-card-copy { display: -webkit-box; overflow: hidden; margin-bottom: 1.25rem; color: var(--muted); -webkit-box-orient: vertical; -webkit-line-clamp: 3; }

.property-facts {
  display: grid;
  width: 100%;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.7rem;
  margin-top: auto;
  margin-bottom: 1.2rem;
}

.property-fact {
  padding: 0.75rem;
  border-radius: 0.8rem;
  background: var(--blue-50);
}

.fact-label { display: block; margin-bottom: 0.1rem; color: var(--muted); font-size: 0.7rem; font-weight: 700; }
.property-actions { position: relative; z-index: 2; display: grid; width: 100%; gap: 0.65rem; }
.property-link { width: 100%; justify-content: space-between; }
.property-edit-button:disabled { border-color: var(--line); background: var(--surface); color: var(--muted); cursor: default; opacity: 1; }
.property-edit-button:disabled:hover { transform: none; }
.property-restore-button { width: 100%; }

.property-empty-state {
  grid-column: 1 / -1;
  margin: 0;
  padding: clamp(1.5rem, 5vw, 2.5rem);
  border: 1px dashed #a9bdd1;
  border-radius: var(--radius-md);
  background: var(--surface);
  color: var(--muted);
  text-align: center;
}

.site-footer {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.8rem;
  padding: 2.5rem 1rem;
  border-top: 1px solid var(--line);
  background: var(--surface);
  color: var(--muted);
  text-align: center;
}

.site-footer p { margin: 0; font-size: 0.86rem; }
.brand-small { font-size: 1rem; }
.brand-small .brand-mark { width: 1.75rem; height: 1.75rem; }

.not-found {
  width: min(100% - 2rem, 38rem);
  margin: clamp(4rem, 10vw, 8rem) auto;
  padding: clamp(2rem, 6vw, 4rem);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow-md);
  text-align: center;
}

.not-found-mark {
  display: grid;
  width: 4rem;
  height: 4rem;
  place-items: center;
  margin: 0 auto 1.2rem;
  border-radius: 50%;
  background: var(--blue-100);
  color: var(--blue-700);
  font-size: 2rem;
  font-weight: 850;
}

.not-found p { color: var(--muted); }

[hidden] { display: none !important; }

@media (min-width: 44rem) {
  .index-main { width: min(100% - 3rem, var(--content-width)); }
  .property-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.5rem; }
  .property-grid .property-card:last-child:nth-child(odd) { grid-column: span 2; }
  .property-grid .property-card:last-child:nth-child(odd) { display: grid; grid-template-columns: minmax(16rem, 0.95fr) minmax(18rem, 1.05fr); }
  .property-grid .property-card:last-child:nth-child(odd) .property-card-cover { min-height: 100%; }
  .site-footer { flex-direction: row; justify-content: space-between; padding-inline: clamp(1.5rem, 4vw, 4rem); }
}

@media (max-width: 35rem) {
  .section-heading-row { align-items: flex-start; flex-direction: column; }
  .property-list-controls { width: 100%; justify-content: space-between; }
}

@media (min-width: 70rem) {
  .property-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .property-grid .property-card:last-child:nth-child(odd) { display: flex; grid-column: auto; }
  .property-grid .property-card:last-child:nth-child(odd) .property-card-cover { min-height: 19rem; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; }
}
