/* ===== DESIGN TOKENS ===== */
:root {
  /* Backgrounds */
  --clr-bg:           #ffffff;
  --clr-bg-deep:      #f8f9fa;
  --clr-surface:      #ffffff;
  --clr-surface-2:    #f0f4f8;

  /* Text */
  --clr-text:         #1a1a2e;
  --clr-text-sec:     #314158;
  --clr-text-dim:     #6b7280;

  /* Borders */
  --clr-border:       #eeeeee;

  /* Brand & Accent */
  --clr-accent:       #38B6FF;
  --clr-accent-blue:  #155dfc;
  --clr-brand-navy:   #1B2C6B;
}

body.dark-mode {
  --clr-bg:           #0f1219;
  --clr-bg-deep:      #0f1219;
  --clr-surface:      #181d27;
  --clr-surface-2:    #181d27;
  --clr-text:         #ffffff;
  --clr-text-sec:     #94a3b8;
  --clr-text-dim:     #6b7280;
  --clr-border:       rgba(255, 255, 255, 0.08);
  --clr-accent:       #38B6FF;
  --clr-accent-blue:  #38B6FF;
}

/* ===== RESET & BASE ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; overflow-x: hidden; }
body {
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  color: #1a1a2e;
  background: #fff;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { text-decoration: none; color: inherit; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
img { max-width: 100%; display: block; }
select { font-family: inherit; }

.container { max-width: 1340px; margin: 0 auto; padding: 0 40px; }
.container-narrow { max-width: 960px; margin: 0 auto; padding: 0 60px; }

/* ===== HEADER ===== */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: #fff;
  border-bottom: 0.8px solid #eee;
  height: 80px;
}
.header-inner {
  max-width: 1520px;
  margin: 0 auto;
  padding: 10px 33px 5px 43px;
  display: flex;
  align-items: center;
  height: 100%;
  gap: 0;
}
/* Logo */
.logo-link { flex-shrink: 0; display: flex; align-items: center; text-decoration: none; }
.logo-wrap { position: relative; width: 189px; height: 52px; margin-top: -10px; }
.logo-house { position: absolute; top: 0; left: 0; width: 189px; height: 46px; }
.logo-wordmark { position: absolute; top: 16px; left: 3px; width: 170px; height: 27px; }
.logo-fill { fill: #1B2C6B; }
.main-nav {
  display: flex;
  align-items: center;
  gap: 3px;
  margin-left: 33px;
}
.header-actions {
  display: flex;
  align-items: center;
  gap: 0px;
  margin-left: auto;
}
.nav-link {
  font-size: 18px;
  font-weight: 400;
  color: #314158;
  transition: color 0.2s;
  white-space: nowrap;
  padding: 8px 9px;
  border-radius: 8px;
  position: relative;
}
/* Hover underline — same for all links */
.nav-link::after {
  content: '';
  position: absolute;
  bottom: 5px;
  left: 9px;
  right: 9px;
  height: 0;
  border-bottom: 0.3px solid #314158;
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.22s cubic-bezier(0.4, 0, 0.2, 1);
}
.nav-link:hover { color: #314158; }
.nav-link:hover::after { transform: scaleX(1); }
/* Търсене uses same ::after as all other links */
/* Active page indicator — colour only, underline on hover */
.nav-link--active {
  color: #314158;
  font-weight: 400;
}
.nav-link--active:hover { color: #314158; }
.nav-link--active:hover::after { transform: scaleX(1); }
.btn-publish {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: #155dfc;
  color: #fff;
  padding: 9px 18px;
  height: 46px;
  border-radius: 11px;
  font-size: 18px;
  font-weight: 400;
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  text-transform: uppercase;
  box-shadow: 0 1px 4px rgba(0,0,0,0.25);
  white-space: nowrap;
  line-height: 21px;
  position: relative;
  overflow: hidden;
  isolation: isolate;
  margin-left: 9px;
}
/* ===== SOLID BLUE BUTTON HOVER GRADIENT ===== */
.btn-publish::after,
.btn-search-hero::after,
.btn-search-main::after,
.btn-explore::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(30.43deg, rgb(89, 181, 247) 0%, rgb(21, 93, 252) 68.27%);
  opacity: 0;
  transition: opacity 0.25s ease;
  z-index: -1;
  pointer-events: none;
}
.btn-publish:hover::after,
.btn-search-hero:hover::after,
.btn-search-main:hover::after,
.btn-explore:hover::after {
  opacity: 1;
}

.btn-publish-icon {
  width: 28px;
  height: 28px;
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid #f1f5f9;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px;
  border: none;
  background: none;
  color: #314158;
  cursor: pointer;
  border-radius: 8px;
  transition: color 0.2s, background 0.2s;
}
.theme-toggle:hover { color: #155dfc; }
.theme-toggle-icon-sun { display: none; }
.theme-toggle img.theme-toggle-icon,
.nav-icon-btn img {
  display: block;
  width: 22px;
  height: 22px;
  object-fit: contain;
  flex-shrink: 0;
}
.nav-account-btn img {
  display: block;
  object-fit: contain;
  flex-shrink: 0;
}
.nav-icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px;
  border: none;
  background: none;
  color: #314158;
  cursor: pointer;
  border-radius: 8px;
  transition: color 0.2s, background 0.2s;
}
.nav-icon-btn:hover { color: #155dfc; }
.nav-account-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 10px 8px 6px;
  border: none;
  background: none;
  color: #314158;
  font-size: 18px;
  cursor: pointer;
  border-radius: 8px;
  white-space: nowrap;
  transition: background 0.2s;
}
.nav-account-btn img[src*="chevron"] {
  position: relative;
  top: 1px;
}
.nav-account-btn:hover { }
.mobile-menu-btn {
  display: none;
  flex-direction: column;
  gap: 5px;
}
.mobile-menu-btn span {
  display: block;
  width: 24px;
  height: 2px;
  background: #333;
  border-radius: 2px;
}

/* ===== HERO ===== */
.hero {
  position: relative;
  min-height: 720px;
  overflow: hidden;
  background: #1a1a2e;
}
.hero-bg-wrap {
  position: absolute;
  inset: -45px -32px;
  overflow: hidden;
}
.hero-bg-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: calc(60% - 15px) 60%;
  display: block;
}
.hero-bg-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(252.52deg, rgba(255,255,255,0.17) 9.54%, rgba(204,204,204,0.17) 97.03%),
    linear-gradient(90deg, rgba(1,7,18,0.66) 0%, rgba(1,7,18,0.66) 100%);
}
.hero-content {
  position: relative;
  z-index: 2;
  max-width: 1895px;
  margin: 0 auto;
  padding: 50px 16px 40px;
}

/* Scroll-down bounce button */
.hero-scroll-btn {
  position: absolute;
  bottom: 18px;
  right: 32px;
  width: 30px;
  height: 42px;
  border-radius: 16px;
  background: #155dfc;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: heroBounce 2s ease infinite;
  transition: background 0.2s;
  box-shadow: 0 2px 12px rgba(0,0,0,0.18);
}
.hero-scroll-btn:hover {
  background: #1a6aff;
}
@keyframes heroBounce {
  0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
  40% { transform: translateY(-10px); }
  60% { transform: translateY(-5px); }
}

.hero-title {
  text-align: center;
  color: #fff;
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  font-size: 48px;
  font-weight: 400;
  line-height: 55px;
  margin-bottom: 40px;
}

.hero-trust-note {
  text-align: center;
  font-size: 14px;
  color: rgba(255,255,255,0.75);
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  margin: 0 0 28px;
  line-height: 1.5;
}

.hero-trust-note strong {
  color: #fff;
  font-weight: 700;
}

.hero-title em {
  font-style: italic;
  color: #fff;
  position: relative;
  display: inline-block;
}
.title-underline {
  position: absolute;
  bottom: -6px;
  left: 0;
  width: 100%;
  height: 7px;
  display: block;
  pointer-events: none;
}

/* -- Hero Search Wrapper -- */
.hero-search-wrapper {
  position: relative;
  max-width: 1200px;
  margin: -2px auto 0;
}

/* -- Floating Tabs (on top of search box) -- */
.hero-tabs-floating {
  position: absolute;
  top: 30px;
  left: calc(46% + 14px);
  right: 44px;
  height: 54px;
  z-index: 5;
  display: flex;
  align-items: center;
  gap: 0;
  background: #fafafa;
  border: 2px solid #fff;
  border-radius: 10px;
  padding: 3px 4px;
  box-shadow: 4.049px 4.049px 4.049px rgba(0,0,0,0.03), inset 2.024px 4.049px 16.195px rgba(0,0,0,0.13);
}
.hero-tabs-slider {
  position: absolute;
  top: 2px;
  left: 4px;
  width: calc(50% - 4px);
  height: calc(100% - 4px);
  background: #155dfc;
  border-radius: 8px;
  transition: transform 0.45s cubic-bezier(0.34, 1.56, 0.64, 1), background 0.5s ease, box-shadow 0.5s ease;
  box-shadow: 0 2px 8px rgba(21, 93, 252, 0.3);
  z-index: 0;
}
.hero-tabs-floating.rent-mode .hero-tabs-slider {
  transform: translateX(100%);
  background: #155dfc;
  box-shadow: 0 2px 8px rgba(21, 93, 252, 0.3);
}
.hero-tab {
  flex: 1;
  position: relative;
  z-index: 1;
  height: 44px;
  min-height: 44px;
  border-radius: 8px;
  font-size: 17px;
  font-weight: 400;
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.4s ease, transform 0.3s ease;
  color: #373c47;
  background: transparent;
  border: none;
  cursor: pointer;
  box-sizing: border-box;
}
.hero-tab:not(.active):hover {
  color: #555;
}
.hero-tab.active {
  color: #fff;
  background: transparent;
  border: none;
  box-shadow: none;
  box-sizing: border-box;
}
.hero-tab.morph-in {
  animation: morphPulse 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);

}

/* -- Search Box -- */
.hero-search-box {
  display: flex;
  position: relative;
  background: rgba(2, 10, 28, 0.62);
  border-radius: 15px;
  max-width: 100%;
  min-height: 520px;
  margin: 0 auto;
}

/* Map content wrapper – shifts map towards center */
.map-content-wrap {
  position: absolute;
  top: 5px;
  left: 0.5%;
  right: -0.5%;
  bottom: -5px;
  pointer-events: none;
  overflow: hidden;
}
.map-content-wrap > * {
  pointer-events: all;
}

/* -- Map Side (Left spacer) -- */
.hero-map-side {
  flex: 0 0 46%;
  position: relative;
  min-height: 520px;
}
/* Map label absolutely positioned in hero-search-box */
.map-label-abs {
  position: absolute;
  left: 53px;
  top: 19px;
  z-index: 4;
  color: #fff;
  font-size: 18px;
  font-weight: 700;
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  display: flex;
  align-items: center;
  gap: 8px;
}
/* Selected filter chips */
.selected-chips {
  position: absolute;
  top: 397px;
  left: 20px;
  right: 55%;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  z-index: 10;
  max-height: 84px;
  overflow: hidden;
}
.selected-chips:empty { display: none; }
.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 20px;
  padding: 6px 12px;
  font-size: 13px;
  font-weight: 400;
  color: #374151;
  cursor: default;
  white-space: nowrap;
  transition: border-color 0.2s, background 0.2s;
}
.chip:hover {
  border-color: #373c47;
  background: linear-gradient(168deg, #f8fafc 0%, #eef2f7 100%);
}
.chip-close {
  cursor: pointer;
  color: #9ca3af;
  font-size: 14px;
  line-height: 1;
  transition: color 0.15s;
}
.chip-close:hover { color: #374151; }

/* Three-dot expand button */
.chips-expand-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 50%;
  cursor: pointer;
  color: #6b7280;
  flex-shrink: 0;
  transition: all 0.15s;
  box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}
.chips-expand-btn:hover { background: #f1f5f9; color: #374151; }

/* Categorized chips panel */
.chips-panel {
  position: absolute;
  bottom: 14px;
  left: 20px;
  right: 52%;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 16px;
  z-index: 20;
  box-shadow: 0 4px 16px rgba(0,0,0,0.12);
}
.chips-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}
.chips-panel-title {
  font-size: 14px;
  font-weight: 600;
  color: #374151;
}
.chips-panel-close {
  background: none;
  border: none;
  cursor: pointer;
  color: #9ca3af;
  font-size: 18px;
  padding: 0;
  line-height: 1;
}
.chips-panel-close:hover { color: #374151; }
.chips-panel-category {
  margin-bottom: 10px;
}
.chips-panel-category:last-child { margin-bottom: 0; }
.chips-panel-label {
  font-size: 11px;
  font-weight: 600;
  color: #9ca3af;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 6px;
}
.chips-panel-items {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

/* Map hint text at bottom of map area */
.map-hint-abs {
  position: absolute;
  left: 51px;
  bottom: 63px;
  color: rgba(255, 255, 255, 0.7);
  font-size: 18px;
  font-style: italic;
  pointer-events: none;
  z-index: 4;
}
/* Sofia tooltip */
.map-sofia-label {
  position: absolute;
  left: 180px;
  top: 226px;
  background: #fff;
  color: #155dfc;
  font-size: 14px;
  padding: 4px 22px;
  border-radius: 0 8px 8px 8px;
  z-index: 4;
  pointer-events: none;
}
/* 28 Bulgaria region SVGs */
.bg-region {
  position: absolute;
  z-index: 2;
  cursor: pointer;
  transition: filter 0.15s;
  outline: 0 !important;
  border: 0 !important;
  box-shadow: none !important;
  -webkit-tap-highlight-color: transparent;
  -webkit-user-select: none;
  user-select: none;
}
.bg-region:focus,
.bg-region:focus-visible,
.bg-region:active,
.bg-region *:focus,
.bg-region *:active {
  outline: 0 !important;
  border: 0 !important;
  box-shadow: none !important;
  -webkit-tap-highlight-color: transparent;
}
.bg-region .region-svg {
  position: absolute;
  width: 100%;
  height: 100%;
  max-width: none;
  display: block;
  opacity: 0.85;
  transition: opacity 0.2s;
}
.bg-region:hover .region-svg { opacity: 1; }

/* Active (selected/clicked) region — solid blue fill */
.bg-region--active .region-svg {
  opacity: 1 !important;
}

/* Neighborhood labels on map regions */
.nb-label {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: #fff;
  font-size: 9px;
  font-weight: 600;
  text-shadow: 0 1px 4px rgba(0,0,0,0.9), 0 0 8px rgba(0,0,0,0.5);
  pointer-events: none;
  z-index: 5;
  white-space: nowrap;
  letter-spacing: 0.02em;
  line-height: 1;
}
.nb-back-btn {
  position: absolute;
  top: 8px;
  left: 16px;
  z-index: 18;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: none;
  border: none;
  color: #38B6FF;
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  padding: 4px 0;
  transition: opacity 0.15s;
}
.nb-back-btn:hover { opacity: 0.8; }
.nb-back-btn svg { stroke: #38B6FF; }
.nb-map {
  display: grid;
  flex: 1;
  gap: 0;
  border-radius: 12px;
  overflow: hidden;
}
.nb-cell {
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 1px solid rgba(255,255,255,0.85);
  color: rgba(255,255,255,0.75);
  font-size: 11px;
  font-weight: 500;
  cursor: pointer;
  padding: 6px 4px;
  transition: background 0.2s, color 0.2s;
  text-align: center;
  min-height: 44px;
}
.nb-cell:hover {
  background: rgba(136, 206, 255, 0.2);
  color: #fff;
}
.nb-cell--active {
  background: #38B6FF !important;
  color: #0f1923 !important;
}
.nb-cell--active:hover {
  background: #9dd6ff !important;
}
.nb-cell-name {
  line-height: 1.2;
  letter-spacing: 0.01em;
}

/* Hover tooltip */
.map-tooltip {
  position: absolute;
  background: rgba(15,20,40,0.88);
  color: #fff;
  padding: 5px 12px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 500;
  pointer-events: none;
  z-index: 20;
  white-space: nowrap;
  display: none;
  letter-spacing: 0.01em;
  box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

/* City pins */
.city-pin {
  position: absolute;
  z-index: 8;
  transform: translate(-50%, -50%);
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  pointer-events: all;
}
.city-pin-dot {
  width: 9px;
  height: 9px;
  background: #155DFC;
  border: 2px solid #fff;
  border-radius: 50%;
  box-shadow: 0 0 0 0 rgba(21,93,252,0.5);
  animation: cityPinPulse 2s infinite;
  transition: transform 0.15s;
}
.city-pin:hover .city-pin-dot,
.city-pin--active .city-pin-dot {
  transform: scale(1.35);
}
.city-pin--active .city-pin-dot {
  background: #fff;
  border-color: #155DFC;
}
@keyframes cityPinPulse {
  0% { box-shadow: 0 0 0 0 rgba(21,93,252,0.5); }
  70% { box-shadow: 0 0 0 6px rgba(21,93,252,0); }
  100% { box-shadow: 0 0 0 0 rgba(21,93,252,0); }
}
.city-pin-label {
  font-size: 11px;
  font-weight: 600;
  color: #fff;
  text-shadow: 0 1px 3px rgba(0,0,0,0.8);
  letter-spacing: 0.02em;
  white-space: nowrap;
  line-height: 1;
  text-align: center;
}

/* Mobile city selector */
.map-city-mobile {
  display: none;
  gap: 8px;
  overflow-x: auto;
  padding: 12px 16px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.map-city-mobile::-webkit-scrollbar { display: none; }
.map-city-btn {
  flex-shrink: 0;
  padding: 8px 16px;
  border-radius: 20px;
  border: 1px solid rgba(255,255,255,0.25);
  background: rgba(255,255,255,0.1);
  color: #fff;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s;
  white-space: nowrap;
}
.map-city-btn:hover { background: rgba(255,255,255,0.2); }
.map-city-btn.active {
  background: #155DFC;
  border-color: #155DFC;
  color: #fff;
}

@media (max-width: 768px) {
  .map-city-mobile { display: flex; }
  .city-pin { display: none; }
  .map-content-wrap { display: none; }
  .hero-map-side { display: none; }
  .map-label-abs { display: none; }
  .map-hint-abs { display: none; }
}

/* -- Form Side (Right) -- */
.hero-form-side {
  flex: 1;
  padding: 88px 44px 20px 14px;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  z-index: 10;
}
.hero-form { display: flex; flex-direction: column; gap: 10px; }
.form-row { display: flex; gap: 12px; }
.form-group { flex: 1; }
.form-group:first-child { flex: 0 0 44%; }
.form-group label {
  display: block;
  color: #fff;
  font-size: 14px;
  font-weight: 400;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  margin-bottom: 6px;
}
.select-wrap {
  position: relative;
  display: flex;
  align-items: center;
}
.input-icon {
  position: absolute;
  left: 17px;
  color: #90a1b9;
  pointer-events: none;
  z-index: 1;
}
.select-wrap select {
  width: 100%;
  background-color: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  color: #90a1b9;
  padding: 10px 36px 10px 40px;
  font-size: 16px;
  font-family: inherit;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1), 0 1px 2px -1px rgba(0,0,0,0.1);
  background-image: url("data:image/svg+xml,%3Csvg width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%2390a1b9' stroke-width='2' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E"), none;
  background-repeat: no-repeat;
  background-position: right 13px center;
  background-size: 20px;
}
.select-wrap select::-ms-expand { display: none; }
.select-wrap select option { background: #fff; color: #333; }

/* Custom dropdown */
.custom-dropdown {
  position: relative;
}
.custom-dropdown-btn {
  width: 100%;
  background-color: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  color: #90a1b9;
  padding: 12px 36px 12px 45px;
  font-size: 16px;
  font-family: inherit;
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1), 0 1px 2px -1px rgba(0,0,0,0.1);
  position: relative;
  transition: border-color 0.15s;
}
.custom-dropdown.has-selection .custom-dropdown-text {
  color: #374151;
}
.custom-dropdown.has-selection .input-icon {
  stroke: #374151;
  color: #374151;
}
.custom-dropdown-btn:hover,
.custom-dropdown.open .custom-dropdown-btn {
  border-color: #c0c7d0;
}
.custom-dropdown-btn .input-icon {
  position: absolute;
  left: 14px;
  pointer-events: none;
}
.custom-dropdown-text {
  flex: 1;
  text-align: left;
}
.custom-dropdown-chevron {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  transition: transform 0.2s;
}
.custom-dropdown-btn:hover .custom-dropdown-chevron,
.custom-dropdown.open .custom-dropdown-chevron {
  transform: translateY(-50%) rotate(180deg);
}
.custom-dropdown-menu {
  display: none;
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.12);
  z-index: 50;
  list-style: none;
  margin: 0;
  padding: 6px 0;
  max-height: 220px;
  overflow-y: auto;
}
.custom-dropdown.open .custom-dropdown-menu {
  display: block;
}
.custom-dropdown-item {
  padding: 10px 17px 10px 17px;
  font-size: 16px;
  color: #374151;
  cursor: pointer;
  transition: background 0.15s;
  display: flex;
  align-items: center;
  gap: 10px;
}
.custom-dropdown-item::before {
  content: '';
  width: 23px;
  height: 23px;
  border: 2px solid #d1d5db;
  border-radius: 5px;
  flex-shrink: 0;
  transition: all 0.15s;
}
.custom-dropdown-item.active::before {
  background: #155dfc;
  border-color: #155dfc;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 16 16' fill='white' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M13.3 4.3a1 1 0 010 1.4l-6 6a1 1 0 01-1.4 0l-3-3a1 1 0 011.4-1.4L6.5 9.6l5.3-5.3a1 1 0 011.4 0z'/%3E%3C/svg%3E");
  background-size: 14px;
  background-repeat: no-repeat;
  background-position: center;
}
.custom-dropdown-item:hover {
  background: #f1f5f9;
}
.custom-dropdown-item.active {
  color: #155dfc;
  font-weight: 500;
}

.price-inputs {
  display: flex;
  gap: 0;
  align-items: center;
}
.price-input-wrap {
  flex: 1;
  position: relative;
}
.input-prefix {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: #90a1b9;
  font-size: 18px;
  pointer-events: none;
  z-index: 1;
}
.input-prefix-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
  z-index: 1;
}
.price-dash {
  color: transparent;
  font-size: 0;
  width: 20px;
  height: 1px;
  background: #e2e8f0;
  flex-shrink: 0;
  flex-shrink: 0;
}
.price-input {
  width: 100%;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  color: #333;
  padding: 12px 12px 12px 36px;
  font-size: 16px;
  font-family: inherit;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1), 0 1px 2px -1px rgba(0,0,0,0.1);
}
.price-input:hover,
.price-input:focus {
  border-color: #c0c7d0;
  outline: none;
}
.price-input-wrap.has-value .input-prefix {
  color: #374151;
}
.price-input-wrap.has-value .input-prefix-icon {
  stroke: #374151;
  color: #374151;
}
.price-input::placeholder { color: #90a1b9; }
.hero-actions {
  display: flex;
  align-items: center;
  gap: 30px;
  margin-top: 19px;
  padding-top: 19px;
  border-top: 0.4px solid rgba(255, 255, 255, 0.7);
}
.btn-filters {
  border: 1px solid #e2e8f0;
  color: #fff;
  padding: 12px 17px;
  border-radius: 8px;
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  font-size: 17px;
  font-weight: 400;
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  background: transparent;
  box-shadow: 0px 1px 2px rgba(0,0,0,0.05);
  white-space: nowrap;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
  position: relative;
}
.btn-filters .btn-filters-icon {
  stroke: #ffffff;
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.3s ease;
}
.btn-filters:hover .btn-filters-icon {
  transform: rotate(90deg);
}
.btn-filters:active .btn-filters-icon {
  transform: rotate(180deg) scale(0.85);
  transition: transform 0.15s ease;
}
.quick-filter-btn.btn-filters {
  background: transparent;
  border: 1px solid #d1d5db;
  box-shadow: none;
  cursor: pointer;
  margin-left: 8px;
  align-self: stretch;
}
.quick-filter-btn.btn-filters .btn-filters-icon {
  stroke: currentColor;
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.3s ease;
}
.quick-filter-btn.btn-filters:hover .btn-filters-icon {
  transform: rotate(90deg);
}
.quick-filter-btn.btn-filters:active .btn-filters-icon {
  transform: rotate(180deg) scale(0.85);
  transition: transform 0.15s ease;
}
.quick-filter-btn.btn-filters:hover {
  background: transparent;
  border-color: #373c47;
}
.btn-filters.has-filters {
  background: rgba(255, 255, 255, 0.08);
}
.btn-filters .filters-badge {
  display: none;
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  border-radius: 10px;
  background: #155dfc;
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  line-height: 20px;
  text-align: center;
}
.btn-filters.has-filters .filters-badge {
  display: inline-block;
}
.btn-recent {
  color: rgba(255, 255, 255, 0.7);
  font-size: 18px;
  display: flex;
  align-items: center;
  gap: 6px;
  text-align: center;
  text-decoration: none;
  border-bottom: none;
  padding-bottom: 1px;
  white-space: nowrap;
  margin-left: -14px;
}
.btn-recent-icon {
  animation: recentSpin 3s ease-in-out infinite;
}
@keyframes recentSpin {
  0%, 80%, 100% { transform: rotate(0deg); }
  20% { transform: rotate(-360deg); }
}
.btn-search-hero {
  margin-left: auto;
  background: #155dfc;
  color: #fff;
  padding: 9px 40px;
  height: 46px;
  border-radius: 11px;
  font-size: 18px;
  font-weight: 400;
  display: flex;
  align-items: center;
  gap: 8px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  box-shadow: 0 1px 4px rgba(0,0,0,0.25);
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

/* ===== INFO BAR ===== */
.info-bar {
  background: #f8f9fb;
  border-bottom: 1px solid #eee;
  padding: 16px 0;
}
.info-bar-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  color: #6b7280;
  line-height: 1.5;
}
.info-bar-inner strong {
  color: #1a1a2e;
  font-weight: 700;
}
.info-icon { flex-shrink: 0; }

/* ===== SEARCH SECTION ===== */
.search-section { padding: 56px 0 58px; text-align: left; }
.search-section .container {
  max-width: 1340px;
  margin: 0 auto;
  padding: 0 40px;
}
.section-title {
  font-size: 30px;
  font-weight: 800;
  color: #1a1a2e;
  margin-bottom: 1px;
  text-align: left;
  margin-left: -80px;
}
.section-subtitle {
  font-size: 16px;
  color: #666;
  margin-bottom: 38px;
  text-align: left;
  margin-left: -80px;
}
.filter-tabs {
  display: inline-flex;
  position: relative;
  gap: 0;
  margin-top: 1px;
  margin-bottom: 24px;
  margin-left: -80px;
  background: #f1f5f9;
  border-radius: 16px;
  padding: 5px;
  border: 1px solid #e2e8f0;
  transition: background 0.5s ease, border-color 0.5s ease;
}
.filter-tabs.rent-mode {
  background: #f1f5f9;
  border-color: #e2e8f0;
}
.filter-tabs-slider {
  position: absolute;
  top: 5px;
  left: 5px;
  width: calc(50% - 5px);
  height: calc(100% - 10px);
  background: #fff;
  border-radius: 12px;
  transition: transform 0.45s cubic-bezier(0.34, 1.56, 0.64, 1), background 0.5s ease, box-shadow 0.5s ease, border-radius 0.45s ease;
  box-shadow: 0 8px 30px rgba(0,0,0,0.12);
  z-index: 0;
}
.filter-tabs.rent-mode .filter-tabs-slider {
  transform: translateX(100%);
  background: #fff;
  box-shadow: 0 8px 30px rgba(0,0,0,0.12);
}
.filter-tab {
  position: relative;
  z-index: 1;
  padding: 12px 36px;
  border-radius: 12px;
  font-size: 18px;
  font-weight: 400;
  letter-spacing: 0.02em;
  border: none;
  color: #64748b;
  background: transparent;
  transition: color 0.4s ease, transform 0.3s ease;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
}
.filter-tab.active {
  color: #1a1a2e;
  font-weight: 500;
}
.filter-tab.morph-in {
  animation: morphPulse 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}
@keyframes morphPulse {
  0% { transform: scale(0.92); opacity: 0.7; }
  50% { transform: scale(1.06); }
  100% { transform: scale(1); opacity: 1; }
}
.filter-tab:not(.active):hover {
  color: #334155;
}
.filter-tab svg {
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.filter-tab.active svg {
  transform: scale(1.15);
}
/* Rent theme color shift */
.search-section.rent-theme .btn-search-main {
  background: #155dfc;
}
.property-types {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 16px;
  width: calc(100% + 160px);
  margin-left: -80px;
  margin-right: -80px;
  margin-bottom: 24px;
}
.property-type-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 29px 16px;
  height: 140px;
  border: 1px solid #d5d7dd;
  border-radius: 16px;
  background: #fff;
  cursor: pointer;
  transition: background 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}
.property-type-btn:hover {
  border-color: #373c47;
  background: linear-gradient(168deg, #f8fafc 0%, #eef2f7 100%);
  box-shadow: 0 2px 8px rgba(55, 60, 71, 0.08);
}
.property-type-btn:focus,
.property-type-btn:focus-visible,
.property-type-btn:active {
  outline: none;
  box-shadow: none;
}
.property-type-btn.active {
  border-color: #373c47;
  background: linear-gradient(168deg, #f8fafc 0%, #eef2f7 100%);
  box-shadow: 0 2px 8px rgba(55, 60, 71, 0.08);
}
.property-type-btn svg * {
  stroke-width: 1.5 !important;
}
.property-type-btn span {
  font-size: 18px;
  font-weight: 400;
  color: #373c47;
}
.quick-filters {
  display: flex;
  align-items: center;
  gap: 11px;
  width: calc(100% + 160px);
  margin-left: -80px;
  margin-right: -80px;
}
.quick-filter-left {
  display: flex;
  align-items: center;
  gap: 5px;
  flex: 1;
  overflow: visible;
  scrollbar-width: none;
}
.quick-filter-group {
  display: flex;
  align-items: center;
  gap: 0;
  border: 1px solid #d5d7dd;
  border-radius: 16px;
  background: #fff;
  padding: 6px;
}
.quick-filter-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex: 1;
  padding: 8px 17px;
  border: 0.68px solid transparent;
  border-radius: 12px;
  font-size: 18px;
  font-weight: 400;
  color: #373c47;
  background: transparent;
  white-space: nowrap;
  cursor: pointer;
  transition: background 0.25s ease, border-color 0.25s ease;
}
.quick-filter-btn:hover {
  border-color: #373c47;
  background: linear-gradient(168deg, #f8fafc 0%, #eef2f7 100%);
}
.quick-filter-btn.active {
  border-color: #373c47;
  background: linear-gradient(168deg, #f8fafc 0%, #eef2f7 100%);
}
.toggle-dropdown-wrap {
  position: relative;
  flex: 0 0 auto;
}
.toggle-dropdown-group {
  display: flex;
  align-items: stretch;
  border: 0.68px solid transparent;
  border-radius: 12px;
  background: #fff;
}
.toggle-dropdown-wrap:first-child .toggle-dropdown-btn {
  border-radius: 12px 0 0 12px;
}
.toggle-dropdown-wrap:last-child .toggle-dropdown-btn {
  border-radius: 0 12px 12px 0;
}
.toggle-dropdown-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 17px;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 18px;
  font-weight: 400;
  color: #373c47;
  font-family: inherit;
  white-space: nowrap;
  transition: background 0.2s;
}
.toggle-dropdown-btn:hover {
  background: linear-gradient(168deg, #f8fafc 0%, #eef2f7 100%);
}
.toggle-dropdown-btn.active {
  background: linear-gradient(168deg, #f8fafc 0%, #eef2f7 100%);
}
.toggle-dropdown-btn:focus {
  outline: none;
}
.toggle-divider {
  width: 1px;
  background: #d5d7dd;
  margin: 6px 0;
}
.toggle-arrow {
  transition: transform 0.2s;
}
.toggle-dropdown-btn.open .toggle-arrow {
  transform: rotate(180deg);
}
.quick-filter-city {
  flex: 0 0 auto;
}
.city-dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  min-width: 320px;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.12);
  z-index: 100;
  overflow: hidden;
}
.city-dropdown.open {
  display: block;
}
#aptTypeDropdown {
  left: auto;
}
.dropdown-check {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  border: 1.5px solid #d5d7dd;
  border-radius: 4px;
  flex-shrink: 0;
  margin-right: 10px;
  transition: all 0.15s;
  position: relative;
}
.city-dropdown-item.active .dropdown-check {
  background: #155dfc;
  border-color: #155dfc;
}
.city-dropdown-item.active .dropdown-check::after {
  content: '';
  position: absolute;
  left: 5px;
  top: 2px;
  width: 5px;
  height: 9px;
  border: solid #fff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}
.city-dropdown-search {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 18px;
  border-bottom: 1px solid #f1f5f9;
}
.city-dropdown-input {
  border: none;
  outline: none;
  font-size: 14px;
  font-family: inherit;
  color: #373c47;
  width: 100%;
  background: none;
}
.city-dropdown-input::placeholder {
  color: #9ca3af;
}
.city-dropdown-list {
  list-style: none;
  margin: 0;
  padding: 8px 0;
  max-height: 280px;
  overflow-y: auto;
}
.city-dropdown-item {
  display: flex;
  align-items: center;
  padding: 12px 18px;
  font-size: 14px;
  color: #373c47;
  cursor: pointer;
  transition: background 0.15s;
}
.city-dropdown-item:hover {
  background: linear-gradient(168deg, #f8fafc 0%, #eef2f7 100%);
}
.city-dropdown-item.active {
  font-weight: 500;
  color: #155dfc;
  background: rgba(21, 93, 252, 0.04);
}
.city-dropdown-item.hidden {
  display: none;
}
.btn-search-main {
  background: #155dfc;
  color: #fff;
  padding: 16px 40px;
  border-radius: 11px;
  font-size: 18px;
  font-weight: 400;
  display: flex;
  align-items: center;
  gap: 8px;
  letter-spacing: 0.5px;
  flex-shrink: 0;
  position: relative;
  overflow: hidden;
  text-transform: uppercase;
  box-shadow: 0 1px 4px rgba(0,0,0,0.25);
  isolation: isolate;
}

/* ===== MORE FILTERS MODAL ===== */
.filters-modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  z-index: 1000;
  justify-content: center;
  align-items: center;
  padding: 40px;
}
.filters-modal-overlay.open {
  display: flex;
}
.filters-modal {
  background: #fff;
  border-radius: 10px;
  width: 100%;
  max-width: 820px;
  max-height: 85vh;
  display: flex;
  flex-direction: column;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
  animation: modalSlideUp 0.25s ease;
}
@keyframes modalSlideUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}
.filters-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px 28px;
  border-bottom: 1px solid #e8ecf1;
  flex-shrink: 0;
}
.filters-modal-header h3 {
  font-size: 22px;
  font-weight: 600;
  color: #1a1a2e;
}
.filters-modal-close {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  color: #373c47;
  transition: background 0.15s;
}
.filters-modal-close:hover {
  background: #f1f5f9;
}
.filters-modal-body {
  overflow-y: auto;
  padding: 8px 28px 28px;
  flex: 1;
}
.filters-group {
  padding: 20px 0;
  border-bottom: 1px solid #f1f5f9;
}
.filters-group:last-child {
  border-bottom: none;
}
.filters-group-title {
  font-size: 16px;
  font-weight: 600;
  color: #1a1a2e;
  margin-bottom: 16px;
}
.filters-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 10px;
}
.filter-check {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border: 1px solid #e8ecf1;
  border-radius: 10px;
  font-size: 14px;
  color: #373c47;
  cursor: pointer;
  transition: all 0.15s;
  user-select: none;
}
.filter-check:hover {
  border-color: #155dfc;
  background: rgba(21, 93, 252, 0.03);
}
.filter-check input[type="checkbox"] {
  display: none;
}
.filter-check-box {
  width: 18px;
  height: 18px;
  border: 1.5px solid #d5d7dd;
  border-radius: 4px;
  flex-shrink: 0;
  transition: all 0.15s;
  position: relative;
}
.filter-check input:checked ~ .filter-check-box {
  background: #155dfc;
  border-color: #155dfc;
}
.filter-check input:checked ~ .filter-check-box::after {
  content: '';
  position: absolute;
  left: 5px;
  top: 2px;
  width: 5px;
  height: 9px;
  border: solid #fff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}
.filters-selected-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.filters-selected-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border: 1px solid #373c47;
  border-radius: 10px;
  font-size: 13px;
  color: #373c47;
  background: linear-gradient(168deg, #f8fafc 0%, #eef2f7 100%);
  cursor: pointer;
  transition: all 0.15s;
}
.filters-selected-tag:hover {
  border-color: #e53e3e;
  color: #e53e3e;
}
.filters-selected-tag .tag-x {
  font-size: 14px;
  font-weight: 600;
  line-height: 1;
}
.filters-empty {
  font-size: 14px;
  color: #9ca3af;
  font-style: italic;
}
.filters-modal-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 28px;
  border-top: 1px solid #e8ecf1;
  flex-shrink: 0;
}
.filters-modal-reset {
  font-size: 14px;
  color: #666;
  text-decoration: underline;
  transition: color 0.15s;
}
.filters-modal-reset:hover {
  color: #155dfc;
}
.filters-modal-apply {
  background: #155dfc;
  color: #fff;
  padding: 12px 28px;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.25);
  transition: background 0.15s;
}
.filters-modal-apply:hover {
  background: #1248cc;
}

/* Dark mode filters modal */
body.dark-mode .filters-modal {
  background: var(--clr-surface);
}
body.dark-mode .filters-modal-header {
  border-color: rgba(255,255,255,0.08);
}
body.dark-mode .filters-modal-header h3 {
  color: #fff;
}
body.dark-mode .filters-modal-close {
  color: var(--clr-text-sec);
}
body.dark-mode .filters-modal-close:hover {
  background: rgba(255,255,255,0.06);
}
body.dark-mode .filters-group {
  border-color: rgba(255,255,255,0.06);
}
body.dark-mode .filters-group-title {
  color: #fff;
}
body.dark-mode .filter-check {
  border-color: rgba(255,255,255,0.08);
  color: #e4e4e7;
  background: transparent;
}
body.dark-mode .filter-check:hover {
  border-color: #38B6FF;
  background: rgba(136,206,255,0.05);
}
body.dark-mode .filter-check-box {
  border-color: rgba(255,255,255,0.2);
}
body.dark-mode .filter-check input:checked ~ .filter-check-box {
  background: #38B6FF;
  border-color: #38B6FF;
}
body.dark-mode .filter-check svg {
  stroke: var(--clr-text-sec);
}
body.dark-mode .filter-check input:checked ~ svg {
  stroke: #38B6FF;
}
body.dark-mode .filters-modal-footer {
  border-color: rgba(255,255,255,0.08);
}
body.dark-mode .filters-modal-reset {
  color: var(--clr-text-sec);
}
body.dark-mode .filters-modal-reset:hover {
  color: #38B6FF;
}
body.dark-mode .filters-modal-apply {
  background: #38B6FF;
  color: #fff;
}
body.dark-mode .drugi-modal-apply {
  background: #38B6FF;
  color: #fff;
}

/* ===== PROPERTY GRID ===== */
.listings-section { padding: 16px 0 20px; }
.pet-section { padding: 80px 0 20px; }
.property-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  width: calc(100% + 160px);
  margin-left: -80px;
  margin-right: -80px;
}
.property-card {
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  transition: box-shadow 0.3s, transform 0.2s;
}
.property-card:hover {
  box-shadow: 0 4px 16px rgba(0,0,0,0.12);
  transform: translateY(-2px);
}
.card-image {
  position: relative;
  height: 204px;
  overflow: hidden;
}
.card-slide {
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.3s;
}
.card-slide.active { opacity: 1; position: relative; }
.card-image img:not(.card-slide) {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.card-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 36px;
  height: 36px;
  border-radius: 6px;
  background: rgba(2,10,28,0.65);
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  transition: opacity 0.2s;
  z-index: 2;
  color: #fff;
}
.card-image:hover .card-arrow { opacity: 1; }
.card-arrow:hover { background: rgba(2,10,28,0.8); }
.card-arrow-prev { left: 0; }
.card-arrow-next { right: 0; }
.card-dots {
  position: absolute;
  bottom: 44px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 5px;
  z-index: 2;
}
.card-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255,255,255,0.5);
  transition: background 0.2s;
}
.card-dot.active { background: #fff; }
.card-location {
  position: absolute;
  top: 10px;
  left: 10px;
  background: #06818e;
  height: 28px;
  padding: 0 10px 0 8px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 400;
  display: flex;
  align-items: center;
  gap: 4px;
  color: #fff;
}
.card-heart {
  position: absolute;
  top: 10px;
  right: 10px;
  background: #fff;
  width: 31px;
  height: 31px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  border: 1px solid rgba(255,255,255,0.7);
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
  padding: 0;
  transition: background 0.2s;
}
.card-heart svg { overflow: visible; }
.card-heart .heart-stroke {
  fill: none;
  stroke: #94a3b8;
  transition: stroke 0.3s ease;
}
.card-heart .heart-fill {
  fill: #ef4444;
  stroke: none;
  clip-path: ellipse(0% 0% at 45% 85%);
  transition: clip-path 0.9s cubic-bezier(0.1, 0.7, 0.3, 1);
}
.card-heart:hover .heart-fill {
  clip-path: ellipse(80% 75% at 48% 45%);
}
.card-heart:hover .heart-stroke {
  stroke: #ef4444;
}
.card-heart.active .heart-fill {
  clip-path: ellipse(80% 75% at 48% 45%);
  transition: none;
}
.card-heart.active .heart-stroke {
  stroke: #ef4444;
}
@keyframes card-heart-bounce {
  0% { transform: scale(1); }
  30% { transform: scale(1.25); }
  50% { transform: scale(0.95); }
  70% { transform: scale(1.1); }
  100% { transform: scale(1); }
}
.card-heart.active svg {
  animation: card-heart-bounce 0.45s ease-out;
}
.card-heart:hover { background: #fff; }
.card-body { padding: 16px 12px; }
.card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 11px;
}
.card-ref {
  background: #dff2fe;
  height: 30px;
  padding: 0 12px;
  border-radius: 128px;
  font-size: 13px;
  font-weight: 400;
  color: #6b7280;
  display: inline-flex;
  align-items: center;
  letter-spacing: 0.06px;
}
.card-ref:hover {
  background: #c8e6fc;
}
.card-ref .ref-num { font-weight: 600; }
.card-phone {
  width: 30px;
  height: 30px;
  background: #dff2fe;
  border: none;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #6b7280;
  transition: background 0.2s;
}
.card-phone:hover {
  background: #c8e6fc;
}
.card-title {
  font-family: 'Helvetica', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  font-size: 18px;
  font-weight: 400;
  color: #373c47;
  line-height: 24px;
  letter-spacing: -0.31px;
  margin-bottom: 14px;
}
.card-title .card-title-location {
  font-weight: 300;
}
.card-price {
  font-size: 32px;
  font-weight: 600;
  line-height: 32px;
  letter-spacing: -0.53px;
  color: #373c47;
  margin-bottom: 5px;
}
.card-price-details {
  display: flex;
  align-items: baseline;
  gap: 4px;
  font-size: 16px;
  line-height: 16px;
  color: #848995;
  margin-bottom: 12px;
}
.card-vat {
  background: transparent;
  padding: 0;
  font-size: 16px;
  line-height: 16px;
  color: #848995;
}
.card-features {
  display: flex;
  gap: 5px;
  padding-top: 9px;
}
.card-feature {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 7px 10px;
  background: #f9fafb;
  border: 1px solid #f3f4f6;
  border-radius: 4px;
  font-size: 14px;
  font-weight: 400;
  letter-spacing: -0.15px;
  color: #595d65;
  white-space: nowrap;
}

/* ===== PAGINATION ===== */
.pagination-center {
  margin-top: 22px;
  display: flex;
  justify-content: center;
  width: 100vw;
  position: relative;
  left: 50%;
  transform: translateX(-50%);
}
.pagination-center-first {
  margin-top: 30px;
  margin-bottom: 50px;
}
.btn-more {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 20px;
  width: fit-content;
  height: 48px;
  border: 1px solid #000;
  border-radius: 12px;
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  font-size: 16px;
  font-weight: 400;
  color: #000;
  background: #fff;
  cursor: pointer;
  transition: all 0.25s ease;
}
.btn-more:hover {
  border-color: #236cff;
  color: #236cff;
}
.btn-more-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  background: #236cff;
  border-radius: 50%;
  flex-shrink: 0;
  animation: bounce-down 2s ease-in-out infinite;
}
.btn-more:hover .btn-more-icon {
  background: #1a5ae0;
}
@keyframes bounce-down {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(4px); }
}

/* ===== PROMO SECTION ===== */
.promo-section {
  padding: 80px 0;
  background: #f1f5f9;
}
.promo-inner {
  display: flex;
  align-items: center;
  gap: 60px;
}
.promo-text { flex: 1; }
.promo-label {
  display: block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1.5px;
  color: #888;
  text-transform: uppercase;
  margin-bottom: 20px;
}
.promo-title {
  font-size: 34px;
  font-weight: 800;
  color: #1a1a2e;
  line-height: 1.25;
  margin-bottom: 16px;
}
.promo-desc {
  font-size: 16px;
  color: #666;
  margin-bottom: 28px;
}
.btn-explore {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #155dfc;
  color: #fff;
  padding: 10px 20px;
  border-radius: 10px;
  font-size: 18px;
  font-weight: 500;
  position: relative;
  overflow: hidden;
  isolation: isolate;
}
.promo-image { flex: 1; }
.promo-img {
  width: 100%;
  max-width: 711px;
  height: auto;
  border-radius: 8px;
  display: block;
  margin: 0 auto;
}

/* ===== RECENT SECTION ===== */
.recent-section { padding: 80px 0 80px; }
.recent-section .section-title { margin-left: 0; }
.recent-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
}
.carousel-arrows {
  display: flex;
  gap: 8px;
}
.arrow-btn {
  width: 44px;
  height: 44px;
  border: 1.5px solid #e0e0e0;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #555;
  transition: all 0.2s;
}
.arrow-btn:hover { border-color: #155dfc; color: #155dfc; }
.carousel-track {
  display: flex;
  gap: 24px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding-bottom: 8px;
}
.carousel-track::-webkit-scrollbar { display: none; }
.carousel-track .property-card {
  flex: 0 0 calc(33.333% - 16px);
  scroll-snap-align: start;
  min-width: 300px;
}

/* ===== FAQ SECTION ===== */
.faq-section { padding: 15px 0 40px; }
.section-title.center { text-align: center; margin-bottom: 32px; }
.faq-list {
  border: 1px solid #e8e8e8;
  border-radius: 12px;
  overflow: hidden;
}
.faq-item { border-bottom: 1px solid #e8e8e8; }
.faq-item:last-child { border-bottom: none; }
.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 24px;
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  font-size: 17.8px;
  font-weight: 500;
  color: #2b6de8;
  text-align: left;
  transition: background 0.2s;
}
.faq-question:hover { background: #f8f9fb; }
.faq-chevron {
  flex-shrink: 0;
  transition: transform 0.3s;
  color: #999;
}
.faq-item.open .faq-chevron { transform: rotate(180deg); }
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
}
.faq-item.open .faq-answer {
  max-height: 200px;
  padding: 8px 24px 20px;
}
.faq-answer p {
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  font-size: 16.8px;
  color: #4a5568;
  line-height: 1.75;
}

/* ===== ДРУГИ ТИПОВЕ MODAL ===== */
.drugi-modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  z-index: 1000;
  justify-content: center;
  align-items: center;
  padding: 40px;
}
.drugi-modal-overlay.open {
  display: flex;
}
.drugi-modal {
  background: #fff;
  border-radius: 10px;
  width: 100%;
  max-width: 560px;
  max-height: 85vh;
  display: flex;
  flex-direction: column;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
  animation: modalSlideUp 0.25s ease;
}
.drugi-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  border-bottom: 1px solid #d1d5db;
}
.drugi-modal-header h3 {
  font-size: 18px;
  font-weight: 600;
  color: #1a1a2e;
}
.drugi-modal-close {
  background: none;
  border: none;
  cursor: pointer;
  color: #666;
  padding: 4px;
  border-radius: 8px;
  transition: background 0.2s;
}
.drugi-modal-close:hover { background: #f1f5f9; }
.drugi-modal-body {
  padding: 24px;
  overflow-y: auto;
  flex: 1;
}
.drugi-section {
  margin-bottom: 24px;
}
.drugi-section:last-child { margin-bottom: 0; }
.drugi-section-title {
  font-size: 14px;
  font-weight: 600;
  color: #7a8599;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 14px;
}
.drugi-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
.drugi-type-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 16px 8px;
  background: #fff;
  border: 1px solid #d1d5db;
  border-radius: 14px;
  cursor: pointer;
  color: #373c47;
  font-size: 13px;
  font-weight: 400;
  font-family: inherit;
  transition: border-color 0.2s, background 0.2s, box-shadow 0.2s;
}
.drugi-type-btn svg * {
  stroke-width: 1.5 !important;
}
.drugi-type-btn:hover {
  border-color: #373c47;
  background: linear-gradient(168deg, #f8fafc 0%, #eef2f7 100%);
}
.drugi-type-btn.selected {
  border-color: #373c47;
  background: linear-gradient(168deg, #f8fafc 0%, #eef2f7 100%);
  box-shadow: 0 2px 8px rgba(55, 60, 71, 0.08);
}
.drugi-type-btn.selected span {
  color: #373c47;
  font-weight: 500;
}
.drugi-empty {
  font-size: 14px;
  color: #9ca3af;
  font-style: italic;
}
.drugi-type-btn:focus {
  outline: none;
}
.drugi-modal-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 24px;
  border-top: 1px solid #e8ecf1;
  flex-shrink: 0;
}
.drugi-modal-reset {
  font-size: 14px;
  color: #666;
  text-decoration: underline;
  background: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
  padding: 0;
  transition: background 0.2s;
}
.drugi-modal-reset:hover { color: #155dfc; }
.drugi-modal-apply {
  padding: 10px 24px;
  background: #155dfc;
  border: none;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 500;
  color: #fff;
  cursor: pointer;
  font-family: inherit;
  transition: background 0.2s;
}
.drugi-modal-apply:hover { background: #1250d4; }

@media (max-width: 600px) {
  .drugi-grid { grid-template-columns: repeat(3, 1fr); gap: 8px; }
  .drugi-type-btn { padding: 14px 8px; font-size: 12px; }
}

/* ===== CTA SECTION ===== */
.cta-section {
  padding: 56px 0 80px;
  text-align: center;
}
.cta-sub {
  font-size: 18px;
  font-weight: 400;
  color: #374151;
  line-height: 1.6;
  margin: 0 0 36px;
  font-family: 'Inter', sans-serif;
  text-align: center;
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
}
.cta-emoji-row {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}
.cta-emoji-btn {
  width: 68px;
  height: 68px;
  border: 1.5px solid #e5e7eb;
  border-radius: 14px;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: border-color 0.2s, transform 0.15s, box-shadow 0.2s;
}
.cta-emoji-btn:hover {
  border-color: #9ca3af;
  transform: translateY(-3px);
  box-shadow: 0 6px 18px rgba(0,0,0,0.10);
}
.cta-emoji-btn.selected {
  border-color: #3b82f6;
  box-shadow: 0 0 0 3px rgba(59,130,246,0.18);
}

/* ===== NEWSLETTER ===== */
.newsletter-section {
  padding: 0;
  background: transparent;
  position: relative;
  z-index: 10;
  margin-bottom: -52px;
}
.newsletter-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  background: #ffffff;
  border: 1px solid rgba(0,0,0,0.08);
  border-radius: 10px;
  padding: 32px 40px;
  box-shadow: 0 4px 24px rgba(0,0,0,0.10);
}
.newsletter-title {
  font-family: 'Inter', sans-serif;
  font-size: 26px;
  font-weight: 700;
  color: #0f1623;
  margin: 0 0 2px;
}
.newsletter-sub {
  font-family: 'Inter', sans-serif;
  font-size: 17px;
  color: rgba(15,22,35,0.55);
  margin: 0;
}
.newsletter-form {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-shrink: 0;
}
.newsletter-input {
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  color: #0f1623;
  background: #f4f6f9;
  border: 1px solid rgba(0,0,0,0.12);
  border-radius: 10px;
  padding: 11px 18px;
  width: 260px;
  outline: none;
  transition: border-color 0.2s;
}
.newsletter-input::placeholder { color: rgba(15,22,35,0.4); }
.newsletter-input:focus { border-color: #3b7bfc; }
.newsletter-btn {
  font-family: 'Inter', sans-serif;
  font-size: 15px;
  font-weight: 600;
  color: #ffffff;
  background: #1a56db;
  border: none;
  border-radius: 10px;
  padding: 11px 20px;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.2s;
  position: relative;
}
.newsletter-btn:hover { background: #155dfc; }

/* ===== FOOTER ===== */
.footer {
  background: #f8f9fb;
  border-top: 1px solid #eee;
  padding: 48px 0 24px;
}
.footer-inner {
  display: flex;
  gap: 80px;
  margin-bottom: 32px;
}
.footer-brand { flex-shrink: 0; }
.footer-logo { font-size: 20px; }
.footer-links {
  display: flex;
  gap: 64px;
  flex: 1;
}
.footer-col { display: flex; flex-direction: column; gap: 10px; }
.footer-col h4 {
  font-size: 14px;
  font-weight: 700;
  color: #1a1a2e;
  margin-bottom: 4px;
}
.footer-col a {
  font-size: 13px;
  color: #666;
  transition: color 0.2s;
}
.footer-col a:hover { color: #155dfc; }
.footer-bottom {
  border-top: 1px solid #e8e8e8;
  padding-top: 20px;
  text-align: center;
}
.footer-bottom p {
  font-size: 13px;
  color: #999;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1200px) {
  .property-grid { grid-template-columns: repeat(3, 1fr); }
  .property-types { grid-template-columns: repeat(3, 1fr); }
  .hero-search-box { flex-direction: column; }
  .hero-left { border-right: none; border-bottom: 1px solid rgba(255,255,255,0.1); }
  .promo-inner { flex-direction: column; }
}

@media (max-width: 992px) {
  .container, .hero-content, .header-inner { padding-left: 24px; padding-right: 24px; }
  .container-narrow { padding-left: 24px; padding-right: 24px; }
  .main-nav { display: none; }
  .mobile-menu-btn { display: flex; }
  .main-nav.mobile-open {
    display: flex;
    position: absolute;
    top: 101px;
    left: 0;
    right: 0;
    flex-direction: column;
    padding: 16px 24px;
    z-index: 100;
    background: #fff;
    box-shadow: 0 10px 30px rgba(0,0,0,0.12);
  }
  .property-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; width: 100%; margin-left: 0; margin-right: 0; }
  .property-types { width: 100%; margin-left: 0; margin-right: 0; }
  .quick-filters { width: 100%; margin-left: 0; margin-right: 0; }
  .section-title, .section-subtitle, .filter-tabs { margin-left: 0; }
  .property-types { grid-template-columns: repeat(3, 1fr); }
  .hero-title { font-size: 28px; }
  .section-title { font-size: 24px; }
  .promo-title { font-size: 26px; }
  .carousel-track .property-card { flex: 0 0 calc(50% - 12px); }
  .quick-filters { flex-wrap: wrap; }
  .quick-filter-left { flex-wrap: wrap; }
  .footer-inner { flex-direction: column; gap: 32px; }
  .footer-links { gap: 32px; }
  .newsletter-card { flex-direction: column; align-items: flex-start; gap: 24px; padding: 28px 24px; }
  .newsletter-form { width: 100%; }
  .newsletter-input { flex: 1; width: auto; }
}

@media (max-width: 640px) {
  .header-actions { gap: 8px; }
  .btn-publish { display: none; }
  .theme-toggle { padding: 10px; }
  .theme-toggle-label { display: none; }
  .property-grid { grid-template-columns: 1fr; gap: 16px; width: 100%; margin-left: 0; margin-right: 0; }
  .property-types { grid-template-columns: repeat(2, 1fr); width: 100%; margin-left: 0; margin-right: 0; }
  .quick-filters { width: 100%; margin-left: 0; margin-right: 0; }
  .section-title, .section-subtitle, .filter-tabs { margin-left: 0; }
  .card-image { height: 200px; }
  .card-price { font-size: 20px; }
  .card-title { font-size: 14px; line-height: 20px; }
  .card-features { flex-wrap: wrap; gap: 6px; }
  .card-body { padding: 14px 12px; }
  .hero-title { font-size: 22px; }
  .hero-content { padding: 24px 16px; }
  .container, .container-narrow { padding-left: 16px; padding-right: 16px; }
  .form-row { flex-direction: column; gap: 12px; }
  .form-group:first-child { flex: 1; }
  .hero-actions { flex-wrap: wrap; }
  .btn-search-hero { width: 100%; justify-content: center; margin-left: 0; }
  .filter-tabs { flex-wrap: wrap; }
  .section-title { font-size: 20px; }
  .quick-filters { overflow-x: auto; flex-wrap: nowrap; }
  .quick-filter-left { flex-wrap: nowrap; }
  .quick-filter-btn { font-size: 14px; padding: 6px 12px; }
  .property-type-btn { height: 110px; min-width: 0; }
  .property-type-btn span { font-size: 14px; }
  .promo-title { font-size: 22px; }
  .carousel-track .property-card {
    flex: 0 0 85%;
    min-width: 260px;
  }
  .footer-links {
    flex-direction: column;
    gap: 24px;
  }
  .cta-heading { font-size: 20px; }
  .cta-sub { font-size: 16px; }
  .quick-filter-btn { font-size: 12px; padding: 8px 14px; }
  .btn-search-main { width: 100%; justify-content: center; }
  .newsletter-card { padding: 24px 20px; }
  .newsletter-title { font-size: 20px; }
  .newsletter-sub { font-size: 15px; }
  .newsletter-form { flex-direction: column; }
  .newsletter-input { width: 100%; }
  .newsletter-btn { width: 100%; text-align: center; }
}

/* ===== DARK MODE ===== */
/* Token overrides are defined at :root / body.dark-mode at the top of this file */
body.dark-mode {
  color: var(--clr-text);
  background: var(--clr-bg);
}
body.dark-mode .header {
  background: rgba(20, 22, 32, 0.95);
  border-bottom-color: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(12px);
}
body.dark-mode .logo-fill { fill: #FFFFFF; }
body.dark-mode .logo-imota,
body.dark-mode .section-title,
body.dark-mode .promo-title,
body.dark-mode .cta-heading,
body.dark-mode .footer-col h4,
body.dark-mode .card-title,
body.dark-mode .card-price,
body.dark-mode .info-bar-inner strong {
  color: #ffffff;
}
body.dark-mode .nav-link,
body.dark-mode .section-subtitle,
body.dark-mode .promo-desc,
body.dark-mode .faq-answer p,
body.dark-mode .footer-col a,
body.dark-mode .footer-bottom p,
body.dark-mode .card-price-details,
body.dark-mode .card-feature,
body.dark-mode .info-bar-inner {
  color: var(--clr-text-sec);
}
body.dark-mode .theme-toggle {
  background: var(--clr-surface);
  border-color: rgba(255, 255, 255, 0.12);
  color: #ffffff;
}
body.dark-mode .theme-toggle:hover {
  color: #ffffff;
}
body.dark-mode .theme-toggle-icon-moon { display: none; }
body.dark-mode .theme-toggle-icon-sun { display: inline-block; }
body.dark-mode .mobile-menu-btn span { background: #ffffff; }
body.dark-mode .info-bar,
body.dark-mode .promo-section,
body.dark-mode .footer {
  background: var(--clr-bg-deep);
  border-color: rgba(255, 255, 255, 0.08);
}
body.dark-mode .search-section,
body.dark-mode .listings-section,
body.dark-mode .pet-section,
body.dark-mode .recent-section,
body.dark-mode .faq-section,
body.dark-mode .cta-section {
  background: var(--clr-bg);
}

/* ── Logo PNG (dark mode) ──────────────────────────────────── */
.logo-dark-png {
  display: none;
  height: 52px;
  width: auto;
  object-fit: contain;
}
.footer-logo .logo-dark-png {
  height: 52px;
  position: relative;
  z-index: 1;
}
body.dark-mode .logo-dark-png { display: block; }
body.dark-mode .logo-house,
body.dark-mode .logo-wordmark { display: none !important; }

/* ── Newsletter dark mode ───────────────────────────────────── */
body.dark-mode .newsletter-card {
  background: var(--clr-surface);
  border-color: rgba(255, 255, 255, 0.08);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.4);
}
body.dark-mode .newsletter-title { color: #f1f5f9; }
body.dark-mode .newsletter-sub { color: #a1a1aa; }
body.dark-mode .newsletter-input {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.1);
  color: #e2e8f0;
}
body.dark-mode .newsletter-input::placeholder { color: rgba(255, 255, 255, 0.3); }
body.dark-mode .newsletter-btn {
  background: #38B6FF;
  color: #fff;
}
body.dark-mode .newsletter-btn:hover { background: #2ca8f0; }

/* ── CTA emoji buttons dark mode ───────────────────────────── */
body.dark-mode .cta-emoji-btn {
  background: var(--clr-surface);
  border-color: rgba(255, 255, 255, 0.12);
}
body.dark-mode .cta-emoji-btn:hover {
  border-color: rgba(136, 206, 255, 0.4);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.3);
}
body.dark-mode .cta-sub { color: #94a3b8; }
body.dark-mode .property-card,
body.dark-mode .property-type-btn,
body.dark-mode .btn-more,
body.dark-mode .btn-feedback,
body.dark-mode .faq-list,
body.dark-mode .card-ref,
body.dark-mode .card-vat,
body.dark-mode .card-feature,
body.dark-mode .arrow-btn,
body.dark-mode .quick-filter-group {
  background: var(--clr-surface);
  border-color: rgba(255, 255, 255, 0.08);
}
body.dark-mode .quick-filter-btn {
  background: transparent;
  border-color: transparent;
}
body.dark-mode .property-type-btn span,
body.dark-mode .btn-more,
body.dark-mode .btn-feedback,
body.dark-mode .quick-filter-btn,
body.dark-mode .card-ref {
  color: #ffffff;
}
body.dark-mode .property-type-btn svg,
body.dark-mode .info-icon svg,
body.dark-mode .illustration-placeholder svg {
  stroke: #f5f3f0;
}
body.dark-mode .property-type-btn svg * {
  stroke: #f5f3f0 !important;
}
body.dark-mode .property-type-btn svg path[fill="white"],
body.dark-mode .property-type-btn svg rect[fill="white"] {
  fill: var(--clr-surface) !important;
}
body.dark-mode .property-type-btn:hover,
body.dark-mode .property-type-btn.active {
  border-color: rgba(136, 206, 255, 0.4);
  background: linear-gradient(168deg, var(--clr-surface) 0%, var(--clr-surface-2) 100%);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.3);
}
body.dark-mode .quick-filter-btn:hover,
body.dark-mode .quick-filter-btn.active {
  border-color: rgba(136, 206, 255, 0.4);
  background: rgba(136, 206, 255, 0.08);
}
body.dark-mode .toggle-dropdown-group {
  background: var(--clr-surface);
  border-color: rgba(255, 255, 255, 0.08);
}
body.dark-mode .toggle-dropdown-btn {
  color: #fff;
}
body.dark-mode .toggle-dropdown-btn:hover,
body.dark-mode .toggle-dropdown-btn.active {
  background: rgba(136, 206, 255, 0.08);
}
body.dark-mode .toggle-dropdown-btn svg {
  stroke: var(--clr-text-sec);
}
body.dark-mode .toggle-divider {
  background: rgba(255, 255, 255, 0.12);
}
body.dark-mode .city-dropdown {
  background: var(--clr-surface);
  border-color: rgba(255, 255, 255, 0.1);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.4);
}
body.dark-mode .city-dropdown-item {
  color: #e2e8f0;
}
body.dark-mode .city-dropdown-item:hover {
  background: rgba(136, 206, 255, 0.08);
}
body.dark-mode .dropdown-check {
  border-color: rgba(255, 255, 255, 0.2);
}
body.dark-mode .btn-more { border-color: rgba(255,255,255,0.3); color: #fff; background: transparent; }
body.dark-mode .btn-more:hover,
body.dark-mode .btn-feedback:hover,
body.dark-mode .arrow-btn:hover {
  border-color: rgba(136, 206, 255, 0.40);
  color: #38B6FF;
  box-shadow: none;
  transform: translateY(-2px);
}
body.dark-mode .card-phone {
  border-color: rgba(136, 206, 255, 0.25);
  color: #38B6FF;
}
body.dark-mode .card-phone:hover {
  background: rgba(136, 206, 255, 0.08);
  border-color: rgba(136, 206, 255, 0.40);
}
body.dark-mode .property-card:hover {
  border-color: rgba(136, 206, 255, 0.40);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.50);
  transform: translateY(-2px);
}
body.dark-mode .faq-question:hover {
  border-color: rgba(136, 206, 255, 0.40);
}
body.dark-mode .filter-tab:hover,
body.dark-mode .map-city-btn:hover {
  border-color: rgba(136, 206, 255, 0.40);
  color: #38B6FF;
}
body.dark-mode .bg-region:hover .region-svg,
body.dark-mode .bg-region-sofia:hover .region-svg {
  opacity: 0.55;
}
body.dark-mode .card-features,
body.dark-mode .faq-item,
body.dark-mode .footer-bottom {
  border-color: rgba(255, 255, 255, 0.08);
}
body.dark-mode .filter-tab {
  border-color: rgba(255, 255, 255, 0.08);
  color: var(--clr-text-sec);
}
body.dark-mode .faq-question {
  color: #ffffff;
}
body.dark-mode .faq-question:hover {
  background: rgba(136, 206, 255, 0.06);
}
body.dark-mode .faq-chevron { color: #6b7280; }
body.dark-mode .promo-label { color: var(--clr-text-sec); }
body.dark-mode .nav-link,
body.dark-mode .nav-account-btn { color: var(--clr-text-sec); }
body.dark-mode .theme-toggle,
body.dark-mode .nav-icon-btn { color: var(--clr-text-sec); }
body.dark-mode .nav-icon-btn img,
body.dark-mode .nav-account-btn img {
  filter: brightness(0) saturate(100%) invert(65%) sepia(5%) saturate(400%) hue-rotate(201deg) brightness(80%) contrast(85%);
}
body.dark-mode .main-nav.mobile-open {
  background: var(--clr-bg);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.60);
}
body.dark-mode .nav-link--active,
body.dark-mode .nav-link:hover { color: #7dcbf5; }
body.dark-mode .hero-tab.active {
  background: transparent;
  color: #fff !important;
  border: none;
}
body.dark-mode .hero-tab {
  border: none;
  color: var(--clr-text-sec);
}
body.dark-mode .hero-tab:hover {
  color: #ffffff;
}
body.dark-mode .hero-tabs-slider {
  background: #38B6FF;
  box-shadow: none;
}
body.dark-mode .hero-tabs-floating.rent-mode .hero-tabs-slider {
  background: #38B6FF;
  box-shadow: none;
}
body.dark-mode .map-section {
  background: var(--clr-bg-deep);
}
body.dark-mode .map-city-btn {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.12);
  color: var(--clr-text-sec);
}
body.dark-mode .map-city-btn.active {
  background: rgba(136, 206, 255, 0.12);
  border-color: #38B6FF;
  color: #38B6FF;
}

/* ===== NAV DROPDOWN ===== */
.nav-link-search {
  position: relative;
}
.nav-link-search.active {
  color: #314158;
}
.nav-link-search.active::after { transform: scaleX(1); }
.nav-link-search:hover {
  color: #314158;
}
.nav-dropdown {
  position: absolute;
  top: 80px;
  left: 0;
  right: 0;
  background: #fff;
  border-bottom: 1px solid #eee;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.09);
  overflow: hidden;
  max-height: 0;
  opacity: 0;
  pointer-events: none;
  transition: max-height 0.35s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.25s ease;
  z-index: 1001;
}
.nav-dropdown.open {
  max-height: 400px;
  opacity: 1;
  pointer-events: auto;
}
.nav-dropdown-inner {
  max-width: 1520px;
  margin: 0 auto;
  padding: 22px 40px 26px;
  display: flex;
  align-items: flex-start;
  gap: 0;
}
.nav-dropdown-section {
  flex: 1;
  padding: 0 40px 0 0;
}
.nav-dropdown-section:last-child {
  padding: 0 0 0 40px;
}
.nav-dropdown-section-title {
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  font-size: 15px;
  color: #1a2e5f;
  margin-bottom: 20px;
  letter-spacing: 0;
}
.nav-dropdown-links-grid {
  display: flex;
  gap: 48px;
}
.nav-dropdown-col {
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.nav-dropdown-link {
  display: block;
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  font-weight: 400;
  color: #2255c5;
  text-decoration: none;
  transition: color 0.15s;
  white-space: nowrap;
}
.nav-dropdown-link:hover {
  color: #1a3e9a;
  text-decoration: none;
}
.nav-dropdown-divider {
  width: 1px;
  background: #e5e7eb;
  align-self: stretch;
  flex-shrink: 0;
  margin: 0;
}
body.dark-mode .nav-dropdown {
  background: var(--clr-bg-deep);
  border-bottom-color: rgba(255, 255, 255, 0.08);
}
body.dark-mode .nav-dropdown-section-title { color: #ffffff; }
body.dark-mode .nav-dropdown-link { color: #ffffff; }
body.dark-mode .nav-dropdown-link:hover { color: #ffffff; }
body.dark-mode .nav-dropdown-divider { background: rgba(255, 255, 255, 0.10); }

/* ── Lyubimo dropdown card ──────────────────────────────────── */
.nav-lyubimo-bell {
  width: 48px;
  height: 36px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
body.dark-mode .nav-lyubimo-bell svg path { stroke: #7dcbf5; }
.nav-lyubimo-bell svg path { stroke: #2255c5; }
.nav-lyubimo-row {
  display: flex;
  flex-direction: row;
  align-items: stretch;
  gap: 0;
  padding: 0;
}
.nav-lyubimo-row .nav-lyubimo-card {
  flex: 1;
  max-width: none;
  border: none;
  border-radius: 0;
}
.nav-lyubimo-vsep {
  width: 1px;
  background: #e5e7eb;
  align-self: stretch;
  flex-shrink: 0;
}
body.dark-mode .nav-lyubimo-vsep { background: rgba(255,255,255,0.10); }
.nav-lyubimo-card {
  display: flex;
  align-items: center;
  gap: 16px;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  padding: 18px 24px;
  max-width: 520px;
}
.nav-lyubimo-hearts {
  position: relative;
  width: 48px;
  height: 36px;
  flex-shrink: 0;
}
.nav-lyubimo-heart-back {
  position: absolute;
  left: 0;
  top: 4px;
  opacity: 0.45;
}
.nav-lyubimo-heart-front {
  position: absolute;
  left: 14px;
  top: 0;
}
.nav-lyubimo-text p {
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  color: #374151;
  margin: 0 0 6px;
  line-height: 1.4;
}
.nav-lyubimo-cta {
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  font-weight: 500;
  color: #2255c5;
  text-decoration: none;
}
.nav-lyubimo-cta:hover { color: #1a3e9a; }
body.dark-mode .nav-lyubimo-card {
  border-color: rgba(255,255,255,0.10);
}
body.dark-mode .nav-lyubimo-text p { color: #d1d5db; }
body.dark-mode .nav-lyubimo-cta { color: #7dcbf5; }

/* ── Nav hover states in dark mode ────────────────────────── */
body.dark-mode .nav-link--active { color: #7dcbf5; }
body.dark-mode .nav-link--active:hover { color: #ffffff; }
body.dark-mode .nav-link--active:hover::after { transform: scaleX(1); }
body.dark-mode .nav-link:hover { color: #ffffff; }
body.dark-mode .nav-link:hover::after { background: #ffffff; transform: scaleX(1); }
body.dark-mode .nav-link::after { background: #38B6FF; border-bottom-width: 0.2px; }
body.dark-mode .nav-link-search.active {
  color: #38B6FF;
}
body.dark-mode .nav-link-search.active::after { transform: scaleX(1); }
body.dark-mode .nav-link-search:hover { color: #ffffff; }
body.dark-mode .nav-icon-btn:hover { }
body.dark-mode .nav-account-btn:hover { }
body.dark-mode .btn-publish:hover::after,
body.dark-mode .btn-search-hero:hover::after { opacity: 0; }

/* ── Hero search form inputs in dark mode ──────────────────── */
body.dark-mode .hero-tabs-floating {
  background: var(--clr-bg-deep);
  border-color: rgba(255, 255, 255, 0.08);
}
body.dark-mode .hero-tab {
  background: var(--clr-surface);
  border-color: rgba(255, 255, 255, 0.08);
  color: var(--clr-text-sec);
}
body.dark-mode .hero-tab.active {
  background: #38B6FF;
  color: #ffffff;
  border-color: #38B6FF;
}
body.dark-mode .select-wrap select {
  background-color: var(--clr-surface);
  border-color: rgba(255, 255, 255, 0.08);
  color: #ffffff;
  background-image: url("data:image/svg+xml,%3Csvg width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%236b7280' stroke-width='2' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E"), none;
  background-repeat: no-repeat;
  background-position: right 13px center;
  background-size: 20px;
}
body.dark-mode .select-wrap select option { background: var(--clr-surface); color: #ffffff; }
body.dark-mode .custom-dropdown-btn:hover,
body.dark-mode .custom-dropdown.open .custom-dropdown-btn {
  border-color: rgba(255, 255, 255, 0.35);
}
body.dark-mode .price-input:hover,
body.dark-mode .price-input:focus {
  border-color: rgba(255, 255, 255, 0.35);
}
body.dark-mode .custom-dropdown-btn {
  background-color: var(--clr-surface);
  border-color: rgba(255, 255, 255, 0.2);
  color: #ffffff;
}
body.dark-mode .custom-dropdown-text.is-placeholder {
  color: #9ca3af;
}
body.dark-mode .custom-dropdown.has-selection .custom-dropdown-text {
  color: #ffffff;
}
body.dark-mode .custom-dropdown.has-selection .input-icon {
  stroke: #ffffff;
  color: #ffffff;
}
body.dark-mode .custom-dropdown-btn .custom-dropdown-chevron { stroke: #6b7280; }
body.dark-mode .custom-dropdown-menu {
  background: var(--clr-surface);
  border-color: rgba(255, 255, 255, 0.08);
  box-shadow: 0 4px 16px rgba(0,0,0,0.4);
}
body.dark-mode .custom-dropdown-item { color: #ffffff; }
body.dark-mode .custom-dropdown-item::before { border-color: #6b7280; }
body.dark-mode .custom-dropdown-item.active::before {
  background-color: #38B6FF;
  border-color: #38B6FF;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 16 16' fill='white' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M13.3 4.3a1 1 0 010 1.4l-6 6a1 1 0 01-1.4 0l-3-3a1 1 0 011.4-1.4L6.5 9.6l5.3-5.3a1 1 0 011.4 0z'/%3E%3C/svg%3E");
  background-size: 14px;
  background-repeat: no-repeat;
  background-position: center;
}
body.dark-mode .custom-dropdown-item:hover { background: rgba(255,255,255,0.06); }
body.dark-mode .custom-dropdown-item.active { color: #ffffff; }
body.dark-mode .chip {
  background: rgba(30, 34, 50, 0.85);
  border-color: rgba(255, 255, 255, 0.2);
  color: #ffffff;
  font-weight: 500;
  backdrop-filter: blur(4px);
}
body.dark-mode .chip-close { color: rgba(255, 255, 255, 0.5); }
body.dark-mode .chip-close:hover { color: #ffffff; }
body.dark-mode .chips-expand-btn {
  background: rgba(30, 34, 50, 0.85);
  border-color: rgba(255, 255, 255, 0.2);
  color: #d1d5db;
}
body.dark-mode .chips-expand-btn:hover { background: #2a2e3f; color: #fff; }
body.dark-mode .chips-panel {
  background: var(--clr-surface);
  border-color: rgba(255, 255, 255, 0.12);
  box-shadow: 0 4px 24px rgba(0,0,0,0.4);
}
body.dark-mode .chips-panel-title { color: #e5e7eb; }
body.dark-mode .chips-panel-close { color: #6b7280; }
body.dark-mode .chips-panel-close:hover { color: #d1d5db; }
body.dark-mode .chips-panel-label { color: #6b7280; }
body.dark-mode .price-input {
  background: var(--clr-surface);
  border-color: rgba(255, 255, 255, 0.2);
  color: #ffffff;
}
body.dark-mode .price-input::placeholder { color: rgba(255, 255, 255, 0.5); }
body.dark-mode .price-input-wrap.has-value .input-prefix {
  color: #ffffff;
}
body.dark-mode .price-input-wrap.has-value .input-prefix-icon {
  stroke: #ffffff;
  color: #ffffff;
}
body.dark-mode .hero-actions { border-top-color: rgba(255, 255, 255, 0.20); }
body.dark-mode .btn-recent { border-bottom-color: rgba(255, 255, 255, 0.35); }
body.dark-mode .price-dash { background: rgba(255, 255, 255, 0.35); }
body.dark-mode .input-icon { color: #ffffff; stroke: #ffffff; }
body.dark-mode .input-prefix { color: #ffffff; }

/* ── Property card badges in dark mode ─────────────────────── */
body.dark-mode .card-heart {
  background: rgba(136, 206, 255, 0.10);
}
body.dark-mode .card-heart:hover { background: rgba(136, 206, 255, 0.20); }
body.dark-mode .card-phone { background: rgba(136, 206, 255, 0.08); }

/* ── Filter tabs in dark mode ──────────────── */
body.dark-mode .filter-tabs {
  background: var(--clr-surface);
  border-color: rgba(255, 255, 255, 0.08);
}
body.dark-mode .filter-tab {
  background: transparent;
  color: var(--clr-text-sec);
}
body.dark-mode .filter-tab.active {
  color: #fff;
}
body.dark-mode .filter-tab:not(.active):hover {
  color: #e2e8f0;
}
body.dark-mode .filter-tabs-slider {
  background: #38B6FF;
  box-shadow: none;
}
body.dark-mode .filter-tabs.rent-mode .filter-tabs-slider {
  background: #38B6FF;
  box-shadow: none;
}

/* ── Action buttons in dark mode ───────────── */
body.dark-mode .btn-publish { background: #38B6FF; color: #ffffff; }
body.dark-mode .btn-publish .btn-publish-icon svg { stroke: #ffffff; }
body.dark-mode .hero-scroll-btn { background: #38B6FF; }
body.dark-mode .hero-scroll-btn:hover { background: #a4daff; }
body.dark-mode .btn-search-hero { background: #38B6FF; color: #ffffff; }
body.dark-mode .btn-search-main { background: #38B6FF; color: #ffffff; }
body.dark-mode .hero-tab.active { background: #38B6FF; color: #ffffff; border-color: #38B6FF; }
body.dark-mode .btn-filters { border-color: rgba(255, 255, 255, 0.35); }
body.dark-mode .btn-filters .btn-filters-icon { stroke: #ffffff; }
body.dark-mode .btn-filters.has-filters { background: rgba(255, 255, 255, 0.08); }
body.dark-mode .btn-filters .filters-badge { background: #38B6FF; color: #fff; }
body.dark-mode .mobile-menu-btn span { background: #ffffff; }

/* ── All icons light blue in dark mode ───────────── */
body.dark-mode .property-type-btn svg,
body.dark-mode .info-icon svg,
body.dark-mode .illustration-placeholder svg,
body.dark-mode .select-wrap svg {
  stroke: #38B6FF;
  color: #38B6FF;
}
body.dark-mode .property-type-btn .window-dot,
body.dark-mode .property-type-btn .icon-dot {
  fill: #f5f3f0 !important;
  stroke: none !important;
}
body.dark-mode .input-icon,
body.dark-mode .hero-form svg {
  stroke: #ffffff;
  color: #ffffff;
}

