:root {
  --ink: #142f3c;
  --muted: #607582;
  --paper: #f5f7f4;
  --white: #fff;
  --line: #dce5e2;
  --brand: #0a625f;
  --brand-dark: #074845;
  --accent: #d9f248;
  --sand: #e9ede4;
  --danger: #a63b32;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--paper);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); }
button, input, select { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible { outline: 3px solid #77d9d0; outline-offset: 3px; }

.environment-banner { display: flex; justify-content: center; gap: 12px; padding: 8px 20px; color: #fff; background: #132e3b; font-size: 12px; letter-spacing: .04em; }
.environment-banner span { color: var(--accent); font-weight: 900; }

.site-header { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; justify-content: space-between; gap: 30px; min-height: 78px; padding: 0 5vw; border-bottom: 1px solid rgba(20,47,60,.1); background: rgba(255,255,255,.94); backdrop-filter: blur(12px); }
.brand { display: inline-flex; align-items: center; gap: 11px; color: var(--ink); text-decoration: none; }
.brand-mark { display: grid; place-items: center; width: 39px; height: 39px; border-radius: 12px; color: var(--accent); background: var(--brand-dark); font: 900 21px/1 Georgia, serif; }
.brand strong, .brand small { display: block; }
.brand strong { font: 800 19px/1.05 Georgia, serif; }
.brand small { margin-top: 4px; color: var(--muted); font-size: 10px; letter-spacing: .12em; text-transform: uppercase; }
.site-header nav { display: flex; gap: 28px; }
.site-header nav a { color: var(--ink); font-size: 14px; font-weight: 700; text-decoration: none; }
.site-header nav a:hover { color: var(--brand); }
.saved-button { padding: 10px 15px; border: 1px solid var(--line); border-radius: 999px; color: var(--ink); background: white; cursor: pointer; font-weight: 800; }
.saved-button span { display: inline-grid; place-items: center; min-width: 22px; height: 22px; margin-left: 5px; border-radius: 50%; background: var(--accent); }

.hero { display: grid; grid-template-columns: 1.3fr .7fr; gap: 7vw; align-items: end; min-height: 490px; padding: 78px 7vw 70px; color: #fff; background: linear-gradient(118deg, rgba(7,55,65,.97), rgba(10,98,95,.82)), url('https://images.unsplash.com/photo-1600607687939-ce8a6c25118c?auto=format&fit=crop&w=1800&q=82') center/cover; }
.eyebrow { margin: 0 0 13px; color: var(--brand); font-size: 11px; font-weight: 900; letter-spacing: .18em; }
.hero .eyebrow { color: var(--accent); }
.hero h1 { max-width: 850px; margin: 0; font: 800 clamp(42px,6vw,78px)/.98 Georgia, serif; letter-spacing: -.045em; }
.hero > div > p:last-child { max-width: 670px; margin: 24px 0 0; color: #dbe9e7; font-size: 18px; line-height: 1.6; }
.hero-search { display: grid; gap: 12px; padding: 24px; border: 1px solid rgba(255,255,255,.24); border-radius: 20px; background: rgba(255,255,255,.13); backdrop-filter: blur(8px); }
.hero-search label span { display: block; margin-bottom: 8px; font-size: 12px; font-weight: 800; }
.hero-search input { width: 100%; padding: 15px; border: 0; border-radius: 11px; }
.hero-search button, .secondary-action { padding: 14px 18px; border: 0; border-radius: 11px; color: #112a36; background: var(--accent); cursor: pointer; font-weight: 900; }

.integration-lab, .catalog-shell, .how-it-works { margin: 38px auto; width: min(1180px,90vw); }
.integration-lab { padding: 26px; border: 1px solid #b7ceca; border-radius: 19px; background: #eaf4f1; }
.lab-heading, .catalog-heading { display: flex; justify-content: space-between; gap: 24px; align-items: flex-start; }
.lab-heading h2, .catalog-heading h2, .how-it-works h2 { margin: 0; font: 800 clamp(28px,4vw,43px)/1.05 Georgia, serif; letter-spacing: -.025em; }
.status-chip { padding: 8px 11px; border-radius: 999px; background: #dbe4e2; font-size: 12px; font-weight: 900; white-space: nowrap; }
.status-chip.ready { color: #075c46; background: #c8f0dc; }
.status-chip.error { color: #842f28; background: #f5d4d0; }
.lab-intro { max-width: 850px; color: var(--muted); line-height: 1.6; }
.lab-controls { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 20px; }
.lab-controls label { font-size: 12px; font-weight: 850; }
.lab-controls input:not([type=checkbox]) { display: block; width: 100%; margin-top: 7px; padding: 12px; border: 1px solid #bdd0cc; border-radius: 9px; background: white; }
.check-control { display: flex; align-items: center; gap: 9px; align-self: center; }
.check-control input { width: 18px; height: 18px; }
.lab-controls .secondary-action { justify-self: start; background: var(--brand-dark); color: white; }
.lab-output { display: block; margin-top: 18px; padding: 12px 14px; border-radius: 9px; color: #d9f5f0; background: #102f3a; font: 600 12px/1.5 ui-monospace, SFMono-Regular, Menlo, monospace; }

.catalog-shell { padding: 44px 0; }
.catalog-heading { align-items: end; margin-bottom: 25px; }
.catalog-heading > span { color: var(--muted); font-weight: 800; }
.filter-bar { display: grid; grid-template-columns: repeat(3,1fr) auto; gap: 12px; padding: 15px; border: 1px solid var(--line); border-radius: 15px; background: white; }
.filter-bar label { color: var(--muted); font-size: 11px; font-weight: 800; text-transform: uppercase; }
.filter-bar select { display: block; width: 100%; margin-top: 6px; padding: 10px; border: 0; border-radius: 8px; color: var(--ink); background: #edf1ef; font-weight: 700; }
.filter-bar button { align-self: end; padding: 11px 15px; border: 1px solid var(--line); border-radius: 9px; background: white; cursor: pointer; font-weight: 800; }
.property-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 22px; margin-top: 25px; }
.property-card { overflow: hidden; border: 1px solid var(--line); border-radius: 18px; background: white; box-shadow: 0 12px 32px rgba(20,47,60,.07); }
.property-image-button { position: relative; display: block; width: 100%; height: 230px; padding: 0; border: 0; background: #dfe6e2; cursor: pointer; }
.property-image-button img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.property-card:hover .property-image-button img { transform: scale(1.035); }
.property-purpose { position: absolute; top: 14px; left: 14px; padding: 7px 9px; border-radius: 8px; color: #fff; background: rgba(10,44,56,.88); font-size: 11px; font-weight: 900; text-transform: uppercase; }
.property-body { padding: 18px; }
.property-location { color: var(--brand); font-size: 11px; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; }
.property-body h3 { margin: 8px 0; font: 800 23px/1.12 Georgia, serif; }
.property-summary { min-height: 44px; color: var(--muted); font-size: 13px; line-height: 1.55; }
.property-facts { display: flex; gap: 13px; margin: 14px 0; padding: 13px 0; border-block: 1px solid #edf1ef; }
.property-facts div { display: flex; gap: 4px; }
.property-facts dt { color: var(--muted); font-size: 11px; }
.property-facts dd { margin: 0; font-size: 11px; font-weight: 900; }
.property-price-row { display: flex; align-items: center; justify-content: space-between; margin: 15px 0; }
.property-price { font-size: 20px; }
.save-property { width: 36px; height: 36px; border: 1px solid var(--line); border-radius: 50%; color: var(--brand); background: white; cursor: pointer; font-size: 20px; }
.save-property.saved { color: white; background: var(--brand); }
.property-actions { display: grid; gap: 9px; }
.bthere-native-button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 11px 14px; border: 0; border-radius: 10px; color: white; background: var(--brand-dark); cursor: pointer; font-size: 13px; font-weight: 900; }
.bthere-native-button:hover { background: var(--brand); }
.bthere-native-button:disabled { opacity: .55; cursor: not-allowed; }
.bthere-native-button span { display: grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; color: var(--brand-dark); background: var(--accent); }
.view-detail { padding: 10px; border: 1px solid var(--line); border-radius: 9px; color: var(--ink); background: white; cursor: pointer; font-weight: 800; }
.catalog-actions { display: flex; justify-content: center; gap: 12px; margin-top: 30px; }
.catalog-actions .secondary-action { background: white; border: 1px solid var(--brand); color: var(--brand-dark); }
.empty-state { margin: 25px 0; padding: 50px; border: 1px dashed #aec0bc; border-radius: 16px; text-align: center; }

.how-it-works { padding: 70px 0; }
.step-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 14px; margin-top: 28px; }
.step-grid article { padding: 23px; border-radius: 16px; color: white; background: var(--brand-dark); }
.step-grid article > span { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; color: #183440; background: var(--accent); font-weight: 950; }
.step-grid h3 { margin: 22px 0 8px; }
.step-grid p { color: #c9dcda; font-size: 13px; line-height: 1.55; }

footer { display: flex; align-items: center; justify-content: space-between; gap: 30px; padding: 45px 6vw; color: white; background: #102c38; }
footer p { max-width: 600px; color: #bfd0d4; text-align: right; }
.inverse { color: white; }
.inverse small { color: #bfd0d4; }

.drawer { position: fixed; inset: 0; z-index: 100; }
.drawer-backdrop { position: absolute; inset: 0; background: rgba(6,24,32,.68); backdrop-filter: blur(3px); }
.drawer-panel { position: absolute; top: 0; right: 0; width: min(620px,100%); height: 100%; overflow-y: auto; background: white; box-shadow: -20px 0 70px rgba(0,0,0,.24); }
.drawer-close { position: sticky; top: 15px; z-index: 2; float: right; width: 42px; height: 42px; margin: 15px; border: 1px solid var(--line); border-radius: 50%; background: white; cursor: pointer; font-size: 27px; }
.drawer-image { width: 100%; height: 340px; object-fit: cover; }
.drawer-body { padding: 30px; }
.drawer-body h2 { margin: 8px 0 15px; font: 800 38px/1.05 Georgia,serif; }
.drawer-body > p { color: var(--muted); line-height: 1.7; }
.drawer-price { display: block; margin: 22px 0; font-size: 28px; }
.drawer-actions { display: grid; gap: 10px; padding-top: 20px; border-top: 1px solid var(--line); }
body.drawer-open { overflow: hidden; }

@media (max-width: 900px) {
  .site-header nav { display: none; }
  .hero { grid-template-columns: 1fr; }
  .property-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .step-grid { grid-template-columns: repeat(2,1fr); }
}

@media (max-width: 620px) {
  .environment-banner { display: block; text-align: center; }
  .environment-banner strong { display: none; }
  .site-header { padding: 0 18px; }
  .saved-button { display: none; }
  .hero { min-height: 600px; padding: 62px 22px; }
  .hero h1 { font-size: 48px; }
  .lab-heading, .catalog-heading, footer { display: block; }
  .status-chip { display: inline-block; margin-top: 15px; }
  .lab-controls, .filter-bar, .property-grid, .step-grid { grid-template-columns: 1fr; }
  .filter-bar button { width: 100%; }
  .catalog-actions { flex-direction: column; }
  footer p { text-align: left; }
}
