/* ==========================================================================
   Global Reset & Base Variables
   ========================================================================== */
:root {
  --primary-color: #2563eb;
  --primary-hover: #1d4ed8;
  --bg-gradient: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
  --surface-color: #ffffff;
  --text-main: #0f172a;
  --text-muted: #64748b;
  --border-color: #e2e8f0;
  --focus-ring: rgba(37, 99, 235, 0.2);
  --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.04);
  --shadow-lg: 0 10px 25px -5px rgba(15, 23, 42, 0.08), 0 8px 10px -6px rgba(15, 23, 42, 0.04);
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  background-color: #f8fafc;
  color: var(--text-main);
  line-height: 1.5;
}

/* ==========================================================================
   Search Section (Clean Modern Look - No Background Image)
   ========================================================================== */
.search-section {
  background: var(--bg-gradient);
  padding: 60px 20px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.overlay {
  width: 100%;
  max-width: 1100px;
}

/* Floating Sleek Search Container */
.search-container {
  background: var(--surface-color);
  padding: 12px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border-color);
  display: grid;
  grid-template-columns: 2.2fr 1fr 1fr auto;
  gap: 12px;
  align-items: center;
}

/* Location Input Box */
.input-group {
  position: relative;
  display: flex;
  align-items: center;
  background: #f8fafc;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 0 12px;
  transition: var(--transition);
}

.input-group:focus-within {
  background: #ffffff;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px var(--focus-ring);
}

.input-group .icon {
  font-size: 1rem;
  margin-right: 10px;
  opacity: 0.6;
}

.input-group input {
  width: 100%;
  padding: 14px 0;
  border: none;
  outline: none;
  background: transparent;
  font-size: 0.95rem;
  color: var(--text-main);
}

.input-group input::placeholder {
  color: var(--text-muted);
}

/* Detect City Button Inside Input */
.geo-btn {
  background: #e0e7ff;
  color: var(--primary-color);
  border: none;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  font-size: 0.825rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: var(--transition);
}

.geo-btn:hover {
  background: #c7d2fe;
}

/* Dropdown Filters */
.filter-group {
  position: relative;
}

.filter-group select {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  background-color: #f8fafc;
  font-size: 0.95rem;
  color: var(--text-main);
  outline: none;
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2064748b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  transition: var(--transition);
}

.filter-group select:focus {
  background-color: #ffffff;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px var(--focus-ring);
}

/* Submit Button */
.search-submit {
  background-color: var(--primary-color);
  color: #ffffff;
  border: none;
  padding: 14px 28px;
  border-radius: var(--radius-md);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
}

.search-submit:hover {
  background-color: var(--primary-hover);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.25);
}

/* ==========================================================================
   Results Section & Card Grid Layout
   ========================================================================== */
.results-section {
  max-width: 1200px;
  margin: 40px auto;
  padding: 0 20px;
}

.results-section h2 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 24px;
  color: var(--text-main);
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
}

/* ==========================================================================
   Responsive Adjustments
   ========================================================================== */
@media (max-width: 900px) {
  .search-container {
    grid-template-columns: 1fr 1fr;
  }
  
  .input-group {
    grid-column: span 2;
  }
  
  .search-submit {
    grid-column: span 2;
  }
}

@media (max-width: 550px) {
  .search-container {
    grid-template-columns: 1fr;
  }
  
  .input-group, 
  .filter-group, 
  .search-submit {
    grid-column: span 1;
  }
}





