/* Properties list — hero slideshow, cards, performance-tuned */

body.properties-page {
  background: #f1f5f9 !important;
}

/* Hero slideshow */
.props-hero {
  position: relative;
  overflow: hidden;
  border-radius: 1.25rem;
  border: 1px solid #e2e8f0;
  min-height: 280px;
}

.props-hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.props-hero__slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 1.4s ease-in-out;
  transform: scale(1.04);
}

.props-hero__slide.is-active {
  opacity: 1;
  transform: scale(1);
}

.props-hero__overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    135deg,
    rgba(15, 23, 42, 0.78) 0%,
    rgba(15, 23, 42, 0.55) 45%,
    rgba(6, 78, 59, 0.65) 100%
  );
}

.props-hero__content {
  position: relative;
  z-index: 2;
}

#listing-root {
  border: 1px solid rgba(148, 163, 184, 0.3) !important;
  box-shadow: 0 20px 48px rgba(2, 6, 23, 0.14) !important;
}

body.props-sidebar-collapsed #listing-root .max-w-4xl {
  max-width: 72rem !important;
}

.property-neo-panel {
  border-radius: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.96) !important;
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.12);
}

.property-neo-panel input,
.property-neo-panel select,
.property-neo-panel option {
  background: #fff !important;
  color: #0f172a !important;
  border-color: #cbd5e1 !important;
}

.property-neo-panel input::placeholder {
  color: #64748b !important;
}

.property-neo-panel summary {
  color: #334155 !important;
  font-weight: 600;
}

.property-card {
  border-radius: 0.35rem;
  border: 1px solid #e5e7eb;
  background: #fff;
  box-shadow: 0 1px 4px rgba(15, 23, 42, 0.06);
  transition: box-shadow 0.2s ease, border-color 0.2s ease;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.property-card:hover {
  transform: none;
  border-color: #d1d5db;
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.1);
}

.property-card-media {
  border-bottom: 1px solid #e5e7eb;
  position: relative;
  z-index: 5;
  overflow: hidden;
  background: #f1f5f9;
}

.property-card-media img {
  transition: transform 0.4s ease;
}

.property-card:hover .property-card-media img {
  transform: scale(1.04);
}

.property-card-body {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  padding: 0.85rem 0.9rem 0.85rem;
  flex: 1;
}

.property-card-main {
  display: block;
  color: inherit;
}

.property-card-price {
  margin: 0;
  font-size: 1.2rem;
  font-weight: 800;
  color: #2E9B3A !important;
  line-height: 1.2;
}

.property-card-loc {
  margin: 0.2rem 0 0;
  display: flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.8rem;
  color: #4b5563 !important;
  font-weight: 500;
}

.property-card-loc svg {
  width: 0.85rem;
  height: 0.85rem;
  color: #2E9B3A;
  flex-shrink: 0;
}

.property-card-type {
  margin: 0.15rem 0 0;
  font-size: 0.78rem;
  font-weight: 600;
  color: #2563eb !important;
}

.property-card-specs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: 0.35rem;
  color: #6b7280;
  font-size: 0.78rem;
  font-weight: 600;
}

.property-card-specs span {
  display: inline-flex;
  align-items: center;
  gap: 0.28rem;
}

.property-card-specs svg {
  width: 0.95rem;
  height: 0.95rem;
  color: #9ca3af;
}

.property-card-title {
  margin: 0.35rem 0 0 !important;
  font-size: 0.9rem !important;
  font-weight: 700 !important;
  color: #111827 !important;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.property-card-ai {
  margin: 0.2rem 0 0;
  font-size: 0.68rem;
  color: #9ca3af;
}

.property-card-agency-row {
  margin-top: auto;
  min-height: 2.1rem;
}

.property-card-agency {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  max-width: 100%;
  text-decoration: none;
  color: inherit;
}

.property-card-agency-logo {
  width: 2.15rem;
  height: 2.15rem;
  border-radius: 0.25rem;
  border: 1px solid #e5e7eb;
  background: #fff;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.property-card-agency-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.property-card-agency-fb {
  font-size: 0.62rem;
  font-weight: 800;
  color: #2E9B3A;
  letter-spacing: 0.02em;
}

.property-card-agency-name {
  font-size: 0.72rem;
  font-weight: 700;
  color: #374151;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.property-card-actions {
  display: flex;
  gap: 0.4rem;
  margin-top: 0.15rem;
}

.property-loc-line,
.property-meta-chip {
  color: #475569 !important;
}

/* Thin Zameen-style CTAs */
.property-action-btn {
  flex: 1 1 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.3rem;
  min-height: 1.85rem !important;
  height: 1.85rem;
  padding: 0 0.45rem !important;
  font-size: 0.68rem !important;
  font-weight: 700;
  border-radius: 0.2rem !important;
  text-decoration: none;
  line-height: 1;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.property-action-btn svg {
  width: 0.85rem;
  height: 0.85rem;
  flex-shrink: 0;
}

.property-action-wa {
  background: #fff !important;
  color: #25d366 !important;
  border: 1px solid #25d366 !important;
}

.property-action-wa:hover {
  background: #f0fdf4 !important;
}

.property-action-call {
  background: #2E9B3A !important;
  color: #fff !important;
  border: 1px solid #2E9B3A !important;
}

.property-action-call:hover {
  background: #2a9145 !important;
}

.property-action-detail {
  background: #fff !important;
  color: #2E9B3A !important;
  border: 1px solid #2E9B3A !important;
}

.property-action-detail:hover {
  background: #e8f7ee !important;
}

.hero-subtitle {
  display: inline-block;
  padding: 0.35rem 0.75rem;
  border-radius: 0.5rem;
  background: rgba(15, 23, 42, 0.72);
  color: #f8fafc !important;
  font-weight: 600;
}

/* Browse / explore cards */
.props-section-card {
  border-radius: 0.95rem !important;
  border: 1px solid #e2e8f0 !important;
  background: #fff !important;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.05);
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.props-section-card:hover {
  transform: translateY(-2px);
  border-color: rgba(34, 197, 94, 0.3) !important;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
}

.props-chip {
  border: 1px solid #e2e8f0;
  background: #f8fafc;
  color: #1e293b !important;
  font-weight: 600;
}

.props-chip:hover {
  background: #ecfdf5;
  border-color: #86efac;
  color: #065f46 !important;
}

#properties-ask-ai {
  background: linear-gradient(110deg, #22c55e, #14b8a6, #0ea5e9) !important;
  box-shadow: 0 8px 24px rgba(34, 197, 94, 0.22);
}

.property-card.pc-a0,
.property-card.pc-a1,
.property-card.pc-a2,
.property-card.pc-a3,
.property-card.pc-a4,
.property-card.pc-a5 {
  border-left: 1px solid #e5e7eb;
}

.property-card-engage {
  background: rgba(15, 23, 42, 0.88) !important;
  border: 1px solid rgba(255, 255, 255, 0.2);
  z-index: 20;
  max-width: calc(100% - 0.75rem);
}

.property-engage-label {
  font-weight: 500;
  letter-spacing: 0.01em;
}

.property-engage-sep {
  font-size: 0.85em;
  line-height: 1;
}

.property-card-placeholder {
  pointer-events: none;
}

.recent-search-chip {
  border: 1px solid #99f6e4;
  background: #fff;
  color: #0f172a;
  font-weight: 600;
}

.community-tile {
  border-radius: 1rem;
  border: 1px solid #e2e8f0;
  background: #fff;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.05);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

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

/* —— Titanium Agencies (Zameen horizontal cards) —— */
.titanium-carousel-wrap {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.titanium-carousel-btn {
  flex-shrink: 0;
  width: 2.15rem;
  height: 2.15rem;
  border-radius: 9999px;
  border: 1px solid #2E9B3A;
  background: #fff;
  color: #2E9B3A;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 2;
  transition: background 0.15s ease, color 0.15s ease;
}

.titanium-carousel-btn:hover {
  background: #2E9B3A;
  color: #fff;
}

.titanium-carousel-btn svg {
  width: 1rem;
  height: 1rem;
}

.titanium-carousel-track {
  display: flex;
  gap: 0.75rem;
  overflow-x: auto;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  padding: 0.25rem 0.15rem 0.55rem;
  flex: 1;
  min-width: 0;
}

.agency-spotlight-card {
  flex: 0 0 auto;
  width: min(16.5rem, 78vw);
  scroll-snap-align: start;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 0.7rem;
  padding: 0.7rem 0.85rem;
  border-radius: 0.25rem;
  border: 1px solid #e5e7eb;
  background: #fff;
  box-shadow: none;
  text-align: start;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.agency-spotlight-card:hover {
  transform: none;
  border-color: #2E9B3A;
  box-shadow: 0 4px 14px rgba(51, 168, 82, 0.12);
}

.agency-spotlight-logo {
  width: 3.25rem;
  height: 3.25rem;
  border-radius: 0.2rem;
  border: 1px solid #e5e7eb;
  background: #fafafa;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.agency-spotlight-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.agency-spotlight-fallback {
  font-size: 0.85rem;
  font-weight: 800;
  color: #2E9B3A;
  letter-spacing: 0.04em;
}

.agency-spotlight-body {
  min-width: 0;
  flex: 1;
}

.agency-spotlight-name {
  color: #111827;
  font-weight: 700;
  font-size: 0.82rem;
  line-height: 1.25;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.agency-spotlight-meta {
  margin-top: 0.25rem;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.2rem;
  font-size: 0.7rem;
  color: #6b7280;
  font-weight: 600;
}

.agency-spotlight-pin {
  width: 0.75rem;
  height: 0.75rem;
  color: #2E9B3A;
  flex-shrink: 0;
}

.agency-spotlight-dot {
  opacity: 0.5;
}

.agency-spotlight-count {
  color: #2E9B3A;
  font-weight: 700;
}

/* Keep CTAs thin even on touch (override global 44px floor) */
@media (pointer: coarse) {
  .property-action-btn,
  .prop-cta {
    min-height: 2.15rem !important;
    min-width: 0 !important;
    height: 2.15rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .props-hero__slide,
  .property-card,
  .property-card-media img {
    transition: none !important;
  }
}
