/* General body styling */
body {
  margin: 0;
  font-family: var(--font-family-manrope), Arial, sans-serif;
  background-color: var(--wild-sand, #f5f5f5);
  color: #333;
}

/* Dashboard layout */
.dashboard {
  display: flex;
  height: 100vh;
  overflow-x: hidden;
}

/* Sidebar styling */
.sidebar {
  width: 250px;
  background-color: var(--white-2, #fff);
  padding: 5px 0;
  box-shadow: 2px 0 5px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease-in-out;
  height: 100%;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 20;
}

/* Close button for sidebar on smaller screens */
.close-btn {
  display: none;
  position: absolute;
  top: 10px;
  right: 10px;
  background: none;
  border: none;
  font-size: 20px;
  color: #666;
  cursor: pointer;
}

/* Logo container */
.logo {
  padding: 10px;
  text-align: center;
}

/* Logo image */
.logo img {
  width: 115px;
  margin: 0 auto;
  display: block;
}

/* Navigation menu */
.nav-menu {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 5px;
  margin-top: 25px;
}

/* Navigation item */
.nav-item {
  display: flex;
  align-items: center;
  padding: 12px 20px;
  color: #666;
  cursor: pointer;
  transition: all 0.3s ease-in-out;
  font-family: var(--font-family-manrope);
  font-size: 14px;
  font-weight: 500;
}

/* Navigation item hover effect */
.nav-item:hover {
  color: #F5A623;
}

.nav-item:hover img {
  background-color: rgb(255, 226, 180);
}

/* Navigation item icon */
.nav-item img {
  width: 20px;
  margin-right: 12px;
  background-color: #f9f9f9;
  padding: 4px;
  border-radius: 4px;
}

/* Navigation item icon when active */
.nav-item.active img {
  width: 20px;
  margin-right: 12px;
  background-color: rgb(255, 226, 180);
  padding: 4px;
  border-radius: 4px;
}

/* Active navigation item */
.nav-item.active {
  color: #F5A623;
  font-weight: 500;
}

/* Main content area */
.main-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  margin-left: 250px; /* Offset for fixed sidebar width */
}

/* Top bar header */
.top-bar {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  padding: 18px 24px;
  background-color: var(--white-2, #fff);
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  position: relative;
  z-index: 10;
}

/* Menu button for smaller screens */
.menu-btn {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 10px;
}

/* Menu icon */
.menu-icon {
  width: 24px;
  height: 24px;
}

/* Language switch button */
.language-switch {
  margin-right: 20px;
  color: #000000;
  cursor: pointer;
  font-family: var(--font-family-manrope);
  font-size: var(--font-size-m, 16px);
  font-weight: 500;
  line-height: 24px;
}

/* Add property button */
.add-property-btn {
  display: flex;
  align-items: center;
  background-color: #ffffff;
  color: var(--white-2, #F5A623);
  border: #F5A623 2px solid;
  padding: 8px 12px;
  border-radius: 8px;
  cursor: pointer;
  font-family: var(--font-family-manrope);
  font-size: var(--font-size-m, 16px);
  font-weight: 500;
  transition: background-color 0.3s ease;
}

/* Plus sign with border background in add property button */
.add-property-btn .add-icon {
  content: '+';
  display: inline-flex;
  justify-content: center;
  align-items: center;
  width: 18px;
  height: 18px;
  background-color: #ffffff;
  border: #F5A623 2px solid;
  color: #F5A623;
  border-radius: 50%;
  margin-right: 8px;
  font-size: 14px;
  font-weight: 700;
}

/* Add property button hover effect */
.add-property-btn:hover {
  background-color: #e69520;
  color: #fff;
  border: #F5A623 2px solid;
  transition: background-color 0.3s ease;
}

/* Content wrapper */
.content-wrapper {
  padding: 30px;
  flex: 1;
}

.content-wrapper h1 {
  font-family: var(--font-family-manrope);  
  font-size: 24px;
  font-weight: 700;
  color: #333;
  margin: 0 0 20px;
}

/* Stats container */
.stats-container {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  align-items: stretch;
  margin-bottom: 20px;
}

/* Card styling for both greeting and stat cards */
.greeting-card, .stat-card {
  flex: 1;
  min-width: 200px;
  max-width: 300px;
  height: 150px;
  background-color: #fff;
  border-radius: 8px;
  padding: 20px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

/* Greeting card specific styling */
.greeting-card {
  background: url('../img/city-bg.png') no-repeat center center;
  background-size: cover;
}

/* Glass-like overlay for greeting card */
.greeting-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 1;
}

/* Fallback for browsers without backdrop-filter support */
@supports not (backdrop-filter: blur(8px)) {
  .greeting-card::before {
    background: rgba(0, 0, 0, 0.5);
  }
}

/* Greeting content styling */
.greeting-content {
  position: relative;
  z-index: 2;
  color: #fff;
}

.greeting-content h1 {
  margin: 0;
  font-size: 24px;
  font-weight: 700;
}

.greeting-content p {
  margin: 10px 0 0;
  font-size: 16px;
}

/* Stat card specific styling */
.stat-card {
  justify-content: flex-start; /* Align content to top */
}

/* Stat header for icon and label */
.stat-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px; /* Space between header and value */
}

/* Stat icon styling */
.stat-icon {
  width: 40px; /* Adjusted to match screenshot */
  height: 40px;
  background-color: #ffffff;
  border: #F5A623 2px solid;
  border-radius: 50%; /* Circular as per screenshot */
  display: flex;
  justify-content: center;
  align-items: center;
  order: 1; /* Move icon to the right */
}

/* Stat icon image */
.stat-icon img {
  width: 20px;
  height: 20px;
  display: block;
}

/* Stat label */
.stat-label {
  font-size: 14px; /* Smaller than value, matches screenshot */
  font-weight: 700;
  color: #666;
  text-transform: uppercase; /* Matches screenshot */
  order: 0; /* Move label to the left */
}

/* Stat value */
.stat-value {
  font-size: 28px;
  font-weight: 700;
  color: #333;
}

/* Properties table */
.properties-table table {
  width: 100%;
  border-collapse: collapse;
  background-color: var(--white-2, #fff);
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* Properties table cells */
.properties-table th,
.properties-table td {
  padding: 12px;
  text-align: center;
  border-bottom: 1px solid #e0e0e0;
  font-family: var(--font-family-manrope);
  font-size: 14px;
  color: #666;
}

/* Properties table header */
.properties-table th {
  background-color: #f9f9f9;
  font-weight: 500;
}

.properties-table button {
  margin: 0 5px;
  padding: 5px 10px;
  border: 1px solid #F5A623;
  background: none;
  color: #F5A623;
  border-radius: 4px;
  cursor: pointer;
}
.properties-table button:hover {
  background-color: #F5A623;
  color: #fff;
}

/* Notifications section */
.notifications-container {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.notifications-container h2 {
  margin: 0 0 10px;
  font-size: 20px;
  font-weight: 500;
  color: #333;
}

.notifications-header {
  display: flex;
  justify-content: space-between;
  padding: 10px 15px;
  background-color: #f9f9f9;
  border-radius: 8px 8px 0 0;
  font-size: 14px;
  font-weight: 500;
  color: #666;
}

.notification-label {
  flex: 1;
  text-align: left;
}

.date-label {
  width: 100px;
  text-align: right;
}

.notifications-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.notification-card {
  display: flex;
  align-items: center;
  background-color: #fff;
  border-radius: 8px;
  padding: 15px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.notification-icon {
  width: 30%;
  height: 180px;
  background-size: cover;
  background-position: center;
  border-radius: 8px;
  background-color: #f9f9f9;
}

.notification-content {
  flex: 1;
  margin-left: 20px;
}

.notification-content h3 {
  margin: 0;
  font-size: 16px;
  font-weight: 600;
  color: #333;
  line-height: 1.4;
}

.notification-content p {
  margin: 5px 0 0;
  font-size: 14px;
  color: #666;
}

.notification-date {
  font-size: 12px;
  color: #666;
  white-space: nowrap;
  margin-right: 40px;
}

/* Property Listings Styles */
.property-listings {
  flex: 1;
  padding: 20px;
}

.property-listings .section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  background-color: #fff;
  padding: 20px;
}

.property-listings .most-viewed-title {
  font-family: var(--font-family-manrope);
  font-size: 18px;
  font-weight: 600;
  color: #333;
  margin: 0;
}

.property-listings .see-all-link {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.property-listings .see-all-icon {
  width: 20px;
  height: 20px;
  border: 1px solid #666;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.property-listings .see-all-icon img {
  width: 40px;
  height: 40px;
}

.property-listings .listings-container {
  display: flex;
  justify-content: center;
}

.property-listings .listings-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 20px;
  max-width: 100%;
  height: 800px;
  width: 100%;
}

.listing-card {
  background-color: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease;
}

.listing-card:hover {
  transform: translateY(-5px);
}

.listing-image {
  position: relative;
  width: 100%;
  height: 250px;
  background-size: cover;
  background-position: center;
}

.favorite-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  background-color: rgba(255, 255, 255, 0.8);
  border: none;
  border-radius: 50%;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.favorite-icon {
  width: 16px;
  height: 16px;
}

.listing-details {
  padding: 10px;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.listing-type {
  display: flex;
  align-items: center;
  color: #666;
  font-family: var(--font-family-manrope);
  font-size: 12px;
  text-transform: uppercase;
  margin-bottom: 5px;
}

.type-icon {
  width: 16px;
  height: 16px;
  margin-right: 5px;
}

.listing-title {
  font-family: var(--font-family-manrope);
  font-size: 16px;
  font-weight: 600;
  color: #333;
  margin: 0 0 5px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.listing-location {
  font-family: var(--font-family-manrope);
  font-size: 12px;
  color: #666;
  margin: 0 0 5px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.listing-price {
  font-family: var(--font-family-manrope);
  font-size: 16px;
  font-weight: 600;
  color: #333;
}

.spec-icon {
  margin-left: 20px;
}

/* Profile and KYC Styles */
.tabs {
  display: flex;
  border-bottom: 2px solid #ddd;
  margin-bottom: 20px;
}

.tab {
  padding: 10px 20px;
  cursor: pointer;
  font-weight: bold;
  color: #888;
  font-family: var(--font-family-manrope);
}

.tab.active {
  color: #F5A623;
  border-bottom: 2px solid #F5A623;
}

.tab-content {
  display: none;
  background-color: #fff;
  padding: 20px 40px;
  border-radius: 10px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.tab-content.active {
  display: block;
}

/* Profile image container */
.profile-image {
  display: flex;
  align-items: flex-start; /* Align items to the top */
  margin-bottom: 20px;
  gap: 20px; /* Add spacing between the image and the content */
}

/* Profile image */
.profile-image img {
  width: 100px;
  height: 100px;
  border-radius: 50%;
}

/* Container for button and text */
.profile-image .image-actions {
  display: flex;
  flex-direction: column; /* Stack button and text vertically */
  justify-content: flex-start; /* Align to the top */
}

/* Upload button */
.profile-image button {
  background-color: #F5A623;
  color: #fff;
  border: none;
  padding: 10px 20px;
  border-radius: 5px;
  cursor: pointer;
  font-family: var(--font-family-manrope);
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 10px; /* Space between button and text */
  margin-top: 25px;
}

/* Text below the button */
.profile-image p {
  color: #888;
  font-size: 12px;
  font-family: var(--font-family-manrope);
  margin: 0; /* Remove default margin */
}

.form-group {
  display: flex;
  justify-content: space-between;
  margin-bottom: 20px;
  align-items: flex-start; /* Align items to the top */
}

.form-group div {
  width: 48%;
}

.form-group label {
  display: block;
  margin-bottom: 5px;
  font-weight: bold;
  font-family: var(--font-family-manrope);
  font-size: 14px;
  color: #333;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 10px;
  border: 1px solid #ddd;
  border-radius: 5px;
  font-family: var(--font-family-manrope);
  font-size: 14px;
}

.form-group textarea {
  height: 100px;
  resize: none;
}

.form-group .toggle {
  width: 48%;
}

.form-group .toggle input {
  display: none;
}

.form-group .toggle label:not(.toggle-text) {
  width: 85px;
  height: 30px;
  background-color: #ddd;
  border-radius: 20px;
  position: relative;
  cursor: pointer;
}

.form-group .toggle label:not(.toggle-text)::after {
  content: '';
  width: 25px;
  height: 23px;
  background-color: #fff;
  border-radius: 50%;
  position: absolute;
  top: 4px;
  left: 1px;
  transition: 0.3s;
}

.form-group .toggle input:checked + label:not(.toggle-text) {
  background-color: #F5A623;
}

.form-group .toggle input:checked + label:not(.toggle-text)::after {
  left: 55px;
}

.form-group .toggle .toggle-text {
  font-weight: bold;
  font-family: var(--font-family-manrope);
  font-size: 14px;
  color: #333;
  margin-right: 10px;
}

.kyc-upload {
  background-color: #fff3e0;
  padding: 20px;
  text-align: center;
  border-radius: 5px;
  margin-bottom: 20px;
}

.kyc-upload p {
  margin: 10px 0;
  font-family: var(--font-family-manrope);
  font-size: 14px;
  color: #666;
}

.kyc-upload button {
  background-color: #F5A623;
  color: #fff;
  border: none;
  padding: 10px 20px;
  border-radius: 5px;
  cursor: pointer;
  font-family: var(--font-family-manrope);
  font-size: 14px;
  font-weight: 500;
}

/* KYC Upload Icon */
.kyc-upload .upload-icon {
  display: block;
  width: 40px;
  height: 40px;
  margin: 0 auto 10px;
}

/* Document Types Buttons */
.document-types {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin: 10px 0 20px;
}

.doc-type-btn {
  display: flex;
  align-items: center;
  cursor: pointer;
}

.doc-type-btn input[type="radio"] {
  display: none;
}

.doc-type-text {
  position: relative;
  padding-left: 25px;
  font-family: var(--font-family-manrope);
  font-size: 12px;
  font-weight: 500;
  color: #333;
  line-height: 1;
  white-space: nowrap;
}

.doc-type-text::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 16px;
  height: 16px;
  border: 2px solid #E0E0E0;
  border-radius: 50%;
  background-color: #fff;
  box-sizing: border-box;
}

.doc-type-btn input[type="radio"]:checked + .doc-type-text::before {
  background-color: #F5A623;
  border-color: #F5A623;
}

.doc-type-btn input[type="radio"]:checked + .doc-type-text {
  color: #000000;
}

.doc-type-text::after {
  content: '';
  position: absolute;
  left: 4px;
  top: 50%;
  transform: translateY(-50%);
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: #F5A623;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.doc-type-btn input[type="radio"]:checked + .doc-type-text::after {
  opacity: 1;
}

/* Messages Section */
.messages-section {
  display: flex;
  flex-direction: column;
  padding: 20px;
  background-color: #f5f5f5;
  height: 100%;
}

.messages-section h2 {
  font-size: 24px;
  font-weight: bold;
  margin-bottom: 20px;
}

.messages-container {
  display: flex;
  flex: 1;
  gap: 20px;
}

.message-list {
  width: 300px;
  background-color: #fff;
  border-radius: 8px;
  overflow-y: auto;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.message-item {
  display: flex;
  align-items: center;
  padding: 15px;
  border-bottom: 1px solid #eee;
  cursor: pointer;
}

.message-item.active {
  background-color: #f0f0f0;
}

.user-pic {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  margin-right: 10px;
}

.message-info h4 {
  font-size: 16px;
  font-weight: 600;
  margin: 0;
}

.message-info p {
  font-size: 14px;
  color: #666;
  margin: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.chat-window {
  flex: 1;
  display: flex;
  flex-direction: column;
  background-color: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  max-height: 80vh;
}

.chat-header {
  padding: 15px;
  border-bottom: 1px solid #eee;
  display: flex;
  align-items: center;
  background-color: #fff;
}

.chat-header .back-btn {
  background: none;
  border: none;
  cursor: pointer;
  padding: 5px;
  margin-right: 10px;
  display: none;
}

.chat-header .back-btn img {
  width: 24px;
  height: 24px;
}

.chat-header h4 {
  font-size: 18px;
  font-weight: 600;
  margin: 0;
  color: #333;
}

.chat-body {
  flex: 1;
  padding: 20px;
  overflow-y: auto;
  background-color: #fff;
}

.message {
  margin-bottom: 15px;
  display: flex;
  align-items: flex-start;
  position: relative;
}

.message.received {
  flex-direction: row;
}

.message.sent {
  flex-direction: row-reverse;
  justify-content: flex-end;
}

.message .user-pic {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  margin: 0 10px;
}

.message .message-content {
  max-width: 70%;
}

.message.received .message-content {
  text-align: left;
}

.message.sent .message-content {
  text-align: right;
}

.message p {
  background-color: #f0f0f0;
  padding: 10px 15px;
  border-radius: 15px;
  margin: 0;
  display: inline-block;
}

.message.sent p {
  background-color: #007bff;
  color: #fff;
}

.message .timestamp {
  font-size: 12px;
  color: #666;
  margin-top: 5px;
  display: block;
  text-align: left;
}

.chat-footer {
  padding: 15px;
  border-top: 1px solid #eee;
  background-color: #fff;
}

.chat-footer .input-container {
  display: flex;
  align-items: center;
  border: 1px solid #ccc;
  border-radius: 20px;
  background-color: #f9f9f9;
  padding: 5px 8px;
  width: 100%;
  box-sizing: border-box;
}

.chat-footer .input-container input {
  flex: 1;
  padding: 5px 8px;
  border: none;
  background: transparent;
  font-size: 14px;
  outline: none;
  color: #333;
  min-width: 0; /* Allow the input to shrink */
}

.chat-footer .input-container button {
  background: none;
  border: none;
  cursor: pointer;
  padding: 5px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #000;
  border-radius: 8px;
  width: 30px;
  height: 30px;
  flex-shrink: 0; /* Prevent buttons from shrinking */
}

.chat-footer .input-container .attach {
  margin-right: 5px;
}

.chat-footer .input-container .voice {
  margin: 0 5px;
}

.chat-footer .input-container .send {
  margin-left: 5px;
}

.chat-footer .input-container button img {
  width: 20px;
  height: 20px;
}

/* Personalized Feed Styles */
.personalized-feed {
  background-color: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  padding: 20px;
}

.personalized-feed h2 {
  font-family: var(--font-family-manrope);
  font-size: 18px;
  font-weight: 600;
  color: #333;
}

.feed-options {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.feed-options h3 {
  font-family: var(--font-family-manrope);
  font-size: 14px;
  font-weight: 500;
  color: #666;
  margin: 0 0 10px;
  text-transform: uppercase;
}

.interest-buttons, .nearby-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 20px;
}

.interest-buttons label, .nearby-buttons label {
  position: relative;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
}

.interest-buttons input[type="checkbox"], .nearby-buttons input[type="checkbox"] {
  display: none;
}

.interest-buttons .button-text, .nearby-buttons .button-text {
  background-color: #E0E0E0;
  color: #666;
  border: none;
  padding: 8px 20px 8px 24px; /* Adjusted padding to accommodate checkmark on the left */
  border-radius: 20px;
  font-family: var(--font-family-manrope);
  font-size: 12px;
  font-weight: 500;
  transition: background-color 0.3s ease, color 0.3s ease;
  position: relative;
}

.interest-buttons input[type="checkbox"]:checked + .button-text,
.nearby-buttons input[type="checkbox"]:checked + .button-text {
  background-color: #F5A623;
  color: #fff;
}

.interest-buttons label.active .button-text::before,
.nearby-buttons label.active .button-text::before {
  content: '✔';
  position: absolute;
  left: 8px;
  top: 50%;
  transform: translateY(-50%);
  color: #fff;
  font-size: 10px;
  font-weight: bold;
}

.interest-buttons .button-text:hover, .nearby-buttons .button-text:hover {
  background-color: #e69520;
  color: #fff;
}

.nearby-buttons .button-text {
  background-color: #E0E0E0;
  color: #666;
}

.interest-buttons label.active .button-text:hover::before,
.nearby-buttons label.active .button-text:hover::before {
  content: '✔';
  color: #fff;
}

.preference-inputs, .budget-inputs {
  display: flex;
  gap: 20px;
}

.input-group {
  display: flex;
  flex-direction: column;
  width: 100%;
}

.input-group label {
  font-family: var(--font-family-manrope);
  font-size: 14px;
  font-weight: 500;
  color: #333;
  margin-bottom: 5px;
}

.input-group input, .input-group select {
  padding: 10px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-family: var(--font-family-manrope), Arial, sans-serif;
  font-size: 14px;
  color: #666;
}

.input-group input::placeholder, .input-group select::placeholder {
  font-family: Arial, sans-serif; /* Ensure placeholder uses a font that supports ₦ */
  color: #999;
}

.input-group input:focus, .input-group select:focus {
  outline: none;
  border-color: #F5A623;
}

.budget-inputs .input-group {
  position: relative;
}

.budget-inputs .input-group input {
  padding-left: 25px; /* Make space for the ₦ symbol */
}

.budget-inputs .input-group::before {
  content: '₦';
  position: absolute;
  left: 10px;
  top: 38px;
  transform: translateY(-50%);
  font-family: Arial, sans-serif;
  color: #666;
  pointer-events: none; /* Prevent interaction with the symbol */
  line-height: normal; /* Ensure proper vertical alignment */
}

.price-range-section {
  margin-top: 15px;
}

.price-range-label {
  font-family: var(--font-family-manrope);
  font-size: 12px;
  color: #666;
  margin-bottom: 5px;
  display: block;
  text-align: left;
}

.range-sliders {
  position: relative;
  width: 100%;
  height: 6px;
  background: #E0E0E0;
  border-radius: 3px;
}

.range-slider {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 6px;
  background: transparent;
  -webkit-appearance: none;
  appearance: none;
  pointer-events: none;
}

.range-slider::-webkit-slider-runnable-track {
  height: 6px;
  background: transparent;
  border-radius: 3px;
}

.range-slider::-moz-range-track {
  height: 6px;
  background: transparent;
  border-radius: 3px;
}

.range-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 16px;
  height: 16px;
  background: #F5A623;
  border: 2px solid #fff;
  border-radius: 50%;
  cursor: pointer;
  pointer-events: auto;
  position: relative;
  z-index: 2;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
  transition: transform 0.1s;
}

.range-slider::-webkit-slider-thumb:hover {
  transform: scale(1.1);
}

.range-slider::-moz-range-thumb {
  width: 16px;
  height: 16px;
  background: #F5A623;
  border: 2px solid #fff;
  border-radius: 50%;
  cursor: pointer;
  pointer-events: auto;
  position: relative;
  z-index: 2;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
  transition: transform 0.1s;
}

.range-slider::-moz-range-thumb:hover {
  transform: scale(1.1);
}

/* Filled track between the thumbs */
.range-sliders::after {
  content: '';
  position: absolute;
  top: 0;
  height: 6px;
  background: #F5A623;
  border-radius: 3px;
  z-index: 1;
  left: var(--min, 0%);
  width: calc(var(--max, 100%) - var(--min, 0%));
}

/* Footer */
footer {
  text-align: center;
  padding: 10px;
  color: #666;
  font-size: 12px;
  font-family: var(--font-family-manrope);
  font-weight: 500;
  background-color: #ffffff;
}

/* Responsive design for tablets (between 376px and 767px) */
@media screen and (min-width: 376px) and (max-width: 767px) {
  .messages-section {
    padding: 15px;
  }
  .messages-container {
    flex-direction: column;
  }
  .message-list {
    width: 100%;
    margin-bottom: 20px;
    display: block; /* Ensure message list is visible */
  }
  .chat-window {
    width: 100%;
    display: none; /* Hidden by default on mobile */
  }
  .chat-window.active {
    display: flex; /* Shown when active class is added */
  }
  .message {
    max-width: 80%;
  }
  .message .user-pic {
    width: 25px;
    height: 25px;
    margin-right: 8px;
  }
  .message.received p, .message.sent p {
    padding: 5px 8px;
    font-size: 13px;
  }
  .message .timestamp {
    font-size: 10px;
    margin-top: 3px;
    padding-left: 33px; /* Adjusted for smaller user-pic and margin */
  }
  .chat-footer .input-container {
    padding: 8px !important; /* Ensure padding applies */
    border-radius: 20px;
    border: 1px solid #ccc;
    background-color: #f9f9f9;
    width: 100%;
    box-sizing: border-box;
  }
  .chat-window.active .chat-footer .input-container {
    display: flex;
    align-items: center;
    padding: 8px !important; /* Ensure padding applies even after toggle */
  }
  .chat-footer .input-container input {
    padding: 5px !important; /* Ensure input padding */
    font-size: 12px !important;
    border: none;
    background: transparent;
    flex: 1;
    outline: none;
  }
  .chat-footer .input-container button {
    padding: 4px !important; /* Ensure button padding */
    display: flex;
    align-items: center;
    justify-content: center;
  }
  .chat-footer .input-container .attach,
  .chat-footer .input-container .voice {
    width: 25px !important;
    margin-right: 5px;
    margin-left: 5px;
    background-color: black;
    border-radius: 8px;
  }
  .chat-footer .input-container .send {
    margin-left: 0 !important;
    padding: 4px 8px !important;
    background-color: black;
    border-radius: 8px;
    color: #ffffff;
    font-size: 12px !important;
  }
  .chat-footer .input-container button img {
    width: 16px !important;
    height: 16px !important;
  }
  .chat-header .back-btn {
    display: block; /* Show back button on mobile */
  }
  .personalized-feed {
    padding: 15px;
  }
  .personalized-feed h2 {
    font-size: 16px;
  }
  .feed-options h3 {
    font-size: 12px;
  }
  .interest-buttons .button-text, .nearby-buttons .button-text {
    padding: 6px 18px 6px 22px;
    font-size: 10px;
  }
  .interest-buttons label.active .button-text::before,
  .nearby-buttons label.active .button-text::before {
    font-size: 8px;
  }
  .input-group input, .input-group select {
    padding: 8px;
    font-size: 12px;
  }
  .range-sliders {
    height: 5px;
  }
  .range-slider::-webkit-slider-thumb {
    width: 14px;
    height: 14px;
  }
  .range-slider::-moz-range-thumb {
    width: 14px;
    height: 14px;
  }
}

/* Responsive design for larger tablets and small desktops (768px and 1023px) */
@media screen and (min-width: 768px) and (max-width: 1023px) {
  .messages-section {
    padding: 20px;
  }
  .messages-container {
    gap: 15px;
  }
  .message-list {
    width: 280px;
  }
  .chat-window {
    flex: 1;
  }
  .message {
    max-width: 65%;
  }
  .message .user-pic {
    width: 35px;
    height: 35px;
    margin-right: 12px;
  }
  .message.received p, .message.sent p {
    padding: 6px 12px;
    font-size: 14px;
  }
  .message .timestamp {
    font-size: 11px;
    margin-top: 4px;
    padding-left: 47px; /* Adjusted for larger user-pic and margin */
  }
  .chat-footer .input-container {
    padding: 10px;
  }
  .chat-footer .input-container input {
    padding: 6px;
    font-size: 14px;
  }
  .chat-footer .input-container button {
    padding: 5px;
  }
  .chat-footer .input-container .attach,
  .chat-footer .input-container .voice {
    width: 30px;
    margin-right: 5px;
    margin-left: 5px;
  }
  .chat-footer .input-container .send {
    margin-left: 0;
    padding: 5px 10px;
    font-size: 14px;
  }
  .chat-footer .input-container button img {
    width: 20px;
    height: 20px;
  }
  .personalized-feed {
    padding: 20px;
  }
  .feed-options {
    gap: 15px;
  }
  .interest-buttons .button-text, .nearby-buttons .button-text {
    padding: 7px 19px 7px 23px;
    font-size: 11px;
  }
  .range-sliders {
    height: 5px;
  }
  .range-slider::-webkit-slider-thumb {
    width: 15px;
    height: 15px;
  }
  .range-slider::-moz-range-thumb {
    width: 15px;
    height: 15px;
  }
}

/* Responsive design for desktops (1024px and above) */
@media screen and (min-width: 1024px) {
  .messages-section {
    padding: 30px;
  }
  .messages-container {
    gap: 20px;
  }
  .message-list {
    width: 300px;
  }
  .chat-window {
    flex: 1;
  }
  .message {
    max-width: 70%;
  }
  .message .user-pic {
    width: 40px;
    height: 40px;
    margin-right: 15px;
  }
  .message.received p, .message.sent p {
    padding: 8px 15px;
    font-size: 16px;
  }
  .message .timestamp {
    font-size: 12px;
    margin-top: 5px;
    padding-left: 10px; /* Adjusted for larger user-pic and margin */
  }
  .chat-footer .input-container {
    padding: 12px;
  }
  .chat-footer .input-container input {
    padding: 8px;
    font-size: 16px;
  }
  .chat-footer .input-container button {
    padding: 6px;
  }
  .chat-footer .input-container .attach,
  .chat-footer .input-container .voice {
    width: 35px;
    margin-right: 5px;
    margin-left: 5px;
  }
  .chat-footer .input-container .send {
    margin-left: 0;
    padding: 6px 12px;
    font-size: 16px;
  }
  .chat-footer .input-container button img {
    width: 22px;
    height: 22px;
  }
  .personalized-feed {
    padding: 25px;
  }
  .feed-options {
    gap: 20px;
  }
}

/* Responsive design for tablets (existing 768px breakpoint) */
@media screen and (max-width: 768px) {
  .dashboard {
    flex-direction: column;
  }
  .sidebar {
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    transform: translateX(-100%);
    z-index: 20;
  }
  .sidebar.sidebar-open {
    transform: translateX(0);
  }
  .sidebar-hidden {
    transform: translateX(-100%);
  }
  .close-btn {
    display: block;
  }
  .menu-btn {
    display: block;
    margin-right: auto;
  }
  .nav-menu {
    flex-direction: column;
    justify-content: flex-start;
    padding-top: 20px;
  }
  .nav-item {
    flex: none;
    text-align: left;
    padding: 12px 20px;
    font-size: 14px;
  }
  .nav-item img {
    width: 20px;
    margin-right: 12px;
    background-color: #f9f9f9;
    padding: 4px;
    border-radius: 4px;
  }
  .main-content {
    margin-left: 0; /* Remove margin on mobile */
    width: 100%;
  }
  .top-bar {
    justify-content: space-between;
    gap: 10px;
    padding: 10px 16px;
  }
  .language-switch {
    margin-right: 0;
  }
  .stats-container {
    flex-direction: column;
    align-items: center;
  }
  .greeting-card, .stat-card {
    min-width: 100%;
    max-width: 300px;
    margin-bottom: 15px;
  }
  .properties-table {
    overflow-x: auto; /* Enable horizontal scrolling */
    -webkit-overflow-scrolling: touch; /* Smooth scrolling on iOS */
  }

  .properties-table table {
    min-width: 700px; /* Ensure table is wide enough to show all columns */
    width: 100%;
  }

  .properties-table th,
  .properties-table td {
    font-size: 12px; /* Slightly smaller font for better fit */
    padding: 10px; /* Slightly reduced padding */
  }

  .properties-table button {
    padding: 4px 8px; /* Slightly smaller buttons */
    font-size: 12px; /* Match font size */
  }
  .notifications-container h2 {
    font-size: 18px;
  }
  .notification-card {
    padding: 15px;
  }
  .notification-icon {
    width: 50px;
    height: 50px;
    margin-right: 1px;
  }
  .notification-content h3 {
    font-size: 14px;
  }
  .notification-content p {
    font-size: 12px;
  }
  .notification-date {
    font-size: 10px;
    align-self: center;
    margin-left: 40px;
  }
  .tab {
    padding: 8px 15px;
    font-size: 14px;
  }
  .tab-content {
    padding: 15px;
  }
  .form-group div {
    width: 100%;
    margin-bottom: 15px;
  }
  .form-group {
    flex-direction: column;
  }
  .profile-image img {
    width: 80px;
    height: 80px;
  }
  .profile-image button {
    padding: 8px 15px;
    font-size: 12px;
  }
  .kyc-upload .upload-icon {
    width: 32px;
    height: 32px;
    margin-bottom: 8px;
  }

  .document-types {
    gap: 15px;
    margin: 8px 0 15px;
  }

  .doc-type-text {
    font-size: 10px;
    padding-left: 20px;
  }

  .doc-type-text::before {
    width: 14px;
    height: 14px;
  }

  .doc-type-text::after {
    width: 6px;
    height: 6px;
    left: 3px;
  }

  .doc-type-text {
    padding: 6px 12px;
    font-size: 10px;
  }
  .messages-section {
    padding: 15px;
  }
  .messages-container {
    flex-direction: column;
  }
  .message-list {
    width: 100%;
    margin-bottom: 20px;
    display: block; /* Ensure message list is visible */
  }
  .message-list.hidden {
    display: none; /* Hidden when chat window is active */
  }
  .chat-window {
    width: 100%;
    display: none; /* Hidden by default on mobile */
  }
  .chat-window.active {
    display: flex; /* Shown when active class is added */
  }
  .chat-header .back-btn {
    display: block; /* Show back button on mobile */
  }
  .chat-footer .input-container {
    padding: 5px 5px !important; /* Reduce padding to fit more content */
    border-radius: 20px;
    border: 1px solid #ccc;
    background-color: #f9f9f9;
    width: 100%;
    box-sizing: border-box;
    overflow: visible; /* Remove overflow: hidden to prevent clipping */
  }

  .chat-window.active .chat-footer .input-container {
    display: flex;
    align-items: center;
    padding: 5px 5px !important;
  }

  .chat-footer .input-container input {
    padding: 5px 5px !important;
    font-size: 12px !important;
    border: none;
    background: transparent;
    flex: 1;
    outline: none;
    min-width: 0; /* Allow input to shrink */
  }

  .chat-footer .input-container button {
    padding: 4px !important;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px !important; /* Slightly smaller buttons for mobile */
    height: 24px !important;
    border-radius: 8px !important;
    background-color: black;
    flex-shrink: 0;
  }

  .chat-footer .input-container .attach {
    margin-right: 3px; /* Reduce margin to save space */
    margin-left: 3px;
  }

  .chat-footer .input-container .voice {
    margin: 0 3px; /* Reduce margin */
  }

  .chat-footer .input-container .send {
    margin-left: 3px !important; /* Reduce margin */
    padding: 4px !important; /* Consistent padding */
    width: 24px !important;
    height: 24px !important;
  }

  .chat-footer .input-container button img {
    width: 14px !important; /* Smaller icons for mobile */
    height: 14px !important;
  }
  .personalized-feed {
    padding: 15px;
  }
  .personalized-feed h2 {
    font-size: 16px;
  }
  .feed-options h3 {
    font-size: 12px;
  }
  .interest-buttons .button-text, .nearby-buttons .button-text {
    padding: 6px 18px 6px 22px;
    font-size: 10px;
  }
  .preference-inputs, .budget-inputs {
    flex-direction: column;
    gap: 15px;
  }
  .input-group input, .input-group select {
    padding: 8px;
    font-size: 12px;
  }
  .budget-inputs .input-group::before {
    top: 35px;
  }
  .range-sliders {
    height: 5px;
  }
  .range-slider::-webkit-slider-thumb {
    width: 14px;
    height: 14px;
  }
  .range-slider::-moz-range-thumb {
    width: 14px;
    height: 14px;
  }
}

/* Responsive design for mobile (existing 375px breakpoint) */
@media screen and (max-width: 375px) {
  .nav-item {
    padding: 10px 15px;
    font-size: 12px;
  }
  .nav-item img {
    width: 18px;
    margin-right: 10px;
    background-color: #f9f9f9;
    padding: 3px;
    border-radius: 3px;
  }
  .greeting-content h1 {
    font-size: 20px;
  }
  .greeting-content p {
    font-size: 12px;
  }
  .stat-value {
    font-size: 18px;
  }
  .stat-label {
    font-size: 12px;
  }
  .stat-icon {
    width: 40px;
    height: 40px;
  }
  .stat-icon img {
    width: 20px;
    height: 20px;
  }
  .properties-table th,
  .properties-table td {
    font-size: 10px; /* Smaller font for tiny screens */
    padding: 8px; /* Further reduced padding */
  }

  .properties-table button {
    padding: 3px 6px; /* Smaller buttons */
    font-size: 10px;
  }
  .notifications-container h2 {
    font-size: 16px;
  }
  .notification-card {
    padding: 10px;
    flex-direction: column;
    align-items: flex-start;
  }
  .notification-icon {
    width: 35px;
    height: 35px;
    margin-right: 0;
    margin-bottom: 10px;
  }
  .notification-content {
    flex: none;
    width: 100%;
  }
  .notification-content h3 {
    font-size: 13px;
  }
  .notification-content p {
    font-size: 11px;
  }
  .notification-date {
    font-size: 9px;
    align-self: flex-end;
  }
  .tab {
    padding: 6px 10px;
    font-size: 12px;
  }
  .tab-content {
    padding: 10px;
  }
  .form-group div {
    width: 100%;
    margin-bottom: 10px;
  }
  .profile-image img {
    width: 60px;
    height: 60px;
  }
  .profile-image button {
    padding: 6px 10px;
    font-size: 10px;
  }
  .kyc-upload {
    padding: 15px;
  }
  .kyc-upload button {
    padding: 6px 10px;
    font-size: 10px;
  }
  .kyc-upload .upload-icon {
    width: 28px;
    height: 28px;
    margin-bottom: 6px;
  }

  .document-types {
    gap: 10px;
    margin: 6px 0 10px;
  }

  .doc-type-text {
    font-size: 9px;
    padding-left: 18px;
  }

  .doc-type-text::before {
    width: 12px;
    height: 12px;
  }

  .doc-type-text::after {
    width: 5px;
    height: 5px;
    left: 2px;
  }
  .messages-section {
    padding: 10px;
  }
  .message-item {
    padding: 10px;
  }
  .user-pic {
    width: 30px;
    height: 30px;
  }
  .message-info h4 {
    font-size: 14px;
  }
  .message-info p {
    font-size: 12px;
  }
  .chat-body {
    padding: 15px;
  }
  .message {
    max-width: 80%;
  }
  .chat-footer .input-container {
    padding: 4px 4px !important;
  }

  .chat-footer .input-container input {
    padding: 4px 4px !important;
    font-size: 11px !important;
  }

  .chat-footer .input-container button {
    width: 22px !important;
    height: 22px !important;
    padding: 3px !important;
  }

  .chat-footer .input-container .attach {
    margin-right: 2px;
    margin-left: 2px;
  }

  .chat-footer .input-container .voice {
    margin: 0 2px;
  }

  .chat-footer .input-container .send {
    margin-left: 2px !important;
  }

  .chat-footer .input-container button img {
    width: 12px !important;
    height: 12px !important;
  }
  .personalized-feed {
    padding: 10px;
  }
  .personalized-feed h2 {
    font-size: 14px;
  }
  .feed-options h3 {
    font-size: 10px;
  }
  .interest-buttons .button-text, .nearby-buttons .button-text {
    padding: 5px 16px 5px 20px;
    font-size: 9px;
  }
  .input-group input, .input-group select {
    padding: 6px;
    font-size: 10px;
  }
  .budget-inputs .input-group input {
    width: 80px;
  }
  .range-sliders {
    height: 4px;
  }
  .range-slider::-webkit-slider-thumb {
    width: 12px;
    height: 12px;
  }
  .range-slider::-moz-range-thumb {
    width: 12px;
    height: 12px;
  }
}