@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 ;
}

  

/* wrapper  */
.container {
  margin : 0 auto ;
  max-width:100%;
}

/* 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;
}




/* the title or top: Selected Park Info (Side-by-Side Style) */
.top-callout {
  text-shadow: 0 3px 6px rgba(0, 0, 0, 0.75);
  max-width: 100%;
  margin: 0 auto;
  margin-top:6rem;
  padding: 2rem 1rem 1.5rem 1rem;
  text-align: center;
  background-color: #06594D;
  background-image: linear-gradient(to bottom, #06594D, rgba(6, 89, 77, 0.85));
  background: linear-gradient(to bottom, #06594D, rgba(6, 89, 77, 0));
}

.top-callout h2 {
  font-size: 2.3rem;
  color: #0db58f;
  margin-bottom: 1rem;
  text-shadow: 1px 1px 2px #001d1a;
}

.top-callout p {
  color: #b6f5e4;
  font-size: 1.1rem;
  max-width: 700px;
  margin: 0 auto;
  line-height: 1.5;
}







.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 {
  width: 400px;
  padding: 20px;
  background-color:  #012c26;
  border-radius: 10px;
  box-shadow: 0 0 10px rgba(0,0,0,0.1);
  
}

.course-item {
  background:  #014134;
  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: 180px; 
  overflow: hidden;
}
.course-item.expanded {
  max-height: 400px; 
  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-------------------- */

/* Layout for left (Course List) and right (Map) */
.content-container {
  display: flex;
  margin-top: 20px;
  max-width: 1400px; /* Wider overall section to make it not conflcit*/
  margin-left: auto;
  margin-right: auto;
}

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

/* Right Side: Map and controls */
#map-wrapper {
  width: 65%;
  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: 1100px;
  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 {
  background-color: #012c26;
  color: #ffffff;
  padding: 2rem;
  border-radius: 12px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.4);
}
#searching-bar{
  display:flex;
    align-items: flex-start;
}
.left{
  flex: 4; 
}
.right{
  flex: 6; 
}

.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;
}

/* for the reserve button top on makeing it easir more easir for user */
.park-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 8px;
  margin-bottom: 10px;
}

.inline-reserve-btn {
  background-color: #00b389 !important;
  color: white !important;
  padding: 6px 18px;
  border: none;
  border-radius: 20px;
  text-decoration: none !important;
  font-size: 0.9rem;
  font-weight: bold;
  transition: background-color 0.3s;
  cursor: pointer;
  display: inline-block;
}

.inline-reserve-btn:hover {
  background-color: #00a179 !important;
  color: white !important;
}



/* 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: 90%;
}
/*illustration*/
#illustration{
  display:flex;
  max-width:100%;
  background-color:#014134;
}
#illustration img{
  width:73%;


}



/* ----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;
  }
}


/* ===== CLEAN DISC GOLF CALENDAR THEME ===== */
.calendar-container {
  margin-top: 1.5rem;
  padding: 10px;
  border-radius: 12px;
  background: transparent;
  width: 100%;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

#reservationCalendar {
  width: 100%;
}

/* Remove dark background box */
.flatpickr-calendar {
  background: #f4fdf7; /* Light green background */
  color: #222;
  border: none;
  box-shadow: 0 0 10px rgba(0,0,0,0.15);
  border-radius: 12px;
  padding: 10px;
}

/* Month and year header */
.flatpickr-months {
  background: #d7f9e6;
  border-radius: 8px 8px 0 0;
  padding: 5px;
  font-weight: bold;
  color: #065c3d;
}

/* Weekday labels */
.flatpickr-weekdays {
  background: #e8fdf1;
  color: #065c3d;
  font-weight: 600;
}

/* Day cell base style */
.flatpickr-day {
  font-size: 1rem;
  line-height: 2.2rem;
  margin: 2px;
  border-radius: 50%;
  transition: transform 0.1s ease;
}

.flatpickr-day:hover {
  background: #b3f5d5;
  transform: scale(1.05);
}

/* Custom date colors */
.flatpickr-day.calendar-red {
  background-color: #e74c3c !important;
  color: white !important;
}

.flatpickr-day.calendar-yellow {
  background-color: #f1c40f !important;
  color: black !important;
}

.flatpickr-day.calendar-green {
  background-color: #2ecc71 !important;
  color: white !important;
}

/* Dim previous/next month days */
.flatpickr-day.prevMonthDay,
.flatpickr-day.nextMonthDay {
  opacity: 0.25;
}

/* ===== LEGEND under calendar ===== */
.calendar-legend {
  display: flex;
  gap: 20px;
  justify-content: center;
  margin-top: 12px;
  font-size: 0.95rem;
  flex-wrap: wrap;
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #1e1e1e;
  background-color: #e6fdf0;
  padding: 4px 10px;
  border-radius: 20px;
  border: 1px solid #ccc;
}

.legend-color {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  display: inline-block;
}

.legend-color.red {
  background-color: #e74c3c;
}

.legend-color.yellow {
  background-color: #f1c40f;
}

.legend-color.green {
  background-color: #2ecc71;
}


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

#reserveSelectedParkBtn {
  margin-top: 20px;
}




/* ===== diffrent way to reserve the park  ===== */
.external-warning {
  background-color: #fff3cd;
  color: #856404;
  border: 1px solid #ffeeba;
  padding: 10px;
  border-radius: 5px;
  margin-top: 15px;
  font-size: 14px;
}

button.disabled {
  opacity: 0.5;
  pointer-events: none;
}

/*cta near illustration*/
#cta-with-parkowners {
  margin-bottom: 0;
  margin-top: 10rem;
  width: 100%;
  max-width:100%;
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  max-height:50%;
  overflow: hidden;
}
.left-img {
  flex: 3;
}

.left-img img {
  width: 100%;
  max-width: 100%;
}

#right-content {
  flex: 7;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: rgba(0, 66, 56, 0.8); 
  padding: 2rem;
  max-width: 100%;
  color: white;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

#right-content h3 {
  margin-top: 0;
  font-size: 2rem;
}

#right-content p {
  margin-bottom: 0;
  font-size: 1.5rem;
}