/* Base Styles */
#map {
  height: 500px;
  width: 100%;
}

.map_entries {
  font-size: 16px;
}

.map_entries ul {
  padding: 0;
  list-style: none;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.map_entries ul li {
  padding: 15px;
  border: 1px solid #ccc;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.map_entries h4 {
  font-weight: bold;
  font-size: 20px;
}

.map_entries address,
.map_entries p,
.map_entries .view_on_map a {
  font-size: 14px;
}

/* --- Form Layout --- */
.form_group_entry {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.form_group_entry_col3 {
  flex: 0 0 calc(25% - 10px);
  max-width: calc(25% - 10px);
  box-sizing: border-box;
}

.form_group_entry_col3 select,
.form_group_entry_col3 button {
  width: 100%;
  padding: 0.375rem 0.75rem;
  font-size: 1rem;
  line-height: 1.5;
  border-radius: 0.25rem;
  border: 1px solid #ced4da;
  box-sizing: border-box;
}

.form_group_entry_col3 select {
  background-color: #fff;
  color: #495057;
  height: 42px;
}

.form_group_entry_col3 button.btn-primary {
  background-color: #C8A733;
  border-color: #B39A4F;
  color: #fff;
  cursor: pointer;
  transition: background-color 0.2s ease;
  height: 42px;
  margin-left: 15px;
  width: 50%;
  margin-top:0px;
  margin-bottom:0px;
}

.form_group_entry_col3 button.btn-primary:hover {
  background-color: #e65c00;
  border-color: #e65c00;
}

.form_group_entry_col3 .resetbtn {
  background: #1c79d8;
  color: #FFF;
  padding: 10px;
  height: 42px;
  border-radius: 5px;
  text-decoration: none !important;
}

.main_head {
  margin-top: 15px;
}

.entry_count {
  margin-top: 15px;
}

.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin: 30px 0;
  flex-wrap: wrap;
}

.pagination a {
  display: inline-block;
  padding: 8px 14px;
  border: 1px solid #007bff;
  border-radius: 6px;
  color: #007bff;
  text-decoration: none;
  font-weight: 500;
  transition: all 0.3s ease;
  text-decoration:none;
}

.pagination a:hover {
  background-color: #007bff;
  color: #fff;
}

.pagination a.active {
  background-color: #007bff;
  color: #fff;
  pointer-events: none;
  text-decoration:none;
}

.pagination a.prev,
.pagination a.next {
  font-weight: bold;
  text-decoration:none;
}


/* --- Responsive Styles --- */


/* Tablets and below */
@media (max-width: 992px) {
  .map_entries ul {
    grid-template-columns: repeat(1, 1fr);
  }

  .form_group_entry_col3 {
    flex: 0 0 calc(50% - 10px);
    max-width: calc(50% - 10px);
  }

  .form_group_entry_col3 button.btn-primary {
    width: 50%;
    margin-left: 0;
  }
}

/* Mobile devices */
@media (max-width: 600px) {
  #map {
    height: 350px;
  }

  .map_entries ul {
    grid-template-columns: 1fr;
    gap: 15px;
  }

  .form_group_entry {
    flex-direction: column;
    gap: 10px;
  }

  .form_group_entry_col3 {
    flex: 0 0 100%;
    max-width: 100%;
  }

  .form_group_entry_col3 select,
  .form_group_entry_col3 button {
    width: 100%;
    margin: 0;
  }

  .form_group_entry_col3 button.btn-primary,
  .form_group_entry_col3 .resetbtn {
    width: 100%;
  }

  .map_entries h4 {
    font-size: 18px;
  }

  .map_entries address,
  .map_entries p,
  .map_entries .view_on_map a {
    font-size: 13px;
  }

  .form_group_entry_col3 .resetbtn{
    width: 100%;
    float: left;
    margin-top: 15px;
    text-align: center;
  }
}

/* Large screens */
@media (min-width: 1200px) {
  .map_entries ul {
    grid-template-columns: repeat(3, 1fr);
  }
}



/* 🔹 Responsive tweaks */
@media (max-width: 768px) {
  .pagination {
    gap: 6px;
  }

  .pagination a {
    padding: 6px 10px;
    font-size: 14px;
  }
}

@media (max-width: 480px) {
  .pagination {
    gap: 4px;
  }

  .pagination a {
    padding: 5px 8px;
    font-size: 13px;
  }

  /* Make Prev/Next buttons smaller */
  .pagination a.prev,
  .pagination a.next {
    padding: 5px 10px;
    font-size: 13px;
  }

  /* Optional: Wrap into two lines neatly on small screens */
  .pagination {
    flex-wrap: wrap;
    justify-content: center;
  }
}