:root {
  --ink: #241116;
  --muted: #71575c;
  --paper: #f5f2f0;
  --brand-bg: #e6e6e6;
  --surface: #ffffff;
  --line: #ded3d5;
  --brand-red: #bb1f33;
  --brand-wine: #4d1f28;
  --brand-wine-dark: #2a1016;
  --brand-soft: #f2e4e6;
  --accent: #bb1f33;
  --shadow: 0 24px 70px rgba(77, 31, 40, 0.18);
  --radius: 8px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Inter, Arial, Helvetica, sans-serif;
  line-height: 1.5;
}

a {
  color: inherit;
  text-decoration: none;
}

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

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid #d7d1d2;
  background: var(--brand-bg);
  color: var(--brand-wine);
  backdrop-filter: blur(16px);
}

.topbar__inner {
  width: min(1180px, calc(100% - 32px));
  min-height: 76px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: flex;
  align-items: center;
  flex-direction: column;
  gap: 0;
  min-width: 288px;
}

.brand img {
  width: min(292px, 52vw);
  height: auto;
  display: block;
}

.brand em {
  align-self: center;
  margin-top: -3px;
  color: var(--brand-wine);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 15px;
  line-height: 1.2;
  text-align: center;
}

.nav {
  display: flex;
  align-items: center;
  gap: 22px;
  color: var(--muted);
  font-size: 14px;
}

.nav a:hover {
  color: var(--brand-red);
}

.topbar__cta,
.owner-cta a,
.contact__actions .primary,
.search-button,
.lead-form button {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: var(--radius);
  background: var(--brand-red);
  color: #fff;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 10px 30px rgba(187, 31, 51, 0.24);
}

.topbar__cta {
  padding: 0 18px;
  font-size: 14px;
}

.hero {
  position: relative;
  min-height: 720px;
  display: grid;
  align-items: end;
  overflow: hidden;
  color: #fff;
}

.hero__media {
  position: absolute;
  inset: 0;
  background-image: url("https://images.unsplash.com/photo-1600210492486-724fe5c67fb0?auto=format&fit=crop&w=1800&q=82");
  background-position: center;
  background-size: cover;
  transform: scale(1.02);
}

.hero__shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(18, 17, 15, 0.86), rgba(18, 17, 15, 0.44) 52%, rgba(18, 17, 15, 0.12));
}

.hero__inner {
  position: relative;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 96px 0 54px;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--brand-red);
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 800px;
  margin-bottom: 16px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(44px, 7vw, 84px);
  line-height: 0.98;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 12px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1.06;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 8px;
  font-size: 20px;
  line-height: 1.2;
}

.hero__copy {
  max-width: 610px;
  margin-bottom: 32px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 20px;
}

.search-panel {
  width: min(1050px, 100%);
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.96);
  color: var(--ink);
  box-shadow: var(--shadow);
}

.search-panel__tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
}

.tab,
.quick-filters button {
  min-height: 40px;
  padding: 0 15px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  color: var(--muted);
  cursor: pointer;
}

.tab.is-active,
.quick-filters button.is-active {
  border-color: var(--brand-wine);
  background: var(--brand-wine);
  color: #fff;
}

.search-grid {
  display: grid;
  grid-template-columns: minmax(220px, 1.5fr) minmax(150px, 0.8fr) minmax(150px, 0.8fr) 170px;
  gap: 10px;
}

label span {
  display: block;
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

input,
select,
textarea {
  width: 100%;
  min-height: 46px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  color: var(--ink);
}

textarea {
  padding-top: 12px;
  resize: vertical;
}

.quick-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.section {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 88px 0;
}

.section--tight {
  padding-bottom: 58px;
}

.section__head {
  max-width: 680px;
  margin-bottom: 28px;
}

.section__head p:not(.eyebrow) {
  color: var(--muted);
  font-size: 18px;
}

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

.property-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: 0 14px 34px rgba(18, 17, 15, 0.08);
}

.property-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  display: block;
  object-fit: cover;
}

.property-card__body {
  padding: 18px;
}

.tag {
  width: fit-content;
  margin-bottom: 12px;
  padding: 5px 9px;
  border-radius: 999px;
  background: var(--brand-soft);
  color: var(--brand-wine);
  font-size: 12px;
  font-weight: 800;
}

.location {
  color: var(--muted);
}

.property-card ul {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 0;
  margin: 14px 0;
  list-style: none;
}

.property-card li {
  padding: 6px 9px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--muted);
  font-size: 13px;
}

.price {
  margin-bottom: 12px;
  font-size: 22px;
  font-weight: 900;
}

.property-card a {
  color: var(--brand-red);
  font-weight: 900;
}

.service-band {
  padding: 76px max(16px, calc((100vw - 1180px) / 2));
  display: grid;
  grid-template-columns: 0.7fr 1.3fr;
  gap: 36px;
  background: var(--brand-wine);
  color: #fff;
}

.service-band .eyebrow {
  color: #ffb6bf;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.service-grid article {
  padding: 24px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.06);
}

.service-grid span {
  display: block;
  margin-bottom: 18px;
  color: #ffb6bf;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 26px;
  font-weight: 700;
}

.service-grid p,
.owner-cta p,
.contact__content p {
  color: rgba(255, 255, 255, 0.74);
}

.neighborhood-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 10px;
}

.neighborhood-grid a {
  min-height: 92px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  font-weight: 900;
}

.owner-cta,
.contact {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto 88px;
  border-radius: var(--radius);
}

.owner-cta {
  min-height: 280px;
  padding: 42px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  color: #fff;
  background:
    linear-gradient(90deg, rgba(18, 17, 15, 0.84), rgba(18, 17, 15, 0.44)),
    url("https://images.unsplash.com/photo-1560518883-ce09059eeffa?auto=format&fit=crop&w=1600&q=82") center / cover;
}

.owner-cta div {
  max-width: 640px;
}

.owner-cta a {
  flex: 0 0 auto;
  padding: 0 22px;
}

.contact {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 24px;
  padding: 34px;
  background: var(--ink);
  color: #fff;
}

.contact__content {
  align-self: center;
}

.contact__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.contact__actions a {
  padding: 0 18px;
}

.contact__actions .secondary {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: var(--radius);
  color: #fff;
  font-weight: 800;
}

.lead-form {
  display: grid;
  gap: 12px;
  padding: 22px;
  border-radius: var(--radius);
  background: #fff;
  color: var(--ink);
}

.footer {
  min-height: 96px;
  padding: 24px max(16px, calc((100vw - 1180px) / 2));
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  background: #fff;
}

.footer > div {
  text-align: center;
}

.footer strong {
  color: var(--ink);
}

.footer em {
  display: block;
  margin-top: 6px;
  color: var(--brand-red);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 19px;
  text-align: center;
}

.empty-state {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  color: var(--muted);
}

.admin-login-trigger {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 30;
  min-height: 44px;
  padding: 0 18px;
  border: 0;
  border-radius: var(--radius);
  background: var(--brand-wine);
  color: #fff;
  font-weight: 900;
  cursor: pointer;
  box-shadow: 0 14px 36px rgba(36, 17, 22, 0.28);
}

.login-modal {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(36, 17, 22, 0.62);
}

.login-modal[hidden] {
  display: none;
}

.login-screen {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 18px;
}

.login-box {
  position: relative;
  width: min(410px, 100%);
  display: grid;
  gap: 14px;
  padding: 28px;
  border-radius: var(--radius);
  background: var(--brand-bg);
  box-shadow: var(--shadow);
}

.login-box img {
  width: min(300px, 100%);
  height: auto;
  margin-bottom: 6px;
}

.login-box__close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 32px;
  height: 32px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  color: var(--brand-wine);
  cursor: pointer;
}

.login-error {
  margin: 0;
  color: var(--brand-red);
  font-weight: 800;
}

.login-box button[type="submit"],
.admin-form button[type="submit"] {
  min-height: 46px;
  border: 0;
  border-radius: var(--radius);
  background: var(--brand-red);
  color: #fff;
  font-weight: 900;
  cursor: pointer;
}

.admin-page {
  min-height: 100vh;
  background: var(--paper);
}

.admin-header {
  min-height: 86px;
  padding: 18px max(16px, calc((100vw - 1180px) / 2));
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  background: var(--brand-bg);
  border-bottom: 1px solid #d7d1d2;
}

.admin-header__actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.admin-header__actions a,
.admin-header__actions button,
.admin-form__actions button[type="button"],
.admin-form__actions a,
.admin-property__actions button,
.admin-property__actions a {
  min-height: 40px;
  padding: 0 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  color: var(--brand-wine);
  font-weight: 800;
  cursor: pointer;
}

.admin-shell {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 54px 0 80px;
}

.admin-intro {
  max-width: 720px;
  margin-bottom: 28px;
}

.admin-intro h1 {
  color: var(--brand-wine);
  font-size: clamp(38px, 6vw, 64px);
}

.admin-intro p:not(.eyebrow) {
  color: var(--muted);
  font-size: 18px;
}

.admin-layout {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 20px;
}

.admin-form,
.admin-list {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: 0 14px 34px rgba(77, 31, 40, 0.08);
}

.admin-form {
  display: grid;
  gap: 14px;
  align-self: start;
}

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

.admin-form__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.admin-form__actions button {
  flex: 1 1 150px;
}

.admin-form__actions a {
  flex: 1 1 120px;
}

.admin-list h2 {
  margin-bottom: 18px;
  font-family: Georgia, "Times New Roman", serif;
  color: var(--brand-wine);
}

.admin-property {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 0;
  border-top: 1px solid var(--line);
}

.admin-property:first-child {
  border-top: 0;
  padding-top: 0;
}

.admin-property ul {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 0;
  margin: 10px 0 0;
  list-style: none;
  color: var(--muted);
}

.admin-property__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

@media (max-width: 920px) {
  .topbar__inner {
    min-height: auto;
    padding: 14px 0;
    align-items: flex-start;
    flex-direction: column;
  }

  .nav {
    width: 100%;
    justify-content: space-between;
    gap: 10px;
  }

  .topbar__cta {
    width: 100%;
  }

  .hero {
    min-height: auto;
  }

  .hero__inner {
    padding-top: 74px;
  }

  .search-grid,
  .property-grid,
  .service-band,
  .service-grid,
  .contact,
  .admin-layout {
    grid-template-columns: 1fr;
  }

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

  .owner-cta {
    align-items: flex-start;
    flex-direction: column;
  }

  .owner-cta a {
    width: 100%;
  }
}

@media (max-width: 560px) {
  .nav {
    flex-wrap: wrap;
  }

  h1 {
    font-size: 42px;
  }

  .hero__copy {
    font-size: 17px;
  }

  .search-panel,
  .contact,
  .owner-cta {
    padding: 18px;
  }

  .section {
    padding: 58px 0;
  }

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

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

  .admin-header,
  .admin-property {
    align-items: flex-start;
    flex-direction: column;
  }

  .admin-form__grid {
    grid-template-columns: 1fr;
  }
}
