* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: Arial, sans-serif;
  background: #f4f6f8;
}

/* FULL PAGE CENTER */
.page-wrapper {
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding: 15px;
}

/* MAIN CONTAINER */
.container {
  width: 100%;
  max-width: 1100px;
  margin: auto;
}

/* FORM BOX */
.form-box {
  background: #ffffff;
  padding: 20px;
  border-radius: 10px;
  margin: auto;
  max-width: 420px;
  box-shadow: 0 5px 20px rgba(0,0,0,0.08);
}

h2 {
  text-align: center;
  margin-bottom: 15px;
}

label {
  display: block;
  font-weight: bold;
  margin-top: 10px;
  margin-bottom: 5px;
}

input[type="text"],
input[type="datetime-local"],
input[type="file"] {
  width: 100%;
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 6px;
}

/* MAP */
#map {
  width: 100%;
  height: 220px;
  margin: 10px 0;
  border-radius: 6px;
  border: 1px solid #ddd;
}

/* BUTTONS */
button {
  width: 100%;
  padding: 12px;
  margin-top: 12px;
  border: none;
  border-radius: 6px;
  background: #007bff;
  color: #fff;
  font-size: 15px;
  cursor: pointer;
}

button:hover {
  background: #0056b3;
}

/* IMAGE GRID */
#grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
  margin-top: 25px;
}

/* IMAGE CARD */
.img-wrap {
  position: relative;
  background: #fff;
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 3px 10px rgba(0,0,0,0.08);
}

.img-wrap img {
  width: 100%;
  height: 160px;
  object-fit: cover;
}

/* OVERLAY */
.overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  background: rgba(255,255,255,0.6);
  font-size: 12px;
  padding: 6px;
  line-height: 1.3;
}

/* DOWNLOAD BUTTON */
#downloadBtn {
  max-width: 260px;
  margin: 25px auto 0;
  display: none;
}

/* ---------- RESPONSIVE ---------- */

/* Tablet */
@media (max-width: 992px) {
  #grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Mobile */
@media (max-width: 600px) {
  #grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .img-wrap img {
    height: 140px;
  }
}

/* Small mobile */
@media (max-width: 400px) {
  #grid {
    grid-template-columns: repeat(1, 1fr);
  }
}
