:root {
  --red: #d71920;
  --blue: #003c8f;
  --navy: #08224a;
  --ink: #17202a;
  --muted: #5e6b7a;
  --line: #dfe4ea;
  --soft: #f5f7fa;
  --shadow: 0 18px 40px rgba(8, 34, 74, .10);
  --content: 1120px;
}

/* Multipage static copy aligned with the current WordPress structure. */
:root {
  --resm-red: var(--red);
  --resm-blue: var(--blue);
  --resm-navy: var(--navy);
  --resm-ink: var(--ink);
  --resm-muted: var(--muted);
  --resm-line: var(--line);
  --resm-bg: var(--soft);
  --resm-content-width: 1020px;
  --resm-page-gutter: 32px;
}

.site-header { position: relative; backdrop-filter: none; }
.brand { width: 300px; min-width: 240px; }
.nav-inner { min-height: 78px; justify-content: space-between; }
.menu { display: flex; gap: 30px; margin: 0; padding: 0; list-style: none; }
.menu a { color: #1f2933; font-size: 14px; font-weight: 600; text-decoration: none; }
.header-actions { display: flex; align-items: center; gap: 14px; }
.language-switcher { display: inline-flex; align-items: center; gap: 8px; color: #1f2933; font-size: 12px; font-weight: 800; }
.language-switcher span { white-space: nowrap; }
.language-switcher select { min-height: 40px; border: 1px solid var(--resm-line); border-radius: 4px; padding: 0 10px; background: #fff; color: #1f2933; font: inherit; }
.login-link { background: var(--resm-blue); border-radius: 4px; }
button.login-link {
  border: 0;
  cursor: pointer;
  font: inherit;
  font-weight: 900;
}

.section { width: 100%; margin: 0; padding: 28px 0 56px; }
.section-alt { background: var(--resm-bg); }
.section-title { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin: 0 auto 24px; width: min(var(--resm-content-width), calc(100% - var(--resm-page-gutter))); }
.section-title h1, .section-title h2 { margin: 0; color: #242a31; font-size: 30px; }
.section-title p { max-width: 560px; margin: 0; color: var(--resm-muted); }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 18px; border: 0; border-radius: 0; background: var(--resm-red); color: #fff; font-weight: 800; text-decoration: none; cursor: pointer; }

.home-redesign { background: #fff; padding-bottom: 42px; overflow-x: hidden; }
.home-hero-shell { width: min(var(--resm-content-width), calc(100% - var(--resm-page-gutter))); margin: 16px auto 0; }
.home-hero { position: relative; min-height: 520px; overflow: hidden; color: #fff; background: #051c39; border-radius: 6px; }
.home-hero-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.home-hero-overlay { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(2,15,25,.82), rgba(2,15,25,.38) 56%, rgba(2,15,25,.16)); }
.home-hero-overlay { background: transparent; }
.home-hero-inner { position: relative; z-index: 1; max-width: 780px; padding: 84px 42px; }
.home-hero-inner p { margin: 0 0 12px; color: rgba(255,255,255,.82); font-size: 13px; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; }
.home-hero-inner h1 { margin: 0; font-size: clamp(46px, 6vw, 78px); line-height: .92; font-weight: 900; letter-spacing: 0; text-transform: uppercase; }
.home-hero-text { max-width: 620px; margin-top: 18px; color: rgba(255,255,255,.9); font-size: 18px; line-height: 1.55; }
.home-search-panel { position: relative; z-index: 2; width: min(1020px, 100%); margin: 18px auto 0; }
.home-search-tabs { display: inline-flex; overflow: hidden; border-radius: 4px 4px 0 0; background: #fff; box-shadow: 0 -4px 18px rgba(8,34,74,.06); }
.home-search-tabs label { min-width: 132px; min-height: 54px; display: inline-flex; align-items: center; justify-content: center; color: var(--resm-blue); font-weight: 900; cursor: pointer; }
.home-search-tabs input { position: absolute; opacity: 0; }
.home-search-tabs label:has(input:checked) { background: var(--resm-blue); color: #fff; }
.home-search-fields { display: grid; grid-template-columns: 1.3fr 1fr 1fr 150px; gap: 18px; padding: 24px; background: #fff; border: 1px solid var(--resm-line); border-radius: 0 4px 4px 4px; box-shadow: var(--shadow); }
.home-search-fields label { display: grid; gap: 8px; color: #1d2733; font-size: 13px; font-weight: 800; }
.home-search-fields input, .home-search-fields select { width: 100%; min-height: 48px; border: 1px solid #cfd7e3; border-radius: 4px; padding: 0 14px; }
.home-search-fields button { border: 0; border-radius: 4px; background: var(--resm-red); color: #fff; font-weight: 900; cursor: pointer; }
.home-carousel-section { width: min(var(--resm-content-width), calc(100% - var(--resm-page-gutter))); margin: 48px auto 0; }
.home-section-heading { display: flex; align-items: end; justify-content: space-between; gap: 18px; margin-bottom: 24px; }
.home-section-heading h2 { margin: 0 0 8px; font-size: 31px; color: #151c28; }
.home-section-heading p { margin: 0; color: var(--resm-muted); }
.home-section-heading a { color: var(--resm-blue); font-weight: 900; text-decoration: none; }
.mouse-carousel { overflow-x: auto; padding-bottom: 16px; }
.mouse-carousel-track { display: grid; grid-auto-flow: column; grid-auto-columns: 330px; gap: 26px; }
.home-property-card { display: block; overflow: hidden; border: 1px solid var(--resm-line); border-radius: 6px; background: #fff; box-shadow: 0 14px 32px rgba(8,34,74,.08); text-decoration: none; }
.home-property-image { position: relative; display: block; height: 220px; background: #13294b; }
.home-property-image img { width: 100%; height: 100%; object-fit: cover; display: block; }
.home-property-image em { position: absolute; left: 12px; top: 12px; background: var(--resm-red); color: #fff; padding: 7px 9px; font-style: normal; font-size: 12px; font-weight: 900; text-transform: uppercase; }
.home-property-body { display: block; padding: 18px; }
.home-property-body small { display: block; margin-bottom: 9px; color: var(--resm-muted); }
.home-property-body strong { display: block; margin-bottom: 12px; color: #13294b; font-size: 20px; }
.home-property-body b { display: block; margin-bottom: 12px; color: var(--resm-blue); font-size: 22px; }
.home-property-meta { display: flex; gap: 12px; color: #465468; font-size: 14px; }
.home-maria { margin-top: 54px; background: #f3f6fa; padding: 48px 0; }
.home-maria-inner { position: relative; width: min(var(--resm-content-width), calc(100% - var(--resm-page-gutter))); margin: 0 auto; display: grid; grid-template-columns: 340px 1fr; gap: 34px; align-items: center; }
.home-maria-photo { overflow: hidden; border-radius: 6px; background: #fff; }
.home-maria-photo img { display: block; width: 100%; height: 420px; object-fit: cover; }
.home-maria-copy p { margin: 0 0 10px; color: var(--resm-blue); font-weight: 900; letter-spacing: .06em; font-size: 13px; }
.home-maria-copy h2 { margin: 0; color: var(--resm-navy); font-size: 44px; }
.home-maria-rule { width: 72px; height: 4px; margin: 18px 0; background: var(--resm-red); }
.home-maria-description { max-width: 620px; color: var(--resm-muted); line-height: 1.7; }
.home-maria-copy ul { display: grid; gap: 8px; margin: 22px 0 0; padding: 0; list-style: none; color: #243247; font-weight: 700; }
.home-maria-brand { position: absolute; right: 0; bottom: 0; display: grid; gap: 4px; color: var(--resm-blue); font-weight: 900; }
.home-sell-cta { width: min(var(--resm-content-width), calc(100% - var(--resm-page-gutter))); margin: 54px auto 0; display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 34px; background: var(--resm-blue); color: #fff; }
.home-sell-cta h2 { margin: 0 0 8px; }
.home-sell-cta p { margin: 0; color: rgba(255,255,255,.82); }
.home-sell-cta a { background: var(--resm-red); color: #fff; padding: 14px 18px; font-weight: 900; text-decoration: none; }

.resm-search { display: grid; grid-template-columns: minmax(180px,1fr) minmax(150px,190px) minmax(160px,1fr) minmax(150px,190px) auto; gap: 10px; margin: 0 0 28px; padding: 16px; background: #f4f6f8; border: 1px solid #d9dee6; }
.resm-search input, .resm-search select, .resm-search button { min-height: 44px; border: 1px solid #c8ced8; padding: 0 12px; font: inherit; }
.resm-search button { background: var(--resm-red); color: #fff; border-color: var(--resm-red); font-weight: 700; cursor: pointer; }
.resm-property-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 22px; width: min(var(--resm-content-width), 100%); margin: 0 auto; }
.resm-card { border: 1px solid var(--resm-line); background: #fff; }
.resm-card-media { position: relative; display: grid; min-height: 210px; overflow: hidden; background: #13294b; color: #fff; place-items: center; text-decoration: none; }
.resm-card-media img { width: 100%; height: 230px; object-fit: cover; display: block; }
.resm-card-media em { position: absolute; left: 12px; top: 12px; background: #13294b; color: #fff; font-style: normal; font-size: 12px; padding: 5px 8px; text-transform: uppercase; }
.resm-card-body { padding: 16px; }
.resm-location { color: #536071; margin: 0 0 6px; }
.resm-card h3 { margin: 0 0 12px; font-size: 20px; }
.resm-card h3 a { color: #13294b; text-decoration: none; }
.resm-price { display: block; color: var(--resm-red); font-size: 20px; margin-bottom: 12px; }
.resm-card ul { display: flex; gap: 12px; padding: 0; margin: 0; list-style: none; color: #4d5866; font-size: 14px; }
.resm-empty { grid-column: 1 / -1; }

.property-single { padding: 42px 0; }
.property-layout { display: grid; grid-template-columns: minmax(0, 1fr) 330px; gap: 32px; }
.property-main { min-width: 0; }
.property-hero { display: flex; justify-content: space-between; gap: 24px; align-items: end; border-bottom: 1px solid var(--resm-line); padding-bottom: 18px; }
.property-hero h1 { margin: 8px 0; max-width: 760px; color: #1c252f; font-size: 36px; line-height: 1.12; }
.property-hero span { display: inline-flex; margin-right: 10px; color: var(--resm-muted); font-weight: 700; }
.property-media {
  display: grid;
  gap: 8px;
  margin: 18px 0 24px;
  width: 100%;
}
.property-media-main,
.property-media-thumb {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  border-radius: 4px;
  background: #fff;
  overflow: hidden;
  cursor: zoom-in;
}
.property-media-main {
  min-height: clamp(280px, 34vw, 560px);
}
.property-media-thumbs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.property-media-thumb {
  aspect-ratio: 1 / 1;
  min-height: 0;
}
.property-media-main img,
.property-media-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  background: #fff;
}
.property-media-empty {
  min-height: 320px;
  display: grid;
  place-items: center;
  border: 1px solid var(--resm-line);
  border-radius: 4px;
  background: #edf1f5;
  color: var(--resm-muted);
  font-weight: 800;
}
.property-lightbox {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(7, 15, 26, .92);
}
.property-lightbox[hidden] { display: none; }
.property-lightbox-stage {
  display: grid;
  gap: 10px;
  justify-items: center;
  margin: 0;
  max-width: min(1200px, calc(100vw - 180px));
  width: 100%;
}
.property-lightbox-stage img {
  max-width: 100%;
  max-height: calc(100vh - 140px);
  width: auto;
  height: auto;
  object-fit: contain;
  background: #0b1524;
  box-shadow: 0 18px 44px rgba(0, 0, 0, .35);
}
.property-lightbox-stage figcaption {
  color: rgba(255,255,255,.88);
  font-size: 13px;
  font-weight: 800;
}
.property-lightbox-close,
.property-lightbox-nav {
  position: absolute;
  border: 0;
  background: rgba(255,255,255,.12);
  color: #fff;
  cursor: pointer;
  font: inherit;
}
.property-lightbox-close {
  top: 18px;
  right: 18px;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  font-size: 28px;
  line-height: 1;
}
.property-lightbox-nav {
  top: 50%;
  transform: translateY(-50%);
  width: 52px;
  height: 52px;
  border-radius: 999px;
  font-size: 34px;
  line-height: 1;
}
.property-lightbox-prev { left: 18px; }
.property-lightbox-next { right: 18px; }
.property-lightbox-close:hover,
.property-lightbox-nav:hover { background: rgba(255,255,255,.2); }
.is-lightbox-open { overflow: hidden; }
.property-section video {
  width: 100%;
  max-width: 100%;
  height: clamp(280px, 34vw, 560px);
  display: block;
  background: #000;
  object-fit: contain;
}
.property-section iframe {
  width: 100%;
  max-width: 100%;
  height: clamp(280px, 34vw, 560px);
  display: block;
  border: 0;
  background: #edf1f5;
}
.property-tabs { display: flex; gap: 24px; border-bottom: 1px solid var(--resm-line); margin-bottom: 24px; overflow-x: auto; }
.property-tabs a { padding: 14px 0; color: var(--resm-blue); font-weight: 800; text-decoration: none; white-space: nowrap; }
.property-section { padding: 22px 0; border-bottom: 1px solid var(--resm-line); }
.property-section h2 { margin-top: 0; color: #1c252f; }
.property-details-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); margin: 0; border-top: 1px solid var(--resm-line); border-left: 1px solid var(--resm-line); }
.property-details-grid div { display: grid; grid-template-columns: 1.2fr .8fr; gap: 10px; padding: 12px; border-right: 1px solid var(--resm-line); border-bottom: 1px solid var(--resm-line); }
.property-details-grid dt { color: var(--resm-muted); font-weight: 700; }
.property-details-grid dd { margin: 0; font-weight: 800; text-align: right; }
.property-sidebar { border: 1px solid var(--resm-line); padding: 18px; align-self: start; position: sticky; top: 20px; background: #fff; }

.admin-lang-tabs { display: flex; gap: 8px; margin-bottom: 16px; flex-wrap: wrap; }
.admin-lang-tabs button {
  min-height: 40px;
  padding: 0 14px;
  border: 1px solid var(--resm-line);
  border-radius: 4px;
  background: #fff;
  color: #1f2933;
  font-weight: 800;
  cursor: pointer;
}
.admin-lang-tabs button.is-active { background: var(--resm-blue); color: #fff; border-color: var(--resm-blue); }
.admin-lang-panels { display: grid; gap: 14px; }
.admin-lang-panel { display: none; gap: 14px; }
.admin-lang-panel.is-active { display: grid; }

.resm-share-float { position: fixed; left: 12px; top: 50%; transform: translateY(-50%); z-index: 30; display: grid; justify-items: center; gap: 9px; width: 54px; }
.resm-share-label { writing-mode: vertical-rl; transform: rotate(180deg); color: #8d98a8; font-size: 10px; font-weight: 800; letter-spacing: .3em; line-height: 1; text-align: center; margin-bottom: 2px; }
.resm-share-float a { display: inline-flex; align-items: center; justify-content: center; width: 42px; height: 42px; padding: 0; border-radius: 13px; color: #fff; font-size: 12px; font-weight: 800; text-decoration: none; box-shadow: 0 8px 18px rgba(0,0,0,.14); }
.share-facebook { background: #1877f2; }
.share-linkedin { background: #0a66c2; }
.share-whatsapp { background: #25d366; }
.share-email { background: #6b7280; }

.resm-vender-hero-stage { min-height: 560px; padding: 44px; border-radius: 6px; background: linear-gradient(90deg, rgba(2,15,25,.82), rgba(2,15,25,.42) 55%, rgba(2,15,25,.2)), url('https://realestatesaomiguel.com/wp-content/uploads/2026/05/f6b60af1-ad16-49c6-9bee-7b704eb97adc-edited.jpg'); background-position: center; background-size: cover; display: grid; align-items: end; position: relative; overflow: hidden; color: #fff; }
.resm-vender-hero-copy { max-width: 760px; position: relative; z-index: 1; }
.resm-vender-hero-copy h1 { margin: 0; font-size: clamp(44px, 5vw, 74px); line-height: .96; text-transform: uppercase; }
.resm-vender-subheadline { max-width: 760px; margin: 18px 0 0; font-size: 18px; line-height: 1.55; color: rgba(255,255,255,.92); }
.resm-vender-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 22px; }
.resm-button-secondary { background: var(--resm-blue); }
.resm-button-ghost { background: rgba(255,255,255,.15); border: 1px solid rgba(255,255,255,.32); }
.resm-scroll-indicator { position: absolute; right: 28px; bottom: 24px; width: 28px; height: 48px; border: 1px solid rgba(255,255,255,.45); border-radius: 999px; display: grid; place-items: start center; padding-top: 8px; opacity: .8; }
.resm-scroll-indicator span { width: 4px; height: 8px; border-radius: 999px; background: #fff; }
.resm-trust-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.resm-showcase-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.resm-trust-card, .resm-showcase-card, .resm-quote-card, .resm-metric-card, .resm-vender-form-panel { background: #fff; border: 1px solid var(--resm-line); border-radius: 8px; padding: 20px; box-shadow: 0 10px 22px rgba(20,35,58,.05); }
.resm-trust-icon, .resm-showcase-icon { display: inline-grid; place-items: center; width: 46px; height: 46px; border-radius: 14px; background: rgba(0,60,143,.08); color: var(--resm-blue); font-weight: 900; font-size: 13px; }
.resm-trust-card h3, .resm-showcase-card h3, .resm-quote-card strong { margin: 14px 0 8px; color: #1c252f; }
.resm-trust-card p, .resm-showcase-card p, .resm-quote-card p, .resm-timeline-step p { color: var(--resm-muted); line-height: 1.6; margin: 0; }
.resm-timeline { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 14px; }
.resm-timeline-step { position: relative; min-height: 170px; background: #fff; border: 1px solid var(--resm-line); border-radius: 8px; padding: 18px; }
.resm-timeline-step span { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--resm-red); color: #fff; font-weight: 900; margin-bottom: 12px; }
.resm-vender-form-layout { display: grid; grid-template-columns: minmax(0, 1fr) 430px; gap: 24px; align-items: stretch; }
.resm-vender-form-copy { background: linear-gradient(180deg, #0f2140, #102b58); color: #fff; border-radius: 8px; padding: 28px; display: flex; flex-direction: column; }
.resm-vender-form-copy p { color: rgba(255,255,255,.82); line-height: 1.6; margin: 0; }
.resm-check-list { padding: 0; margin: 20px 0 0; list-style: none; display: grid; gap: 10px; }
.resm-check-list li { display: flex; gap: 10px; }
.resm-check-list li::before { content: "✓"; flex: 0 0 auto; width: 20px; height: 20px; border-radius: 50%; background: rgba(255,255,255,.16); display: inline-grid; place-items: center; font-size: 12px; }
.resm-contact-card { margin-top: auto; display: grid; gap: 10px; padding-top: 18px; border-top: 1px solid rgba(255,255,255,.16); }
.resm-contact-card a { color: #fff; text-decoration: none; }
.resm-vender-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.resm-vender-grid label, .contact-form label { display: grid; gap: 8px; font-size: 14px; font-weight: 700; color: #27313d; }
.resm-vender-grid input, .resm-vender-grid select, .resm-vender-grid textarea, .contact-form input, .contact-form select, .contact-form textarea { width: 100%; border: 1px solid #d7dfe8; border-radius: 6px; padding: 12px 14px; font: inherit; color: #223042; background: #fff; }
.resm-vender-grid label.full { grid-column: 1 / -1; }
.resm-vender-checkbox { display: flex !important; align-items: center; gap: 10px; }
.resm-vender-checkbox input { width: auto; }
.resm-vender-form-actions { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; margin-top: 18px; }
.resm-vender-form-hint { font-size: 13px; color: var(--resm-muted); }
.resm-carousel { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(280px, 1fr); gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 8px; }
.resm-quote-card { scroll-snap-align: start; }
.resm-quote-card span { display: block; color: var(--resm-muted); font-size: 13px; margin-top: 4px; }
.resm-comparison-table { background: #fff; border: 1px solid var(--resm-line); border-radius: 8px; overflow: hidden; }
.resm-comparison-head, .resm-comparison-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.resm-comparison-head { background: var(--resm-navy); color: #fff; }
.resm-comparison-head strong, .resm-comparison-row > div { padding: 14px 16px; }
.resm-comparison-row { border-top: 1px solid var(--resm-line); }
.resm-faq-list { display: grid; gap: 12px; }
.resm-faq-item { border: 1px solid var(--resm-line); border-radius: 8px; background: #fff; overflow: hidden; }
.resm-faq-item summary { cursor: pointer; padding: 16px 18px; font-weight: 800; color: #1c252f; }
.resm-faq-item div { padding: 0 18px 16px; }
.resm-final-cta { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 28px; border-radius: 8px; background: linear-gradient(120deg, #0f2244, #d71920); color: #fff; }
.resm-final-cta h2 { margin-top: 0; }
.resm-final-cta p { color: rgba(255,255,255,.82); margin: 0; }

.contact-page h1 { margin: 0 0 24px; color: #242a31; font-size: 32px; }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.contact-panel { min-width: 0; overflow-wrap: anywhere; background: #fff; border: 1px solid var(--resm-line); border-radius: 6px; padding: 28px; box-shadow: 0 10px 22px rgba(20,35,58,.05); }
.contact-panel h2 { margin: 0 0 12px; color: var(--resm-navy); font-size: 30px; }
.contact-panel p { color: var(--resm-muted); line-height: 1.65; }
.eyebrow { margin: 0 0 10px; color: var(--resm-blue); font-size: 13px; font-weight: 900; text-transform: uppercase; letter-spacing: .08em; }
.contact-list { display: grid; gap: 12px; margin-top: 22px; }
.contact-list a, .contact-list div { display: grid; gap: 4px; padding: 14px; border: 1px solid var(--resm-line); border-radius: 4px; background: #fbfcfe; text-decoration: none; }
.contact-list strong { color: var(--resm-navy); }
.contact-list small { color: var(--resm-muted); }
.contact-form { display: grid; gap: 14px; }
.contact-form textarea { min-height: 128px; resize: vertical; }
.contact-form button { background: var(--resm-red); }

.admin-shell { width: min(1180px, calc(100% - 32px)); margin: 38px auto 64px; }
.admin-heading { margin-bottom: 24px; }
.admin-heading h1 { margin: 0 0 8px; color: #1c252f; font-size: 34px; }
.admin-heading p { margin: 0; color: var(--resm-muted); line-height: 1.6; }
.admin-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.admin-tile { display: grid; gap: 8px; min-height: 150px; padding: 20px; border: 1px solid var(--resm-line); border-radius: 8px; background: #fff; text-decoration: none; box-shadow: 0 10px 22px rgba(20,35,58,.05); }
.admin-tile strong { color: var(--resm-navy); font-size: 20px; }
.admin-tile span { color: var(--resm-muted); line-height: 1.55; }
.admin-form { display: grid; gap: 18px; }
.admin-card { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 18px; padding: 20px; border: 1px solid var(--resm-line); border-radius: 8px; background: #fff; box-shadow: 0 10px 22px rgba(20,35,58,.05); }
.admin-card h2 { grid-column: 1 / -1; margin: 0 0 4px; color: var(--resm-navy); font-size: 22px; }
.admin-card label { display: grid; gap: 7px; color: #27313d; font-size: 13px; font-weight: 800; }
.admin-card input, .admin-card textarea, .admin-card select { width: 100%; min-height: 42px; border: 1px solid #d7dfe8; border-radius: 6px; padding: 10px 12px; font: inherit; }
.admin-card input[type="file"] {
  min-height: 48px;
  padding: 9px;
  background: #f8fafc;
}
.admin-card textarea { min-height: 110px; resize: vertical; }
.admin-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 18px; }
.media-current {
  display: block;
  color: #637083;
  font-size: 12px;
  font-weight: 700;
}
.media-preview,
.media-preview-grid {
  grid-column: 1 / -1;
}
.media-preview {
  display: grid;
  gap: 10px;
}
.media-preview-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(92px, 1fr));
  gap: 12px;
}
.media-preview figure,
.media-preview-grid figure {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 8px;
  border: 1px solid var(--resm-line);
  border-radius: 6px;
  background: #f8fafc;
}
.media-preview img,
.media-preview-grid img,
.media-preview video {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 4px;
  background: #e9eef5;
}
.media-preview video {
  aspect-ratio: 16 / 9;
}
.media-preview-grid img,
.media-preview-grid video {
  aspect-ratio: 1 / 1;
}
.media-preview figcaption,
.media-preview-grid figcaption {
  color: var(--resm-muted);
  font-size: 12px;
  font-weight: 800;
}
.media-preview button,
.media-preview-grid button {
  min-height: 30px;
  border: 1px solid #cdd7e3;
  border-radius: 4px;
  background: #fff;
  cursor: pointer;
  font: inherit;
  font-size: 12px;
  font-weight: 800;
}
.media-preview-grid figure div {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4px;
}
.admin-status {
  min-height: 22px;
  margin: 0;
  color: #287a45;
  font-weight: 800;
}
.admin-status.is-error {
  color: var(--resm-red);
}
.auth-shell {
  width: min(460px, calc(100% - 32px));
  margin: 64px auto;
}
.auth-card {
  display: grid;
  gap: 16px;
  padding: 26px;
  border: 1px solid var(--resm-line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 16px 34px rgba(20,35,58,.08);
}
.auth-card h1 {
  margin: 0;
  color: var(--resm-navy);
}
.auth-card label {
  display: grid;
  gap: 7px;
  color: #27313d;
  font-size: 13px;
  font-weight: 800;
}
.auth-card input {
  min-height: 44px;
  border: 1px solid #d7dfe8;
  border-radius: 6px;
  padding: 10px 12px;
  font: inherit;
}
.auth-message {
  min-height: 20px;
  margin: 0;
  color: var(--resm-red);
  font-weight: 800;
}
.admin-output { max-height: 360px; overflow: auto; padding: 16px; background: #0d1829; color: #dce3ec; border-radius: 8px; white-space: pre-wrap; }
.admin-layout { display: grid; grid-template-columns: 280px minmax(0, 1fr); gap: 20px; align-items: start; }
.admin-list { position: sticky; top: 20px; display: grid; gap: 12px; }
.admin-search-label { display: grid; gap: 6px; color: #27313d; font-size: 13px; font-weight: 800; }
.admin-search-label input { width: 100%; min-height: 42px; border: 1px solid #d7dfe8; border-radius: 6px; padding: 10px 12px; font: inherit; }
.admin-list [data-property-list] { display: grid; gap: 8px; }
.admin-list-item { display: grid; gap: 4px; width: 100%; border: 1px solid var(--resm-line); border-radius: 6px; background: #fff; padding: 12px; text-align: left; cursor: pointer; }
.admin-list-item.is-active { border-color: var(--resm-blue); box-shadow: 0 0 0 2px rgba(0,85,165,.12); }
.admin-list-item strong { color: var(--resm-navy); }
.admin-list-item span { color: var(--resm-muted); font-size: 13px; }
.admin-empty { margin: 0; color: var(--resm-muted); font-size: 13px; }

@media (max-width: 900px) {
  body { padding-bottom: 0; }
  .nav-inner, .section-title, .home-section-heading, .home-sell-cta, .resm-final-cta { align-items: flex-start; flex-direction: column; }
  .menu { flex-wrap: wrap; justify-content: center; gap: 10px 14px; }
  .menu a { font-size: 13px; }
  .brand { width: 260px; min-width: 0; }
  .home-search-fields, .resm-search, .property-layout, .contact-grid, .resm-vender-form-layout, .resm-trust-grid, .resm-showcase-grid { grid-template-columns: 1fr; }
  .resm-timeline { grid-template-columns: 1fr; }
  .contact-grid { width: 100%; }
  .contact-panel { padding: 22px; }
  .home-search-tabs { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); width: 100%; }
  .home-search-tabs label { min-width: 0; }
  .home-hero, .resm-vender-hero-stage { min-height: 520px; }
  .home-hero-inner, .resm-vender-hero-stage { padding: 28px; }
  .home-hero-inner h1, .resm-vender-hero-copy h1 { font-size: 42px; }
  .resm-vender-hero-copy h1,
  .resm-vender-subheadline,
  .resm-trust-card p,
  .resm-showcase-card p,
  .resm-timeline-step p {
    max-width: 320px;
    overflow-wrap: anywhere;
  }
  .home-maria-inner { grid-template-columns: 1fr; }
  .home-maria-brand { position: static; }
  .property-gallery { grid-template-columns: 1fr; grid-auto-rows: 240px; }
  .property-sidebar { position: static; }
  .property-details-grid { grid-template-columns: 1fr; }
  .resm-vender-grid { grid-template-columns: 1fr; }
  .resm-share-float { display: none; }
  .admin-grid, .admin-card, .admin-layout { grid-template-columns: 1fr; }
  .admin-list { position: static; }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: #fff;
  font-family: Inter, Arial, Helvetica, sans-serif;
  overflow-x: hidden;
}
a { color: inherit; }
button, input, select, textarea { font: inherit; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 255, 255, .96);
  backdrop-filter: blur(12px);
}
.brand-line {
  width: min(1180px, calc(100% - 32px));
  height: 5px;
  margin: 0 auto;
  background: var(--red);
}
.nav-inner {
  width: min(1180px, calc(100% - 32px));
  min-height: 76px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 28px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  width: 268px;
  min-width: 220px;
  color: var(--blue);
  text-decoration: none;
}
.brand img { display: block; width: min(100%, 430px); height: auto; max-height: 76px; object-fit: contain; object-position: left center; }
.primary-nav {
  display: flex;
  align-items: center;
  gap: 30px;
  margin-left: auto;
  font-size: 14px;
}
.primary-nav a {
  text-decoration: none;
  color: #1f2933;
  font-weight: 600;
}
.login-link,
.search-fields button,
.sell-band a,
.contact-form button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  border: 0;
  border-radius: 4px;
  background: var(--blue);
  color: #fff;
  padding: 0 18px;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
}
.nav-toggle { display: none; }

.hero-shell {
  width: min(var(--content), calc(100% - 32px));
  margin: 22px auto 0;
}
.hero-stage {
  position: relative;
  min-height: 520px;
  overflow: hidden;
  border-radius: 4px;
  background: #142130;
}
.hero-video,
.hero-overlay {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.hero-video { object-fit: cover; }
.hero-overlay {
  background: linear-gradient(90deg, rgba(2,15,25,.82), rgba(2,15,25,.36) 56%, rgba(2,15,25,.14));
}
.hero-copy {
  position: relative;
  z-index: 1;
  max-width: 740px;
  padding: 78px 42px;
  color: #fff;
  overflow-wrap: anywhere;
}
.hero-copy p {
  margin: 0 0 12px;
  color: rgba(255,255,255,.78);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.hero-copy h1 {
  margin: 0;
  font-size: clamp(44px, 6vw, 76px);
  line-height: .92;
  letter-spacing: 0;
  text-transform: uppercase;
}
.hero-copy span {
  display: block;
  max-width: 620px;
  margin-top: 18px;
  color: rgba(255,255,255,.9);
  font-size: 18px;
  line-height: 1.55;
}

.search-panel {
  position: relative;
  z-index: 2;
  width: min(1020px, 100%);
  margin: -22px auto 0;
}
.search-tabs {
  display: inline-flex;
  overflow: hidden;
  border-radius: 4px 4px 0 0;
  background: #fff;
  box-shadow: 0 -4px 18px rgba(8, 34, 74, .06);
}
.search-tabs label {
  min-width: 132px;
  min-height: 54px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--blue);
  font-weight: 900;
  cursor: pointer;
}
.search-tabs input { position: absolute; opacity: 0; }
.search-tabs label:has(input:checked) {
  background: var(--blue);
  color: #fff;
}
.search-fields {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr 150px;
  gap: 18px;
  padding: 24px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 0 4px 4px 4px;
  box-shadow: var(--shadow);
}
.search-fields label,
.contact-form label {
  display: grid;
  gap: 8px;
  min-width: 0;
  color: #1d2733;
  font-size: 13px;
  font-weight: 800;
}
.search-fields input,
.search-fields select,
.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  min-height: 48px;
  border: 1px solid #cfd7e3;
  border-radius: 4px;
  background: #fff;
  padding: 0 14px;
  color: var(--ink);
  min-width: 0;
}

.section {
  width: min(var(--content), calc(100% - 32px));
  margin: 42px auto;
}
.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 24px;
}
.section-heading h2 {
  margin: 0 0 8px;
  color: #151c28;
  font-size: 32px;
}
.section-heading p {
  margin: 0;
  color: var(--muted);
}
.view-actions {
  display: inline-flex;
  gap: 8px;
}
.icon-button {
  min-height: 38px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: #fff;
  color: var(--navy);
  padding: 0 12px;
  font-weight: 800;
  cursor: pointer;
}
.icon-button.active { background: var(--navy); color: #fff; }

.property-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}
.property-grid.is-list {
  grid-template-columns: 1fr;
}
.property-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: #fff;
  box-shadow: 0 14px 32px rgba(8, 34, 74, .07);
}
.property-card button {
  display: grid;
  width: 100%;
  border: 0;
  background: transparent;
  padding: 0;
  text-align: left;
  cursor: pointer;
}
.property-grid.is-list .property-card button {
  grid-template-columns: 300px 1fr;
}
.property-card .property-media {
  position: relative;
  min-height: 230px;
  background: linear-gradient(135deg, #dfe7f0, #aebdcc);
}
.property-card .property-media img {
  width: 100%;
  height: 230px;
  object-fit: cover;
  display: block;
}
.property-badge {
  position: absolute;
  left: 12px;
  top: 12px;
  background: var(--navy);
  color: #fff;
  padding: 6px 9px;
  border-radius: 2px;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}
.property-body { padding: 18px; }
.property-body small {
  display: block;
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 15px;
}
.property-body h3 {
  margin: 0 0 12px;
  color: #13294b;
  font-size: 20px;
}
.property-price {
  display: block;
  margin-bottom: 14px;
  color: var(--red);
  font-size: 22px;
  font-weight: 900;
}
.property-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  color: #465468;
  font-size: 14px;
}

.property-detail {
  padding-top: 12px;
  border-top: 1px solid var(--line);
}
.detail-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 32px;
}
.detail-gallery {
  overflow: hidden;
  border-radius: 4px;
  background: #edf1f5;
}
.detail-gallery img {
  display: block;
  width: 100%;
  height: min(560px, 52vw);
  object-fit: cover;
}
.detail-main h2 {
  margin: 22px 0 8px;
  color: #152033;
  font-size: 36px;
}
.detail-main p {
  color: var(--muted);
  line-height: 1.7;
}
.detail-specs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}
.detail-specs div {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding: 12px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.detail-specs dt {
  color: var(--muted);
  font-weight: 800;
}
.detail-specs dd {
  margin: 0;
  font-weight: 900;
}
.detail-side {
  position: sticky;
  top: 104px;
  align-self: start;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: #fff;
  padding: 20px;
  box-shadow: var(--shadow);
}
.hidden { display: none; }

.sell-band {
  width: min(var(--content), calc(100% - 32px));
  margin: 54px auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 34px;
  border-radius: 4px;
  background: var(--blue);
  color: #fff;
}
.sell-band p {
  margin: 0 0 8px;
  color: rgba(255,255,255,.75);
  font-weight: 800;
  text-transform: uppercase;
}
.sell-band h2 {
  margin: 0;
  font-size: 30px;
}
.sell-band a {
  background: var(--red);
  white-space: nowrap;
}

.contact-section {
  padding: 54px 0;
  background: var(--soft);
  border-top: 1px solid var(--line);
}
.contact-grid {
  width: min(var(--content), calc(100% - 32px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
}
.contact-card,
.contact-form {
  border: 1px solid var(--line);
  border-radius: 4px;
  background: #fff;
  padding: 30px;
  box-shadow: var(--shadow);
}
.eyebrow {
  margin: 0 0 8px;
  color: var(--blue);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.contact-card h2,
.contact-form h2 {
  margin: 0 0 12px;
  color: var(--navy);
  font-size: 30px;
}
.contact-card p {
  color: var(--muted);
  line-height: 1.65;
}
.contact-list {
  display: grid;
  gap: 12px;
  margin-top: 22px;
}
.contact-list a,
.contact-list div {
  display: grid;
  gap: 4px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: #fbfcfe;
  text-decoration: none;
}
.contact-list strong { color: var(--navy); }
.contact-list span { color: var(--muted); font-size: 14px; }
.contact-form {
  display: grid;
  gap: 14px;
}
.contact-form textarea {
  min-height: 128px;
  padding-top: 12px;
  resize: vertical;
}
.contact-form button { background: var(--red); }

.share-bar {
  position: fixed;
  left: 14px;
  top: 50%;
  z-index: 10;
  transform: translateY(-50%);
  display: grid;
  justify-items: center;
  gap: 9px;
}
.share-bar span {
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  color: #8d98a8;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .24em;
  text-transform: uppercase;
}
.share-bar a {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: var(--blue);
  color: #fff;
  font-size: 12px;
  font-weight: 900;
  text-decoration: none;
  box-shadow: 0 8px 18px rgba(0,0,0,.14);
}

.site-footer {
  padding: 34px 0;
  background: #0d1829;
  color: #dce3ec;
}
.container {
  width: min(var(--content), calc(100% - 32px));
  margin: 0 auto;
}

@media (max-width: 940px) {
  body { padding-bottom: 74px; }
  .nav-inner { flex-wrap: wrap; padding-bottom: 14px; }
  .primary-nav { order: 3; width: 100%; justify-content: center; margin-left: 0; }
  .search-fields,
  .property-grid,
  .detail-shell,
  .contact-grid {
    grid-template-columns: 1fr;
  }
  .property-grid.is-list .property-card button {
    grid-template-columns: 1fr;
  }
  .detail-side { position: static; }
  .share-bar {
    left: 50%;
    top: auto;
    bottom: 12px;
    transform: translateX(-50%);
    grid-auto-flow: column;
    padding: 8px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: rgba(255,255,255,.94);
    box-shadow: var(--shadow);
  }
  .share-bar span { display: none; }
}

@media (max-width: 620px) {
  .nav-inner {
    gap: 12px;
    width: calc(100% - 20px);
  }
  .brand {
    width: 210px;
    min-width: 0;
  }
  .nav-toggle {
    display: inline-flex;
    margin-left: auto;
    min-height: 40px;
    border: 1px solid var(--line);
    border-radius: 4px;
    background: #fff;
    padding: 0 12px;
    font-weight: 800;
  }
  .primary-nav {
    display: none;
    align-items: stretch;
    gap: 0;
  }
  .primary-nav.open { display: grid; }
  .primary-nav a {
    padding: 12px 0;
    border-top: 1px solid var(--line);
  }
  .login-link { display: none; }
  .hero-shell { width: 100%; margin-top: 0; }
  .hero-stage { min-height: 470px; border-radius: 0; }
  .hero-copy {
    max-width: 100%;
    padding: 42px 18px;
  }
  .hero-copy h1 {
    max-width: 340px;
    font-size: 34px;
    line-height: 1;
  }
  .hero-copy p,
  .hero-copy span {
    max-width: 340px;
  }
  .hero-copy span { font-size: 16px; }
  .search-panel {
    width: calc(100% - 20px);
    margin-top: -12px;
  }
  .search-tabs {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    width: 100%;
  }
  .search-tabs label { min-width: 0; min-height: 46px; font-size: 13px; }
  .search-fields { padding: 16px; gap: 12px; }
  .section,
  .sell-band {
    width: calc(100% - 20px);
  }
  .section-heading,
  .sell-band {
    align-items: stretch;
    flex-direction: column;
  }
  .property-media-main,
  .property-media-thumb,
  .property-media {
    min-height: 0;
  }
  .property-media-main { min-height: 240px; }
  .property-media-main img,
  .property-media-thumb img {
    height: 100%;
  }
  .property-media-thumbs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .property-section video,
  .property-section iframe { height: 240px; }
  .contact-grid { width: calc(100% - 20px); }
  .contact-card,
  .contact-form { padding: 22px; }
  .share-bar { display: none; }
}

@media (max-width: 620px) {
  .container,
  .section-title,
  .home-hero-shell,
  .home-carousel-section,
  .home-sell-cta {
    width: calc(100% - 20px);
  }
  .nav-inner {
    align-items: center;
    width: calc(100% - 20px);
  }
  .brand {
    width: 230px;
  }
  .menu {
    gap: 8px 11px;
  }
  .menu a {
    font-size: 12px;
  }
  .contact-grid {
    width: 100%;
  }
  .contact-panel {
    width: 100%;
    padding: 22px;
  }
  .contact-panel p {
    overflow-wrap: anywhere;
  }
  .home-search-panel {
    width: calc(100% - 20px);
  }
  .home-search-tabs {
    display: grid !important;
    width: 100%;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .home-search-tabs label {
    min-width: 0;
    font-size: 13px;
  }
  .home-hero-inner h1 {
    max-width: 340px;
    font-size: 36px;
    line-height: 1;
  }
  .home-hero-text {
    max-width: 340px;
    font-size: 17px;
    overflow-wrap: anywhere;
  }
  .resm-share-float {
    display: none;
  }
}
