/* General Styles */
:root {
  /* Colors */
  --primary-color: #2d5496;
  --primary-dark: #1d3c6e;
  --accent-color: #e74c3c;
  --background-color: #f5f7fa;
  --card-color: #ffffff;
  --text-muted: #6c757d;
  --error-bg: #fff5f5;
  --error-text: #c53030;
  
  /* Shadows */
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.08);
  
  /* Transitions */
  --transition-default: all 0.3s ease;
  
  /* Spacing */
  --container-max-width: 500px;
  --section-spacing: 1.5rem;
}

/* Base Styles */
body {
  font-family: 'Roboto', sans-serif;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background-color: var(--background-color);
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', sans-serif;
}

/* Header */
.header {
  background-color: #1a1a1a;
  position: relative;
  overflow: hidden;
  height: 300px;
}

.header-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.7;
}

.overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 1;
}

.header-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: white;
  text-align: center;
  z-index: 2;
  width: 100%;
  padding: 0 20px;
}

.header-content h1 {
  font-size: 3.5rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

/* Search */
.search-container {
  max-width: var(--container-max-width);
  margin: 0 auto;
}

.search-button {
  background-color: var(--primary-color);
  border: none;
  transition: var(--transition-default);
  padding: 0 2rem !important;
}

.search-button:hover {
  background-color: var(--primary-dark);
  transform: translateY(-2px);
}

.form-control {
  border: 2px solid #e0e0e0;
  transition: var(--transition-default);
}

.form-control:focus {
  box-shadow: 0 0 0 0.2rem rgba(45, 84, 150, 0.15);
  border-color: var(--primary-color);
}

/* Results */
.card {
  transition: var(--transition-default);
  border: none;
  background: var(--card-color);
  box-shadow: var(--shadow-sm) !important;
}

.card:hover {
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2) !important;
}

#output {
  color: var(--text-muted);
  font-size: 1rem;
  font-weight: 400;
  padding: 0.75rem 1rem;
  background: rgba(0, 0, 0, 0.03);
  border-radius: 8px;
  margin-bottom: var(--section-spacing);
  transition: var(--transition-default);
}

#output:empty {
  display: none;
}

#output h5 {
  color: var(--primary-dark);
  font-size: 1.1rem;
  margin: 0;
}

/* Map */
#map {
  height: 400px;
  width: 100%;
  border-radius: 8px;
  box-shadow: var(--shadow-sm);
}

/* Error */
#error {
  display: none;
  margin: 0 auto 1rem auto;
  max-width: var(--container-max-width);
  background-color: var(--error-bg);
  border-color: var(--accent-color);
  color: var(--error-text);
}

/* Footer */
.footer {
  background: #2d3436 !important;
  margin-top: auto;
}

/* Responsive */
@media (max-width: 768px) {
  .header {
    height: 200px;
  }
  
  .header-content h1 {
    font-size: 2.5rem;
  }
  
  .header-content p {
    font-size: 1rem;
  }
}