/* =========================================================================
   Sunline Homes — main stylesheet
   ========================================================================= */
:root {
  --primary: #138ca8;
  --primary-600: #0f7a93;
  --primary-700: #0b6378;
  --primary-50: #e8f5f9;
  --primary-100: #d3edf4;
  --navy: #0f2a47;
  --ink: #1d3557;
  --text: #33475b;
  --muted: #6b7c8f;
  --line: #e3ebf0;
  --bg: #ffffff;
  --bg-soft: #f4f9fb;
  --sun: #f5a81c;
  --green: #22a06b;
  --amber: #e08a00;
  --red: #d64545;
  --radius: 14px;
  --radius-sm: 10px;
  --shadow: 0 10px 30px rgba(15, 42, 71, .08);
  --shadow-lg: 0 20px 50px rgba(15, 42, 71, .16);
  --font: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
  --script: 'Caveat', 'Segoe Script', cursive;
  --container: 1240px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font); color: var(--text); background: var(--bg); font-size: 15px; line-height: 1.55; }
img { max-width: 100%; display: block; }
a { color: var(--primary); text-decoration: none; }
a:hover { color: var(--primary-700); }
h1, h2, h3, h4 { color: var(--navy); line-height: 1.2; margin: 0 0 .5em; font-weight: 700; letter-spacing: -.01em; }
h1 { font-size: 2rem; } h2 { font-size: 1.6rem; } h3 { font-size: 1.12rem; }
p { margin: 0 0 1em; }
small, .small { font-size: .85em; }
.muted { color: var(--muted); }
.text-primary { color: var(--primary) !important; }
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 20px; }
.ic { width: 20px; height: 20px; flex: none; vertical-align: middle; }
.ic-sm { width: 16px; height: 16px; }
.ic-xs { width: 13px; height: 13px; }
.hidden { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.script-tagline { font-family: var(--script); color: var(--primary); font-size: 1.9rem; line-height: 1.1; margin: 10px 0; transform: rotate(-3deg); transform-origin: left; }

/* ------------------------------------------------------------- buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 44px; padding: 0 20px; border-radius: 10px; border: 1.5px solid transparent; font: 600 15px var(--font); cursor: pointer; transition: .15s; white-space: nowrap; text-decoration: none; }
.btn .ic { width: 18px; height: 18px; }
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-600); color: #fff; }
.btn-outline { border-color: var(--primary); color: var(--primary); background: #fff; }
.btn-outline:hover { background: var(--primary-50); color: var(--primary-700); }
.btn-ghost { background: var(--bg-soft); color: var(--navy); border-color: var(--line); }
.btn-ghost:hover { background: var(--primary-50); color: var(--primary-700); }
.btn-sun { background: var(--sun); color: #fff; }
.btn-sun:hover { background: #e39a12; color: #fff; }
.btn-danger { background: #fff; color: var(--red); border-color: #f2c9c9; }
.btn-danger:hover { background: #fdf0f0; color: var(--red); }
.btn-success { background: var(--green); color: #fff; }
.btn-sm { height: 34px; padding: 0 12px; font-size: 13.5px; border-radius: 8px; }
.btn-lg { height: 54px; padding: 0 28px; font-size: 16px; border-radius: 12px; }
.btn-block { width: 100%; }
.link-btn { background: none; border: 0; padding: 0; color: var(--primary); font: inherit; cursor: pointer; }

/* -------------------------------------------------------------- header */
.site-header { position: sticky; top: 0; z-index: 50; background: #fff; border-bottom: 1px solid var(--line); }
.site-header--over { position: absolute; left: 0; right: 0; top: 0; background: linear-gradient(180deg, rgba(255, 255, 255, .92) 0%, rgba(255, 255, 255, .55) 70%, rgba(255, 255, 255, 0) 100%); border-bottom: 0; }
.header-inner { display: flex; align-items: center; gap: 24px; height: 84px; }
.logo { display: inline-flex; align-items: center; gap: 10px; color: var(--primary); flex: none; }
.logo-mark svg { width: 50px; height: 50px; display: block; }
.logo-text { display: flex; flex-direction: column; font-weight: 700; font-size: 22px; line-height: 1.02; letter-spacing: -.02em; color: var(--primary); }
.main-nav { display: flex; align-items: center; gap: 34px; margin-left: auto; }
.main-nav a { color: var(--navy); font-weight: 600; font-size: 15px; padding: 6px 0; position: relative; }
.main-nav a:hover, .main-nav a.is-active { color: var(--primary); }
.main-nav a.is-active::after { content: ''; position: absolute; left: 0; right: 0; bottom: -4px; height: 2px; background: var(--primary); border-radius: 2px; }
.main-nav__cta { display: none !important; }
.header-actions { display: flex; align-items: center; gap: 10px; margin-left: 24px; }
.pill { display: inline-flex; align-items: center; gap: 6px; height: 40px; padding: 0 14px; border-radius: 10px; background: #fff; border: 1px solid var(--line); color: var(--navy); font-weight: 600; font-size: 14px; cursor: pointer; list-style: none; }
.pill::-webkit-details-marker { display: none; }
.icon-btn { position: relative; display: inline-flex; align-items: center; justify-content: center; width: 42px; height: 42px; border-radius: 10px; background: #fff; border: 1px solid var(--line); color: var(--navy); cursor: pointer; list-style: none; padding: 0; }
.icon-btn::-webkit-details-marker { display: none; }
.icon-btn:hover { color: var(--primary); border-color: var(--primary-100); }
.icon-btn--user { padding: 0; overflow: hidden; }
.badge-dot { position: absolute; top: -6px; right: -6px; min-width: 19px; height: 19px; padding: 0 5px; border-radius: 10px; background: var(--red); color: #fff; font-size: 11px; font-weight: 700; display: flex; align-items: center; justify-content: center; border: 2px solid #fff; }
.burger { display: none; }
.dropdown { position: relative; }
.dropdown-menu { position: absolute; top: calc(100% + 8px); left: 0; min-width: 170px; background: #fff; border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow-lg); padding: 6px; z-index: 60; }
.dropdown-menu--right { left: auto; right: 0; min-width: 230px; }
.dropdown-menu a { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-radius: 8px; color: var(--navy); font-weight: 500; font-size: 14px; }
.dropdown-menu a:hover, .dropdown-menu a.is-active { background: var(--primary-50); color: var(--primary-700); }
.dropdown-menu .ic { width: 17px; height: 17px; color: var(--muted); }
.dropdown-head { padding: 10px 12px 12px; border-bottom: 1px solid var(--line); margin-bottom: 6px; }
.dropdown-head strong { display: block; color: var(--navy); }
.dropdown-head small { color: var(--muted); }
.count { margin-left: auto; background: var(--primary); color: #fff; font-size: 11px; font-weight: 700; border-radius: 10px; padding: 1px 7px; }

/* ------------------------------------------------------------ avatars */
.avatar { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; flex: none; }
.avatar--sm { width: 40px; height: 40px; border-radius: 9px; }
.avatar--lg { width: 88px; height: 88px; }
.avatar--initials { display: inline-flex; align-items: center; justify-content: center; background: var(--primary-50); color: var(--primary-700); font-weight: 700; font-size: 15px; }
.avatar--sun { background: #fff4de; color: var(--sun); }

/* ------------------------------------------------------------- alerts */
.flash-wrap { margin-top: 16px; }
.alert { position: relative; padding: 12px 44px 12px 16px; border-radius: 10px; margin-bottom: 12px; font-weight: 500; font-size: 14px; border: 1px solid; }
.alert button { position: absolute; right: 8px; top: 8px; background: none; border: 0; color: inherit; cursor: pointer; opacity: .6; }
.alert-success { background: #eaf8f1; border-color: #bfe8d4; color: #136c46; }
.alert-error { background: #fdf0f0; border-color: #f4c7c7; color: #9b2c2c; }
.alert-info { background: var(--primary-50); border-color: var(--primary-100); color: var(--primary-700); }
.alert-warning { background: #fff7e6; border-color: #fbe0a8; color: #8a5a00; }

/* ---------------------------------------------------------------- hero */
.hero { position: relative; min-height: 640px; padding: 150px 0 0; background: #2a7fb8 center/cover no-repeat; color: #fff; }
.hero::before { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(8, 47, 84, .55) 0%, rgba(8, 47, 84, .28) 40%, rgba(8, 47, 84, 0) 70%), linear-gradient(0deg, rgba(8, 40, 70, .35) 0%, rgba(8, 40, 70, 0) 35%); }
.hero .container { position: relative; }
.hero h1 { color: #fff; font-size: clamp(2.4rem, 5.4vw, 4.4rem); font-weight: 800; line-height: 1.04; letter-spacing: -.025em; margin: 0 0 18px; max-width: 660px; text-shadow: 0 2px 24px rgba(0, 0, 0, .18); }
.hero__lead { font-size: clamp(1.05rem, 1.8vw, 1.45rem); font-weight: 600; line-height: 1.35; max-width: 620px; margin: 0 0 34px; text-shadow: 0 1px 12px rgba(0, 0, 0, .25); }
.hero__usps { display: flex; gap: 36px; flex-wrap: wrap; margin-bottom: 44px; }
.usp { display: flex; align-items: center; gap: 12px; }
.usp__ic { width: 46px; height: 46px; border-radius: 50%; background: #fff; color: var(--primary); display: flex; align-items: center; justify-content: center; box-shadow: 0 6px 16px rgba(0, 0, 0, .12); }
.usp__ic .ic { width: 22px; height: 22px; }
.usp strong { display: block; font-size: 15px; }
.usp span { font-size: 13px; opacity: .92; }

/* ---------------------------------------------------------- search bar */
.search-bar { position: relative; z-index: 5; display: flex; align-items: stretch; gap: 12px; background: #fff; border-radius: 16px; padding: 12px; box-shadow: var(--shadow-lg); margin-bottom: -52px; color: var(--text); }
.deal-toggle { display: flex; background: var(--bg-soft); border-radius: 10px; padding: 4px; flex: none; }
.deal-toggle label { cursor: pointer; }
.deal-toggle input { position: absolute; opacity: 0; pointer-events: none; }
.deal-toggle span { display: flex; align-items: center; height: 100%; padding: 0 22px; border-radius: 8px; font-weight: 600; color: var(--navy); }
.deal-toggle input:checked + span { background: var(--primary); color: #fff; }
.search-field { flex: 1; display: flex; align-items: center; gap: 10px; border: 1px solid var(--line); border-radius: 10px; padding: 0 12px; min-width: 0; position: relative; }
.search-field > .ic { color: var(--primary); }
.search-field label { display: block; font-size: 12px; color: var(--muted); font-weight: 500; line-height: 1; margin-top: 8px; }
.search-field select, .search-field input { width: 100%; border: 0; background: transparent; font: 600 15px var(--font); color: var(--navy); padding: 4px 0 8px; outline: none; appearance: none; -webkit-appearance: none; cursor: pointer; }
.search-field .chev { position: absolute; right: 12px; pointer-events: none; color: var(--navy); }
.search-field .inline-price { display: flex; gap: 6px; align-items: center; }
.search-field .inline-price input { cursor: text; }
.search-bar .btn { height: auto; min-height: 56px; padding: 0 34px; font-size: 16px; flex: none; }

/* ------------------------------------------------------------ sections */
.section { padding: 80px 0; }
.section--soft { background: var(--bg-soft); }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 28px; }
.section-head h2 { margin: 0; font-size: clamp(1.5rem, 2.6vw, 2rem); }
.section-head p { margin: 6px 0 0; color: var(--primary); font-weight: 600; font-size: 1.05rem; }
.eyebrow { display: inline-block; color: var(--primary); font-weight: 700; font-size: 13px; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 8px; }

/* -------------------------------------------------------- property card */
.cards-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 22px; }
.cards-grid--3 { grid-template-columns: repeat(3, 1fr); }
.cards-grid--4 { grid-template-columns: repeat(4, 1fr); }
.card-property { position: relative; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; transition: box-shadow .2s, transform .2s; }
.card-property:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.card-property.is-highlight { border: 2px solid var(--sun); box-shadow: 0 0 0 4px rgba(245, 168, 28, .14); }
.card-property__media { position: relative; display: block; aspect-ratio: 4 / 3; overflow: hidden; background: var(--primary-50); }
.card-property__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.card-property:hover .card-property__media img { transform: scale(1.04); }
.card-property__badges { position: absolute; top: 12px; left: 12px; display: flex; gap: 6px; flex-wrap: wrap; }
.card-property__count { position: absolute; right: 12px; bottom: 12px; background: rgba(15, 42, 71, .65); color: #fff; font-size: 12px; font-weight: 600; padding: 3px 8px; border-radius: 6px; display: flex; gap: 4px; align-items: center; }
.tag { display: inline-flex; align-items: center; gap: 4px; padding: 5px 11px; border-radius: 7px; font-size: 12.5px; font-weight: 700; color: #fff; background: var(--primary); line-height: 1.2; }
.tag--deal { position: absolute; left: 12px; bottom: 12px; padding: 7px 14px; font-size: 13px; }
.tag--top { background: var(--sun); }
.tag--urgent { background: var(--red); }
.tag--featured { background: var(--navy); }
.tag--soft { background: var(--primary-50); color: var(--primary-700); }
.fav-btn { position: absolute; top: 10px; right: 10px; z-index: 2; width: 38px; height: 38px; border-radius: 50%; border: 0; background: transparent; color: #fff; cursor: pointer; display: flex; align-items: center; justify-content: center; filter: drop-shadow(0 1px 3px rgba(0, 0, 0, .35)); }
.fav-btn .ic { width: 26px; height: 26px; stroke-width: 2; }
.fav-btn.is-on .ic { fill: #ff5a6e; stroke: #ff5a6e; }
.card-property__body { padding: 16px 16px 16px; display: flex; flex-direction: column; flex: 1; }
.card-property__body h3 { font-size: 15.5px; margin: 0 0 4px; }
.card-property__body h3 a { color: var(--navy); }
.price { font-size: 22px; font-weight: 800; color: var(--navy); letter-spacing: -.02em; margin-bottom: 8px; }
.price small { font-size: 13px; font-weight: 600; color: var(--muted); }
.specs { display: flex; flex-wrap: wrap; gap: 16px; list-style: none; padding: 0; margin: 0 0 10px; color: var(--text); font-size: 14px; }
.specs li { display: flex; align-items: center; gap: 6px; }
.specs .ic { width: 18px; height: 18px; color: var(--muted); }
.card-property__loc { display: flex; align-items: center; gap: 6px; color: var(--muted); font-size: 13.5px; margin-bottom: 14px; }
.card-property__loc .ic { width: 16px; height: 16px; }
.card-property__body .btn { margin-top: auto; }
.card-property__title { font-weight: 600; color: var(--navy); margin: 0 0 4px; }
.card-property--row { flex-direction: row; }
.card-property--row .card-property__media { width: 340px; flex: none; aspect-ratio: auto; min-height: 230px; }
.card-property--row .card-property__body .btn { align-self: flex-start; width: auto; }

/* -------------------------------------------------------- features block */
.life { display: grid; grid-template-columns: 1.05fr 1.6fr 1fr; gap: 0; background: #fff; border-radius: 20px; overflow: hidden; box-shadow: var(--shadow); border: 1px solid var(--line); }
.life__media { position: relative; min-height: 420px; background: center/cover; color: #fff; padding: 40px 34px; display: flex; flex-direction: column; }
.life__media::before { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10, 60, 100, .55) 0%, rgba(10, 60, 100, .15) 55%, rgba(10, 60, 100, .05) 100%); }
.life__media > * { position: relative; }
.life__media h2 { color: #fff; font-size: 1.75rem; line-height: 1.12; font-weight: 800; }
.life__media p { font-size: 1.05rem; font-weight: 500; max-width: 300px; }
.life__media .script { margin-top: auto; font-family: var(--script); font-size: 2rem; line-height: 1; transform: rotate(-6deg); display: flex; align-items: center; gap: 10px; }
.life__grid { display: grid; grid-template-columns: repeat(3, 1fr); }
.life__item { text-align: center; padding: 30px 18px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.life__item:nth-child(3n) { border-right: 0; }
.life__item:nth-child(n+4) { border-bottom: 0; }
.life__ic { width: 62px; height: 62px; margin: 0 auto 14px; border-radius: 50%; background: var(--primary-50); color: var(--primary); display: flex; align-items: center; justify-content: center; }
.life__ic .ic { width: 28px; height: 28px; }
.life__item h3 { font-size: 17px; margin-bottom: 6px; }
.life__item p { font-size: 13.5px; color: var(--muted); margin: 0; }
.why { padding: 36px 30px; background: linear-gradient(180deg, #fff 0%, var(--bg-soft) 100%); border-left: 1px solid var(--line); display: flex; flex-direction: column; }
.why h3 { font-size: 1.35rem; margin-bottom: 18px; }
.checklist { list-style: none; padding: 0; margin: 0 0 20px; }
.checklist li { display: flex; gap: 10px; align-items: flex-start; margin-bottom: 10px; font-weight: 500; color: var(--navy); font-size: 14.5px; }
.checklist .ic { color: var(--primary); width: 20px; height: 20px; stroke-width: 2.4; margin-top: 1px; }
.why .script-tagline { margin-top: auto; }

/* -------------------------------------------------------------- cities */
.cities-block { display: grid; grid-template-columns: 1.5fr 1fr; gap: 30px; align-items: center; background: #fff; border-radius: 20px; padding: 40px; border: 1px solid var(--line); box-shadow: var(--shadow); overflow: hidden; position: relative; }
.cities-block h2 { margin-bottom: 4px; }
.cities-block .sub { color: var(--primary); font-weight: 700; font-size: 1.25rem; margin-bottom: 12px; }
.cities-row { display: flex; flex-wrap: wrap; gap: 18px; margin: 26px 0 20px; }
.city-bubble { display: flex; flex-direction: column; align-items: center; gap: 8px; width: 96px; text-align: center; color: var(--navy); font-weight: 600; font-size: 13.5px; line-height: 1.2; }
.city-bubble img, .city-bubble .city-bubble__ph { width: 88px; height: 88px; border-radius: 50%; object-fit: cover; border: 3px solid #fff; box-shadow: 0 6px 18px rgba(15, 42, 71, .16); transition: transform .2s; }
.city-bubble__ph { display: flex; align-items: center; justify-content: center; background: var(--primary-50); color: var(--primary); font-size: 26px; font-weight: 800; }
.city-bubble:hover img { transform: scale(1.06); }
.city-bubble small { color: var(--muted); font-weight: 500; font-size: 12px; }
.map-wrap { position: relative; }
.map-svg { width: 100%; height: auto; }
.map-pin-label { font: 600 12px var(--font); fill: var(--navy); }

/* --------------------------------------------------------------- CTA */
.cta-band { background: linear-gradient(120deg, var(--primary) 0%, #1aa3c2 100%); color: #fff; border-radius: 20px; padding: 44px; display: grid; grid-template-columns: 1.3fr 1fr; gap: 30px; align-items: center; position: relative; overflow: hidden; }
.cta-band h2 { color: #fff; font-size: 2rem; }
.cta-band p { opacity: .95; font-size: 1.05rem; }
.cta-band__types { display: grid; gap: 12px; }
.cta-type { display: flex; align-items: center; gap: 14px; background: rgba(255, 255, 255, .14); border: 1px solid rgba(255, 255, 255, .25); border-radius: 14px; padding: 14px 16px; color: #fff; transition: .15s; }
.cta-type:hover { background: rgba(255, 255, 255, .22); color: #fff; }
.cta-type .ic { width: 26px; height: 26px; }
.cta-type strong { display: block; }
.cta-type span { font-size: 13px; opacity: .9; }
.cta-type .ic:last-child { margin-left: auto; width: 20px; }

/* ----------------------------------------------------- listings page */
.page-head { padding: 26px 0 8px; }
.breadcrumbs { font-size: 13.5px; color: var(--muted); display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 8px; }
.breadcrumbs a { color: var(--muted); }
.breadcrumbs a:hover { color: var(--primary); }
.breadcrumbs span:last-child { color: var(--navy); font-weight: 500; }
.results-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 20px; flex-wrap: wrap; }
.results-head h1 { margin: 0; font-size: 1.9rem; }
.results-head .muted { margin: 4px 0 0; }
.results-tools { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.results-tools label { white-space: nowrap; }
.select-sm { height: 40px; border: 1px solid var(--line); border-radius: 10px; padding: 0 34px 0 12px; font: 600 14px var(--font); color: var(--navy); background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230f2a47' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") right 10px center/16px no-repeat; appearance: none; -webkit-appearance: none; cursor: pointer; }
.view-toggle { display: flex; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.view-toggle a { width: 40px; height: 38px; display: flex; align-items: center; justify-content: center; color: var(--muted); }
.view-toggle a.is-active { background: var(--primary); color: #fff; }
.listing-layout { display: grid; grid-template-columns: 270px 1fr; gap: 28px; align-items: start; padding-bottom: 60px; }
.filters { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; position: sticky; top: 100px; max-height: calc(100vh - 120px); overflow: auto; }
.filters h4 { font-size: 15px; margin: 0 0 10px; display: flex; justify-content: space-between; align-items: center; }
.filter-group { border-bottom: 1px solid var(--line); padding: 14px 0; }
.filter-group:first-of-type { padding-top: 0; }
.filter-group:last-of-type { border-bottom: 0; }
.check { display: flex; align-items: center; gap: 10px; padding: 4px 0; font-size: 14px; color: var(--text); cursor: pointer; }
.check input, .radio input { width: 17px; height: 17px; accent-color: var(--primary); margin: 0; flex: none; }
.check .num { color: var(--muted); font-size: 13px; }
.radio { display: flex; align-items: center; gap: 10px; padding: 4px 0; cursor: pointer; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { position: relative; }
.chip input { position: absolute; opacity: 0; }
.chip span { display: inline-flex; padding: 6px 12px; border: 1px solid var(--line); border-radius: 8px; font-size: 13.5px; font-weight: 600; color: var(--navy); cursor: pointer; }
.chip input:checked + span { background: var(--primary); border-color: var(--primary); color: #fff; }
.range { position: relative; height: 26px; margin: 4px 4px 6px; }
.range input[type=range] { position: absolute; width: 100%; top: 4px; margin: 0; pointer-events: none; -webkit-appearance: none; appearance: none; background: none; }
.range input[type=range]::-webkit-slider-thumb { pointer-events: auto; -webkit-appearance: none; width: 18px; height: 18px; border-radius: 50%; background: #fff; border: 3px solid var(--primary); cursor: pointer; position: relative; z-index: 2; }
.range input[type=range]::-moz-range-thumb { pointer-events: auto; width: 14px; height: 14px; border-radius: 50%; background: #fff; border: 3px solid var(--primary); cursor: pointer; }
.range__track { position: absolute; left: 0; right: 0; top: 12px; height: 4px; background: var(--line); border-radius: 4px; }
.range__fill { position: absolute; top: 12px; height: 4px; background: var(--primary); border-radius: 4px; }
.range-values { display: flex; justify-content: space-between; font-size: 13px; color: var(--muted); font-weight: 600; }
.mini-inputs { display: flex; gap: 8px; margin-top: 8px; }
.mini-inputs input { width: 100%; height: 36px; border: 1px solid var(--line); border-radius: 8px; padding: 0 8px; font: 500 13.5px var(--font); }
.top-strip { background: linear-gradient(90deg, #fff7e6, #fff); border: 1px solid #fbe0a8; border-radius: var(--radius); padding: 10px 16px; margin-bottom: 18px; display: flex; align-items: center; gap: 10px; font-size: 14px; color: #8a5a00; font-weight: 600; }
.top-strip .ic { color: var(--sun); }
.empty { text-align: center; padding: 60px 20px; border: 1px dashed var(--line); border-radius: var(--radius); background: var(--bg-soft); }
.empty .ic { width: 46px; height: 46px; color: var(--primary); margin-bottom: 10px; }
.pagination { display: flex; gap: 6px; justify-content: center; margin-top: 30px; }
.pagination a, .pagination span { min-width: 40px; height: 40px; padding: 0 10px; display: flex; align-items: center; justify-content: center; border: 1px solid var(--line); border-radius: 10px; color: var(--navy); font-weight: 600; }
.pagination .is-active { background: var(--primary); border-color: var(--primary); color: #fff; }
.filters-toggle { display: none; }

/* --------------------------------------------------------- property */
.gallery { display: grid; grid-template-columns: 2fr 1fr 1fr; grid-template-rows: 220px 220px; gap: 8px; border-radius: 18px; overflow: hidden; margin-bottom: 26px; position: relative; }
.gallery a { position: relative; display: block; overflow: hidden; background: var(--primary-50); }
.gallery a:first-child { grid-row: span 2; }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.gallery a:hover img { transform: scale(1.03); }
.gallery__more { position: absolute; right: 14px; bottom: 14px; background: #fff; color: var(--navy); border-radius: 10px; padding: 8px 14px; font-weight: 700; font-size: 14px; display: flex; gap: 6px; align-items: center; box-shadow: var(--shadow); }
.gallery--1 { grid-template-columns: 1fr; grid-template-rows: 460px; }
.gallery--2 { grid-template-columns: 2fr 1fr; grid-template-rows: 460px; }
.gallery--2 a:first-child { grid-row: auto; }
.gallery--3 { grid-template-columns: 2fr 1fr; }
.property-layout { display: grid; grid-template-columns: 1fr 370px; gap: 34px; align-items: start; padding-bottom: 70px; }
.property-title { display: flex; justify-content: space-between; gap: 20px; align-items: flex-start; margin-bottom: 18px; }
.property-title h1 { font-size: 1.9rem; margin-bottom: 6px; }
.property-title .price { font-size: 2rem; margin: 0; text-align: right; white-space: nowrap; }
.key-facts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 28px; }
.fact { background: var(--bg-soft); border-radius: 12px; padding: 14px 16px; display: flex; gap: 12px; align-items: center; }
.fact .ic { width: 26px; height: 26px; color: var(--primary); }
.fact strong { display: block; color: var(--navy); font-size: 17px; line-height: 1.1; }
.fact span { font-size: 12.5px; color: var(--muted); }
.prose { white-space: pre-line; color: var(--text); }
.feature-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px 16px; list-style: none; padding: 0; }
.feature-list li { display: flex; gap: 8px; align-items: center; font-size: 14.5px; }
.feature-list .ic { color: var(--primary); width: 18px; }
.details-table { width: 100%; border-collapse: collapse; }
.details-table td { padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 14.5px; }
.details-table td:last-child { text-align: right; font-weight: 600; color: var(--navy); }
.block { margin-bottom: 32px; }
.block > h2 { font-size: 1.3rem; }
.contact-card { position: sticky; top: 100px; background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 22px; box-shadow: var(--shadow); }
.owner { display: flex; gap: 12px; align-items: center; margin-bottom: 16px; }
.owner strong { display: flex; gap: 5px; align-items: center; color: var(--navy); }
.owner strong .ic { color: var(--primary); width: 17px; }
.owner small { color: var(--muted); display: block; }
.contact-card textarea { min-height: 96px; }
.contact-card .btn + .btn { margin-top: 8px; }
.contact-card hr { border: 0; border-top: 1px solid var(--line); margin: 16px 0; }
.share-row { display: flex; gap: 8px; justify-content: center; margin-top: 14px; font-size: 13.5px; }
#map { height: 320px; border-radius: 14px; overflow: hidden; z-index: 1; }
.lightbox { position: fixed; inset: 0; background: rgba(5, 15, 30, .94); z-index: 200; display: none; align-items: center; justify-content: center; }
.lightbox.is-open { display: flex; }
.lightbox img { max-width: 92vw; max-height: 86vh; border-radius: 8px; }
.lightbox button { position: absolute; background: rgba(255, 255, 255, .12); border: 0; color: #fff; width: 52px; height: 52px; border-radius: 50%; cursor: pointer; display: flex; align-items: center; justify-content: center; }
.lightbox .lb-close { top: 20px; right: 20px; }
.lightbox .lb-prev { left: 20px; }
.lightbox .lb-next { right: 20px; }
.lightbox .lb-count { position: absolute; bottom: 20px; color: #fff; font-weight: 600; }

/* ----------------------------------------------------------- forms */
.form { display: grid; gap: 14px; }
.form label, .field { display: grid; gap: 6px; font-size: 13.5px; font-weight: 600; color: var(--navy); }
.form label.check, .form label.radio { display: flex; font-weight: 500; }
input[type=text], input[type=email], input[type=password], input[type=number], input[type=tel], input[type=url], input[type=date], input[type=time], input[type=search], select, textarea, .input {
  width: 100%; height: 46px; border: 1px solid #d5e1e8; border-radius: 10px; padding: 0 14px; font: 500 15px var(--font); color: var(--navy); background: #fff; transition: border-color .15s, box-shadow .15s; }
input:not([type]) { width: 100%; height: 46px; border: 1px solid #d5e1e8; border-radius: 10px; padding: 0 14px; font: 500 15px var(--font); color: var(--navy); }
textarea { height: auto; min-height: 130px; padding: 12px 14px; resize: vertical; line-height: 1.5; }
select { appearance: none; -webkit-appearance: none; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230f2a47' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") right 12px center/16px no-repeat; padding-right: 36px; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 4px rgba(19, 140, 168, .12); }
.hint { font-weight: 400; color: var(--muted); font-size: 12.5px; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.fieldset { border: 1px solid var(--line); border-radius: 12px; padding: 16px; margin: 0; display: grid; gap: 12px; }
.fieldset legend { font-weight: 700; color: var(--navy); padding: 0 6px; }
.form-actions { display: flex; gap: 10px; justify-content: flex-end; flex-wrap: wrap; }

/* ------------------------------------------------------ auth pages */
.auth-page { background: var(--bg-soft) url('../img/hero.jpg') center/cover fixed; min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 30px 16px; }
.auth-page::before { content: ''; position: fixed; inset: 0; background: rgba(240, 248, 251, .75); backdrop-filter: blur(3px); }
.auth-card { position: relative; width: 100%; max-width: 460px; background: #fff; border-radius: 20px; padding: 34px; box-shadow: var(--shadow-lg); }
.auth-card .logo { margin-bottom: 22px; }
.auth-card h1 { font-size: 1.6rem; }
.auth-wrap { min-height: calc(100vh - 85px); display: flex; align-items: center; justify-content: center; padding: 40px 16px; background: linear-gradient(180deg, var(--bg-soft), #fff); }
.type-picker { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.type-picker label { position: relative; cursor: pointer; }
.type-picker input { position: absolute; opacity: 0; }
.type-picker .type-card { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 6px; padding: 14px 8px; border: 1.5px solid var(--line); border-radius: 12px; font-weight: 600; font-size: 13.5px; color: var(--navy); height: 100%; }
.type-picker .type-card .ic { width: 28px; height: 28px; color: var(--primary); }
.type-picker .type-card small { color: var(--muted); font-weight: 500; font-size: 11.5px; line-height: 1.3; }
.type-picker input:checked + .type-card { border-color: var(--primary); background: var(--primary-50); box-shadow: 0 0 0 3px rgba(19, 140, 168, .12); }
.divider { text-align: center; color: var(--muted); font-size: 13px; margin: 6px 0; }

/* -------------------------------------------------- app (account/admin) */
.app-page { background: var(--bg-soft); }
.app-page .site-footer { display: none; }
.app-shell { display: grid; grid-template-columns: 250px 1fr; min-height: calc(100vh - 85px); }
.app-sidebar { background: #0f4f63; background: linear-gradient(180deg, #0f5a70 0%, #0d4558 100%); color: #d8edf3; padding: 20px 14px; display: flex; flex-direction: column; gap: 14px; position: sticky; top: 85px; height: calc(100vh - 85px); overflow: auto; }
.app-sidebar--admin { background: linear-gradient(180deg, #0f2a47 0%, #0a1d33 100%); }
.app-sidebar__user { display: flex; gap: 10px; align-items: center; padding: 6px 8px 14px; border-bottom: 1px solid rgba(255, 255, 255, .12); }
.app-sidebar__user strong { display: block; color: #fff; font-size: 14px; line-height: 1.25; }
.app-sidebar__user small { color: #a9cfdb; font-size: 12px; display: flex; gap: 4px; align-items: center; }
.app-sidebar nav { display: grid; gap: 2px; }
.app-sidebar nav a { display: flex; gap: 12px; align-items: center; padding: 10px 12px; border-radius: 9px; color: #d8edf3; font-weight: 500; font-size: 14.5px; }
.app-sidebar nav a:hover { background: rgba(255, 255, 255, .08); color: #fff; }
.app-sidebar nav a.is-active { background: var(--primary); color: #fff; box-shadow: 0 6px 14px rgba(0, 0, 0, .18); }
.app-sidebar nav .count { background: var(--sun); }
.app-sidebar__admin { color: var(--sun) !important; }
.app-sidebar .btn { margin-top: auto; }
.app-main { padding: 28px 32px 60px; min-width: 0; }
.app-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; margin-bottom: 22px; flex-wrap: wrap; }
.app-head h1 { font-size: 1.65rem; margin: 0; }
.app-head p { margin: 4px 0 0; color: var(--muted); }
.app-head .actions { display: flex; gap: 8px; flex-wrap: wrap; }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 22px; }
.stat { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 18px; }
.stat__label { font-size: 13.5px; color: var(--muted); font-weight: 600; display: flex; justify-content: space-between; align-items: center; }
.stat__label .ic { color: var(--primary); }
.stat__value { font-size: 30px; font-weight: 800; color: var(--navy); letter-spacing: -.02em; margin-top: 4px; }
.stat__delta { font-size: 13px; font-weight: 600; color: var(--green); }
.stat__delta.is-down { color: var(--red); }
.panel { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 20px; margin-bottom: 20px; min-width: 0; }
.panel__head { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 14px; flex-wrap: wrap; }
.panel__head h2, .panel__head h3 { margin: 0; font-size: 1.08rem; }
.panels-2 { display: grid; grid-template-columns: 1fr 1.5fr; gap: 20px; }
.panels-2 > .panel { margin-bottom: 0; }
.bar-chart { display: flex; align-items: flex-end; gap: 14px; height: 200px; padding: 10px 4px 0; border-bottom: 1px solid var(--line); position: relative; }
.bar-chart__col { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; height: 100%; gap: 6px; }
.bar-chart__bar { width: 100%; max-width: 38px; background: linear-gradient(180deg, #2fb2cf 0%, var(--primary) 100%); border-radius: 6px 6px 0 0; min-height: 3px; position: relative; }
.bar-chart__bar:hover::after { content: attr(data-v); position: absolute; top: -26px; left: 50%; transform: translateX(-50%); background: var(--navy); color: #fff; font-size: 12px; padding: 2px 7px; border-radius: 5px; white-space: nowrap; }
.bar-chart__val { font-size: 12px; color: var(--muted); font-weight: 600; }
.bar-chart__labels { display: flex; gap: 14px; padding: 6px 4px 0; }
.bar-chart__labels span { flex: 1; text-align: center; font-size: 12.5px; color: var(--muted); }
.table-wrap { overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; font-size: 14px; }
.table th { text-align: left; font-size: 12.5px; color: var(--muted); font-weight: 600; padding: 10px 10px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.table td { padding: 12px 10px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.table tr:last-child td { border-bottom: 0; }
.table .thumb { width: 72px; height: 54px; border-radius: 8px; object-fit: cover; }
.table .row-title { font-weight: 600; color: var(--navy); }
.table .actions { display: flex; gap: 6px; justify-content: flex-end; flex-wrap: wrap; }
.pill-status { display: inline-flex; padding: 3px 10px; border-radius: 20px; font-size: 12px; font-weight: 700; white-space: nowrap; }
.pill-status--green { background: #e3f6ec; color: #17784d; }
.pill-status--amber { background: #fff2d6; color: #976100; }
.pill-status--red { background: #fde8e8; color: #b03030; }
.pill-status--blue { background: #e1f1fb; color: #1c6aa0; }
.pill-status--gray { background: #edf1f4; color: #5b6b7b; }
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin-bottom: 18px; overflow-x: auto; }
.tabs a { padding: 10px 14px; color: var(--muted); font-weight: 600; font-size: 14px; border-bottom: 2px solid transparent; margin-bottom: -1px; white-space: nowrap; }
.tabs a.is-active { color: var(--primary); border-color: var(--primary); }
.tabs a .count { margin-left: 4px; }
.toolbar { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 16px; }
.toolbar input, .toolbar select { height: 40px; width: auto; min-width: 180px; }

/* listing editor */
.photo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px; }
.photo-item { position: relative; border-radius: 10px; overflow: hidden; aspect-ratio: 4 / 3; background: var(--primary-50); border: 1px solid var(--line); cursor: grab; }
.photo-item img { width: 100%; height: 100%; object-fit: cover; }
.photo-item .photo-del { position: absolute; top: 6px; right: 6px; width: 30px; height: 30px; border-radius: 8px; background: rgba(255, 255, 255, .92); border: 0; color: var(--red); cursor: pointer; display: flex; align-items: center; justify-content: center; }
.photo-item .photo-main { position: absolute; left: 6px; bottom: 6px; }
.photo-item.is-dragging { opacity: .4; }
.dropzone { border: 2px dashed #bcd8e2; border-radius: 12px; padding: 26px; text-align: center; background: var(--bg-soft); cursor: pointer; transition: .15s; display: block; }
.dropzone:hover, .dropzone.is-over { border-color: var(--primary); background: var(--primary-50); }
.dropzone .ic { width: 34px; height: 34px; color: var(--primary); }
.dropzone input { display: none; }
.preview-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 8px; margin-top: 10px; }
.preview-grid img { width: 100%; aspect-ratio: 4/3; object-fit: cover; border-radius: 8px; }

/* chat */
.chat { display: grid; grid-template-columns: 330px 1fr; height: calc(100vh - 85px - 120px); min-height: 520px; background: #fff; border: 1px solid var(--line); border-radius: 16px; overflow: hidden; }
.chat__list { border-right: 1px solid var(--line); overflow-y: auto; }
.chat__item { display: flex; gap: 12px; padding: 14px 16px; border-bottom: 1px solid var(--line); color: var(--text); position: relative; }
.chat__item:hover { background: var(--bg-soft); color: var(--text); }
.chat__item.is-active { background: var(--primary-50); }
.chat__item img.chat__thumb { width: 52px; height: 52px; border-radius: 10px; object-fit: cover; flex: none; }
.chat__item .meta { min-width: 0; flex: 1; }
.chat__item strong { display: block; color: var(--navy); font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chat__item .sub { font-size: 12.5px; color: var(--primary); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chat__item .last { font-size: 13px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chat__item .time { font-size: 11.5px; color: var(--muted); white-space: nowrap; }
.chat__item .unread { position: absolute; right: 14px; bottom: 16px; }
.chat__main { display: flex; flex-direction: column; min-width: 0; }
.chat__head { display: flex; gap: 12px; align-items: center; padding: 12px 18px; border-bottom: 1px solid var(--line); }
.chat__head img { width: 46px; height: 46px; border-radius: 10px; object-fit: cover; }
.chat__head .meta { flex: 1; min-width: 0; }
.chat__head strong { color: var(--navy); display: block; }
.chat__head .sub { font-size: 13px; color: var(--muted); }
.chat__msgs { flex: 1; overflow-y: auto; padding: 20px; display: flex; flex-direction: column; gap: 8px; background: linear-gradient(180deg, #f8fbfc, #fff); }
.msg { max-width: 72%; padding: 10px 14px; border-radius: 14px; background: #fff; border: 1px solid var(--line); align-self: flex-start; white-space: pre-wrap; word-wrap: break-word; font-size: 14.5px; }
.msg time { display: block; font-size: 11px; color: var(--muted); margin-top: 4px; text-align: right; }
.msg.is-mine { align-self: flex-end; background: var(--primary); color: #fff; border-color: var(--primary); border-bottom-right-radius: 4px; }
.msg.is-mine time { color: rgba(255, 255, 255, .8); }
.msg:not(.is-mine) { border-bottom-left-radius: 4px; }
.msg-day { align-self: center; font-size: 12px; color: var(--muted); background: var(--bg-soft); padding: 3px 10px; border-radius: 10px; margin: 6px 0; }
.chat__form { display: flex; gap: 10px; padding: 14px; border-top: 1px solid var(--line); align-items: flex-end; }
.chat__form textarea { min-height: 46px; height: 46px; max-height: 140px; resize: none; padding: 12px 14px; }
.chat__form .btn { height: 46px; flex: none; }
.chat__empty { flex: 1; display: flex; align-items: center; justify-content: center; flex-direction: column; color: var(--muted); text-align: center; padding: 30px; }
.chat__empty .ic { width: 52px; height: 52px; color: var(--primary-100); }
.chat__back { display: none; }

/* pricing */
.plans { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px; }
.plan { position: relative; background: #fff; border: 1.5px solid var(--line); border-radius: 16px; padding: 22px; display: flex; flex-direction: column; gap: 8px; }
.plan.is-best { border-color: var(--sun); box-shadow: 0 10px 30px rgba(245, 168, 28, .15); }
.plan__badge { position: absolute; top: -12px; left: 20px; }
.plan__ic { width: 48px; height: 48px; border-radius: 12px; background: var(--primary-50); color: var(--primary); display: flex; align-items: center; justify-content: center; }
.plan__ic--sun { background: #fff4de; color: var(--sun); }
.plan h3 { margin: 6px 0 0; font-size: 16px; }
.plan__price { font-size: 28px; font-weight: 800; color: var(--navy); }
.plan__price small { font-size: 13px; color: var(--muted); font-weight: 600; }
.plan p { color: var(--muted); font-size: 13.5px; margin: 0 0 8px; }
.plan form, .plan .btn { margin-top: auto; }
.plan-select { display: flex; gap: 8px; }

/* misc */
.kv { display: grid; grid-template-columns: 160px 1fr; gap: 8px 16px; font-size: 14px; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; color: var(--navy); font-weight: 600; }
.bank-box { background: var(--bg-soft); border: 1px dashed #bcd8e2; border-radius: 12px; padding: 16px; white-space: pre-line; font-family: ui-monospace, Menlo, monospace; font-size: 14px; color: var(--navy); }
.calendar { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.calendar__dow { font-size: 12px; color: var(--muted); font-weight: 700; text-align: center; padding: 4px; }
.calendar__day { min-height: 84px; background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 6px; font-size: 12px; }
.calendar__day.is-other { background: var(--bg-soft); color: #aab6c2; }
.calendar__day.is-today { border-color: var(--primary); box-shadow: inset 0 0 0 1px var(--primary); }
.calendar__day b { display: block; margin-bottom: 4px; color: var(--navy); }
.calendar__ev { display: block; background: var(--primary-50); color: var(--primary-700); border-radius: 5px; padding: 2px 5px; margin-bottom: 3px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-weight: 600; }
.calendar__ev.is-pending { background: #fff2d6; color: #976100; }
.agency-hero { background: linear-gradient(120deg, var(--primary-50), #fff); border: 1px solid var(--line); border-radius: 18px; padding: 28px; display: flex; gap: 22px; align-items: center; margin: 20px 0 28px; flex-wrap: wrap; }
.agency-hero .avatar--lg { width: 100px; height: 100px; font-size: 30px; border-radius: 20px; }
.agency-card { display: flex; gap: 14px; align-items: center; background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 16px; color: var(--text); }
.agency-card:hover { box-shadow: var(--shadow); color: var(--text); }
.agency-card strong { color: var(--navy); display: flex; gap: 5px; align-items: center; }
.agency-card strong .ic { color: var(--primary); width: 16px; }
.content-page { max-width: 820px; padding: 40px 20px 70px; }
.content-page h1 { font-size: 2.2rem; }
.content-page h2 { margin-top: 1.6em; }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.step { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 22px; }
.step__n { width: 38px; height: 38px; border-radius: 50%; background: var(--primary); color: #fff; font-weight: 800; display: flex; align-items: center; justify-content: center; margin-bottom: 12px; }
.locations-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; }
.location-card { position: relative; border-radius: 16px; overflow: hidden; aspect-ratio: 4/3; display: block; background: var(--primary); color: #fff; }
.location-card img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.location-card:hover img { transform: scale(1.05); }
.location-card::after { content: ''; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(8, 35, 60, .75) 0%, rgba(8, 35, 60, 0) 60%); }
.location-card div { position: absolute; left: 16px; bottom: 14px; z-index: 1; }
.location-card strong { display: block; font-size: 19px; color: #fff; }
.location-card span { font-size: 13px; opacity: .9; }
.location-card--noimg { background: linear-gradient(135deg, #1aa3c2, var(--primary-700)); }

/* ------------------------------------------------------------- footer */
.site-footer { background: #f2f8fa; border-top: 1px solid var(--line); padding: 56px 0 0; margin-top: 0; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.2fr; gap: 30px; }
.footer-grid h4 { font-size: 15px; margin-bottom: 14px; }
.footer-grid > div > a:not(.logo), .footer-grid > div > span { display: flex; gap: 8px; align-items: center; color: var(--text); font-size: 14px; margin-bottom: 9px; }
.footer-grid > div > a:not(.logo):hover { color: var(--primary); }
.footer-brand .script-tagline { margin: 16px 0 10px; }
.footer-bottom { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; padding: 20px; margin-top: 36px; border-top: 1px solid var(--line); font-size: 13px; color: var(--muted); }
.footer-bottom a { color: var(--muted); }

/* ------------------------------------------------------------ responsive */
@media (max-width: 1100px) {
  .main-nav { gap: 22px; }
  .life { grid-template-columns: 1fr 1.6fr; }
  .why { grid-column: 1 / -1; border-left: 0; border-top: 1px solid var(--line); }
  .cards-grid--4 { grid-template-columns: repeat(3, 1fr); }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .property-layout { grid-template-columns: 1fr 320px; }
}
@media (max-width: 960px) {
  .burger { display: inline-flex; }
  .main-nav { position: fixed; top: 84px; left: 0; right: 0; bottom: 0; background: #fff; flex-direction: column; align-items: stretch; gap: 0; padding: 16px 20px; margin: 0; transform: translateX(100%); transition: transform .25s; overflow: auto; z-index: 70; }
  .main-nav.is-open { transform: none; }
  .main-nav a { padding: 14px 4px; border-bottom: 1px solid var(--line); font-size: 17px; }
  .main-nav a.is-active::after { display: none; }
  .main-nav__cta { display: flex !important; align-items: center; gap: 8px; color: var(--primary) !important; }
  .header-actions { margin-left: auto; }
  .search-bar { flex-wrap: wrap; }
  .search-field { flex: 1 1 40%; min-height: 56px; }
  .deal-toggle { flex: 1 1 100%; }
  .deal-toggle label { flex: 1; }
  .deal-toggle span { justify-content: center; height: 44px; }
  .search-bar .btn { flex: 1 1 100%; }
  .life { grid-template-columns: 1fr; }
  .life__media { min-height: 300px; }
  .cities-block { grid-template-columns: 1fr; padding: 26px; }
  .cta-band { grid-template-columns: 1fr; padding: 30px; }
  .listing-layout { grid-template-columns: 1fr; }
  .filters { position: fixed; inset: 0 0 0 auto; width: min(360px, 92vw); max-height: none; z-index: 120; border-radius: 0; transform: translateX(105%); transition: transform .25s; box-shadow: var(--shadow-lg); }
  .filters.is-open { transform: none; }
  .filters-toggle { display: inline-flex; }
  .property-layout { grid-template-columns: 1fr; }
  .contact-card { position: static; }
  .gallery { grid-template-columns: 1fr 1fr; grid-template-rows: 260px 130px; }
  .gallery a:first-child { grid-column: span 2; grid-row: auto; }
  .gallery a:nth-child(n+4):not(.gallery__more) { display: none; }
  .gallery--1, .gallery--2 { grid-template-columns: 1fr; grid-template-rows: 300px; }
  .gallery--2 a:nth-child(2) { display: none; }
  .key-facts { grid-template-columns: repeat(2, 1fr); }
  .feature-list { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .app-shell { grid-template-columns: 1fr; }
  .app-sidebar { position: static; height: auto; flex-direction: row; overflow-x: auto; padding: 10px; gap: 8px; }
  .app-sidebar__user, .app-sidebar .btn { display: none; }
  .app-sidebar nav { display: flex; gap: 4px; }
  .app-sidebar nav a { white-space: nowrap; padding: 8px 12px; }
  .app-main { padding: 20px 16px 50px; }
  .panels-2 { grid-template-columns: 1fr; }
  .chat { grid-template-columns: 1fr; height: calc(100vh - 230px); }
  .chat.has-active .chat__list { display: none; }
  .chat:not(.has-active) .chat__main { display: none; }
  .chat__back { display: inline-flex; }
  .cards-grid--3, .cards-grid--4 { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: 1fr; }
  .card-property--row { flex-direction: column; }
  .card-property--row .card-property__media { width: 100%; min-height: 0; aspect-ratio: 4/3; }
}
@media (max-width: 640px) {
  body { font-size: 14.5px; }
  .header-inner { height: 70px; gap: 10px; }
  .main-nav { top: 70px; }
  .logo-mark svg { width: 40px; height: 40px; }
  .logo-text { font-size: 18px; }
  .lang-switch .pill { padding: 0 10px; }
  .lang-switch .pill .ic:first-child { display: none; }
  .hero { padding-top: 110px; min-height: 0; padding-bottom: 20px; }
  .hero__usps { gap: 14px; flex-direction: column; margin-bottom: 26px; }
  .search-bar { margin-bottom: 0; }
  .search-field { flex: 1 1 100%; }
  .section { padding: 54px 0; }
  .cards-grid--3, .cards-grid--4 { grid-template-columns: 1fr; }
  .life__grid { grid-template-columns: 1fr 1fr; }
  .life__item:nth-child(3n) { border-right: 1px solid var(--line); }
  .life__item:nth-child(2n) { border-right: 0; }
  .life__item:nth-child(n+4) { border-bottom: 1px solid var(--line); }
  .life__item:nth-child(n+5) { border-bottom: 0; }
  .city-bubble { width: 76px; }
  .city-bubble img, .city-bubble .city-bubble__ph { width: 70px; height: 70px; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .type-picker { grid-template-columns: 1fr; }
  .property-title { flex-direction: column; }
  .property-title .price { text-align: left; }
  .stats { grid-template-columns: 1fr 1fr; gap: 10px; }
  .stat__value { font-size: 24px; }
  .footer-grid { grid-template-columns: 1fr; }
  .feature-list { grid-template-columns: 1fr; }
  .auth-card { padding: 24px; }
  .kv { grid-template-columns: 1fr; }
  .results-head h1 { font-size: 1.45rem; }
}

/* fixes */
.section-head { flex-wrap: wrap; }
.app-shell { background: linear-gradient(90deg, #0d4558 0 250px, transparent 250px); }
.admin-page .app-shell { background: linear-gradient(90deg, #0a1d33 0 250px, transparent 250px); }
@media (max-width: 960px) { .app-shell, .admin-page .app-shell { background: none; } }
@media (max-width: 640px) { .section-head { flex-direction: column; align-items: flex-start; } .hide-sm { display: none; } }
.search-field select { padding-right: 26px; text-overflow: ellipsis; white-space: nowrap; overflow: hidden; }

/* demo mode */
.demo-logins { margin: 18px 0 6px; background: var(--bg-soft); border: 1px dashed #bcd8e2; border-radius: 14px; padding: 14px; display: grid; gap: 8px; }
.demo-logins > strong { color: var(--navy); font-size: 14px; display: flex; gap: 6px; align-items: center; }
.demo-login { width: 100%; display: flex; align-items: center; gap: 12px; padding: 10px 12px; background: #fff; border: 1px solid var(--line); border-radius: 10px; cursor: pointer; text-align: left; font: inherit; color: var(--navy); }
.demo-login:hover { border-color: var(--primary); background: var(--primary-50); }
.demo-login > .ic:first-child { color: var(--primary); }
.demo-login span { flex: 1; display: flex; flex-direction: column; }
.demo-login small { color: var(--muted); font-size: 12px; }

/* partners */
.partners { background: linear-gradient(180deg, #fff 0%, var(--bg-soft) 100%); border-top: 1px solid var(--line); padding: 64px 0 70px; }
.partners__head { text-align: center; max-width: 640px; margin: 0 auto 34px; }
.partners__head h2 { font-size: clamp(1.5rem, 2.6vw, 2rem); margin-bottom: 8px; }
.partners__head p { color: var(--muted); margin: 0; }
.partners__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.partner { position: relative; display: flex; flex-direction: column; gap: 8px; background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 22px 22px 18px; color: var(--text); overflow: hidden; transition: transform .2s, box-shadow .2s, border-color .2s; }
.partner::before { content: ''; position: absolute; left: 0; right: 0; top: 0; height: 4px; background: var(--brand); }
.partner:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: color-mix(in srgb, var(--brand) 35%, var(--line)); color: var(--text); }
.partner__logo { height: 56px; display: flex; align-items: center; margin-bottom: 6px; }
.partner__logo img { height: auto; max-height: 56px; max-width: 100%; width: auto; object-fit: contain; object-position: left center; }
.partner__tagline { color: var(--navy); font-size: 17px; line-height: 1.25; }
.partner__text { color: var(--muted); font-size: 14px; line-height: 1.45; flex: 1; }
.partner__link { display: inline-flex; align-items: center; gap: 6px; margin-top: 6px; font-weight: 700; font-size: 14px; color: var(--brand-link, var(--brand)); }
@media (max-width: 1100px) { .partners__grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .partners { padding: 46px 0 50px; } .partners__grid { grid-template-columns: 1fr; } }
.app-page .partners { display: none; }
