/* Search Results Page Styles Room2rent */
.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 */
/* Remove or keep existing filter styles as they're still used in results page */
/* Filter Inputs section remains unchanged as it's used elsewhere */

.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;
}

.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: rgba(208, 66, 120, 0.072);
  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;
}

/* 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;
}

/* Entrada-specific popup styles  
.calendar-popup-entrada {
   Inherits all base calendar-popup styles  
    Add any entrada-specific styling here if needed 
}*/

/* Salida-specific popup styles  
.calendar-popup-salida {
    Inherits all base calendar-popup styles  
    Add any salida-specific styling here if needed 
}*/

.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;
}

.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;
}

.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);
}

/* Mobile Search Button - Hidden on Desktop */
.filter-button-mobile {
  display: none;
}

/* 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);
}

/* Results Etiquettes Section */
.results-etiquettes-section {
  width: 100%;
  padding: 35px 0;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.results-etiquettes-title {
  font-size: 20px;
  font-weight: var(--font-light);
  color: var(--black);
  margin-bottom: 30px;
  display: flex;
  align-items: center;
  gap: 8px;
  width: 1106px;
  /* Match the total width of 7 etiquettes: 7 * 158px + 6 * 15px gaps */
  justify-content: flex-start;
}

.results-total-number {
  font-weight: var(--font-light);
}

/* Etiquettes Grid */
.results-etiquettes-grid {
  display: grid;
  grid-template-columns: repeat(7, 158px);
  justify-content: center;
  gap: 20px 15px;
  width: 100%;
}

/* First row - all 7 items take their normal positions  
.results-etiquettes-grid .etiquette-item:nth-child(-n + 7) {
  /* First 7 items stay in their normal grid positions 
}*/

/* Second row centering - create a subgrid effect for 6 items centered */
.results-etiquettes-grid .etiquette-item:nth-child(8) {
  grid-column: 2 / 3;
  /* Start from column 2 to leave one column space on left */
}

.results-etiquettes-grid .etiquette-item:nth-child(9) {
  grid-column: 3 / 4;
}

.results-etiquettes-grid .etiquette-item:nth-child(10) {
  grid-column: 4 / 5;
}

.results-etiquettes-grid .etiquette-item:nth-child(11) {
  grid-column: 5 / 6;
}

.results-etiquettes-grid .etiquette-item:nth-child(12) {
  grid-column: 6 / 7;
}

.results-etiquettes-grid .etiquette-item:nth-child(13) {
  grid-column: 7 / 8;
  /* End at column 7, leaving one column space on right */
}

/* Third row and beyond - reset to auto positioning */
.results-etiquettes-grid .etiquette-item:nth-child(n + 14) {
  grid-column: auto;
}

/* Etiquette Item */
.etiquette-item {
  width: 158px;
  height: 35px;
  background-color: #f4f4f4;
  border-radius: 6px;
  box-shadow: 0 2px 2px 0 rgba(0, 0, 0, 0.25);
  display: flex;
  align-items: center;
  padding: 0 12px;
  gap: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.etiquette-item:hover {
  background-color: #efefef;
  transform: translateY(-1px);
  box-shadow: 0 3px 4px 0 rgba(0, 0, 0, 0.3);
}

.etiquette-icon {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  touch-action: manipulation;
}

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

/* Rooms Section - Larger version for results page */
.rooms-section {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 40px 20px 60px;
  box-sizing: border-box;
}

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

/* Room cards - Larger dimensions for results page */
.room-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 */
.room-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;
}

/* Room Thumb Navigation Arrows */
.room-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);
}

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

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

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

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

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

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

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

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

/* Room Lines */
.room-line {
  display: flex;
  align-items: center;
}

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

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

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

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

.room-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 */
.room-description {
  font-size: 10px;
  font-weight: var(--font-medium);
  color: #3F3F3F;
  line-height: 1.3;
  display: block;
}

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

.room-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-icon {
  width: 114.77px;
  height: 26.68px;
  touch-action: manipulation;
}

.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);
}

.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);
}