/* ============================================
   RentFair Homes — Global Styles
   ============================================ */

:root {
  --color-bg: #FFFFFF;
  --color-bg-secondary: #F8FAFC;
  --color-border: #E5E7EB;
  --color-text: #0F172A;
  --color-muted: #64748B;
  --color-primary: #10B981;
  --color-primary-dark: #059669;
  --color-accent-blue: #2563EB;
  --color-luxury: #C6A96B;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--color-text);
  font-weight: 400;
  line-height: 1.7;
}

.font-display { font-family: 'Inter', ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; }
.font-body    { font-family: 'Inter', ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; }
.font-700     { font-weight: 800; }
.font-800     { font-weight: 900; }

.hero-heading {
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: -0.025em;
}

h2.font-display,
h3.font-display {
  font-weight: 900;
  line-height: 1.15;
  letter-spacing: -0.025em;
}

p {
  line-height: 1.7;
}

/* ---- Brand ---- */
.brand-logo {
  display: inline-block;
  flex-shrink: 0;
  border-radius: 10px;
  object-fit: contain;
  box-shadow: 0 1px 4px rgba(15, 23, 42, 0.08);
}

.brand-logo-dark {
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.14), 0 8px 20px rgba(0, 0, 0, 0.18);
}

.brand-wordmark {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 1px;
  line-height: 1;
  letter-spacing: 0;
}

.brand-wordmark-main {
  color: #0F172A;
  font-size: 1.05rem;
  font-weight: 900;
}

.brand-wordmark-sub {
  color: #10B981;
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

/* ---- Buttons ---- */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: #10B981;
  color: #fff;
  font-weight: 600;
  font-size: 0.875rem;
  padding: 0.625rem 1.25rem;
  border-radius: 0.75rem;
  border: none;
  cursor: pointer;
  transition: background 0.18s, transform 0.12s, box-shadow 0.18s;
  text-decoration: none;
  box-shadow: 0 1px 4px rgba(16,185,129,0.2);
}
.btn-primary:hover {
  background: #059669;
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(16,185,129,0.3);
}
.btn-primary:active { transform: translateY(0); }

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: #fff;
  color: #0F172A;
  font-weight: 600;
  font-size: 0.875rem;
  padding: 0.625rem 1.25rem;
  border-radius: 0.75rem;
  border: 1.5px solid #E5E7EB;
  cursor: pointer;
  transition: all 0.18s;
  text-decoration: none;
}
.btn-secondary:hover {
  border-color: #10B981;
  color: #10B981;
  background: #f0fdf4;
}

.btn-whatsapp {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: #25D366;
  color: #fff;
  font-weight: 600;
  font-size: 0.8125rem;
  padding: 0.5rem 1rem;
  border-radius: 0.625rem;
  border: none;
  cursor: pointer;
  transition: all 0.18s;
}
.btn-whatsapp:hover { background: #1ebe5d; }

/* ---- Hero ---- */
.hero-grid {
  background-image:
    linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px);
  background-size: 40px 40px;
}

.hero-img-item {
  animation: float 6s ease-in-out infinite;
  box-shadow: 0 20px 60px rgba(0,0,0,0.4);
}
.hero-img-item:nth-child(2) { animation-delay: -2s; }
.hero-img-item:nth-child(3) { animation-delay: -4s; }

@keyframes float {
  0%, 100% { transform: translateY(0) rotate(var(--r, 2deg)); }
  50%       { transform: translateY(-8px) rotate(var(--r, 2deg)); }
}

/* ---- Hero search tabs ---- */
.hero-tab {
  font-family: 'Inter', ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-weight: 600;
  font-size: 0.875rem;
  color: #64748B;
  border-bottom: 2px solid transparent;
  transition: all 0.18s;
}
.hero-tab.active {
  color: #10B981;
  border-bottom-color: #10B981;
}
.hero-tab:hover { color: #0F172A; }

/* ---- Listing tabs ---- */
.listing-tab {
  font-family: 'Inter', ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-weight: 500;
  font-size: 0.875rem;
  color: #64748B;
  transition: all 0.15s;
}
.listing-tab.active {
  background: #fff;
  color: #0F172A;
  font-weight: 600;
  box-shadow: 0 1px 4px rgba(0,0,0,0.08);
}

/* ---- Auth tabs ---- */
.auth-tab {
  font-family: 'Inter', ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-weight: 500;
  font-size: 0.875rem;
  color: #64748B;
  transition: all 0.15s;
}
.auth-tab.active {
  background: #fff;
  color: #0F172A;
  font-weight: 600;
  box-shadow: 0 1px 4px rgba(0,0,0,0.08);
}

/* ---- Property Cards ---- */
.prop-card {
  background: #fff;
  border: 1.5px solid #F1F5F9;
  border-radius: 16px;
  overflow: hidden;
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
  cursor: pointer;
}
.prop-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.10);
  border-color: #D1FAE5;
}

.prop-card-img {
  position: relative;
  overflow: hidden;
  height: 200px;
  background: #F1F5F9;
}
.prop-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.prop-card:hover .prop-card-img img {
  transform: scale(1.05);
}

.prop-card-img .overlay-actions {
  position: absolute;
  top: 10px;
  right: 10px;
  display: flex;
  gap: 6px;
  opacity: 0;
  transition: opacity 0.2s;
}
.prop-card:hover .overlay-actions { opacity: 1; }

.icon-btn {
  width: 32px;
  height: 32px;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(4px);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  cursor: pointer;
  transition: all 0.15s;
  box-shadow: 0 2px 8px rgba(0,0,0,0.12);
}
.icon-btn:hover { background: #fff; transform: scale(1.08); }
.icon-btn.saved svg path { fill: #EF4444; stroke: #EF4444; }

.badge-verified {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: #ECFDF5;
  color: #059669;
  font-size: 0.6875rem;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 20px;
}

.badge-fair {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: #EFF6FF;
  color: #2563EB;
  font-size: 0.6875rem;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 20px;
}

.badge-new {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: #FEF3C7;
  color: #D97706;
  font-size: 0.6875rem;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 20px;
}

.badge-doc {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  background: #F0FDF4;
  color: #16A34A;
  font-size: 0.6875rem;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 20px;
  border: 1px solid #BBF7D0;
}

.trust-summary {
  margin: 0 0 1rem;
  padding: 0.9rem;
  border: 1px solid #D1FAE5;
  border-radius: 8px;
  background: #F0FDF4;
  text-align: left;
}

.trust-summary-title {
  margin: 0 0 0.65rem;
  color: #065F46;
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0;
}

.trust-summary-item {
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
}

.trust-summary-item > span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.15rem;
  height: 1.15rem;
  margin-top: 0.05rem;
  border-radius: 999px;
  background: #D1FAE5;
  color: #047857;
  flex: 0 0 auto;
}

.trust-summary-item p {
  margin: 0;
  color: #0F172A;
  font-size: 0.82rem;
  font-weight: 800;
  line-height: 1.25;
}

.trust-summary-item small {
  display: block;
  margin-top: 0.1rem;
  color: #64748B;
  font-size: 0.72rem;
  line-height: 1.35;
}

/* ---- Area cards ---- */
.area-card {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
  height: 130px;
}
.area-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}
.area-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s;
}
.area-card:hover img { transform: scale(1.08); }
.area-card .area-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(15,23,42,0.75), rgba(15,23,42,0.1));
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 10px;
}

/* ---- Trust cards ---- */
.trust-card { transition: all 0.2s; }

/* ---- How steps ---- */
.how-step {
  position: relative;
}
.how-step:not(:last-child)::after {
  content: '';
  position: absolute;
  top: 35px;
  right: -50%;
  width: 100%;
  height: 1px;
  background: linear-gradient(to right, rgba(16,185,129,0.3), transparent);
  display: none;
}
@media(min-width:1024px) {
  .how-step:not(:last-child)::after { display: block; }
}

/* ---- Map pins ---- */
.map-pin { position: absolute; }
.map-pin > div::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-top: 6px solid currentColor;
}
.map-pin > div { position: relative; }

.map-embed-card {
  overflow: hidden;
  border: 1.5px solid #E5E7EB;
  border-radius: 14px;
  background: #F8FAFC;
}

.map-embed-card iframe,
#map-panel iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

.map-listing-chip {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  border: 1px solid rgba(226, 232, 240, 0.9);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.12);
  text-align: left;
  transition: transform 0.15s ease, border-color 0.15s ease;
}

.map-listing-chip:hover {
  transform: translateY(-1px);
  border-color: #A7F3D0;
}

/* ---- Filter chips ---- */
.filter-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 6px 12px;
  border: 1.5px solid #E5E7EB;
  border-radius: 20px;
  font-size: 0.8125rem;
  font-weight: 500;
  color: #475569;
  background: #fff;
  cursor: pointer;
  transition: all 0.15s;
  white-space: nowrap;
}
.filter-chip:hover, .filter-chip.active {
  border-color: #10B981;
  color: #059669;
  background: #F0FDF4;
}

/* ---- Skeleton loader ---- */
.skeleton {
  background: linear-gradient(90deg, #F1F5F9 25%, #E2E8F0 50%, #F1F5F9 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: 8px;
}
@keyframes shimmer {
  0%   { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* ---- Image gallery ---- */
.property-gallery {
  margin-bottom: 1.5rem;
}

.property-gallery-stage {
  position: relative;
  height: 470px;
  overflow: hidden;
  border-radius: 24px;
  background: #F1F5F9;
  box-shadow: 0 18px 50px rgba(15,23,42,.12);
}

.property-gallery-stage > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.property-gallery-caption {
  position: absolute;
  left: 1rem;
  bottom: 3.65rem;
  z-index: 2;
  max-width: min(32rem, calc(100% - 2rem));
  margin: 0;
  padding: 0.55rem 0.75rem;
  border-radius: 8px;
  background: rgba(15,23,42,.78);
  color: #FFFFFF;
  font-size: 0.88rem;
  font-weight: 700;
  line-height: 1.35;
  backdrop-filter: blur(12px);
  box-shadow: 0 10px 25px rgba(15,23,42,.18);
}

.property-gallery-caption.hidden {
  display: none;
}

.property-gallery-topline {
  position: absolute;
  left: 1rem;
  right: 1rem;
  bottom: 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  pointer-events: none;
}

.photo-count-badge,
.property-gallery-counter {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  min-height: 2rem;
  padding: 0.4rem 0.7rem;
  border-radius: 999px;
  background: rgba(15,23,42,.78);
  color: #FFFFFF;
  font-size: 0.75rem;
  font-weight: 900;
  line-height: 1;
  backdrop-filter: blur(12px);
  box-shadow: 0 10px 25px rgba(15,23,42,.18);
}

.prop-card-img > .photo-count-badge {
  position: absolute;
  left: 0.75rem;
  bottom: 0.75rem;
  z-index: 2;
}

.gallery-nav {
  position: absolute;
  top: 50%;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border: 0;
  border-radius: 999px;
  background: rgba(255,255,255,.92);
  color: #0F172A;
  box-shadow: 0 10px 28px rgba(15,23,42,.18);
  cursor: pointer;
  transform: translateY(-50%);
  transition: background .15s ease, transform .15s ease;
}

.gallery-nav:hover {
  background: #FFFFFF;
  transform: translateY(-50%) scale(1.04);
}

.gallery-nav-prev { left: 1rem; }
.gallery-nav-next { right: 1rem; }

.property-gallery-thumbs {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(84px, 1fr));
  gap: 0.65rem;
  margin-top: 0.8rem;
}

.property-gallery-thumbs button {
  height: 68px;
  overflow: hidden;
  border: 2px solid transparent;
  border-radius: 14px;
  background: #F8FAFC;
  cursor: pointer;
  padding: 0;
  opacity: .72;
  transition: border-color .15s ease, opacity .15s ease, transform .15s ease;
}

.property-gallery-thumbs button:hover,
.property-gallery-thumbs button.active {
  border-color: #10B981;
  opacity: 1;
}

.property-gallery-thumbs button.active {
  transform: translateY(-1px);
}

.property-gallery-thumbs img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.property-upload-preview {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(76px, 1fr));
  gap: 0.65rem;
  width: min(100%, 680px);
  margin: 0 auto;
}

.property-upload-thumb {
  position: relative;
  aspect-ratio: 1;
  overflow: hidden;
  border-radius: 14px;
  background: #E2E8F0;
  box-shadow: 0 1px 2px rgba(15,23,42,.08);
}

.property-upload-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.property-upload-thumb span {
  position: absolute;
  left: 0.35rem;
  bottom: 0.35rem;
  border-radius: 999px;
  background: rgba(15,23,42,.78);
  color: #FFFFFF;
  padding: 0.22rem 0.45rem;
  font-size: 0.64rem;
  font-weight: 900;
  line-height: 1;
}

.gallery-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  grid-template-rows: 220px 220px;
  gap: 6px;
  border-radius: 16px;
  overflow: hidden;
}
.gallery-grid .main-img {
  grid-row: span 2;
}
.gallery-grid img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity 0.2s;
  cursor: pointer;
}
.gallery-grid img:hover { opacity: 0.9; }

@media (max-width: 640px) {
  .gallery-grid {
    grid-template-columns: 1fr;
    grid-template-rows: 220px;
  }
  .gallery-grid .main-img { grid-row: span 1; }
  .gallery-grid img:not(:first-child) { display: none; }
}

@media (max-width: 768px) {
  .detail-shell {
    padding-top: 1.15rem !important;
    padding-bottom: 2.5rem !important;
  }

  .detail-breadcrumb {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    gap: 0.45rem;
    width: 100%;
    margin-bottom: 1rem !important;
    overflow: hidden;
    border: 1px solid #E8EEF5;
    border-radius: 999px;
    background: rgba(248,250,252,.92);
    padding: 0.45rem 0.55rem;
    box-shadow: 0 8px 22px rgba(15,23,42,.045);
  }

  .detail-breadcrumb a {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    min-height: 1.75rem;
    border-radius: 999px;
    background: #FFFFFF;
    padding: 0.25rem 0.65rem;
    color: #0F766E;
    font-size: 0.78rem;
    font-weight: 800;
    box-shadow: 0 1px 2px rgba(15,23,42,.04);
  }

  .detail-breadcrumb a:hover {
    text-decoration: none;
    color: #047857;
  }

  .detail-breadcrumb > span:not(.text-slate-500) {
    flex: 0 0 auto;
    color: #CBD5E1;
    font-size: 0.75rem;
    font-weight: 800;
  }

  .detail-breadcrumb .text-slate-500 {
    min-width: 0;
    overflow: hidden;
    color: #475569 !important;
    font-size: 0.8rem;
    font-weight: 800;
    line-height: 1.2;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .detail-shell .gallery-grid {
    margin-bottom: 1.15rem !important;
    grid-template-rows: 260px;
    border-radius: 1.45rem;
    box-shadow: 0 18px 45px rgba(15,23,42,.13);
  }

  .detail-shell .property-gallery {
    margin-bottom: 1.15rem;
  }

  .detail-shell .property-gallery-stage {
    height: 280px;
    border-radius: 1.45rem;
    box-shadow: 0 18px 45px rgba(15,23,42,.13);
  }

  .detail-shell .property-gallery-caption {
    left: 0.75rem;
    right: 0.75rem;
    bottom: 3.25rem;
    max-width: none;
    font-size: 0.78rem;
  }

  .detail-shell .property-gallery-thumbs {
    display: flex;
    gap: 0.5rem;
    overflow-x: auto;
    padding-bottom: 0.15rem;
    -webkit-overflow-scrolling: touch;
  }

  .detail-shell .property-gallery-thumbs::-webkit-scrollbar {
    display: none;
  }

  .detail-shell .property-gallery-thumbs button {
    flex: 0 0 70px;
    height: 56px;
    border-radius: 12px;
  }

  .gallery-nav {
    width: 2.25rem;
    height: 2.25rem;
  }

  .gallery-nav-prev { left: 0.7rem; }
  .gallery-nav-next { right: 0.7rem; }

  .detail-shell .flex.flex-wrap.items-start.justify-between {
    gap: 0.8rem;
    margin-bottom: 1.15rem !important;
  }

  .detail-shell h1 {
    font-size: 1.55rem !important;
    line-height: 1.15;
    letter-spacing: 0;
  }

  .detail-shell .text-right {
    width: 100%;
    text-align: left;
    border: 1px solid #D1FAE5;
    border-radius: 1.05rem;
    background: linear-gradient(135deg, #ECFDF5, #FFFFFF);
    padding: 0.8rem 0.9rem;
  }

  .detail-shell .text-right p:first-child {
    font-size: 1.45rem !important;
  }
}

/* ---- Dashboard listing row ---- */
.dash-listing-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border: 1.5px solid #F1F5F9;
  border-radius: 12px;
  transition: border-color 0.15s;
}
.dash-listing-row:hover { border-color: #D1FAE5; }
.dash-listing-row img {
  width: 60px;
  height: 48px;
  object-fit: cover;
  border-radius: 8px;
  flex-shrink: 0;
}

.owner-status-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 56px;
  padding: 3px 8px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 800;
}
.owner-status-active {
  color: #047857;
  background: #ECFDF5;
}
.owner-status-pending {
  color: #B45309;
  background: #FFFBEB;
}
.owner-status-flagged {
  color: #DC2626;
  background: #FEF2F2;
}
.owner-status-closed {
  color: #475569;
  background: #F1F5F9;
}

.owner-action-btn {
  display: block;
  margin-top: 8px;
  width: 100%;
  padding: 7px 10px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 800;
  border: 1.5px solid transparent;
  transition: all 0.15s ease;
}
.owner-action-rented {
  color: #2563EB;
  background: #EFF6FF;
  border-color: #BFDBFE;
}
.owner-action-rented:hover {
  color: #1D4ED8;
  background: #DBEAFE;
}
.owner-action-sold {
  color: #7C3AED;
  background: #F5F3FF;
  border-color: #DDD6FE;
}
.owner-action-sold:hover {
  color: #6D28D9;
  background: #EDE9FE;
}

.owner-enquiry-card {
  padding: 14px;
  border: 1px solid #E9EEF5;
  border-radius: 18px;
  background: #FFFFFF;
  box-shadow: 0 1px 2px rgba(15,23,42,.035);
}

.owner-enquiry-card.owner-enquiry-contacted {
  background: #FBFDFE;
}

.owner-enquiry-top {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.owner-enquiry-avatar {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  background: #ECFDF5;
  color: #047857;
  font-size: 0.82rem;
  font-weight: 900;
}

.owner-enquiry-meta {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
}

.owner-enquiry-name {
  min-width: 0;
  color: #0F172A;
  font-size: 0.92rem;
  font-weight: 900;
}

.owner-enquiry-meta span {
  flex-shrink: 0;
  color: #94A3B8;
  font-size: 0.72rem;
  font-weight: 700;
}

.owner-enquiry-property {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 4px;
  color: #059669;
  font-size: 0.75rem;
  font-weight: 800;
  overflow: hidden;
  white-space: nowrap;
}

.owner-enquiry-property span {
  flex-shrink: 0;
  border-radius: 999px;
  background: #ECFDF5;
  padding: 2px 7px;
  color: #047857;
  font-size: 0.66rem;
  font-weight: 900;
}

.owner-enquiry-status {
  display: inline-flex;
  align-items: center;
  margin-top: 7px;
  min-height: 22px;
  padding: 3px 8px;
  border-radius: 999px;
  font-size: 0.66rem;
  font-weight: 900;
  line-height: 1;
}

.owner-enquiry-status.new {
  color: #047857;
  background: #ECFDF5;
}

.owner-enquiry-status.contacted {
  color: #2563EB;
  background: #EFF6FF;
}

.owner-enquiry-message {
  margin-top: 11px;
  padding: 11px 12px;
  border-radius: 14px;
  background: #F8FAFC;
  color: #475569;
  font-size: 0.82rem;
  line-height: 1.45;
}

.owner-enquiry-contact {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 12px;
}

.owner-enquiry-contact > span {
  min-width: 0;
  color: #64748B;
  font-size: 0.76rem;
  font-weight: 800;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.owner-enquiry-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.owner-enquiry-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 30px;
  padding: 0 10px;
  border: 1px solid #E5E7EB;
  border-radius: 999px;
  background: #FFFFFF;
  color: #0F172A;
  font-size: 0.72rem;
  font-weight: 900;
  text-decoration: none;
}

.owner-enquiry-action.whatsapp {
  border-color: #BBF7D0;
  background: #ECFDF5;
  color: #047857;
}

.owner-enquiry-manage {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid #F1F5F9;
}

.owner-enquiry-manage-btn {
  min-height: 30px;
  border: 1px solid #BFDBFE;
  border-radius: 999px;
  background: #EFF6FF;
  color: #1D4ED8;
  padding: 0 11px;
  font-size: 0.72rem;
  font-weight: 900;
  transition: background .15s ease, border-color .15s ease;
}

.owner-enquiry-manage-btn:hover {
  background: #DBEAFE;
  border-color: #93C5FD;
}

.owner-enquiry-manage-btn.close {
  border-color: #E5E7EB;
  background: #FFFFFF;
  color: #64748B;
}

.owner-enquiry-manage-btn.close:hover {
  background: #F8FAFC;
  color: #334155;
}

.owner-enquiry-manage-btn:disabled {
  cursor: wait;
  opacity: .65;
}

@media (max-width: 768px) {
  #page-dashboard {
    padding-top: 1.25rem !important;
    padding-bottom: 2.5rem !important;
  }

  #page-dashboard > .max-w-7xl {
    padding-left: 0.9rem !important;
    padding-right: 0.9rem !important;
  }

  #page-dashboard .bg-white.rounded-2xl {
    border-radius: 1.25rem;
    padding: 1rem !important;
  }

  #page-dashboard > .max-w-7xl > .flex.items-center.justify-between {
    align-items: stretch;
    gap: 1rem;
  }

  #page-dashboard > .max-w-7xl > .flex.items-center.justify-between > div:first-child {
    width: 100%;
    min-width: 0;
  }

  #page-dashboard > .max-w-7xl > .flex.items-center.justify-between > div:last-child {
    display: grid;
    width: 100%;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.55rem;
  }

  #page-dashboard > .max-w-7xl > .flex.items-center.justify-between > div:last-child button {
    justify-content: center;
    min-height: 2.65rem;
    width: 100%;
    padding-left: 0.75rem !important;
    padding-right: 0.75rem !important;
    font-size: 0.8rem;
  }

  #page-dashboard > .max-w-7xl > .flex.items-center.justify-between > div:last-child button:last-child {
    grid-column: 1 / -1;
  }

  #page-dashboard .grid.grid-cols-2.sm\:grid-cols-4 {
    gap: 0.65rem !important;
  }

  #page-dashboard .grid.grid-cols-2.sm\:grid-cols-4 .bg-white.rounded-2xl {
    min-width: 0;
    padding: 0.85rem !important;
  }

  #page-dashboard .grid.grid-cols-2.sm\:grid-cols-4 p:first-child {
    min-height: 2rem;
    font-size: 0.7rem;
    line-height: 1.25;
  }

  #page-dashboard .grid.grid-cols-2.sm\:grid-cols-4 p:nth-child(2) {
    font-size: 1.7rem !important;
    line-height: 1.05;
  }

  #page-dashboard .grid.grid-cols-2.sm\:grid-cols-4 p:last-child {
    font-size: 0.68rem;
    line-height: 1.25;
  }

  #dashboard-messages {
    display: grid;
    gap: 0.85rem;
  }

  .owner-enquiry-card {
    padding: 0.9rem;
    border-radius: 1.15rem;
    background:
      linear-gradient(#FFFFFF, #FFFFFF) padding-box,
      linear-gradient(135deg, rgba(16,185,129,.35), rgba(37,99,235,.12)) border-box;
    border: 1px solid transparent;
    box-shadow: 0 12px 30px rgba(15,23,42,.075);
  }

  .owner-enquiry-top {
    gap: 0.65rem;
  }

  .owner-enquiry-avatar {
    width: 2.35rem;
    height: 2.35rem;
    border-radius: 0.9rem;
  }

  .owner-enquiry-meta {
    align-items: flex-start;
  }

  .owner-enquiry-name {
    font-size: 0.9rem;
    line-height: 1.2;
  }

  .owner-enquiry-property {
    max-width: 100%;
    font-size: 0.74rem;
  }

  .owner-enquiry-property span {
    display: none;
  }

  .owner-enquiry-message {
    margin-top: 0.8rem;
    padding: 0.78rem 0.85rem;
    border: 1px solid #EEF2F7;
    background: #F8FAFC;
    color: #334155;
    font-size: 0.84rem;
  }

  .owner-enquiry-contact {
    align-items: stretch;
    flex-direction: column;
    margin-top: 0.85rem;
  }

  .owner-enquiry-contact > span {
    width: 100%;
    border-radius: 999px;
    background: #F1F5F9;
    padding: 0.45rem 0.7rem;
    color: #334155;
    font-size: 0.76rem;
  }

  .owner-enquiry-actions {
    display: grid;
    width: 100%;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.5rem;
  }

  .owner-enquiry-action {
    min-height: 2.55rem;
    padding: 0 0.75rem;
    font-size: 0.78rem;
  }

  .owner-enquiry-action.whatsapp {
    background: #10B981;
    color: #FFFFFF;
    border-color: #10B981;
  }

  .owner-enquiry-manage {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.5rem;
  }

  .owner-enquiry-manage-btn {
    min-height: 2.35rem;
    font-size: 0.76rem;
  }
}

@media (max-width: 640px) {
  .dash-listing-row {
    display: grid;
    grid-template-columns: 58px minmax(0, 1fr);
    align-items: start;
    gap: 0.75rem;
  }
  .dash-listing-row img {
    width: 58px;
    height: 52px;
  }
  .dash-listing-row .text-right {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 0.6rem;
    min-width: 0;
    width: 100%;
    text-align: left;
  }
  .dash-listing-row .text-right .owner-action-btn {
    grid-column: 1 / -1;
    margin-top: 0;
  }
  .owner-review-note {
    margin-right: -0.25rem;
  }
}

/* ---- Post form ---- */
.form-section {
  background: #fff;
  border: 1.5px solid #E5E7EB;
  border-radius: 16px;
  padding: 24px;
  margin-bottom: 16px;
}
.form-section h3 {
  font-family: 'Inter', ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-weight: 800;
  font-size: 1rem;
  color: #0F172A;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid #F1F5F9;
}

.form-input {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1.5px solid #E5E7EB;
  border-radius: 0.75rem;
  font-family: 'Inter', ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 0.875rem;
  color: #0F172A;
  background: #fff;
  transition: border-color 0.15s, box-shadow 0.15s;
  outline: none;
}
.form-input:focus {
  border-color: #10B981;
  box-shadow: 0 0 0 3px rgba(16,185,129,0.1);
}

/* ---- Amenity checkboxes ---- */
.amenity-check {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border: 1.5px solid #E5E7EB;
  border-radius: 10px;
  cursor: pointer;
  font-size: 0.8125rem;
  font-weight: 500;
  color: #475569;
  transition: all 0.15s;
}
.amenity-check:hover, .amenity-check.checked {
  border-color: #10B981;
  color: #059669;
  background: #F0FDF4;
}

/* ---- Detail page agent card ---- */
.agent-card {
  background: #fff;
  border: 1.5px solid #E5E7EB;
  border-radius: 16px;
  padding: 20px;
  position: sticky;
  top: 84px;
}

.contact-safety-note {
  margin: 0 0 1rem;
  padding: 0.85rem 0.9rem;
  border: 1px solid #FED7AA;
  border-radius: 8px;
  background: #FFF7ED;
  color: #9A3412;
}

.contact-safety-note p {
  margin: 0 0 0.2rem;
  font-size: 0.78rem;
  font-weight: 900;
  line-height: 1.2;
}

.contact-safety-note span {
  display: block;
  font-size: 0.76rem;
  font-weight: 650;
  line-height: 1.35;
}

.owner-review-note {
  margin-top: 0.55rem;
  padding: 0.55rem 0.65rem;
  border: 1px solid #FDE68A;
  border-radius: 8px;
  background: #FFFBEB;
  color: #92400E;
}

.owner-review-note strong {
  display: block;
  margin-bottom: 0.15rem;
  font-size: 0.7rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0;
}

.owner-review-note span {
  display: block;
  font-size: 0.76rem;
  font-weight: 650;
  line-height: 1.35;
}

/* ---- Price breakdown table ---- */
.price-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 0;
  border-bottom: 1px solid #F8FAFC;
  font-size: 0.875rem;
}
.price-row:last-child { border-bottom: none; }
.price-row .label { color: #64748B; }
.price-row .value { font-weight: 600; color: #0F172A; }
.price-row.total .label { font-weight: 700; color: #0F172A; }
.price-row.total .value { color: #10B981; font-size: 1.05rem; }

/* ---- Fair price indicator ---- */
.fair-price-bar {
  height: 6px;
  border-radius: 20px;
  background: #E2E8F0;
  position: relative;
  overflow: hidden;
}
.fair-price-bar .fill {
  height: 100%;
  border-radius: 20px;
  background: linear-gradient(to right, #10B981, #059669);
  transition: width 0.6s ease;
}

/* ---- Upload zone ---- */
.upload-zone {
  border: 2px dashed #D1D5DB;
  border-radius: 14px;
  padding: 32px;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s;
  background: #FAFAFA;
}
.upload-zone:hover {
  border-color: #10B981;
  background: #F0FDF4;
}

/* ---- Responsive tweaks ---- */
@media (max-width: 768px) {
  .gallery-grid {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 180px;
  }
  .gallery-grid .main-img {
    grid-column: span 2;
  }
  .gallery-grid img:nth-child(n+3) { display: none; }

  #map-panel { display: none !important; }
}

/* ---- Page transitions ---- */
.page {
  animation: pageIn 0.25s ease;
}
@keyframes pageIn {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ---- Scrollbar ---- */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: #CBD5E1; border-radius: 20px; }
::-webkit-scrollbar-thumb:hover { background: #94A3B8; }

/* ---- Notification toast ---- */
.toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: #0F172A;
  color: #fff;
  padding: 12px 18px;
  border-radius: 12px;
  font-size: 0.875rem;
  font-weight: 500;
  box-shadow: 0 8px 30px rgba(0,0,0,0.2);
  z-index: 9999;
  animation: toastIn 0.3s ease;
  display: flex;
  align-items: center;
  gap: 8px;
  max-width: 320px;
}
@keyframes toastIn {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ---- Detail page breadcrumb ---- */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8125rem;
  color: #64748B;
  margin-bottom: 16px;
}
.breadcrumb a { color: #2563EB; text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; }
.breadcrumb span { color: #CBD5E1; }

/* ---- Nearby card ---- */
.nearby-card {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border: 1.5px solid #F1F5F9;
  border-radius: 12px;
  font-size: 0.8125rem;
}

.nearby-icon {
  width: 34px;
  height: 34px;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #10B981;
  background: #ECFDF5;
  border: 1px solid #D1FAE5;
  border-radius: 10px;
}

.post-cat-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: currentColor;
}

/* ============================================
   Admin Panel Styles
   ============================================ */

.admin-topbar {
  position: sticky;
  top: 64px;
  z-index: 40;
}

/* Sidebar nav buttons */
.admin-nav-btn {
  color: #64748B;
  text-align: left;
}
.admin-nav-btn:hover {
  background: #F8FAFC;
  color: #0F172A;
}
.admin-nav-btn.active {
  background: #ECFDF5;
  color: #059669;
  font-weight: 600;
}

/* Admin stat cards */
.admin-stat {
  background: #fff;
  border: 1.5px solid #F1F5F9;
  border-radius: 16px;
  padding: 20px 24px;
  transition: box-shadow 0.2s;
}
.admin-stat:hover { box-shadow: 0 4px 20px rgba(0,0,0,0.06); }

/* Admin table */
.admin-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
}
.admin-table th {
  text-align: left;
  padding: 10px 14px;
  font-size: 0.75rem;
  font-weight: 600;
  color: #94A3B8;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  border-bottom: 1.5px solid #F1F5F9;
  white-space: nowrap;
}
.admin-table td {
  padding: 12px 14px;
  border-bottom: 1px solid #F8FAFC;
  color: #334155;
  vertical-align: middle;
}
.admin-table tr:last-child td { border-bottom: none; }
.admin-table tr:hover td { background: #FAFAFA; }
.admin-table img {
  width: 44px; height: 36px; object-fit: cover; border-radius: 6px;
}

/* Status badges */
.status-active    { background:#ECFDF5; color:#059669; }
.status-pending   { background:#FEF3C7; color:#D97706; }
.status-rejected  { background:#FEF2F2; color:#DC2626; }
.status-flagged   { background:#FFF7ED; color:#EA580C; }
.status-banned    { background:#F1F5F9; color:#64748B; }

.status-badge {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 3px 10px; border-radius: 20px;
  font-size: 0.6875rem; font-weight: 600;
}

/* Action buttons in table */
.tbl-btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 4px 10px; border-radius: 7px; font-size: 0.75rem; font-weight: 600;
  border: none; cursor: pointer; transition: all 0.15s; white-space: nowrap;
}
.tbl-btn-approve  { background:#ECFDF5; color:#059669; }
.tbl-btn-approve:hover  { background:#D1FAE5; }
.tbl-btn-reject   { background:#FEF2F2; color:#DC2626; }
.tbl-btn-reject:hover   { background:#FEE2E2; }
.tbl-btn-view     { background:#EFF6FF; color:#2563EB; }
.tbl-btn-view:hover     { background:#DBEAFE; }
.tbl-btn-ban      { background:#F1F5F9; color:#64748B; }
.tbl-btn-ban:hover      { background:#E2E8F0; }
.tbl-btn-delete   { background:#FEF2F2; color:#DC2626; }
.tbl-btn-delete:hover   { background:#FEE2E2; }

/* Admin section card */
.admin-card {
  background: #fff;
  border: 1.5px solid #F1F5F9;
  border-radius: 16px;
  overflow: hidden;
}
.admin-card-header {
  padding: 16px 20px;
  border-bottom: 1.5px solid #F8FAFC;
  display: flex; align-items: center; justify-content: space-between;
}
.admin-card-header h3 {
  font-family: 'Inter', ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-weight: 800; font-size: 0.9375rem; color: #0F172A;
}

/* Mini chart bars */
.mini-bar-wrap { display: flex; align-items: flex-end; gap: 3px; height: 40px; }
.mini-bar {
  flex: 1; border-radius: 3px 3px 0 0;
  background: #D1FAE5; transition: background 0.2s;
  min-width: 6px;
}
.mini-bar:hover { background: #10B981; }
.mini-bar.accent { background: #10B981; }

/* Activity feed */
.activity-item {
  display: flex; align-items: flex-start; gap: 10px;
  padding: 10px 0; border-bottom: 1px solid #F8FAFC;
  font-size: 0.8125rem;
}
.activity-item:last-child { border-bottom: none; }
.activity-dot {
  width: 8px; height: 8px; border-radius: 50%;
  margin-top: 4px; flex-shrink: 0;
}

/* Verification card */
.verify-card {
  background: #fff;
  border: 1.5px solid #F1F5F9;
  border-radius: 14px;
  padding: 16px;
  transition: border-color 0.15s;
}
.verify-card:hover { border-color: #D1FAE5; }

/* Report card */
.report-card {
  background: #fff;
  border: 1.5px solid #F1F5F9;
  border-left: 4px solid #F97316;
  border-radius: 0 12px 12px 0;
  padding: 14px 16px;
}

.report-owner-risk {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem;
  margin-top: 0.75rem;
  padding: 0.65rem 0.75rem;
  border: 1px solid #E2E8F0;
  border-radius: 8px;
  background: #F8FAFC;
  color: #475569;
}

.report-owner-risk span {
  font-size: 0.72rem;
  font-weight: 850;
  text-transform: uppercase;
  letter-spacing: 0;
}

.report-owner-risk strong {
  font-size: 0.78rem;
  font-weight: 900;
}

.report-owner-risk small {
  width: 100%;
  color: #64748B;
  font-size: 0.72rem;
}

.report-owner-risk.high {
  border-color: #FECACA;
  background: #FEF2F2;
  color: #B91C1C;
}

/* Toggle switch */
.toggle-switch {
  position: relative; display: inline-block;
  width: 36px; height: 20px;
}
.toggle-switch input { display: none; }
.toggle-slider {
  position: absolute; inset: 0;
  background: #E2E8F0; border-radius: 20px; cursor: pointer;
  transition: background 0.2s;
}
.toggle-slider::after {
  content: ''; position: absolute;
  width: 16px; height: 16px;
  background: white; border-radius: 50%;
  top: 2px; left: 2px;
  transition: transform 0.2s;
  box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}
.toggle-switch input:checked + .toggle-slider { background: #10B981; }
.toggle-switch input:checked + .toggle-slider::after { transform: translateX(16px); }

/* Mobile admin nav */
.admin-mobile-nav {
  display: flex; gap: 2px; overflow-x: auto;
  padding: 0 4px 8px; -webkit-overflow-scrolling: touch;
}
.admin-mobile-nav::-webkit-scrollbar { display: none; }
.admin-mobile-nav button {
  flex-shrink: 0; padding: 6px 14px;
  border-radius: 20px; font-size: 0.8125rem; font-weight: 500;
  color: #64748B; border: none; background: transparent; cursor: pointer;
  transition: all 0.15s; white-space: nowrap;
}
.admin-mobile-nav button.active {
  background: #ECFDF5; color: #059669; font-weight: 600;
}

/* ---- Similar cards compact ---- */
.similar-card {
  display: flex;
  gap: 12px;
  padding: 10px;
  border: 1.5px solid #F1F5F9;
  border-radius: 12px;
  cursor: pointer;
  transition: border-color 0.15s;
}
.similar-card:hover { border-color: #D1FAE5; }
.similar-card img {
  width: 70px;
  height: 56px;
  object-fit: cover;
  border-radius: 8px;
  flex-shrink: 0;
}

/* ============================================
   RentFair Homes v3 — Mature Merge Polish
   Keeps Claude's functionality, adds the calmer premium feel
   from the chat-rentfair direction.
   ============================================ */

:root {
  --rf-ink: #0F172A;
  --rf-muted: #64748B;
  --rf-line: #E5E7EB;
  --rf-soft: #F8FAFC;
  --rf-emerald: #10B981;
  --rf-blue: #2563EB;
}

body {
  background: #FFFFFF;
  letter-spacing: -0.006em;
}

.mature-hero-bg {
  background:
    radial-gradient(circle at 12% 18%, rgba(16,185,129,.11), transparent 28%),
    radial-gradient(circle at 78% 16%, rgba(37,99,235,.09), transparent 26%),
    linear-gradient(180deg, #ffffff 0%, #fbfdff 52%, #f8fafc 100%);
}

.premium-input {
  width: 100%;
  border: 1px solid #E5E7EB;
  background: #F8FAFC;
  color: #334155;
  border-radius: 0.875rem;
  padding: 0.82rem 0.95rem;
  font-size: 0.875rem;
  font-weight: 600;
  outline: none;
  transition: border-color .18s ease, box-shadow .18s ease, background .18s ease;
}
.premium-input:focus {
  background: #fff;
  border-color: #10B981;
  box-shadow: 0 0 0 4px rgba(16,185,129,.10);
}

nav#navbar {
  height: 68px;
  border-color: rgba(226,232,240,.9);
  box-shadow: 0 8px 30px rgba(15,23,42,.035);
}

#mobile-menu {
  position: fixed;
  top: 64px;
  left: 0;
  right: 0;
  z-index: 45;
  max-height: calc(100dvh - 64px);
  overflow-y: auto;
  overscroll-behavior: contain;
  padding-bottom: max(1rem, env(safe-area-inset-bottom));
  box-shadow: 0 22px 50px rgba(15,23,42,.12);
}

body.mobile-menu-open {
  overflow: hidden;
}

.trust-marquee-copy {
  display: none !important;
}

@keyframes trustMarquee {
  from { transform: translate3d(0, 0, 0); }
  to { transform: translate3d(-50%, 0, 0); }
}

.nav-link {
  border-radius: 999px !important;
  font-weight: 700 !important;
}

.btn-primary {
  border-radius: 999px;
  font-weight: 800;
  box-shadow: 0 10px 25px rgba(16,185,129,0.18);
}
.btn-primary:hover {
  box-shadow: 0 16px 35px rgba(16,185,129,0.22);
}

.btn-secondary {
  border-radius: 999px;
  font-weight: 800;
}

.hero-tab {
  border-bottom: none !important;
  color: #64748B;
}
.hero-tab.active {
  background: #fff;
  color: #0F172A;
  box-shadow: 0 8px 20px rgba(15,23,42,.07);
}

.hero-section .search-shell {
  backdrop-filter: blur(18px);
}

.mobile-hero-showcase {
  margin: 1.35rem 0 1.55rem;
  padding: 0.7rem;
  border-radius: 1.75rem;
  background: linear-gradient(135deg, rgba(236,253,245,.98), rgba(255,255,255,.98) 45%, rgba(239,246,255,.98));
  border: 1px solid rgba(209,250,229,.95);
  box-shadow: 0 22px 58px rgba(15,23,42,.13);
}

.mobile-hero-frame {
  position: relative;
  min-height: 310px;
  border-radius: 1.35rem;
  overflow: hidden;
  background: #fff;
}

.mobile-hero-main-img {
  width: 100%;
  height: 230px;
  object-fit: cover;
  display: block;
}

.mobile-hero-price {
  position: absolute;
  top: 0.85rem;
  right: 0.85rem;
  display: grid;
  gap: 0.1rem;
  padding: 0.65rem 0.8rem;
  border-radius: 1rem;
  background: rgba(255,255,255,.92);
  box-shadow: 0 12px 30px rgba(15,23,42,.14);
}

.mobile-hero-price span,
.mobile-hero-trust span,
.mobile-hero-mini-card span {
  font-size: 0.68rem;
  font-weight: 800;
  color: #64748B;
}

.mobile-hero-price strong {
  font-size: 1.1rem;
  color: #059669;
  font-weight: 900;
}

.mobile-hero-mini-card {
  position: absolute;
  left: 0.75rem;
  right: 5.4rem;
  bottom: 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-width: 0;
  padding: 0.65rem;
  border-radius: 1.1rem;
  background: rgba(255,255,255,.95);
  box-shadow: 0 16px 35px rgba(15,23,42,.16);
}

.mobile-hero-mini-card img {
  width: 72px;
  height: 58px;
  border-radius: 0.75rem;
  object-fit: cover;
  flex-shrink: 0;
}

.mobile-hero-mini-card p {
  margin: 0.1rem 0 0;
  font-size: 0.78rem !important;
  line-height: 1.2 !important;
  font-weight: 900;
  color: #0F172A;
}

.mobile-hero-mini-card strong {
  display: block;
  margin-top: 0.1rem;
  font-size: 0.78rem;
  color: #059669;
  font-weight: 900;
}

.mobile-hero-trust {
  position: absolute;
  right: 0.75rem;
  bottom: 0.75rem;
  display: grid;
  place-items: center;
  width: 4.35rem;
  height: 4.35rem;
  border-radius: 1.15rem;
  background: #0F172A;
  color: #fff;
  box-shadow: 0 16px 35px rgba(15,23,42,.22);
}

.mobile-hero-trust span {
  color: rgba(255,255,255,.72);
}

.mobile-hero-trust strong {
  margin-top: -0.6rem;
  font-size: 0.9rem;
  color: #6EE7B7;
  font-weight: 900;
}

section { scroll-margin-top: 82px; }

/* Cleaner, more realistic property cards */
.prop-card {
  border: 1px solid #E9EEF5;
  border-radius: 24px;
  box-shadow: 0 1px 2px rgba(15,23,42,.03);
  background: #fff;
}
.prop-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 24px 60px rgba(15,23,42,.10);
  border-color: #D1FAE5;
}
.prop-card-img {
  height: 235px;
  border-radius: 20px 20px 0 0;
}
.prop-card .p-4 { padding: 1.05rem 1.1rem 1.15rem; }
.prop-card p.font-display {
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}
.badge-verified,
.badge-fair,
.badge-new,
.badge-doc {
  font-weight: 800;
  letter-spacing: -0.01em;
}

/* More luxury spacing for main marketing sections */
#page-home > section:not(.hero-section) {
  padding-top: 8rem;
  padding-bottom: 8rem;
}

.trust-card,
.admin-stat,
.admin-card,
.bg-white.rounded-2xl,
.bg-white.rounded-3xl {
  box-shadow: 0 1px 2px rgba(15,23,42,.035);
}

/* Softer dashboard/admin polish */
#page-admin,
#page-dashboard {
  background: linear-gradient(180deg, #F8FAFC 0%, #FFFFFF 100%);
}
.admin-card,
.admin-stat {
  border-color: #E9EEF5;
  border-radius: 22px;
}
.admin-card-header {
  padding: 18px 22px;
}
.admin-table th {
  color: #64748B;
  font-weight: 800;
}
.admin-table td {
  padding-top: 15px;
  padding-bottom: 15px;
}

/* Forms feel softer and less template-like */
input, select, textarea {
  font-family: 'Inter', ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
.upload-zone {
  border-radius: 22px;
  background: #F8FAFC;
}

/* Mobile refinements */
@media (max-width: 768px) {
  #page-listings .sticky {
    top: 64px;
  }

  #page-listings .sticky .max-w-full {
    padding: 0.55rem 0.75rem !important;
  }

  .listing-filter-bar {
    gap: 0.55rem !important;
  }

  .listing-tabs {
    width: 100%;
    border-radius: 999px;
  }

  .listing-tabs .listing-tab {
    flex: 1;
    min-height: 2.25rem;
    border-radius: 999px;
    padding: 0.35rem 0.5rem !important;
    font-size: 0.82rem;
    font-weight: 800;
  }

  #filters-row {
    display: flex;
    width: 100%;
    flex: none;
    flex-wrap: nowrap !important;
    gap: 0.45rem !important;
    overflow-x: auto;
    padding: 0.05rem 0 0.25rem;
    scroll-snap-type: x proximity;
    -webkit-overflow-scrolling: touch;
  }

  #filters-row::-webkit-scrollbar {
    display: none;
  }

  #filters-row .filter-chip {
    flex: 0 0 auto;
    min-height: 2.2rem;
    max-width: 11rem;
    scroll-snap-align: start;
    border-radius: 999px;
    padding: 0.42rem 0.72rem;
    font-size: 0.78rem;
    font-weight: 800;
  }

  #filters-row select.filter-chip {
    max-width: 9.8rem;
  }

  .listing-sort {
    width: auto;
    min-height: 2.2rem;
    max-width: 9.8rem;
    border-radius: 999px !important;
    padding: 0.42rem 0.72rem !important;
    font-size: 0.78rem !important;
    font-weight: 800;
  }

  #ekiti-notice {
    padding: 0.42rem 0.8rem !important;
  }

  #ekiti-notice p {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 0.72rem !important;
  }

  #page-listings > .flex {
    display: block;
    height: auto !important;
  }

  #page-listings > .flex > .flex-1 {
    width: 100%;
    max-width: none !important;
    min-width: 0 !important;
    overflow: visible;
    padding: 0.75rem !important;
  }

  #listing-count {
    margin-bottom: 0.6rem !important;
    font-size: 0.78rem;
  }

  nav#navbar { height: 64px; }
  .hero-section {
    min-height: auto;
  }
  .hero-section > .relative.z-10 {
    padding-top: 1.1rem !important;
    padding-bottom: 2.35rem !important;
  }
  .hero-content {
    display: flex;
    flex-direction: column;
  }
  .hero-kicker {
    align-self: flex-start;
    order: 1;
    max-width: 100%;
    margin-bottom: 0.85rem !important;
    white-space: normal;
    line-height: 1.35;
  }
  .mobile-hero-showcase {
    order: 5;
    margin-top: 1.25rem;
    margin-bottom: 0;
    padding: 0.5rem;
    border-radius: 1.35rem;
    box-shadow: 0 18px 45px rgba(15,23,42,.12);
  }
  .mobile-hero-frame {
    min-height: 250px;
    border-radius: 1.05rem;
  }
  .mobile-hero-main-img {
    height: 184px;
  }
  .mobile-hero-price {
    top: 0.65rem;
    right: 0.65rem;
    padding: 0.5rem 0.62rem;
    border-radius: 0.8rem;
  }
  .mobile-hero-price strong {
    font-size: 0.95rem;
  }
  .mobile-hero-mini-card {
    left: 0.55rem;
    right: 4.75rem;
    bottom: 0.55rem;
    gap: 0.55rem;
    padding: 0.52rem;
    border-radius: 0.9rem;
  }
  .mobile-hero-mini-card img {
    width: 56px;
    height: 48px;
    border-radius: 0.62rem;
  }
  .mobile-hero-mini-card p {
    font-size: 0.7rem !important;
  }
  .mobile-hero-mini-card strong {
    font-size: 0.72rem;
  }
  .mobile-hero-trust {
    right: 0.55rem;
    bottom: 0.55rem;
    width: 3.85rem;
    height: 3.85rem;
    border-radius: 0.95rem;
  }
  .mobile-hero-trust strong {
    font-size: 0.78rem;
  }
  .hero-section h1 {
    order: 2;
    font-size: 2.28rem;
    line-height: 1.06;
    letter-spacing: 0;
    margin-bottom: 0.9rem;
  }
  .hero-section p {
    order: 3;
    font-size: 0.98rem;
    line-height: 1.58;
    margin-bottom: 1.1rem;
  }
  .hero-section .search-shell {
    order: 4;
    border-radius: 1.25rem;
    border-color: rgba(209,250,229,.95);
    box-shadow: 0 18px 50px rgba(15,23,42,.11);
  }
  .hero-search {
    padding: 0.85rem !important;
  }
  .hero-search .grid {
    gap: 0.65rem;
  }
  .hero-search .btn-primary {
    width: 100%;
    min-height: 48px;
  }
  .premium-input {
    min-height: 47px;
    border-radius: 0.85rem;
    background: #fff;
  }
  .hero-stats {
    order: 6;
    gap: 0;
    margin-top: 1.2rem !important;
    overflow: hidden;
    border: 1px solid #E5E7EB;
    border-radius: 1.1rem;
    background: rgba(255,255,255,.92);
    box-shadow: 0 10px 28px rgba(15,23,42,.06);
  }
  .hero-stats > div {
    padding: 0.8rem 0.55rem;
    text-align: center;
    border-left: 1px solid #E5E7EB;
  }
  .hero-stats > div:first-child {
    border-left: 0;
  }
  .hero-stats .border-l {
    border-left: 1px solid #E5E7EB !important;
    padding-left: 0.55rem !important;
  }
  .hero-stats p:first-child {
    font-size: 1.15rem !important;
  }
  .hero-stats p:last-child {
    font-size: 0.66rem !important;
    line-height: 1.25 !important;
    margin-bottom: 0;
  }
  .trust-strip {
    padding-top: 0.7rem !important;
    padding-bottom: 0.7rem !important;
    overflow: hidden;
  }
  .trust-strip .max-w-7xl {
    overflow: hidden;
  }
  .trust-strip .flex {
    justify-content: flex-start;
    flex-wrap: nowrap;
    gap: 0.65rem;
    overflow: visible;
    padding-bottom: 0.1rem;
    width: max-content;
  }
  .trust-marquee-track {
    animation: trustMarquee 18s linear infinite;
    will-change: transform;
  }
  .trust-strip:hover .trust-marquee-track {
    animation-play-state: paused;
  }
  .trust-marquee-copy {
    display: flex !important;
  }
  .trust-strip .flex > div {
    flex: 0 0 auto;
    border-radius: 999px;
    background: rgba(255,255,255,.13);
    padding: 0.45rem 0.7rem;
    font-size: 0.78rem;
    white-space: nowrap;
  }
  .prop-card-img { height: 225px; }
  #page-home > section:not(.hero-section) {
    padding-top: 3rem;
    padding-bottom: 3rem;
  }
}
