/* === GLOBAL RESET === */
html {
  scroll-behavior: smooth;
}

body {
  font-family: system-ui, sans-serif;
  background-color: #fff;
  padding-top: 90px; /* prevent navbar overlap */
  color: #333;
}

img {
  max-width: 100%;
  height: auto;
}

/* === NAVBAR === */
.navbar-nav .nav-item {
  display: flex;
  align-items: center;
}

.navbar-nav .nav-link {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 0 14px;
  transition: text-decoration 0.2s ease-in-out;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-item a:hover {
  text-decoration: underline;
}

.navbar-nav .nav-link.active {
  font-weight: 600;
  text-decoration: underline;
}

.navbar-nav .nav-link i {
  font-size: 1.2rem;
  vertical-align: middle;
  margin: 0 4px;
}

.navbar-nav .dropdown-toggle i {
  margin-left: auto;
}

.navbar-toggler {
  margin-top: 8px;   /* space it down a bit */
  margin-bottom: 8px; /* optional – balances vertically */
}

.navbar-brand {
  white-space: nowrap;
  margin-right: 2rem;
  font-size: 1.05rem;
}

.navbar-nav.ms-auto {
  margin-left: 1rem;
}

@media (max-width: 991px) {
  .navbar-nav {
    text-align: center;
  }
  .navbar-nav .dropdown-toggle i {
    margin-left: 0;
  }
}

/* Dropdown Styling */
.dropdown-menu .dropdown-item:hover,
.dropdown-menu .dropdown-item:focus {
  background-color: #f2f2f2;
  color: #000;
  transition: background-color 0.2s ease-in-out;
}

.dropdown-menu .dropdown-item.active {
  background-color: #2e7d32 !important;
  color: #fff !important;
  font-weight: 600;
}

/* === LISTING GALLERY === */
.listing-gallery {
  max-width: 900px;
  margin: 2rem auto;
}

.main-image {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.main-image img {
  width: 100%;
  height: auto;
  max-height: 600px;
  object-fit: contain;        /* prevents cropping */
  border-radius: 8px;
  background: none;           /* removes border-like background */
}

/* Navigation Arrows */
.gallery-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.5);
  border: none;
  color: white;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.3s;
}

.gallery-nav:hover {
  background: rgba(0, 0, 0, 0.7);
}

.gallery-nav.prev { left: 10px; }
.gallery-nav.next { right: 10px; }

/* Thumbnails Row */
.thumbnail-row {
  display: flex;
  flex-wrap: nowrap;
  overflow-x: auto;
  overflow-y: hidden;
  justify-content: flex-start;
  scroll-behavior: smooth;
  gap: 6px;
  padding: 10px; /* fixes cropped first/last thumbnail */
}

.thumbnail {
  flex: 0 0 auto;
  width: 100px;
  height: 70px;
  object-fit: contain;
  border-radius: 4px;
  cursor: pointer;
  opacity: 0.6;
  transition: opacity 0.3s, transform 0.3s, box-shadow 0.3s;
}

.thumbnail:hover,
.thumbnail.active {
  opacity: 1;
  transform: scale(1.05);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}
