:root {
  --blue: #005daa;
  --blue-deep: #003a6b;
  --blue-mid: #0a6bbd;
  --gold: #f7a81b;
  --gold-deep: #c98600;
  --ink: #0e1c2c;
  --muted: #4d6073;
  --line: rgba(0, 61, 115, 0.12);
  --bg: #eef3f8;
  --surface: #ffffff;
  --radius: 16px;
  --font: "Outfit", system-ui, sans-serif;
  --display: "Fraunces", Georgia, serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100%;
  font-family: var(--font);
  color: var(--ink);
  background:
    radial-gradient(1200px 500px at 10% -10%, rgba(0, 93, 170, 0.1), transparent 60%),
    radial-gradient(900px 400px at 100% 0%, rgba(247, 168, 27, 0.08), transparent 55%),
    var(--bg);
  line-height: 1.5;
}

a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ——— Header ——— */
.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 28px;
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: inherit;
  text-decoration: none;
}
.brand:hover { text-decoration: none; }
.brand-mark {
  display: grid;
  place-items: center;
  filter: drop-shadow(0 4px 10px rgba(0, 93, 170, 0.25));
  transition: transform 0.35s var(--ease);
}
.brand:hover .brand-mark { transform: rotate(-8deg) scale(1.04); }
.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.05;
}
.brand-text strong {
  font-family: var(--display);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--blue);
  letter-spacing: -0.02em;
}
.brand-text span {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--muted);
  letter-spacing: 0.02em;
}
.site-nav {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}
.site-nav > a {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--ink);
  text-decoration: none;
  position: relative;
}
.site-nav > a:not(.btn)::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 0;
  height: 2px;
  background: var(--gold);
  transition: width 0.25s var(--ease);
}
.site-nav > a:not(.btn):hover { color: var(--blue); text-decoration: none; }
.site-nav > a:not(.btn):hover::after { width: 100%; }
.nav-profile { display: inline-flex; align-items: center; gap: 8px; }
.inline-form { display: inline; margin: 0; }
.linkish {
  background: none;
  border: none;
  font: inherit;
  font-weight: 600;
  color: var(--muted);
  cursor: pointer;
  padding: 0;
}
.linkish:hover { color: var(--blue); }

.avatar-sm, .avatar-lg {
  border-radius: 50%;
  object-fit: cover;
  background: linear-gradient(135deg, var(--blue), var(--blue-deep));
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
}
.avatar-sm { width: 30px; height: 30px; font-size: 12px; }
.avatar-lg { width: 96px; height: 96px; font-size: 34px; }
.avatar-fallback { text-transform: uppercase; }

/* ——— Buttons ——— */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: none;
  border-radius: 999px;
  padding: 12px 22px;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease), background 0.2s;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-sm { padding: 8px 14px; font-size: 0.9rem; }
.btn-block { width: 100%; }
.btn-blue {
  background: var(--blue);
  color: #fff;
  box-shadow: 0 8px 20px rgba(0, 93, 170, 0.25);
}
.btn-gold {
  background: linear-gradient(180deg, #ffc147, var(--gold));
  color: #1a1400;
  box-shadow: 0 8px 22px rgba(247, 168, 27, 0.35);
}
.btn-outline {
  background: rgba(255, 255, 255, 0.9);
  color: var(--blue);
  border: 1.5px solid rgba(0, 93, 170, 0.35);
}
.btn-ghost {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  border: 1.5px solid rgba(255, 255, 255, 0.35);
  backdrop-filter: blur(6px);
}
.btn-ghost:hover { background: rgba(255, 255, 255, 0.2); }

.flash-wrap {
  max-width: 1100px;
  margin: 12px auto 0;
  padding: 0 20px;
}
.flash {
  padding: 12px 16px;
  border-radius: 12px;
  margin-bottom: 8px;
  font-weight: 600;
}
.flash-ok { background: #e7f6ea; color: #1b5e20; }
.flash-error, .flash-warn { background: #fff4e0; color: #9a5b00; }

/* ——— Hero ——— */
.hero {
  position: relative;
  min-height: min(78vh, 640px);
  display: grid;
  place-items: center;
  overflow: hidden;
  color: #fff;
  isolation: isolate;
}
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(ellipse 80% 60% at 70% 40%, rgba(247, 168, 27, 0.28), transparent 55%),
    radial-gradient(ellipse 50% 70% at 15% 80%, rgba(10, 107, 189, 0.55), transparent 50%),
    linear-gradient(145deg, #002852 0%, #005daa 48%, #003a6b 100%);
  animation: heroShift 14s ease-in-out infinite alternate;
}
.hero-bg::before {
  content: "";
  position: absolute;
  inset: -20%;
  background:
    repeating-conic-gradient(from 0deg at 50% 50%, transparent 0deg 8deg, rgba(255,255,255,0.03) 8deg 9deg);
  opacity: 0.5;
  animation: wheelSpin 60s linear infinite;
}
.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to top, rgba(0, 30, 60, 0.45), transparent 40%),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160' viewBox='0 0 160 160'%3E%3Ccircle cx='80' cy='80' r='58' fill='none' stroke='%23ffffff' stroke-opacity='0.06' stroke-width='10'/%3E%3Ccircle cx='80' cy='80' r='22' fill='none' stroke='%23F7A81B' stroke-opacity='0.12' stroke-width='4'/%3E%3C/svg%3E");
  background-size: cover, 180px 180px;
  background-position: center, 85% 30%;
  background-repeat: no-repeat, no-repeat;
}
@keyframes heroShift {
  from { filter: saturate(1); }
  to { filter: saturate(1.15) brightness(1.05); }
}
@keyframes wheelSpin {
  to { transform: rotate(360deg); }
}
.hero-inner {
  max-width: 720px;
  padding: 72px 28px 80px;
  text-align: center;
  animation: riseIn 0.8s var(--ease) both;
}
@keyframes riseIn {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: none; }
}
.hero-kicker {
  display: inline-block;
  margin: 0 0 14px;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(247, 168, 27, 0.18);
  border: 1px solid rgba(247, 168, 27, 0.45);
  color: #ffe7a8;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.hero-brand {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(3.4rem, 9vw, 5.6rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 0.95;
  text-shadow: 0 8px 40px rgba(0, 0, 0, 0.25);
}
.hero-tagline {
  margin: 8px 0 18px;
  font-size: clamp(1.25rem, 3vw, 1.7rem);
  font-weight: 600;
  color: rgba(255, 255, 255, 0.92);
}
.hero-lead {
  margin: 0 auto 28px;
  max-width: 38rem;
  font-size: 1.08rem;
  color: rgba(255, 255, 255, 0.86);
}
.hero-lead strong { color: #ffd56a; font-weight: 700; }
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}

/* ——— Purpose ——— */
.purpose {
  padding: 64px 28px;
  background:
    linear-gradient(180deg, #fff 0%, #f7fafc 100%);
  border-bottom: 1px solid var(--line);
}
.purpose-grid {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.15fr 0.95fr;
  gap: 40px;
  align-items: start;
}
.purpose-copy h2 {
  margin: 0 0 16px;
  font-family: var(--display);
  font-size: clamp(1.8rem, 3vw, 2.35rem);
  color: var(--blue-deep);
  letter-spacing: -0.02em;
}
.purpose-copy p {
  margin: 0 0 14px;
  color: var(--muted);
  font-size: 1.05rem;
}
.purpose-copy strong { color: var(--ink); }
.purpose-points {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.purpose-points li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 14px;
  padding: 16px 18px;
  background: var(--surface);
  border-radius: var(--radius);
  border: 1px solid var(--line);
  box-shadow: 0 10px 30px rgba(0, 58, 107, 0.05);
  transition: transform 0.25s var(--ease), border-color 0.25s;
}
.purpose-points li:hover {
  transform: translateY(-2px);
  border-color: rgba(247, 168, 27, 0.55);
}
.pp-num {
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.2rem;
  color: var(--gold-deep);
  line-height: 1;
  padding-top: 2px;
}
.purpose-points strong {
  display: block;
  margin-bottom: 4px;
  color: var(--blue-deep);
  font-size: 1.02rem;
}
.purpose-points p {
  margin: 0;
  color: var(--muted);
  font-size: 0.94rem;
}

/* ——— Explore ——— */
.explore-section {
  padding: 48px 0 0;
}
.explore-intro {
  max-width: 1100px;
  margin: 0 auto 20px;
  padding: 0 28px;
}
.explore-intro h2 {
  margin: 0 0 6px;
  font-family: var(--display);
  font-size: clamp(1.6rem, 2.5vw, 2rem);
  color: var(--blue-deep);
}
.explore-intro p {
  margin: 0;
  color: var(--muted);
  max-width: 40rem;
}

.filter-bar {
  max-width: 1100px;
  margin: 0 auto 16px;
  padding: 18px 20px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 12px 36px rgba(0, 58, 107, 0.06);
}
.filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: flex-end;
}
.field {
  display: flex;
  flex-direction: column;
  gap: 5px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
}
.field.grow { flex: 1; min-width: 180px; }
.field input, .field select, .field textarea {
  font: inherit;
  font-size: 0.98rem;
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
  color: var(--ink);
  border: 1.5px solid rgba(0, 93, 170, 0.18);
  border-radius: 12px;
  padding: 11px 13px;
  background: #fff;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(0, 93, 170, 0.15);
}
.amenity-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}
.chip {
  border: 1px solid rgba(0, 93, 170, 0.18);
  background: #f7fafc;
  border-radius: 999px;
  padding: 7px 14px;
  font: inherit;
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--ink);
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
}
.chip:hover { border-color: var(--blue); }
.chip.is-on {
  background: rgba(0, 93, 170, 0.1);
  border-color: var(--blue);
  color: var(--blue-deep);
}

.explore-split {
  display: grid;
  grid-template-columns: minmax(320px, 40%) 1fr;
  min-height: min(72vh, 720px);
  border-top: 1px solid var(--line);
  background: #fff;
}
.results-pane {
  overflow: auto;
  background: linear-gradient(180deg, #f5f8fc, #eef3f8);
  border-right: 1px solid var(--line);
}
.results-meta {
  padding: 16px 18px 6px;
  font-weight: 700;
  color: var(--blue-deep);
  font-size: 0.95rem;
}
.house-cards {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 8px 14px 28px;
}
.house-card {
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 0;
  background: var(--surface);
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid transparent;
  box-shadow: 0 8px 24px rgba(0, 58, 107, 0.07);
  cursor: pointer;
  text-align: left;
  padding: 0;
  font: inherit;
  color: inherit;
  transition: border-color 0.2s, transform 0.25s var(--ease), box-shadow 0.25s;
}
.house-card:hover, .house-card.is-active {
  border-color: var(--gold);
  transform: translateY(-2px);
  box-shadow: 0 14px 32px rgba(0, 58, 107, 0.12);
}
.house-card img,
.house-card .ph {
  width: 100%;
  height: 118px;
  object-fit: cover;
  background: linear-gradient(135deg, #9bb8d4, #5a8bb8);
  display: block;
}
.house-card-body { padding: 12px 14px 14px; }
.house-card-body h3 {
  margin: 0 0 4px;
  font-family: var(--display);
  font-size: 1.05rem;
  letter-spacing: -0.01em;
  color: var(--blue-deep);
}
.house-card-body .loc {
  margin: 0 0 8px;
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 600;
}
.house-card-body .meta {
  margin: 0;
  font-size: 0.86rem;
  color: var(--ink);
}
.house-card a.open {
  display: inline-block;
  margin-top: 10px;
  font-weight: 700;
  font-size: 0.86rem;
  color: var(--blue);
}

.map-pane { position: relative; min-height: 360px; }
#explore-map { width: 100%; height: 100%; min-height: 360px; background: #d5e3f0; }

.leaflet-div-icon.pin { background: transparent; border: none; }
.pin-dot {
  width: 18px;
  height: 18px;
  border-radius: 50% 50% 50% 0;
  transform: rotate(-45deg);
  background: var(--blue);
  border: 2px solid #fff;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.28);
}
.pin-dot.is-active { background: var(--gold); }

/* ——— Detail ——— */
.detail {
  max-width: 1100px;
  margin: 0 auto;
  padding: 24px 20px 56px;
}
.back-link { font-weight: 700; }
.gallery { margin: 14px 0 24px; }
.gallery-main {
  width: 100%;
  max-height: 440px;
  object-fit: cover;
  border-radius: var(--radius);
  background: #c5d4e4;
  display: block;
  box-shadow: 0 16px 40px rgba(0, 58, 107, 0.12);
}
.gallery-thumbs {
  display: flex;
  gap: 8px;
  margin-top: 10px;
  overflow-x: auto;
}
.thumb {
  border: 2px solid transparent;
  padding: 0;
  border-radius: 10px;
  overflow: hidden;
  cursor: pointer;
  background: none;
}
.thumb.is-active { border-color: var(--gold); }
.thumb img { width: 92px; height: 68px; object-fit: cover; display: block; }
.gallery-empty {
  height: 240px;
  display: grid;
  place-items: center;
  background: #dce6f0;
  border-radius: var(--radius);
  color: var(--muted);
  font-weight: 600;
}
.detail-grid {
  display: grid;
  grid-template-columns: 1.4fr 0.9fr;
  gap: 28px;
}
.eyebrow {
  margin: 0;
  color: var(--blue);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 0.76rem;
}
.detail-main h1 {
  margin: 6px 0 14px;
  font-family: var(--display);
  font-size: clamp(1.7rem, 3vw, 2.2rem);
  letter-spacing: -0.02em;
  color: var(--blue-deep);
}
.facts {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
  padding: 0;
  margin: 0 0 20px;
}
.facts li {
  background: rgba(0, 93, 170, 0.08);
  color: var(--blue-deep);
  font-weight: 700;
  padding: 7px 13px;
  border-radius: 999px;
  font-size: 0.9rem;
}
.detail-main h2 {
  font-family: var(--display);
  font-size: 1.2rem;
  color: var(--blue);
  margin: 22px 0 10px;
  border-left: 4px solid var(--gold);
  padding-left: 10px;
}
.desc { white-space: pre-wrap; color: var(--muted); }
.amenity-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
  padding: 0;
}
.amenity-list li {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 7px 12px;
  font-weight: 600;
  font-size: 0.9rem;
  background: #fff;
}
.privacy-note {
  margin-top: 22px;
  padding: 14px 16px;
  background: linear-gradient(90deg, #fff8e8, #fff);
  border-left: 4px solid var(--gold);
  border-radius: 0 12px 12px 0;
  font-size: 0.94rem;
  color: #5c4a10;
}
.contact-card {
  background: #fff;
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: 0 16px 40px rgba(0, 58, 107, 0.1);
  border-top: 4px solid var(--gold);
}
.contact-card h2 {
  margin-top: 0;
  font-family: var(--display);
  color: var(--blue-deep);
}
.contact-card .btn { margin-top: 8px; }
.hint { font-size: 0.84rem; color: var(--muted); font-weight: 500; text-transform: none; letter-spacing: 0; }
.form-status { margin-top: 10px; font-weight: 700; }
.form-status.ok { color: #1b5e20; }
.form-status.err { color: #b71c1c; }
.mini-map-wrap {
  margin-top: 14px;
  border-radius: var(--radius);
  overflow: hidden;
  height: 220px;
  box-shadow: 0 10px 28px rgba(0, 58, 107, 0.1);
}
#detail-map { width: 100%; height: 100%; }

/* ——— Auth / forms ——— */
.auth-panel, .panel {
  max-width: 480px;
  margin: 36px auto;
  background: #fff;
  padding: 32px;
  border-radius: var(--radius);
  box-shadow: 0 18px 48px rgba(0, 58, 107, 0.1);
  border: 1px solid var(--line);
}
.auth-wide, .panel-form { max-width: 980px; }
.auth-panel h1, .panel h1 {
  margin: 0 0 8px;
  font-family: var(--display);
  color: var(--blue-deep);
}
.lead { color: var(--muted); margin-top: 0; }
.stack-form { display: flex; flex-direction: column; gap: 14px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.field-row.triple { grid-template-columns: 1fr 1fr 1fr; }
.auth-alt { margin-top: 18px; text-align: center; }
.avatar-edit { display: flex; align-items: center; gap: 16px; }
.panel-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}
.mine-list { list-style: none; padding: 0; margin: 0; }
.mine-list li {
  display: grid;
  grid-template-columns: 120px 1fr auto;
  gap: 14px;
  align-items: center;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}
.mine-thumb img, .mine-thumb .no-photo {
  width: 120px;
  height: 84px;
  object-fit: cover;
  border-radius: 10px;
  display: block;
  background: #dce6f0;
}
.mine-thumb .no-photo {
  display: grid;
  place-items: center;
  font-size: 0.8rem;
  color: var(--muted);
  font-weight: 600;
}
.mine-info h2 { margin: 0 0 4px; font-size: 1.05rem; font-family: var(--display); color: var(--blue-deep); }
.mine-info p { margin: 0; color: var(--muted); font-size: 0.9rem; }
.status { font-weight: 700 !important; }
.status.is-pub { color: #2e7d32 !important; }
.status.is-draft { color: #ef6c00 !important; }

.house-form .form-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
.amenities-fieldset {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px 14px;
  margin: 8px 0;
}
.amenities-fieldset legend {
  padding: 0 6px;
  font-weight: 700;
  color: var(--blue);
}
.amenity-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
}
.check {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--ink);
  text-transform: none;
  letter-spacing: 0;
}
.publish-check { margin: 10px 0; }
.pin-map {
  height: 280px;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--line);
  margin: 6px 0 8px;
}
.label-like {
  display: block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 6px;
}
.photo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
  gap: 8px;
}
.photo-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 0.8rem;
  text-transform: none;
  letter-spacing: 0;
}
.photo-item img {
  width: 100%;
  height: 80px;
  object-fit: cover;
  border-radius: 8px;
}
.form-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

/* Footer */


/* Ant Design picture-card upload */
.ant-upload-section { margin-top: 10px; }
.ant-upload-label {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 4px;
}
.ant-upload-hint-top {
  font-size: 0.86rem;
  color: var(--muted);
  margin-bottom: 12px;
  font-weight: 500;
  text-transform: none;
  letter-spacing: 0;
}
.ant-upload-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  align-items: flex-start;
}
.ant-upload-list-picture-card {
  display: contents;
}
.ant-upload-list-item,
.ant-upload-select-picture-card {
  width: 104px;
  height: 104px;
  margin: 0 8px 8px 0;
  border-radius: 8px;
  position: relative;
  box-sizing: border-box;
}
.ant-upload-list-item {
  border: 1px solid #d9d9d9;
  background: #fafafa;
  padding: 8px;
  overflow: hidden;
}
.ant-upload-list-item-info,
.ant-upload-list-item-thumbnail {
  width: 100%;
  height: 100%;
}
.ant-upload-list-item-thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 4px;
  display: block;
}
.ant-upload-list-item-actions {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.45);
  opacity: 0;
  transition: opacity 0.2s;
  border-radius: 8px;
}
.ant-upload-list-item:hover .ant-upload-list-item-actions { opacity: 1; }
.ant-upload-list-item-card-actions-btn {
  border: none;
  background: transparent;
  color: #fff;
  cursor: pointer;
  padding: 6px;
  line-height: 0;
}
.ant-upload-list-item-card-actions-btn:hover { color: #ff7875; }
.ant-upload-select-picture-card {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  border: 1px dashed #d9d9d9;
  background: #fafafa;
  cursor: pointer;
  color: rgba(0, 0, 0, 0.45);
  transition: border-color 0.2s, color 0.2s, background 0.2s;
  text-align: center;
  padding: 8px;
}
.ant-upload-select-picture-card:hover,
.ant-upload-select-picture-card.ant-upload-drag-hover {
  border-color: #1677ff;
  color: #1677ff;
  background: #f0f7ff;
}
.ant-upload-drag-icon { line-height: 1; color: inherit; }
.ant-upload-text {
  font-size: 12px;
  font-weight: 600;
  color: inherit;
  line-height: 1.25;
  text-transform: none;
  letter-spacing: 0;
}
.ant-upload-hint {
  font-size: 11px;
  color: rgba(0, 0, 0, 0.35);
  line-height: 1.2;
  text-transform: none;
  letter-spacing: 0;
}
.ant-upload-drag-hover .ant-upload-hint { color: #1677ff; }

.site-footer {
  margin-top: 0;
  background: linear-gradient(180deg, #002852, #001a33);
  color: rgba(255, 255, 255, 0.82);
  padding: 40px 28px 48px;
}
.footer-inner { max-width: 860px; margin: 0 auto; text-align: center; }
.footer-brand {
  font-family: var(--display);
  font-size: 1.25rem;
  color: #fff;
  margin-bottom: 12px;
}
.footer-brand strong { color: var(--gold); }
.site-footer p { margin: 0 0 10px; }
.footer-note { font-size: 0.88rem; color: rgba(255, 255, 255, 0.55); }


.page-explore .site-footer { margin-top: 0; }

@media (max-width: 900px) {
  .site-header { padding: 12px 16px; }
  .purpose-grid, .detail-grid, .house-form .form-cols,
  .field-row, .field-row.triple {
    grid-template-columns: 1fr;
  }
  .explore-split {
    grid-template-columns: 1fr;
    grid-template-rows: auto 420px;
  }
  .results-pane {
    border-right: none;
    max-height: 420px;
  }
  .house-card { grid-template-columns: 110px 1fr; }
  .mine-list li { grid-template-columns: 90px 1fr; }
  .mine-list li .btn { grid-column: 2; justify-self: start; }
  .hero-inner { padding: 56px 20px 64px; }
  .purpose, .explore-intro { padding-left: 18px; padding-right: 18px; }
  .filter-bar { margin-left: 12px; margin-right: 12px; }
}
