.search-weather-container {
  display: flex;
  gap: 2rem;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto 2rem;
  position: relative;
  z-index: 100;
}

.weather-section {
  flex: 1;
  min-width: 300px;
  max-width: 400px;
  position: relative;
  z-index: 1;
}

.weather-data {
  background: linear-gradient(135deg, #74b9ff 0%, #0984e3 100%);
  color: white;
  border-radius: 16px;
  padding: 1.5rem;
  box-shadow: 0 8px 25px rgba(116, 185, 255, 0.3);
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.weather-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.weather-header i {
  font-size: 1.1rem;
  opacity: 0.9;
}

.weather-location {
  font-weight: 600;
  font-size: 1.1rem;
}

.weather-main {
  display: flex;
  gap: 1rem;
  align-items: center;
  margin-bottom: 1rem;
}

.weather-icon-temp {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex: 1;
}

.weather-icon-temp i {
  font-size: 3rem;
  opacity: 0.9;
}

.temperature {
  display: flex;
  flex-direction: column;
}

.temp-value {
  font-size: 2.5rem;
  font-weight: 700;
  line-height: 1;
}

.temp-feels {
  font-size: 0.85rem;
  opacity: 0.9;
  margin-top: 0.25rem;
}

.weather-details {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.weather-desc {
  font-size: 1.1rem;
  font-weight: 500;
  text-transform: capitalize;
}

.weather-stats {
  display: flex;
  gap: 1rem;
}

.weather-stat {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
  opacity: 0.9;
}

.weather-stat i {
  font-size: 0.8rem;
}

.weather-timestamp {
  border-top: 1px solid rgba(255, 255, 255, 0.3);
  padding-top: 0.75rem;
  text-align: center;
}

.weather-timestamp small {
  opacity: 0.8;
  font-size: 0.8rem;
}

.weather-loading,
.weather-error {
  background: #f8f9fa;
  border: 2px dashed #dee2e6;
  border-radius: 16px;
  padding: 2rem;
  text-align: center;
  color: #6c757d;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  height: 100%;
  justify-content: center;
}

.weather-loading i,
.weather-error i {
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

/* ===== SEARCH SECTION ===== */
.search-section {
  flex: 1;
  min-width: 400px;
  position: relative;
}

.search-box {
  background: white;
  border-radius: 50px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  border: 2px solid #e9ecef;
  transition: all 0.3s ease;
  position: relative;
  z-index: 1000;
}

.search-box:focus-within {
  border-color: var(--honolulu-blue);
  box-shadow: 0 4px 25px rgba(0, 119, 182, 0.2);
  transform: translateY(-2px);
}

.search-input-group {
  position: relative;
  display: flex;
  align-items: center;
  padding: 0.5rem 1rem;
}

.search-icon {
  color: var(--honolulu-blue);
  font-size: 1.1rem;
  margin-right: 0.75rem;
  flex-shrink: 0;
}

.search-input {
  border: none;
  outline: none;
  font-size: 1rem;
  padding: 0.75rem 0;
  width: 100%;
  background: transparent;
  color: #333;
}

.search-input::placeholder {
  color: #6c757d;
  font-size: 0.9rem;
}

.clear-search {
  background: none;
  border: none;
  color: #6c757d;
  cursor: pointer;
  padding: 0.25rem;
  border-radius: 50%;
  transition: all 0.2s ease;
  flex-shrink: 0;
  margin-left: 0.5rem;
}

.clear-search:hover {
  background: #f8f9fa;
  color: #dc3545;
}

.search-results-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: white;
  border-radius: 16px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  margin-top: 8px;
  overflow: hidden;
  border: 1px solid #e9ecef;
  max-height: 500px;
  overflow-y: auto;
  z-index: 9999;
  animation: dropdownSlideDown 0.3s ease;
}

@keyframes dropdownSlideDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.search-results-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 1.5rem;
  background: #f8f9fa;
  border-bottom: 1px solid #e9ecef;
  position: sticky;
  top: 0;
  z-index: 1;
}

.search-results-header span {
  font-weight: 600;
  color: #2c3e50;
  font-size: 0.95rem;
}

.close-results {
  background: none;
  border: none;
  color: #6c757d;
  cursor: pointer;
  padding: 0.5rem;
  border-radius: 50%;
  transition: all 0.2s ease;
  font-size: 1rem;
}

.close-results:hover {
  background: #e9ecef;
  color: #dc3545;
}

.search-results-body {
  max-height: 400px;
  overflow-y: auto;
  padding: 1rem;
}

/* Search Results List */
.search-results-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.search-result-item {
  display: flex;
  align-items: center;
  padding: 1rem;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.2s ease;
  border: 1px solid transparent;
  background: #f8f9fa;
}

.search-result-item:hover {
  background: white;
  border-color: #3498db;
  transform: translateX(4px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.result-content {
  flex: 1;
  margin-right: 1rem;
}

.result-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 0.5rem;
}

.result-title {
  margin: 0;
  color: #2c3e50;
  font-weight: 600;
  font-size: 1rem;
  line-height: 1.3;
}

.result-category {
  background: #3498db;
  color: white;
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  white-space: nowrap;
  margin-left: 0.5rem;
}

.result-description {
  margin: 0 0 0.75rem 0;
  color: #6c757d;
  font-size: 0.9rem;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.result-keywords {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.keyword-tag {
  background: #e3f2fd;
  color: #1976d2;
  padding: 0.2rem 0.6rem;
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: 500;
  border: 1px solid #bbdefb;
}

.result-arrow {
  color: #3498db;
  font-size: 1rem;
  transition: transform 0.2s ease;
}

.search-result-item:hover .result-arrow {
  transform: translateX(3px);
}

.no-results {
  padding: 2rem 1.5rem;
  text-align: center;
  color: #6c757d;
}

.no-results-icon {
  font-size: 2.5rem;
  color: #dee2e6;
  margin-bottom: 1rem;
}

.no-results p {
  margin: 0 0 1rem 0;
  font-weight: 500;
  font-size: 1.1rem;
}

.no-results small {
  font-size: 0.9rem;
}

@media (max-width: 1024px) {
  .search-weather-container {
    gap: 1.5rem;
  }

  .weather-section {
    min-width: 280px;
    max-width: 350px;
  }

  .search-section {
    min-width: 350px;
  }
}

@media (max-width: 900px) {
  .search-weather-container {
    gap: 1rem;
  }

  .weather-section {
    min-width: 250px;
    max-width: 300px;
  }

  .search-section {
    min-width: 300px;
  }

  .weather-data {
    padding: 1.25rem;
  }

  .temp-value {
    font-size: 2.2rem;
  }

  .weather-icon-temp i {
    font-size: 2.5rem;
  }
}

/* Mobile styles for 768px and below */
@media (max-width: 768px) {
  .search-weather-container {
    flex-direction: column;
    gap: 1rem;
    padding: 0 1rem;
  }

  .weather-section,
  .search-section {
    min-width: 100%;
    max-width: 100%;
    width: 100%;
  }

  .weather-data {
    padding: 1rem;
    text-align: center;
  }

  .weather-main {
    flex-direction: column;
    text-align: center;
    gap: 1rem;
  }

  .weather-icon-temp {
    justify-content: center;
    flex-direction: column;
    gap: 0.5rem;
  }

  .weather-icon-temp i {
    font-size: 2.5rem;
  }

  .temp-value {
    font-size: 2rem;
  }

  .weather-details {
    align-items: center;
  }

  .weather-stats {
    justify-content: center;
  }

  /* Ensure search dropdown stays below input on mobile */
  .search-section {
    position: relative;
  }

  .search-results-dropdown {
    position: absolute;
    top: 100% !important;
    left: 0 !important;
    right: 0 !important;
    transform: none !important;
    margin-top: 8px;
    width: 100%;
    max-height: 400px;
    z-index: 9999;
  }

  .result-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }

  .result-category {
    margin-left: 0;
    align-self: flex-start;
  }
}

@media (max-width: 480px) {
  .search-weather-container {
    padding: 0 0.5rem;
  }

  .weather-data {
    padding: 0.75rem;
  }

  .temp-value {
    font-size: 1.8rem;
  }

  .weather-icon-temp i {
    font-size: 2rem;
  }

  .search-input-group {
    padding: 0.4rem 0.75rem;
  }

  .search-input {
    font-size: 0.9rem;
    padding: 0.6rem 0;
  }

  .search-results-header {
    padding: 0.75rem 1rem;
  }

  .search-results-body {
    padding: 0.75rem;
  }

  .search-result-item {
    padding: 0.75rem;
  }

  .result-title {
    font-size: 0.9rem;
  }

  .result-description {
    font-size: 0.85rem;
  }
}

/* Extra small devices */
@media (max-width: 360px) {
  .weather-data {
    padding: 0.5rem;
  }

  .temp-value {
    font-size: 1.6rem;
  }

  .weather-icon-temp i {
    font-size: 1.8rem;
  }

  .search-input-group {
    padding: 0.3rem 0.5rem;
  }

  .search-input {
    font-size: 0.85rem;
    padding: 0.5rem 0;
  }
}

/* Scrollbar styling */
.search-results-body::-webkit-scrollbar {
  width: 6px;
}

.search-results-body::-webkit-scrollbar-track {
  background: #f1f1f1;
}

.search-results-body::-webkit-scrollbar-thumb {
  background: #c1c1c1;
  border-radius: 3px;
}

.search-results-body::-webkit-scrollbar-thumb:hover {
  background: #a8a8a8;
}
/* Weather Refresh Button */
.weather-refresh-btn {
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.8);
  cursor: pointer;
  padding: 0.25rem;
  border-radius: 50%;
  transition: all 0.3s ease;
  margin-left: auto;
}

.weather-refresh-btn:hover {
  color: white;
  transform: rotate(180deg);
}

.weather-refresh-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* Sun Times */
.weather-sun-times {
  display: flex;
  justify-content: space-around;
  margin-top: 0.75rem;
  padding-top: 0.75rem;
  border-top: 1px solid rgba(255, 255, 255, 0.3);
}

.sun-time {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  opacity: 0.9;
}

.sun-time i {
  font-size: 0.8rem;
}

/* Additional Weather Stats */
.weather-stats {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.weather-stat {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
  opacity: 0.9;
}
