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

body {
  background: #f1f3f4;
}

.header {
  background: linear-gradient(135deg, #1a73e8, #1557b0);
  padding: 18px;
  text-align: center;
  border-radius: 0 0 20px 20px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
}

.header h1 {
  color: white;
  letter-spacing: 4px;
}

.map-controls {
  display: flex;
  gap: 15px;
  justify-content: center;
  margin: 20px 0;
}

.map-controls button {
  padding: 12px 26px;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.5px;
  border: none;
  border-radius: 30px;
  cursor: pointer;

  background: #ffffff;
  color: #333;

  box-shadow:
    0 4px 12px rgba(0, 0, 0, 0.12),
    0 1px 2px rgba(0, 0, 0, 0.08);

  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease,
    background 0.25s ease;

  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.location-btn {
  background: linear-gradient(135deg, #4285f4, #1a73e8);
  color: white;
}

.location-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.25);
}

.satellite-btn {
  background: linear-gradient(135deg, #34a853, #0f9d58);
  color: white;
}

.satellite-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.25);
}

.container {
  max-width: 1400px;
  margin: 20px auto;
  display: flex;
  gap: 20px;
  padding: 0 16px;
}

#map {
  flex: 3;
  height: 560px;
  border-radius: 20px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
}

#instruct {
  flex: 1;
  background: white;
  padding: 20px;
  border-radius: 20px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
}

#instruct h2 {
  margin-bottom: 12px;
}

#instruct p {
  margin-bottom: 10px;
}

#instruct button {
  width: 100%;
  margin-top: 10px;
  padding: 12px;
  border-radius: 10px;
  border: none;
  cursor: pointer;
}

#btn2 {
  background: #1a73e8;
  color: white;
}

#btn1 {
  background: #d93025;
  color: white;
}

@media (max-width: 900px) {
  .container {
    flex-direction: column;
  }

  #map {
    height: 380px;
  }

  .map-controls {
    top: 90px;
    right: 10px;
  }
}

/* MOBILE RESPONSIVE */

html,
body {
  height: 100%;
  margin: 0;
  padding: 0;
}

#box {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

#map {
  width: 100%;
  height: 60vh;
  min-height: 300px;
}

#instruct {
  width: 100%;
  padding: 15px;
  box-sizing: border-box;
}

@media (max-width: 768px) {
  #map {
    height: 55vh;
    min-height: 280px;
  }

  #heading h1 {
    font-size: 26px;
  }

  #instruct h1 {
    font-size: 20px;
  }

  #instruct h2 {
    font-size: 15px;
    line-height: 1.5;
  }

  button {
    width: 100%;
    padding: 12px;
    font-size: 15px;
  }
}

/* DESKTOP LAYOUT */

@media (min-width: 992px) {
  #box {
    flex-direction: row;
    align-items: stretch;
    gap: 20px;
    padding: 20px;
  }

  #map {
    flex: 3;
    height: calc(100vh - 160px);
    min-height: 520px;
    border-radius: 18px;
  }

  #instruct {
    flex: 1.2;
    height: calc(100vh - 160px);
    overflow-y: auto;
    border-radius: 18px;
  }
}
