#navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  display: grid;
  grid-template-columns: 1fr minmax(0, auto) 1fr; /* prevents middle col overflowing */
  align-items: center;
  padding: 0 1.5rem;
  height: 56px;
  background-color: #ffffff;
  border-bottom: 1px solid #e5e7eb;
  z-index: 1000;
  box-sizing: border-box;
}

#nav-links {
  display: flex;
  flex-direction: row;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 0.25rem;
  justify-content: center;
  grid-column: 2;
  overflow: hidden; /* won't push siblings off screen */
}

#nav-auth {
  display: flex;
  flex-direction: row;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 0.25rem;
  justify-content: flex-end;
  grid-column: 3;
  flex-shrink: 0; /* never compress the auth items */
}
#navbar ul li {
  display: inline;
}

#navbar ul li a {
  text-decoration: none;
  padding: 6px 12px;
  color: #6b7280;
  font-size: 14px;
  font-weight: 400;
  border-radius: 6px;
  transition: color 0.2s ease, background-color 0.2s ease;
  display: inline-block;
}

#navbar ul li a:hover {
  color: #111827;
  background-color: #f3f4f6;
  text-decoration: none;
}

#navbar a.active {
  color: #111827;
  font-weight: 500;
  background-color: #f3f4f6;
  border-bottom: none;
  text-decoration: none;
}

#nav-auth button.logout {
  background: none;
  border: none;
  outline: none;
  font-size: 14px;
  font-family: inherit;
  font-weight: 400;
  color: #6b7280;
  cursor: pointer;
  padding: 6px 12px;
  border-radius: 6px;
  transition: color 0.2s ease, background-color 0.2s ease;
}

#nav-auth button.logout:hover {
  color: #111827;
  background-color: #f3f4f6;
  text-decoration: none;
}

.footer {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  text-align: center;
  padding: 2px;
  height: 20px;
  background-color: #ffffff;
  border-top: 1px solid #e5e7eb;
  z-index: 1000;
  box-sizing: border-box;
  font-size: xx-small;
}


body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  line-height: 1.6;
  color: #111827;
  background-color: #f9fafb;
  /* margin: 0 auto; */
  padding-top: 56px;
  padding-bottom: 20px;
}

main {
  width: 100%;
  max-width: 860px;
  margin: 2rem auto;
  padding: 0 1.5rem;
}


.logo-img {
    width: 400px;
    height: auto;
    padding: 10px;
    display: block;
    margin: 20px auto;
}


.meet-us ul {
    display: flex;
    list-style: none;
    padding: 0;
    margin: 0;
    gap: 20%;
    justify-content: center;
}

.meet-us li {
    display: inline;
}

/* Auth */

.auth-form {
    justify-content: center;
    align-items: center;
    margin: 0;
    
    background-color: #ffffff;
    padding: 30px 40px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    width: 350px;
}

.auth-form input[type="text"],
.auth-form input[type="email"],
.auth-form input[type="password"] {
    width: 100%;
    padding: 10px;
    margin-top: 5px;
    margin-bottom: 5px;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box;
}
.auth-form label {
    font-weight: bold;
    display: block;
    margin-top: 15px;
}

.auth-form input[type="submit"] {
    padding: 8px 18px;
    background: #111;
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    cursor: pointer;
    width: 100%;
    margin-top: 20px;
}

.auth-form input[type="submit"]:hover {
    background: #333;
}

.form-submit {
    padding: 8px 18px;
    background: #111;
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    cursor: pointer;
    margin-top: 20px;
    display: block;
    width: 100%;
    max-width: 25%;
    margin: 0 auto;
}

.form-submit:hover {
    background: #333;
}
.signup {
  background: none;
  border: none;
  outline: none;
  font-size: 17px;
  color: #333;
  cursor: pointer;
}


h1 {
    text-align: center;
}

.section-container {
  border: 1px solid #d1d5db;
  border-radius: 12px;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  background: #ffffff;
  list-style: none;
}


.section-container h2.tour-title {
  font-size: 20px;
  font-weight: 500;
  color: #111827;
  margin: 0 0 4px 0;
}

.section-container p.tour-date {
  font-size: 13px;
  color: #6b7280;
  margin: 0 0 1.25rem 0;
}

.section-container h2.section-heading {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #9ca3af;
  border-bottom: 1px solid #e5e7eb;
  padding-bottom: 6px;
  margin: 0 0 10px 0;
}

.section-container ul {
  list-style: none;
  padding: 0;
  margin: 0 0 1.25rem 0;
}

.section-container ul li {
  font-size: 14px;
  color: #111827;
  padding: 6px 0;
  border-bottom: 0.5px solid #f3f4f6;
}

.section-container ul li:last-child {
  border-bottom: none;
}

.section-container ul li a {
  color: #2563eb;
  text-decoration: none;
  font-size: 13px;
}

.section-container ul li a:hover {
  text-decoration: underline;
}

.section-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  list-style: none;
  padding: 0;
  margin: 0;
}

.section-grid .section-container {
  flex: 0 0 calc(33.333% - 1rem);
  margin-bottom: 0;
  box-sizing: border-box;
}

/* Forum and Post Styles */
.post-container {
  max-width: 720px;
  overflow: auto;
  margin: 0 auto;
}

.delete-btn {
  background-color: #dc3545;
  color: white;
  padding: 5px 10px;
  border: none;
  border-radius: 3px;
  cursor: pointer;
  font-size: 14px;
}

.delete-btn:hover {
  background-color: #c82333;
}

.replies-container {
  max-width: 720px;
  margin: 20px auto 0 auto;
}

.reply-item {
  background-color: #f5f5f5;
  padding: 10px;
  margin: 10px 0;
  border-radius: 5px;
}

.reply-timestamp {
  font-size: 0.9em;
  color: #666;
}

.delete-form {
  display: inline;
}

.section-heading {
  text-align: left;
}

.post-link {
  text-decoration: none;
  color: inherit;
}


.form-container form {
    max-width: 480px;
    margin: 2rem auto;
    padding: 1.5rem;
    border: 1px solid #d1d5db;
    border-radius: 10px;
    background: #fff;
}
.form-container form p {
    margin-bottom: 14px;
}

.form-container form p label {
    display: block;
    font-size: 13px;
    color: #6b7280;
    margin-bottom: 4px;
}

.form-container form p input,
.form-container form p select,
.form-container form p textarea {
    width: 100%;
    box-sizing: border-box;
    padding: 8px 12px;
    font-size: 14px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    background-color: #fff;
    color: #111;
    outline: none;
    transition: border-color 0.15s;
}

.form-container form p input:focus,
.form-container form p select:focus,
.form-container form p textarea:focus {
    border-color: #6366f1;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.15);
}

.form-container form p select[multiple] {
    height: 90px;
}

.form-container form p span.helptext {
    display: block;
    font-size: 11px;
    color: #9ca3af;
    margin-top: 3px;
}

/* submit button */
.form-container form input[type="submit"] {
    padding: 8px 18px;
    background: #111;
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    cursor: pointer;
}

.form-container form input[type="submit"]:hover {
    background: #333;
} 
.form-container form p select[multiple] {
    width: 100%;
    box-sizing: border-box;
    height: 120px;
    padding: 4px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    background-color: #fff;
    color: #111;
    font-size: 14px;
    outline: none;
}

.form-container form p select[multiple]:focus {
    border-color: #6366f1;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.15);
}

.form-container form p select[multiple] option {
    padding: 6px 8px;
    border-radius: 4px;
    cursor: pointer;
}

.form-container form p select[multiple] option:hover {
    background-color: #f3f4f6;
}

.form-container form p select[multiple] option:checked {
    background-color: #f3f4f6;
    color: #111;
}

.form-container .cancel {
    padding: 8px 18px;
    background: #111;
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    cursor: pointer;
    margin-right: 10px;
    margin-left: 65%;
    text-decoration: none;
}
.form-container .cancel:hover {
    background: #333;
}

/* Gallery Modal */
.section-container .modal {
  display: none; /* Hidden by default */
  position: fixed; /* Stay in place */
  z-index: 1; /* Sit on top */
  padding-top: 86px; /* Location of the box */
  left: 0;
  top: 0;
  width: 100%; /* Full width */
  height: 100%; /* Full height */
  overflow: auto; /* Enable scroll if needed */
  background-color: rgb(0,0,0); /* Fallback color */
  background-color: rgba(0,0,0,0.4); 
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);

}

.section-container .modal-content {
  margin: auto;
  text-align: center;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.section-container .modal-image {
  display: inline-block;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.section-container .modal .close {
  position: absolute;
  top: 66px;
  right: 220px;
  color: #f1f1f1;
  font-size: 40px;
  font-weight: bold;
  transition: color 0.3s ease;
  cursor: pointer;
}

.section-container .modal .close:hover {
  position: absolute;
  top: 66px;
  right: 220px;
  color: #333333;
  font-size: 40px;
  font-weight: bold;
  transition: color 0.3s ease;
  cursor: pointer;
}

/* Photo delete button and wrapper */
.photo-wrapper {
  position: relative;
}

.delete-photo-form {
  position: absolute;
  top: 8px;
  right: 8px;
  margin: 0;
}

.delete-photo {
  background: rgba(255,255,255,0.9);
  border: 1px solid #e5e7eb;
  color: #ef4444;
  font-weight: 700;
  border-radius: 50%;
  width: 28px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.delete-photo:hover {
  background: rgba(255,255,255,1);
  box-shadow: 0 2px 6px rgba(0,0,0,0.08);
}

