/* GLOBAL */
html, body {
  margin: 0;
  padding: 0;
  font-family: 'Source Sans Pro', sans-serif;
  background: #ffffff;
  color: #000000;
  overflow-x: hidden;
  overscroll-behavior-y: none;
}

main,#homeScreen {
  position: relative;
  margin-bottom: 0 !important;
  padding-bottom: 0 !important;
}

/* NAVIGATION */
nav {
  background: rgba(255, 255, 255, 0.45);
  padding: 15px 30px;
  display: flex;
  justify-content: flex-end;
  gap: 30px;
  font-size: 18px;
  position: fixed;
  z-index: 100;
  top: 0;
  left: 0;
  width: 100%;
  box-sizing: border-box;
}

nav a {
  color: #000000;
  text-decoration: none;
  font-size: 18px;
  cursor: pointer;
}

.text-logo {
  position: fixed;
  top: 18px;
  left: 30px;
  font-size: 18px;
  color: #000000;
  z-index: 101;
  letter-spacing: 1px;
}

/* SCREEN HANDLING */
.screen {
  display: none;
  opacity: 0;
  transition: opacity 0.5s ease;
}

.screen.active {
  display: block;
  opacity: 1;
}

.screen:not(.active) {
  display: none !important;
}

/* HERO SECTION */
.hero {
  background-image: url("../image/hero.jpg");
  background-size: cover;
  background-position: center;
  width: 100%;
  height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 60px;
  position: relative;
}

.hero-devices {
  position: relative;
  display: flex;
  align-items: flex-end;
  margin-right: 60px;
}

.hero-tablet {
  max-width: 520px;
  height: auto;
  box-shadow: 0 8px 24px rgba(0,0,0,0.2);
  border-radius: 12px;
}

.hero-phone {
  max-width: 180px;
  height: auto;
  position: absolute;
  bottom: -40px;
  right: -60px;
  box-shadow: 0 6px 18px rgba(0,0,0,0.25);
  border-radius: 16px;
}

.hero h1 {
  font-size: 64px;
  font-weight: 700;
  line-height: 1.15;
  color: #000;
  max-width: 1000px;
  text-align: left;
  margin-left: auto;
  margin-right: 100px;
}

/* HOMEPAGE SECTIONS */
.section {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  padding: 40px 60px;
  gap: 40px;
  background: #ffffff;
  margin: 0 auto 40px auto;
  width: 100%;
  max-width: 1200px;
}
.section:last-of-type {
  margin-bottom: 0 !important;
  padding-bottom: 0 !important;
}
.section.reverse {
  flex-direction: row-reverse;
}

.section img {
  max-width: 555px;
  max-height: 400px;
  object-fit: contain;
  width: 100%;
  height: auto;
}

.section-text {
  flex: 1;
  min-width: 500px;
}

/* AUTH SCREENS — UPDATED TO MATCH YOUR LEAFY LOGIN DESIGN */
.auth-screen {
  background-image: url("../image/hero.jpg"); /* hero background */
  background-size: cover;
  background-position: center;
  height: 100svh;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
  position: relative;
}

.auth-screen::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.4);
}

.auth-box {
  position: relative;
  width: 100%;
  max-width: 420px;
  background: rgba(255, 255, 255, 0.9);
  padding: 40px 35px;
  border-radius: 14px;
  box-shadow: 0 8px 28px rgba(0,0,0,0.18);
  text-align: left;
  margin: 50px auto 0 auto;
}

.auth-box h1 {
  font-size: 32px;
  font-weight: 700;
  margin-bottom: 25px;
  color: #000;
}

.auth-box label {
  display: block;
  margin-bottom: 6px;
  font-weight: 600;
}

.auth-box input, .auth-box select {
  width: 100%;
  padding: 14px;
  margin: 10px 0 18px 0;
  border: 1px solid #ccc;
  border-radius: 8px;
  font-size: 16px;
}

.auth-box button {
  width: 100%;
  padding: 14px;
  background: #000;
  color: #fff;
  font-weight: 700;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-size: 17px;
}

.signup-btn {
  width: 60%;
  margin: 0 auto;
  display: block;
  background: #808080;
  color: #fff;
}

.auth-links {
  margin-top: 15px;
  font-size: 14px;
}

.auth-links a {
  color: #000;
  text-decoration: none;
  font-weight: 600;
  display: block;
  margin-top: 10px;
}

/* MAP SCREEN */
#mapScreen {
  display: flex;
  min-height: calc(100vh - 60px);
  width: 100%;
}

#sidebar {
  width: 300px;
  background: #ffffff;
  border-right: 1px solid #ddd;
  padding-top: 80px;
  padding-left: 20px;
  padding-right: 20px;
  overflow-y: auto;
}

#sidebar h2 {
  margin-top: 40px;
  font-size: 20px;
}

#parkDropdown {
  width: 100%;
  padding: 10px;
  margin-bottom: 20px;
  font-size: 16px;
}

#parkInfo {
  font-size: 14px;
  line-height: 1.4;
}

#map {
  flex: 1;
  position: relative;
}

#mapControls {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  display: flex;
  gap: 12px;
  background: white;
  border: 1px solid #ccc;
  border-radius: 30px;
  padding: 10px 16px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.15);
}

.control-btn {
  background: white;
  border: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  font-size: 18px;
  text-align: center;
  line-height: 40px;
  cursor: pointer;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

/* POPUP */
.popup {
  width: 350px;
  max-width: 90vw;
  padding: 12px;
  background: white;
  border: 1px solid #ccc;
  border-radius: 6px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.2);
  overflow: hidden;
}

.popup-img {
  max-width: 100%;
  height: auto;
  display: block;
  border-radius: 6px;
  margin-top: 8px;
}

/* RESPONSIVE BREAKPOINTS */
@media (max-width: 1200px) {
  .hero h1 {
    font-size: clamp(32px, 7vw, 60px);
    margin-left: 0;
    margin-right: 0;
  }
}

@media (max-width: 900px) {
  .hero {
    flex-direction: column;
    text-align: center;
    padding: 40px 20px;
  }

  .hero img.hero-tablet {
    margin: 0 auto 30px auto;
    max-width: 90%;
  }

  .hero h1 {
    margin: 0 auto;
    font-size: clamp(28px, 7vw, 60px);
  }

  .section {
    flex-direction: column;
    padding: 30px 20px;
  }

  .section-text {
    min-width: 100%;
    text-align: center;
  }

  .section img {
    max-width: 100%;
    margin-left: 0;
  }

  #mapScreen {
    flex-direction: column;
  }

  #sidebar {
    width: 100%;
    padding-top: 20px;
    border-right: none;
    border-bottom: 1px solid #ddd;
  }

  #map {
    height: 60vh;
  }
}

@media (max-width: 700px) {
  nav {
    justify-content: center;
    gap: 15px;
    padding: 10px 15px;
  }

  .text-logo {
    left: 15px;
    font-size: 16px;
  }

  .auth-box {
    padding: 30px 25px;
    margin: 20px;
  }

  .auth-box h1 {
    font-size: 26px;
  }

  .hero {
    flex-direction: column;
    padding: 20px;
    text-align: center;
  }

  .hero img.hero-tablet {
    max-width: 85%;
    margin: 0 0 25px 0;
  }

  .hero h1 {
    font-size: clamp(26px, 8vw, 48px);
    max-width: 90%;
    margin: 0 auto;
  }
}

@media (max-width: 600px) {
  nav {
    padding: 8px 10px;
    gap: 10px;
  }

  nav a {
    font-size: 16px;
  }

  .text-logo {
    font-size: 14px;
    left: 10px;
  }

  .hero {
    padding: 15px;
  }

  .hero h1 {
    font-size: clamp(24px, 8vw, 40px);
  }

  .section {
    padding: 20px 15px;
  }

  .auth-box {
    padding: 25px 20px;
    margin: 15px;
  }

  .auth-box h1 {
    font-size: 24px;
  }

  .auth-box input {
    padding: 12px;
    font-size: 16px;
  }

  .auth-box button {
    padding: 12px;
    font-size: 16px;
  }

  .signup-btn {
    width: 70%;
  }
}

@media (max-width: 480px) {
  nav {
    padding: 6px 8px;
    gap: 8px;
  }

  nav a {
    font-size: 14px;
  }

  .text-logo {
    font-size: 12px;
    left: 8px;
  }

  .hero {
    padding: 10px;
  }

  .hero h1 {
    font-size: clamp(20px, 8vw, 32px);
  }

  .section {
    padding: 15px 10px;
  }

  .auth-box {
    padding: 20px 15px;
    margin: 10px;
  }

  .auth-box h1 {
    font-size: 20px;
  }

  .auth-box input {
    padding: 10px;
    font-size: 16px;
  }

  .auth-box button {
    padding: 10px;
    font-size: 16px;
  }

  .signup-btn {
    width: 80%;
  }

  #sidebar {
    padding-left: 15px;
    padding-right: 15px;
  }

  #mapControls {
    padding: 8px 12px;
    gap: 8px;
  }

  .control-btn {
    width: 35px;
    height: 35px;
    font-size: 16px;
    line-height: 35px;
  }
}

/* MAILING LIST */
#mailing-list {
  margin-left: 50px;
}

#mailing-list h2,
#mailing-list label,
#mailing-list input,
#mailing-list button {
  display: block;
  margin-bottom: 10px;
  text-align: left;
}

#mailing-list h2 {
  font-size: 26px;
  font-weight: 600;
  margin-bottom: 25px;
}

#mailing-list label {
  font-size: 18px;
  display: block;
  margin-bottom: 8px;
}

#mailing-list #email {
  width: 200px;
  padding: 14px;
  margin: 10px 0 18px 0;
  border: 1px solid #ccc;
  border-radius: 8px;
  font-size: 16px;
  display: block;
}

#mailing-list button {
  width: 80px;
  padding: 10px;
  font-size: 16px;
  background: #e6e6e6;
  border: 1px solid #bfbfbf;
  border-radius: 4px;
  cursor: pointer;
}
