﻿:root {
  --bg: #edf2f7;
  --panel: rgba(255, 255, 255, 0.14);
  --panel-strong: rgba(255, 255, 255, 0.24);
  --border: rgba(255, 255, 255, 0.34);
  --text: #0f172a;
  --muted: #475569;
  --accent: #1e293b;
  --accent-soft: #64748b;
  --shadow: 0 20px 60px rgba(15, 23, 42, 0.14);
  --shadow-hover: 0 28px 80px rgba(15, 23, 42, 0.2);
  --radius-xl: 28px;
  --radius-lg: 22px;
  --radius-md: 16px;
  --radius-pill: 999px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  color: var(--text);
  background: linear-gradient(135deg, #eef2f7 0%, #d9e2ec 45%, #cbd5e1 100%);
  overflow-x: hidden;
  position: relative;
}

body::before,
body::after {
  content: "";
  position: fixed;
  border-radius: 50%;
  filter: blur(80px);
  z-index: -3;
  opacity: 0.72;
}

body::before {
  width: 280px;
  height: 280px;
  background: rgba(148, 163, 184, 0.45);
  top: 48px;
  left: 22px;
}

body::after {
  width: 340px;
  height: 340px;
  background: rgba(255, 255, 255, 0.42);
  bottom: 18px;
  right: 18px;
}

.page::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -4;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.14) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.14) 1px, transparent 1px);
  background-size: 38px 38px;
  mask-image: radial-gradient(circle at center, black 28%, transparent 82%);
  -webkit-mask-image: radial-gradient(circle at center, black 28%, transparent 82%);
}

.container {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
}

.navbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  padding: 18px 0;
  backdrop-filter: blur(10px);
}

.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  background: var(--panel);
  border: 1px solid var(--border);
  box-shadow: 0 10px 35px rgba(15, 23, 42, 0.08);
  border-radius: 24px;
  padding: 14px 18px;
}

.logo {
  color: var(--accent);
  text-decoration: none;
  font-weight: 800;
  font-size: 1.15rem;
  white-space: nowrap;
}

.top-actions,
.filter-actions,
.card-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.btn {
  border: 1px solid rgba(255, 255, 255, 0.4);
  background: rgba(255, 255, 255, 0.45);
  color: var(--text);
  padding: 10px 16px;
  border-radius: var(--radius-pill);
  cursor: pointer;
  text-decoration: none;
  font: inherit;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease, border-color 0.25s ease;
  backdrop-filter: blur(14px);
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.1);
}

.btn.primary {
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.24), rgba(203, 213, 225, 0.1)),
    linear-gradient(180deg, rgba(255, 255, 255, 0.32), rgba(255, 255, 255, 0.08));
  color: #0f172a;
  border-color: rgba(203, 213, 225, 0.44);
  box-shadow:
    0 18px 34px rgba(148, 163, 184, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.3),
    inset 0 -1px 0 rgba(15, 23, 42, 0.14);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.btn.primary:hover {
  transform: translateY(-2px);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.34), rgba(226, 232, 240, 0.16)),
    linear-gradient(180deg, rgba(255, 255, 255, 0.4), rgba(255, 255, 255, 0.14));
  box-shadow:
    0 24px 42px rgba(148, 163, 184, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.38),
    inset 0 -1px 0 rgba(15, 23, 42, 0.18);
  border-color: rgba(226, 232, 240, 0.66);
}

.btn.primary:active {
  transform: translateY(0);
  box-shadow:
    0 12px 24px rgba(148, 163, 184, 0.16),
    inset 0 2px 8px rgba(15, 23, 42, 0.18);
}

.btn.primary:focus-visible {
  outline: none;
  box-shadow:
    0 0 0 4px rgba(203, 213, 225, 0.3),
    0 18px 34px rgba(148, 163, 184, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.btn.ghost {
  background: rgba(255, 255, 255, 0.36);
}

.dropdown {
  position: relative;
}

.dropdown-menu,
.side-submenu {
  display: none;
}

.dropdown-menu.open {
  display: block;
  position: absolute;
  top: calc(100% + 10px);
  inset-inline-start: 0;
  min-width: 230px;
  padding: 10px;
  background: rgba(255, 255, 255, 0.5);
  border: 1px solid var(--border);
  border-radius: 18px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.dropdown-menu a,
.side-submenu a,
.side-menu a,
.side-buying-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 18px 20px;
  color: var(--text);
  border: 1px solid rgba(255, 255, 255, 0.42);
  background: rgba(255, 255, 255, 0.44);
  text-align: start;
  cursor: pointer;
  text-decoration: none;
  font: inherit;
  border-radius: 22px;
  box-shadow: 0 14px 28px rgba(148, 163, 184, 0.12);
  backdrop-filter: blur(16px);
}

.dropdown-menu a:hover,
.side-submenu a:hover,
.side-menu a:hover,
.side-buying-btn:hover {
  background: rgba(255, 255, 255, 0.58);
  transform: translateY(-1px);
}

.side-menu {
  position: fixed;
  top: 0;
  inset-inline-start: -300px;
  width: 300px;
  height: 100vh;
  padding: 22px;
  background: rgba(255, 255, 255, 0.42);
  border-inline-end: 1px solid var(--border);
  backdrop-filter: blur(18px);
  transition: inset-inline-start 0.3s ease;
  z-index: 1100;
  box-shadow: var(--shadow);
}

.side-menu.open {
  inset-inline-start: 0;
}

.side-submenu.open {
  display: grid;
  gap: 12px;
  padding-top: 2px;
}

.close-btn {
  border: none;
  background: none;
  font-size: 2rem;
  color: var(--accent);
  cursor: pointer;
  margin-bottom: 12px;
}

.overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.22);
  backdrop-filter: blur(4px);
  z-index: 1001;
}

.overlay.show {
  display: block;
}

.page {
  padding: 8px 0 40px;
}

.hero,
.filters,
.map-box,
.property-card {
  background: var(--panel);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.hero {
  padding: 26px;
  border-radius: var(--radius-xl);
  margin-bottom: 18px;
}

.hero h1 {
  margin: 0 0 8px;
  font-size: clamp(1.8rem, 3vw, 2.6rem);
}

.hero p {
  margin: 0;
  color: var(--muted);
  max-width: 760px;
  line-height: 1.8;
}

.filters {
  padding: 18px;
  border-radius: var(--radius-xl);
  margin-bottom: 20px;
}

.filter-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-bottom: 14px;
}

.filter-grid input,
.filter-grid select {
  width: 100%;
  padding: 13px 14px;
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.55);
  color: var(--text);
  font: inherit;
  backdrop-filter: blur(14px);
}

.filter-grid input::placeholder {
  color: #64748b;
}

.check {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 14px;
  background: rgba(255, 255, 255, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 16px;
  backdrop-filter: blur(14px);
}

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

.active-filters span {
  background: rgba(255, 255, 255, 0.5);
  color: var(--accent);
  padding: 8px 12px;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(255, 255, 255, 0.4);
  font-size: 0.9rem;
}

.content-grid {
  display: grid;
  grid-template-columns: 1.6fr 0.9fr;
  gap: 20px;
  align-items: start;
}

.results-bar {
  margin-bottom: 12px;
  color: var(--accent);
}

.properties-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 20px;
}

.page-btn {
  min-width: 46px;
  padding: 10px 14px;
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.45);
  color: var(--text);
  cursor: pointer;
  font: inherit;
  backdrop-filter: blur(14px);
}

.page-btn.active {
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.24), rgba(203, 213, 225, 0.1)),
    linear-gradient(180deg, rgba(255, 255, 255, 0.32), rgba(255, 255, 255, 0.08));
  color: #0f172a;
  border-color: rgba(203, 213, 225, 0.42);
  box-shadow:
    0 16px 28px rgba(148, 163, 184, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.24);
}

.page-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.property-card {
  overflow: hidden;
  border-radius: 24px;
  transition: transform 0.22s ease, box-shadow 0.22s ease;
  cursor: pointer;
}

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

.card-media {
  position: relative;
  overflow: hidden;
}

.property-card img {
  width: 100%;
  height: 190px;
  object-fit: cover;
  display: block;
}

.media-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(17, 24, 39, 0.72);
  color: white;
  font-size: 0.8rem;
  font-weight: 700;
}

.deed-badge {
  position: static;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  max-width: 100%;
  padding: 7px 11px;
  border-radius: 14px;
  background: rgba(15, 23, 42, 0.92);
  color: #fff;
  font-size: 0.74rem;
  font-weight: 700;
  line-height: 1.45;
  box-shadow: 0 10px 22px rgba(15, 23, 42, 0.14);
  backdrop-filter: blur(14px);
}

.deed-for_transfer {
  background: rgba(37, 99, 235, 0.92);
  color: #fff;
}

.deed-vacant {
  background: rgba(22, 163, 74, 0.92);
  color: #fff;
}

.deed-pre_registration {
  background: rgba(202, 138, 4, 0.92);
  color: #fff;
}

.heart-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 3px solid white;
  background: rgba(17, 24, 39, 0.25);
  color: white;
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
}

.media-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.22);
  color: #fff;
  font-size: 2rem;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(12px);
  box-shadow: 0 12px 24px rgba(15, 23, 42, 0.18);
  opacity: 0;
  transition: opacity 0.2s ease, transform 0.2s ease, background 0.2s ease;
  z-index: 2;
}

.property-card:hover .media-arrow,
.card-media:hover .media-arrow {
  opacity: 1;
}

.media-arrow:hover {
  background: rgba(255, 255, 255, 0.34);
  transform: translateY(-50%) scale(1.04);
}

.media-arrow-prev {
  left: 10px;
}

.media-arrow-next {
  right: 10px;
}

.media-dots {
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 6px;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(17, 24, 39, 0.45);
  z-index: 2;
}

.media-dot {
  width: 8px;
  height: 8px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.55);
  cursor: pointer;
}

.media-dot.active {
  background: white;
}

.card-body {
  padding: 12px 14px 14px;
  background: linear-gradient(180deg, rgba(249, 250, 251, 0.98), rgba(241, 245, 249, 0.96));
}

.card-price-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin-bottom: 6px;
}

.card-status-row {
  margin-bottom: 10px;
}

.card-price {
  font-size: 1.05rem;
  font-weight: 800;
  color: #0f172a;
}

.more-btn {
  border: none;
  background: none;
  color: #0f62fe;
  font-size: 1.2rem;
  cursor: pointer;
}

.card-more {
  position: relative;
}

.card-menu {
  position: absolute;
  top: calc(100% + 8px);
  inset-inline-end: 0;
  min-width: 190px;
  display: none;
  flex-direction: column;
  gap: 6px;
  padding: 8px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.74);
  border: 1px solid rgba(203, 213, 225, 0.7);
  box-shadow: 0 18px 34px rgba(15, 23, 42, 0.14);
  backdrop-filter: blur(16px);
  z-index: 8;
}

.card-menu.open {
  display: flex;
}

.card-menu-item {
  display: block;
  width: 100%;
  padding: 10px 12px;
  border: 0;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.42);
  color: var(--text);
  text-align: start;
  text-decoration: none;
  font: inherit;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}

.card-menu-item:hover {
  background: rgba(255, 255, 255, 0.7);
  transform: translateY(-1px);
}

.card-specs {
  color: #0f172a;
  font-size: 0.92rem;
  margin-bottom: 6px;
  font-weight: 600;
}

.card-address {
  margin: 0 0 8px;
  color: #1e293b;
  font-size: 0.92rem;
  line-height: 1.45;
  font-weight: 600;
}

.card-footer-line {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 12px;
}

.property-id {
  color: #0f62fe;
  font-size: 0.83rem;
  font-weight: 700;
}

.listing-name {
  color: #475569;
  font-size: 0.82rem;
}

.card-actions {
  justify-content: flex-start;
}

.card-actions .btn {
  padding: 8px 12px;
  font-size: 0.9rem;
}

.map-box {
  padding: 16px;
  border-radius: var(--radius-xl);
  position: sticky;
  top: 102px;
}

.map-box h3 {
  margin-top: 0;
  margin-bottom: 12px;
}

#map {
  height: 520px;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.36);
}

@media (max-width: 980px) {
  .nav {
    flex-wrap: wrap;
  }

  .filter-grid,
  .content-grid {
    grid-template-columns: 1fr;
  }

  .properties-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .map-box {
    position: static;
  }

  #map {
    height: 320px;
  }
}

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

  .property-card img {
    height: 220px;
  }
}

