@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@100;200;300;400;500;600;700;800;900&display=swap');
/* reset + base */
*{
  margin:0 ;
  padding:0 ;
  box-sizing:border-box ;
}

body {
  margin-top: 80px; 
  font-family: arial , sans-serif ;
  /* background:#001f1a ; */
   background: url("../images/parktwo.png");
  color:#222 ;
  min-height:100vh ;
}




/* header stuff  */
#logo{
  height: 70px;
}
.main-header{ 
  display: flex;
  justify-content: center;
  align-items: center;  

  font-family: 'Montserrat', sans-serif;
  font-weight: 500;
  font-size: 16px;
  color: white;

  display: flex;
  align-items: center;
  padding: 16px 10px;
  background-color: #055745;

  position: fixed;
  top: 0;
  left: 0; 
  right: 0;
  width: 100%; 
  z-index: 9999;
}
.main-header div{ 
  width: 1000px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
}
.nav-links {
  list-style-type: none;
}
.nav-links li{
  display: inline-block;
  padding: 0px 20px;
}
.nav-links li a{
  text-decoration: none;
  transition: all 0.3s ease 0s;
  color: white;
}
.nav-links li a:hover{
  color: #0db58f;
}
button{
  font-family: 'Montserrat', sans-serif;
  padding: 9px 25px;
  background-color: #0db58f;
  border: none;
  border-radius: 50px;
  cursor: pointer;
  transition: all 0.3s ease 0s;
  color: white;
}
.reserve-btn{
  margin-top: 12px;
}










.cta-btn {
  display:inline-block ;
  padding:12px 24px ;
  background:#2a9d8f ;
  color:white ;
  text-decoration:none ;
  font-weight:bold ;
  border-radius:6px ;
  transition: background 0.2s ease-in-out ;
}
h2:last-of-type{
  color: white;
}
.cta-btn:hover {
  background:#21867a ;
}
.hero:hover,.how-it-works:hover, .benefits:hover, .course-item:hover {
  box-shadow: 0 8px 20px rgba(13, 181, 143, 0.5);
}
/*course-information*/
div#course-list {
  z-index: 10;
  position: absolute;
  width: 400px;
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 0 10px rgba(0,0,0,0.1);
  
}

.course-item {
  background:  #508076;
  padding: 10px;
  margin-bottom: 10px;
  border-radius: 8px;
  display: flex;
  gap: 10px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.08) ;
  transition: all 0.8s ease;
  max-height: 200px; 
  overflow: hidden;
}
.course-item.expanded {
  max-height: 440px; 
  background-color: #026d56;
  box-shadow: 0 4px 12px rgba(0,255,0,0.3);
}
.course-item .extra-details{
  display:none;
}
.course-item.expanded .extra-details{
  display:block;
}
.course-info h3,p, a{
  padding-bottom:5px;
}
.course-img {
  width: 100px;
  height: 100px;
  object-fit: cover;
  border-radius: 8px;
}

.course-info {
  color: white;
  flex: 1;
}

.course-name {
  margin: 0;
}

.view-map-btn {
  display: inline-block;
  margin-top: 8px;
  color: #4caf50;
  text-decoration: underline;
}
/*suggest edit button*/
.suggest-edit-btn, .reserve-btn {
  display: inline-flex;
  align-items: center;
  background-color: #026d56;
  color: white;
  border: none;
  padding: 8px 14px;
  border-radius: 6px;
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  transition: background-color 0.2s ease;
  box-shadow: 0 2px 6px rgba(0,0,0,0.15);
}

.suggest-edit-btn:hover, .reserve-btn:hover {
  background-color: #014134;
}


/* ------------------------api map css-------------------- */



/* Left Side: Course List */
#course-list {
  scrollbar-width: none; /* Firefox */
  -ms-overflow-style: none; 
  height: 400px;
  overflow-y: auto;
  width: 35%;
  padding: 20px;
  border-radius: 8px ;
  min-height: 600px;  /* to match the map height */
}

/* Right Side: Map and controls */
#map-wrapper {
  z-index: 1;
  width: 100%;
  position: relative; /* needed for controls floating we need to fix this for mobile */
}

/* Map itself */
#mapArea {
  width: 100%;
  height: 600px;
}

/* Controls floating inside map */
#controls {
  position: absolute;
  top: 10px; 
  left: 50%;
  transform: translateX(-50%);
  z-index: 1000;
  background: #333;
  padding: 10px;
  border-radius: 8px;
  color: white;
  width: 400px; 
}

/* Search and find button side-by-side */
#search-wrapper {
  display: flex;
  gap: 5px;
  margin-bottom: 5px;
}

#search {
  flex-grow: 1;
  padding: 8px;
  border: none;
  border-radius: 5px;
}



#findButton {
  background: #555;
  color: white;
  border: none;
  padding: 8px 12px;
  border-radius: 5px;
  cursor: pointer;
}

#findButton:hover {
  background: #90ee90;
  color: black;
}


/* Buttons inside controls */
#buttons {
  display: flex;
  gap: 5px;
  margin-top: 5px;
}

#buttons button {
  background: #555;
  color: white;
  border: none;
  padding: 8px 12px;
  border-radius: 5px;
  cursor: pointer;
}

#buttons button:hover {
  background: #90ee90;
  color: black;
}

/* Loader in center */
#loader {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 500;
}

#mapArea {
  width: 100%;
  height: 600px;
  transition: all 0.3s ease; /* smooth resizing when full screen */
}
/* ------------------------api map css END! -------------------- */







/* ------------------------The general search -------------------- */
/* FEATURE: styled park search Section Matching Site Design */
.park-search-section {
  background-color: #014134;
  color: #ffffff;
  padding: 2rem;
  border-radius: 12px;
  max-width: 800px;
  margin: 2rem auto;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  position: relative;
}

.park-search-section h2 {
  font-size: 1.6rem;
  margin-bottom: 1rem;
  color: #0db58f;
  text-align: center;
}

.search-with-mic {
  display: flex;
  align-items: center;
  gap: 8px;
  position: relative;
  margin-top: 1rem;
}

.search-with-mic input {
  flex-grow: 1;
}

#voiceSearchBtn {
  background-color: #0db58f;
  border: none;
  padding: 8px;
  border-radius: 8px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.3s ease;
}

#voiceSearchBtn:hover {
  background-color: #90ee90;
}

#voiceSearchBtn img {
  width: 24px;
  height: 24px;
  filter: invert(1); 
  transition: transform 0.3s ease, filter 0.3s ease;
}

#voiceSearchBtn.listening {
  background-color: #f44336; 
}

#voiceSearchBtn.listening img {
  transform: scale(1.2);
  filter: invert(0); 
}




#liveParkSearch {
  width: 100%;
  padding: 0.75rem;
  font-size: 1rem;
  border-radius: 8px;
  border: 2px solid #0db58f;
  background-color: #013926;
  color: #ffffff;
  outline: none;
}

#liveParkSearch::placeholder {
  color: #0db58f;
}

/* Dropdown Results Styling */
.dropdown-results {
  list-style: none;
  padding: 0;
  margin-top: 0.5rem;
  max-height: 180px;
  overflow-y: auto;
  background-color: #014134;
  color: #0db58f;
  border: 2px solid #0db58f;
  border-radius: 8px;
  display: none;
  position: absolute;
  width: 100%;
  z-index: 10;
}

.dropdown-results li {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid #0db58f;
  cursor: pointer;
  font-weight: 500;
  text-decoration: none;
}

.dropdown-results li:hover {
  background-color: #0db58f;
  color: #014134;
}

/* overlaps with maps needed*/
.dropdown-results {
  z-index: 9999;
  position: absolute;
}


/* FEATURE: Selected Park Info (Side-by-Side Style Improved) */
.selected-park-info {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 2rem;
  background-color: #012c26;
  color: #ffffff;
  padding: 2rem;
  border-radius: 12px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.4);
  margin-top: 2rem;
  align-items: flex-start;
}

.selected-park-info img {
  width: 100%;
  max-width: 350px;
  height: auto;
  border-radius: 10px;
  border: 3px solid #0db58f;
  transition: transform 0.3s ease;
}

.selected-park-info img:hover {
  transform: scale(1.05);
  box-shadow: 0 0 10px #0db58f;
}

.selected-park-info p {
  margin-bottom: 0.8rem;
  line-height: 1.6;
}

.selected-park-info h3 {
  margin-bottom: 1rem;
  color: #0db58f;
  font-size: 1.5rem;
}

.selected-park-info img {
  margin-bottom: 1rem;
}

.selected-park-info a {
  color: #0db58f;
  text-decoration: underline;
}

.selected-park-info a:hover {
  color: #90ee90;
}



.park-info-text {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  background-color: #014134;
  padding: 1.5rem;
  border-radius: 10px;
  border-left: 5px solid #0db58f;
}

.park-info-text h3 {
  color: #0db58f;
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

.park-info-text p {
  line-height: 1.6;
  margin: 0;
  font-size: 1rem;
}

.park-info-text a {
  color: #0db58f;
  text-decoration: underline;
}

.park-info-text a:hover {
  color: #90ee90;
}

/* this is for crowd sourcing General search*/
.suggest-edit-btn {
  display: inline-flex;
  align-items: center;
  background-color: #026d56;
  color: white;
  border: none;
  padding: 8px 14px;
  border-radius: 6px;
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  transition: background-color 0.2s ease;
  box-shadow: 0 2px 6px rgba(0,0,0,0.15);
  margin-top: 1rem;
}

.suggest-edit-btn {
  margin-right: 10px; 
  margin-top: 10px;  
}


.suggest-edit-btn:hover {
  background-color: #014134;
}







/* ------------------------The general search END?? -------------------- */






/* Spacer section (How to Use) */
.how-to-use {
  background-color: #014134;
  color: white;
  padding: 1.5rem;
  margin-top: 2rem;
  margin-bottom: 2rem;
  border-radius: 10px;
  text-align: center;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
  box-shadow: 0 0 10px rgba(0,0,0,0.2);
}

.how-to-use h2 {
  font-size: 1.6rem;
  margin-bottom: 1rem;
  color: #0db58f;
}

.how-to-use p {
  font-size: 1rem;
  line-height: 1.6;
}

#parkImage {
  width: 50%;
}


/* ----MEDIA SIZING FOR MOBILE */

@media (max-width: 1200px) {
  .content-container {
    flex-direction: column;
    align-items: center;
  }

  #course-list, #map-wrapper {
    width: 95%;
    margin-bottom: 20px;
  }

  #controls {
    flex-direction: column;
    gap: 5px;
  }

  #search-bar {
    width: 50%;
    font-size: 16px;
  }

  #voice-search {
    padding: 8px;
  }

  #map {
    height: 100px;
    width: 100%;
    
  }
}


/* TEST FOR HEADER SIZING NOT to make the header too big */
@media (max-width: 992px) {
  .main-header div {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    padding: 10px;
  }

  .nav-links {
    flex-direction: column;
    align-items: flex-start;
    gap: 15px; 
  }

  .nav-links li {
    padding: 5px 0; 
  }

  button {
    width: 100%;
    text-align: center;
  }
}



