@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;500;600;700;800&display=swap');

@font-face {
  font-family: 'Benzin';
  src: url('/static/Benzin-Bold.woff2') format('woff2');
  font-weight: 700;
  font-display: swap;
}

@font-face {
  font-family: 'Benzin';
  src: url('/static/Benzin-Medium.woff2') format('woff2');
  font-weight: 500;
  font-display: swap;
}

@font-face {
  font-family: 'Benzin';
  src: url('/static/Benzin-Regular.woff2') format('woff2');
  font-weight: 400;
  font-display: swap;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
.mobile-only { display: none; }
@media (max-width: 768px) {
  .desktop-only { display: none !important; }
  .mobile-only { display: inline !important; }
}

body {
  font-family: 'Montserrat', sans-serif;
  background: #fff;
  color: #303b57;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.footer {
  margin-top: auto;
}

a { color: inherit; text-decoration: none; }

/* ─── Container ──────────────────────────────────────────────────── */

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ═══ Header ═════════════════════════════════════════════════════════ */

.header {
  background: #fff;
  padding: 18px 0;
  border-bottom: 1px solid #eef0f5;
  position: sticky;
  top: 0;
  z-index: 100;
}

.header--transparent {
  position: absolute;
  top: 0; left: 0; right: 0;
  background: transparent;
  border-bottom: none;
  z-index: 100;
}

.header--transparent .header-nav a {
  color: #fff;
}

.header--hidden {
  display: none;
}

/* ─── Topbar Navigation ──────────────────────────────────────────── */

.topbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  padding: 0 20px;
  height: 56px;
  background: rgba(26,30,46,0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255,255,255,0.08);
  will-change: transform;
}

.burger {
  width: 40px;
  height: 40px;
  background: none;
  border: none;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 0;
  flex-shrink: 0;
}

.burger span {
  display: block;
  width: 22px;
  height: 2px;
  background: #d4b84a;
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}

.burger.open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.burger.open span:nth-child(2) {
  opacity: 0;
}

.burger.open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.topbar-nav {
  display: none;
  align-items: center;
  gap: 0;
  margin-left: 12px;
}

.topbar-nav.open {
  display: flex;
}

.topbar-nav__item {
  position: relative;
}

.topbar-nav__label {
  display: block;
  padding: 16px 20px;
  color: rgba(255,255,255,0.7);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: color 0.2s;
  white-space: nowrap;
}

.topbar-nav__item:hover .topbar-nav__label {
  color: #d4b84a;
}

.topbar-nav__sub {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 240px;
  background: rgba(0,0,0,0.55);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 12px;
  padding: 6px 0;
  display: none;
  flex-direction: column;
  margin-top: 0;
}

.topbar-nav__item:hover .topbar-nav__sub {
  display: flex;
}

.topbar-nav__sub a {
  display: block;
  padding: 10px 18px;
  color: rgba(255,255,255,0.85);
  font-size: 0.82rem;
  font-weight: 400;
  transition: color 0.2s, background 0.2s;
  white-space: nowrap;
}

.topbar-nav__sub a::before {
  content: "›  ";
  color: #d4b84a;
  font-weight: 700;
}

.topbar-nav__sub a:hover {
  color: #d4b84a;
  background: rgba(255,255,255,0.06);
}

/* ─── Top Right Controls ────────────────────────────────────────── */

.topbar-insta {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 8px;
  color: rgba(255,255,255,0.7);
  font-size: 0.82rem;
  font-weight: 500;
  transition: color 0.2s;
}

.topbar-insta:hover {
  color: #d4b84a;
}

.topbar-insta svg {
  width: 18px;
  height: 18px;
}

.top-right {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 10px;
}

.lang-switch {
  display: flex;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 8px;
  overflow: hidden;
}

.lang-switch__btn {
  background: none;
  border: none;
  color: rgba(255,255,255,0.45);
  font-family: 'Montserrat', sans-serif;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0;
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s;
}

.lang-switch__btn:hover {
  color: #fff;
}

.lang-switch__btn.active {
  color: #d4b84a;
  background: rgba(205,176,108,0.12);
}

.call-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 8px;
  color: #d4b84a;
  transition: background 0.3s;
}

.call-btn:hover {
  background: rgba(255,255,255,0.15);
}

.call-btn svg {
  width: 20px;
  height: 20px;
}

.header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-size: 1.1rem;
  font-weight: 700;
  color: #303b57;
  letter-spacing: 0.02em;
}

.logo span { color: #d4b84a; }

.header-nav {
  display: flex;
  align-items: center;
  gap: 24px;
}

.header-nav a {
  font-size: 0.82rem;
  font-weight: 500;
  color: #535353;
  transition: color 0.2s;
}

.header-nav a:hover { color: #d4b84a; }

/* ═══ Hero Landing ═══════════════════════════════════════════════════ */

.hero-landing {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #1a1e2e;
  background-image:
    linear-gradient(135deg, rgba(48,59,87,0.72) 0%, rgba(26,30,46,0.68) 100%),
    url("/static/hero.jpg");
  background-size: cover;
  background-position: center;
  overflow: hidden;
}

.hero-landing__overlay {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 30% 50%, rgba(205,176,108,0.1) 0%, transparent 60%);
}

.hero-landing__content {
  position: relative;
  text-align: center;
  padding: 120px 20px 80px;
}


.hero-landing__heading {
  font-family: 'Benzin', sans-serif;
  font-size: 2.4rem;
  font-weight: 700;
  color: #e0c34e;
  letter-spacing: 0.06em;
  margin-bottom: 10px;
  text-transform: uppercase;
  white-space: nowrap;
}

.hero-landing__title {
  font-family: 'Benzin', sans-serif;
  font-size: 1.4rem;
  font-weight: 500;
  color: #fff;
  line-height: 1.15;
  margin-bottom: 48px;
  min-height: 1.15em;
  letter-spacing: 0.02em;
}

.typewriter {
  border-right: 3px solid #d4b84a;
  padding-right: 4px;
  animation: blink-cursor 0.7s step-end infinite;
}

@keyframes blink-cursor {
  50% { border-color: transparent; }
}

.hero-landing__count {
  margin-top: 24px;
  font-size: 0.82rem;
  color: rgba(255,255,255,0.4);
}

/* ─── Search Form ────────────────────────────────────────────────── */

.search-form {
  background: rgba(255,255,255,0.07);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 20px;
  padding: 32px;
  max-width: 800px;
  margin: 0 auto;
  transform: translateZ(0);
}

.search-form__row {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 1.3fr;
  gap: 16px;
  margin-bottom: 24px;
}

.search-form__group {
  text-align: left;
}

.search-form__group label {
  display: block;
  font-size: 0.7rem;
  font-weight: 600;
  color: #d4b84a;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 8px;
}

.search-form__select,
.search-form__input {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 10px;
  background: rgba(255,255,255,0.08);
  color: #fff;
  font-size: 0.85rem;
  font-family: 'Montserrat', sans-serif;
  appearance: none;
  cursor: pointer;
}

.search-form__select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath fill='%23cdb06c' d='M5 6L0 0h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 30px;
}

.search-form__select option {
  background: #303b57;
  color: #fff;
}

.search-form__select:focus,
.search-form__input:focus {
  outline: none;
  border-color: #d4b84a;
}

.search-form__input::placeholder {
  color: rgba(255,255,255,0.35);
}

.search-form__price-inputs {
  display: flex;
  align-items: center;
  gap: 6px;
}

.search-form__price-sep {
  color: rgba(255,255,255,0.3);
}

.search-form__actions {
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: center;
}

.search-form__toggle {
  background: none;
  border: 1px solid rgba(255,255,255,0.2);
  color: rgba(255,255,255,0.6);
  padding: 10px 20px;
  border-radius: 42px;
  font-size: 0.82rem;
  font-weight: 500;
  font-family: 'Montserrat', sans-serif;
  cursor: pointer;
  transition: all 0.2s;
}

.search-form__toggle:hover {
  border-color: #d4b84a;
  color: #d4b84a;
}

.search-form__btn {
  flex: 1;
  padding: 14px;
  background: #d4b84a;
  color: #fff;
  border: none;
  border-radius: 42px;
  font-size: 0.95rem;
  font-weight: 700;
  font-family: 'Montserrat', sans-serif;
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.search-form__btn:hover {
  background: #b89a5a;
  transform: translateY(-1px);
}

/* ─── Features ───────────────────────────────────────────────────── */

.features {
  padding: 64px 0;
  background: #f8f9fd;
}

.features__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  text-align: center;
}

.features__icon {
  font-size: 2rem;
  margin-bottom: 12px;
}

.features__item h3 {
  font-size: 0.95rem;
  font-weight: 700;
  color: #303b57;
  margin-bottom: 6px;
}

.features__item p {
  font-size: 0.82rem;
  color: #535353;
}

/* ═══ Listings Page ══════════════════════════════════════════════════ */

.listings-header {
  padding: 32px 0 16px;
  background: #303B57;
  border-bottom: none;
}

.listings-header h1 {
  font-size: 1.5rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 8px;
}

.listings-header__count {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.7);
}

.listings-header__count strong {
  color: #d4b84a;
  font-weight: 700;
}

.active-filters {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 8px;
}

.active-filter {
  display: inline-block;
  padding: 4px 12px;
  background: rgba(212,184,74,0.2);
  border-radius: 42px;
  font-size: 0.75rem;
  font-weight: 500;
  color: #fff;
}

.active-filter--clear {
  background: none;
  color: #d4b84a;
  font-weight: 600;
}

.active-filter--clear:hover {
  text-decoration: underline;
}

/* ─── OLX-style Filters ─────────────────────────────────────────── */

.filters-olx {
  padding: 24px 0 20px;
  background: #fff;
  border-bottom: 1px solid #eef0f5;
  overflow-x: hidden;
}

.filters-olx__title {
  font-size: 1.2rem;
  font-weight: 700;
  color: #303b57;
  margin-bottom: 20px;
}

.filters-olx__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 16px 20px;
}

.fo-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
}

.fo-group label {
  font-size: 0.75rem;
  font-weight: 600;
  color: #303b57;
}

.fo-select {
  width: 100%;
  padding: 10px 32px 10px 12px;
  border: 1px solid #e0e3eb;
  border-radius: 8px;
  background: #fff;
  font-size: 0.82rem;
  font-family: 'Montserrat', sans-serif;
  font-weight: 400;
  color: #535353;
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath fill='%23a0a5b5' d='M5 6L0 0h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  transition: border-color 0.2s;
}

.fo-select:focus { outline: none; border-color: #d4b84a; }

.fo-range {
  display: flex;
  gap: 6px;
}

.fo-input {
  flex: 1;
  min-width: 0;
  padding: 10px 12px;
  border: 1px solid #e0e3eb;
  border-radius: 8px;
  background: #fff;
  font-size: 0.82rem;
  font-family: 'Montserrat', sans-serif;
  color: #303b57;
  outline: none;
  transition: border-color 0.2s;
}

.fo-input:focus { border-color: #d4b84a; }

.fo-input::placeholder { color: #a0a5b5; }

.fo-currency {
  width: 52px;
  flex-shrink: 0;
  padding: 10px 6px;
  border: 1px solid #e0e3eb;
  border-radius: 8px;
  background: #fff;
  font-size: 0.85rem;
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  color: #303b57;
  cursor: pointer;
  appearance: none;
  text-align: center;
  transition: border-color 0.2s;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='8' height='5' viewBox='0 0 10 6'%3E%3Cpath fill='%23a0a5b5' d='M5 6L0 0h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 4px center;
  padding-right: 16px;
}

.fo-currency:focus { outline: none; border-color: #d4b84a; }

.fo-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 20px;
}

.fo-btn {
  padding: 10px 32px;
  background: #303b57;
  color: #fff;
  border: none;
  border-radius: 8px;
  font-family: 'Montserrat', sans-serif;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
}

.fo-btn:hover { background: #d4b84a; }

.fo-reset {
  font-size: 0.82rem;
  font-weight: 500;
  color: #d4b84a;
  transition: opacity 0.2s;
}

.fo-reset:hover { opacity: 0.7; }

.fo-reset--inline {
  display: flex;
  align-items: center;
  height: 42px;
}

/* ─── Listings Back Link ────────────────────────────────────────── */

.listings-header__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.listings-header__back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #d4b84a;
  font-size: 0.82rem;
  font-weight: 600;
  color: #d4b84a;
  transition: opacity 0.2s;
}

.listings-header__back:hover { opacity: 0.7; }

/* ─── Grid ───────────────────────────────────────────────────────── */

.listings-main {
  padding: 32px 0 64px;
  background: #f8f9fd;
  min-height: 50vh;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
}

/* ─── Card ───────────────────────────────────────────────────────── */

.card {
  display: block;
  background: #fff;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(48, 59, 87, 0.08);
  transition: box-shadow 0.3s, transform 0.3s;
}

.card:hover {
  box-shadow: 0 8px 30px rgba(48, 59, 87, 0.15);
  transform: translateY(-4px);
}

.card-img-wrap {
  position: relative;
  overflow: hidden;
}

.card-img {
  width: 100%;
  height: 240px;
  object-fit: cover;
  display: block;
  transition: transform 0.4s;
  image-rendering: auto;
  -webkit-image-smoothing: high;
}

.card:hover .card-img { transform: scale(1.05); }

.card-img-placeholder {
  width: 100%;
  height: 240px;
  background: #e0e3eb;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #a0a5b5;
  font-size: 3rem;
}

.card-type {
  position: absolute;
  top: 14px;
  left: 14px;
  background: rgba(0, 0, 0, 0.43);
  color: #fff;
  padding: 4px 14px;
  border-radius: 42px;
  font-size: 0.72rem;
  font-weight: 600;
}

.card-overlay {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 14px 18px;
  background: linear-gradient(transparent, rgba(0,0,0,0.6));
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
}

.card-overlay-status {
  font-size: 0.78rem;
  font-weight: 500;
  color: #fff;
}

.card-overlay-price {
  font-size: 1.15rem;
  font-weight: 700;
  color: #fff;
}

.card-info {
  padding: 16px 18px 18px;
}

.card-title {
  font-size: 0.9rem;
  font-weight: 600;
  color: #303b57;
  margin-bottom: 10px;
  line-height: 1.3;
}

.card-stats {
  display: flex;
  gap: 14px;
  margin-bottom: 12px;
}

.card-stat {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 0.78rem;
  color: #535353;
}

.card-stat svg {
  width: 15px;
  height: 15px;
  fill: #d4b84a;
  flex-shrink: 0;
}

.card-stat__id-badge {
  font-weight: 700;
  color: #d4b84a;
}

.card-details {
  border-top: 1px solid #eef0f5;
  padding-top: 10px;
}

.card-detail {
  display: flex;
  align-items: baseline;
  gap: 8px;
  font-size: 0.95rem;
  font-weight: 600;
}

.card-detail-label {
  color: #d4b84a;
  font-weight: 600;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.card-detail-value { color: #303b57; }

.card-detail-uah {
  color: #999;
  font-size: 0.78rem;
  font-weight: 400;
}

/* ─── Empty ──────────────────────────────────────────────────────── */

.empty {
  text-align: center;
  padding: 80px 20px;
  color: #535353;
  font-size: 0.95rem;
  grid-column: 1 / -1;
  line-height: 1.8;
}

.empty-icon {
  font-size: 3rem;
  margin-bottom: 16px;
  opacity: 0.4;
}

.empty a {
  display: inline-block;
  margin-top: 16px;
  padding: 10px 28px;
  background: #303b57;
  color: #fff;
  border-radius: 42px;
  font-size: 0.85rem;
  font-weight: 600;
  transition: background 0.2s;
}

.empty a:hover { background: #d4b84a; }

/* ═══ Detail Page ════════════════════════════════════════════════════ */

.detail {
  padding: 32px 0 64px;
}

.detail__back {
  display: inline-block;
  font-size: 0.82rem;
  color: #d4b84a;
  font-weight: 600;
  margin-bottom: 24px;
  transition: opacity 0.2s;
}

.detail__back:hover { opacity: 0.7; }

.detail__layout {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 40px;
  align-items: start;
}

.detail__right {
  padding-top: 36px;
}

.detail__desc-scroll {
  overflow-y: auto;
}

.detail__photo img {
  width: 100%;
  border-radius: 15px;
  object-fit: cover;
  max-height: 500px;
  box-shadow: 0 4px 20px rgba(48,59,87,0.12);
}

.detail__photo-placeholder {
  width: 100%;
  height: 400px;
  border-radius: 15px;
  background: #e0e3eb;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 4rem;
  color: #a0a5b5;
}

.detail__type-badge {
  display: inline-block;
  padding: 5px 16px;
  background: rgba(48,59,87,0.08);
  border-radius: 42px;
  font-size: 0.75rem;
  font-weight: 600;
  color: #535353;
  margin-bottom: 14px;
}

.detail__title {
  font-size: 1.6rem;
  font-weight: 700;
  color: #303b57;
  line-height: 1.25;
  margin-bottom: 16px;
}

.detail__price {
  font-size: 2rem;
  font-weight: 700;
  color: #303b57;
  margin-bottom: 28px;
}

.detail__price span:not(.detail__price-uah) {
  font-size: 1rem;
  font-weight: 400;
  color: #535353;
}

.detail__price-uah {
  font-size: 1.1rem;
  font-weight: 400;
  color: #999;
}

.detail__call-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  background: #303b57;
  color: #fff;
  font-size: 0.9rem;
  font-weight: 600;
  border-radius: 10px;
  text-decoration: none;
  margin-left: auto;
  white-space: nowrap;
  transition: background 0.2s;
}

.detail__call-btn:hover {
  background: #3d4d6e;
}

.detail__call-btn svg {
  flex-shrink: 0;
}

/* ─── Mini specs row ───────────────────────────────────────────── */

.detail__mini-specs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 16px 0 8px;
}

.detail__mini {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  background: #f8f9fd;
  border-radius: 8px;
  font-size: 0.82rem;
  font-weight: 600;
  color: #303b57;
}

.detail__mini svg {
  width: 16px;
  height: 16px;
  color: #d4b84a;
  flex-shrink: 0;
}

.detail__mini-id {
  font-weight: 700;
  color: #d4b84a;
}

/* ─── Address ──────────────────────────────────────────────────── */

.detail__address {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.85rem;
  color: #535353;
  margin-bottom: 24px;
}

.detail__address svg { color: #d4b84a; flex-shrink: 0; }

/* ─── Realtor card ─────────────────────────────────────────────── */

.detail__realtor {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 20px;
  background: #f8f9fd;
  border-radius: 14px;
  margin-bottom: 16px;
}

.detail__realtor-photo {
  width: 64px;
  height: 64px;
  min-width: 64px;
  border-radius: 50%;
  overflow: hidden;
  background: #e0e3eb;
}

.detail__realtor-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
  display: block;
}

.detail__realtor-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #a0a5b5;
}

.detail__realtor-info { display: flex; flex-direction: column; }

.detail__realtor-name {
  font-size: 0.95rem;
  font-weight: 700;
  color: #303b57;
}

.detail__realtor-role {
  font-size: 0.78rem;
  color: #a0a5b5;
  font-weight: 500;
}

.detail__realtor-compact {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  background: #f8f9fd;
  border-radius: 12px;
  margin-top: 16px;
}

.detail__realtor-compact .detail__realtor-photo {
  width: 80px;
  height: 80px;
  min-width: 80px;
}

.detail__realtor-phone {
  font-size: 0.82rem;
  color: #d4b84a;
  text-decoration: none;
  font-weight: 500;
}

.detail__realtor-phone:hover {
  text-decoration: underline;
}

/* ─── Contact links ────────────────────────────────────────────── */

.detail__contacts {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 24px;
}

.detail__contact {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  border: 1px solid #e0e3eb;
  border-radius: 10px;
  font-size: 0.85rem;
  font-weight: 600;
  color: #303b57;
  transition: border-color 0.2s, color 0.2s;
}

.detail__contact svg { color: #d4b84a; flex-shrink: 0; }
.detail__contact:hover { border-color: #d4b84a; color: #d4b84a; }

.detail__desc {
  margin-bottom: 32px;
}

.detail__desc h2 {
  font-size: 0.95rem;
  font-weight: 700;
  color: #303b57;
  margin-bottom: 10px;
}

.detail__desc p {
  font-size: 0.88rem;
  color: #535353;
  line-height: 1.7;
  white-space: pre-line;
}

.detail__cta {
  display: block;
  text-align: center;
  padding: 16px;
  background: #d4b84a;
  color: #fff;
  border-radius: 42px;
  font-size: 0.95rem;
  font-weight: 700;
  transition: background 0.2s, transform 0.2s;
  letter-spacing: 0.03em;
}

.detail__cta:hover {
  background: #b89a5a;
  transform: translateY(-1px);
}

.detail__cta-hint {
  text-align: center;
  font-size: 0.75rem;
  color: #a0a5b5;
  margin-top: 8px;
}

/* ─── Viewer tabs ──────────────────────────────────────────────── */

.detail__viewer-tabs {
  display: flex;
  gap: 4px;
  margin-bottom: 8px;
}

.detail__viewer-tab {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 18px;
  border: none;
  border-radius: 10px 10px 0 0;
  background: #e8eaf0;
  font-family: 'Montserrat', sans-serif;
  font-size: 0.82rem;
  font-weight: 600;
  color: #535353;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}

.detail__viewer-tab:hover { background: #d4d8e2; }
.detail__viewer-tab.active { background: #303b57; color: #fff; }
.detail__viewer-tab svg { flex-shrink: 0; }

.detail__viewer-photo,
.detail__viewer-map {
  border-radius: 0 12px 12px 12px;
  overflow: hidden;
}

.detail__viewer-map {
  height: 460px;
  background: #e8eaf0;
}

/* ─── Gallery ──────────────────────────────────────────────────── */

.detail__gallery-main {
  position: relative;
  overflow: hidden;
  border-radius: 0 12px 0 0;
}

.detail__gallery-main img {
  width: 100%;
  display: block;
  object-fit: cover;
  max-height: 460px;
}

.detail__gallery-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 8px;
  background: rgba(48,59,87,0.55);
  border: none;
  font-size: 1.6rem;
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
  line-height: 1;
}

.detail__gallery-arrow:hover { background: rgba(48,59,87,0.8); }
.detail__gallery-arrow--left { left: 10px; }
.detail__gallery-arrow--right { right: 10px; }

.detail__gallery-counter {
  position: absolute;
  bottom: 12px;
  right: 12px;
  background: rgba(0,0,0,0.55);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 20px;
}

/* ─── Thumbs row ───────────────────────────────────────────────── */

.detail__thumbs-wrap {
  position: relative;
  display: flex;
  align-items: center;
  margin-top: 8px;
}

.detail__thumbs-arrow {
  flex-shrink: 0;
  width: 32px;
  height: 72px;
  border: none;
  background: rgba(48,59,87,0.6);
  color: #fff;
  font-size: 1.3rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
  border-radius: 6px;
}

.detail__thumbs-arrow:hover { background: rgba(48,59,87,0.85); }

.detail__gallery-thumbs {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  scroll-behavior: smooth;
  flex: 1;
  padding: 0 6px;
  scrollbar-width: none;
}

.detail__gallery-thumbs::-webkit-scrollbar { display: none; }

.detail__gallery-thumb {
  width: 96px;
  height: 72px;
  object-fit: cover;
  border-radius: 8px;
  cursor: pointer;
  opacity: 0.5;
  transition: opacity 0.2s, box-shadow 0.2s;
  flex-shrink: 0;
}

.detail__gallery-thumb:hover { opacity: 0.85; }
.detail__gallery-thumb.active { opacity: 1; box-shadow: 0 0 0 2px #d4b84a; }

/* ─── Lightbox ─────────────────────────────────────────────────── */

.detail__lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.92);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s;
}

.detail__lightbox.open { opacity: 1; pointer-events: auto; }

.detail__lightbox img {
  max-width: 90vw;
  max-height: 85vh;
  object-fit: contain;
  border-radius: 8px;
}

.detail__lightbox-close {
  position: absolute;
  top: 20px;
  right: 24px;
  background: none;
  border: none;
  color: #fff;
  font-size: 2.2rem;
  cursor: pointer;
  line-height: 1;
  opacity: 0.7;
  transition: opacity 0.2s;
}

.detail__lightbox-close:hover { opacity: 1; }

.detail__lightbox-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255,255,255,0.15);
  border: none;
  color: #fff;
  font-size: 2rem;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}

.detail__lightbox-arrow:hover { background: rgba(255,255,255,0.3); }
.detail__lightbox-arrow--left { left: 20px; }
.detail__lightbox-arrow--right { right: 20px; }

.detail__lightbox-counter {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  color: #fff;
  font-size: 0.85rem;
  font-weight: 600;
  background: rgba(0,0,0,0.5);
  padding: 6px 16px;
  border-radius: 20px;
}

/* ═══ Request Section ════════════════════════════════════════════════ */

.request-section {
  padding: 56px 0;
  position: relative;
  overflow: hidden;
}

.deco-strip {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 40px;
  overflow: hidden;
  opacity: 0.12;
  pointer-events: none;
}

.deco-strip--left { left: 16px; }
.deco-strip--right { right: 16px; }

.deco-strip__scroll {
  display: flex;
  flex-direction: column;
  animation: deco-scroll 18s linear infinite;
}

.deco-strip__scroll--reverse {
  animation-direction: reverse;
}

.deco-strip__track {
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding-bottom: 24px;
}

.deco-strip__track span {
  font-size: 1.4rem;
  display: block;
  text-align: center;
}

@keyframes deco-scroll {
  0% { transform: translateY(0); }
  100% { transform: translateY(-50%); }
}

.request-section .container {
  background: #eef0f5;
  border-radius: 24px;
  padding: 48px 40px;
}

.request-section__title {
  font-family: 'Benzin', sans-serif;
  font-weight: 700;
  font-size: 1.5rem;
  color: #303B57;
  margin-bottom: 10px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.request-section__desc {
  font-family: 'Benzin', sans-serif;
  font-weight: 400;
  color: #5a6178;
  font-size: 0.85rem;
  margin-bottom: 28px;
  line-height: 1.7;
}

.request-form__input,
.request-form__btn {
  font-family: 'Benzin', sans-serif;
  font-weight: 400;
}

.request-form {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.request-form__input {
  flex: 1;
  min-width: 160px;
  height: 50px;
  padding: 0 20px;
  border: 1px solid #dde0e8;
  border-radius: 42px;
  font-size: 0.95rem;
  background: #fff;
  color: #303B57;
  outline: none;
  transition: border-color 0.2s;
  line-height: 50px;
}

.request-form__input::placeholder {
  color: #8a8fa0;
}

.request-form__input:focus {
  border-color: #d4b84a;
}

.request-form__input--wide {
  flex: 1.5;
}

.request-form__btn {
  padding: 14px 36px;
  background: #d4b84a;
  color: #fff;
  border: none;
  border-radius: 42px;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.2s, transform 0.15s;
}

.request-form__btn:hover {
  background: #b89a5a;
  transform: translateY(-1px);
}

.request-form__btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.request-form__status {
  margin-top: 12px;
  font-size: 0.88rem;
}

.request-form__status.success { color: #2ecc71; }
.request-form__status.error { color: #e74c3c; }

.about-me__bottom {
  margin-top: auto;
  padding-top: 20px;
}

.about-me__services-block {
  background: rgba(48,59,87,0.05);
  border-left: 3px solid #d4b84a;
  border-radius: 0 10px 10px 0;
  padding: 14px 20px;
}

.about-me__services-label {
  font-family: 'Benzin', sans-serif;
  font-weight: 500;
  font-size: 0.85rem;
  color: #303B57;
  display: block;
  margin-bottom: 6px;
}

.about-me__services {
  list-style: none;
  padding: 0;
  margin: 0;
}

.about-me__services li {
  font-size: 0.88rem;
  color: #5a6178;
  line-height: 1.6;
  padding-left: 18px;
  position: relative;
}

.about-me__services li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: #d4b84a;
  font-size: 0.8rem;
}

.request-section__divider {
  border: none;
  border-top: 1px solid #dde0e8;
  margin: 36px 0;
}

.about-me {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 32px;
  align-items: start;
}

.about-me__photo img {
  width: 100%;
  border-radius: 16px;
  object-fit: cover;
  object-position: top;
  aspect-ratio: 3 / 4;
}

.about-me__photo-placeholder {
  width: 100%;
  aspect-ratio: 3 / 4;
  background: #dde0e8;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 4rem;
}

.about-me__text {
  display: flex;
  flex-direction: column;
}

.about-me__name {
  font-family: 'Benzin', sans-serif;
  font-weight: 700;
  font-size: 1.2rem;
  color: #303B57;
  margin-bottom: 4px;
}

.about-me__role {
  font-family: 'Benzin', sans-serif;
  font-weight: 400;
  font-size: 0.85rem;
  color: #d4b84a;
  margin-bottom: 16px;
}

.about-me__desc {
  font-size: 0.92rem;
  color: #5a6178;
  line-height: 1.7;
}

.about-me__contacts {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid rgba(48,59,87,0.08);
}

.about-me__phone {
  font-family: 'Benzin', sans-serif;
  font-weight: 500;
  font-size: 0.95rem;
  color: #303B57;
  transition: color 0.2s;
}

.about-me__phone:hover { color: #d4b84a; }

.about-me__socials {
  display: flex;
  gap: 10px;
}

.about-me__socials a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  color: #303B57;
  border-radius: 50%;
  background: rgba(48,59,87,0.08);
  transition: color 0.2s, background 0.2s;
}

.about-me__socials a:hover {
  color: #fff;
  background: #d4b84a;
}

.about-me__socials svg {
  width: 18px;
  height: 18px;
}

/* ═══ Property Types ═════════════════════════════════════════════════ */

.property-types {
  padding: 64px 0;
  background: #303B57;
}

.property-types__title {
  font-family: 'Benzin', sans-serif;
  font-weight: 700;
  font-size: 1.6rem;
  color: #fff;
  text-align: center;
  margin-bottom: 40px;
}

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

.property-types__card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  background: #F8F9FD;
  border-radius: 20px;
  padding: 32px 24px 28px;
  transition: transform 0.25s, box-shadow 0.25s;
  text-decoration: none;
  color: inherit;
}

.property-types__card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 32px rgba(48,59,87,0.10);
}

.property-types__img {
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: 14px;
  overflow: hidden;
  margin-bottom: 20px;
}

.property-types__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s;
}

.property-types__card:hover .property-types__img img {
  transform: scale(1.05);
}

.property-types__name {
  font-family: 'Benzin', sans-serif;
  font-weight: 700;
  font-size: 1.05rem;
  color: #303B57;
  margin-bottom: 8px;
}

.property-types__desc {
  font-size: 0.88rem;
  color: #5a6178;
  line-height: 1.6;
}

/* ═══ Map Section ════════════════════════════════════════════════════ */

.map-section {
  padding: 64px 0;
  background: #F8F9FD;
}

.map-section__title {
  font-family: 'Benzin', sans-serif;
  font-weight: 700;
  font-size: 1.6rem;
  color: #303B57;
  text-align: center;
  margin-bottom: 8px;
}

.map-section__desc {
  text-align: center;
  color: #5a6178;
  font-size: 0.92rem;
  margin-bottom: 32px;
}

.map-section__map {
  height: 480px;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 4px 24px rgba(48,59,87,0.10);
}

.map-marker__dot {
  width: 16px;
  height: 16px;
  background: #d4b84a;
  border: 3px solid #fff;
  border-radius: 50%;
  box-shadow: 0 2px 8px rgba(0,0,0,0.25);
  margin: 4px;
}

.map-section .leaflet-popup-content-wrapper {
  padding: 0;
  border-radius: 10px;
  overflow: hidden;
}

.map-section .leaflet-popup-content {
  margin: 0;
  min-width: 220px;
}

.map-popup--card {
  display: block;
  text-decoration: none;
  color: #303B57;
  font-family: 'Montserrat', sans-serif;
  min-width: 220px;
  max-width: 260px;
}

.map-popup--card:hover { color: #303B57; }

.map-popup__img {
  width: 100%;
  height: 140px;
  object-fit: cover;
  border-radius: 8px 8px 0 0;
  display: block;
}

.map-popup__body {
  padding: 10px 12px 12px;
}

.map-popup__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 4px;
}

.map-popup__price {
  font-family: 'Benzin', sans-serif;
  font-weight: 700;
  font-size: 1.1rem;
  color: #303B57;
}

.map-popup__share {
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  color: #888;
  border-radius: 6px;
  transition: color .2s, background .2s;
  display: flex;
  align-items: center;
}

.map-popup__share:hover {
  color: #303B57;
  background: #f0f0f0;
}

.map-popup__specs {
  font-size: 0.78rem;
  color: #555;
  margin-bottom: 6px;
}

.map-popup__bottom {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
}

.map-popup__address {
  font-size: 0.75rem;
  color: #888;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.map-popup__detail {
  font-size: 0.75rem;
  font-weight: 600;
  color: #d4b84a;
  text-decoration: none;
  white-space: nowrap;
}

.map-popup__detail:hover {
  color: #303B57;
}

/* ═══ Footer ═════════════════════════════════════════════════════════ */

.footer {
  background: #303b57;
  color: #a0a5b5;
  padding: 32px 0;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.footer-contact {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.9rem;
}

.footer-name {
  color: #fff;
  font-weight: 600;
}

.footer-phone {
  color: #a0a5b5;
  transition: color 0.2s;
}

.footer-phone:hover { color: #d4b84a; }

.footer-socials {
  display: flex;
  align-items: center;
  gap: 16px;
}

.footer-socials a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  color: #a0a5b5;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  transition: color 0.2s, background 0.2s;
}

.footer-socials a:hover {
  color: #fff;
  background: #d4b84a;
}

.footer-socials svg {
  width: 18px;
  height: 18px;
}

.footer-privacy {
  font-size: 0.85rem;
  font-weight: 700;
  color: #6b7190;
  transition: color 0.2s;
}

.footer-privacy:hover { color: #d4b84a; }

/* ═══ Privacy Page ══════════════════════════════════════════════════ */

.privacy-page {
  padding: 48px 0 64px;
}

.privacy-page h1 {
  font-family: 'Benzin', sans-serif;
  font-weight: 700;
  font-size: 1.6rem;
  color: #303B57;
  margin-bottom: 8px;
}

.privacy-updated {
  color: #8a8fa0;
  font-size: 0.85rem;
  margin-bottom: 32px;
}

.privacy-page h2 {
  font-size: 1.05rem;
  color: #303B57;
  margin: 24px 0 8px;
}

.privacy-page p,
.privacy-page li {
  color: #5a6178;
  font-size: 0.92rem;
  line-height: 1.7;
}

.privacy-page ul {
  padding-left: 20px;
  margin: 8px 0;
}

.privacy-page a {
  color: #d4b84a;
}

/* ═══ Responsive ═════════════════════════════════════════════════════ */

.detail__mobile-header { display: none; }

@media (max-width: 900px) {
  .deco-strip { display: none; }
  .detail__layout {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .detail__mobile-header { display: block; margin-bottom: 16px; }
  .detail__mobile-header .detail__type-badge { margin-bottom: 6px; }
  .detail__mobile-header .detail__title { margin-bottom: 4px; }
  .detail__right { padding-top: 0; }
  .detail__right .detail__type-badge,
  .detail__right .detail__title,
  .detail__right .detail__price { display: none; }
}

@media (max-width: 768px) {
  .hero-landing__heading { font-size: 1.4rem; white-space: normal; }
  .hero-landing__title { font-size: 1.1rem; white-space: normal; }
  .hero-landing { min-height: auto; }
  .hero-landing__content { padding: 80px 16px 40px; }
  .topbar-insta { display: none; }
  .topbar-nav.open { flex: 1; justify-content: center; }
  .topbar-nav.open ~ .top-right { display: none; }
  .topbar-nav__label { padding: 14px 14px; font-size: 0.8rem; }
  .search-form__row { grid-template-columns: 1fr; }
  .search-form { padding: 20px 16px; }
  .about-me { grid-template-columns: 1fr; justify-items: center; text-align: center; }
  .about-me__photo { max-width: 220px; }
  .about-me__desc { font-size: 0.85rem; line-height: 1.6; text-align: left; }
  .about-me__contacts { justify-content: center; }
  .about-me__socials { display: none; }
  .request-form { flex-direction: column; }
  .request-form__input, .request-form__input--wide, .request-form__btn { width: 100%; min-width: unset; }
  .request-section .container { padding: 32px 20px; }
  .grid { grid-template-columns: 1fr; }
  .property-types__grid { grid-template-columns: 1fr; max-width: 360px; margin: 0 auto; }
  .property-types__title { font-size: 1.2rem; }
  .property-types { padding: 40px 0; }
  .map-section__map { height: 320px; }
  .map-section__title { font-size: 1.2rem; }
  .map-section { padding: 40px 0; }
  .footer-inner { flex-direction: column; text-align: center; }
  .footer-contact { flex-direction: column; gap: 4px; }
  .footer-socials { justify-content: center; }
  .listings-header h1 { font-size: 1.2rem; }
  .filters-olx { padding: 14px 0 10px; }
  .filters-olx__title { font-size: 1rem; margin-bottom: 10px; }
  .filters-olx__grid { grid-template-columns: 1fr; gap: 8px; }
  .fo-group { gap: 3px; }
  .fo-group label { font-size: 0.72rem; }
  .fo-select { padding: 7px 28px 7px 10px; font-size: 0.82rem; border-radius: 6px; }
  .fo-input { padding: 7px 10px; font-size: 0.82rem; border-radius: 6px; }
  .fo-currency { width: 46px; padding: 7px 4px; font-size: 0.82rem; }
  .fo-actions { flex-direction: column; }
  .fo-btn { width: 100%; }
  .map-section .leaflet-popup-content { min-width: 160px; }
  .map-popup--card { min-width: 160px; }
  .map-popup__img { height: 100px; }
  .map-popup__body { padding: 7px 9px 9px; }
  .map-popup__price { font-size: 0.9rem; }
  .map-popup__specs { font-size: 0.7rem; margin-bottom: 4px; }
  .map-popup__bottom { gap: 6px; }
  .map-popup__address { font-size: 0.68rem; }
  .map-popup__detail { font-size: 0.68rem; }
}

@media (max-width: 480px) {
  .hero-landing__heading { font-size: 1.1rem; }
  .hero-landing__title { font-size: 0.95rem; }
  .header-nav a:first-child { display: none; }
  .detail__title { font-size: 1.2rem; }
  .detail__price { font-size: 1.5rem; }
}
