:root {
  --blue-950: #061b46;
  --blue-900: #08245c;
  --blue-800: #093b9f;
  --blue-700: #0759e6;
  --blue-600: #1474ff;
  --blue-500: #2c88ff;
  --blue-100: #e7f1ff;
  --blue-50: #f2f7ff;
  --ink: #111c31;
  --muted: #69758d;
  --line: #dfe7f2;
  --surface: #ffffff;
  --background: #f7f9fc;
  --green: #12a66a;
  --orange: #ed8b25;
  --red: #db4b50;
  --radius-sm: 10px;
  --radius: 18px;
  --radius-lg: 26px;
  --shadow-sm: 0 6px 20px rgba(22, 48, 92, .08);
  --shadow: 0 24px 70px rgba(4, 30, 78, .2);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--background); font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; line-height: 1.5; -webkit-font-smoothing: antialiased; }
button, input, select { font: inherit; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; }
svg { display: block; }
.wrap { width: min(1180px, calc(100% - 40px)); margin-inline: auto; }

.site-header { height: 72px; position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.94); border-bottom: 1px solid rgba(221,231,244,.9); backdrop-filter: blur(14px); }
.header-inner { height: 100%; display: flex; align-items: center; justify-content: space-between; }
.logo { display: inline-flex; align-items: center; gap: 10px; color: var(--blue-950); font-size: 23px; font-weight: 900; letter-spacing: -.8px; }
.logo-mark { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 10px; color: white; background: linear-gradient(145deg, var(--blue-600), var(--blue-800)); box-shadow: 0 8px 16px rgba(7,89,230,.22); }
.logo-mark svg { width: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linejoin: round; }
.logo-ai { color: var(--blue-600); }
.main-nav { display: flex; align-items: center; gap: 32px; color: #45516a; font-size: 14px; font-weight: 650; }
.main-nav a { transition: color .2s; }
.main-nav a:hover { color: var(--blue-700); }
.nav-pill { display: inline-flex; align-items: center; gap: 8px; padding: 8px 13px; border-radius: 999px; color: var(--blue-800) !important; background: var(--blue-100); }
.live-dot, .status-dot { width: 7px; height: 7px; flex: 0 0 auto; display: inline-block; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 3px rgba(18,166,106,.13); }

.flash-stack { position: fixed; top: 86px; left: 50%; transform: translateX(-50%); z-index: 60; }
.flash { margin-left: auto; max-width: 620px; padding: 13px 17px; border: 1px solid #ffc8cb; border-radius: 12px; color: #96272c; background: #fff2f3; box-shadow: var(--shadow-sm); }

.hero { position: relative; min-height: 660px; display: flex; overflow: hidden; color: white; background: radial-gradient(circle at 10% 5%, #1678fb 0, transparent 35%), linear-gradient(120deg, #061f57 0%, #073e9f 48%, #0769f1 100%); }
.hero::before { content: ""; position: absolute; inset: 0; opacity: .14; background-image: linear-gradient(rgba(255,255,255,.18) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.18) 1px, transparent 1px); background-size: 52px 52px; mask-image: linear-gradient(to right, black, transparent 72%); }
.hero-orb { position: absolute; border-radius: 50%; filter: blur(2px); border: 1px solid rgba(255,255,255,.18); }
.hero-orb-one { width: 420px; height: 420px; right: -180px; top: -190px; background: rgba(94,171,255,.16); }
.hero-orb-two { width: 220px; height: 220px; left: 40%; bottom: -150px; background: rgba(69,145,255,.2); }
.hero-layout { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, .9fr) minmax(510px, 1.1fr); gap: 72px; align-items: center; padding-block: 64px 72px; }
.hero-copy { padding-top: 4px; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; padding: 7px 12px; margin-bottom: 22px; border: 1px solid rgba(255,255,255,.2); border-radius: 999px; color: #dcecff; background: rgba(255,255,255,.09); font-size: 12px; font-weight: 750; letter-spacing: .04em; }
.spark { color: #75bdff; }
.hero h1 { margin: 0; font-size: clamp(48px, 5.1vw, 72px); line-height: .98; letter-spacing: -.055em; font-weight: 840; }
.hero h1 span { color: #77bdff; }
.hero-copy > p { max-width: 560px; margin: 26px 0 30px; color: #cfdef6; font-size: 17px; line-height: 1.75; }
.hero-proof { display: flex; align-items: center; gap: 13px; }
.avatar-stack { display: flex; }
.avatar-stack span { width: 34px; height: 34px; display: grid; place-items: center; margin-left: -7px; border: 2px solid #0d4aa8; border-radius: 50%; color: var(--blue-900); background: white; font-size: 10px; font-weight: 900; }
.avatar-stack span:first-child { margin-left: 0; background: #ffe660; }
.avatar-stack span:nth-child(2) { background: #ff7d66; }
.avatar-stack span:nth-child(3) { background: #7dd1ff; }
.avatar-stack span:last-child { color: white; background: var(--blue-600); }
.hero-proof strong, .hero-proof small { display: block; }
.hero-proof strong { font-size: 13px; }
.hero-proof small { color: #a9c3eb; font-size: 12px; }

.search-card { padding: 28px; border: 1px solid rgba(255,255,255,.7); border-radius: var(--radius-lg); color: var(--ink); background: rgba(255,255,255,.98); box-shadow: var(--shadow); }
.search-card-head { display: flex; align-items: center; gap: 13px; margin-bottom: 20px; }
.ai-icon { width: 43px; height: 43px; display: grid; place-items: center; flex: 0 0 auto; border-radius: 13px; color: white; background: linear-gradient(145deg, var(--blue-600), #3c62dc); }
.ai-icon svg { width: 24px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linejoin: round; }
.step-label, .section-kicker { color: var(--blue-700); font-size: 10px; font-weight: 850; letter-spacing: .13em; }
.search-card-head h2 { margin: 2px 0 0; font-size: 20px; letter-spacing: -.02em; }
.dropzone { min-height: 126px; position: relative; display: grid; grid-template-columns: auto 1fr auto; gap: 14px; align-items: center; padding: 20px; overflow: hidden; border: 1.5px dashed #9bbce9; border-radius: 15px; cursor: pointer; background: #f6faff; transition: .2s ease; }
.dropzone:hover, .dropzone.dragover { border-color: var(--blue-600); background: #edf6ff; transform: translateY(-1px); }
.dropzone input { position: absolute; opacity: 0; pointer-events: none; }
.upload-icon { width: 48px; height: 48px; display: grid; place-items: center; border-radius: 13px; color: var(--blue-700); background: #e5f0ff; }
.upload-icon svg { width: 25px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.dropzone-text strong, .dropzone-text small { display: block; }
.dropzone-text strong { font-size: 14px; }
.dropzone-text small { margin-top: 3px; color: var(--muted); font-size: 11px; }
.upload-button { padding: 8px 12px; border: 1px solid #bbcee9; border-radius: 9px; color: var(--blue-800); background: white; font-size: 12px; font-weight: 750; }
#upload-preview { display: none; position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .13; }
.dropzone.has-file #upload-preview { display: block; }
.dropzone.has-file { border-style: solid; border-color: var(--blue-500); background: #eaf4ff; }
.dropzone.has-file > *:not(input):not(#upload-preview) { position: relative; z-index: 1; }
.or-divider { display: flex; align-items: center; gap: 12px; margin: 17px 0; color: #8c97a9; font-size: 10px; text-transform: uppercase; letter-spacing: .08em; }
.or-divider::before, .or-divider::after { content: ""; height: 1px; flex: 1; background: var(--line); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 11px; }
.field { position: relative; }
.field-wide { grid-column: 1 / -1; }
.field > span:first-child { display: block; margin: 0 0 5px 2px; color: #5e687c; font-size: 10px; font-weight: 750; text-transform: uppercase; letter-spacing: .06em; }
.field input, .field select, .catalogue-filters select { width: 100%; height: 43px; padding: 0 12px; border: 1px solid #d8e1ee; border-radius: 10px; outline: none; color: var(--ink); background: white; font-size: 13px; transition: .2s; }
.field input:focus, .field select:focus, .catalogue-filters select:focus { border-color: var(--blue-500); box-shadow: 0 0 0 3px rgba(20,116,255,.1); }
.field .input-icon { position: absolute; left: 12px; bottom: 12px; color: #8794aa; }
.input-icon svg { width: 18px; fill: none; stroke: currentColor; stroke-width: 1.7; }
.field .input-icon + input { padding-left: 38px; }
.primary-button, .secondary-button { min-height: 44px; display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 0 18px; border: 0; border-radius: 11px; cursor: pointer; font-size: 13px; font-weight: 800; transition: transform .18s, box-shadow .18s, background .18s; }
.primary-button { color: white; background: linear-gradient(100deg, var(--blue-700), var(--blue-500)); box-shadow: 0 10px 24px rgba(7,89,230,.22); }
.primary-button:hover { transform: translateY(-1px); box-shadow: 0 14px 28px rgba(7,89,230,.3); }
.primary-button svg { width: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.primary-button > span:last-child { margin-left: auto; }
.search-card > .primary-button { width: 100%; margin-top: 16px; }
.secondary-button { color: var(--blue-800); border: 1px solid #cbd9ec; background: white; }
.secondary-button:hover { background: var(--blue-50); }
.privacy-note { display: flex; align-items: center; justify-content: center; gap: 6px; margin: 12px 0 0; color: #79859a; font-size: 10px; }
.privacy-note svg { width: 13px; fill: none; stroke: currentColor; stroke-width: 1.4; }

.source-bar { min-height: 76px; display: flex; align-items: center; border-bottom: 1px solid var(--line); background: white; }
.source-bar-inner { display: flex; align-items: center; gap: 26px; }
.source-intro { color: var(--muted); font-size: 12px; }
.portal-logo { display: inline-flex; align-items: center; gap: 8px; color: #354159; font-size: 13px; font-weight: 850; }
.status-unavailable { background: var(--orange); box-shadow: 0 0 0 3px rgba(237,139,37,.12); }
.status-demo { background: #91a0b6; box-shadow: 0 0 0 3px rgba(145,160,182,.12); }
.source-note { margin-left: auto; display: inline-flex; align-items: center; gap: 7px; color: #8792a5; font-size: 10px; }
.source-note svg { width: 14px; fill: none; stroke: currentColor; stroke-width: 1.4; }

.data-notice { display: flex; align-items: center; gap: 13px; margin-top: 28px; padding: 14px 17px; border: 1px solid #c9dcfa; border-radius: 13px; color: #3d526f; background: #eff6ff; font-size: 12px; }
.notice-icon { width: 25px; height: 25px; display: grid; place-items: center; flex: 0 0 auto; border-radius: 50%; color: white; background: var(--blue-600); font-weight: 850; }
.data-notice strong, .data-notice span { display: block; }
.data-notice span { margin-top: 2px; color: #65728a; }
.data-notice code { padding: 2px 5px; border-radius: 4px; background: #dceaff; }

.catalogue { padding: 76px 0 90px; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 28px; }
.section-heading h2 { margin: 5px 0 2px; font-size: clamp(27px, 3vw, 38px); line-height: 1.15; letter-spacing: -.035em; }
.section-heading p { margin: 7px 0 0; color: var(--muted); font-size: 13px; }
.catalogue-filters { display: flex; gap: 8px; }
.catalogue-filters select { width: auto; min-width: 130px; }
.property-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.property-card { min-width: 0; overflow: hidden; border: 1px solid #e1e8f2; border-radius: var(--radius); background: white; box-shadow: 0 5px 18px rgba(15,42,86,.055); transition: transform .22s ease, box-shadow .22s ease, border-color .22s; }
.property-card:hover { transform: translateY(-5px); border-color: #bfd4f3; box-shadow: 0 18px 38px rgba(12,52,119,.13); }
.card-photo { position: relative; aspect-ratio: 1.52; overflow: hidden; background: #dfe8f3; }
.card-photo img { width: 100%; height: 100%; display: block; object-fit: cover; transition: transform .45s ease; }
.property-card:hover .card-photo img { transform: scale(1.035); }
.source-chip { position: absolute; left: 12px; top: 12px; padding: 5px 9px; border: 1px solid rgba(255,255,255,.45); border-radius: 7px; color: white; background: rgba(7,29,66,.78); backdrop-filter: blur(8px); font-size: 10px; font-weight: 850; }
.source-city24 { background: rgba(226,69,55,.9); }
.source-kv { background: rgba(10,93,198,.9); }
.source-kinnisvara24 { background: rgba(23,134,91,.9); }
.source-kodu { background: rgba(90,69,190,.9); }
.match-pill { position: absolute; right: 12px; top: 12px; display: inline-flex; align-items: center; gap: 5px; padding: 6px 9px; border-radius: 999px; color: white; background: rgba(7,89,230,.92); box-shadow: 0 5px 15px rgba(4,34,84,.18); font-size: 10px; font-weight: 850; }
.match-pill svg { width: 11px; fill: none; stroke: currentColor; stroke-width: 1.5; }
.card-content { padding: 17px 18px 18px; }
.card-meta { display: flex; align-items: center; gap: 7px; color: var(--blue-700); font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; }
.meta-dot { width: 3px; height: 3px; border-radius: 50%; background: #a5b2c5; }
.card-content h3 { min-height: 43px; margin: 7px 0 6px; overflow: hidden; font-size: 16px; line-height: 1.32; letter-spacing: -.012em; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.card-location, .detail-location { display: flex; align-items: center; gap: 5px; margin: 0; color: var(--muted); font-size: 11px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.card-location svg, .detail-location svg { width: 13px; flex: 0 0 auto; fill: none; stroke: currentColor; stroke-width: 1.4; }
.card-bottom { display: flex; align-items: end; justify-content: space-between; gap: 10px; margin-top: 15px; padding-top: 14px; border-top: 1px solid #edf1f6; }
.card-bottom strong { color: var(--blue-900); font-size: 17px; letter-spacing: -.02em; }
.card-bottom span { color: var(--muted); font-size: 10px; }
.empty-state { grid-column: 1 / -1; padding: 75px 24px; border: 1px dashed #becce0; border-radius: var(--radius); text-align: center; background: white; }
.empty-state > span { display: block; color: var(--blue-600); font-size: 42px; }
.empty-state h3 { margin: 6px 0; }
.empty-state p { margin: 0 0 18px; color: var(--muted); }
.empty-state a { color: var(--blue-700); font-weight: 800; }

.how-it-works { padding: 80px 0 94px; border-top: 1px solid var(--line); background: white; }
.centered { justify-content: center; text-align: center; }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 40px; }
.step { position: relative; padding: 28px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--blue-50); }
.step-number { position: absolute; right: 22px; top: 18px; color: #c4d7f4; font-size: 30px; font-weight: 900; }
.step-icon { width: 46px; height: 46px; display: grid; place-items: center; border-radius: 13px; color: var(--blue-700); background: #dfeeff; font-size: 22px; }
.step h3 { margin: 18px 0 7px; font-size: 16px; }
.step p { margin: 0; color: var(--muted); font-size: 13px; }

.results-hero { padding: 42px 0; color: white; background: linear-gradient(115deg, var(--blue-950), var(--blue-700)); }
.results-summary { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 25px; }
.query-image { width: 118px; height: 104px; position: relative; overflow: hidden; border: 3px solid rgba(255,255,255,.55); border-radius: 16px; background: rgba(255,255,255,.12); }
.query-image img { width: 100%; height: 100%; object-fit: cover; }
.query-image span { position: absolute; inset: auto 7px 7px; padding: 3px 6px; border-radius: 5px; color: white; background: rgba(4,24,59,.75); font-size: 8px; text-align: center; }
.query-icon { display: grid; place-items: center; }
.query-icon svg { width: 44px; fill: none; stroke: white; stroke-width: 1.5; }
.results-copy .section-kicker { color: #91c7ff; }
.results-copy h1 { margin: 3px 0 4px; font-size: 32px; letter-spacing: -.035em; }
.results-copy p { margin: 0; color: #cbdcf5; font-size: 12px; }
.active-filters { display: flex; gap: 7px; margin-top: 10px; }
.active-filters span { padding: 4px 8px; border-radius: 99px; color: #d9eaff; background: rgba(255,255,255,.1); font-size: 9px; }
.results-catalogue { min-height: 460px; }
.results-toolbar { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.results-toolbar strong { font-size: 20px; }
.results-toolbar span { color: var(--muted); font-size: 12px; }

.listing-page { padding: 30px 0 80px; }
.breadcrumbs { display: flex; gap: 8px; margin-bottom: 22px; color: var(--muted); font-size: 11px; }
.breadcrumbs a:hover { color: var(--blue-700); }
.listing-layout { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(390px, .9fr); gap: 38px; align-items: start; }
.listing-visual { position: relative; overflow: hidden; border-radius: var(--radius-lg); background: #e4ebf5; box-shadow: var(--shadow-sm); }
.listing-visual > img { width: 100%; min-height: 440px; display: block; object-fit: cover; }
.demo-ribbon { position: absolute; right: 16px; top: 16px; padding: 6px 10px; border-radius: 8px; color: #5c4100; background: #ffe58b; font-size: 10px; font-weight: 850; }
.listing-panel { padding: 12px 0; }
.listing-panel h1 { margin: 9px 0 8px; font-size: clamp(30px, 4vw, 45px); line-height: 1.05; letter-spacing: -.045em; }
.detail-location { font-size: 13px; }
.detail-price { margin: 24px 0 21px; color: var(--blue-800); font-size: 31px; font-weight: 900; letter-spacing: -.035em; }
.spec-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.spec-grid > div { padding: 13px 14px; border: 1px solid var(--line); border-radius: 11px; background: white; }
.spec-grid span, .spec-grid strong { display: block; }
.spec-grid span { color: var(--muted); font-size: 9px; text-transform: uppercase; letter-spacing: .07em; }
.spec-grid strong { margin-top: 2px; font-size: 14px; }
.description { margin-top: 24px; }
.description h2 { margin: 0 0 8px; font-size: 16px; }
.description p { margin: 0; color: #566279; font-size: 13px; line-height: 1.75; }
.demo-warning { margin-top: 18px; padding: 11px 13px; border: 1px solid #f1d48e; border-radius: 10px; color: #765517; background: #fff9e8; font-size: 11px; }
.detail-actions { display: flex; gap: 10px; margin-top: 26px; }
.detail-actions .primary-button { min-width: 210px; }
.related-section { padding: 70px 0 90px; border-top: 1px solid var(--line); background: white; }
.not-found { min-height: 65vh; display: grid; place-items: center; text-align: center; }
.not-found > div > span { color: #cfe0f7; font-size: 100px; line-height: 1; font-weight: 900; }
.not-found h1 { margin: 10px 0; font-size: 32px; }
.not-found p { margin: 0 0 24px; color: var(--muted); }

.site-footer { padding: 55px 0 20px; color: #c2d0e8; background: #071a3c; }
.footer-grid { display: grid; grid-template-columns: 1.3fr .8fr .8fr; gap: 60px; }
.footer-logo { color: white; }
.footer-grid p { max-width: 370px; color: #8497b8; font-size: 12px; }
.footer-links { display: flex; flex-direction: column; gap: 7px; color: #8799b8; font-size: 11px; }
.footer-links strong { margin-bottom: 5px; color: white; font-size: 12px; }
.footer-bottom { display: flex; justify-content: space-between; margin-top: 38px; padding-top: 18px; border-top: 1px solid rgba(255,255,255,.09); color: #7185a8; font-size: 10px; }

@media (max-width: 980px) {
  .hero-layout { grid-template-columns: 1fr; gap: 40px; }
  .hero-copy { text-align: center; }
  .hero-copy > p { margin-inline: auto; }
  .hero-proof { justify-content: center; }
  .search-card { width: min(620px, 100%); margin-inline: auto; }
  .property-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .listing-layout { grid-template-columns: 1fr; }
  .listing-panel { max-width: 680px; }
  .source-note { display: none; }
}

@media (max-width: 700px) {
  .wrap { width: min(100% - 28px, 1180px); }
  .site-header { height: 64px; }
  .main-nav > a:not(.nav-pill) { display: none; }
  .hero-layout { padding-block: 52px; }
  .hero h1 { font-size: 44px; }
  .hero-copy > p { font-size: 15px; }
  .search-card { padding: 20px; border-radius: 20px; }
  .dropzone { grid-template-columns: auto 1fr; }
  .upload-button { display: none; }
  .source-bar-inner { padding-block: 18px; flex-wrap: wrap; gap: 13px 19px; }
  .source-intro { width: 100%; }
  .data-notice { align-items: flex-start; }
  .catalogue { padding-block: 54px 65px; }
  .section-heading { align-items: stretch; flex-direction: column; }
  .catalogue-filters { overflow-x: auto; padding-bottom: 3px; }
  .property-grid { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .results-summary { grid-template-columns: auto 1fr; }
  .results-summary > .secondary-button { grid-column: 1 / -1; }
  .listing-visual > img { min-height: 280px; }
  .footer-grid { grid-template-columns: 1fr; gap: 30px; }
  .footer-bottom { gap: 15px; flex-direction: column; }
}

@media (max-width: 430px) {
  .hero h1 { font-size: 38px; }
  .form-grid { grid-template-columns: 1fr; }
  .field-wide { grid-column: auto; }
  .query-image { width: 82px; height: 82px; }
  .results-copy h1 { font-size: 25px; }
  .detail-actions { flex-direction: column; }
  .detail-actions .primary-button { min-width: 0; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}
