.gallery {
  background: var(--mw-surface, #fafafa);
  padding: 2rem 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
}

.gallery-container {
  position: relative;
  width: min(960px, calc(100% - 2rem));
  margin: 0 auto;
}

.gallery-track {
  display: flex;
  gap: 1rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scrollbar-width: none; /* Firefox */
  -ms-overflow-style: none; /* IE */
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  background: #fff;
}

.gallery-track::-webkit-scrollbar {
  display: none;
}

.gallery-track img.slide {
  flex: 0 0 100%;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: contain;
  background-color: #000;
  scroll-snap-align: center;
}

.btn-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid var(--mw-border);
  border-radius: 50%;
  width: 3rem;
  height: 3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  color: var(--mw-navy-deep);
  transition: all 0.2s ease;
  z-index: 10;
}

.btn-nav:hover {
  background: #fff;
  transform: translateY(-50%) scale(1.05);
  color: var(--mw-subheading);
}

.btn-nav.prev { left: -1.5rem; }
.btn-nav.next { right: -1.5rem; }

@media (max-width: 1000px) {
  .btn-nav.prev { left: 0.5rem; }
  .btn-nav.next { right: 0.5rem; }
}

.gallery-thumbs {
  width: min(960px, calc(100% - 2rem));
  margin: 1rem auto 0;
  display: flex;
  gap: 0.5rem;
  overflow-x: auto;
  padding-bottom: 0.5rem;
  scrollbar-width: thin;
}

.gallery-thumbs button {
  flex: 0 0 calc(100% / 6 - 0.5rem);
  padding: 0;
  border: 2px solid transparent;
  border-radius: 8px;
  background: transparent;
  cursor: pointer;
  opacity: 0.6;
  transition: all 0.2s ease;
  overflow: hidden;
}

@media (max-width: 600px) {
  .gallery-thumbs button {
    flex: 0 0 calc(100% / 4 - 0.5rem);
  }
}

.gallery-thumbs button:hover {
  opacity: 0.9;
}

.gallery-thumbs button.active {
  opacity: 1;
  border-color: var(--mw-subheading);
  transform: scale(1.02);
}

.gallery-thumbs img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
}

.dpto-info {
  display: grid;
  gap: 1rem;
}

@media (min-width: 900px) {
  .dpto-info {
    grid-template-columns: 1fr 1fr;
  }
}

.dpto-info ul {
  margin: 0;
  padding-left: 1.2rem;
}

.dpto-info li {
  margin-bottom: 0.35rem;
  color: var(--mw-muted);
}

.availability-box {
  margin-top: 1rem;
  border: 1px solid var(--mw-border);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow-sm);
  padding: 0.85rem;
  overflow-x: auto;
}
