/* Search Results Page Styles Flat2rent */
.main-content {
  margin-top: 90px; /* Same as home page for navbar spacing */
  min-height: 100vh;
}

/* Results Header Section */
.results-header {
  width: 100%;
  background-color: var(--bg-body-page);

  padding-top: 80px;
}

.results-container {
  max-width: 1200px;
  margin: 0 auto;
  /*padding: 0 150px;  150px from left as requested */
}

.results-header-content {
  display: flex;
  align-items: baseline;
  gap: 20px;
}

.results-title {
  font-size: 36px;
  font-weight: var(--font-bold);
  color: var(--black);
  margin: 0;
}

.results-subtitle {
  font-size: 20px;
  font-weight: var(--font-light);
  color: var(--black);
  margin: 0;
}

/* Results Content Section */
.results-content {
  width: 100%;
  padding: 40px 20px;
}

/* Search Summary */
.search-summary {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 40px;
  padding: 20px;
  background-color: var(--white);
  border-radius: 12px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.search-info {
  font-size: 20px;
  font-weight: var(--font-semibold);
  color: var(--black);
}

.search-filters {
  font-size: 16px;
  font-weight: var(--font-regular);
  color: var(--dark-gray);
}

/* Results Grid */
.results-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 20px;
}

/* Placeholder for loading state */
.results-placeholder {
  grid-column: 1 / -1;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 60px 20px;
  background-color: var(--white);
  border-radius: 12px;
  border: 2px dashed rgba(0, 0, 0, 0.1);
}

.results-placeholder p {
  font-size: 18px;
  color: var(--dark-gray);
  margin: 0;
}

/* Filter Section */
.filter-section {
  width: 100%;
  display: flex;
  justify-content: center;
  padding-left: 20px;
  padding-right: 20px;
  padding-top: 50px;

  box-sizing: border-box;
}

.filter-container {
  display: flex;
  justify-content: center;
  width: 100%;
}

/* Filter Block */
.filter-block {
  width: 1215px; /* Fixed width as requested */
  height: 327px;
  background-color: var(--white);
  border-radius: 30px;
  display: flex;
  flex-direction: column;
  justify-content: space-around;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  padding: 40px;
  box-sizing: border-box;
  margin: 0 auto;
}

/* Filter Top Row */
.filter-top-row {
  display: flex;
  align-items: center;
}

/* Filter Column */
.filter-col {
  flex: 1;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 20px 30px;
  position: relative;
}

/* Filter Column Separator */
.filter-col:not(:last-child)::after {
  content: "";
  position: absolute;
  right: 0;
  top: 20%;
  bottom: 20%;
  width: 1px;
  background-color: rgba(0, 0, 0, 0.32);
}

/* Filter Column Labels */
.filter-label {
  font-size: 20px;
  font-weight: var(--font-regular);
  color: var(--black);
  margin-bottom: 10px;
  text-transform: uppercase;
}

/* Filter Inputs */
.filter-input {
  border: none;
  outline: none;
  background: transparent;
  font-size: 16px;
  color: var(--dark-gray);
  cursor: pointer;
  position: relative;
}

.filter-input::placeholder {
  color: var(--dark-gray);
  opacity: 0.7;
}

/* Date Input with Calendar Icon */
.date-input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  touch-action: manipulation;
}

.date-input {
  width: 100%;
  padding-right: 30px;
  cursor: pointer;
}
/* Select Input */
/* Enhanced Select Input Styles */
.select-input {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;

  /* Layout */
  width: 100%;
  padding: 8px 35px 8px 12px;

  /* Typography */
  font-size: 16px;
  font-weight: var(--font-regular);
  color: var(--black);
  font-family: var(--font-family-primary);
  /* Background & Border */
  background-color: transparent;
  background-image: url("../../img/Icons/arrow-down.svg");
  background-repeat: no-repeat;
  background-position: right 8px center;
  background-size: 14px;
  border: none;
  border-radius: 8px;
  outline: none;

  /* Interaction */
  cursor: pointer;
  transition: all 0.3s ease;
}

/* Hover Effect */
.select-input:hover {
  background-color: rgba(208, 66, 120, 0.05);
}

/* Focus Effect */
.select-input:focus {
  background-color: rgba(208, 66, 120, 0.08);
  box-shadow: 0 0 0 2px rgba(208, 66, 120, 0.15);
}

/* Active/Selected State */
.select-input:active {
  background-color: rgba(208, 66, 120, 0.1);
}

/* Placeholder/Default Option Styling */
.select-input option {
  padding: 10px;
  background-color: var(--white);
  color: var(--black);
  font-weight: var(--font-regular);
  font-family: var(--font-family-primary);
  font-size: 15px;
}

/* Selected Option Styling */
.select-input option:checked {
  background-color: var(--pink);
  color: var(--white);
  font-style: italic;
}

/* Disabled State */
.select-input:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  background-color: #f5f5f5;
}

/* Custom scrollbar for dropdown (webkit browsers) */
.select-input::-webkit-scrollbar {
  width: 8px;
}

.select-input::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 4px;
}

.select-input::-webkit-scrollbar-thumb {
  background: var(--pink);
  border-radius: 4px;
}

.select-input::-webkit-scrollbar-thumb:hover {
  background: #b8396a;
}
.calendar-icon {
  position: absolute;
  right: 0;
  width: 20px;
  height: 20px;
  cursor: pointer;
  touch-action: manipulation;
}

/* Mobile button hidden by default, shown on tablet/mobile */
.filter-button-mobile {
  display: none;
}

/* Calendar popup (copied + adjusted from home.css) */
.calendar-popup {
  position: absolute;
  top: calc(100% + 8px); /* place below input with small gap */
  left: 0; /* align to input left */
  /* avoid right:0 so popup doesn't stretch vertically/full width */
  width: 320px; /* fixed reasonable width */
  max-width: calc(100vw - 40px);
  background: var(--white);
  border: 1px solid #ddd;
  border-radius: 8px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
  z-index: 1200; /* ensure above other elements */
  display: none;
  padding: 12px;
  box-sizing: border-box;
  max-height: 380px; /* prevent excessively tall popup */
  overflow: auto; /* allow scrolling if content larger */
}

.calendar-popup.active {
  display: block;
}

.calendar-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.calendar-nav {
  background: none;
  border: none;
  font-size: 18px;
  cursor: pointer;
  padding: 5px;
  border-radius: 4px;
  transition: background-color 0.2s ease;
}

.calendar-nav:hover {
  background-color: #f0f0f0;
}

.calendar-month-year {
  font-weight: var(--font-semibold);
  font-size: 14px;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 4px;
  transition: background-color 0.2s ease;
  user-select: none;
  touch-action: manipulation;
}

.calendar-month-year:hover {
  background-color: rgba(208, 66, 120, 0.1);
}

/* Month Selector Dropdown */
.calendar-month-selector {
  max-height: 250px;
  overflow-y: auto;
  border-top: 1px solid #e0e0e0;
  border-bottom: 1px solid #e0e0e0;
  margin: 8px 0;
}

.month-selector-list {
  display: flex;
  flex-direction: column;
}

.month-option {
  padding: 10px 16px;
  cursor: pointer;
  font-size: 14px;
  font-weight: var(--font-regular);
  color: var(--black);
  transition: all 0.2s ease;
  border-radius: 4px;
  margin: 2px 8px;
  touch-action: manipulation;
}

.month-option:hover {
  background-color: rgba(208, 66, 120, 0.1);
}

.month-option.selected {
  background-color: var(--pink);
  color: var(--white);
  font-weight: var(--font-semibold);
}

/* Custom scrollbar for month selector */
.calendar-month-selector::-webkit-scrollbar {
  width: 6px;
}

.calendar-month-selector::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 3px;
}

.calendar-month-selector::-webkit-scrollbar-thumb {
  background: var(--pink);
  border-radius: 3px;
}

.calendar-month-selector::-webkit-scrollbar-thumb:hover {
  background: #b8396a;
}

.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 6px;
}

.calendar-day-header {
  text-align: center;
  font-size: 12px;
  font-weight: var(--font-semibold);
  color: var(--dark-gray);
  padding: 6px 4px;
  min-width: 28px;
}

.calendar-day {
  text-align: center;
  padding: 8px 4px;
  cursor: pointer;
  border-radius: 6px;
  font-size: 14px;
  transition: background-color 0.15s ease;
  min-width: 28px;
  min-height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.calendar-day:hover {
  background-color: rgba(208, 66, 120, 0.08);
}

.calendar-day.selected {
  background-color: var(--pink);
  color: var(--white);
}

.calendar-day.other-month {
  color: #ccc;
}

.calendar-day.disabled {
  color: #ccc;
  cursor: not-allowed;
  background-color: #f5f5f5;
}

.calendar-day.disabled:hover {
  background-color: #f5f5f5;
}

/* Search Button Column */
.filter-button-col {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 0 30px;
}

/* Search Button */
.search-button {
  width: 158px;
  height: 47px;
  border-radius: 50px;
  border: 1px solid var(--pink);
  background-color: transparent;
  color: var(--pink);
  font-size: 19px;
  font-weight: var(--font-regular);
  cursor: pointer;
  transition: all 0.3s ease;
  text-transform: uppercase;
}

.search-button:hover {
  background-color: var(--pink);
  color: var(--white);
}

/* Filter Bottom Row */
.filter-bottom-row {
  display: grid;
  grid-template-columns: 1fr 2fr 2fr 2fr; /* Make other columns wider than FILTRAR */
  gap: 40px; /* Increase gap for better spacing */
  align-items: center;
  padding-top: 30px;
  width: 100%; /* Remove the 120% width */
  margin-left: 0; /* Remove the negative margin */
}

.filter-bottom-col {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.filter-bottom-field {
  display: flex;
  align-items: center;
  gap: 15px; /* Space between label and input */
}

.filter-title {
  font-size: 20px;
  font-weight: var(--font-semibold);
  color: var(--black);
  margin: 0;
  height: 55px;
  display: flex;
  align-items: center;
}

.filter-bottom-label {
  font-size: 20px;
  font-weight: var(--font-regular);
  color: var(--black);
  white-space: nowrap; /* Prevent label text wrapping */
  min-width: fit-content;
}

.filter-bottom-select {
  width: 158px;
  height: 55px;
  padding: 0 16px;
  border: 1px solid #ddd;
  border-radius: 6px;
  font-size: 16px;
  font-weight: var(--font-regular);
  color: var(--black);
  background-color: var(--white);
  background-image: url("../../img/Icons/arrow-down.svg");
  background-repeat: no-repeat;
  background-position: right 8px center;
  background-size: 14px;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  cursor: pointer;
}

.filter-bottom-select:focus {
  outline: none;
  border-color: var(--pink);
}

/* Multi-Select Dropdown Styles */
.multi-select-wrapper {
  position: relative;
  width: 158px;
}

.multi-select-display {
  width: 100%;
  height: 55px;
  padding: 0 35px 0 16px;
  border: 1px solid #ddd;
  border-radius: 6px;
  background-color: var(--white);
  display: flex;
  align-items: center;
  cursor: pointer;
  transition: border-color 0.3s ease;
  position: relative;
}

.multi-select-display:hover {
  border-color: var(--pink);
}

.multi-select-display.active {
  border-color: var(--pink);
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
}

.multi-select-placeholder {
  font-size: 16px;
  font-weight: var(--font-regular);
  color: var(--black);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  flex: 1;
}

.multi-select-arrow {
  position: absolute;
  right: 8px;
  width: 14px;
  height: 14px;
  transition: transform 0.3s ease;
  pointer-events: none;
}

.multi-select-display.active .multi-select-arrow {
  transform: rotate(180deg);
}

.multi-select-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background-color: var(--white);
  border: 1px solid var(--pink);
  border-top: none;
  border-radius: 0 0 6px 6px;
  max-height: 200px;
  overflow-y: auto;
  z-index: 1000;
  display: none;
}

.multi-select-dropdown.active {
  display: block;
}

.multi-select-option {
  display: flex;
  align-items: center;
  padding: 12px 16px;
  cursor: pointer;
  transition: background-color 0.2s ease;
  font-size: 16px;
  font-weight: var(--font-regular);
  color: var(--black);
}

.multi-select-option:hover {
  background-color: rgba(208, 66, 120, 0.05);
}

.multi-select-option input[type="checkbox"] {
  display: none;
}

.checkmark {
  width: 16px;
  height: 16px;
  border: 1px solid #ddd;
  border-radius: 3px;
  margin-right: 12px;
  position: relative;
  transition: all 0.3s ease;
  flex-shrink: 0;
}

.multi-select-option input[type="checkbox"]:checked + .checkmark {
  background-color: var(--pink);
  border-color: var(--pink);
}

.multi-select-option input[type="checkbox"]:checked + .checkmark::after {
  content: "✓";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: var(--white);
  font-size: 11px;
  font-weight: bold;
}

.option-text {
  flex: 1;
}

/* Flats Section (renamed selectors) */
.flats-section {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 40px 20px 60px;
  box-sizing: border-box;
}

.flats-list {
  margin: 0 auto;
  display: flex;
  gap: 63px; /* Increased from 53px */
  justify-content: center;
  box-sizing: border-box;
}

/* Details link wrapper */
.details-link {
  text-decoration: none;
  color: inherit;
}

/* Flat cards (renamed) */
.flat-card {
  width: 377px;
  height: 316px;
  border-radius: 10px;
  background: var(--white);
  overflow: hidden;
  box-shadow: 0 4px 4px 0 rgba(0, 0, 0, 0.25);
  display: flex;
  flex-direction: column;
}

/* Thumb image */
.flat-thumb {
  width: 100%;
  height: 225px;
  background-size: cover;
  background-position: center;
  border-top-left-radius: 10px;
  border-top-right-radius: 10px;
  position: relative;
  transition: background-image 0.3s ease;
}

/* Flat Thumb Navigation Arrows */
.flat-thumb-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 32px;
  height: 32px;
  background: rgba(255, 255, 255, 0.9);
  border: none;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  z-index: 10;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.flat-thumb-nav:hover {
  background: rgba(255, 255, 255, 1);
  transform: translateY(-50%) scale(1.1);
}

.flat-thumb-nav svg {
  color: var(--black);
}

.flat-thumb-nav-prev {
  left: 10px;
}

.flat-thumb-nav-next {
  right: 10px;
}

/* Show arrows on flat-thumb hover */
.flat-thumb:hover .flat-thumb-nav {
  opacity: 1;
  visibility: visible;
}

/* Disabled state */
.flat-thumb-nav:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

.flat-thumb-nav:disabled:hover {
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.9);
}

/* Info area */
.flat-info {
  padding: 12px 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  color: var(--dark-gray);
  text-align: left;
  flex: 1;
}

/* Flat Lines */
.flat-line {
  display: flex;
  align-items: center;
}

/* First Line: Owner and Price */
.flat-header {
  justify-content: space-between;
  align-items: center;
}

.flat-owner-section {
  display: flex;
  align-items: center;
  gap: 6px;
}

.owner-icon {
  width: 23px;
  height: 23px;
  flex-shrink: 0;
}

.flat-owner {
  font-size: 14px;
  font-weight: var(--font-regular);
  color: #3F3F3F;
}

.flat-price {
  display: flex;
  align-items: baseline;
  gap: 2px;
}

.price-value {
  color: var(--pink);
  font-weight: var(--font-semibold);
  font-size: 24px;
}

.price-unit {
  font-size: 11px;
  font-weight: var(--font-regular);
  color: #3F3F3F;
}

/* Second Line: Description */
.flat-description {
  font-size: 10px;
  font-weight: var(--font-medium);
  color: #3F3F3F;
  line-height: 1.3;
  display: block;
}

/* Third Line: Zone and Pricing Details */
.flat-footer {
  justify-content: space-between;
  align-items: center;
}

.flat-zone {
  display: flex;
  align-items: center;
  gap: 4px;
}

.zone-label {
  font-size: 13px;
  font-weight: var(--font-bold);
  color: #3F3F3F;
}

.zone-value {
  font-size: 13px;
  font-weight: var(--font-regular);
  color: #3F3F3F;
}

.pricing-details {
  display: flex;
  align-items: center;
  gap: 4px;
}

.info-icon {
  width: 17px;
  height: 17px;
  flex-shrink: 0;
  filter: saturate(0) brightness(0.85);
}

.pricing-text {
  font-size: 10px;
  font-weight: var(--font-regular);
  color: #606060;
}

/* Map Section (placeholder for Google Maps API) */
.map-section {
  width: 100%;
  display: flex;
  justify-content: center;
  padding: 40px 20px;
  box-sizing: border-box;
}

.map-container {
  width: 100%;
  height: 360px;
  background: linear-gradient(
    180deg,
    #cfffff 0%,
    #d6f5fd 100%
  ); /* placeholder look */
  border-radius: 12px;
  border: 1px solid rgba(0, 0, 0, 0.06);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.04);
}

/* Doubts Section */
.doubts-section {
  width: 100%;
  display: flex;
  justify-content: center;
  padding: 40px 20px 60px;
  box-sizing: border-box;
}

.doubts-container {
  width: 1114px;
  height: 267px;
  background: rgba(250, 250, 250, 1);
  border-radius: 50px;
  display: flex;
  align-items: center;
  padding: 0 60px;
  box-sizing: border-box;
  box-shadow: 6px 6px 30px -1px rgba(0, 0, 0, 0.25);
}

.doubts-content {
  flex: 1;
  padding-right: 40px;
}

.doubts-title {
  font-size: 36px;
  font-weight: var(--font-semibold);
  color: var(--black);
  margin: 0 0 30px 0;
  line-height: 1.1;
}

.doubts-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.doubts-item {
  font-size: 20px;
  font-weight: var(--font-medium);
  color: var(--black);
  margin-bottom: 15px;
  line-height: 1.4;
  position: relative;
  padding-left: 20px;
}

.doubts-item::before {
  content: "•";
  position: absolute;
  left: 0;
  color: var(--black);
  font-weight: bold;
}

.doubts-item:last-child {
  margin-bottom: 0;
}

.doubts-actions {
  display: flex;
  flex-direction: column;
  gap: 15px;
  align-items: center;
}

.whatsapp-button {
  width: 218px;
  height: 55px;
  border-radius: 50px;
  border: none;
  background-color: var(--pink);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
}

.whatsapp-button:hover {
  background-color: #b8396a;
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(208, 66, 120, 0.3);
}
.whatsapp-icon {
  width: 114.77px;
  height: 26.68px;
  touch-action: manipulation;

}
.contact-button {
  width: 218px;
  height: 55px;
  border-radius: 50px;
  border: 1px solid var(--pink);
  background-color: rgba(250, 250, 250, 1);
  color: var(--pink);
  font-size: 20px;
  font-weight: var(--font-medium);
  cursor: pointer;
  text-transform: uppercase;
  transition: all 0.3s ease;
}

.contact-button:hover {
  background-color: var(--pink);
  color: var(--white);
}
