/* Hero Search Section - Critical Styles */
.hero-search-section {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding-top: 80px;
}

.hero-video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(0, 0, 0, 0.5) 0%, rgba(0, 0, 0, 0.3) 100%);
  z-index: -1;
}

.hero-container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem;
  z-index: 1;
}

.hero-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3rem;
  text-align: center;
}

.hero-text h1 {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 700;
  color: white;
  margin-bottom: 1rem;
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  line-height: 1.2;
}

.hero-subtitle {
  font-size: clamp(1rem, 2vw, 1.3rem);
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 1rem;
  font-style: italic;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.hero-description {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: rgba(255, 255, 255, 0.8);
  max-width: 600px;
  line-height: 1.6;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
  margin: 0;
}

.modern-search-card {
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(20px);
  border-radius: 20px;
  padding: 2.5rem;
  box-shadow: 0 25px 80px rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.3);
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
  opacity: 1;
  transform: translateY(0);
}

.search-header {
  text-align: center;
  margin-bottom: 2.5rem;
}

.search-header h3 {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--castleton-green);
  margin: 0;
}

.search-form-container {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.search-row {
  display: grid;
  grid-template-columns: 2fr 1.2fr auto;
  gap: 1rem;
  align-items: end;
}

.search-field {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.search-field label {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 600;
  color: #333;
  font-size: 0.95rem;
}

.search-field label i {
  color: var(--castleton-green);
  font-size: 1rem;
}

.input-container {
  position: relative;
}

.search-input,
.search-select {
  width: 100%;
  padding: 1rem 1.2rem;
  border: 2px solid #e0e0e0;
  border-radius: 12px;
  font-size: 1rem;
  background: white;
  transition: all 0.3s ease;
  outline: none;
  font-family: inherit;
  color: #333;
}

.search-input::placeholder {
  color: #999;
}

.search-input:focus,
.search-select:focus {
  border-color: var(--castleton-green);
  box-shadow: 0 0 0 4px rgba(0, 93, 72, 0.1);
}

.search-input.focused {
  border-color: var(--castleton-green);
  box-shadow: 0 0 0 4px rgba(0, 93, 72, 0.1);
}

.search-input.has-selection {
  padding-right: 2.8rem;
}

.clear-btn {
  position: absolute;
  right: 1rem;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(239, 68, 68, 0.1);
  border: none;
  border-radius: 50%;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ef4444;
  cursor: pointer;
  transition: all 0.2s ease;
  font-size: 0.9rem;
}

.clear-btn:hover {
  background: rgba(239, 68, 68, 0.2);
  transform: translateY(-50%) scale(1.1);
}

.search-select {
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='none' stroke='%23005D48' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m2 5 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  background-size: 16px 12px;
  padding-right: 2.5rem;
}

.search-btn {
  background: linear-gradient(135deg, var(--castleton-green) 0%, #00a86b 100%);
  color: white;
  border: none;
  padding: 1rem 2rem;
  border-radius: 12px;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  box-shadow: 0 6px 20px rgba(0, 93, 72, 0.25);
  white-space: nowrap;
}

.search-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(0, 93, 72, 0.35);
}

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

.action-buttons {
  display: flex;
  gap: 1.2rem;
  justify-content: center;
  flex-wrap: wrap;
}

.action-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  padding: 1.1rem 2.2rem;
  border-radius: 12px;
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  transition: all 0.3s ease;
  border: 2px solid transparent;
  white-space: nowrap;
}

.primary-btn {
  background: linear-gradient(135deg, var(--castleton-green) 0%, #00a86b 100%);
  color: white;
  box-shadow: 0 6px 20px rgba(0, 93, 72, 0.25);
}

.primary-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(0, 93, 72, 0.35);
}

.secondary-btn {
  background: white;
  color: var(--castleton-green);
  border: 2px solid var(--castleton-green);
  box-shadow: 0 4px 12px rgba(0, 93, 72, 0.1);
}

.secondary-btn:hover {
  background: var(--castleton-green);
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(0, 93, 72, 0.25);
}

.action-btn i {
  font-size: 1rem;
  transition: transform 0.3s ease;
}

.action-btn:hover i {
  transform: translateX(4px);
}

/* Suggestions Dropdown */
.suggestions-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: white;
  border-radius: 12px;
  box-shadow: 0 15px 50px rgba(0, 0, 0, 0.15);
  border: 1px solid #e0e0e0;
  z-index: 1000;
  margin-top: 0.5rem;
  overflow: hidden;
  animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.suggestions-list {
  max-height: 280px;
  overflow-y: auto;
}

.suggestion-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.9rem 1.2rem;
  cursor: pointer;
  transition: all 0.2s ease;
  border-bottom: 1px solid #f0f0f0;
}

.suggestion-item:hover {
  background: linear-gradient(135deg, rgba(0, 93, 72, 0.05) 0%, rgba(0, 93, 72, 0.02) 100%);
  transform: translateX(4px);
}

.suggestion-item:last-child {
  border-bottom: none;
}

.suggestion-icon {
  width: 36px;
  height: 36px;
  background: linear-gradient(135deg, var(--castleton-green) 0%, #00a86b 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 0.9rem;
  flex-shrink: 0;
}

.suggestion-content {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  flex: 1;
}

.suggestion-name {
  font-weight: 600;
  color: #333;
  font-size: 0.95rem;
}

.suggestion-location {
  font-size: 0.85rem;
  color: #999;
}

.no-results {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  padding: 2rem 1.5rem;
  color: #999;
  text-align: center;
}

.no-results i {
  font-size: 2rem;
  opacity: 0.5;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .search-row {
    grid-template-columns: 1fr 1fr;
  }

  .search-btn {
    grid-column: 1 / -1;
  }

  .modern-search-card {
    padding: 2rem;
  }
}

@media (max-width: 768px) {
  .hero-search-section {
    min-height: auto;
    padding-top: 100px;
    padding-bottom: 2rem;
  }

  .hero-text h1 {
    font-size: 2rem;
  }

  .hero-subtitle {
    font-size: 1rem;
  }

  .hero-description {
    font-size: 0.95rem;
  }

  .hero-content {
    gap: 2rem;
  }

  .modern-search-card {
    padding: 1.5rem;
    border-radius: 16px;
  }

  .search-header h3 {
    font-size: 1.4rem;
  }

  .search-row {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .search-btn {
    width: 100%;
    justify-content: center;
  }

  .search-input,
  .search-select {
    padding: 0.9rem 1rem;
    font-size: 16px;
  }

  .action-buttons {
    flex-direction: column;
    gap: 0.8rem;
  }

  .action-btn {
    width: 100%;
    justify-content: center;
    padding: 1rem 1.5rem;
  }
}

@media (max-width: 480px) {
  .hero-search-section {
    padding-top: 90px;
    padding-bottom: 1.5rem;
  }

  .hero-text h1 {
    font-size: 1.6rem;
  }

  .hero-subtitle {
    font-size: 0.9rem;
  }

  .hero-description {
    font-size: 0.9rem;
  }

  .modern-search-card {
    padding: 1.2rem;
    border-radius: 14px;
  }

  .search-header h3 {
    font-size: 1.2rem;
  }

  .search-form-container {
    gap: 1.5rem;
  }

  .search-field label {
    font-size: 0.9rem;
  }

  .search-input,
  .search-select {
    padding: 0.85rem 1rem;
    font-size: 16px;
    border-radius: 10px;
  }

  .search-btn {
    padding: 0.9rem 1.5rem;
    font-size: 0.95rem;
  }

  .action-btn {
    padding: 0.95rem 1.2rem;
    font-size: 0.95rem;
    gap: 0.6rem;
  }

  .action-buttons {
    gap: 0.6rem;
  }
}
