/* Root & Base Styles */
:root {
  --primary: #2266c2;
  --primary-light: #3377d3;
  --primary-dark: #1a5099;
   --secondary: #c9a87d;
  --gold: #f7d488;
  --terracotta: #d4a373;
  --white: #ffffff;
  --gray-50: #f9fafb;
  --gray-100: #f3f4f6;
  --gray-200: #e5e7eb;
  --gray-300: #d1d5db;
  --gray-500: #6b7280;
  --gray-600: #4b5563;
  --gray-700: #374151;
  --gray-800: #1f2937;
  --gray-900: #111827;
  --shadow: rgba(0, 0, 0, 0.08);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Poppins', sans-serif;
  background-color: var(--gray-50);
  color: var(--gray-800);
  line-height: 1.7;
}


/* Layout Container */
.container {
  display: flex;
  gap: 30px;
  margin: 40px 20px;
  padding: 0 30px;
}



/* Extra Filters */
.extra-filters {
  margin-top: 20px;
}

.extra-filters label {
  display: flex;
  align-items: center;
  background-color: var(--gray-100);
  padding: 10px 15px;
  margin-bottom: 10px;
  border-radius: 6px;
  font-size: 1rem;
  font-weight: 500;
  border: 1px solid var(--gray-300);
  cursor: pointer;
}

.extra-filters input[type="checkbox"] {
  margin-right: 10px;
}

/* Map */
#map {
  width: 100%;
  height: 250px;
  background: #ddd;
  border-radius: 10px;
  margin-top: 20px;
}

/* Main Content */
main {
  flex-grow: 1;
}

/* Header */
.results-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

#resultsCount {
  font-size: 1.1rem;
  color: var(--gray-700);
}

#sortBy {
  padding: 8px 12px;
  font-size: 0.95rem;
  border-radius: 6px;
  border: 1px solid var(--gray-300);
}

/* Property Row Layout */
.property-grid {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.property-card {
  display: flex;
  width: 100%;
  max-width: 1300px;
  height: 400px;
  background-color: var(--white);
  border-radius: 10px;
  box-shadow: 0 6px 16px var(--shadow);
  overflow: hidden;
  transition: transform 0.3s ease;
}

.property-card:hover {
  transform: translateY(-4px);
}

.property-card .media-wrapper {
  flex: 1;
  width: 50%;
  position: relative;
  height: auto;
  overflow: hidden;
}
.property-card .media-wrapper .property-status{
  bottom: 0;
  right: 0;
  border-radius: 6px 0 0 0;
}
.property-card img,
.property-card video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.property-info {
  flex: 2;
  padding: 20px;
  max-width: 50%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.property-title {
    font-family: 'Playfair Display', serif;
  font-size: 1.6rem;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 10px;
}

.property-location {
    font-family: Georgia, "Times New Roman", Times, serif;
  font-size: 1rem;
  color: var(--gray-600);
  margin-bottom: 9px;
  margin-top: 7px;
}
.property-location i{
  margin-right: 5px;
}

.property-features {
  display: flex;
  gap: 15px;
  font-size: 0.95rem;
  color: var(--secondary);
  margin-bottom: 20px;
}

.description-preview {
  font-size: 1rem;
  color: var(--gray-700);
  margin-bottom: 5px;
  line-height: 1.6;
  flex-grow: 1;

  display: -webkit-box;
  -webkit-box-orient: vertical;
  overflow: hidden;
}




.price {
  font-size: 1.7rem;
  font-weight: 700;
  color: var(--secondary);
  margin-bottom: 20px;
  
}

.view-details {
  padding: 10px 20px;
  margin-bottom: -20px;
  background: var(--primary-dark);
  color: white;
  font-weight: 500;
  border-radius: 6px;
  text-align: center;
  display: inline-block;
  width: fit-content;
  transition: background-color 0.3s ease;
  text-decoration: none;  /* Added to remove underline */
}

.view-details:hover {
  background: var(--primary);
  text-decoration: none; /* Keep no underline on hover */
}

@media (max-width: 576px) {
  .property-info{
    max-width: 100%;
  }
  .description-preview{
    display: -webkit-box;
    -webkit-line-clamp: 4; /* 👈 number of lines you want to show */
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .property-features{
    justify-content: space-between;
  }
  .property-features span{
    gap: 5px;
  }
}

/*darkmode*/
 body.dark-mode #resultsCount{
  color: var(--gray-100);
}

body.dark-mode .property-card {
  background: #1e1e1e;
  border: 1px solid #1e1e1e;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.8);
}

body.dark-mode .property-title {
  /*color: var(--gold-dark) !important;*/
  /*background: linear-gradient(135deg, var(--gold-dark) 0%, var(--gold-light) 100%) !important;*/
  /*-webkit-background-clip: text !important;*/
  /*-webkit-text-fill-color: transparent !important;*/
  color: #CB9760;
}
body.dark-mode .property-location,
body.dark-mode .description-preview {
  color: var(--gray-100);
}

body.dark-mode #sortBy {
  background: #1e1e1e;
  color: var(--gray-100);
}