/* SRIIJAN - 99acres Marketplace Extended Styling */

/* Active Link in Nav */
.desktop-menu a.active, .mobile-menu a.active {
  color: var(--gold);
  border-bottom: 2px solid var(--gold);
}

/* User Actions & Shortlist counter in Nav */
.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}
.shortlist-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 800;
  color: var(--navy);
  padding: 8px 12px;
  border: 1px solid var(--line);
  background: var(--soft);
  position: relative;
  transition: all .2s;
}
.shortlist-btn:hover {
  border-color: var(--gold);
  background: #fff;
}
.shortlist-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  background: var(--gold);
  color: var(--navy);
  font-size: 10px;
  font-weight: 900;
  border-radius: 50%;
}

/* Search Autocomplete */
.search-input-wrap {
  position: relative;
  width: 100%;
}
.autocomplete-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: 0 10px 25px rgba(0,0,0,0.15);
  z-index: 100;
  max-height: 250px;
  overflow-y: auto;
  display: none;
}
.autocomplete-dropdown.show {
  display: block;
}
.autocomplete-item {
  padding: 10px 14px;
  font-size: 11px;
  font-weight: 700;
  color: var(--ink);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--soft);
}
.autocomplete-item:hover {
  background: var(--cream);
  color: var(--gold);
}
.autocomplete-item small {
  color: var(--muted);
  font-size: 9px;
  font-weight: 500;
}

/* Marketplace Filter Bar (99acres-style multi-facet) */
.marketplace-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 30px;
  margin-top: 30px;
}
.filter-sidebar {
  background: #fff;
  border: 1px solid var(--line);
  padding: 22px;
  position: sticky;
  top: 100px;
  height: fit-content;
}
.filter-sidebar h3 {
  font: 600 20px Georgia, serif;
  margin: 0 0 18px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--line);
  padding-bottom: 10px;
}
.filter-reset {
  font-size: 10px;
  font-weight: 800;
  color: var(--gold);
  cursor: pointer;
  background: none;
  border: none;
  text-decoration: underline;
}
.filter-group {
  margin-bottom: 20px;
  border-bottom: 1px solid var(--soft);
  padding-bottom: 16px;
}
.filter-group:last-child {
  border-bottom: none;
  margin-bottom: 0;
}
.filter-group h4 {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: var(--navy);
  margin: 0 0 10px 0;
}
.pill-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.pill-btn {
  padding: 6px 12px;
  font-size: 11px;
  font-weight: 700;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--muted);
  cursor: pointer;
  transition: all .15s;
}
.pill-btn:hover {
  border-color: var(--gold);
  color: var(--ink);
}
.pill-btn.active {
  background: var(--navy);
  border-color: var(--navy);
  color: #fff;
}
.range-slider-wrap {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.range-values {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  font-weight: 800;
  color: var(--gold);
}
.range-slider {
  width: 100%;
  accent-color: var(--gold);
  cursor: pointer;
}
.checkbox-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.checkbox-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  font-weight: 600;
  color: var(--ink);
  cursor: pointer;
}
.checkbox-label input {
  accent-color: var(--gold);
  width: 14px;
  height: 14px;
}

/* Marketplace Results Header & View Toggles */
.results-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 15px;
  padding: 16px 20px;
  background: #fff;
  border: 1px solid var(--line);
  margin-bottom: 20px;
}
.results-count {
  font-size: 13px;
  font-weight: 700;
  color: var(--ink);
}
.results-count strong {
  font-weight: 900;
  color: var(--navy);
}
.results-controls {
  display: flex;
  align-items: center;
  gap: 16px;
}
.sort-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  font-weight: 700;
  color: var(--muted);
}
.sort-select {
  height: 36px;
  padding: 0 10px;
  border: 1px solid var(--line);
  font-size: 11px;
  font-weight: 700;
  font-family: inherit;
  color: var(--ink);
  background: #fff;
  cursor: pointer;
}
.view-toggles {
  display: flex;
  border: 1px solid var(--line);
}
.view-btn {
  padding: 8px 12px;
  background: #fff;
  border: none;
  cursor: pointer;
  font-size: 13px;
  color: var(--muted);
  transition: all .15s;
}
.view-btn:hover {
  color: var(--navy);
}
.view-btn.active {
  background: var(--navy);
  color: #fff;
}

/* Active Filter Chips */
.active-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}
.filter-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  background: var(--cream);
  border: 1px solid var(--gold2);
  font-size: 10px;
  font-weight: 700;
  color: var(--ink);
}
.filter-chip button {
  background: none;
  border: none;
  font-weight: 900;
  cursor: pointer;
  color: var(--navy);
  padding: 0;
  line-height: 1;
}

/* List View for Property Cards */
.property-list-view {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.property-list-view .property-card {
  display: grid;
  grid-template-columns: 320px 1fr;
}
.property-list-view .property-media {
  height: 100%;
  min-height: 220px;
}
.property-list-view .property-card-body {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 22px;
}

/* Map View Simulation */
.map-view-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.map-view-interactive {
  height: 650px;
  position: sticky;
  top: 100px;
  background: #e8ecef;
  border: 1px solid var(--line);
  position: relative;
  overflow: hidden;
  border-radius: 4px;
}
.map-mock-grid {
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at 50% 50%, #f0f4f8 10%, #e2e8f0 90%);
  position: relative;
}
.map-pin {
  position: absolute;
  padding: 6px 10px;
  background: var(--navy);
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  border: 2px solid var(--gold);
  border-radius: 20px;
  cursor: pointer;
  transform: translate(-50%, -50%);
  box-shadow: 0 4px 12px rgba(0,0,0,0.25);
  transition: all .2s;
  z-index: 10;
  white-space: nowrap;
}
.map-pin:hover, .map-pin.active {
  background: var(--gold);
  color: var(--navy);
  transform: translate(-50%, -50%) scale(1.15);
  z-index: 20;
}

/* Property Detail Page Enhancements */
.property-gallery-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 12px;
  margin-bottom: 30px;
}
.gallery-main {
  height: 480px;
  background-size: cover;
  background-position: center;
  position: relative;
  cursor: pointer;
}
.gallery-thumbs {
  display: grid;
  grid-template-rows: 1fr 1fr;
  gap: 12px;
}
.gallery-thumb {
  height: 234px;
  background-size: cover;
  background-position: center;
  position: relative;
  cursor: pointer;
}
.gallery-view-all {
  position: absolute;
  bottom: 14px;
  right: 14px;
  background: rgba(7, 21, 43, 0.85);
  color: #fff;
  padding: 8px 14px;
  font-size: 10px;
  font-weight: 800;
  border: 1px solid var(--gold);
}

.rera-badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #eef7f2;
  color: #176b50;
  border: 1px solid #c2e5d3;
  padding: 6px 12px;
  font-size: 11px;
  font-weight: 800;
  margin-top: 10px;
}

.property-tabs {
  display: flex;
  border-bottom: 2px solid var(--line);
  margin-bottom: 30px;
  gap: 25px;
  overflow-x: auto;
}
.property-tab-btn {
  padding: 12px 0;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--muted);
  background: none;
  border: none;
  border-bottom: 3px solid transparent;
  cursor: pointer;
  white-space: nowrap;
}
.property-tab-btn.active {
  color: var(--gold);
  border-bottom-color: var(--gold);
}

.amenity-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-top: 20px;
}
.amenity-card {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  background: var(--soft);
  border: 1px solid var(--line);
  font-size: 11px;
  font-weight: 700;
  color: var(--ink);
}
.amenity-card span.icon {
  color: var(--gold);
  font-size: 16px;
}

/* EMI Calculator Widget (99acres-grade) */
.emi-widget {
  background: #fff;
  border: 1px solid var(--line);
  padding: 28px;
  margin-top: 40px;
  box-shadow: 0 8px 30px rgba(0,0,0,0.04);
}
.emi-grid {
  display: grid;
  grid-template-columns: 1.2fr .8fr;
  gap: 30px;
  align-items: center;
}
.emi-slider-group {
  margin-bottom: 20px;
}
.emi-slider-group label {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  font-weight: 800;
  color: var(--navy);
  margin-bottom: 6px;
}
.emi-slider-group label span.val {
  color: var(--gold);
  font-size: 13px;
  font-weight: 900;
}
.emi-result-box {
  background: var(--cream);
  border: 1px solid var(--line);
  padding: 24px;
  text-align: center;
}
.emi-monthly-amt {
  font: 700 36px Georgia, serif;
  color: var(--navy);
  margin: 10px 0;
}
.emi-breakdown {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  border-top: 1px solid var(--line);
  margin-top: 15px;
  padding-top: 15px;
  text-align: left;
}
.emi-breakdown div span {
  display: block;
  font-size: 9px;
  color: var(--muted);
  text-transform: uppercase;
}
.emi-breakdown div strong {
  font-size: 13px;
  color: var(--ink);
}

/* Nearby Landmarks Table */
.landmarks-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 15px;
}
.landmarks-table tr {
  border-bottom: 1px solid var(--line);
}
.landmarks-table td {
  padding: 12px 10px;
  font-size: 11px;
}
.landmarks-table td:first-child {
  font-weight: 800;
  color: var(--navy);
}
.landmarks-table td:nth-child(2) {
  color: var(--muted);
}
.landmarks-table td:last-child {
  text-align: right;
  font-weight: 700;
  color: var(--gold);
}

/* Seller Profile Card & Contact Modal */
.seller-card {
  border: 1px solid var(--line);
  padding: 22px;
  background: #fff;
  margin-top: 20px;
}
.seller-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 16px;
}
.seller-avatar {
  width: 50px;
  height: 50px;
  background: var(--navy);
  color: var(--gold);
  font-size: 20px;
  font-weight: 900;
  display: grid;
  place-items: center;
  border-radius: 50%;
}
.seller-meta strong {
  display: block;
  font-size: 14px;
  color: var(--navy);
}
.seller-meta span {
  font-size: 10px;
  color: var(--muted);
}
.seller-phone-reveal {
  background: var(--soft);
  border: 1px dashed var(--gold);
  padding: 12px;
  text-align: center;
  font-size: 12px;
  font-weight: 800;
  color: var(--navy);
  cursor: pointer;
  margin: 14px 0;
  transition: all .2s;
}
.seller-phone-reveal:hover {
  background: var(--cream);
}

/* Modal Popup Styles */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(7, 21, 43, 0.75);
  backdrop-filter: blur(5px);
  z-index: 1000;
  display: none;
  place-items: center;
  padding: 20px;
}
.modal-overlay.open {
  display: grid;
}
.modal-dialog {
  background: #fff;
  width: min(540px, 100%);
  max-height: 90vh;
  overflow-y: auto;
  border: 1px solid var(--line);
  box-shadow: 0 25px 60px rgba(0,0,0,0.3);
  position: relative;
}
.modal-header {
  padding: 20px 24px;
  background: var(--navy);
  color: #fff;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.modal-header h3 {
  font: 600 22px Georgia, serif;
  margin: 0;
  color: #fff;
}
.modal-close {
  background: none;
  border: none;
  color: #fff;
  font-size: 24px;
  cursor: pointer;
}
.modal-body {
  padding: 24px;
}

/* Post Property Multi-Step Wizard */
.wizard-progress {
  display: flex;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
  padding-bottom: 20px;
  margin-bottom: 30px;
}
.wizard-step-node {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  font-weight: 800;
  color: var(--muted);
}
.wizard-step-node.active {
  color: var(--gold);
}
.wizard-step-node.completed {
  color: var(--green);
}
.step-circle {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 1px solid var(--line);
  display: grid;
  place-items: center;
  font-size: 11px;
}
.wizard-step-node.active .step-circle {
  border-color: var(--gold);
  background: var(--gold);
  color: var(--navy);
}
.wizard-step-node.completed .step-circle {
  background: var(--green);
  border-color: var(--green);
  color: #fff;
}

.wizard-panel {
  display: none;
}
.wizard-panel.active {
  display: block;
}
.wizard-card {
  background: #fff;
  border: 1px solid var(--line);
  padding: 35px;
  box-shadow: var(--shadow);
}
.wizard-nav {
  display: flex;
  justify-content: space-between;
  margin-top: 30px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

/* Image Upload Preview Box */
.image-dropzone {
  border: 2px dashed #cfd6df;
  padding: 30px;
  text-align: center;
  background: var(--soft);
  cursor: pointer;
  transition: all .2s;
}
.image-dropzone:hover {
  border-color: var(--gold);
  background: var(--cream);
}
.image-preview-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-top: 15px;
}
.preview-thumb {
  height: 90px;
  background-size: cover;
  background-position: center;
  border: 1px solid var(--line);
  position: relative;
}
.preview-remove {
  position: absolute;
  top: 4px;
  right: 4px;
  background: rgba(0,0,0,0.6);
  color: #fff;
  border: none;
  border-radius: 50%;
  width: 18px;
  height: 18px;
  font-size: 10px;
  cursor: pointer;
}

/* Side-by-Side Property Compare Modal */
.compare-tray {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: #fff;
  border-top: 2px solid var(--gold);
  box-shadow: 0 -10px 30px rgba(0,0,0,0.15);
  padding: 12px 24px;
  z-index: 90;
  display: none;
  align-items: center;
  justify-content: space-between;
}
.compare-tray.show {
  display: flex;
}
.compare-slots {
  display: flex;
  gap: 15px;
  align-items: center;
}
.compare-slot {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--soft);
  border: 1px solid var(--line);
  padding: 6px 12px;
  font-size: 11px;
  font-weight: 700;
}
.compare-table {
  width: 100%;
  border-collapse: collapse;
}
.compare-table th, .compare-table td {
  padding: 12px 14px;
  border: 1px solid var(--line);
  font-size: 11px;
  text-align: left;
}
.compare-table th {
  background: var(--soft);
  font-weight: 900;
  color: var(--navy);
  width: 160px;
}

/* Toast Notifications */
.toast-container {
  position: fixed;
  bottom: 30px;
  right: 30px;
  z-index: 2000;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.toast {
  background: var(--navy);
  color: #fff;
  border-left: 4px solid var(--gold);
  padding: 14px 20px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.25);
  font-size: 12px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 10px;
  animation: slideIn .25s ease-out;
}
@keyframes slideIn {
  from { transform: translateX(100%); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

/* Admin / CRM Portal */
.admin-stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-bottom: 30px;
}
.admin-card {
  background: #fff;
  border: 1px solid var(--line);
  padding: 22px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.03);
}
.admin-card small {
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--muted);
}
.admin-card strong {
  display: block;
  font: 700 32px Georgia, serif;
  color: var(--navy);
  margin-top: 8px;
}
.admin-table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  border: 1px solid var(--line);
}
.admin-table th {
  background: var(--navy);
  color: #fff;
  padding: 12px 14px;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: .5px;
  text-align: left;
}
.admin-table td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
  font-size: 11px;
}
.badge-status {
  padding: 4px 8px;
  font-size: 9px;
  font-weight: 900;
  text-transform: uppercase;
  border-radius: 2px;
}
.badge-new { background: #e0f2fe; color: #0369a1; }
.badge-in-progress { background: #fef3c7; color: #b45309; }
.badge-contacted { background: #dcfce7; color: #15803d; }
.badge-closed { background: #f1f5f9; color: #64748b; }

/* Responsive adjustments */
@media (max-width: 900px) {
  .marketplace-layout {
    grid-template-columns: 1fr;
  }
  .filter-sidebar {
    position: static;
  }
  .amenity-grid {
    grid-template-columns: 1fr 1fr;
  }
  .emi-grid {
    grid-template-columns: 1fr;
  }
  .property-gallery-grid {
    grid-template-columns: 1fr;
  }
  .map-view-container {
    grid-template-columns: 1fr;
  }
  .admin-stats-grid {
    grid-template-columns: 1fr 1fr;
  }
}


/* ===================================================
   SRIIJAN AI CHATBOT WIDGET STYLING
   =================================================== */

#sriijan-chat-launcher-wrap {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 99999;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  font-family: 'Manrope', -apple-system, sans-serif;
}

/* Teaser Bubble */
.chat-teaser {
  position: relative;
  background: #ffffff;
  border: 1px solid var(--gold);
  box-shadow: 0 10px 30px rgba(7, 21, 43, 0.2);
  padding: 12px 16px;
  margin-bottom: 12px;
  max-width: 270px;
  border-radius: 8px;
  display: none;
  animation: teaserSlideUp 0.35s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
.chat-teaser.visible {
  display: block;
}
.chat-teaser::after {
  content: '';
  position: absolute;
  bottom: -6px;
  right: 24px;
  width: 12px;
  height: 12px;
  background: #ffffff;
  border-right: 1px solid var(--gold);
  border-bottom: 1px solid var(--gold);
  transform: rotate(45deg);
}
.teaser-text strong {
  display: block;
  font-size: 11px;
  color: var(--navy);
  margin-bottom: 2px;
  line-height: 1.3;
}
.teaser-text span {
  font-size: 10px;
  color: var(--muted);
  display: block;
}
#sriijan-teaser-close {
  position: absolute;
  top: 6px;
  right: 8px;
  background: none;
  border: none;
  font-size: 11px;
  color: #94a3b8;
  cursor: pointer;
  padding: 2px;
}
#sriijan-teaser-close:hover {
  color: var(--navy);
}

@keyframes teaserSlideUp {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Floating Launcher Button */
#sriijan-chat-launcher {
  display: flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, #07152b 0%, #0d2547 100%);
  border: 1.5px solid var(--gold);
  color: #ffffff;
  padding: 10px 18px 10px 14px;
  border-radius: 30px;
  cursor: pointer;
  box-shadow: 0 8px 25px rgba(7, 21, 43, 0.35);
  position: relative;
  transition: all 0.25s ease;
}
#sriijan-chat-launcher:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(185, 151, 74, 0.4);
  border-color: #dfbe73;
}
.launcher-icon {
  display: flex;
  align-items: center;
  justify-content: center;
}
.launcher-badge {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.5px;
  color: #ffffff;
  text-transform: uppercase;
}
.launcher-pulse {
  position: absolute;
  top: 3px;
  right: 3px;
  width: 9px;
  height: 9px;
  background: #10b981;
  border-radius: 50%;
  border: 1.5px solid #07152b;
}

/* Chat Widget Container */
#sriijan-chat-widget {
  position: fixed;
  bottom: 90px;
  right: 24px;
  width: 390px;
  max-width: calc(100vw - 32px);
  height: 600px;
  max-height: calc(100vh - 120px);
  background: #ffffff;
  border-radius: 14px;
  border: 1px solid rgba(185, 151, 74, 0.35);
  box-shadow: 0 20px 60px rgba(7, 21, 43, 0.35);
  display: flex;
  flex-direction: column;
  z-index: 99998;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
  transform: translateY(20px) scale(0.96);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  font-family: 'Manrope', -apple-system, sans-serif;
}
#sriijan-chat-widget.open {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0) scale(1);
}

/* Header */
.chat-header {
  background: linear-gradient(135deg, #07152b 0%, #0d2547 100%);
  color: #ffffff;
  padding: 14px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 2px solid var(--gold);
}
.chat-header-info {
  display: flex;
  align-items: center;
  gap: 10px;
}
.chat-avatar {
  width: 34px;
  height: 34px;
  background: #ffffff;
  border-radius: 50%;
  padding: 3px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1.5px solid var(--gold);
}
.chat-avatar img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}
.chat-title {
  font-size: 13px;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: 0.3px;
}
.chat-subtitle {
  font-size: 9px;
  color: #cbd5e1;
  display: flex;
  align-items: center;
  gap: 5px;
}
.status-dot {
  width: 6px;
  height: 6px;
  background: #10b981;
  border-radius: 50%;
  display: inline-block;
}
.chat-header-actions {
  display: flex;
  align-items: center;
  gap: 6px;
}
.chat-header-actions button {
  background: rgba(255, 255, 255, 0.1);
  border: none;
  color: #ffffff;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  transition: background 0.2s;
}
.chat-header-actions button:hover {
  background: rgba(255, 255, 255, 0.25);
}

/* Quick Prompt Chips */
.chat-chips-container {
  background: #f8fafc;
  padding: 8px 12px;
  border-bottom: 1px solid #e2e8f0;
  overflow-x: auto;
  white-space: nowrap;
}
.chat-chips-container::-webkit-scrollbar {
  height: 3px;
}
.chat-chips-container::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 3px;
}
.chat-chips-scroll {
  display: inline-flex;
  gap: 6px;
}
.chat-chip {
  background: #ffffff;
  border: 1px solid #cbd5e1;
  color: var(--navy);
  padding: 5px 10px;
  font-size: 10px;
  font-weight: 700;
  border-radius: 14px;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s ease;
}
.chat-chip:hover {
  background: var(--navy);
  color: #ffffff;
  border-color: var(--navy);
}

/* Messages Body */
.chat-messages {
  flex: 1;
  padding: 16px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 14px;
  background: #fdfdfd;
}
.chat-messages::-webkit-scrollbar {
  width: 5px;
}
.chat-messages::-webkit-scrollbar-thumb {
  background: #e2e8f0;
  border-radius: 4px;
}

.chat-msg-row {
  display: flex;
  gap: 8px;
  max-width: 100%;
}
.msg-user {
  justify-content: flex-end;
}
.msg-bot {
  justify-content: flex-start;
}
.msg-avatar {
  width: 28px;
  height: 28px;
  background: var(--gold);
  color: var(--navy);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  flex-shrink: 0;
  margin-top: 2px;
}
.msg-bubble-wrap {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-width: 86%;
}
.msg-bubble {
  padding: 11px 14px;
  border-radius: 12px;
  font-size: 11.5px;
  line-height: 1.5;
  word-break: break-word;
}
.msg-user .msg-bubble {
  background: var(--navy);
  color: #ffffff;
  border-bottom-right-radius: 2px;
}
.msg-bot .msg-bubble {
  background: #f1f5f9;
  color: #1e293b;
  border-bottom-left-radius: 2px;
  border: 1px solid #e2e8f0;
}
.msg-bot .msg-bubble strong {
  color: var(--navy);
  font-weight: 800;
}
.msg-bot .msg-bubble a {
  color: var(--gold);
  font-weight: 700;
  text-decoration: underline;
}
.chat-bullet-list {
  margin: 6px 0;
  padding-left: 18px;
}
.chat-bullet-list li {
  margin-bottom: 4px;
  font-size: 11px;
}
.chat-spacer {
  height: 6px;
}

/* Typing Indicator */
.chat-typing {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 16px 12px;
}
.typing-avatar {
  width: 22px;
  height: 22px;
  background: #cbd5e1;
  color: var(--navy);
  font-size: 9px;
  font-weight: 900;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.typing-bubble {
  background: #f1f5f9;
  padding: 8px 12px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  gap: 4px;
}
.typing-dot {
  width: 5px;
  height: 5px;
  background: #94a3b8;
  border-radius: 50%;
  animation: typingPulse 1.2s infinite ease-in-out;
}
.typing-dot:nth-child(2) { animation-delay: 0.2s; }
.typing-dot:nth-child(3) { animation-delay: 0.4s; }

@keyframes typingPulse {
  0%, 80%, 100% { transform: scale(0.6); opacity: 0.4; }
  40% { transform: scale(1); opacity: 1; }
}

/* Lead Captured Confirmation Card */
.chat-lead-badge {
  background: #ecfdf5;
  border: 1px solid #10b981;
  padding: 10px 12px;
  border-radius: 6px;
  animation: fadeIn 0.3s ease;
}
.lead-badge-header {
  font-size: 11px;
  font-weight: 800;
  color: #065f46;
  margin-bottom: 2px;
}
.lead-badge-body {
  font-size: 10px;
  color: #047857;
}

/* Property Cards Carousel in Chat */
.chat-properties-carousel {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 4px;
}
.chat-property-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
  display: flex;
  flex-direction: column;
  transition: transform 0.2s, box-shadow 0.2s;
}
.chat-property-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 14px rgba(0,0,0,0.1);
  border-color: var(--gold);
}
.card-thumb {
  position: relative;
  height: 100px;
  width: 100%;
}
.card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.card-status-badge {
  position: absolute;
  top: 6px;
  left: 6px;
  background: rgba(7, 21, 43, 0.85);
  color: #ffffff;
  font-size: 8px;
  font-weight: 800;
  padding: 2px 6px;
  border-radius: 3px;
  text-transform: uppercase;
}
.card-info {
  padding: 8px 10px;
}
.card-price {
  font-size: 12px;
  font-weight: 900;
  color: var(--navy);
  margin-bottom: 2px;
}
.card-price small {
  font-size: 9px;
  font-weight: 500;
  color: var(--muted);
  margin-left: 4px;
}
.card-title {
  font-size: 11px;
  font-weight: 700;
  color: #0f172a;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 3px;
}
.card-meta {
  font-size: 9.5px;
  color: var(--muted);
  margin-bottom: 8px;
}
.card-actions {
  display: flex;
  gap: 6px;
}
.btn-card-view {
  flex: 1;
  background: var(--navy);
  color: #ffffff !important;
  text-align: center;
  font-size: 9.5px;
  font-weight: 800;
  padding: 6px 8px;
  border-radius: 4px;
  text-decoration: none !important;
  transition: background 0.2s;
}
.btn-card-view:hover {
  background: #0d2547;
}
.btn-card-visit {
  background: #f8fafc;
  border: 1px solid var(--gold);
  color: var(--navy);
  font-size: 9.5px;
  font-weight: 800;
  padding: 6px 8px;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.2s;
}
.btn-card-visit:hover {
  background: var(--gold);
  color: var(--navy);
}

/* Chat Input Bar */
.chat-input-form {
  padding: 10px 14px;
  background: #ffffff;
  border-top: 1px solid #e2e8f0;
  display: flex;
  align-items: center;
  gap: 8px;
}
#sriijan-chat-input {
  flex: 1;
  background: #f8fafc;
  border: 1px solid #cbd5e1;
  padding: 10px 14px;
  font-size: 11px;
  font-family: inherit;
  border-radius: 20px;
  outline: none;
  transition: border-color 0.2s;
}
#sriijan-chat-input:focus {
  border-color: var(--gold);
  background: #ffffff;
}
#sriijan-chat-submit {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--gold);
  color: var(--navy);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: transform 0.2s, background 0.2s;
}
#sriijan-chat-submit:hover {
  background: #d4af37;
  transform: scale(1.05);
}

/* Footer note */
.chat-footer-note {
  font-size: 8.5px;
  text-align: center;
  color: #94a3b8;
  padding: 4px 10px 8px;
  background: #ffffff;
}
.chat-footer-note a {
  color: var(--navy);
  font-weight: 700;
  text-decoration: none;
}

/* Mobile Screen Adaptations */
@media (max-width: 540px) {
  #sriijan-chat-widget {
    bottom: 0;
    right: 0;
    left: 0;
    width: 100vw;
    max-width: 100vw;
    height: 100vh;
    max-height: 100vh;
    border-radius: 0;
    border: none;
  }
  #sriijan-chat-launcher-wrap {
    bottom: 16px;
    right: 16px;
  }
}


/* ===================================================
   SRIIJAN ENCLAVE SPOTLIGHT STYLING
   =================================================== */

.enclave-spotlight {
  background: radial-gradient(circle at 10% 20%, #0d2547 0%, var(--navy) 100%);
  color: #ffffff;
  padding: 70px 0;
  border-top: 3px solid var(--gold);
  border-bottom: 3px solid var(--gold);
  position: relative;
  overflow: hidden;
}
.enclave-badge-row {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 25px;
}
.enclave-tag {
  background: rgba(239, 68, 68, 0.2);
  border: 1px solid #ef4444;
  color: #fca5a5;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 6px 12px;
  border-radius: 4px;
}
.enclave-tag-gold {
  background: linear-gradient(135deg, var(--gold) 0%, #dfbe73 100%);
  color: var(--navy);
  font-size: 11px;
  font-weight: 900;
  padding: 6px 14px;
  border-radius: 4px;
  letter-spacing: 0.5px;
}
.enclave-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 40px;
  align-items: center;
}
.enclave-title {
  font: 700 clamp(36px, 4.5vw, 56px)/1.05 Georgia, serif;
  color: #ffffff;
  margin: 0 0 10px;
}
.enclave-title span {
  color: var(--gold2);
  font-style: italic;
  font-size: 0.85em;
}
.enclave-location {
  font-size: 13px;
  font-weight: 700;
  color: var(--gold2);
  margin-bottom: 14px;
}
.enclave-lead {
  font-size: 15px;
  color: #cbd5e1;
  line-height: 1.6;
  margin-bottom: 25px;
  max-width: 600px;
}
.enclave-usp-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-bottom: 25px;
}
.enclave-usp-card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(185, 151, 74, 0.3);
  padding: 12px 10px;
  border-radius: 6px;
  text-align: center;
}
.enclave-usp-card strong {
  display: block;
  font-size: 13px;
  color: var(--gold2);
  margin-bottom: 3px;
}
.enclave-usp-card span {
  font-size: 9.5px;
  color: #cbd5e1;
  display: block;
}
.enclave-connectivity {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 12px;
  color: #e2e8f0;
  margin-bottom: 25px;
  background: rgba(0, 0, 0, 0.25);
  padding: 10px 16px;
  border-radius: 6px;
  border-left: 3px solid var(--gold);
}
.enclave-connectivity b {
  color: var(--gold2);
}
.enclave-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

/* Media Box */
.enclave-media-box {
  background: #050e1d;
  border: 2px solid var(--gold);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(0,0,0,0.5);
  display: flex;
  flex-direction: column;
}
.media-tabs {
  display: flex;
  background: #020712;
  border-bottom: 1px solid rgba(185, 151, 74, 0.3);
}
.media-tab-btn {
  flex: 1;
  background: none;
  border: none;
  color: #94a3b8;
  padding: 10px 8px;
  font-size: 10.5px;
  font-weight: 800;
  cursor: pointer;
  text-align: center;
  transition: all 0.2s;
  border-bottom: 2px solid transparent;
}
.media-tab-btn:hover {
  color: #ffffff;
}
.media-tab-btn.active {
  color: var(--gold2);
  border-bottom: 2px solid var(--gold);
  background: rgba(185, 151, 74, 0.1);
}
.media-display-wrap {
  position: relative;
  height: 380px;
  background: #000;
  display: flex;
  align-items: center;
  justify-content: center;
}
.enclave-main-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: opacity 0.25s ease;
}
.enclave-img-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(0deg, rgba(0,0,0,0.85) 0%, transparent 100%);
  color: #ffffff;
  padding: 20px 16px 12px;
  font-size: 11.5px;
  font-weight: 700;
}
.enclave-zoom-btn {
  position: absolute;
  top: 12px;
  right: 12px;
  background: rgba(7, 21, 43, 0.85);
  border: 1px solid var(--gold);
  color: #ffffff;
  font-size: 10px;
  font-weight: 800;
  padding: 6px 10px;
  border-radius: 4px;
  text-decoration: none;
}
.enclave-zoom-btn:hover {
  background: var(--gold);
  color: var(--navy);
}

@media (max-width: 900px) {
  .enclave-grid { grid-template-columns: 1fr; }
  .enclave-usp-grid { grid-template-columns: 1fr 1fr; }
  .media-display-wrap { height: 280px; }
}
