* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Inter", sans-serif;
}

body {
  background: linear-gradient(to bottom, #e8f5e9, #d7f3d9);
  color: #111;
}

/* Navbar */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem 3rem;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 700;
  font-size: 1.25rem;
}

.logo img {
  width: 28px;
  height: 28px;
}

.navbar nav {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.nav-link {
  color: #111;
  text-decoration: none;
  font-weight: 500;
}

.btn {
  padding: 0.6rem 1.2rem;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  font-weight: 600;
  transition: all 0.2s ease;
}

.btn-dark {
  background: #000;
  color: #fff;
}

.btn-dark:hover {
  background: #333;
}

/* Hero */
.hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 5rem 4rem;
  gap: 3rem;
}

.hero-text {
  flex: 1;
}

.hero-text h1 {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.hero-text p {
  font-size: 1rem;
  line-height: 1.6;
  margin-bottom: 1.5rem;
  max-width: 500px;
  color: #333;
}

.hero-image {
  display: flex;
  gap: 1rem;
  flex: 1;
  justify-content: center;
}

.hero-image img {
  width: 100%;
  max-width: 240px;
  border-radius: 12px;
  object-fit: cover;
}

/* Info Section */
.info-section {
  display: flex;
  justify-content: space-around;
  padding: 3rem 2rem 5rem;
  background: linear-gradient(to bottom, #d7f3d9, #c5efc5);
}

.info-card {
  max-width: 300px;
}

.info-card h3 {
  font-size: 1.1rem;
  margin-bottom: 0.8rem;
  font-weight: 700;
}

.info-card p {
  font-size: 0.95rem;
  line-height: 1.6;
  color: #333;
}

/* ===============================
   Query Page Styles
=================================*/

.query-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 80vh;
  text-align: center;
  gap: 2rem;
}

.query-container h1 {
  font-size: 2rem;
  font-weight: 700;
  color: #000;
}

.query-form {
  width: 100%;
  max-width: 500px;
}

.query-input-wrapper {
  display: flex;
  align-items: center;
  border: 2px solid #000;
  border-radius: 999px;
  overflow: hidden;
  background-color: #f9f9f9;
}

.query-input {
  flex: 1;
  padding: 0.9rem 1.2rem;
  border: none;
  outline: none;
  font-size: 1rem;
  background: transparent;
}

.query-input::placeholder {
  color: #888;
  letter-spacing: 0.5px;
}

.query-btn {
  background-color: #000;
  color: #fff;
  border: none;
  padding: 0.6rem 1.2rem;
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: 999px;
  margin-right: 4px;
  cursor: pointer;
  transition: background 0.2s ease;
}

.query-btn:hover {
  background-color: #333;
}

/* ===============================
   Results Page Layout
=================================*/

.results-shell {
  display: flex;
  min-height: calc(100vh - 96px);
  background: linear-gradient(135deg, #ecfdf5, #f8fafc);
  color: #0f172a;
}

.results-panel {
  flex: 1 1 100%;
  max-width: 100%;
  display: flex;
  flex-direction: column;
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: blur(6px);
  border-right: 1px solid rgba(16, 185, 129, 0.2);
}

@media (min-width: 768px) {
  .results-panel {
    flex-basis: 33.333%;
    max-width: 33.333%;
  }
}

.results-panel header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid rgba(16, 185, 129, 0.18);
  padding: 1.5rem;
}

.results-panel header h1 {
  margin: 0;
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.results-panel header p {
  margin: 0.5rem 0 0 0;
  font-size: 0.9rem;
  color: #64748b;
}

.recommendations-list {
  flex: 1;
  overflow-y: auto;
  padding: 1.25rem 1.5rem 1.5rem;
  display: grid;
  gap: 1rem;
}

.recommendation-card {
  border: 1px solid rgba(16, 185, 129, 0.2);
  border-radius: 0.9rem;
  background: #ffffff;
  padding: 1.2rem;
  text-align: left;
  cursor: pointer;
  transition: transform 150ms ease, box-shadow 150ms ease;
  box-shadow: 0 12px 24px rgba(15, 118, 110, 0.06);
}

.recommendation-card:hover,
.recommendation-card:focus-visible {
  transform: translateY(-3px);
  box-shadow: 0 18px 32px rgba(16, 185, 129, 0.12);
  outline: none;
}

.recommendation-card h2 {
  margin: 0;
  font-size: 1.15rem;
  font-weight: 600;
  color: #065f46;
}

.recommendation-card p {
  margin: 0.55rem 0 0;
  font-size: 0.92rem;
  color: #475569;
  line-height: 1.5;
}

.map-panel {
  display: none;
  position: relative;
  flex: 1;
  min-height: 400px;
}

@media (min-width: 768px) {
  .map-panel {
    display: block;
  }
}

#map {
  position: absolute;
  inset: 0;
}

/* Legacy Tiles (fallback) */
.tiles {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  justify-items: center;
}

.tile {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
  padding: 1.5rem;
  max-width: 350px;
  text-align: left;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeUp 0.6s ease forwards;
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.tile-header h2 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
}

.place-type {
  font-size: 0.9rem;
  color: #666;
  margin-bottom: 0.75rem;
}

.place-description {
  font-size: 0.95rem;
  color: #333;
  margin-bottom: 0.75rem;
}

.place-location {
  font-size: 0.85rem;
  color: #555;
}

/* Fade-in animation for container */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 767px) {
  .results-panel {
    border-right: none;
  }

  .recommendations-list {
    padding-bottom: 4rem;
  }
}
