/* ===== HEADER SEARCH - AIRBNB MINIMAL STYLE ===== */

/* Search Form Container */
.header-search-form {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 1;
  max-width: 600px;
  margin: 0 auto;
}

/* Search Input Wrapper */
.header-search-wrapper {
  position: relative;
  width: 100%;
  max-width: 500px;
}

/* Search Input */
.header-search-input {
  width: 100%;
  padding: 12px 50px 12px 20px;
  border: 1px solid #DDDDDD;
  border-radius: 50px;
  font-size: 15px;
  font-weight: 400;
  color: #222;
  background: white;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.06);
  outline: none;
}

.header-search-input::placeholder {
  color: #717171;
  font-weight: 400;
}

.header-search-input:focus {
  border-color: #222;
  box-shadow: 0 3px 12px rgba(0, 0, 0, 0.12);
}

/* Search Button - Minimalist Cyan Style */
.header-search-btn {
  position: absolute;
  right: 6px;
  top: 50%;
  transform: translateY(-50%);
  width: 36px;
  height: 36px;
  background: white;
  border: 2px solid #06B6D4;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 1px 3px rgba(6, 182, 212, 0.15);
}

.header-search-btn:hover {
  transform: translateY(-50%) scale(1.05);
  background: #06B6D4;
  box-shadow: 0 3px 10px rgba(6, 182, 212, 0.25);
}

.header-search-btn:active {
  transform: translateY(-50%) scale(0.98);
}

.header-search-btn i {
  color: #06B6D4;
  font-size: 16px;
  transition: color 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.header-search-btn:hover i {
  color: white;
}

/* Mobile Search Section - under header */
.mobile-search-section {
  display: none;
  padding: 15px 0;
  background: white;
  border-bottom: 1px solid #EFEFEF;
  position: sticky;
  top: 70px;
  z-index: 998;
}

.mobile-search-section .header-search-wrapper {
  max-width: 100%;
}

/* Hide desktop search on mobile */
@media (max-width: 991px) {
  .header-search-form {
    display: none !important;
  }

  .mobile-search-section {
    display: block;
  }
}

/* Adjust header for full width */
.header .container-fluid {
  padding-left: 20px;
  padding-right: 20px;
}

@media (min-width: 1400px) {
  .header .container-fluid {
    padding-left: 40px;
    padding-right: 40px;
  }
}

/* Header layout adjustments */
.header .d-flex {
  gap: 20px;
}

/* Logo adjustment */
.header__logo {
  flex-shrink: 0;
}

/* Links adjustment */
.header__links {
  flex-shrink: 0;
}

/* Autocomplete dropdown (for future use) */
.search-autocomplete {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  background: white;
  border-radius: 16px;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.12);
  max-height: 400px;
  overflow-y: auto;
  z-index: 1000;
  display: none;
}

.search-autocomplete.active {
  display: block;
}

.search-autocomplete-item {
  padding: 12px 20px;
  cursor: pointer;
  transition: background 0.2s ease;
  display: flex;
  align-items: center;
  gap: 12px;
}

.search-autocomplete-item:hover {
  background: #F7F7F7;
}

.search-autocomplete-item i {
  color: #717171;
  font-size: 16px;
}

.search-autocomplete-item:first-child {
  border-radius: 16px 16px 0 0;
}

.search-autocomplete-item:last-child {
  border-radius: 0 0 16px 16px;
}

/* Responsive adjustments */
@media (max-width: 1200px) {
  .header-search-wrapper {
    max-width: 400px;
  }
}

@media (max-width: 991px) {
  .header-search-input {
    font-size: 14px;
    padding: 10px 45px 10px 18px;
  }

  .header-search-btn {
    width: 32px;
    height: 32px;
    border: 1.5px solid #06B6D4;
  }

  .header-search-btn i {
    font-size: 14px;
  }
}
