html, body {
  overscroll-behavior: none;
  overflow-x: hidden;
}

/* Prevent iOS rubber-band bounce scrolling at top */
body {
    overscroll-behavior-y: contain;
}

/* Prevent weird mobile viewport shifts */
html {
    touch-action: manipulation;
    -webkit-overflow-scrolling: touch;

}

.hamburger {
  display: none;
  font-size: 2rem;
  background: none;
  border: none;
  color: white;
}


.mobile-only{
  display:none;
}

@media screen and (max-width: 600px) {

  html, body {
    font-family: 'Segoe UI', sans-serif;
    font-size: 16px;
    line-height: 1.5;
    background: #f8f8f8;
    color: #333;
  }

 
  #intro-bar {
    height: 30vh; /* Shrink from 50vh to 30vh on small screens */
  }

   .navbar {
    position: relative;
    flex-direction: column;
    align-items: flex-start;
  }

  #nav-image {
    order: 0;
    margin-bottom: 10px;
  }

.hamburger {
  display: block;
  position: absolute;
  top: 20px;
  right: 20px;
  background: none;
  border: none;
  font-size: 2rem;
  color: white;
  cursor: pointer;
  z-index: 1000;
}


  #navbar ul {
    display: none;
    flex-direction: column;
    width: 100%;
    gap: 10px;
  }

#navbar ul.active {
    display: flex;
  }

  #navbar li {
    width: 100%;
  }

  #navbar li a {
    display: block;
    width: 100%;
    padding: 12px 16px;
    background: rgb(219, 219, 219);
    color: black;
  }

  .mobile-only {
    display:inline-flex;
  }

  .searchbtn {
    display: none;
  }

    .search-form {
      flex-direction: column;
      align-items: stretch;
      padding: 12px;
  }

  .search-form input,
  .search-form select,
  .search-form button {
      width: 100%;
      flex: 1 1 100%;
      font-size: 15px;
  }




  .container {
    padding: 16px;
    box-sizing: border-box;
    width: 100%;
  }

  h1, h2, h3 {
    font-size: 1.25rem;
    margin-top: 1rem;
    margin-bottom: 0.5rem;
  }

  p, label, span {
    font-size: 1rem;
  }

  form {
    display: flex;
    flex-direction: column;
    gap: 16px;
  }

  input[type="text"],
  input[type="number"],
  input[type="file"],
  select,
  textarea {
    width: 100%;
    padding: 10px;
    font-size: 1rem;
    border: 1px solid #ccc;
    border-radius: 8px;
    box-sizing: border-box;
  }

  button, button[type="submit"] {
    padding: 12px;
     background-color: #e55d1e;
    color: white;
    font-size: 1rem;
    border: none;
    border-radius: 8px;
    cursor: pointer;
  }

  /* Responsive preview area */
  #listing-preview {
    border: 1px solid #ddd;
    border-radius: 12px;
    background: white;
    padding: 16px;
    margin-top: 24px;
  }

  .carousel-track {
    display: flex;
    overflow-x: scroll;
    gap: 8px;
  }

  .carousel-track img {
    max-width: 100%;
    height: auto;
    object-fit: cover;
    border-radius: 8px;
    flex-shrink: 0;
  }

  .carousel-dots {
    text-align: center;
    margin-top: 10px;
  }

  .dot {
    height: 10px;
    width: 10px;
    margin: 0 4px;
    background-color: #bbb;
    border-radius: 50%;
    display: inline-block;
  }

  .dot.active {
    background-color: #717171;
  }

 .listing-info {
    margin-top: 12px;
    padding: 0 8px;
  }

  .listing-info p {
    margin: 4px 0;
    font-size: 0.875rem; /* ~14px */
  }

  .price {
    font-size: 0.95rem;
    font-weight: bold;
    
  }

  /* Lightbox image scrolling */
  .lightbox-scroll {
    max-height: 90vh;
    overflow-y: auto;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 16px;
  }

  .lightbox-img {
    max-width: 100%;
    height: auto;
    object-fit: contain;
  }

  .status-badge {
    font-size: 0.75rem;
    padding: 4px 8px;
    top: 8px;
    left: 8px;
  }


}


