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

/* Header */
#header.scrolled .nav-bar {
  background: rgba(15, 15, 15, 0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(200, 169, 81, 0.15);
  padding-top: 0.75rem;
  padding-bottom: 0.75rem;
}

.nav-bar {
  transition: all 0.3s ease;
}

.nav-link {
  position: relative;
  transition: color 0.3s ease;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1px;
  background: #C8A951;
  transition: width 0.3s ease;
}

.nav-link:hover {
  color: #C8A951;
}

.nav-link:hover::after {
  width: 100%;
}

/* Mobile menu */
.mobile-menu {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease;
}

.mobile-menu.open {
  max-height: 600px;
}

.mobile-nav-link {
  display: block;
  padding: 0.75rem 0;
  color: rgba(245, 240, 232, 0.8);
  font-size: 0.95rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  transition: color 0.3s ease, padding-left 0.3s ease;
}

.mobile-nav-link:hover {
  color: #C8A951;
  padding-left: 0.5rem;
}

/* Buttons */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.875rem 2rem;
  background: #C8A951;
  color: #1A1A1A;
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  transition: all 0.3s ease;
}

.btn-primary:hover {
  background: #E2C97A;
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(200, 169, 81, 0.3);
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.875rem 2rem;
  border: 1px solid rgba(255, 255, 255, 0.4);
  color: white;
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  transition: all 0.3s ease;
}

.btn-outline:hover {
  border-color: #C8A951;
  color: #C8A951;
}

/* Hero */
.hero-slider {
  z-index: 0;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1s ease-in-out;
}

.hero-slide.active {
  opacity: 1;
  z-index: 1;
}

.hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1);
  transition: transform 6s ease-out;
}

.hero-slide.active img {
  transform: scale(1.05);
}

.hero-overlay {
  background: linear-gradient(
    to top,
    rgba(15, 15, 15, 0.95) 0%,
    rgba(15, 15, 15, 0.4) 50%,
    rgba(15, 15, 15, 0.3) 100%
  );
}

.scroll-indicator {
  animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
  0%, 100% { opacity: 0.4; transform: scaleY(1); }
  50% { opacity: 1; transform: scaleY(1.1); }
}

/* Hero slider controls */
.hero-nav {
  position: absolute;
  top: 50%;
  z-index: 20;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 50%;
  background: rgba(15, 15, 15, 0.4);
  backdrop-filter: blur(8px);
  color: white;
  transition: all 0.3s ease;
}

.hero-nav:hover {
  border-color: #C8A951;
  color: #C8A951;
  background: rgba(15, 15, 15, 0.6);
}

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

.hero-dots {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 20;
  display: flex;
  gap: 0.5rem;
}

.hero-dot {
  width: 2rem;
  height: 3px;
  background: rgba(255, 255, 255, 0.35);
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  padding: 0;
}

.hero-dot:hover {
  background: rgba(200, 169, 81, 0.6);
}

.hero-dot.active {
  background: #C8A951;
  width: 3rem;
}

@media (max-width: 768px) {
  .hero-nav {
    width: 36px;
    height: 36px;
  }

  .hero-nav--prev { left: 0.75rem; }
  .hero-nav--next { right: 0.75rem; }
}

/* Sections */
.section-label {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: #C8A951;
}

.section-title {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: clamp(2rem, 5vw, 3.25rem);
  font-weight: 500;
  line-height: 1.15;
  color: #1A1A1A;
}

/* Tabs */
.tab-group {
  display: flex;
  gap: 0;
  border-bottom: 1px solid rgba(26, 26, 26, 0.1);
}

.tab-btn {
  padding: 0.75rem 1.5rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: rgba(26, 26, 26, 0.5);
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  transition: all 0.3s ease;
}

.tab-btn:hover {
  color: #1A1A1A;
}

.tab-btn.active {
  color: #1A1A1A;
  border-bottom-color: #C8A951;
}

.tab-content {
  display: none;
  animation: fadeIn 0.4s ease;
}

.tab-content.active {
  display: block;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Image frame */
.image-frame {
  position: relative;
}

.image-frame::before {
  content: '';
  position: absolute;
  top: -12px;
  right: -12px;
  width: 100%;
  height: 100%;
  border: 1px solid #C8A951;
  z-index: -1;
}

/* Property cards */
.property-card {
  background: #2D2D2D;
  overflow: hidden;
  transition: transform 0.4s ease;
}

.property-card:hover {
  transform: translateY(-4px);
}

.property-card-img {
  width: 100%;
  height: 240px;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.property-card:hover .property-card-img {
  transform: scale(1.05);
}

/* Location */
.location-map {
  border: 1px solid rgba(200, 169, 81, 0.4);
  border-radius: 0.5rem;
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
  background: rgba(15, 15, 15, 0.3);
}

.location-map-img {
  width: 100%;
  height: auto;
  display: block;
}

.location-item {
  display: flex;
  gap: 1.5rem;
  padding: 1.25rem;
  background: rgba(15, 15, 15, 0.3);
  border-left: 2px solid #C8A951;
  transition: background 0.3s ease;
}

.location-item:hover {
  background: rgba(15, 15, 15, 0.5);
}

.location-time {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 1.5rem;
  font-weight: 600;
  color: #C8A951;
  white-space: nowrap;
  min-width: 80px;
}

.location-places {
  list-style: none;
  padding: 0;
  margin: 0;
}

.location-places li {
  font-size: 0.875rem;
  color: rgba(245, 240, 232, 0.7);
  padding: 0.15rem 0;
}

.location-places li::before {
  content: '·';
  margin-right: 0.5rem;
  color: #C8A951;
}

/* Amenity cards */
.amenity-card {
  padding: 2rem;
  background: white;
  border: 1px solid rgba(26, 26, 26, 0.06);
  transition: all 0.3s ease;
}

.amenity-card:hover {
  border-color: #C8A951;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.06);
  transform: translateY(-2px);
}

.amenity-num {
  display: block;
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 2rem;
  font-weight: 700;
  color: rgba(200, 169, 81, 0.3);
  margin-bottom: 0.75rem;
}

.amenity-card h3 {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.amenity-card p {
  font-size: 0.875rem;
  color: rgba(26, 26, 26, 0.6);
  line-height: 1.6;
}

/* Gallery */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: repeat(2, 220px);
  gap: 1rem;
}

.gallery-item {
  overflow: hidden;
  position: relative;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.gallery-item:hover img {
  transform: scale(1.08);
}

.gallery-item--large {
  grid-column: span 2;
  grid-row: span 2;
}

.gallery-item--wide {
  grid-column: span 2;
}

@media (max-width: 768px) {
  .gallery-grid {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto;
  }

  .gallery-item--large,
  .gallery-item--wide {
    grid-column: span 2;
    grid-row: span 1;
  }

  .gallery-item {
    height: 200px;
  }
}

/* Partner */
.partner-card {
  padding-left: 1rem;
  border-left: 2px solid #C8A951;
}

.partner-logo {
  transition: transform 0.3s ease;
}

.partner-logo:hover {
  transform: scale(1.02);
}

/* News */
.news-card-img {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16/10;
}

.news-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.news-card:hover .news-card-img img {
  transform: scale(1.05);
}

.news-date {
  position: absolute;
  bottom: 1rem;
  left: 1rem;
  background: #C8A951;
  color: #1A1A1A;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.25rem 0.75rem;
}

/* Press marquee */
.press-marquee {
  mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
}

.press-track {
  animation: marquee 30s linear infinite;
  width: max-content;
}

.press-item {
  white-space: nowrap;
  padding: 0.75rem 1.5rem;
  background: white;
  border: 1px solid rgba(26, 26, 26, 0.08);
  font-size: 0.875rem;
  color: rgba(26, 26, 26, 0.7);
}

@keyframes marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* Form */
.form-label {
  display: block;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: rgba(245, 240, 232, 0.6);
  margin-bottom: 0.5rem;
}

.form-input {
  width: 100%;
  padding: 0.75rem 1rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: white;
  font-size: 0.9rem;
  transition: border-color 0.3s ease;
}

.form-input::placeholder {
  color: rgba(245, 240, 232, 0.3);
}

.form-input:focus {
  outline: none;
  border-color: #C8A951;
}

/* Reveal animation */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
