/* style.css */

body {
  margin: 0;
  font-family: Arial, sans-serif;
  background-color: #f5f5f5;
  color: #333;
}

header {
  background-color: white;
  padding: 10px 0;
  text-align: center;
  border-bottom: 2px solid #ccc;
}

.logo {
  max-width: 200px;
  height: auto;
}

nav {
  background-color: #e2f5e9;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px;
  border-bottom: 2px solid #b2d8c2;
}

nav button {
  background-color: #4CAF50;
  color: white;
  border: none;
  padding: 10px 20px;
  cursor: pointer;
  border-radius: 5px;
  font-size: 16px;
}

.menu-dropdown {
  position: relative;
  display: inline-block;
}

#menu-btn {
  background-color: #4CAF50;
  color: white;
  font-size: 18px;
  border: none;
  padding: 10px 15px;
  border-radius: 5px;
  cursor: pointer;
}

.dropdown-content {
  display: none;
  position: absolute;
  right: 0;
  background-color: #fff;
  min-width: 160px;
  box-shadow: 0px 8px 16px rgba(0, 0, 0, 0.2);
  z-index: 1;
  border-radius: 5px;
  overflow: hidden;
}

.menu-dropdown:hover .dropdown-content {
  display: block;
}

.dropdown-content a {
  color: #333;
  padding: 12px 16px;
  text-decoration: none;
  display: block;
  font-size: 14px;
}

.dropdown-content a:hover {
  background-color: #f1f1f1;
}

main {
  padding: 20px;
  background-color: #e2f5e9;
  text-align: center;
}

main h1 {
  font-size: 28px;
  margin-bottom: 10px;
}

main p {
  max-width: 800px;
  margin: 0 auto 30px;
  font-size: 18px;
}

#search-bar {
  padding: 10px;
  width: 80%;
  max-width: 500px;
  margin: 20px auto;
  display: block;
  font-size: 16px;
  border: 1px solid #ccc;
  border-radius: 5px;
}

.listings {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
}

.listing-card {
  background-color: white;
  padding: 15px;
  border-radius: 10px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  width: 250px;
  transition: transform 0.2s;
}

.listing-card:hover {
  transform: translateY(-5px);
}

.listing-card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 8px;
}

footer {
  background-color: white;
  text-align: center;
  padding: 10px;
  border-top: 2px solid #ccc;
  margin-top: 40px;
}

/* Modal styling */
.modal-content {
  background-color: white;
  padding: 20px;
  border-radius: 10px;
  max-width: 600px;
  margin: 100px auto;
  position: relative;
  z-index: 10;
}

.hidden {
  display: none;
}

#auth-modal,
#info-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.6);
  z-index: 5;
}

#auth-close-btn,
#close-modal {
  position: absolute;
  top: 10px;
  right: 15px;
  font-size: 20px;
  background: none;
  border: none;
  cursor: pointer;
}

.tab {
  display: none;
}

.tab.active {
  display: block;
}

.tab-links {
  margin-bottom: 10px;
  display: flex;
  gap: 15px;
  justify-content: center;
  font-weight: bold;
  cursor: pointer;
}

.tab-link.active {
  text-decoration: underline;
}

form input[type="email"],
form input[type="password"] {
  display: block;
  width: 100%;
  margin-bottom: 15px;
  padding: 10px;
  font-size: 16px;
  border: 1px solid #ccc;
  border-radius: 5px;
}

form button[type="submit"] {
  background-color: #4CAF50;
  color: white;
  padding: 10px;
  width: 100%;
  font-size: 16px;
  border: none;
  border-radius: 5px;
  cursor: pointer;
}
