/* ============================================================
   University Plaza — Custom Styles
   Supplements Tailwind CSS utility classes
   ============================================================ */

/* ---------- Base ---------- */
html {
  scroll-behavior: smooth;
}

body {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ---------- Navbar ---------- */
#navbar {
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

#navbar.scrolled {
  border-bottom-color: rgba(201, 168, 76, 0.25);
  box-shadow: 0 4px 30px rgba(6, 14, 26, 0.5);
}

/* ---------- Hero scroll cue animation ---------- */
@keyframes bounce-subtle {
  0%, 100% { transform: translateX(-50%) translateY(0); opacity: 0.4; }
  50%       { transform: translateX(-50%) translateY(8px); opacity: 0.7; }
}

.scroll-cue {
  animation: bounce-subtle 2.2s ease-in-out infinite;
}

/* ---------- Swiper — property carousel ---------- */
.property-swiper .swiper-slide {
  height: 320px;
}

@media (min-width: 640px) {
  .property-swiper .swiper-slide { height: 400px; }
}

@media (min-width: 1024px) {
  .property-swiper .swiper-slide { height: 500px; }
}

.property-swiper .swiper-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.property-swiper .swiper-button-prev,
.property-swiper .swiper-button-next {
  color: #C9A84C;
  background: rgba(6, 14, 26, 0.65);
  backdrop-filter: blur(4px);
  width: 44px;
  height: 44px;
  border-radius: 0;
  transition: background 0.2s ease;
}

.property-swiper .swiper-button-prev:hover,
.property-swiper .swiper-button-next:hover {
  background: rgba(6, 14, 26, 0.9);
}

.property-swiper .swiper-button-prev::after,
.property-swiper .swiper-button-next::after {
  font-size: 14px;
  font-weight: 700;
}

.property-swiper .swiper-pagination-bullet {
  background: rgba(255, 255, 255, 0.5);
  opacity: 1;
  width: 6px;
  height: 6px;
  transition: background 0.2s ease, transform 0.2s ease;
}

.property-swiper .swiper-pagination-bullet-active {
  background: #C9A84C;
  transform: scale(1.3);
}

/* ---------- Demographics table hover ---------- */
.demo-row:hover {
  background: rgba(255, 255, 255, 0.03);
}

/* ---------- Smooth link underline for desktop nav ---------- */
nav ul a {
  position: relative;
}

nav ul a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -3px;
  width: 0;
  height: 1px;
  background: #C9A84C;
  transition: width 0.25s ease;
}

nav ul a:hover::after {
  width: 100%;
}

/* No underline trick on the bordered "Contact" button */
nav ul li:last-child a::after {
  display: none;
}

/* ---------- Section entrance fade (optional progressive enhancement) ---------- */
@media (prefers-reduced-motion: no-preference) {
  .fade-in {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.6s ease, transform 0.6s ease;
  }
  .fade-in.visible {
    opacity: 1;
    transform: none;
  }
}

/* ---------- Utility: gold rule ---------- */
.gold-rule {
  display: block;
  width: 40px;
  height: 2px;
  background: #C9A84C;
  margin-bottom: 1.25rem;
}

/* ---------- Mobile menu transition ---------- */
#mobile-menu {
  transition: max-height 0.3s ease, opacity 0.3s ease;
}
