:root {
  --ink: #1d2522;
  --muted: #64706a;
  --line: #d9dfda;
  --surface: #ffffff;
  --soft: #f4f1eb;
  --accent: #18324a;
  --accent-dark: #10283d;
  --gold: #b38a42;
  --danger: #a43434;
  --shadow: 0 18px 42px rgba(29, 37, 34, 0.12);
}

.property-external-links { display: flex; flex-wrap: wrap; gap: 12px 24px; margin: 18px 0; }
.airbnb-link { display: inline-flex; align-items: center; gap: 7px; color: #ff385c; font-weight: 700; text-decoration: none; }
.airbnb-link { background: transparent; }
.airbnb-link img { width: 42px; height: 42px; object-fit: contain; background: transparent; }
.property-social-link { display: inline-flex; align-items: center; gap: 7px; }
.property-social-link { background: transparent; }
.property-social-link img { width: 42px; height: 42px; object-fit: contain; background: transparent; }
.owner-edit-link { color: #a45b2a; }
.bank-airbnb-link { display: inline-flex; vertical-align: middle; margin-left: 6px; }
.bank-airbnb-link img { width: 21px; height: 21px; object-fit: contain; }
.financial-table .rental-income-amount { white-space: nowrap; }
.chart-line.debt { stroke: #3e6996; }
.chart-point.debt { fill: #3e6996; }
.chart-value-tooltip.tooltip-green rect { fill: #deefde; stroke: #86a986; }
.chart-value-tooltip.tooltip-green text { fill: #24533b; }
.chart-value-tooltip.tooltip-blue rect { fill: #e1eefb; stroke: #88aacf; }
.chart-value-tooltip.tooltip-blue text { fill: #294f78; }
.chart-line.prudent { stroke: #3e6996; stroke-dasharray: 8 5; }
.chart-line.moderate { stroke: #7e4da1; stroke-dasharray: 3 4; }
.chart-value-tooltip.tooltip-purple rect { fill: #eee3f7; stroke: #b596ce; }
.chart-value-tooltip.tooltip-purple text { fill: #633b80; }
.wealth-chart-legend span.moderate-label { color: #7e4da1; }
.wealth-chart-legend span.moderate-label::before { border-top-style: dotted; }
.wealth-chart-legend { display: flex; flex-wrap: wrap; gap: 12px 24px; font-size: 13px; }
.wealth-chart-legend span { color: #315f4d; }
.wealth-chart-legend span::before { content: ''; display: inline-block; width: 28px; border-top: 3px solid; margin-right: 8px; vertical-align: middle; }
.wealth-chart-legend .prudent-label { color: #3e6996; }
.wealth-chart-legend .prudent-label::before { border-top-style: dashed; }
.chart-card { position: relative; }
.loan-group-tooltip { position: absolute; z-index: 5; width: max-content; max-width: min(440px, 100%); padding: 10px 14px; background: #deefde; color: #24533b; border: 1px solid #86a986; border-radius: 4px; font-size: 12px; line-height: 1.6; pointer-events: none; overflow-wrap: anywhere; box-shadow: 0 4px 12px #203c3220; }
.loan-group-tooltip strong { display: block; }
.loan-group-tooltip strong:last-child { margin-top: 6px; }
.admin-property-preview { display: flex; align-items: center; gap: 14px; }
.admin-property-thumbnail { width: 80px; height: 60px; flex-shrink: 0; object-fit: cover; border-radius: 4px; }
.admin-rent-amount { white-space: nowrap; }
.admin-property-table thead th { text-align: center; }
.property-sort { border: 0; background: transparent; color: inherit; font: inherit; text-transform: inherit; cursor: pointer; padding: 4px; width: 100%; text-align: center; }
.property-sort:hover { color: var(--accent); }
.property-sort:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.property-sort [data-sort-arrow] { display: inline-block; min-width: 1em; }

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: #f3f4f6;
  color: var(--ink);
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.55;
}

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

img {
  display: block;
  max-width: 100%;
}

.site-header,
.admin-header {
  align-items: center;
  background: rgba(251, 250, 247, 0.94);
  border-bottom: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  padding: 18px clamp(18px, 4vw, 56px);
  position: sticky;
  top: 0;
  z-index: 10;
}

.brand {
  align-items: center;
  display: flex;
  gap: 12px;
}

.brand small {
  color: var(--muted);
  display: block;
  font-size: 12px;
}

.brand-mark {
  align-items: center;
  background: linear-gradient(135deg, #18324a, #234b6b);
  color: #fff;
  display: inline-flex;
  font-weight: 700;
  height: 42px;
  justify-content: center;
  width: 42px;
}

nav {
  display: flex;
  gap: 18px;
}

nav a {
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
}

main {
  margin: 0 auto;
  max-width: 1240px;
  padding: 34px clamp(18px, 4vw, 56px) 60px;
}

.intro {
  align-items: end;
  display: grid;
  gap: 28px;
  grid-template-columns: 1fr auto;
  margin-bottom: 34px;
}

.intro h1,
.detail-summary h1,
.admin-title h1 {
  font-size: clamp(34px, 5vw, 68px);
  letter-spacing: 0;
  line-height: 1;
  margin: 0 0 18px;
  max-width: 900px;
}

.intro p {
  color: var(--muted);
  max-width: 700px;
}

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

.intro-panel {
  border: 1px solid var(--line);
  min-width: 180px;
  padding: 24px;
  text-align: center;
}

.intro-panel strong {
  display: block;
  font-size: 46px;
}

.property-grid {
  display: grid;
  gap: 24px;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
}

.property-card {
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.gallery {
  aspect-ratio: 4 / 3;
  background: #dde3df;
  overflow: hidden;
  position: relative;
}

.gallery img {
  height: 100%;
  inset: 0;
  object-fit: cover;
  opacity: 0;
  position: absolute;
  transition: opacity 0.2s ease;
  width: 100%;
}

.gallery img.active {
  opacity: 1;
}

.gallery-btn {
  align-items: center;
  background: rgba(255, 255, 255, 0.88);
  border: 0;
  color: var(--ink);
  cursor: pointer;
  display: flex;
  font-size: 30px;
  height: 40px;
  justify-content: center;
  position: absolute;
  top: calc(50% - 20px);
  width: 40px;
}

.gallery-btn.prev {
  left: 12px;
}

.gallery-btn.next {
  right: 12px;
}

.gallery-count {
  background: rgba(29, 37, 34, 0.72);
  color: #fff;
  font-size: 12px;
  padding: 6px 9px;
  position: absolute;
  right: 12px;
  bottom: 12px;
}

.property-body {
  padding: 22px;
}

.property-topline,
.property-metrics,
.property-footer {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.property-topline span,
.property-metrics span,
.features span {
  background: var(--soft);
  color: var(--accent-dark);
  font-size: 13px;
  font-weight: 700;
  padding: 7px 10px;
}

.property-card h2 {
  font-size: 24px;
  line-height: 1.15;
  margin: 18px 0 4px;
}

.location,
.property-card p {
  color: var(--muted);
}

.property-footer {
  border-top: 1px solid var(--line);
  justify-content: space-between;
  margin-top: 20px;
  padding-top: 18px;
}

.text-link {
  color: var(--accent);
  font-weight: 800;
}

.button,
button.button {
  background: linear-gradient(135deg, #18324a, #234b6b);
  border: 1px solid var(--accent);
  color: #fff;
  cursor: pointer;
  display: inline-flex;
  font-weight: 800;
  justify-content: center;
  padding: 12px 18px;
}

.button.secondary {
  background: transparent;
  color: var(--accent);
}

.detail-hero {
  display: grid;
  gap: 34px;
  grid-template-columns: minmax(0, 1.25fr) minmax(320px, 0.75fr);
}

.detail-gallery {
  aspect-ratio: 16 / 10;
}

.detail-media { min-width: 0; }
.gallery-thumbnails {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(72px, 1fr));
  gap: 8px;
  margin-top: 12px;
}
.gallery-thumbnail {
  aspect-ratio: 4 / 3;
  padding: 3px;
  border: 2px solid transparent;
  background: transparent;
  cursor: pointer;
  min-width: 0;
}
.gallery-thumbnail img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.gallery-thumbnail.active { border-color: var(--accent); }
.gallery-thumbnail:hover { background: var(--line); }
.gallery-thumbnail:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

.detail-summary {
  align-self: center;
}

.price {
  color: var(--accent);
  display: block;
  font-size: 30px;
  margin-bottom: 18px;
}

.features {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 30px;
}

.empty-state,
.auth-card {
  background: var(--surface);
  border: 1px solid var(--line);
  margin: 50px auto;
  max-width: 560px;
  padding: 32px;
  text-align: center;
}

.admin-page {
  background: #f4f6f4;
}

.admin-shell {
  max-width: 1160px;
}
.admin-shell.admin-properties-shell {
  max-width: 1800px;
  padding-inline: clamp(18px, 2vw, 36px);
}
.admin-property-table { min-width: 1200px; }

.admin-title {
  align-items: center;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 24px;
}

.admin-title h1 {
  font-size: clamp(32px, 4vw, 54px);
}

.table-wrap,
.form-section {
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: 0 10px 28px rgba(29, 37, 34, 0.08);
}

.table-wrap {
  overflow-x: auto;
}

table {
  border-collapse: collapse;
  min-width: 820px;
  width: 100%;
}

th,
td {
  border-bottom: 1px solid var(--line);
  padding: 16px;
  text-align: left;
  vertical-align: middle;
}

th {
  color: var(--muted);
  font-size: 12px;
  text-transform: uppercase;
}

td small {
  color: var(--muted);
  display: block;
}

.actions {
  align-items: center;
  display: flex;
  gap: 12px;
}

.actions a,
.actions button {
  background: none;
  border: 0;
  color: var(--accent);
  cursor: pointer;
  font: inherit;
  font-weight: 800;
  padding: 0;
}
.table-wrap td:nth-child(4), .table-wrap td:nth-child(5) { white-space: nowrap; }

.actions button {
  color: var(--danger);
}
.icon-action { align-items: center; display: inline-flex; justify-content: center; min-width: 34px; min-height: 34px; border: 1px solid transparent; border-radius: 4px; font-size: 23px; line-height: 1; transition: background .15s, color .15s, border-color .15s; }
.icon-action:hover { background: #eaf0ec; border-color: #cddbd1; color: var(--accent-dark); }
.icon-action.delete-action { font-size: 29px; }
.icon-action.delete-action:hover { background: #fff0ee; border-color: #efc8c2; color: var(--danger); }
.sr-only { clip: rect(0,0,0,0); clip-path: inset(50%); height: 1px; overflow: hidden; position: absolute; white-space: nowrap; width: 1px; }

.auth-card form,
.property-form {
  display: grid;
  gap: 18px;
  text-align: left;
}

.form-section {
  display: grid;
  gap: 16px;
  padding: 24px;
}

.form-section h2 {
  margin: 0;
}

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

label {
  color: var(--muted);
  display: grid;
  font-size: 13px;
  font-weight: 800;
  gap: 7px;
}

input,
select,
textarea {
  border: 1px solid var(--line);
  color: var(--ink);
  font: inherit;
  padding: 12px;
  width: 100%;
}

textarea {
  resize: vertical;
}

.alert {
  background: #fff3f3;
  border: 1px solid #efb5b5;
  color: var(--danger);
  margin-bottom: 16px;
  padding: 12px 14px;
}

.photo-manager {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
}

.photo-tile {
  border: 1px solid var(--line);
  padding: 10px;
}

.photo-tile img {
  aspect-ratio: 4 / 3;
  object-fit: cover;
  width: 100%;
}

.photo-tile span {
  align-items: center;
  display: flex;
  gap: 8px;
  margin-top: 8px;
}

.photo-tile input {
  width: auto;
}

.form-actions {
  display: flex;
  gap: 12px;
  justify-content: flex-end;
}

@media (max-width: 820px) {
  .site-header,
  .admin-header,
  .admin-title,
  .intro {
    align-items: flex-start;
    flex-direction: column;
  }

  .intro,
  .detail-hero,
  .form-grid {
    grid-template-columns: 1fr;
  }

  nav {
    flex-wrap: wrap;
  }

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


/* Agency identity */
:root { --ink: #20303d; --muted: #68727c; --line: #dfe3e8; --accent: #18324a; --accent-dark: #10283d; --gold: #8c6c3d; --shadow: 0 8px 24px rgba(24,50,74,.07); }
html { scroll-behavior: smooth; scroll-padding-top: 110px; }
body { background: #f3f4f6; font-family: 'Segoe UI', Arial, sans-serif; }
main { max-width: 1440px; padding-top: 30px; }
.site-header { background: #fff; min-height: 92px; }
.brand strong { font-size: 21px; letter-spacing: -.5px; }
.brand-mark { border: 1px solid var(--gold); background: transparent; color: var(--accent); font-family: Georgia, serif; font-size: 23px; width: 48px; height: 48px; }
.brand small { font-size: 11px; letter-spacing: .5px; }
nav { align-items: center; gap: 28px; }
nav a { font-weight: 500; color: var(--ink); }
a:hover { color: var(--gold); }
.button { gap: 24px; align-items: center; min-height: 48px; font-size: 13px; font-weight: 600; transition: background .2s; }
.button:hover { background: var(--accent-dark); color: white; }
.button.secondary:hover { color: white; }
:focus-visible { outline: 3px solid #b08c51; outline-offset: 4px; }
.eyebrow { font-size: 10px; letter-spacing: 2px; font-weight: 700; }
.agency-hero { display: grid; grid-template-columns: .95fr 1.05fr; min-height: 480px; background: #efeee6; }
.hero-copy { padding: clamp(28px,4vw,60px); align-self: center; }
.hero-copy h1 { font-family: Georgia, serif; font-weight: 400; font-size: clamp(36px,3.7vw,58px); line-height: 1.13; letter-spacing: -1.8px; margin: 24px 0; }
.hero-copy h1 em { color: #617264; font-weight: 400; }
.hero-copy > p:not(.eyebrow) { color: var(--muted); font-size: 15px; max-width: 380px; margin: 0 0 28px; }
.hero-visual { position: relative; min-height: 380px; overflow: hidden; }
.hero-visual img { width: 100%; height: 100%; position: absolute; object-fit: cover; }
.hero-photo-panel { display: flex; flex-direction: column; min-width: 0; }
.hero-photo-split { flex: 1; background: #83abc5; isolation: isolate; }
.hero-photo-half { position: absolute; top: 0; bottom: 0; overflow: hidden; min-width: 0; }
.hero-photo-half:first-child { left: 0; width: 62%; }
.hero-photo-half:last-child { right: 0; width: 58%; }
.hero-photo-half:last-child img { -webkit-mask-image: linear-gradient(to right, transparent, #000 35%); mask-image: linear-gradient(to right, transparent, #000 35%); }
.hero-photo-half:last-child > span { left: auto; right: 16px; }
.hero-photo-half img { inset: 0; object-position: center; }
.hero-photo-half > span { position: absolute; bottom: 22px; left: 16px; color: #fff; font: italic 25px Georgia,serif; text-shadow: 0 2px 6px #000; }
.hero-photo-credits { margin: 0; padding: 8px 10px; font-size: 10px; color: var(--muted); background: #fff; }
.hero-photo-credits a { text-decoration: underline; }
.hero-visual > span { position: absolute; bottom: 30px; left: 30px; color: white; font: italic 30px Georgia,serif; text-shadow: 0 2px 8px #000; }
.hero-visual small { position: absolute; right: 14px; top: 14px; padding: 4px 8px; background: #ffffffcf; color: #435449; font-size: 10px; }
.property-search { position: relative; display: grid; grid-template-columns: 1fr 1.2fr 1fr 1fr auto; gap: 16px; background: white; border: 1px solid var(--line); padding: 24px; margin: -1px 0 60px; box-shadow: var(--shadow); align-items: end; }
.property-search label { min-width: 0; font-size: 10px; letter-spacing: .7px; text-transform: uppercase; }
.property-search input,.property-search select { background: #fafbf8; min-width: 0; font-size: 13px; font-weight: 400; letter-spacing: 0; height: 46px; }
.section-heading { display: flex; justify-content: space-between; align-items: end; margin-bottom: 28px; gap: 20px; }
.section-heading h2,.agency-values h2,.property-videos h2 { font: 400 clamp(26px,2.7vw,38px)/1.2 Georgia,serif; margin: 10px 0 0; }
.section-heading > span { color: var(--muted); font-size: 12px; white-space: nowrap; }
.property-grid { grid-template-columns: repeat(3,minmax(0,1fr)); gap: 26px; }
.property-card { display: flex; flex-direction: column; transition: box-shadow .2s,transform .2s; }
.property-card:hover { transform: translateY(-3px); box-shadow: 0 14px 35px #20363014; }
.property-card .gallery { aspect-ratio: 4/3; }
.transaction-badge { position: absolute; top: 16px; left: 16px; z-index: 1; background: white; padding: 7px 13px; font-size: 10px; text-transform: uppercase; letter-spacing: 1px; }
.property-body { padding: 24px; display: flex; flex-direction: column; flex: 1; }
.property-topline span { background: transparent; padding: 0; font-size: 10px; text-transform: uppercase; letter-spacing: 1px; }
.property-topline span + span { display: none; }
.property-card h2 { font: 400 25px/1.2 Georgia,serif; margin-top: 12px; }
.property-card p { font-size: 13px; }
.property-card .location { margin: 8px 0 0; font-size: 12px; }
.property-metrics { gap: 0; margin: 16px 0; }
.property-metrics span { background: transparent; padding: 0 12px; border-right: 1px solid var(--line); font-weight: 400; }
.property-metrics span:first-child { padding-left: 0; }
.property-metrics span:last-child { border: 0; }
.property-footer { margin-top: auto; }
.property-footer strong { font-size: 20px; }
.property-footer a { font-size: 12px; }
.gallery-btn { border-radius: 50%; width: 34px; height: 34px; font-size: 24px; }
.agency-values { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 50px; margin-top: 80px; border-top: 1px solid var(--line); padding-top: 45px; }
.value-number { font: italic 26px Georgia,serif; color: var(--gold); }
.agency-values h3 { font-size: 16px; font-weight: 600; }
.agency-values p:not(.eyebrow) { font-size: 13px; color: var(--muted); }
.site-footer { padding: 32px clamp(18px,4vw,56px); background: #eaece5; display: flex; align-items: center; justify-content: space-between; gap: 24px; font-size: 12px; }
.detail-summary h1 { font: 400 clamp(32px,3.5vw,48px)/1.1 Georgia,serif; }
.detail-summary { background: white; padding: 30px; border: 1px solid var(--line); }
.detail-summary > p:not(.eyebrow) { font-size: 14px; color: var(--muted); }
.breadcrumb { font-size: 12px; color: var(--muted); margin-bottom: 26px; }
.detail-hero { align-items: start; }
.detail-gallery { aspect-ratio: 4/3; }
.property-videos { margin-top: 44px; }
.detail-media .property-videos { margin-top: 24px; }
.bank-page { background: #f3f4f6; }
.bank-shell { max-width: 1380px; }
.bank-space-tabs { display: flex; gap: 8px; max-width: 1380px; margin: 18px auto 0; padding: 0 26px; overflow-x: auto; }
.bank-space-tabs a { display: inline-flex; align-items: center; min-height: 44px; padding: 10px 16px; border: 1px solid #18324a; background: #fff; color: #18324a; font-size: 13px; font-weight: 700; text-decoration: none; white-space: nowrap; }
.bank-space-tabs a:hover,.bank-space-tabs a:focus-visible { background: #edf3f8; }
.bank-space-tabs a[aria-current="page"] { background: linear-gradient(135deg, #18324a, #234b6b); color: #fff; }
.bank-space-tabs a:focus-visible { outline: 2px solid #b08a53; outline-offset: 2px; }
@media(max-width:600px) { .bank-space-tabs { padding: 0 16px; } }
.bank-page .admin-header .brand small { color: #c9d5cb; }
.nav-logout { background: transparent; border: 0; color: #e4ebe4; cursor: pointer; font: inherit; font-size: 14px; }
.bank-notice { background: #e7ede5; color: #36503e; border-left: 3px solid #728b71; padding: 16px 20px; font-size: 13px; }
.bank-properties { display: grid; gap: 28px; margin-top: 28px; }
.bank-property { background: white; border: 1px solid var(--line); padding: 28px; }
.bank-property-heading { display: grid; grid-template-columns: 140px minmax(0,1fr) 180px; gap: 24px; align-items: center; }
.bank-cover { width: 140px; height: 110px; object-fit: cover; border-radius: 4px; }
.bank-property h2 { font: 400 27px/1.2 Georgia,serif; margin: 6px 0; }
.bank-property-heading .availability-status { margin-bottom: 0; }
.bank-lender { display: grid; justify-items: end; gap: 6px; text-align: right; }
.bank-lender img,.bank-logo-preview { width: 140px; height: 54px; object-fit: contain; }
.bank-lender small,.bank-metrics small { color: var(--muted); font-size: 11px; }
.bank-metrics { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 24px; padding-top: 24px; border-top: 1px solid var(--line); margin: 24px 0 0; }
.bank-metrics dt { font-size: 12px; color: var(--muted); }
.bank-metrics dd { font-size: 25px; font-weight: 600; margin: 6px 0; }
.bank-metrics .bank-date { font-size: 20px; }
.bank-metrics small { display: block; overflow-wrap: anywhere; }
.bank-metrics .valuation-stale { color: #89452c; margin-top: 5px; }
.bank-metrics > div:nth-child(2), .bank-metrics > div:nth-child(3) { order: 2; background: #eef8f2; border: 1px solid #c9e6d4; border-radius: 14px; padding: 18px; }
.bank-metrics > div:nth-child(1), .bank-metrics > div:nth-child(4) { order: 1; }
.bank-edit { border-top: 1px solid var(--line); padding-top: 16px; margin-top: 24px; font-size: 13px; }
.bank-checkbox { display: flex; align-items: center; gap: 10px; }
.bank-checkbox input { width: auto; }
.loan-choice { border: 0; margin: 0; padding: 0; display: flex; gap: 24px; }
.loan-choice legend { font-weight: 600; margin-bottom: 10px; }
.loan-choice label { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; }
.loan-choice input { width: auto; margin: 0; accent-color: var(--accent); }
.field-help { color: var(--muted); font-size: 11px; font-weight: 400; }
.field-optional { color: var(--muted); font-size: 11px; font-weight: 400; }
.info-tooltip { position: relative; display: inline-flex; align-items: center; justify-content: center; width: 20px; height: 20px; margin-top: -8px; border: 1px solid var(--accent); border-radius: 50%; color: var(--accent); cursor: help; font: 700 12px Georgia,serif; }
label:has(.info-tooltip) { position: relative; }
label:has(.info-tooltip) > .info-tooltip { position: absolute; right: 8px; top: 35px; margin: 0; }
.tooltip-content { position: absolute; z-index: 5; left: 28px; top: -8px; display: none; width: 285px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 5px; background: #203c32; color: #fff; font: 400 12px/1.45 Arial,sans-serif; box-shadow: 0 8px 20px #20363022; }
.info-tooltip:hover .tooltip-content,.info-tooltip:focus .tooltip-content { display: block; }
.loan-fields { min-width: 0; margin: 0; }
.loan-fields.form-grid { border: 0; padding: 0; }
.loan-fields.form-grid legend { margin-bottom: 12px; }
.loan-fields.form-section > legend { font-size: 19px; font-weight: 600; }
.bank-auth h1 { font: 400 34px Georgia,serif; }
.bank-auth > p:not(.eyebrow) { font-size: 13px; color: var(--muted); }
.financial-details { margin: 32px 0; min-width: 0; }
.finance-navigation { display: flex; flex-wrap: wrap; gap: 12px; }
.site-header .nav-logout { color: var(--ink); }
.primary-residence-choice { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.primary-residence-choice input { width: auto; margin: 0; accent-color: var(--accent); }
.primary-residence-badge { display: inline-block; padding: 5px 9px; background: #e8eef7; color: #294667; font-size: 12px; border-radius: 4px; margin: 6px 0; }
.financial-export-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-bottom: 16px; }
.financial-table-scroll { overflow-x: auto; border: 1px solid var(--line); background: #fff; scrollbar-width: none; }
.financial-table-scroll::-webkit-scrollbar { display: none; }
.financial-table-scrollbar { position: sticky; bottom: 0; z-index: 4; height: 18px; overflow-x: auto; overflow-y: hidden; background: #eef1ed; border: 1px solid var(--line); border-top: 0; scrollbar-color: #687c72 #e1e6e1; }
.financial-table-scrollbar > div { height: 1px; }
.financial-table-scrollbar[hidden] { display: none; }
.financial-table-scroll:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.financial-table { min-width: 2600px; border-collapse: separate; border-spacing: 0; font-size: 13px; }
.financial-table caption { text-align: left; padding: 16px; color: var(--muted); }
.financial-table th, .financial-table td { vertical-align: top; min-width: 160px; }
.financial-table thead th { background: #eaece5; }
.financial-table tbody th { font-size: 13px; text-transform: none; color: var(--ink); }
.financial-table tr > :first-child { position: sticky; left: 0; z-index: 1; min-width: 210px; max-width: 250px; background: #fff; border-right: 1px solid var(--line); }
.financial-table thead tr > :first-child { background: #eaece5; }
.financial-table tbody tr:nth-child(even) > * { background: #f8f9f6; }
.financial-table small { display: block; margin: 5px 0; color: var(--muted); font-size: 12px; font-weight: 400; }
.financial-table .bank-name-with-logo { display: flex; align-items: center; gap: 7px; }
.financial-table .bank-name-with-logo img { width: 28px; height: 20px; object-fit: contain; border-radius: 2px; background: #fff; }
.financial-table .financial-warning { color: #89452c; }
.summary-cards { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 16px; margin: 28px 0; }
.summary-cards > div,.chart-card { background: #fff; border: 1px solid var(--line); padding: 22px; }
.summary-cards > div { border-radius: 15px; min-height: 142px; }
.summary-cards .income-card { background: #eef8f2; border-color: #c9e6d4; }
.summary-cards .credit-card { background: #fceeed; border-color: #efc5c1; }
.summary-cards .debt-card { background: #fceeed; border-color: #efc5c1; }
.summary-cards .wealth-card { background: #eef1f8; border-color: #cad4e9; }
.summary-cards span { display:block; color:var(--muted); font-size:12px; }
.summary-cards strong { display:block; margin-top:10px; font-size:24px; }
.summary-cards > div > small { display:block; color:var(--muted); font-size:12px; margin-top:8px; line-height:1.35; }
.summary-cards strong small { color:var(--muted); font-size:12px; font-weight:400; }
.summary-cards .positive { color:#2e6848; }.summary-cards .negative { color:#a34d36; }
.chart-card { margin: 24px 0; }.chart-heading { display:flex; align-items:end; justify-content:space-between; gap:16px; }.chart-heading h2 { font:400 27px Georgia,serif; margin:8px 0 0; }.chart-heading > span { color:var(--muted); font-size:12px; }.chart-wrap { overflow-x:auto; margin-top:18px; }.finance-chart { display:block; min-width:700px; width:100%; height:auto; }.chart-grid { stroke:#e1e7df; stroke-width:1; }.chart-label { fill:#78847c; font:11px Arial,sans-serif; }.chart-line { fill:none; stroke:#315f4d; stroke-width:4; stroke-linejoin:round; stroke-linecap:round; }.chart-line.cashflow { stroke:#af783d; }.chart-point { fill:#315f4d; }.chart-point.cashflow { fill:#af783d; }
.chart-loan-end { stroke:#b65f3b; stroke-width:1.5; stroke-dasharray:5 4; }.chart-loan-end-point { fill:#fff; stroke:#b65f3b; stroke-width:3; cursor:pointer; }.chart-event-tooltip,.chart-value-tooltip { opacity:0; pointer-events:none; transition:opacity .15s ease; }.chart-event-tooltip.is-visible,.chart-value-tooltip.is-visible { opacity:1; }.chart-event-tooltip rect { fill:#deefde; stroke:#86a986; stroke-width:1; }.chart-event-tooltip text { fill:#24533b; font-size:10px; font-weight:700; }.chart-value-tooltip rect { fill:#f7e4e1; stroke:#c57d73; stroke-width:1; }.chart-value-tooltip text { fill:#843b32; font-size:10px; font-weight:700; }
@media(max-width:900px) { .summary-cards { grid-template-columns: repeat(2,minmax(0,1fr)); } }
@media(max-width:540px) { .summary-cards { grid-template-columns:1fr; }.chart-heading { align-items:flex-start; flex-direction:column; } }
@media(max-width:820px) { .bank-property-heading { grid-template-columns: 90px minmax(0,1fr); gap: 16px; } .bank-cover { width: 90px; height: 90px; } .bank-lender { grid-column: 1/-1; justify-items: start; text-align: left; } .bank-property { padding: 20px; } .bank-metrics { grid-template-columns: repeat(2,minmax(0,1fr)); } .bank-property h2 { font-size: 23px; } }
@media(max-width:540px) { .bank-metrics { grid-template-columns: 1fr; } }
.availability-status { display: inline-flex; align-self: flex-start; align-items: center; gap: 7px; padding: 5px 10px; margin-block: 12px; border-radius: 4px; font-size: 12px; font-weight: 600; line-height: 1.4; }
.availability-status::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: currentColor; flex-shrink: 0; }
.availability-status.is-available { background: #e8f0e8; color: #244c3f; }
.bank-lender.bank-lender-no-loan { align-self: start; justify-items: end; text-align: right; }
.bank-no-loan { white-space: nowrap; }
.availability-status.is-unavailable { background: #f5e9e4; color: #89452c; }
.video-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 24px; margin-top: 24px; }
.video-grid > div { width: 100%; max-width: 420px; min-width: 0; }
.video-grid video { display: block; width: 100%; height: 236px; max-height: 236px; aspect-ratio: 16/9; object-fit: cover; object-position: center; background: #19231e; border-radius: 6px; }
.video-grid a { display: inline-block; margin-top: 8px; font-size: 12px; }
.admin-header { background: linear-gradient(135deg, #18324a, #234b6b); color: white; }
.admin-header .brand-mark { color: #e6d5ad; }
.admin-header nav a { color: #e4ebe4; }
.site-header nav a,
.site-header nav .nav-logout,
.admin-header nav a,
.admin-header nav .nav-logout {
  display: inline-flex;
  align-items: center;
  padding: 0;
  margin: 0;
  border: 0;
  background: transparent;
  font-family: inherit;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.5;
  text-decoration: none;
  cursor: pointer;
}
.site-header nav form,
.admin-header nav form { display: flex; margin: 0; }
.access-menu { position: relative; }
.access-menu summary {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #e4ebe4;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.5;
  list-style: none;
  cursor: pointer;
}
.access-menu summary::-webkit-details-marker { display: none; }
.access-menu summary::after { content: '▾'; }
.access-menu[open] summary::after { content: '▴'; }
.access-submenu {
  position: absolute;
  top: calc(100% + 12px);
  right: 0;
  z-index: 20;
  width: 260px;
  max-width: calc(100vw - 36px);
  padding: 6px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 6px;
  box-shadow: var(--shadow);
}
.admin-header nav .access-submenu a { display: block; padding: 10px 12px; color: var(--ink); }
.admin-header nav .access-submenu a:hover,
.admin-header nav .access-submenu a:focus-visible { background: var(--soft); }
.admin-header nav > a,
.admin-header nav > .access-menu > summary {
  font-weight: 700;
  white-space: nowrap;
}
.admin-header nav > a[aria-current],
.admin-header .access-menu.is-active > summary {
  color: #e6d5ad;
  font-weight: 700;
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 7px;
}
.admin-header nav .access-submenu a[aria-current="page"] {
  background: #e9f0f7;
  color: #18324a;
  font-weight: 700;
  box-shadow: inset 3px 0 #18324a;
}
@media (max-width: 540px) { .access-submenu { left: 0; right: auto; } }
.admin-title h1 { font-size: clamp(28px,3vw,42px); font-weight: 500; letter-spacing: -1px; }
.form-section { box-shadow: none; padding: 30px; }
.form-section h2 { font-size: 19px; font-weight: 600; }
.section-note { margin: -4px 0 4px; color: var(--muted); font-size: 13px; }
.form-section input,.form-section textarea,.form-section select { border-radius: 4px; background: #fdfefc; font-weight: 400; }
.drop-zone { border: 2px dashed #b6c6b8; background: #f5f8f3; padding: 30px; text-align: center; justify-items: center; cursor: pointer; border-radius: 8px; transition: background .2s,border-color .2s; }
.drop-zone.is-dragging,.drop-zone:focus-within { background: #e3eddf; border-color: var(--accent); }
.drop-zone strong { font-size: 17px; color: var(--accent); }
.drop-zone span,.drop-zone small { font-weight: 400; }
.drop-zone input { max-width: 330px; padding: 8px; font-size: 12px; background: white; }
.upload-icon { width: 44px; height: 44px; background: #e4ebdf; border-radius: 50%; font-size: 28px; color: var(--accent); }
[data-upload-status] { font-size: 13px; color: var(--muted); }
[data-upload-status].has-error { color: var(--danger); }
.photo-manager { grid-template-columns: repeat(auto-fill,minmax(170px,1fr)); }
.photo-tile video,.photo-tile img { width: 100%; aspect-ratio: 4/3; object-fit: cover; background: #19231e; }
.photo-tile video { display: block; max-width: 240px; height: 140px; aspect-ratio: auto; object-fit: contain; object-position: center; margin-inline: auto; border-radius: 4px; }
.video-grid video:fullscreen,.photo-tile video:fullscreen { width: 100%; height: 100%; max-width: none; max-height: none; object-fit: contain; }
.photo-tile { border-radius: 6px; min-width: 0; }
.primary-choice { display: flex; align-items: center; gap: 7px; margin-top: 8px; color: var(--accent); font-size: 12px; }
.primary-choice input { width: auto; margin: 0; accent-color: var(--gold); }
.photo-tile .file-name { display: block; overflow-wrap: anywhere; font-size: 12px; margin-top: 8px; }
.photo-tile .remove-file { cursor: pointer; color: var(--danger); border: 0; background: #fff2f0; padding: 6px 12px; margin-top: 8px; }
.form-actions { position: sticky; bottom: 0; padding: 16px; background: #f4f6f4f5; border-top: 1px solid var(--line); z-index: 2; }
[hidden] { display: none !important; }
@media(max-width:1100px) { .property-grid { grid-template-columns: repeat(2,minmax(0,1fr)); } .property-search { grid-template-columns: repeat(2,minmax(0,1fr)); } .property-search button { grid-column: span 2; } nav { gap: 16px; } }
@media(max-width:820px) { .site-header,.admin-header { position: relative; gap: 18px; } nav .nav-access { padding-left: 0; border: 0; } .agency-hero { grid-template-columns: 1fr; } .hero-visual { min-height: 300px; } .hero-copy { padding: 32px; } .hero-copy h1 { letter-spacing: -1px; } .agency-values { grid-template-columns: 1fr; gap: 20px; margin-top: 50px; } .site-footer { flex-direction: column; align-items: flex-start; } .section-heading { align-items: start; flex-direction: column; } .video-grid { grid-template-columns: 1fr; } .detail-summary { padding: 24px; } }
@media(max-width:540px) { .property-grid,.property-search { grid-template-columns: 1fr; } .property-search button { grid-column: auto; } .property-search { padding: 20px; margin-bottom: 40px; } .property-search label { font-size: 11px; } .hero-copy h1 { font-size: 36px; } .form-section { padding: 20px; } .drop-zone { padding: 20px 12px; } .drop-zone input { width: 100%; } }
@media(prefers-reduced-motion:reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }
