/* Reset & Base */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background-color: #f4f7fb;
  color: #222;
  line-height: 1.6;
}

/* Hero Section */
.hero {
  background: linear-gradient(120deg, #1a73e8, #3f8efc);
  color: white;
  padding: 60px 20px;
  text-align: center;
}
.hero h1 {
  font-size: 2.8rem;
  margin-bottom: 10px;
}
.hero p {
  font-size: 1.2rem;
  margin-bottom: 30px;
}
.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 15px;
}
.hero-buttons button,
.hero-buttons a button {
  background-color: white;
  color: #1a73e8;
  border: none;
  padding: 12px 20px;
  font-size: 1rem;
  font-weight: 600;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.3s, color 0.3s;
}
.hero-buttons button:hover {
  background: #e3f0ff;
}
.hero-buttons a {
  text-decoration: none;
}

/* Main Tool Section */
.tool-section {
  padding: 40px 20px;
  max-width: 900px;
  margin: auto;
  background: white;
  border-radius: 10px;
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.08);
  margin-top: -20px;
}
.tool-section h2 {
  text-align: center;
  margin-bottom: 20px;
  color: #1a73e8;
}
#map {
  height: 350px;
  border-radius: 10px;
  margin-bottom: 20px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}
#location-output {
  text-align: center;
  font-weight: bold;
  margin-bottom: 15px;
}

/* Details Box */
#details-box {
  background-color: #f1f5fb;
  padding: 20px;
  border-radius: 8px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 15px;
  font-size: 1rem;
}
#details-box div {
  background: white;
  padding: 12px 15px;
  border-radius: 6px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
}

/* Bookmark Reminder */
.bookmark-reminder {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  background-color: #fff8e1;
  color: #856404;
  border: 1px solid #ffeeba;
  padding: 12px 20px;
  border-radius: 8px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.15);
  display: flex;
  align-items: center;
  gap: 15px;
  font-size: 0.95rem;
  z-index: 3000;
  transition: opacity 0.3s ease;
}
.bookmark-reminder button {
  background: none;
  border: none;
  color: #856404;
  font-size: 1.2rem;
  cursor: pointer;
}
.bookmark-reminder.hide {
  display: none;
}

/* Toast Notification */
.custom-toast {
  position: fixed;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  background: #2a9d8f;
  color: white;
  padding: 10px 18px;
  border-radius: 6px;
  font-size: 0.95rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  z-index: 2000;
}
.custom-toast.show {
  opacity: 1;
  pointer-events: auto;
}

/* QR Modal (Optional Enhancement) */
#qr-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.6);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 4000;
}
#qr-container {
  background: white;
  padding: 20px;
  border-radius: 10px;
  text-align: center;
}
#qr-close {
  margin-top: 15px;
  background: #1a73e8;
  color: white;
  border: none;
  padding: 8px 14px;
  font-size: 0.9rem;
  border-radius: 5px;
  cursor: pointer;
}

/* Disclaimer */
body.homepage .disclaimer {
  background-color: #fff3cd;
  color: #856404;
  padding: 12px;
  border: 1px solid #ffeeba;
  border-radius: 6px;
  margin: 20px 0;
  font-size: 0.95rem;
}
body.homepage .disclaimer a {
  color: #007bff;
  text-decoration: underline;
}

/* Responsive */
@media (max-width: 600px) {
  .hero h1 {
    font-size: 2rem;
  }
  .hero p {
    font-size: 1rem;
  }
  .hero-buttons {
    flex-direction: column;
  }
  .tool-section {
    padding: 20px 15px;
  }
}
