*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0
}

:root {
  --bg: #f5f5f7;
  --surface: #fff;
  --surface2: #fbfbfd;
  --text: #1d1d1f;
  --text2: #6e6e73;
  --text3: #86868b;
  --accent: #0071e3;
  --accent-h: #0077ed;
  --border: rgba(0, 0, 0, 0.08);
  --border2: rgba(0, 0, 0, 0.12);
  --shadow: 0 2px 20px rgba(0, 0, 0, 0.08);
  --shadow-h: 0 8px 40px rgba(0, 0, 0, 0.14);
  --r: 18px;
  --rs: 12px;
}

html {
  scroll-behavior: smooth
}

body {
  font-family: -apple-system, 'Helvetica Neue', Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden
}

/* ─── NAV ─── */
nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 200;
  height: 52px;
  background: rgba(245, 245, 247, 0.9);
  backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 28px
}

.nav-logo {
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
  cursor: pointer;
  letter-spacing: -.3px
}

.nav-links {
  display: flex;
  gap: 28px;
  list-style: none
}

.nav-links a {
  font-size: 13px;
  color: var(--text);
  text-decoration: none;
  opacity: .8;
  cursor: pointer;
  transition: opacity .2s
}

.nav-links a:hover {
  opacity: 1
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px 16px;
  border-radius: 980px;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all .2s;
  border: none;
  font-family: inherit;
  text-decoration: none
}

.btn-ghost {
  background: transparent;
  color: var(--accent)
}

.btn-ghost:hover {
  background: rgba(0, 113, 227, .08)
}

.btn-primary {
  background: var(--accent);
  color: #fff
}

.btn-primary:hover {
  background: var(--accent-h);
  transform: scale(1.02)
}

.btn-danger {
  background: #ff3b30;
  color: #fff
}

.btn-danger:hover {
  background: #e0342a
}

.btn-secondary {
  background: rgba(0, 113, 227, .1);
  color: var(--accent)
}

.btn-secondary:hover {
  background: rgba(0, 113, 227, .15)
}

.btn-lg {
  padding: 14px 28px;
  font-size: 16px;
  border-radius: 14px;
  font-weight: 600
}

.btn-outline {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border2)
}

.btn-outline:hover {
  background: var(--bg)
}

/* ─── PAGES ─── */
.page {
  display: none;
  padding-top: 52px;
  min-height: 100vh;
  animation: fadeIn .3s ease
}

.page.active {
  display: block
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(8px)
  }

  to {
    opacity: 1;
    transform: translateY(0)
  }
}

/* ─── MODALS ─── */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, .4);
  backdrop-filter: blur(4px);
  z-index: 500;
  align-items: center;
  justify-content: center
}

.modal-overlay.open {
  display: flex
}

.modal {
  background: var(--surface);
  border-radius: 20px;
  padding: 40px;
  width: 100%;
  max-width: 440px;
  margin: 20px;
  box-shadow: 0 24px 80px rgba(0, 0, 0, .2);
  animation: modalIn .3s cubic-bezier(.34, 1.56, .64, 1)
}

@keyframes modalIn {
  from {
    opacity: 0;
    transform: scale(.92)
  }

  to {
    opacity: 1;
    transform: scale(1)
  }
}

.modal h2 {
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -.03em;
  margin-bottom: 6px
}

.modal p {
  font-size: 14px;
  color: var(--text2);
  margin-bottom: 28px
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 30px;
  height: 30px;
  background: var(--bg);
  border: none;
  border-radius: 50%;
  cursor: pointer;
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: center
}

.modal {
  position: relative
}

/* ─── FORMS ─── */
.form-group {
  margin-bottom: 16px
}

.form-group label {
  display: block;
  font-size: 13px;
  font-weight: 500;
  color: var(--text);
  margin-bottom: 6px
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--border2);
  border-radius: 10px;
  font-size: 15px;
  color: var(--text);
  background: var(--surface);
  font-family: inherit;
  transition: border .2s, box-shadow .2s;
  outline: none
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(0, 113, 227, .12)
}

.form-group textarea {
  resize: vertical;
  min-height: 100px
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px
}

.form-error {
  color: #ff3b30;
  font-size: 12px;
  margin-top: 4px
}

.form-link {
  font-size: 13px;
  color: var(--accent);
  cursor: pointer;
  text-decoration: none
}

.form-link:hover {
  text-decoration: underline
}

/* ─── HERO ─── */
.hero {
  min-height: calc(100vh - 52px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 80px 24px 60px;
  background: linear-gradient(180deg, #e8eaf0 0%, #f5f5f7 60%);
  position: relative;
  overflow: hidden
}

.hero::before {
  content: '';
  position: absolute;
  width: 900px;
  height: 900px;
  background: radial-gradient(ellipse, rgba(0, 113, 227, .12) 0%, transparent 70%);
  top: -200px;
  left: 50%;
  transform: translateX(-50%);
  pointer-events: none
}

.hero-eyebrow {
  font-size: 13px;
  font-weight: 500;
  color: var(--accent);
  letter-spacing: .02em;
  margin-bottom: 16px;
  animation: fadeUp .8s ease .1s both
}

.hero h1 {
  font-size: clamp(44px, 7vw, 80px);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -.03em;
  margin-bottom: 20px;
  animation: fadeUp .8s ease .2s both
}

.hero h1 span {
  color: var(--accent)
}

.hero-sub {
  font-size: clamp(17px, 2.5vw, 22px);
  color: var(--text2);
  max-width: 600px;
  line-height: 1.5;
  margin-bottom: 48px;
  font-weight: 300;
  animation: fadeUp .8s ease .3s both
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(24px)
  }

  to {
    opacity: 1;
    transform: translateY(0)
  }
}

/* ─── SEARCH BOX ─── */
.search-box {
  width: 100%;
  max-width: 680px;
  background: var(--surface);
  border-radius: 22px;
  box-shadow: 0 4px 40px rgba(0, 0, 0, .12), 0 0 0 1px rgba(0, 0, 0, .06);
  padding: 12px;
  animation: fadeUp .8s ease .4s both
}

.search-tabs {
  display: flex;
  gap: 4px;
  margin-bottom: 12px;
  background: var(--bg);
  border-radius: 12px;
  padding: 4px
}

.search-tab {
  flex: 1;
  padding: 8px 12px;
  border-radius: 9px;
  border: none;
  background: transparent;
  font-size: 13px;
  font-weight: 500;
  color: var(--text2);
  cursor: pointer;
  transition: all .2s;
  font-family: inherit
}

.search-tab.active {
  background: var(--surface);
  color: var(--text);
  box-shadow: 0 1px 4px rgba(0, 0, 0, .1)
}

.search-row {
  display: flex;
  gap: 8px;
  align-items: center
}

.search-input-wrap {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--bg);
  border-radius: 14px;
  padding: 12px 16px
}

.search-input-wrap input {
  border: none;
  background: transparent;
  font-size: 15px;
  color: var(--text);
  width: 100%;
  outline: none;
  font-family: inherit
}

.search-input-wrap input::placeholder {
  color: var(--text3)
}

.search-btn {
  padding: 12px 24px;
  border-radius: 14px;
  font-size: 15px;
  font-weight: 600;
  background: var(--accent);
  color: #fff;
  border: none;
  cursor: pointer;
  transition: all .2s;
  white-space: nowrap;
  font-family: inherit
}

.search-btn:hover {
  background: var(--accent-h);
  transform: scale(1.02)
}

.hero-stats {
  display: flex;
  gap: 48px;
  margin-top: 48px;
  animation: fadeUp .8s ease .6s both
}

.stat {
  text-align: center
}

.stat-num {
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -.04em
}

.stat-label {
  font-size: 13px;
  color: var(--text3);
  margin-top: 2px
}

/* ─── SECTION ─── */
.section {
  padding: 80px 24px;
  max-width: 1200px;
  margin: 0 auto
}

.section-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--accent);
  letter-spacing: .05em;
  text-transform: uppercase;
  margin-bottom: 10px
}

.section-title {
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 700;
  letter-spacing: -.03em;
  line-height: 1.1;
  margin-bottom: 8px
}

.section-sub {
  font-size: 16px;
  color: var(--text2);
  font-weight: 300;
  margin-bottom: 40px
}

/* ─── PROPERTY GRID ─── */
.property-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px
}

.property-card {
  background: var(--surface);
  border-radius: var(--r);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: all .35s cubic-bezier(.25, .46, .45, .94);
  cursor: pointer
}

.property-card:hover {
  box-shadow: var(--shadow-h);
  transform: translateY(-4px)
}

.prop-img {
  width: 100%;
  height: 210px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 52px;
  position: relative;
  overflow: hidden
}

.prop-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: blur(10px);
  border-radius: 8px;
  padding: 4px 10px;
  font-size: 11px;
  font-weight: 600
}

.prop-heart {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 32px;
  height: 32px;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: blur(10px);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform .2s;
  border: none;
  font-size: 15px
}

.prop-heart:hover {
  transform: scale(1.15)
}

.prop-body {
  padding: 18px
}

.prop-price {
  font-size: 21px;
  font-weight: 700;
  letter-spacing: -.03em;
  margin-bottom: 3px
}

.prop-address {
  font-size: 13px;
  color: var(--text3);
  margin-bottom: 14px
}

.prop-meta {
  display: flex;
  gap: 14px;
  border-top: 1px solid var(--border);
  padding-top: 12px
}

.meta-item {
  font-size: 12px;
  color: var(--text2);
  font-weight: 500
}

/* ─── CATEGORY GRID ─── */
.cat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 12px
}

.cat-card {
  background: var(--surface);
  border-radius: var(--rs);
  padding: 24px 16px;
  text-align: center;
  box-shadow: var(--shadow);
  cursor: pointer;
  transition: all .25s ease
}

.cat-card:hover {
  box-shadow: var(--shadow-h);
  transform: translateY(-3px)
}

.cat-icon {
  font-size: 32px;
  margin-bottom: 10px
}

.cat-name {
  font-size: 14px;
  font-weight: 600
}

.cat-count {
  font-size: 11px;
  color: var(--text3);
  margin-top: 3px
}

/* ─── DARK STRIP ─── */
.dark-strip {
  background: var(--text);
  padding: 80px 24px
}

.dark-strip .section-label {
  color: rgba(255, 255, 255, .5)
}

.dark-strip .section-title {
  color: #fff
}

.dark-strip .section-sub {
  color: rgba(255, 255, 255, .6)
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 36px;
  margin-top: 48px
}

.feat-icon {
  width: 44px;
  height: 44px;
  background: rgba(255, 255, 255, .1);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  margin-bottom: 16px
}

.feat-title {
  font-size: 18px;
  font-weight: 600;
  color: #fff;
  margin-bottom: 8px;
  letter-spacing: -.02em
}

.feat-desc {
  font-size: 14px;
  color: rgba(255, 255, 255, .6);
  line-height: 1.6;
  font-weight: 300
}

/* ─── FILTERS BAR ─── */
.filters-bar {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  padding: 14px 28px;
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap
}

.filter-chip {
  padding: 7px 14px;
  border-radius: 980px;
  border: 1px solid var(--border2);
  font-size: 13px;
  background: var(--surface);
  cursor: pointer;
  font-family: inherit;
  color: var(--text);
  transition: all .2s
}

.filter-chip:hover {
  border-color: var(--accent);
  color: var(--accent)
}

.filter-chip.active {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent)
}

.filter-select {
  padding: 7px 14px;
  border-radius: 980px;
  border: 1px solid var(--border2);
  font-size: 13px;
  background: var(--surface);
  cursor: pointer;
  font-family: inherit;
  color: var(--text);
  outline: none;
  appearance: none;
  padding-right: 28px
}

/* ─── LISTING PAGE ─── */
.listing-hero {
  height: 420px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 80px;
  background: linear-gradient(135deg, #d4e3f5, #a8c8f0)
}

.listing-body {
  max-width: 1000px;
  margin: 0 auto;
  padding: 40px 24px;
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 40px
}

.listing-main h1 {
  font-size: 32px;
  font-weight: 700;
  letter-spacing: -.03em;
  margin-bottom: 6px
}

.listing-address {
  color: var(--text2);
  font-size: 15px;
  margin-bottom: 24px
}

.listing-stats {
  display: flex;
  gap: 24px;
  margin-bottom: 28px;
  padding: 20px;
  background: var(--bg);
  border-radius: var(--rs)
}

.l-stat {
  text-align: center;
  flex: 1
}

.l-stat-num {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -.03em
}

.l-stat-label {
  font-size: 12px;
  color: var(--text3);
  margin-top: 2px
}

.listing-desc {
  font-size: 15px;
  line-height: 1.7;
  color: var(--text);
  font-weight: 300
}

.listing-sidebar {
  position: sticky;
  top: 72px
}

.sidebar-card {
  background: var(--surface);
  border-radius: var(--r);
  padding: 28px;
  box-shadow: var(--shadow)
}

.sidebar-price {
  font-size: 30px;
  font-weight: 700;
  letter-spacing: -.04em;
  margin-bottom: 4px
}

.sidebar-sub {
  font-size: 13px;
  color: var(--text3);
  margin-bottom: 20px
}

/* ─── PROFILE ─── */
.profile-hero {
  background: linear-gradient(180deg, #e8eaf0, #f5f5f7);
  padding: 60px 24px;
  text-align: center
}

.avatar-big {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  background: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 36px;
  margin: 0 auto 16px;
  color: #fff;
  font-weight: 700
}

.profile-name {
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -.03em
}

.profile-email {
  font-size: 14px;
  color: var(--text3);
  margin-top: 4px
}

.tabs {
  display: flex;
  gap: 0;
  border-bottom: 1px solid var(--border);
  padding: 0 28px;
  background: var(--surface);
  overflow-x: auto
}

.tab {
  padding: 14px 20px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  border: none;
  background: transparent;
  color: var(--text2);
  border-bottom: 2px solid transparent;
  transition: all .2s;
  white-space: nowrap;
  font-family: inherit
}

.tab.active {
  color: var(--accent);
  border-bottom-color: var(--accent)
}

.tab-content {
  display: none
}

.tab-content.active {
  display: block
}

/* ─── NOTIFICATIONS ─── */
.toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: var(--text);
  color: #fff;
  padding: 14px 20px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 500;
  box-shadow: 0 8px 30px rgba(0, 0, 0, .25);
  z-index: 999;
  transform: translateY(80px);
  transition: transform .3s cubic-bezier(.34, 1.56, .64, 1);
  pointer-events: none
}

.toast.show {
  transform: translateY(0)
}

.toast.success {
  background: #34c759
}

.toast.error {
  background: #ff3b30
}

/* ─── EMPTY STATE ─── */
.empty-state {
  text-align: center;
  padding: 60px 24px;
  color: var(--text3)
}

.empty-state .es-icon {
  font-size: 52px;
  margin-bottom: 16px
}

.empty-state h3 {
  font-size: 18px;
  font-weight: 600;
  color: var(--text2);
  margin-bottom: 8px
}

.empty-state p {
  font-size: 14px;
  max-width: 300px;
  margin: 0 auto
}

/* ─── PAGE HEADERS ─── */
.page-header {
  padding: 60px 28px 40px;
  max-width: 1200px;
  margin: 0 auto
}

.page-header h1 {
  font-size: clamp(32px, 4vw, 44px);
  font-weight: 700;
  letter-spacing: -.03em
}

.page-header p {
  font-size: 16px;
  color: var(--text2);
  font-weight: 300;
  margin-top: 8px
}

/* ─── ABOUT / CONTACT ─── */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  margin-top: 40px
}

.about-img {
  height: 400px;
  background: linear-gradient(135deg, #d4e3f5, #a8c8f0);
  border-radius: var(--r);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 80px
}

.about-text h2 {
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -.03em;
  margin-bottom: 16px
}

.about-text p {
  font-size: 15px;
  color: var(--text2);
  line-height: 1.7;
  margin-bottom: 16px;
  font-weight: 300
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 20px;
  margin-top: 40px
}

.team-card {
  background: var(--surface);
  border-radius: var(--r);
  padding: 24px;
  text-align: center;
  box-shadow: var(--shadow)
}

.team-avatar {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  margin: 0 auto 12px
}

.team-name {
  font-size: 15px;
  font-weight: 600
}

.team-role {
  font-size: 12px;
  color: var(--text3);
  margin-top: 3px
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  margin-top: 40px
}

.contact-card {
  background: var(--surface);
  border-radius: var(--r);
  padding: 32px;
  box-shadow: var(--shadow)
}

.contact-card h3 {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 16px
}

/* ─── VALUATION ─── */
.valuation-result {
  background: linear-gradient(135deg, #0071e3, #0051a3);
  color: #fff;
  border-radius: var(--r);
  padding: 40px;
  text-align: center;
  margin-top: 24px
}

.val-price {
  font-size: 44px;
  font-weight: 700;
  letter-spacing: -.04em
}

.val-label {
  font-size: 14px;
  opacity: .8;
  margin-top: 6px
}

.val-range {
  font-size: 14px;
  opacity: .7;
  margin-top: 8px
}

/* ─── MESSAGES ─── */
.messages-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  height: calc(100vh - 52px)
}

.msg-list {
  border-right: 1px solid var(--border);
  overflow-y: auto;
  background: var(--surface)
}

.msg-item {
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
  cursor: pointer;
  transition: background .15s
}

.msg-item:hover {
  background: var(--bg)
}

.msg-item.active {
  background: rgba(0, 113, 227, .06)
}

.msg-name {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 3px
}

.msg-preview {
  font-size: 12px;
  color: var(--text3);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis
}

.msg-time {
  font-size: 11px;
  color: var(--text3)
}

.chat-area {
  display: flex;
  flex-direction: column;
  height: 100%
}

.chat-header {
  padding: 16px 24px;
  border-bottom: 1px solid var(--border);
  background: var(--surface);
  font-weight: 600
}

.chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  background: var(--bg)
}

.chat-bubble {
  max-width: 60%;
  padding: 10px 14px;
  border-radius: 16px;
  font-size: 14px;
  line-height: 1.5
}

.bubble-in {
  background: var(--surface);
  color: var(--text);
  align-self: flex-start;
  border-bottom-left-radius: 4px
}

.bubble-out {
  background: var(--accent);
  color: #fff;
  align-self: flex-end;
  border-bottom-right-radius: 4px
}

.chat-input-row {
  display: flex;
  gap: 10px;
  padding: 16px 24px;
  border-top: 1px solid var(--border);
  background: var(--surface)
}

.chat-input {
  flex: 1;
  padding: 10px 14px;
  border: 1px solid var(--border2);
  border-radius: 980px;
  font-size: 14px;
  outline: none;
  font-family: inherit
}

.chat-input:focus {
  border-color: var(--accent)
}

/* ─── BREADCRUMB ─── */
.breadcrumb {
  font-size: 13px;
  color: var(--text3);
  margin-bottom: 20px;
  display: flex;
  gap: 6px;
  align-items: center
}

.breadcrumb a {
  color: var(--accent);
  cursor: pointer;
  text-decoration: none
}

.breadcrumb a:hover {
  text-decoration: underline
}

/* ─── FOOTER ─── */
footer {
  background: var(--text);
  color: rgba(255, 255, 255, .7);
  padding: 60px 28px 40px
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto
}

.footer-top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px
}

.footer-brand {
  font-size: 16px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 10px
}

.footer-desc {
  font-size: 13px;
  line-height: 1.6;
  max-width: 240px
}

.footer-col h4 {
  font-size: 12px;
  font-weight: 600;
  color: #fff;
  margin-bottom: 14px;
  text-transform: uppercase;
  letter-spacing: .04em
}

.footer-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 9px
}

.footer-col a {
  font-size: 13px;
  color: rgba(255, 255, 255, .6);
  text-decoration: none;
  cursor: pointer;
  transition: color .2s
}

.footer-col a:hover {
  color: #fff
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, .1);
  padding-top: 20px;
  display: flex;
  justify-content: space-between;
  font-size: 12px
}

/* ─── UTILITIES ─── */
.flex {
  display: flex
}

.items-center {
  align-items: center
}

.justify-between {
  justify-content: space-between
}

.gap-2 {
  gap: 8px
}

.gap-3 {
  gap: 12px
}

.gap-4 {
  gap: 16px
}

.mt-4 {
  margin-top: 16px
}

.mt-6 {
  margin-top: 24px
}

.mt-8 {
  margin-top: 32px
}

.text-center {
  text-align: center
}

.divider {
  height: 1px;
  background: var(--border);
  margin: 20px 0
}

.badge {
  display: inline-block;
  padding: 3px 8px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 600
}

.badge-blue {
  background: rgba(0, 113, 227, .1);
  color: var(--accent)
}

.badge-green {
  background: rgba(52, 199, 89, .15);
  color: #1a8a3a
}

.badge-orange {
  background: rgba(255, 149, 0, .15);
  color: #c47800
}

@media(max-width:768px) {
  .nav-links {
    display: none
  }

  .footer-top {
    grid-template-columns: 1fr 1fr
  }

  .listing-body {
    grid-template-columns: 1fr
  }

  .about-grid,
  .contact-grid {
    grid-template-columns: 1fr
  }

  .messages-layout {
    grid-template-columns: 1fr
  }

  .hero-stats {
    gap: 24px
  }

  .form-row {
    grid-template-columns: 1fr
  }
}

/* ═════════════════════════════════════════════
   AI CHATBOT STYLES
═════════════════════════════════════════════ */
.chatbot-toggle {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--blue);
  color: white;
  border: none;
  box-shadow: 0 10px 25px rgba(0, 122, 255, 0.4);
  cursor: pointer;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.chatbot-toggle:hover {
  transform: scale(1.1);
  box-shadow: 0 15px 30px rgba(0, 122, 255, 0.6);
}

.chatbot-toggle .bot-icon {
  font-size: 28px;
  line-height: 1;
}

.chatbot-window {
  position: fixed;
  bottom: 100px;
  right: 24px;
  width: 360px;
  max-width: calc(100vw - 48px);
  height: 500px;
  max-height: calc(100vh - 120px);
  background: var(--glass);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border);
  border-radius: var(--r);
  box-shadow: var(--shadow-lg);
  z-index: 9998;
  display: flex;
  flex-direction: column;
  opacity: 0;
  pointer-events: none;
  transform: translateY(20px);
  transition: all 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.chatbot-window.visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.bot-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  box-shadow: inset 0 2px 4px rgba(255, 255, 255, 0.1);
}

.chatbot-window .chat-header {
  background: var(--blue);
  background: linear-gradient(135deg, var(--blue), #005ce6);
}

.chatbot-window .bubble-in {
  background: white;
  border: 1px solid var(--border);
  color: var(--text);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.02);
}

.chatbot-window .bubble-out {
  background: var(--blue);
  background: linear-gradient(to bottom, var(--blue), #0066ff);
  color: white;
}

.typing-dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  background: var(--text3);
  border-radius: 50%;
  margin: 0 2px;
  animation: typing 1.4s infinite ease-in-out both;
}

.typing-dot:nth-child(1) {
  animation-delay: -0.32s;
}

.typing-dot:nth-child(2) {
  animation-delay: -0.16s;
}

@keyframes typing {

  0%,
  80%,
  100% {
    transform: scale(0);
  }

  40% {
    transform: scale(1);
  }
}

/* ═════════════════════════════════════════════
   UTLEIEKALKULATOR (RENTAL CALCULATOR)
═════════════════════════════════════════════ */
.calc-grid {
  display: grid;
  grid-template-columns: 1fr 400px;
  gap: 40px;
  align-items: flex-start;
}

@media (max-width: 900px) {
  .calc-grid {
    grid-template-columns: 1fr;
  }
}

.calc-inputs {
  background: var(--surface);
  border-radius: var(--r);
  padding: 32px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.calc-section {
  margin-bottom: 32px;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--border);
}

.calc-section:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}

.calc-section h3 {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 20px;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 8px;
}

.calc-results {
  position: sticky;
  top: 100px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.res-card {
  background: var(--surface);
  border-radius: var(--r);
  padding: 24px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.highlight-res {
  background: linear-gradient(135deg, rgba(0, 122, 255, 0.05), rgba(0, 122, 255, 0.15));
  border: 1px solid rgba(0, 122, 255, 0.3);
}

.res-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.res-label {
  font-size: 14px;
  color: var(--text2);
  font-weight: 500;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.res-value {
  font-size: 32px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text);
}

.highlight-res .res-value {
  color: var(--blue);
}

.res-sub {
  font-size: 13px;
  color: var(--text3);
  margin-top: 4px;
}

.res-breakdown {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
  font-size: 13px;
}

.bd-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 8px;
}

.bd-row.total {
  font-weight: 600;
  color: var(--text);
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px dashed var(--border);
}

/* TOOLTIPS */
.tooltip-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--text3);
  color: white;
  font-size: 10px;
  font-weight: 700;
  margin-left: 6px;
  cursor: help;
  position: relative;
  transition: background 0.2s;
}

.tooltip-icon:hover {
  background: var(--blue);
}

.tooltip-icon::after {
  content: attr(data-tooltip);
  position: absolute;
  bottom: 150%;
  left: 50%;
  transform: translateX(-50%) translateY(10px);
  width: 240px;
  padding: 12px;
  background: #2c2c2e;
  color: #fff;
  font-size: 13px;
  font-weight: 400;
  line-height: 1.4;
  border-radius: 8px;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
  opacity: 0;
  visibility: hidden;
  transition: all 0.2s cubic-bezier(0.2, 0.8, 0.2, 1);
  pointer-events: none;
  z-index: 1000;
  text-align: left;
}

.tooltip-icon::before {
  content: '';
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(10px);
  border-width: 6px;
  border-style: solid;
  border-color: #2c2c2e transparent transparent transparent;
  opacity: 0;
  visibility: hidden;
  transition: all 0.2s;
}

.tooltip-icon:hover::after,
.tooltip-icon:hover::before {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

/* ═════════════════════════════════════════════
   MORE FILTERS PANEL (Zillow-style)
═════════════════════════════════════════════ */
.btn-more-filters {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 500;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text);
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
}

.btn-more-filters:hover {
  background: var(--blue);
  color: white;
  border-color: var(--blue);
}

.btn-more-filters.active {
  background: var(--blue);
  color: white;
  border-color: var(--blue);
}

.more-arrow {
  transition: transform 0.3s;
  font-size: 10px;
}

.btn-more-filters.active .more-arrow {
  transform: rotate(180deg);
}

.filter-badge {
  background: #ff3b30;
  color: white;
  font-size: 11px;
  font-weight: 700;
  min-width: 18px;
  height: 18px;
  border-radius: 9px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 5px;
}

.more-filters-panel {
  max-height: 0;
  overflow: hidden;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  transition: max-height 0.4s cubic-bezier(0.2, 0.8, 0.2, 1), padding 0.3s;
  padding: 0 28px;
}

.more-filters-panel.open {
  max-height: 800px;
  padding: 24px 28px;
  border-bottom: 1px solid var(--border);
}

.mfp-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

@media (max-width: 900px) {
  .mfp-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .mfp-grid {
    grid-template-columns: 1fr;
  }
}

.mfp-section {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.mfp-section-wide {
  grid-column: span 1;
}

.mfp-section h4 {
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 10px;
  letter-spacing: 0.01em;
}

.mfp-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.facility-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.chip-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 20px;
  background: var(--bg);
  border: 1px solid var(--border);
  font-size: 13px;
  color: var(--text2);
  cursor: pointer;
  transition: all 0.2s;
  user-select: none;
}

.chip-label:hover {
  border-color: var(--blue);
  color: var(--blue);
}

.chip-label:has(input:checked) {
  background: var(--blue);
  color: white;
  border-color: var(--blue);
}

.chip-label input[type="checkbox"] {
  display: none;
}

/* ═════════════════════════════════════════════
   ENHANCED MAP CONTROLS
═════════════════════════════════════════════ */
.map-overlay-panel {
  position: absolute;
  top: 16px;
  left: 16px;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  padding: 14px;
  border-radius: 16px;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.12);
  width: 370px;
  border: 1px solid rgba(255, 255, 255, 0.5);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.map-search-bar {
  display: flex;
  align-items: center;
  background: rgba(0, 0, 0, 0.05);
  border-radius: 12px;
  padding: 6px 12px;
}

.map-search-btn {
  background: var(--accent, #0071e3);
  color: white;
  border: none;
  border-radius: 10px;
  padding: 6px 14px;
  font-weight: 600;
  font-size: 13px;
  cursor: pointer;
  white-space: nowrap;
}

.map-poi-row {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.map-poi-btn {
  padding: 5px 10px;
  font-size: 12px;
  border: 1px solid var(--border);
  background: #fff;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s;
  font-family: inherit;
}

.map-poi-btn:hover {
  border-color: var(--blue);
  color: var(--blue);
}

.map-poi-btn.active {
  background: var(--blue);
  color: white;
  border-color: var(--blue);
}

.map-compact-filters {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.map-filter-sel {
  flex: 1;
  min-width: 0;
  padding: 5px 6px;
  font-size: 11px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #fff;
  cursor: pointer;
  font-family: inherit;
  color: var(--text);
}

/* Map Style Switcher */
.map-style-switcher {
  position: absolute;
  bottom: 32px;
  left: 16px;
  z-index: 1000;
  display: flex;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.5);
}

.map-style-btn {
  padding: 8px 14px;
  font-size: 12px;
  font-weight: 500;
  border: none;
  background: transparent;
  cursor: pointer;
  color: var(--text2);
  transition: all 0.2s;
  font-family: inherit;
}

.map-style-btn.active {
  background: var(--blue);
  color: white;
}

.map-style-btn:hover:not(.active) {
  background: rgba(0, 0, 0, 0.06);
}

/* Walk Around Button */
.map-walkaround-btn {
  position: absolute;
  bottom: 100px;
  right: 16px;
  z-index: 1000;
  padding: 10px 16px;
  font-size: 13px;
  font-weight: 600;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 12px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.15);
  cursor: pointer;
  transition: all 0.2s;
  font-family: inherit;
  color: var(--text);
}

.map-walkaround-btn:hover {
  background: var(--blue);
  color: white;
}

.map-walkaround-btn.active {
  background: var(--blue);
  color: white;
}

/* Street View Panel */
.streetview-panel {
  position: absolute;
  top: 0;
  right: 0;
  width: 50%;
  height: 100%;
  z-index: 1001;
  background: #000;
  border-radius: 0;
  display: none;
  flex-direction: column;
  box-shadow: -4px 0 24px rgba(0, 0, 0, 0.3);
}

.streetview-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 16px;
  background: rgba(0, 0, 0, 0.8);
  color: white;
  font-size: 14px;
  font-weight: 600;
}

.streetview-close {
  background: rgba(255, 255, 255, 0.2);
  border: none;
  color: white;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}

.streetview-close:hover {
  background: rgba(255, 255, 255, 0.4);
}

@media (max-width: 768px) {
  .map-overlay-panel {
    width: calc(100% - 32px);
    top: 8px;
    left: 8px;
  }

  .streetview-panel {
    width: 100%;
    height: 50%;
    top: auto;
    bottom: 0;
  }

  .map-style-switcher {
    bottom: 16px;
    left: 8px;
  }

  .map-walkaround-btn {
    bottom: 80px;
    right: 8px;
  }
}

/* Zillow-style price markers */
.custom-price-icon {
  background: none !important;
  border: none !important;
}

.map-price-marker {
  background: var(--blue, #0071e3);
  color: white;
  font-size: 12px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 16px;
  white-space: nowrap;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
  text-align: center;
  cursor: pointer;
  transition: transform 0.15s, background 0.15s;
}

.map-price-marker:hover {
  background: #0051a3;
  transform: scale(1.15);
}

.map-popup-card {
  cursor: pointer;
  text-align: center;
  padding: 4px;
}

.map-popup-card h4 {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 2px;
}

.map-popup-card p {
  font-size: 13px;
  color: #666;
}
/* ═════════════════════════════════════════════
   CHATBOT FIXES — outgoing message visibility
═════════════════════════════════════════════ */
.bubble-out {
  background: var(--accent, #0071e3) !important;
  color: #fff !important;
  align-self: flex-end;
  margin-left: auto;
}

.bubble-in {
  background: var(--surface, #f5f5f7);
  color: var(--text, #1d1d1f);
  align-self: flex-start;
}

.chat-bubble {
  max-width: 80%;
  padding: 10px 14px;
  border-radius: 16px;
  font-size: 14px;
  line-height: 1.5;
  word-break: break-word;
}

.chat-messages {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 16px;
  overflow-y: auto;
  flex: 1;
}

/* ═════════════════════════════════════════════
   MER FILTERS PANEL VISIBILITY (Kjøp page)
═════════════════════════════════════════════ */
#mer-panel,
.mer-panel,
[id$="-mer-panel"] {
  background: var(--surface, #fff) !important;
  color: var(--text, #1d1d1f) !important;
}

#mer-panel label,
.mer-panel label {
  color: var(--text, #1d1d1f) !important;
}

#mer-panel select,
#mer-panel input,
.mer-panel select,
.mer-panel input {
  color: var(--text, #1d1d1f) !important;
  background: var(--bg, #f5f5f7) !important;
  border: 1px solid var(--border, #ddd) !important;
}

/* Facility / filter chip fixes */
.facility-chips label,
.chip-label,
.filter-chip label {
  color: var(--text, #1d1d1f) !important;
}

/* ═════════════════════════════════════════════
   MAP POI BUTTON ACTIVE STATE — visibility
═════════════════════════════════════════════ */
.map-poi-btn.active {
  background: var(--blue, #0071e3) !important;
  color: #fff !important;
  border-color: var(--blue, #0071e3) !important;
}

.map-style-btn.active {
  background: var(--blue, #0071e3) !important;
  color: #fff !important;
}

.map-walkaround-btn.active {
  background: var(--blue, #0071e3) !important;
  color: #fff !important;
}

/* ═════════════════════════════════════════════
   MOBILE OPTIMISATION
═════════════════════════════════════════════ */
@media (max-width: 768px) {
  /* Nav */
  .nav-links { display: none; }
  .nav { padding: 0 12px; }

  /* Page headers */
  .page-header {
    padding: 32px 16px 24px;
  }
  .page-header h1 { font-size: clamp(24px, 6vw, 40px); }

  /* Sections */
  .section { padding: 24px 16px; }

  /* Cards grid — single column */
  .cards-grid,
  .listings-grid,
  .home-grid {
    grid-template-columns: 1fr !important;
    gap: 12px;
  }

  /* About grid */
  .about-grid {
    grid-template-columns: 1fr !important;
  }
  .about-img {
    font-size: 60px !important;
    text-align: center;
  }

  /* Team grid */
  .team-grid {
    grid-template-columns: repeat(2, 1fr) !important;
  }

  /* Filter bars — scrollable row */
  .filter-bar {
    flex-wrap: nowrap !important;
    overflow-x: auto;
    padding-bottom: 6px;
    -webkit-overflow-scrolling: touch;
    gap: 8px !important;
  }
  .filter-bar select,
  .filter-bar input {
    min-width: 110px;
    font-size: 13px;
  }

  /* Buy / Rent listings filter area */
  .buy-filters,
  .rent-filters {
    flex-wrap: nowrap;
    overflow-x: auto;
  }

  /* Map overlay — full width on mobile */
  .map-overlay-panel {
    width: calc(100vw - 20px) !important;
    left: 10px !important;
    right: 10px !important;
    top: 10px !important;
  }
  .map-compact-filters {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
  }
  .map-poi-row {
    overflow-x: auto;
    flex-wrap: nowrap !important;
    padding-bottom: 4px;
  }
  .map-style-switcher {
    bottom: 12px !important;
    left: 10px !important;
  }
  .map-walkaround-btn {
    bottom: 68px !important;
    right: 10px !important;
    font-size: 12px !important;
    padding: 8px 10px !important;
  }
  .streetview-panel {
    width: 100% !important;
    height: 55% !important;
    top: auto !important;
    bottom: 0 !important;
  }

  /* Chatbot */
  .chatbot-window {
    width: calc(100vw - 20px) !important;
    right: 10px !important;
    bottom: 70px !important;
    height: 70vh !important;
  }

  /* Modals */
  .modal-box {
    width: calc(100vw - 32px) !important;
    margin: 16px !important;
    padding: 24px 20px !important;
  }

  /* Cards */
  .card { border-radius: 12px; }

  /* Contact grid */
  .contact-grid {
    grid-template-columns: 1fr !important;
  }
}

@media (max-width: 480px) {
  /* Extra small phones */
  .nav-auth { gap: 8px; }
  .btn { padding: 8px 14px; font-size: 13px; }
  .team-grid {
    grid-template-columns: 1fr 1fr !important;
  }
  .page-header h1 { font-size: 22px; }
}

/* ═════════════════════════════════════════════
   ZILLOW-INSPIRED LISTING DETAIL PAGE
═════════════════════════════════════════════ */

/* Hero */
.listing-hero {
  height: 400px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}
.listing-hero-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}
.listing-hero-emoji {
  font-size: 100px;
  filter: drop-shadow(0 8px 24px rgba(0,0,0,.12));
}
.listing-hero-badge {
  background: var(--accent, #0071e3);
  color: #fff;
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;
}
.listing-hero-actions {
  position: absolute;
  bottom: 16px;
  right: 16px;
  display: flex;
  gap: 8px;
}
.listing-action-btn {
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(8px);
  border: none;
  border-radius: 20px;
  padding: 8px 16px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: background .15s;
  color: #1d1d1f;
}
.listing-action-btn:hover { background: #fff; }

/* Two-column layout */
.listing-layout {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 32px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 32px 24px 64px;
  align-items: start;
}
@media(max-width:900px) {
  .listing-layout { grid-template-columns: 1fr; }
}

/* Top strip */
.listing-top-strip {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}
.listing-main-price {
  font-size: 32px;
  font-weight: 800;
  letter-spacing: -.03em;
  color: var(--text, #1d1d1f);
}
.listing-main-address {
  font-size: 15px;
  color: var(--text2, #6e6e73);
  margin-top: 4px;
}
.listing-type-pill {
  background: var(--bg, #f5f5f7);
  border-radius: 20px;
  padding: 6px 14px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text2, #6e6e73);
  white-space: nowrap;
  align-self: flex-start;
  margin-top: 8px;
}

/* Zillow-style KPI bar */
.listing-stats-bar {
  display: flex;
  align-items: center;
  gap: 0;
  background: var(--surface, #fff);
  border: 1px solid var(--border, #e5e5ea);
  border-radius: 14px;
  padding: 20px 28px;
  margin-bottom: 32px;
  box-shadow: 0 1px 4px rgba(0,0,0,.06);
}
.l-kpi {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: 1;
}
.l-kpi-num {
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -.03em;
  color: var(--text, #1d1d1f);
}
.l-kpi-lbl {
  font-size: 12px;
  color: var(--text3, #aeaeb2);
  margin-top: 2px;
  text-transform: lowercase;
}
.l-kpi-div {
  width: 1px;
  height: 36px;
  background: var(--border, #e5e5ea);
  flex-shrink: 0;
}

/* Sections */
.listing-section {
  padding-bottom: 32px;
  border-bottom: 1px solid var(--border, #e5e5ea);
  margin-bottom: 32px;
}
.listing-section:last-of-type { border-bottom: none; }
.listing-section-title {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 16px;
  color: var(--text, #1d1d1f);
}
.listing-desc-text {
  font-size: 15px;
  line-height: 1.75;
  color: var(--text2, #3a3a3c);
}

/* Facts grid — Zillow style */
.listing-facts-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}
@media(max-width:600px) {
  .listing-facts-grid { grid-template-columns: 1fr; }
}
.listing-fact-group { }
.listing-fact-heading {
  font-size: 13px;
  font-weight: 700;
  color: var(--text, #1d1d1f);
  margin-bottom: 10px;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--border, #e5e5ea);
}
.listing-fact-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 7px;
}
.listing-fact-list li {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  color: var(--text2, #6e6e73);
  gap: 8px;
}
.listing-fact-list li strong {
  color: var(--text, #1d1d1f);
  font-weight: 600;
  text-align: right;
}

/* Price analysis cards */
.price-analysis-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}
.price-analysis-card {
  background: var(--bg, #f5f5f7);
  border-radius: 12px;
  padding: 18px 20px;
}
.pa-label {
  font-size: 12px;
  color: var(--text3, #aeaeb2);
  margin-bottom: 6px;
  font-weight: 500;
}
.pa-value {
  font-size: 18px;
  font-weight: 700;
  color: var(--text, #1d1d1f);
  letter-spacing: -.02em;
}
.pa-value.accent { color: var(--accent, #0071e3); }

/* Owner warning */
.listing-owner-warning {
  margin-top: 20px;
  padding: 14px 18px;
  background: rgba(255,149,0,.1);
  border-radius: 10px;
  font-size: 13px;
  color: #c47800;
  border-left: 3px solid #ff9500;
}

/* ── SIDEBAR ── */
.listing-sidebar-col {
  position: sticky;
  top: 72px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.listing-sidebar-card {
  background: var(--surface, #fff);
  border: 1px solid var(--border, #e5e5ea);
  border-radius: 18px;
  padding: 24px;
  box-shadow: 0 2px 16px rgba(0,0,0,.08);
}
.sidebar-price-main {
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -.03em;
  color: var(--text, #1d1d1f);
  margin-bottom: 4px;
}
.sidebar-price-sub {
  font-size: 13px;
  color: var(--text3, #aeaeb2);
  margin-bottom: 20px;
}
.sidebar-cta {
  width: 100%;
  margin-bottom: 10px;
  display: block;
}
.sidebar-fav-btn {
  width: 100%;
  background: var(--bg, #f5f5f7);
  border: none;
  border-radius: 10px;
  padding: 11px;
  font-size: 13px;
  cursor: pointer;
  font-family: inherit;
  color: var(--text, #1d1d1f);
  transition: background .15s;
}
.sidebar-fav-btn:hover { background: var(--border, #e5e5ea); }

/* ── MORTGAGE CARD ── */
.mortgage-card { padding: 20px; }
.mortgage-title {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 16px;
  color: var(--text, #1d1d1f);
}
.mortgage-row {
  margin-bottom: 12px;
}
.mortgage-row label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: var(--text2, #6e6e73);
  margin-bottom: 5px;
}
.mortgage-input-wrap {
  display: flex;
  align-items: center;
  background: var(--bg, #f5f5f7);
  border: 1px solid var(--border, #e5e5ea);
  border-radius: 10px;
  overflow: hidden;
}
.mortgage-input {
  flex: 1;
  border: none;
  background: transparent;
  padding: 9px 12px;
  font-size: 14px;
  font-family: inherit;
  color: var(--text, #1d1d1f);
  outline: none;
  min-width: 0;
}
.mortgage-unit {
  padding: 0 12px;
  font-size: 13px;
  color: var(--text3, #aeaeb2);
  font-weight: 600;
  border-left: 1px solid var(--border, #e5e5ea);
  height: 38px;
  display: flex;
  align-items: center;
  background: var(--surface, #fff);
}
.mortgage-result {
  margin-top: 16px;
  padding: 16px;
  background: linear-gradient(135deg, #0071e3 0%, #005bb5 100%);
  border-radius: 12px;
  color: #fff;
  text-align: center;
}
.mort-res-label {
  font-size: 11px;
  opacity: .8;
  margin-bottom: 6px;
  font-weight: 500;
}
.mort-res-amount {
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -.02em;
}
.mort-res-details {
  font-size: 11px;
  opacity: .75;
  margin-top: 6px;
  line-height: 1.5;
}


/* ─── BOLIGTJENESTER GRID ─── */
.services-hero {
  background: white;
  padding: 40px 28px 20px;
  text-align: center;
  border-bottom: 1px solid var(--border);
}
.services-hero-content { max-width: 700px; margin: 0 auto; }
.services-hero h1 { font-size: 32px; font-weight: 700; margin-bottom: 8px; letter-spacing: -0.5px; color: var(--text); }
.services-hero p { font-size: 16px; color: var(--text2); margin-bottom: 0;}

.services-content { max-width: 1200px; margin: 0 auto; padding: 40px 28px 60px; }
.services-grid-title h2 { font-size: 22px; font-weight: 700; margin-bottom: 24px; color: var(--text); }

.services-grid {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(2, 1fr);
}
@media (min-width: 768px) {
  .services-grid { grid-template-columns: repeat(3, 1fr); gap: 24px; }
}
@media (min-width: 1024px) {
  .services-grid { grid-template-columns: repeat(4, 1fr); gap: 24px; }
}

.service-box {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 32px 20px;
  text-align: center;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0,0,0,0.04);
  transition: all 0.25s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
}
.service-box:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 24px rgba(0,0,0,0.08);
  border-color: var(--border2);
}
.service-icon {
  font-size: 42px;
  line-height: 1;
}
.service-label {
  font-size: 16px;
  font-weight: 600;
  color: var(--text);
  letter-spacing: -0.2px;
}


/* ─── MEGLERE LOCATOR (APPLE-STYLE) ─── */
#page-meglere {
  padding-top: 52px;
  height: 100vh;
  overflow: hidden;
}
.meglere-layout {
  display: flex;
  height: 100%;
  flex-direction: column-reverse;
  background: var(--bg);
}
.meglere-sidebar {
  flex: 1;
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border-right: 1px solid var(--border);
  z-index: 10;
  box-shadow: 2px 0 20px rgba(0,0,0,0.04);
}
.meglere-sidebar-header {
  padding: 24px 24px 20px;
  border-bottom: 1px solid var(--border);
  background: var(--surface);
}
.meglere-sidebar-header h2 {
  font-size: 26px; font-weight: 700; margin: 0 0 16px 0; color: var(--text); letter-spacing: -0.5px;
}
.meglere-sidebar-header select {
  width: 100%; padding: 12px 16px; border-radius: 12px; border: 1px solid var(--border2);
  font-size: 15px; font-weight: 500; background: var(--bg); color: var(--text);
  outline: none; appearance: none;
  background-image: url("data:image/svg+xml;charset=US-ASCII,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2214%22%20height%3D%2210%22%20viewBox%3D%220%200%2014%2010%22%3E%3Cpath%20fill%3D%22%2386868b%22%20d%3D%22M7%2010L0%200h14z%22%2F%3E%3C%2Fsvg%3E");
  background-repeat: no-repeat; background-position: right 16px center; background-size: 10px;
  cursor: pointer;
}
.meglere-list {
  flex: 1; overflow-y: auto; padding: 20px 24px;
  display: flex; flex-direction: column; gap: 12px;
}
.meglere-map-container {
  flex: 1; position: relative;
}
#meglere-map {
  width: 100%; height: 100%; background: #e5e5ea;
}

/* Responsiveness */
@media (min-width: 768px) {
  .meglere-layout { flex-direction: row; }
  .meglere-sidebar { width: 420px; flex: none; }
  .meglere-map-container { flex: 1; }
}

/* Office Cards */
.office-card {
  display: flex; gap: 16px; padding: 18px; 
  border-radius: 16px; border: 1px solid var(--border);
  background: var(--surface);
  cursor: pointer; transition: all 0.2s ease;
}
.office-card:hover {
  background: var(--surface2); transform: translateY(-2px); box-shadow: var(--shadow); border-color: var(--border2);
}
.office-icon {
  width: 48px; height: 48px; border-radius: 14px; background: var(--bg);
  display: flex; align-items: center; justify-content: center; font-size: 24px; flex-shrink: 0;
}
.office-info { flex: 1; }
.office-info h3 { font-size: 16px; font-weight: 600; margin-bottom: 4px; color: var(--text); letter-spacing: -0.2px;}
.office-info p { font-size: 13px; color: var(--text2); margin-bottom: 8px; line-height: 1.4;}
.office-tags { display: flex; gap: 6px; flex-wrap: wrap; }
.office-tag { font-size: 11px; padding: 4px 10px; background: var(--bg); border-radius: 12px; font-weight: 600; color: var(--text2);}
.office-tag.highlight { background: rgba(0, 113, 227, 0.1); color: var(--accent); }

.list-section-title {
  font-size: 12px; font-weight: 700; color: var(--text3);
  text-transform: uppercase; letter-spacing: 0.5px;
  margin: 16px 0 8px 0; padding-left: 4px;
}

/* ── MAP HEIGHT FIX ── */
.meglere-map-container {
  flex: 1;
  position: relative;
  min-height: 50vh; /* Sikrer at kartet ikke kollapser på mobil */
}
#meglere-map {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
@media (min-width: 768px) {
  .meglere-map-container { min-height: 100%; }
}
