@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@500;700&family=DM+Sans:wght@300;400;500;600&display=swap');
@import url('property-card.css');

:root {
  --bg: #f9fafb;
  --surface: #ffffff;
  --card: #ffffff;
  --border: #eef1f6;
  --accent: #16a34a;
  --accent2: #15803d;
  --text: #1a1d26;
  --muted: #6b7280;
  --green: #16a34a;
  --red: #dc2626;
  --blue: #2563eb;
  --sidebar: 400px;
  --header: 64px;
}

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

body {
  font-family: 'DM Sans', sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  overflow-x: hidden;
}

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

button {
  cursor: pointer;
  font-family: 'DM Sans', sans-serif;
}

input,
select,
textarea {
  font-family: 'DM Sans', sans-serif;
  color: var(--text);
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 10px 14px;
  outline: none;
  width: 100%;
  transition: border-color 0.2s;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--accent);
}

input::placeholder,
textarea::placeholder {
  color: var(--muted);
}

select option {
  background: var(--card);
}

/* ── LEAFLET OVERRIDES ── */
.leaflet-container {
  background: #e8ecf1 !important;
}

.leaflet-popup-content-wrapper {
  background: var(--card) !important;
  color: var(--text) !important;
  border: 1px solid var(--border) !important;
  border-radius: 12px !important;
  box-shadow: 0 8px 24px rgba(0, 0, 0, .12) !important;
  font-family: 'DM Sans', sans-serif !important;
}

.leaflet-popup-tip {
  background: var(--card) !important;
}

.leaflet-popup-close-button {
  color: var(--muted) !important;
  font-size: 18px !important;
}

/* ── SCROLLBAR ── */
::-webkit-scrollbar {
  width: 4px;
  height: 4px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: var(--border);
  border-radius: 2px;
}

/* ── BUTTONS ── */
.btn {
  padding: 10px 20px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  border: none;
  transition: all 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  white-space: nowrap;
}

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

.btn-primary:hover {
  background: var(--accent2);
}

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

.btn-outline:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.btn-danger {
  background: var(--red);
  color: #fff;
}

.btn-success {
  background: var(--green);
  color: #fff;
}

/* ── BADGES ── */
.badge {
  font-size: 11px;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 6px;
  text-transform: uppercase;
  letter-spacing: .4px;
  display: inline-block;
}

.badge-sale {
  background: var(--accent);
  color: #fff;
}

.badge-rent {
  background: var(--blue);
  color: #fff;
}

.badge-plot {
  background: #059669;
  color: #fff;
}

.badge-land {
  background: #10b981;
  color: #fff;
}

.badge-farm {
  background: #047857;
  color: #fff;
}

.badge-agriculture {
  background: #15803d;
  color: #fff;
}

.badge-new {
  background: #6c5ce7;
  color: #fff;
}

.badge-active {
  background: rgba(22, 163, 74, .1);
  color: var(--green);
  border: 1px solid var(--green);
}

.badge-inactive {
  background: rgba(220, 38, 38, .1);
  color: var(--red);
  border: 1px solid var(--red);
}

.price-tag {
  font-family: 'DM Sans', sans-serif;
  color: var(--accent);
  font-weight: 800;
  letter-spacing: -0.5px;
}

/* Inquiry Form Placeholders - Force White Text */
.inquiry-card input::placeholder,
.inquiry-card textarea::placeholder,
#inqName::placeholder,
#inqEmail::placeholder,
#inqPhone::placeholder,
#inqMsg::placeholder {
  color: rgba(255, 255, 255, 0.8) !important;
}

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

  to {
    opacity: 1;
    transform: none;
  }
}

.fade-in {
  animation: fadeIn .3s ease both;
}

@keyframes navShine {
  0% {
    filter: brightness(1);
    box-shadow: 0 4px 12px rgba(6, 78, 59, 0.4);
  }

  50% {
    filter: brightness(1.2);
    box-shadow: 0 4px 22px rgba(16, 185, 129, 0.6);
  }

  100% {
    filter: brightness(1);
    box-shadow: 0 4px 12px rgba(6, 78, 59, 0.4);
  }
}

@keyframes glint {
  0% {
    transform: translateX(-150%) skewX(-25deg);
  }

  100% {
    transform: translateX(150%) skewX(-25deg);
  }
}

@keyframes slideUp {
  from {
    transform: translateY(20px);
    opacity: 0;
  }

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

@keyframes buttonPulse {
  0% {
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.4);
  }

  70% {
    box-shadow: 0 0 0 15px rgba(16, 185, 129, 0);
  }

  100% {
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0);
  }
}

@keyframes scroll {
  0% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(calc(-280px * 6 - 20px * 6));
  }
}

@keyframes pulse {
  0% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
  }

  70% {
    transform: scale(1);
    box-shadow: 0 0 0 6px rgba(16, 185, 129, 0);
  }

  100% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0);
  }
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* ── NAVBAR ── */
nav {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  height: var(--header);
  display: flex;
  align-items: center;
  padding: 0 24px;
  gap: 32px;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 1px 4px rgba(0, 0, 0, .06);
}

.logo {
  font-family: 'Playfair Display', serif;
  font-size: 32px;
  font-weight: 800;
  color: var(--accent);
  text-decoration: none;
  display: flex;
  align-items: baseline;
  gap: 2px;
}

.logo span {
  color: var(--text);
}

.logo-sub {
  font-size: 14px;
  color: var(--muted);
  font-family: 'DM Sans', sans-serif;
  font-weight: 700;
  margin-left: 6px;
}

.nav-links {
  display: flex;
  gap: 14px;
  flex: 1;
  justify-content: center;
}

.nav-link {
  padding: 6px 16px;
  border-radius: 8px;
  font-size: 17px;
  font-weight: 800;
  color: var(--text);
  transition: all .2s;
  text-decoration: none;
}

.nav-link.active {
  color: var(--accent);
  background: rgba(22, 163, 74, .1);
}

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

.nav-avatar {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 6px 12px;
  color: var(--text);
  font-size: 14px;
  cursor: pointer;
}

.nav-avatar img {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  object-fit: cover;
}

.nav-dropdown {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  min-width: 200px;
  padding: 6px;
  z-index: 2000;
  box-shadow: 0 8px 24px rgba(0, 0, 0, .12);
}

.nav-drop-item {
  display: block;
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 13px;
  color: var(--text);
  transition: background .15s;
  text-decoration: none;
  cursor: pointer;
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  font-family: 'DM Sans', sans-serif;
}

.nav-drop-item:hover {
  background: var(--bg);
}

.btn-add-property {
  background: linear-gradient(135deg, #064e3b, #065f46, #059669);
  color: #fff !important;
  font-size: 14px;
  font-weight: 700;
  padding: 10px 24px;
  border-radius: 24px;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
  animation: navShine 3s infinite;
  text-decoration: none;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  letter-spacing: 0.3px;
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.btn-add-property::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 40px;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  animation: glint 3s infinite;
}

.btn-add-property:hover {
  transform: translateY(-2px);
  filter: brightness(1.1);
  box-shadow: 0 8px 24px rgba(6, 78, 59, 0.3);
}

/* ── FOOTER ── */
.footer {
  background: linear-gradient(135deg, #1a1d26 0%, #111827 100%);
  color: #fff;
  padding: 40px 0 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-container {
  max-width: 1300px;
  margin: 0 auto;
  padding: 0 40px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 80px;
  margin-bottom: 30px;
}

.footer-logo-text {
  font-family: 'Playfair Display', serif;
  font-size: 28px;
  font-weight: 800;
  color: var(--accent);
  letter-spacing: -0.5px;
  margin-bottom: 16px;
  display: inline-block;
}

.footer-description {
  color: rgba(255, 255, 255, 0.6);
  font-size: 14px;
  line-height: 1.6;
}

.footer-heading {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 20px;
  color: #fff;
}

.footer-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-contact-item {
  color: rgba(255, 255, 255, 0.6);
  font-size: 14px;
  display: flex;
  align-items: center;
}

.footer-contact-item span {
  margin-right: 8px;
}

.social-grid {
  display: flex;
  gap: 12px;
}

.social-icon {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.8);
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.social-icon:hover {
  background: var(--accent);
  color: #fff;
  transform: translateY(-3px);
}

.footer-bottom {
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.4);
}

.footer-bottom-links {
  display: flex;
  gap: 12px;
  align-items: center;
}

.footer-bottom-link {
  color: inherit;
  text-decoration: none;
}

/* ── MAIN LAYOUT (LISTINGS) ── */
.main-wrapper {
  display: flex;
  height: calc(100vh - var(--header));
  overflow: hidden;
  position: relative;
}

.sidebar {
  width: 280px;
  background: var(--surface);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
  overflow: hidden;
  transition: all 0.3s ease-in-out;
  z-index: 10;
}

.sidebar.closed {
  width: 0;
  min-width: 0;
  border-right: none;
}

.content-area {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  position: relative;
}

#mapView,
#map {
  width: 100%;
  height: 100%;
}

.floating-controls {
  position: absolute;
  top: 16px;
  left: 16px;
  right: 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 1000;
  pointer-events: none;
  gap: 12px;
}

.floating-controls>div {
  pointer-events: auto;
}

.filter-toggle-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  background: var(--accent);
  border: none;
  border-radius: 20px;
  padding: 8px 16px;
  font-size: 13px;
  font-weight: 600;
  color: #fff;
  cursor: pointer;
  transition: all .2s;
  font-family: 'DM Sans', sans-serif;
  box-shadow: 0 4px 12px rgba(22, 163, 74, 0.3);
}

.view-toggle {
  display: flex;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  padding: 4px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.view-btn {
  padding: 8px 16px;
  border-radius: 16px;
  border: none;
  background: none;
  color: var(--muted);
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 700;
}

.view-btn.active {
  background: var(--accent);
  color: #fff;
  font-weight: 600;
}

/* Filter sidebar */
.filter-header {
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.filter-body {
  overflow-y: auto;
  flex: 1;
  padding: 16px;
}

.filter-group {
  margin-bottom: 20px;
}

.filter-label {
  font-size: 11px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: .5px;
  display: block;
  margin-bottom: 8px;
}

.chip {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 5px 10px;
  font-size: 12px;
  color: var(--muted);
  cursor: pointer;
  transition: all 0.2s;
  display: inline-block;
}

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

.clear-btn {
  background: none;
  border: none;
  color: var(--accent);
  font-size: 12px;
  cursor: pointer;
}

/* Listings */
.listings-container {
  height: auto;
  min-height: 100%;
  overflow: visible;
  padding: 80px 24px 40px;
}

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

.property-grid-home {
  grid-template-columns: repeat(4, 1fr) !important;
}

.property-grid-buy {
  grid-template-columns: repeat(3, 1fr) !important;
}

@media (max-width: 1300px) {
  .property-grid-home {
    grid-template-columns: repeat(3, 1fr) !important;
  }
}

@media (max-width: 1000px) {
  .property-grid-home {
    grid-template-columns: repeat(2, 1fr) !important;
  }

  .property-grid-buy {
    grid-template-columns: repeat(2, 1fr) !important;
  }
}

@media (max-width: 600px) {
  .property-grid-home {
    grid-template-columns: 1fr !important;
  }

  .property-grid-buy {
    grid-template-columns: 1fr !important;
  }
}

.loading-msg {
  text-align: center;
  padding: 60px;
  color: var(--muted);
}

.pagination {
  display: flex;
  gap: 8px;
  justify-content: center;
  margin-top: 32px;
}

.page-btn {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--card);
  color: var(--muted);
  cursor: pointer;
}

.page-btn.active {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
  font-weight: 700;
}

.map-label {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1000;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 6px 14px;
  font-size: 12px;
  color: var(--text);
  font-weight: 600;
  box-shadow: 0 4px 12px rgba(0, 0, 0, .15);
}

/* ── PROPERTY CARD ── */
.property-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  display: block;
  cursor: pointer;
  transition: all .25s;
  text-decoration: none;
  color: inherit;
  box-shadow: 0 2px 8px rgba(0, 0, 0, .04);
}

.property-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, .08);
}

.card-image-wrapper {
  position: relative;
  height: 180px;
  overflow: hidden;
}

.card-image-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.img-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 40px;
  background: linear-gradient(135deg, #e8eaf0 0%, #d8dce5 100%);
}

.card-badge {
  position: absolute;
  top: 12px;
  left: 12px;
}

.card-badge-right {
  position: absolute;
  top: 12px;
  right: 12px;
}

.btn-heart {
  position: absolute;
  bottom: 12px;
  right: 12px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .85);
  border: 1px solid rgba(0, 0, 0, .08);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  backdrop-filter: blur(4px);
  transition: transform .2s;
  cursor: pointer;
}

.btn-heart:hover {
  transform: scale(1.1);
}

.card-body {
  padding: 14px 16px;
}

.card-price {
  font-family: 'DM Sans', sans-serif;
  color: var(--accent);
  font-weight: 800;
  font-size: 20px;
  letter-spacing: -0.5px;
}

.card-title {
  font-size: 14px;
  font-weight: 500;
  margin: 4px 0;
  line-height: 1.4;
  color: var(--text);
}

.card-loc {
  font-size: 12px;
  color: var(--muted);
  display: flex;
  gap: 4px;
  margin-bottom: 12px;
}

.card-specs {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  border-top: 1px solid var(--border);
  padding-top: 10px;
  align-items: center;
}

/* ── SEARCH DROPDOWN ── */
.search-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  margin-top: 8px;
  background: var(--surface);
  border-radius: 16px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
  overflow: hidden;
  border: 1px solid var(--border);
  z-index: 2500;
}

.search-item {
  padding: 12px 18px;
  cursor: pointer;
  border-bottom: 1px solid var(--border);
  font-size: 13px;
  color: var(--text);
  transition: background 0.2s;
  text-align: left;
}

.search-item:last-child {
  border-bottom: none;
}

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

/* ── BUY LAND HERO ── */
.hero-buy {
  background: linear-gradient(135deg, #064e3b 0%, #065e44 40%, #047857 100%);
  padding: 60px 24px 50px;
  text-align: center;
  border-bottom: 1px solid var(--border);
}

.hero-buy-inner {
  max-width: 800px;
  margin: 0 auto;
}

.hero-buy-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(24px, 4vw, 42px);
  font-weight: 700;
  color: #fff;
  margin-bottom: 12px;
}

.hero-buy-sub {
  color: rgba(255, 255, 255, .7);
  font-size: 15px;
  margin-bottom: 32px;
}

.search-box-buy {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 20px;
  text-align: left;
  box-shadow: 0 4px 24px rgba(0, 0, 0, .08);
  margin: 0 auto;
  max-width: 700px;
}

.type-tabs {
  display: flex;
  gap: 6px;
  margin-bottom: 14px;
  flex-wrap: wrap;
}

.type-tab {
  background: transparent;
  border: 1px solid #e2e5ec;
  border-radius: 8px;
  padding: 7px 16px;
  font-size: 13px;
  color: #6b7280;
  cursor: pointer;
  transition: all 0.2s;
}

.type-tab.active {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
  font-weight: 600;
}

.search-bar-unified {
  display: flex;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 30px;
  padding: 3px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
  margin-bottom: 16px;
  overflow: hidden;
}

.search-input-main {
  flex: 1;
  border: none;
  padding: 10px 16px;
  font-size: 14px;
  outline: none;
  background: transparent;
  color: var(--text);
}

.search-btn-main {
  background: var(--accent);
  border: none;
  color: #fff;
  padding: 0 20px;
  border-radius: 20px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
  font-size: 13px;
}

.search-btn-main:hover {
  background: #15803d;
  transform: scale(1.02);
}

.filters-row-buy {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.filter-select-buy {
  flex: 1;
  min-width: 120px;
  padding: 7px 10px;
  font-size: 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--bg);
  color: var(--text);
  outline: none;
  transition: border-color 0.2s;
}

.filter-select-buy:focus {
  border-color: var(--accent);
}

@media (max-width: 768px) {
  .search-box-buy {
    padding: 16px;
  }

  .search-bar-unified {
    border-radius: 24px;
  }

  .search-input-main {
    font-size: 13px;
    padding: 8px 12px;
  }

  .search-btn-main {
    padding: 0 14px;
    font-size: 12px;
  }

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

  .filter-select-buy {
    width: 100%;
    min-width: 0;
  }
}

.section-buy {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 24px 60px;
}

.section-title-buy {
  font-family: 'Playfair Display', serif;
  font-size: 22px;
  color: var(--text);
}

/* ── SELL LAND ── */
.page-sell {
  background: var(--bg);
  min-height: calc(100vh - var(--header));
}

.hero-sell {
  background: linear-gradient(135deg, #064e3b 0%, #065e44 40%, #047857 100%);
  padding: 80px 24px 60px;
  text-align: center;
  border-bottom: 1px solid var(--border);
}

.hero-sell-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(32px, 5vw, 48px);
  font-weight: 700;
  color: #fff;
  margin-bottom: 16px;
}

.hero-sell-sub {
  color: rgba(255, 255, 255, .7);
  font-size: 18px;
  max-width: 600px;
  margin: 0 auto;
}

.scroller-section {
  padding: 40px 0;
  border-bottom: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.02);
  overflow: hidden;
}

.scroller-header {
  max-width: 1200px;
  margin: 0 auto 20px;
  padding: 0 24px;
}

.live-indicator {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 700;
  color: var(--green);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.pulse-dot {
  width: 8px;
  height: 8px;
  background: var(--green);
  border-radius: 50%;
  animation: pulse 2s infinite;
}

.scroller-wrapper {
  overflow: hidden;
  padding: 10px 0;
}

.scroller-track {
  display: flex;
  gap: 20px;
  width: max-content;
  animation: scroll 30s linear infinite;
}

.scroll-card {
  width: 280px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: transform 0.3s ease;
  display: flex;
  flex-direction: column;
}

.scroll-card-img {
  height: 120px;
  background: #eee;
  overflow: hidden;
}

.scroll-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.scroll-card-body {
  padding: 12px;
}

.contact-section {
  max-width: 600px;
  margin: 40px auto 80px;
  padding: 0 24px;
  position: relative;
  z-index: 10;
}

.contact-card {
  background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
  border: 1px solid #86efac;
  border-radius: 24px;
  padding: 48px 32px;
  text-align: center;
  box-shadow: 0 12px 32px rgba(0, 0, 0, .08);
}

.whatsapp-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #25D366;
  color: #fff;
  padding: 16px 32px;
  border-radius: 50px;
  font-size: 18px;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(37, 211, 102, 0.3);
  cursor: pointer;
}

.whatsapp-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(37, 211, 102, 0.4);
}

.contact-features {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
  margin-top: 40px;
  border-top: 1px solid rgba(22, 163, 74, 0.2);
  padding-top: 32px;
}

.contact-feature {
  font-size: 13px;
  color: #064e3b;
  font-weight: 600;
  background: rgba(22, 163, 74, 0.08);
  padding: 6px 12px;
  border-radius: 20px;
}

/* ── DEVELOPERS ── */
.page-developers {
  background: #9febb6ff;
  min-height: calc(100vh - var(--header));
}

.coming-soon-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: calc(100vh - var(--header));
  padding: 40px 24px;
}

.coming-soon-card {
  background: linear-gradient(135deg, #064e3b, #065e44);
  border-radius: 20px;
  padding: 48px 32px;
  color: #fff;
  text-align: center;
  width: 100%;
  max-width: 600px;
}

.coming-soon-title {
  font-family: 'Playfair Display', serif;
  font-size: 32px;
  margin-bottom: 12px;
}

.coming-soon-text {
  color: rgba(255, 255, 255, .7);
  font-size: 15px;
  max-width: 500px;
  margin: 0 auto;
  line-height: 1.7;
}

@media (max-width: 768px) {
  .page-developers {
    min-height: auto;
  }

  .coming-soon-wrapper {
    min-height: auto;
    padding: 40px 16px 80px;
    align-items: flex-start;
  }

  .coming-soon-card {
    padding: 32px 20px;
    border-radius: 16px;
  }

  .coming-soon-title {
    font-size: 24px;
  }

  .coming-soon-text {
    font-size: 14px;
  }
}

/* ── PROPERTY DETAIL ── */
.detail-page {
  max-width: 1200px;
  margin: 0 auto;
  padding: 24px;
}

.detail-layout {
  display: flex;
  gap: 32px;
  align-items: flex-start;
}

.detail-left {
  flex: 1;
}

.detail-right {
  width: 320px;
  flex-shrink: 0;
  position: sticky;
  top: calc(var(--header) + 20px);
}

.detail-section {
  margin-bottom: 32px;
}

.detail-sec-title {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 16px;
}

.detail-row {
  display: flex;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
}

.detail-row-label {
  width: 180px;
  color: var(--muted);
  font-size: 14px;
}

.detail-row-val {
  flex: 1;
  font-size: 14px;
  font-weight: 500;
}

.inquiry-card {
  background: linear-gradient(135deg, #064e3b, #065f46, #047857);
  border: 1px solid #065f46;
  border-radius: 16px;
  padding: 24px;
  color: #fff;
  box-shadow: 0 8px 30px rgba(6, 78, 59, 0.2);
}

.inquiry-label {
  display: block;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 6px;
}

.contact-owner-btn {
  background: linear-gradient(135deg, #059669, #10b981, #34d399);
  color: #fff !important;
  font-size: 17px;
  font-weight: 700;
  padding: 14px 28px;
  border-radius: 12px;
  border: none;
  box-shadow: 0 10px 15px -3px rgba(16, 185, 129, 0.4), 0 4px 6px -2px rgba(16, 185, 129, 0.2);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  justify-content: center;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
  animation: buttonPulse 2.5s infinite;
  cursor: pointer;
}

.contact-owner-btn:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 20px 25px -5px rgba(16, 185, 129, 0.4);
  filter: brightness(1.05);
}

.btn-contact-premium {
  background: linear-gradient(135deg, #022c22, #064e3b, #065f46);
  color: #fff !important;
  font-size: 18px;
  font-weight: 700;
  padding: 14px 32px;
  border-radius: 50px;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
  animation: navShine 3s infinite;
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  letter-spacing: 0.5px;
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 10px 20px rgba(6, 78, 59, 0.3);
  cursor: pointer;
}

.btn-contact-premium::after {
  content: '';
  position: absolute;
  top: 0;
  left: -150%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
  animation: glint 3s infinite;
  transform: skewX(-25deg);
}

.btn-contact-premium:hover {
  transform: translateY(-3px) scale(1.03);
  filter: brightness(1.15);
  box-shadow: 0 15px 30px rgba(6, 78, 59, 0.4);
}

.img-carousel {
  position: relative;
  height: 460px;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: #000;
}

.img-carousel img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.carousel-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.8);
  color: #000;
  border: none;
  border-radius: 50%;
  width: 44px;
  height: 44px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  z-index: 10;
  transition: all 0.2s;
}

.carousel-nav.left {
  left: 15px;
}

.carousel-nav.right {
  right: 15px;
}

.img-counter {
  position: absolute;
  bottom: 20px;
  right: 20px;
  background: rgba(0, 0, 0, 0.6);
  color: #fff;
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;
  backdrop-filter: blur(4px);
}

.thumb-strip {
  display: flex;
  gap: 10px;
  margin-top: 12px;
  overflow-x: auto;
  padding-bottom: 8px;
}

.thumb-item {
  height: 70px;
  min-width: 100px;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--border);
  cursor: pointer;
  opacity: 0.6;
  flex-shrink: 0;
}

.thumb-item.active {
  border: 2px solid var(--accent);
  opacity: 1;
}

.thumb-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ── OVERLAY / MODAL ── */
.overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  padding: 20px;
}

.modal-card {
  background: var(--card);
  border-radius: 20px;
  padding: 28px;
  width: 100%;
  max-width: 400px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
  border: 1px solid var(--border);
}

/* ── AUTH PAGES — Premium Split Screen ── */
@keyframes authSlideIn {
  from {
    opacity: 0;
    transform: translateY(16px);
  }

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

@keyframes authFloat {

  0%,
  100% {
    transform: translateY(0px);
  }

  50% {
    transform: translateY(-12px);
  }
}

@keyframes authGradient {
  0% {
    background-position: 0% 50%;
  }

  50% {
    background-position: 100% 50%;
  }

  100% {
    background-position: 0% 50%;
  }
}

.auth-page {
  min-height: 100vh;
  display: flex;
  background: var(--bg);
  overflow: hidden;
}

/* ── Branding Panel (left) ── */
.auth-brand-panel {
  flex: 0 0 46%;
  background: linear-gradient(135deg, #022c22 0%, #064e3b 35%, #059669 100%);
  background-size: 200% 200%;
  animation: authGradient 12s ease infinite;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 48px;
  position: relative;
  overflow: hidden;
}

.auth-brand-panel::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -30%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(16, 185, 129, 0.15), transparent 70%);
  pointer-events: none;
}

.auth-brand-panel::after {
  content: '';
  position: absolute;
  bottom: -30%;
  left: -20%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.05), transparent 70%);
  pointer-events: none;
}

.auth-brand-logo {
  font-family: 'Playfair Display', serif;
  font-size: 42px;
  font-weight: 800;
  color: #fff;
  margin-bottom: 16px;
  letter-spacing: -1px;
  position: relative;
  z-index: 1;
}

.auth-brand-logo span {
  color: #34d399;
}

.auth-brand-tagline {
  color: rgba(255, 255, 255, 0.7);
  font-size: 16px;
  text-align: center;
  line-height: 1.7;
  max-width: 360px;
  position: relative;
  z-index: 1;
  margin-bottom: 48px;
}

.auth-brand-visual {
  font-size: 110px;
  animation: authFloat 6s ease-in-out infinite;
  position: relative;
  z-index: 1;
  filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.3));
  margin-bottom: 48px;
}

.auth-brand-stats {
  display: flex;
  gap: 40px;
  position: relative;
  z-index: 1;
}

.auth-brand-stat {
  text-align: center;
}

.auth-brand-stat-val {
  font-family: 'Playfair Display', serif;
  font-size: 28px;
  font-weight: 700;
  color: #fff;
}

.auth-brand-stat-label {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.5);
  margin-top: 4px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* ── Form Panel (right) ── */
.auth-form-panel {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px 40px;
  overflow-y: auto;
}

.auth-card {
  width: 100%;
  max-width: 420px;
  animation: authSlideIn 0.5s ease both;
}

.auth-title {
  font-family: 'Playfair Display', serif;
  font-size: 30px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 8px;
}

.auth-sub {
  color: var(--muted);
  font-size: 14px;
  margin-bottom: 32px;
  line-height: 1.6;
}

.auth-error {
  background: rgba(224, 92, 92, 0.08);
  border: 1px solid rgba(220, 38, 38, 0.25);
  color: var(--red);
  border-radius: 12px;
  padding: 12px 16px;
  font-size: 13px;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.auth-success {
  background: rgba(22, 163, 74, 0.08);
  border: 1px solid rgba(22, 163, 74, 0.25);
  color: var(--green);
  border-radius: 12px;
  padding: 12px 16px;
  font-size: 13px;
  margin-bottom: 20px;
}

/* ── Form Fields ── */
.auth-field {
  margin-bottom: 20px;
  position: relative;
}

.auth-label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 8px;
  letter-spacing: 0.01em;
}

.auth-input-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.auth-input-wrap .auth-input-icon {
  position: absolute;
  left: 14px;
  color: var(--muted);
  font-size: 16px;
  pointer-events: none;
  transition: color 0.2s;
}

.auth-input-wrap input {
  padding-left: 42px;
}

.auth-input-wrap input:focus~.auth-input-icon {
  color: var(--accent);
}

.auth-field input {
  width: 100%;
  padding: 13px 16px;
  border: 1.5px solid var(--border);
  border-radius: 12px;
  font-size: 14px;
  background: var(--bg);
  color: var(--text);
  transition: all 0.25s ease;
  outline: none;
}

.auth-field input:focus {
  border-color: var(--accent);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(22, 163, 74, 0.08);
}

.auth-field input::placeholder {
  color: #b0b8c8;
}

/* Password toggle */
.auth-pw-toggle {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: var(--muted);
  cursor: pointer;
  font-size: 18px;
  padding: 4px;
  display: flex;
  align-items: center;
  transition: color 0.2s;
}

.auth-pw-toggle:hover {
  color: var(--accent);
}

/* Password strength */
.pw-strength {
  margin-top: 8px;
  display: flex;
  gap: 4px;
  align-items: center;
}

.pw-strength-bar {
  flex: 1;
  height: 4px;
  border-radius: 2px;
  background: var(--border);
  transition: background 0.3s;
}

.pw-strength-bar.weak {
  background: #ef4444;
}

.pw-strength-bar.fair {
  background: #f59e0b;
}

.pw-strength-bar.good {
  background: #22c55e;
}

.pw-strength-bar.strong {
  background: #059669;
}

.pw-strength-text {
  font-size: 11px;
  font-weight: 600;
  margin-left: 8px;
  min-width: 50px;
}

/* Phone input */
.phone-input {
  display: flex;
  align-items: center;
  background: var(--bg);
  border: 1.5px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  transition: all 0.25s ease;
}

.phone-input:focus-within {
  border-color: var(--accent);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(22, 163, 74, 0.08);
}

.phone-prefix {
  padding: 13px 14px;
  background: rgba(0, 0, 0, 0.03);
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
  border-right: 1.5px solid var(--border);
  white-space: nowrap;
}

.phone-input input {
  border: none !important;
  background: transparent !important;
  flex: 1;
  padding: 13px 14px !important;
  color: var(--text);
  outline: none;
  font-size: 14px;
  width: 100%;
  box-shadow: none !important;
}

/* Divider */
.auth-divider {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 24px 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.auth-divider::before,
.auth-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}

/* Submit button */
.auth-submit {
  width: 100%;
  padding: 14px;
  border: none;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(135deg, #059669, #047857);
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  font-family: 'DM Sans', sans-serif;
  letter-spacing: 0.02em;
}

.auth-submit:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(5, 150, 105, 0.3);
}

.auth-submit:active {
  transform: translateY(0);
}

.auth-submit:disabled {
  opacity: 0.7;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

/* Google button wrapper */
.auth-google-wrap {
  width: 100%;
  min-height: 48px;
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* Footer links */
.auth-footer {
  text-align: center;
  margin-top: 28px;
  font-size: 14px;
  color: var(--muted);
}

.auth-footer a {
  color: var(--accent);
  font-weight: 700;
  text-decoration: none;
  transition: color 0.2s;
}

.auth-footer a:hover {
  text-decoration: underline;
}

/* Forgot password link */
.auth-forgot {
  display: block;
  text-align: right;
  font-size: 13px;
  color: var(--accent);
  font-weight: 600;
  margin-top: -8px;
  margin-bottom: 20px;
  text-decoration: none;
}

.auth-forgot:hover {
  text-decoration: underline;
}

/* ── Auth Responsive ── */
@media (max-width: 900px) {
  .auth-page {
    flex-direction: column;
  }

  .auth-brand-panel {
    flex: none;
    padding: 40px 24px 32px;
  }

  .auth-brand-visual {
    font-size: 60px;
    margin-bottom: 24px;
  }

  .auth-brand-logo {
    font-size: 28px;
  }

  .auth-brand-tagline {
    font-size: 14px;
    margin-bottom: 20px;
  }

  .auth-brand-stats {
    gap: 24px;
  }

  .auth-brand-stat-val {
    font-size: 22px;
  }

  .auth-form-panel {
    padding: 32px 20px;
  }

  .auth-title {
    font-size: 24px;
  }
}

@media (max-width: 480px) {
  .auth-brand-stats {
    display: none;
  }

  .auth-brand-tagline {
    display: none;
  }

  .auth-brand-panel {
    padding: 28px 20px 24px;
  }

  .auth-brand-visual {
    font-size: 48px;
    margin-bottom: 0;
  }

  .auth-form-panel {
    padding: 24px 16px;
  }
}

/* ── USER DASHBOARD ── */
.dash-page {
  display: flex;
  min-height: calc(100vh - var(--header));
  background: var(--bg);
}

.dash-sidebar {
  width: 260px;
  background: var(--surface);
  border-right: 1px solid var(--border);
  padding: 24px 16px;
  flex-shrink: 0;
  position: sticky;
  top: var(--header);
  height: calc(100vh - var(--header));
  overflow-y: auto;
}

.dash-user-card {
  text-align: center;
  padding: 20px 0 24px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 16px;
}

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

.dash-avatar img {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--accent);
}

.dash-nav {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.dash-nav-item {
  display: block;
  padding: 10px 14px;
  border-radius: 10px;
  font-size: 13px;
  color: var(--muted);
  transition: all .2s;
  text-decoration: none;
  background: none;
  border: none;
  text-align: left;
  cursor: pointer;
  width: 100%;
  font-family: 'DM Sans', sans-serif;
}

.dash-nav-item.active {
  background: rgba(22, 163, 74, .1);
  color: var(--accent);
  font-weight: 500;
}

.dash-main {
  flex: 1;
  padding: 32px;
  overflow-y: auto;
  max-width: 1000px;
}

.dash-title {
  font-family: 'Playfair Display', serif;
  font-size: 28px;
  margin-bottom: 28px;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 16px;
  margin-bottom: 32px;
}

.stat-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 24px 20px;
}

.stat-icon {
  font-size: 28px;
}

.stat-val {
  font-family: 'Playfair Display', serif;
  font-size: 36px;
  color: var(--accent);
  font-weight: 700;
  margin: 8px 0 4px;
}

.stat-label {
  font-size: 13px;
  color: var(--muted);
}

.profile-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 24px;
}

.info-row {
  display: flex;
  gap: 16px;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
}

.info-row-label {
  width: 100px;
  font-size: 13px;
  color: var(--muted);
}

.info-row-val {
  font-size: 13px;
}

.inq-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 20px;
}

.empty-state {
  text-align: center;
  padding: 60px 24px;
}

/* ── ADMIN LOGIN ── */
.admin-login-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #022c22 0%, #064e3b 50%, #065f46 100%);
  padding: 24px;
}

.admin-login-card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  padding: 48px 40px;
  width: 100%;
  max-width: 420px;
  backdrop-filter: blur(20px);
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
}

.admin-login-label {
  display: block;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.5);
  margin-bottom: 8px;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.admin-login-input {
  width: 100%;
  padding: 12px 16px;
  border-radius: 10px;
  font-size: 14px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #fff;
  outline: none;
  box-sizing: border-box;
  transition: border-color .2s;
}

.admin-login-input:focus {
  border-color: var(--accent);
}

.admin-login-btn {
  width: 100%;
  padding: 14px;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 600;
  background: linear-gradient(135deg, #059669, #047857);
  border: none;
  color: #fff;
  cursor: pointer;
  margin-top: 8px;
  transition: opacity .2s;
}

.admin-login-error {
  background: rgba(239, 68, 68, 0.15);
  border: 1px solid rgba(239, 68, 68, 0.3);
  color: #f87171;
  border-radius: 10px;
  padding: 12px 16px;
  font-size: 13px;
  margin-bottom: 20px;
}

/* ── ADMIN PANEL ── */
.admin-page {
  display: flex;
  min-height: 100vh;
  background: var(--bg);
}

.admin-sidebar {
  width: 250px;
  background: var(--surface);
  border-right: 1px solid var(--border);
  padding: 0;
  display: flex;
  flex-direction: column;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
  flex-shrink: 0;
}

.admin-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 20px 20px 16px;
  border-bottom: 1px solid var(--border);
}

.admin-brand-name {
  font-family: 'Playfair Display', serif;
  font-size: 16px;
  font-weight: 700;
  color: var(--accent);
}

.admin-brand-sub {
  font-size: 11px;
  color: var(--muted);
  margin-top: 2px;
}

.admin-nav {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 16px 12px;
  flex: 1;
}

.admin-nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 10px;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--muted);
  transition: all .18s;
  text-decoration: none;
  cursor: pointer;
  background: none;
  border: none;
  text-align: left;
  width: 100%;
  font-family: 'DM Sans', sans-serif;
}

.admin-nav-item.active {
  background: rgba(22, 163, 74, .1);
  color: var(--accent);
}

.admin-nav-icon {
  font-size: 16px;
  width: 20px;
  text-align: center;
}

.admin-sidebar-footer {
  padding: 16px 12px;
  border-top: 1px solid var(--border);
}

.admin-user-badge {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  margin-bottom: 8px;
}

.admin-user-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 14px;
  flex-shrink: 0;
}

.admin-footer-link {
  display: block;
  padding: 8px 14px;
  font-size: 12px;
  color: var(--muted);
  text-decoration: none;
}

.admin-logout-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  width: 100%;
  background: none;
  border: none;
  color: var(--red);
  font-size: 13px;
  cursor: pointer;
  border-radius: 10px;
  text-align: left;
  font-family: 'DM Sans', sans-serif;
}

.admin-main {
  flex: 1;
  padding: 32px;
  overflow-y: auto;
  max-width: calc(100vw - 250px);
}

.admin-h1 {
  font-family: 'Playfair Display', serif;
  font-size: 28px;
  font-weight: 700;
}

.admin-stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 16px;
  margin-bottom: 8px;
}

.admin-stat-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 20px 24px;
  text-align: center;
}

.admin-stat-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  margin: 0 auto 12px;
}

.admin-stat-val {
  font-size: 32px;
  font-weight: 700;
  font-family: 'Playfair Display', serif;
}

.admin-stat-label {
  font-size: 12px;
  color: var(--muted);
  margin-top: 4px;
}

.admin-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 20px;
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
}

.admin-thead {
  background: rgba(0, 0, 0, .03);
}

.admin-th {
  text-align: left;
  font-size: 11px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: .5px;
  padding: 12px 16px;
  font-weight: 500;
  white-space: nowrap;
}

.admin-td {
  padding: 12px 16px;
  border-top: 1px solid var(--border);
  font-size: 13px;
}

.admin-action-btn {
  font-size: 12px;
  padding: 5px 12px;
  border-radius: 8px;
  background: none;
  border: 1px solid var(--border);
  color: var(--text);
  cursor: pointer;
  white-space: nowrap;
}

.admin-btn-primary {
  background: var(--accent);
  border: none;
  color: #fff;
  font-weight: 600;
  padding: 10px 20px;
  border-radius: 10px;
  font-size: 13.5px;
  cursor: pointer;
}

.admin-btn-outline {
  background: none;
  border: 1px solid var(--border);
  color: var(--text);
  padding: 10px 20px;
  border-radius: 10px;
  font-size: 13.5px;
  cursor: pointer;
}

.admin-btn-danger {
  background: var(--red);
  border: none;
  color: #fff;
  font-weight: 600;
  padding: 10px 20px;
  border-radius: 10px;
  font-size: 13.5px;
  cursor: pointer;
}

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

.admin-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, .7);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  padding: 24px;
  backdrop-filter: blur(4px);
}

.admin-modal {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 32px;
  width: 100%;
  max-width: 780;
  max-height: 90vh;
  overflow-y: auto;
}

@keyframes searchPulse {
  0% {
    transform: scale(1);
    filter: drop-shadow(0 0 0px rgba(22, 163, 74, 0));
  }

  50% {
    transform: scale(1.25);
    filter: drop-shadow(0 0 8px rgba(22, 163, 74, 0.4));
  }

  100% {
    transform: scale(1);
    filter: drop-shadow(0 0 0px rgba(22, 163, 74, 0));
  }
}

/* ── LOADING ── */
.spinner {
  width: 40px;
  height: 40px;
  border: 3px solid var(--border);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin: 0 auto;
}

/* ── BOTTOM NAV (MOBILE) ── */
.bottom-nav {
  display: none;
}

/* ── RESPONSIVE ── */
@media (max-width: 1024px) {
  .nav-links {
    display: none !important;
  }
}

@media (max-width: 768px) {
  :root {
    --header: 56px;
  }

  nav {
    padding: 0 12px !important;
    gap: 8px !important;
  }

  .logo {
    font-size: 24px !important;
  }

  .logo-sub {
    font-size: 10px !important;
    margin-left: 4px !important;
  }

  .nav-user-desktop {
    display: none !important;
  }

  .btn-add-property {
    padding: 6px 10px !important;
    font-size: 10px !important;
    border-radius: 10px !important;
    white-space: nowrap !important;
  }

  .hide-mobile {
    display: none !important;
  }

  .view-btn-text {
    display: none !important;
  }

  .filter-text {
    display: none;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .footer-container {
    padding: 0 20px;
  }

  .footer {
    padding-bottom: 100px;
  }

  /* clear the fixed bottom nav bar (64px height + 16px gap + 20px breathing room) */

  .main-wrapper {
    height: calc(100vh - var(--header));
    overflow: hidden;
    display: flex;
    flex-direction: column;
  }

  .content-area {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
  }

  #mapView {
    flex: 1;
    height: 100% !important;
    min-height: calc(100vh - 160px);
  }

  .listings-container {
    height: auto;
    overflow: visible;
    padding: 20px 16px 100px;
  }

  .sidebar {
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    z-index: 3000;
    box-shadow: 0 0 40px rgba(0, 0, 0, 0.2);
  }

  .sidebar.closed {
    transform: translateX(-100%);
    width: 280px;
    box-shadow: none;
  }

  .property-header-top {
    flex-direction: row !important;
    align-items: flex-start !important;
  }

  .property-header-price-card {
    min-width: 0 !important;
    flex: 1;
    margin-top: 0;
    padding: 16px !important;
    box-sizing: border-box;
  }

  .property-header-price-card div {
    font-size: 24px !important;
  }

  .detail-layout {
    flex-direction: column;
    gap: 24px;
    padding-bottom: 32px;
    width: 100%;
    box-sizing: border-box;
  }

  .detail-left {
    min-width: 0;
    width: 100%;
    box-sizing: border-box;
    overflow-x: hidden;
  }

  .detail-right {
    width: 100%;
    position: static;
    box-sizing: border-box;
  }

  .detail-page {
    width: 100%;
    box-sizing: border-box;
    overflow-x: hidden;
    padding-left: 12px;
    padding-right: 12px;
  }

  .img-carousel {
    height: 240px;
    border-radius: 12px;
    margin: 0;
    max-width: 100%;
    width: 100%;
    box-sizing: border-box;
    display: block;
  }

  .img-carousel img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    max-height: none;
  }

  .detail-section iframe {
    margin: 0 auto;
    display: block;
    border-radius: 12px;
    width: 100%;
    box-sizing: border-box;
  }

  .property-detail-page {
    padding: 16px;
    width: 100%;
    box-sizing: border-box;
    overflow-x: hidden;
  }

  .btn-contact-premium {
    width: 100%;
    justify-content: center;
    font-size: 15px;
    padding: 12px 20px;
    border-radius: 12px;
    min-width: 0;
  }


  .dash-sidebar {
    width: 100%;
    height: auto;
    position: static;
    padding: 16px;
    border-right: none;
    border-bottom: 1px solid var(--border);
  }

  .dash-nav,
  .admin-nav,
  .admin-sidebar-footer,
  .admin-brand-sub {
    display: none !important;
  }

  .dash-nav-mobile-wrap {
    display: block !important;
  }

  .dash-nav-mobile {
    width: 100%;
    padding: 12px 16px;
    border-radius: 12px;
    background: var(--surface);
    border: 1px solid var(--border);
    color: var(--text);
    font-size: 15px;
    font-weight: 600;
    outline: none;
    -webkit-appearance: none;
    appearance: none;
    background-image: url("data:image/svg+xml;charset=US-ASCII,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22292.4%22%20height%3D%22292.4%22%3E%3Cpath%20fill%3D%22%2316a34a%22%20d%3D%22M287%2069.4a17.6%2017.6%200%200%200-13-5.4H18.4c-5%200-9.3%201.8-12.9%205.4A17.6%2017.6%200%200%200%200%2082.2c0%205%201.8%209.3%205.4%2012.9l128%20127.9c3.6%203.6%207.8%205.4%2012.8%205.4s9.2-1.8%2012.8-5.4L287%2095c3.5-3.5%205.4-7.8%205.4-12.8%200-5-1.9-9.2-5.5-12.8z%22%2F%3E%3C%2Fsvg%3E");
    background-repeat: no-repeat;
    background-position: right 16px top 50%;
    background-size: 12px auto;
  }

  .admin-page,
  .dash-page {
    flex-direction: column;
  }

  .admin-sidebar {
    width: 100%;
    height: auto;
    position: static;
    border-right: none;
    border-bottom: 1px solid var(--border);
    flex-shrink: 0;
  }

  .admin-brand {
    border-bottom: none;
    padding: 16px;
    justify-content: space-between;
  }

  .admin-main,
  .dash-main {
    max-width: 100%;
    padding: 12px 12px 100px;
  }

  .admin-card {
    padding: 12px;
    margin-bottom: 12px;
    border-radius: 16px;
  }

  .admin-card[style*="overflow"] {
    margin: 0;
    border-radius: 12px;
    border: 1px solid var(--border);
  }

  /* Compact Box Scaling for Mobile */
  .auth-modal-inner {
    max-width: 360px !important;
    margin: auto;
  }

  .coming-soon-card {
    padding: 32px 24px !important;
    max-width: 360px !important;
    margin: 16px auto;
  }

  .stats-grid,
  .admin-dashboard-stats {
    gap: 12px;
  }

  .admin-table {
    white-space: nowrap;
    min-width: 700px;
  }

  .admin-dashboard-stats {
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }

  .admin-form-grid {
    grid-template-columns: 1fr;
  }

  .admin-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .admin-header>div {
    width: 100%;
    display: flex;
    justify-content: space-between;
  }

  .bottom-nav {
    display: flex;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 72px;
    background: #ffffff;
    border-top: 1px solid var(--border);
    z-index: 2000;
    box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.06);
    justify-content: space-between;
    align-items: center;
    padding: 0 10px;
    padding-bottom: env(safe-area-inset-bottom);
    animation: slideUp 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  }

  .bot-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    color: var(--muted);
    text-decoration: none;
    flex: 1;
    height: 100%;
    transition: all 0.3s ease;
    position: relative;
    padding-top: 8px;
  }

  .bot-item.active {
    color: var(--accent);
  }

  .bot-item.active .bot-icon {
    transform: translateY(-2px);
  }

  .bot-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  }

  .bot-icon svg {
    stroke: currentColor;
    opacity: 1;
  }

  .bot-item.active .bot-icon svg {
    opacity: 1;
    stroke-width: 2.5px;
  }

  .bot-label {
    font-size: 10px;
    font-weight: 600;
    font-family: 'DM Sans', sans-serif;
    opacity: 1;
    transition: opacity 0.3s;
  }

  .bot-item.active .bot-label {
    opacity: 1;
    font-weight: 700;
  }


  /* Search Attention Pulse */
  .bot-item-search .bot-icon {
    animation: searchPulse 2s ease-in-out infinite;
    color: var(--accent);
  }

  .bot-item-search.active .bot-icon {
    transform: none;
  }

  .bot-item-search .bot-label {
    font-weight: 700;
    color: var(--accent);
  }

  /* Legacy Sell button cleanup (if used) */
  .bot-item-sell {
    display: none;
  }
}

#listView {
  height: 100%;
  overflow-y: auto;
  width: 100%;
}