/* ===========================
   PropConnect Custom Styles
   =========================== */

:root {
  --pc-primary: #2563eb;
  --pc-primary-dark: #1d4ed8;
  --pc-success: #16a34a;
  --pc-border-radius: 12px;
  --pc-shadow: 0 2px 12px rgba(0,0,0,0.08);
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background-color: #f8fafc;
  color: #1e293b;
}

/* ===========================
   Auth Pages
   =========================== */
.auth-page {
  background: linear-gradient(135deg, #eff6ff 0%, #f0fdf4 100%);
}

/* ===========================
   Avatar Circle
   =========================== */
.avatar-circle {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background-color: var(--pc-primary);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 0.95rem;
  flex-shrink: 0;
}

/* ===========================
   Navbar
   =========================== */
.navbar {
  height: 60px;
}
.navbar-brand {
  letter-spacing: -0.5px;
}
.notif-dropdown {
  border-radius: 12px !important;
  box-shadow: 0 8px 32px rgba(0,0,0,0.12) !important;
}

/* ===========================
   Flash Messages
   =========================== */
.flash-container {
  position: fixed;
  top: 70px;
  right: 16px;
  z-index: 1055;
  max-width: 380px;
  width: 100%;
}
.flash-container .alert {
  border-radius: 10px;
  font-size: 0.92rem;
}

/* ===========================
   Property Cards
   =========================== */
.property-card {
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  cursor: pointer;
}
.property-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 28px rgba(0,0,0,0.12) !important;
}
.property-thumb {
  height: 180px;
  object-fit: cover;
}
.property-detail-img {
  height: 420px;
  object-fit: cover;
}
.save-btn {
  width: 36px;
  height: 36px;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50% !important;
}

/* ===========================
   Stat Boxes (Property Detail)
   =========================== */
.stat-box {
  border-radius: 10px;
  background-color: #f1f5f9 !important;
}

/* ===========================
   Preference Wizard
   =========================== */
.pref-step { display: block; }
.pref-step.d-none { display: none !important; }

.pref-option-card {
  cursor: pointer;
  transition: all 0.15s ease;
  border-color: #e2e8f0 !important;
}
.pref-option-card:hover, .pref-option-card.selected {
  border-color: var(--pc-primary) !important;
  background-color: #eff6ff !important;
}
.pref-option-card.selected {
  box-shadow: 0 0 0 2px var(--pc-primary);
}

.pref-tier-card {
  cursor: pointer;
  transition: all 0.15s ease;
}
.pref-tier-card:hover, .pref-tier-card.selected {
  background-color: #eff6ff !important;
  border-color: var(--pc-primary) !important;
}

.step-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #cbd5e1;
  transition: all 0.2s;
}
.step-dot.active {
  background: var(--pc-primary);
  width: 28px;
  border-radius: 5px;
}

/* Role Card on Signup */
.role-card {
  cursor: pointer;
  transition: all 0.15s;
  border-color: #e2e8f0 !important;
}
.role-card:hover, .role-card.role-selected {
  border-color: var(--pc-primary) !important;
  background-color: #eff6ff;
}
.role-card.role-selected {
  box-shadow: 0 0 0 2px var(--pc-primary);
}
.cursor-pointer { cursor: pointer; }

/* ===========================
   Chat
   =========================== */
.chat-layout {
  overflow: hidden;
}
.chat-container {
  overflow: hidden;
}
.chat-sidebar {
  overflow: hidden;
  border-right: 1px solid #e2e8f0;
}
.chat-sidebar .overflow-auto { overflow-y: auto; }
.conv-item:hover { background-color: #f1f5f9; }

.chat-bubble {
  max-width: 72%;
  padding: 10px 14px;
  border-radius: 18px;
  word-break: break-word;
  line-height: 1.5;
}
.chat-bubble-sent {
  background-color: var(--pc-primary);
  color: white;
  border-bottom-right-radius: 4px;
}
.chat-bubble-recv {
  background-color: white;
  color: #1e293b;
  border: 1px solid #e2e8f0;
  border-bottom-left-radius: 4px;
}
.chat-text { font-size: 0.93rem; }

/* Typing dots animation */
.typing-dots span {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #94a3b8;
  margin: 0 1px;
  animation: blink 1.4s infinite;
}
.typing-dots span:nth-child(2) { animation-delay: 0.2s; }
.typing-dots span:nth-child(3) { animation-delay: 0.4s; }
@keyframes blink {
  0%, 80%, 100% { opacity: 0; }
  40% { opacity: 1; }
}

/* ===========================
   Deal Dashboard Timeline
   =========================== */
.timeline-track {
  position: absolute;
  top: 20px;
  left: 10%;
  right: 10%;
  height: 2px;
  background: #e2e8f0;
  z-index: 0;
}
.timeline-steps { position: relative; }

/* ===========================
   Bedroom Selector Buttons
   =========================== */
.bedroom-btn {
  min-width: 64px;
  border-radius: 8px !important;
}

/* ===========================
   Notifications
   =========================== */
.notif-dropdown .notif-item {
  padding: 10px 14px;
  border-bottom: 1px solid #f1f5f9;
  cursor: pointer;
  transition: background 0.1s;
}
.notif-dropdown .notif-item:hover { background: #f8fafc; }
.notif-dropdown .notif-item.unread { background: #eff6ff; }

/* ===========================
   Footer
   =========================== */
.footer { border-top: 1px solid #1e293b; }

/* ===========================
   Utility
   =========================== */
.rounded-3 { border-radius: var(--pc-border-radius) !important; }
.shadow-sm { box-shadow: var(--pc-shadow) !important; }

/* Scrollbar styling */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: #f1f5f9; }
::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: #94a3b8; }

/* ===========================
   Responsive
   =========================== */
@media (max-width: 767px) {
  .property-detail-img { height: 220px; }
  .chat-sidebar { width: 100% !important; }
  .chat-container { flex-direction: column; }
  .flash-container { left: 8px; right: 8px; max-width: none; }
  .property-thumb { height: 160px; }
}

/* ===========================
   Banner Carousel
   =========================== */
#homeBannerCarousel {
  /* Sit flush against the navbar — no gap */
  margin-top: 0;
}
#homeBannerCarousel .carousel-item img {
  display: block;
}
#homeBannerCarousel .carousel-caption h3,
#homeBannerCarousel .carousel-caption p {
  color: #fff;
}
@media (max-width: 767px) {
  #homeBannerCarousel .carousel-item img { height: 220px !important; }
  #homeBannerCarousel .carousel-caption { left: 5% !important; right: 5% !important; max-width: 90% !important; bottom: 16px !important; }
  #homeBannerCarousel .carousel-caption h3 { font-size: 1rem; }
}
