/* Reset dan Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen,
    Ubuntu, sans-serif;
  overflow-x: hidden;
}

/* Gradient Background Animation */
@keyframes gradientShift {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

.gradient-bg {
  background: linear-gradient(
  rgba(0,0,0,0.45),
  rgba(0,0,0,0.45)
), linear-gradient(-45deg, #1e3a8a, #7c3aed, #db2777, #f59e0b);
  background-size: 400% 400%;
  animation: gradientShift 15s ease infinite;
}

/* Floating Animation */
@keyframes float {
  0%,
  100% {
    transform: translateY(0px) rotate(0deg);
  }
  50% {
    transform: translateY(-20px) rotate(5deg);
  }
}

.float {
  animation: float 6s ease-in-out infinite;
}

/* Pulse Animation */
@keyframes pulse-slow {
  0%,
  100% {
    transform: scale(1);
    box-shadow: 0 10px 25px rgba(245, 158, 11, 0.4);
  }
  50% {
    transform: scale(1.05);
    box-shadow: 0 15px 35px rgba(245, 158, 11, 0.6);
  }
}

.pulse-slow {
  animation: pulse-slow 3s ease-in-out infinite;
}

/* Glassmorphism */
.glass {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Card Hover Effect */
.card-hover {
  transition: all 0.3s ease;
}

.card-hover:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

/* Scroll Reveal */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.8s cubic-bezier(0.5, 0, 0, 1);
}

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

/* Icon Container */
.icon-container {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 80px;
  height: 80px;
  border-radius: 20px;
  margin-bottom: 1.5rem;
  font-size: 2rem;
  background: linear-gradient(
    135deg,
    rgba(251, 191, 36, 0.1),
    rgba(251, 191, 36, 0.05)
  );
  backdrop-filter: blur(5px);
  border: 1px solid rgba(251, 191, 36, 0.2);
}

.icon-container-small {
  width: 60px;
  height: 60px;
  font-size: 1.5rem;
  border-radius: 15px;
}

/* Testimonial Photo */
.testimonial-photo {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid rgba(251, 191, 36, 0.3);
}

/* Star Rating */
.star {
  color: #fbbf24;
  letter-spacing: 2px;
}

/* Custom Responsive */
@media (max-width: 640px) {
  .hero-title {
    font-size: 2.5rem !important;
  }

  .hero-subtitle {
    font-size: 1.1rem !important;
  }

  .section-title {
    font-size: 2rem !important;
  }

  .icon-container {
    width: 60px;
    height: 60px;
    font-size: 1.5rem;
    margin-bottom: 1rem;
  }
}

@media (max-width: 768px) {
  .grid-cols-3 {
    grid-template-columns: 1fr !important;
  }

  .grid-cols-4 {
    grid-template-columns: repeat(2, 1fr) !important;
  }
}

/* Loading Animation */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in {
  animation: fadeIn 0.5s ease-out forwards;
}

/* Navbar Scroll Effect */
.nav-scrolled {
  background: rgba(15, 23, 42, 0.95) !important;
  backdrop-filter: blur(20px) !important;
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3) !important;
}

/* Tambahkan ini ke dalam style section */

/* Responsive map container */
.map-container {
  position: relative;
  width: 100%;
  overflow: hidden;
}

.map-container::before {
  content: "";
  display: block;
  padding-top: 75%; /* 4:3 Aspect Ratio */
}

.map-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
}

/* Responsive adjustments */
@media (max-width: 640px) {
  .map-container::before {
    padding-top: 100%; /* 1:1 Aspect Ratio di mobile */
  }

  .map-overlay {
    padding: 8px;
    font-size: 12px;
  }
}

/* Loading animation untuk iframe */
.map-loading {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, #1f2937 25%, #374151 50%, #1f2937 75%);
  background-size: 200% 100%;
  animation: loading 1.5s infinite;
}

@keyframes loading {
  0% {
    background-position: 200% 0;
  }
  100% {
    background-position: -200% 0;
  }
}

/* Hover effect untuk card */
.map-card:hover iframe {
  filter: brightness(1.05);
  transition: filter 0.3s ease;
}
.promo-text {
  transition: all 0.5s ease;
}

@keyframes quickSpin {
  0% {
    transform: rotate(0deg) scale(1);
  }
  50% {
    transform: rotate(180deg) scale(1.3);
  }
  100% {
    transform: rotate(360deg) scale(1);
  }
}

@keyframes quickPulse {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.08);
  }
}

@keyframes quickShimmer {
  0% {
    transform: translateX(-100%) skewX(-15deg);
  }
  70% {
    transform: translateX(100%) skewX(-15deg);
  }
  100% {
    transform: translateX(100%) skewX(-15deg);
  }
}

.star-spin {
  animation: quickSpin 0.7s ease-out;
}
.badge-pulse {
  animation: quickPulse 0.5s ease-in-out;
}
.shimmer-run {
  animation: quickShimmer 0.8s ease-out;
}
.text-pop {
  animation: textPop 0.5s ease-out;
}

@keyframes textPop {
  0% {
    transform: scale(0.9);
    opacity: 0.8;
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}

.room-images-carousel {
  position: relative;
  height: 384px; /* h-96 */
}

.carousel-slides {
  height: 100%;
}

.carousel-slides > div {
  height: 100%;
}

.dot.active,
.main-dot.active {
  background: white !important;
  transform: scale(1.2);
}

.icon-container {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(10px);
  border: 2px solid rgba(255, 255, 255, 0.3);
}

.carousel-container {
  position: relative;
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.05),
    rgba(255, 255, 255, 0.02)
  );
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
}

/* Animasi untuk slide */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.carousel-slides > div {
  animation: fadeIn 0.5s ease-out;
}

/* Hover effect untuk gambar */
.room-images-carousel img {
  transition: transform 0.5s ease;
}

.room-images-carousel:hover img {
  transform: scale(1.05);
}
