/* Horizontal Search Form Styles */
.horizontal-search-container {
  margin: 40px 0;
  max-width: 1000px;
  margin-left: auto;
  margin-right: auto;
}

.horizontal-search-form {
  background: white;
  border-radius: 12px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
  overflow: visible;
}

.search-bar {
  display: flex;
  align-items: center;
  background: white;
  border-radius: 12px;
  overflow: visible;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  position: relative;
}

.search-dropdowns {
  display: flex;
  flex: 1;
  min-height: 60px;
}

.dropdown-container {
  position: relative;
  flex: 1;
  border-left: 1px solid #e1e5e9;
  z-index: 10;
  overflow: visible;
}

.dropdown-container:first-child {
  border-left: none;
}

.dropdown-button {
  width: 100%;
  height: 60px;
  background: white;
  border: none;
  padding: 0 20px;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  text-align: right;
  position: relative;
}

.dropdown-button:hover {
  background: #f7f2eb;
}

.dropdown-button.active {
  background: #f0f4ff;
  border-color: #b8860b;
}

.dropdown-title {
  font-size: 12px;
  color: #666;
  font-weight: 500;
  margin-bottom: 2px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.dropdown-value {
  font-size: 16px;
  color: #333;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 200px;
}

.dropdown-arrow {
  position: absolute;
  left: 15px;
  top: 50%;
  transform: translateY(-50%);
  color: #999;
  font-size: 12px;
  transition: transform 0.3s ease;
}

/* Arabic - arrow on the left */
html[lang="ar"] .dropdown-arrow {
  left: 15px !important;
  right: auto !important;
}

/* English - arrow on the right */
html[lang="en"] .dropdown-arrow {
  left: auto !important;
  right: 15px !important;
}

.dropdown-button.active .dropdown-arrow {
  transform: translateY(-50%) rotate(180deg);
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: white;
  border: 1px solid #e1e5e9;
  border-top: none;
  border-radius: 0 0 8px 8px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
  z-index: 9999;
  max-height: 400px;
  overflow-y: auto;
  visibility: hidden;
  opacity: 0;
  transform: translateY(-10px);
  transition: all 0.3s ease;
  pointer-events: none;
}

.dropdown-menu.show {
  visibility: visible;
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.dropdown-options {
  padding: 15px;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.option-group {
  margin-bottom: 0;
}

.option-group h4 {
  font-size: 12px;
  color: #4a1a5c;
  font-weight: 600;
  margin-bottom: 8px;
  padding-bottom: 3px;
  border-bottom: 1px solid #f0f0f0;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  text-align: center;
}

.option-group .options-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
}

.option-item {
  padding: 8px 12px;
  cursor: pointer;
  border-radius: 20px;
  transition: all 0.2s ease;
  font-size: 13px;
  color: #333;
  margin-bottom: 0;
  background: #f7f2eb;
  border: 1px solid #e1e5e9;
  white-space: nowrap;
  min-width: fit-content;
}

.option-item:hover {
  background: #4a1a5c;
  color: white;
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(74, 26, 92, 0.2);
}

.option-item.selected {
  background: #4a1a5c;
  color: white;
  border-color: #4a1a5c;
  box-shadow: 0 2px 8px rgba(74, 26, 92, 0.3);
}

.date-picker-container {
  padding: 10px 0;
}

.custom-date-input {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid #e1e5e9;
  border-radius: 6px;
  font-size: 15px;
  color: #333;
  background: white;
}

.custom-date-input:focus {
  outline: none;
  border-color: #4a1a5c;
  box-shadow: 0 0 0 3px rgba(74, 26, 92, 0.1);
}

.search-submit-button {
  background: linear-gradient(135deg, #8e7cc3 0%, #6b2c7a 100%);
  color: white;
  border: none;
  padding: 0 20px;
  height: 50px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-width: 120px;
  white-space: nowrap;
  border-radius: 25px;
}

.search-submit-button:hover {
  background: linear-gradient(135deg, #7c6bb8 0%, #5a2568 100%);
  transform: translateY(-1px);
  box-shadow: 0 4px 15px rgba(142, 124, 195, 0.3);
}

.search-submit-button:active {
  transform: translateY(0);
}

.search-icon {
  font-size: 16px;
}

.search-text {
  font-size: 14px;
  font-weight: 600;
}

/* Search Results Styles */
.search-results {
  margin-top: 30px;
  padding: 20px;
  background: white;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.results-header {
  text-align: center;
  margin-bottom: 25px;
  padding-bottom: 15px;
  border-bottom: 2px solid #f0f0f0;
}

.results-header h3 {
  color: #333;
  font-size: 1.5rem;
  margin-bottom: 8px;
}

.results-header p {
  color: #666;
  font-size: 1rem;
}

.results-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.result-item {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 20px;
  border: 2px solid #f0f0f0;
  border-radius: 12px;
  transition: all 0.3s ease;
  background: #fafafa;
}

.result-item:hover {
  border-color: #4a1a5c;
  box-shadow: 0 4px 15px rgba(74, 26, 92, 0.1);
  transform: translateY(-2px);
}

.result-info {
  flex: 1;
  text-align: right;
}

.result-info h4 {
  color: #333;
  font-size: 1.2rem;
  margin-bottom: 8px;
}

.result-location {
  color: #666;
  margin-bottom: 10px;
  font-size: 0.9rem;
}

.result-rating {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 10px;
}

.result-rating span:first-child {
  color: #ffa500;
  font-weight: 600;
}

.result-price {
  color: #4a1a5c;
  font-weight: 600;
  font-size: 1.1rem;
}

.result-times {
  min-width: 250px;
  text-align: right;
}

.result-times h5 {
  color: #333;
  margin-bottom: 10px;
  font-size: 1rem;
}

.time-slots {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.time-slot {
  background: white;
  border: 2px solid #e1e5e9;
  color: #333;
  padding: 8px 12px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 0.9rem;
  font-weight: 500;
}

.time-slot:hover {
  border-color: #4a1a5c;
  background: #4a1a5c;
  color: white;
  transform: translateY(-1px);
}

.time-slot:active {
  transform: translateY(0);
}

/* Responsive Horizontal Search Form */
@media (max-width: 1024px) {
  .search-dropdowns {
    flex-wrap: wrap;
  }
  
  .dropdown-container {
    flex: 1 1 50%;
    min-width: 200px;
  }
  
  .search-submit-button {
    flex: 1 1 100%;
    margin-top: 10px;
    border-radius: 8px;
  }
}

@media (max-width: 768px) {
  .horizontal-search-container {
    margin: 20px;
  }
  
  .search-dropdowns {
    flex-direction: column;
  }
  
  .dropdown-container {
    flex: none;
    border-left: none;
    border-bottom: 1px solid #e1e5e9;
  }
  
  .dropdown-container:last-child {
    border-bottom: none;
  }
  
  .search-submit-button {
    flex: none;
    margin-top: 0;
    border-radius: 0;
    min-width: auto;
  }
  
  .dropdown-menu {
    position: fixed;
    top: auto;
    left: 20px;
    right: 20px;
    bottom: 20px;
    max-height: 60vh;
    border-radius: 12px;
    border: 1px solid #e1e5e9;
  }
  
  .result-item {
    flex-direction: column;
    gap: 15px;
  }
  
  .result-times {
    min-width: auto;
    width: 100%;
  }
  
  .time-slots {
    justify-content: center;
  }
  
  .search-results {
    margin: 20px;
    padding: 15px;
  }
  
  .dropdown-options {
    padding: 10px;
    gap: 10px;
  }
  
  .option-group h4 {
    font-size: 11px;
    margin-bottom: 6px;
  }
  
  .options-row {
    gap: 6px;
  }
  
  .option-item {
    padding: 6px 10px;
    font-size: 12px;
  }
}



