/* Base */
*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: #05060a;
  color: #f5f5f5;
}

/* Links & buttons */
a {
  color: inherit;
  text-decoration: none;
}

.btn {
  display: inline-block;
  padding: 0.6rem 1.2rem;
  border-radius: 999px;
  font-size: 0.95rem;
  font-weight: 500;
  border: none;
  cursor: pointer;
  text-align: center;
}

.btn.primary {
  background: #0078ff;
  color: #fff;
}

.btn.primary:hover {
  background: #005fcc;
}

.btn.secondary {
  background: transparent;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.4);
}

.btn.secondary:hover {
  background: rgba(255, 255, 255, 0.08);
}

.btn.small {
  padding: 0.4rem 0.9rem;
  font-size: 0.85rem;
}

/* NAVBAR */
.nav {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(5, 6, 10, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.nav-container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0.6rem 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo a {
  font-size: 1.3rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.nav-links ul {
  list-style: none;
  display: flex;
  gap: 1.2rem;
  margin: 0;
  padding: 0;
}

.nav-links a {
  font-size: 0.95rem;
  opacity: 0.85;
}

.nav-links a:hover {
  opacity: 1;
}

/* Mobile nav toggle */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  margin: 4px 0;
  background: #fff;
}

/* HERO + SLIDESHOW */
.hero {
  position: relative;
  width: 100%;
  color: #fff;
}

.slideshow-container {
  position: relative;
  max-height: 520px;
  overflow: hidden;
}

.slideshow-container img {
  width: 100%;
  height: 520px;   /* FIXED HEIGHT */
  object-fit: cover;
  display: block;
}


/* Keep class names for run.js */
.mySlides {
  display: none;
  position: relative;
}

.fade {
  animation-name: fade;
  animation-duration: 1s;
}

@keyframes fade {
  from { opacity: 0.4; }
  to { opacity: 1; }
}

/* Hero overlay */
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.2));
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-content {
  max-width: 600px;
  padding: 1.5rem;
  text-align: center;
}

.hero-content h1 {
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  margin-bottom: 0.6rem;
}

.hero-content p {
  margin-bottom: 1rem;
  opacity: 0.9;
}

.hero-actions {
  display: flex;
  gap: 0.8rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* Prev/Next buttons */
.prev,
.next {
  cursor: pointer;
  position: absolute;
  top: 50%;
  padding: 0.7rem;
  margin-top: -22px;
  color: #fff;
  font-weight: bold;
  font-size: 1.2rem;
  border-radius: 0 3px 3px 0;
  user-select: none;
  background: rgba(0, 0, 0, 0.35);
}

.next {
  right: 0;
  border-radius: 3px 0 0 3px;
}

.prev:hover,
.next:hover {
  background: rgba(0, 0, 0, 0.6);
}

/* Dots */
.dots-container {
  text-align: center;
  padding: 0.7rem 0 1.2rem;
}

.dot {
  cursor: pointer;
  height: 10px;
  width: 10px;
  margin: 0 3px;
  background-color: #bbb;
  border-radius: 50%;
  display: inline-block;
  transition: background-color 0.3s;
}

.active,
.dot:hover {
  background-color: #717171;
}

/* QUICK LINKS */
.quick-links {
  background: #0b0c12;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.quick-links-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0.6rem 1rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  justify-content: center;
}

.quick-links a {
  font-size: 0.9rem;
  padding: 0.3rem 0.8rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
}

/* MAIN CONTENT */
.main-content {
  max-width: 1100px;
  margin: 1.8rem auto 2.5rem;
  padding: 0 1rem;
}

.items-section h2 {
  margin-bottom: 1rem;
  font-size: 1.4rem;
}

.items-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 1.2rem;
}

.item-card {
  background: #0b0c12;
  border-radius: 10px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  border: 1px solid rgba(255, 255, 255, 0.04);
}

.item-image img {
  width: 100%;
  height: 180px;
  object-fit: cover;
}

.item-body {
  padding: 0.8rem 0.9rem 0.4rem;
}

.item-title {
  margin: 0 0 0.3rem;
  font-size: 1rem;
}

.item-price {
  margin: 0;
  font-weight: 600;
  color: #4fd1c5;
}

.item-location {
  margin: 0.3rem 0 0;
  font-size: 0.85rem;
  opacity: 0.8;
}

.item-seller {
  margin: 0.2rem 0 0.4rem;
  font-size: 0.8rem;
  opacity: 0.7;
}

.item-actions {
  padding: 0.5rem 0.9rem 0.8rem;
}

/* No items */
.no-items {
  opacity: 0.8;
}

/* FOOTER */
.footer {
  background: #05060a;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 1.8rem 1rem 1.2rem;
}

.footer-top {
  max-width: 1100px;
  margin: 0 auto 1.5rem;
  display: grid;
  grid-template-columns: minmax(0, 2fr) repeat(2, minmax(0, 1fr));
  gap: 1.5rem;
}

.footer-column h3,
.footer-column h4 {
  margin-top: 0;
  margin-bottom: 0.6rem;
}

.footer-column p {
  margin: 0;
  opacity: 0.8;
}

.footer-column ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-column li {
  margin-bottom: 0.3rem;
}

.footer-column a {
  font-size: 0.9rem;
  opacity: 0.85;
}

.footer-column a:hover {
  opacity: 1;
}

.footer-bottom {
  max-width: 1100px;
  margin: 0 auto;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding-top: 0.8rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  align-items: center;
  justify-content: space-between;
  font-size: 0.85rem;
  opacity: 0.85;
}

.footer-menu {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
}

/* COOKIE BANNER */
#cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background: #222;
  color: #fff;
  padding: 0.8rem 1rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  justify-content: space-between;
  align-items: center;
  z-index: 9999;
  font-size: 0.9rem;
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.4);
}

#cookie-banner p {
  margin: 0;
  flex: 1 1 220px;
}

#cookie-banner button {
  background: #0078ff;
  color: #fff;
  border: none;
  padding: 0.4rem 0.9rem;
  border-radius: 999px;
  cursor: pointer;
  font-size: 0.9rem;
}

#cookie-banner button:hover {
  background: #005fcc;
}

#cookie-banner.hidden {
  display: none;
}

/* RESPONSIVE */
@media (max-width: 768px) {
  .nav-toggle {
    display: block;
  }

  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #05060a;
    display: none;
  }

  .nav-links.open {
    display: block;
  }

  .nav-links ul {
    flex-direction: column;
    padding: 0.6rem 1rem 0.9rem;
  }

  .footer-top {
    grid-template-columns: 1fr;
  }

  .slideshow-container {
    max-height: 420px;
  }
}
