:root {
  --navy: #171e5d;
  --blue: #0c53ad;
  --red: #b71116;
  --red-dark: #920d12;
  --ink: #12183c;
  --muted: #6e7892;
  --paper: #f6f8fc;
  --card: #ffffff;
  --line: #e0e6f0;
  --blue-pale: #edf3fb;
  --red-pale: #fdf0f1;
  --shadow: 0 18px 45px rgba(23, 30, 93, 0.1);
  --brand-font: "HK Grotesk Pro", "Manrope", Arial, sans-serif;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--brand-font);
  -webkit-font-smoothing: antialiased;
}

button, input, select { font: inherit; }
button { cursor: pointer; }

.app-shell { min-height: 100vh; }
.section-width { width: min(1180px, calc(100% - 64px)); margin-inline: auto; }

.topbar {
  height: 78px;
  padding: 0 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
  background: var(--navy);
  backdrop-filter: blur(14px);
}

.brand { display: block; color: white; text-decoration: none; }
.brand-logo { width: 142px; height: auto; padding: 7px 10px; display: block; border-radius: 4px; background: white; }
.topbar-actions { display: flex; align-items: center; gap: 14px; }
.topbar-import { height: 34px; padding: 0 13px; color: white; border-color: rgba(255, 255, 255, 0.25); background: transparent; }
.topbar-import:hover { color: var(--navy); border-color: white; background: white; }
.sync-state { color: rgba(255, 255, 255, 0.82); font-size: 11px; font-weight: 600; }
.pulse { width: 7px; height: 7px; display: inline-block; margin-right: 7px; border-radius: 50%; background: #62a7ff; box-shadow: 0 0 0 4px rgba(98, 167, 255, 0.18); }
.owner-link { padding: 10px 15px; border-radius: 99px; color: white; background: var(--red); font-size: 11px; font-weight: 800; text-decoration: none; transition: background 0.18s ease, transform 0.18s ease; }
.owner-link:hover { background: var(--red-dark); transform: translateY(-1px); }
.icon-button { width: 32px; height: 32px; border: 1px solid rgba(255, 255, 255, 0.25); border-radius: 50%; background: transparent; color: white; font-weight: 600; }
.icon-button:hover { color: var(--navy); border-color: white; background: white; }

.hero.section-width { width: 100%; max-width: none; margin: 0; padding-left: max(32px, calc((100% - 1180px) / 2)); padding-right: max(32px, calc((100% - 1180px) / 2)); }
.hero { min-height: 410px; padding-top: 68px; padding-bottom: 76px; display: grid; grid-template-columns: 1.05fr 0.95fr; align-items: center; gap: 62px; color: white; background: var(--navy); overflow: hidden; }
.hero-copy { max-width: 650px; }
.eyebrow { margin: 0 0 14px; color: var(--blue); font-size: 10px; font-weight: 700; letter-spacing: 0.17em; text-transform: uppercase; }
h1, h2, h3, p { margin-top: 0; }
h1 { margin-bottom: 20px; font-family: var(--brand-font); font-size: clamp(46px, 6vw, 76px); line-height: 0.98; letter-spacing: -0.065em; font-weight: 800; }
h1 em { color: #6ca9ff; font-style: normal; }
.hero .eyebrow { color: #ff8b8f; }
.hero-text { max-width: 520px; margin-bottom: 0; color: rgba(255, 255, 255, 0.78); font-size: 16px; line-height: 1.65; }
.hero-actions { margin-top: 30px; display: flex; align-items: center; flex-wrap: wrap; gap: 18px; }
.hero-button { min-height: 48px; padding: 0 20px; display: inline-flex; align-items: center; gap: 14px; border-radius: 99px; color: white; background: var(--blue); font-size: 12px; font-weight: 800; text-decoration: none; transition: transform 0.18s ease, background 0.18s ease; }
.hero-button:hover { background: #1768cb; transform: translateY(-1px); }
.hero-button span { font-size: 18px; line-height: 0; }
.hero-owner-link { display: grid; gap: 2px; color: rgba(255, 255, 255, 0.72); font-size: 10px; text-decoration: none; }
.hero-owner-link strong { color: white; font-size: 11px; }
.hero-owner-link:hover strong { color: #ff8b8f; }
.hero-visual { min-height: 286px; padding: 32px; position: relative; overflow: hidden; border: 1px solid rgba(255, 255, 255, 0.16); border-radius: 24px; background: linear-gradient(135deg, #0e45a0 0%, var(--blue) 58%, #2272d0 100%); box-shadow: 0 24px 60px rgba(0, 0, 0, 0.18); }
.hero-visual::before { content: ""; position: absolute; inset: 18px; border: 1px solid rgba(255, 255, 255, 0.18); border-radius: 17px; }
.hero-visual-glow { width: 220px; height: 220px; position: absolute; right: -56px; top: -74px; border-radius: 50%; background: rgba(183, 17, 22, 0.75); }
.hero-visual-brand { width: 184px; height: auto; position: relative; display: block; padding: 10px 13px; border-radius: 4px; background: white; }
.hero-stat { position: absolute; display: grid; gap: 5px; }
.hero-stat strong { color: white; font-size: 61px; line-height: 0.9; letter-spacing: -0.08em; }
.hero-stat span { max-width: 145px; color: rgba(255, 255, 255, 0.75); font-size: 10px; line-height: 1.35; }
.hero-stat-main { left: 34px; bottom: 58px; }
.hero-stat-side { right: 29px; bottom: 61px; text-align: right; }
.hero-stat-side strong { color: #ff9b9f; font-size: 38px; }
.hero-stat-side span { margin-left: auto; }
.hero-visual-line { width: calc(100% - 68px); height: 1px; position: absolute; left: 34px; bottom: 42px; background: rgba(255, 255, 255, 0.26); }
.hero-visual-caption { position: absolute; left: 34px; bottom: 20px; color: rgba(255, 255, 255, 0.7); font-size: 9px; letter-spacing: 0.11em; text-transform: uppercase; }

.search-panel { position: relative; z-index: 2; margin-top: -32px; padding: 28px; border: 1px solid var(--line); border-radius: 18px; background: var(--card); box-shadow: var(--shadow); }
.search-heading { display: flex; justify-content: space-between; align-items: flex-start; }
h2 { margin-bottom: 0; font-family: var(--brand-font); font-size: 27px; letter-spacing: -0.045em; font-weight: 800; }
.text-button { border: 0; padding: 4px 0; background: none; color: var(--muted); font-size: 12px; text-decoration: underline; text-underline-offset: 3px; }
.search-form { margin-top: 24px; display: grid; grid-template-columns: 1fr 1fr 1.15fr 1.65fr auto; gap: 11px; align-items: end; }
.field { display: block; }
.field > span { display: block; margin: 0 0 8px 2px; color: var(--muted); font-size: 10px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; }
.field input, .field select { width: 100%; height: 46px; padding: 0 13px; border: 1px solid var(--line); border-radius: 9px; outline: none; color: var(--ink); background: #fbfcfa; font-size: 13px; }
.field input:focus, .field select:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(12, 83, 173, 0.13); }
.primary-button, .secondary-button { height: 46px; padding: 0 17px; border-radius: 9px; border: 0; font-weight: 700; font-size: 12px; transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease; }
.primary-button { display: inline-flex; align-items: center; justify-content: center; gap: 17px; color: white; background: var(--red); box-shadow: 0 8px 18px rgba(183, 17, 22, 0.2); white-space: nowrap; }
.primary-button:hover { transform: translateY(-1px); background: var(--red-dark); box-shadow: 0 11px 20px rgba(183, 17, 22, 0.26); }
.arrow { font-size: 19px; line-height: 0; font-weight: 400; }
.form-message { min-height: 18px; margin: 13px 2px 0; color: var(--blue); font-size: 12px; }
.form-message.error { color: var(--red); }

.dashboard-section { padding: 46px 0 52px; }
.metric-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 12px; }
.metric-card { min-height: 128px; padding: 20px 22px; display: flex; flex-direction: column; justify-content: space-between; border: 1px solid var(--line); border-radius: 14px; background: white; }
.metric-primary { border-color: #c9d9f0; background: var(--blue-pale); }
.metric-label, .metric-foot { color: var(--muted); font-size: 11px; }
.metric-card strong { color: var(--ink); font-size: 30px; line-height: 1; }
.metric-primary strong { color: var(--blue); }
.source-value { font-size: 23px !important; }
.warning-dot { width: 6px; height: 6px; display: inline-block; margin: 0 5px 1px 0; border-radius: 50%; background: var(--red); }
.success-dot { width: 6px; height: 6px; display: inline-block; margin: 0 5px 1px 0; border-radius: 50%; background: var(--blue); }
.results-toolbar { padding: 52px 0 22px; display: flex; justify-content: space-between; align-items: flex-end; }
.results-toolbar .eyebrow { margin-bottom: 10px; }
.toolbar-actions { display: flex; align-items: center; gap: 18px; }
.result-count { color: var(--muted); font-size: 12px; }
.secondary-button { display: flex; align-items: center; gap: 11px; color: var(--ink); border: 1px solid var(--line); background: white; }
.secondary-button:hover { border-color: var(--blue); background: var(--blue-pale); }
.secondary-button span { color: var(--blue); font-size: 17px; }

.property-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.property-card { min-height: 220px; padding: 20px; position: relative; overflow: hidden; display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: 14px; background: white; transition: transform 0.2s ease, box-shadow 0.2s ease; }
.property-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.property-image-wrap { height: 150px; margin: -20px -20px 18px; overflow: hidden; background: var(--blue-pale); }
.property-image { width: 100%; height: 100%; display: block; object-fit: cover; }
.property-image-empty { display: grid; place-items: center; color: var(--muted); font-size: 11px; }
.card-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.property-index { color: #b6bfba; font-size: 11px; font-weight: 700; letter-spacing: 0.08em; }
.status-tag { padding: 5px 8px; border-radius: 99px; color: var(--red); background: var(--red-pale); font-size: 9px; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; white-space: nowrap; }
.status-tag.available { color: var(--blue); background: var(--blue-pale); }
.property-name { max-width: 290px; margin: 14px 0 11px; font-family: var(--brand-font); font-size: 18px; line-height: 1.15; letter-spacing: -0.035em; font-weight: 800; }
.property-zone { display: inline-flex; align-items: center; gap: 5px; color: var(--muted); font-size: 11px; }
.property-zone::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--blue); }
.property-room { margin-top: 6px; color: var(--ink); font-size: 11px; font-weight: 700; }
.property-footer { margin-top: auto; padding-top: 18px; display: flex; align-items: flex-end; justify-content: space-between; border-top: 1px solid #eef1ee; }
.rating { color: #6b746f; font-size: 11px; }
.rating strong { color: var(--ink); }
.airbnb-link { color: var(--blue); font-size: 11px; font-weight: 800; text-decoration: none; }
.airbnb-link:hover { text-decoration: underline; text-underline-offset: 3px; }
.property-id { display: block; margin-top: 3px; color: #a4ada8; font-size: 9px; }
.empty-state { padding: 60px 20px; text-align: center; border: 1px dashed #cad5cd; border-radius: 14px; color: var(--muted); }
.empty-state > span { font-size: 28px; color: var(--blue); }
.empty-state h3 { margin: 12px 0 7px; font-family: var(--brand-font); color: var(--ink); font-size: 21px; font-weight: 800; }
.empty-state p { margin: 0; font-size: 13px; }
.sync-empty-state { border-style: solid; background: var(--blue-pale); }
.sync-empty-state .primary-button { margin-top: 20px; }

.owner-cta { margin-bottom: 58px; padding: 34px 38px; display: flex; align-items: center; justify-content: space-between; gap: 28px; border-radius: 20px; color: white; background: var(--navy); overflow: hidden; }
.owner-cta-copy { max-width: 620px; }
.owner-cta .eyebrow { color: #ff8b8f; }
.owner-cta h2 { margin-bottom: 10px; color: white; }
.owner-cta p { margin: 0; color: rgba(255, 255, 255, 0.7); font-size: 13px; line-height: 1.6; }
.owner-cta-button { min-height: 48px; padding: 0 18px; display: inline-flex; align-items: center; gap: 18px; flex: 0 0 auto; border-radius: 99px; color: white; background: var(--red); font-size: 12px; font-weight: 800; text-decoration: none; }
.owner-cta-button:hover { background: var(--red-dark); }
.owner-cta-button span { font-size: 17px; }
.footer.section-width { width: 100%; max-width: none; padding: 20px max(32px, calc((100% - 1180px) / 2)) 30px; display: flex; justify-content: space-between; border-top: 1px solid rgba(255, 255, 255, 0.12); color: rgba(255, 255, 255, 0.62); background: var(--navy); font-size: 10px; }
.help-dialog { width: min(510px, calc(100% - 32px)); padding: 0; border: 0; border-radius: 18px; color: var(--ink); box-shadow: 0 25px 80px rgba(23, 30, 93, 0.25); }
.help-dialog::backdrop { background: rgba(23, 30, 93, 0.48); backdrop-filter: blur(3px); }
.dialog-header { padding: 26px 26px 22px; display: flex; justify-content: space-between; border-bottom: 1px solid var(--line); }
.dialog-header h2 { font-size: 24px; }
.dialog-body { padding: 22px 26px 10px; }
.note-row { display: flex; gap: 13px; margin-bottom: 22px; }
.note-row > span { width: 24px; height: 24px; flex: 0 0 auto; display: grid; place-items: center; border-radius: 50%; font-size: 12px; font-weight: 700; }
.note-row.done > span { color: var(--blue); background: var(--blue-pale); }
.note-row.pending > span { color: var(--red); background: var(--red-pale); }
.note-row strong { display: block; margin: 2px 0 5px; font-size: 13px; }
.note-row p { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.5; }
.full-button { width: calc(100% - 52px); margin: 2px 26px 26px; }

@media (max-width: 940px) {
  .search-form { grid-template-columns: repeat(2, 1fr); }
  .field-search { grid-column: span 2; }
  .primary-button { grid-column: span 2; }
  .property-grid { grid-template-columns: repeat(2, 1fr); }
  .hero { grid-template-columns: 1fr; gap: 35px; }
  .hero-visual { max-width: 620px; width: 100%; }
  .owner-cta { align-items: flex-start; flex-direction: column; }
}

@media (max-width: 640px) {
  .section-width { width: min(100% - 32px, 540px); }
  .topbar { height: 70px; padding: 0 16px; }
  .brand-logo { width: 122px; padding: 6px 8px; }
  .sync-state { display: none; }
  .owner-link { padding: 9px 11px; font-size: 10px; }
  .topbar-import { display: none; }
  .hero.section-width { padding-left: 22px; padding-right: 22px; }
  .hero { padding-top: 50px; padding-bottom: 60px; gap: 30px; }
  h1 { font-size: 49px; }
  .hero-text { font-size: 14px; }
  .hero-actions { align-items: flex-start; flex-direction: column; }
  .hero-visual { min-height: 270px; padding: 28px; }
  .hero-stat strong { font-size: 50px; }
  .hero-stat-side strong { font-size: 32px; }
  .hero-stat-main { left: 29px; }
  .hero-stat-side { right: 24px; }
  .hero-visual-line { left: 29px; width: calc(100% - 58px); }
  .hero-visual-caption { left: 29px; }
  .search-panel { padding: 20px 16px; }
  .search-form { grid-template-columns: 1fr; }
  .field-search, .primary-button { grid-column: auto; }
  .metric-grid { grid-template-columns: 1fr; }
  .metric-card { min-height: 110px; }
  .results-toolbar { align-items: flex-start; flex-direction: column; gap: 17px; }
  .toolbar-actions { width: 100%; justify-content: space-between; }
  .property-grid { grid-template-columns: 1fr; }
  .owner-cta { margin-bottom: 36px; padding: 28px 22px; }
  .owner-cta-button { width: 100%; justify-content: center; }
  .footer.section-width { align-items: flex-start; flex-direction: column; gap: 8px; padding-left: 16px; padding-right: 16px; }
}
