/* Section Styles */
.villas-section,
.amenities-section,
.gallery-section,
.contact-section {
  padding: var(--spacing-xl) 0;
}

.section-header {
  text-align: center;
  margin-bottom: var(--spacing-lg);
}

.section-subtitle {
  display: inline-block;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--color-primary);
  margin-bottom: var(--spacing-sm);
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: var(--spacing-sm);
}

.section-description {
  font-size: 1.1rem;
  color: var(--color-gray);
  max-width: 600px;
  margin: 0 auto;
}

/* Villas Section - 3D Bubble Effect */
.villas-section {
  position: relative;
  overflow: hidden;
}

/* Floating Bubbles Background */
.bubbles-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}

.bubble {
  position: absolute;
  border-radius: 50%;
  background: linear-gradient(
    135deg,
    rgba(218, 165, 32, 0.1) 0%,
    rgba(212, 175, 55, 0.1) 100%
  );
  backdrop-filter: blur(20px);
  animation: float 20s infinite ease-in-out;
}

.bubble-1 {
  width: 300px;
  height: 300px;
  top: 10%;
  left: 5%;
  animation-delay: 0s;
  animation-duration: 25s;
}

.bubble-2 {
  width: 200px;
  height: 200px;
  top: 60%;
  right: 10%;
  animation-delay: 3s;
  animation-duration: 20s;
}

.bubble-3 {
  width: 150px;
  height: 150px;
  top: 30%;
  right: 20%;
  animation-delay: 6s;
  animation-duration: 22s;
}

.bubble-4 {
  width: 250px;
  height: 250px;
  bottom: 10%;
  left: 15%;
  animation-delay: 9s;
  animation-duration: 28s;
}

.bubble-5 {
  width: 180px;
  height: 180px;
  top: 50%;
  left: 50%;
  animation-delay: 12s;
  animation-duration: 24s;
}

@keyframes float {
  0%,
  100% {
    transform: translate(0, 0) scale(1);
    opacity: 0.3;
  }
  25% {
    transform: translate(30px, -30px) scale(1.1);
    opacity: 0.5;
  }
  50% {
    transform: translate(-20px, 20px) scale(0.9);
    opacity: 0.4;
  }
  75% {
    transform: translate(20px, 30px) scale(1.05);
    opacity: 0.6;
  }
}

/* Villa Showcase Container */
.villas-showcase {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(450px, 1fr));
  gap: 3rem;
  padding: 2rem 0;
}

/* 3D Bubble Card */
.villa-bubble {
  position: relative;
  perspective: 1000px;
  transition: all 0.6s cubic-bezier(0.23, 1, 0.32, 1);
}

.villa-bubble-inner {
  position: relative;
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(20px);
  border-radius: 30px;
  overflow: hidden;
  border: 2px solid rgba(255, 255, 255, 0.5);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15),
    0 0 0 1px rgba(255, 255, 255, 0.5) inset;
  transition: all 0.6s cubic-bezier(0.23, 1, 0.32, 1);
  transform-style: preserve-3d;
}

.villa-bubble:hover .villa-bubble-inner {
  transform: translateY(-15px) rotateX(5deg);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.25),
    0 0 0 1px rgba(255, 255, 255, 0.8) inset;
}

/* Glow Effect */
.villa-bubble-glow {
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  border-radius: 50%;
  opacity: 0;
  filter: blur(60px);
  transition: opacity 0.6s ease;
  pointer-events: none;
  z-index: -1;
}

.villa-glow-1 {
  background: radial-gradient(
    circle,
    rgba(218, 165, 32, 0.4) 0%,
    transparent 70%
  );
}

.villa-glow-2 {
  background: radial-gradient(
    circle,
    rgba(236, 72, 153, 0.4) 0%,
    transparent 70%
  );
}

.villa-bubble:hover .villa-bubble-glow {
  opacity: 1;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%,
  100% {
    transform: scale(1);
    opacity: 0.6;
  }
  50% {
    transform: scale(1.1);
    opacity: 0.8;
  }
}

/* Villa Image */
.villa-bubble-image {
  position: relative;
  height: 320px;
  background-size: cover;
  background-position: center;
  overflow: hidden;
}

.villa-bubble-image.villa-image-1 {
  background-image: url("images/gallery/elegant-shophouse/5X15m-N33-N34/TANG 2.png");
  background-size: cover;
  background-position: center;
}

.villa-bubble-image.villa-image-2 {
  background-image: url("images/gallery/grand-shophouse/5X15m-S3/TANG 2.png");
  background-size: cover;
  background-position: center;
}

.villa-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.3) 100%);
  transition: all 0.4s ease;
}

.villa-bubble:hover .villa-overlay {
  background: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.5) 100%);
}

/* 3D Badge */
.villa-badge-3d {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  padding: 0.7rem 1.5rem;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--color-primary);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
  transform: translateZ(20px);
  transition: all 0.3s ease;
}

.villa-badge-3d.popular {
  background: var(--gradient-primary);
  color: var(--color-white);
}

.villa-bubble:hover .villa-badge-3d {
  transform: translateZ(30px) scale(1.05);
}

/* Villa Content */
.villa-bubble-content {
  padding: 2rem;
  position: relative;
  z-index: 1;
}

.villa-header {
  margin-bottom: 1.5rem;
}

.villa-name-3d {
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--color-dark);
  margin-bottom: 0.7rem;
  background: linear-gradient(
    135deg,
    var(--color-dark) 0%,
    hsl(220, 30%, 40%) 100%
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  transition: all 0.3s ease;
}

.villa-bubble:hover .villa-name-3d {
  transform: translateX(5px);
}

.villa-location-3d {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--color-gray);
  font-size: 0.95rem;
  font-weight: 500;
}

.villa-location-3d svg {
  width: 18px;
  height: 18px;
  stroke-width: 2;
  color: var(--color-primary);
}

/* Features */
.villa-features-3d {
  display: flex;
  gap: 1rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}

.feature-3d {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 1rem;
  background: rgba(255, 255, 255, 0.6);
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--color-dark);
  border: 1px solid rgba(255, 255, 255, 0.8);
  transition: all 0.3s ease;
}

.feature-3d:hover {
  background: rgba(255, 255, 255, 0.9);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.feature-3d svg {
  width: 18px;
  height: 18px;
  stroke-width: 2;
  color: var(--color-primary);
}

/* Footer */
.villa-footer-3d {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 1.5rem;
  border-top: 2px solid rgba(255, 255, 255, 0.5);
}

.villa-price-3d {
  display: flex;
  align-items: baseline;
  gap: 0.4rem;
}

.price-amount {
  font-family: var(--font-display);
  font-size: 2.2rem;
  font-weight: 700;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.price-period {
  color: var(--color-gray);
  font-size: 1rem;
  font-weight: 500;
}

/* 3D Button */
.btn-view-3d {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.9rem 1.8rem;
  background: var(--gradient-primary);
  color: var(--color-white);
  border: none;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  box-shadow: 0 8px 20px rgba(218, 165, 32, 0.3);
  transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
  position: relative;
  overflow: hidden;
}

.btn-view-3d::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.3),
    transparent
  );
  transition: left 0.6s ease;
}

.btn-view-3d:hover::before {
  left: 100%;
}

.btn-view-3d:hover {
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 12px 30px rgba(218, 165, 32, 0.4);
}

.btn-view-3d svg {
  width: 20px;
  height: 20px;
  stroke-width: 2;
  transition: transform 0.3s ease;
}

.btn-view-3d:hover svg {
  transform: translateX(5px);
}

/* Amenities Section */
.amenities-section {
  background: linear-gradient(
    180deg,
    var(--color-white) 0%,
    hsl(40, 25%, 95%) 100%
  );
}

.amenities-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--spacing-md);
}

.amenity-card {
  padding: var(--spacing-md);
  background: var(--color-white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-base);
  text-align: center;
}

.amenity-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
}

.amenity-icon {
  width: 60px;
  height: 60px;
  margin: 0 auto var(--spacing-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--gradient-primary);
  border-radius: var(--radius-md);
  transition: all var(--transition-base);
}

.amenity-card:hover .amenity-icon {
  transform: scale(1.1) rotate(5deg);
}

.amenity-icon svg {
  width: 30px;
  height: 30px;
  stroke: var(--color-white);
  stroke-width: 2;
}

.amenity-title {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--color-dark);
  margin-bottom: 0.5rem;
}

.amenity-description {
  color: var(--color-gray);
  font-size: 0.95rem;
  line-height: 1.6;
}

/* Gallery Section */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--spacing-sm);
}

.gallery-item {
  height: 300px;
  border-radius: var(--radius-md);
  overflow: hidden;
  position: relative;
  cursor: pointer;
  transition: all var(--transition-base);
}

.gallery-item:hover {
  transform: scale(1.05);
  z-index: 10;
  box-shadow: var(--shadow-lg);
}

.gallery-item-1 {
  background-image: url("images/gallery/project-overall/legacy/KhuA (1).jpg");
  background-size: cover;
  background-position: center;
}

.gallery-item-2 {
  background-image: url("images/gallery/project-overall/legacy/KhuA (5).jpg");
  background-size: cover;
  background-position: center;
}

.gallery-item-3 {
  background-image: url("images/gallery/project-overall/century/KhuB (1).jpg");
  background-size: cover;
  background-position: center;
}

.gallery-item-4 {
  background-image: url("images/gallery/project-overall/legacy/KhuA (3).jpg");
  background-size: cover;
  background-position: center;
}

.gallery-item-5 {
  background-image: url("images/gallery/project-overall/century/KhuB (5).jpg");
  background-size: cover;
  background-position: center;
}

.gallery-item-6 {
  background-image: url("images/gallery/project-overall/legacy/KhuA (8).jpg");
  background-size: cover;
  background-position: center;
}

/* Contact Section */
.contact-section {
  background: var(--gradient-hero);
  color: var(--color-white);
}

.contact-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--spacing-lg);
  align-items: start;
}

.contact-description {
  color: var(--color-gray-light);
  margin-bottom: var(--spacing-md);
  line-height: 1.8;
}

.contact-details {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-md);
}

.contact-item {
  display: flex;
  gap: var(--spacing-sm);
  align-items: flex-start;
}

.contact-item svg {
  width: 24px;
  height: 24px;
  stroke: var(--color-accent);
  stroke-width: 2;
  flex-shrink: 0;
}

.contact-item h4 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.3rem;
}

.contact-item p {
  color: var(--color-gray-light);
  font-size: 0.95rem;
}

.contact-form {
  background: rgba(255, 255, 255, 0.05);
  padding: var(--spacing-md);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.form-group {
  margin-bottom: var(--spacing-sm);
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.9rem;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-sm);
  color: var(--color-white);
  font-family: var(--font-body);
  font-size: 1rem;
  transition: all var(--transition-base);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: rgba(255, 255, 255, 0.5);
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  background: rgba(255, 255, 255, 0.15);
  border-color: var(--color-accent);
}

.btn-submit {
  width: 100%;
  padding: 1rem;
  background: var(--gradient-primary);
  color: var(--color-white);
  border: none;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: all var(--transition-base);
}

.btn-submit:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

/* Footer */
.footer {
  background: var(--color-dark);
  color: var(--color-white);
  padding: var(--spacing-lg) 0 var(--spacing-md);
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--spacing-lg);
  margin-bottom: var(--spacing-lg);
}

.footer-logo {
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 700;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: var(--spacing-sm);
}

.footer-description {
  color: var(--color-gray-light);
  line-height: 1.8;
  margin-bottom: var(--spacing-sm);
}

.social-links {
  display: flex;
  gap: var(--spacing-sm);
}

.social-link {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-sm);
  color: var(--color-white);
  transition: all var(--transition-base);
}

.social-link:hover {
  background: var(--gradient-primary);
  transform: translateY(-3px);
}

.social-link svg {
  width: 20px;
  height: 20px;
}

.footer-title {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: var(--spacing-sm);
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 0.5rem;
}

.footer-links a {
  color: var(--color-gray-light);
  text-decoration: none;
  transition: color var(--transition-fast);
}

.footer-links a:hover {
  color: var(--color-white);
}

.newsletter-text {
  color: var(--color-gray-light);
  margin-bottom: var(--spacing-sm);
  font-size: 0.9rem;
}

.newsletter-form {
  display: flex;
  gap: 0.5rem;
}

.newsletter-form input {
  flex: 1;
  padding: 0.7rem;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-sm);
  color: var(--color-white);
  font-size: 0.9rem;
}

.newsletter-form input::placeholder {
  color: rgba(255, 255, 255, 0.5);
}

.newsletter-form button {
  padding: 0.7rem 1rem;
  background: var(--gradient-primary);
  border: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all var(--transition-base);
}

.newsletter-form button:hover {
  transform: scale(1.05);
}

.newsletter-form button svg {
  width: 20px;
  height: 20px;
  stroke: var(--color-white);
  stroke-width: 2;
}

.footer-bottom {
  text-align: center;
  padding-top: var(--spacing-md);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--color-gray-light);
  font-size: 0.9rem;
}

/* Responsive Design */
@media (max-width: 768px) {
  .nav-menu {
    position: fixed;
    top: 70px;
    left: -100%;
    flex-direction: column;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    width: 100%;
    padding: var(--spacing-md);
    box-shadow: var(--shadow-md);
    transition: left var(--transition-base);
  }

  .nav-menu.active {
    left: 0;
  }

  .navbar.scrolled .nav-menu {
    background: rgba(255, 255, 255, 0.98);
  }

  .hamburger {
    display: flex;
  }

  .cta-button {
    display: none;
  }

  .hero-stats {
    gap: var(--spacing-md);
  }

  .stat-card {
    padding: var(--spacing-sm);
  }

  .stat-number {
    font-size: 2rem;
  }

  /* Villa Showcase Responsive */
  .villas-showcase {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .villa-bubble-inner {
    border-radius: 20px;
  }

  .villa-bubble-image {
    height: 250px;
  }

  .villa-bubble-content {
    padding: 1.5rem;
  }

  .villa-name-3d {
    font-size: 1.5rem;
  }

  .villa-features-3d {
    gap: 0.7rem;
  }

  .feature-3d {
    padding: 0.5rem 0.8rem;
    font-size: 0.8rem;
  }

  .villa-footer-3d {
    flex-direction: column;
    gap: 1rem;
    align-items: flex-start;
  }

  .btn-view-3d {
    width: 100%;
    justify-content: center;
  }

  .amenities-grid,
  .gallery-grid {
    grid-template-columns: 1fr;
  }

  .contact-content {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  :root {
    --spacing-lg: 3rem;
    --spacing-xl: 4rem;
  }

  .hero-title {
    font-size: 2rem;
  }

  .hero-description {
    font-size: 1rem;
  }

  .section-title {
    font-size: 1.8rem;
  }
}

/* Modal Styles */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: var(--spacing-md);
}

.modal.active {
  display: flex;
}

.modal-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(10px);
  animation: fadeIn 0.3s ease;
}

.modal-content {
  position: relative;
  background: var(--color-white);
  border-radius: var(--radius-lg);
  max-width: 700px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  padding: var(--spacing-lg);
  box-shadow: var(--shadow-lg);
  animation: slideUp 0.4s ease;
  z-index: 1;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

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

.modal-close {
  position: absolute;
  top: var(--spacing-md);
  right: var(--spacing-md);
  width: 40px;
  height: 40px;
  background: var(--color-gray-light);
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-base);
  z-index: 2;
}

.modal-close:hover {
  background: var(--color-dark);
  transform: rotate(90deg);
}

.modal-close svg {
  width: 20px;
  height: 20px;
  stroke: var(--color-dark);
  stroke-width: 2;
}

.modal-close:hover svg {
  stroke: var(--color-white);
}

.modal-header {
  text-align: center;
  margin-bottom: var(--spacing-md);
}

.modal-title {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  color: var(--color-dark);
  margin-bottom: 0.5rem;
}

.modal-subtitle {
  color: var(--color-gray);
  font-size: 1rem;
}

.booking-form {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-sm);
}

.form-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--spacing-sm);
}

.booking-form .form-group {
  margin-bottom: 0;
}

.booking-form label {
  display: block;
  font-weight: 600;
  color: var(--color-dark);
  margin-bottom: 0.5rem;
  font-size: 0.9rem;
}

.booking-form input,
.booking-form select,
.booking-form textarea {
  width: 100%;
  padding: 0.9rem;
  background: var(--color-white);
  border: 2px solid var(--color-gray-light);
  border-radius: var(--radius-sm);
  color: var(--color-dark);
  font-family: var(--font-body);
  font-size: 1rem;
  transition: all var(--transition-base);
}

.booking-form input:focus,
.booking-form select:focus,
.booking-form textarea:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(218, 165, 32, 0.1);
}

.booking-form select {
  cursor: pointer;
}

.btn-submit-booking {
  width: 100%;
  padding: 1rem;
  background: var(--gradient-primary);
  color: var(--color-white);
  border: none;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 1.1rem;
  cursor: pointer;
  transition: all var(--transition-base);
  margin-top: var(--spacing-sm);
}

.btn-submit-booking:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg), var(--shadow-glow);
}

@media (max-width: 768px) {
  .modal-content {
    padding: var(--spacing-md);
    max-height: 95vh;
  }

  .modal-title {
    font-size: 1.5rem;
  }

  .form-row {
    grid-template-columns: 1fr;
  }
}

/* Video Modal Styles */
.video-modal-content {
  position: relative;
  background: var(--color-dark);
  border-radius: var(--radius-lg);
  max-width: 1000px;
  width: 100%;
  padding: var(--spacing-md);
  box-shadow: var(--shadow-lg);
  animation: slideUp 0.4s ease;
  z-index: 1;
}

.video-container {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%; /* 16:9 aspect ratio */
  height: 0;
  overflow: hidden;
  border-radius: var(--radius-sm);
  background: #000;
}

.video-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: var(--radius-sm);
}

@media (max-width: 768px) {
  .video-modal-content {
    max-width: 95%;
    padding: var(--spacing-sm);
  }
}

/* Gallery Modal Styles */
.gallery-modal-content {
  position: relative;
  background: var(--color-white);
  border-radius: var(--radius-lg);
  max-width: 1200px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  padding: var(--spacing-lg);
  box-shadow: var(--shadow-lg);
  animation: slideUp 0.4s ease;
  z-index: 1;
}

.gallery-modal-header {
  text-align: center;
  margin-bottom: var(--spacing-md);
}

.gallery-modal-title {
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--color-dark);
  margin-bottom: 0.5rem;
}

.gallery-modal-subtitle {
  color: var(--color-gray);
  font-size: 1.1rem;
}

.photo-gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: var(--spacing-sm);
  margin-top: var(--spacing-md);
}

.gallery-photo-item {
  position: relative;
  aspect-ratio: 4/3;
  border-radius: var(--radius-md);
  overflow: hidden;
  cursor: pointer;
  transition: all var(--transition-base);
  box-shadow: var(--shadow-sm);
}

.gallery-photo-item:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.gallery-photo-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-base);
}

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

.gallery-photo-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.7), transparent);
  padding: var(--spacing-sm);
  color: var(--color-white);
  opacity: 0;
  transition: opacity var(--transition-base);
}

.gallery-photo-item:hover .gallery-photo-overlay {
  opacity: 1;
}

.gallery-photo-title {
  font-weight: 600;
  font-size: 0.95rem;
  margin: 0;
}

/* Lightbox Styles */
.lightbox {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 10000;
  display: none;
  align-items: center;
  justify-content: center;
}

.lightbox.active {
  display: flex;
}

.lightbox-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.95);
  animation: fadeIn 0.3s ease;
}

.lightbox-content {
  position: relative;
  width: 90%;
  height: 90%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1;
}

.lightbox-close {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 50px;
  height: 50px;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border: 2px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-base);
  z-index: 3;
}

.lightbox-close:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: rotate(90deg);
}

.lightbox-close svg {
  width: 24px;
  height: 24px;
  stroke: var(--color-white);
  stroke-width: 2;
}

.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 60px;
  height: 60px;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border: 2px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-base);
  z-index: 3;
}

.lightbox-nav:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: translateY(-50%) scale(1.1);
}

.lightbox-prev {
  left: 30px;
}

.lightbox-next {
  right: 30px;
}

.lightbox-nav svg {
  width: 28px;
  height: 28px;
  stroke: var(--color-white);
}

#lightbox-image {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  animation: zoomIn 0.3s ease;
}

@keyframes zoomIn {
  from {
    opacity: 0;
    transform: scale(0.8);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.lightbox-caption {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(10px);
  color: var(--color-white);
  padding: 1rem 2rem;
  border-radius: var(--radius-md);
  font-size: 1.1rem;
  max-width: 80%;
  text-align: center;
}

.lightbox-counter {
  position: absolute;
  top: 30px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(10px);
  color: var(--color-white);
  padding: 0.5rem 1.5rem;
  border-radius: 50px;
  font-size: 0.9rem;
  font-weight: 600;
}

@media (max-width: 768px) {
  .gallery-modal-content {
    padding: var(--spacing-md);
  }

  .gallery-modal-title {
    font-size: 1.8rem;
  }

  .photo-gallery-grid {
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 0.5rem;
  }

  .lightbox-nav {
    width: 45px;
    height: 45px;
  }

  .lightbox-prev {
    left: 10px;
  }

  .lightbox-next {
    right: 10px;
  }

  .lightbox-close {
    top: 10px;
    right: 10px;
    width: 40px;
    height: 40px;
  }

  .lightbox-caption {
    font-size: 0.9rem;
    padding: 0.7rem 1rem;
    bottom: 20px;
  }

  .lightbox-counter {
    top: 10px;
    font-size: 0.8rem;
    padding: 0.4rem 1rem;
  }
}

/* Villa Details Modal */
.villa-details-content {
  position: relative;
  background: var(--color-white);
  border-radius: 24px;
  max-width: 1200px;
  width: 95%;
  max-height: 90vh;
  overflow-y: auto;
  padding: 0;
  animation: modalSlideUp 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.villa-details-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  min-height: 600px;
}

/* Gallery Section */
.villa-details-gallery {
  background: var(--color-dark-light);
  padding: var(--spacing-xl);
  display: flex;
  flex-direction: column;
  gap: var(--spacing-md);
  border-radius: 24px 0 0 24px;
}

.villa-main-image {
  width: 100%;
  height: 400px;
  border-radius: 16px;
  overflow: hidden;
  background: linear-gradient(135deg, hsl(43, 62%, 50%), hsl(38, 51%, 51%));
  position: relative;
}

.villa-main-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.villa-main-image:hover img {
  transform: scale(1.05);
}

.villa-thumbnail-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--spacing-sm);
}

.villa-thumbnail {
  aspect-ratio: 1;
  border-radius: 8px;
  overflow: hidden;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all 0.3s ease;
  background: var(--color-dark);
}

.villa-thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.villa-thumbnail:hover {
  border-color: var(--color-primary);
  transform: translateY(-2px);
}

.villa-thumbnail:hover img {
  transform: scale(1.1);
}

.villa-thumbnail.active {
  border-color: var(--color-primary);
  box-shadow: 0 0 20px hsla(43, 85%, 58%, 0.3);
}

/* Details Section */
.villa-details-info {
  padding: var(--spacing-xl);
  display: flex;
  flex-direction: column;
  gap: var(--spacing-lg);
  overflow-y: auto;
}

.villa-details-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: var(--spacing-md);
  padding-bottom: var(--spacing-md);
  border-bottom: 2px solid var(--color-gray-light);
}

.villa-details-badge {
  display: inline-block;
  padding: 0.4rem 1rem;
  background: var(--gradient-primary);
  color: var(--color-white);
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: var(--spacing-sm);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.villa-details-title {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  color: var(--color-dark);
  margin-bottom: var(--spacing-xs);
  font-weight: 700;
}

.villa-details-location {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--color-gray);
  font-size: 1rem;
}

.villa-details-location svg {
  width: 18px;
  height: 18px;
  stroke-width: 2;
}

.villa-details-price {
  text-align: right;
}

.villa-price-large {
  display: block;
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--color-primary);
  line-height: 1;
}

.villa-price-period {
  color: var(--color-gray);
  font-size: 1rem;
}

/* Description */
.villa-details-description h3,
.villa-details-features h3,
.villa-details-amenities h3 {
  font-family: var(--font-display);
  font-size: 1.3rem;
  color: var(--color-dark);
  margin-bottom: var(--spacing-sm);
  font-weight: 600;
}

.villa-details-description p {
  color: var(--color-gray);
  line-height: 1.8;
  font-size: 1rem;
}

/* Features Grid */
.villa-features-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--spacing-md);
}

.villa-feature-item {
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
  padding: var(--spacing-sm);
  background: var(--color-white);
  border-radius: 12px;
  border: 1px solid var(--color-gray-light);
  transition: all 0.3s ease;
}

.villa-feature-item:hover {
  border-color: var(--color-primary);
  transform: translateX(4px);
  box-shadow: 0 4px 12px hsla(43, 85%, 58%, 0.1);
}

.villa-feature-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--gradient-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.villa-feature-icon svg {
  width: 20px;
  height: 20px;
  stroke: var(--color-white);
  stroke-width: 2;
}

.villa-feature-text {
  flex: 1;
}

.villa-feature-label {
  font-size: 0.85rem;
  color: var(--color-gray);
  display: block;
}

.villa-feature-value {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--color-dark);
}

/* Amenities List */
.villa-amenities-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--spacing-sm);
}

.villa-amenity-item {
  display: flex;
  align-items: center;
  gap: var(--spacing-xs);
  color: var(--color-dark);
  font-size: 0.95rem;
}

.villa-amenity-item svg {
  width: 18px;
  height: 18px;
  stroke: var(--color-primary);
  stroke-width: 2.5;
  flex-shrink: 0;
}

/* Action Buttons */
.villa-details-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--spacing-md);
  padding-top: var(--spacing-md);
  border-top: 2px solid var(--color-gray-light);
  margin-top: auto;
}

.btn-book-villa,
.btn-contact-villa {
  padding: 1rem 1.5rem;
  border-radius: 12px;
  font-weight: 600;
  font-size: 1rem;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  transition: all 0.3s ease;
}

.btn-book-villa {
  background: var(--gradient-primary);
  color: var(--color-white);
  box-shadow: 0 4px 15px hsla(43, 85%, 58%, 0.3);
}

.btn-book-villa:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 25px hsla(43, 85%, 58%, 0.4);
}

.btn-contact-villa {
  background: transparent;
  color: var(--color-dark);
  border: 2px solid var(--color-primary);
}

.btn-contact-villa:hover {
  background: var(--color-primary);
  color: var(--color-white);
  transform: translateY(-2px);
}

.btn-book-villa svg,
.btn-contact-villa svg {
  width: 20px;
  height: 20px;
  stroke-width: 2;
}

/* Responsive Design */
@media (max-width: 968px) {
  .villa-details-grid {
    grid-template-columns: 1fr;
  }

  .villa-details-gallery {
    border-radius: 24px 24px 0 0;
  }

  .villa-main-image {
    height: 300px;
  }

  .villa-thumbnail-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .villa-features-grid {
    grid-template-columns: 1fr;
  }

  .villa-details-header {
    flex-direction: column;
  }

  .villa-details-price {
    text-align: left;
  }
}

@media (max-width: 640px) {
  .villa-details-content {
    width: 100%;
    max-height: 100vh;
    border-radius: 0;
  }

  .villa-details-gallery {
    border-radius: 0;
    padding: var(--spacing-md);
  }

  .villa-details-info {
    padding: var(--spacing-md);
  }

  .villa-main-image {
    height: 250px;
  }

  .villa-thumbnail-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .villa-amenities-list {
    grid-template-columns: 1fr;
  }

  .villa-details-actions {
    grid-template-columns: 1fr;
  }

  .villa-price-large {
    font-size: 2rem;
  }
}
