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

:root {
  --primary-color: #2c3e50;
  --secondary-color: #3498db;
  --accent-color: #e74c3c;
  --text-color: #333;
  --text-light: #666;
  --bg-white: #ffffff;
  --bg-light: #f8f9fa;
  --border-color: #e0e0e0;
  --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 30px rgba(0, 0, 0, 0.15);
  --transition: all 0.3s ease;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  line-height: 1.6;
  color: var(--text-color);
  background-color: var(--bg-white);
  overflow-x: hidden;
  font-weight: 400;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Playfair Display', Georgia, serif;
  font-weight: 600;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Hero Section */
.hero {
  position: relative;
  height: 100vh;
  min-height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.hero-video {
  position: absolute;
  top: 50%;
  left: 50%;
  min-width: 100%;
  min-height: 100%;
  width: auto;
  height: auto;
  transform: translate(-50%, -50%);
  object-fit: cover;
  z-index: 1;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.4);
  z-index: 2;
}

.hero-content {
  position: relative;
  z-index: 3;
  text-align: center;
  color: white;
  padding: 20px;
}

.hero-title {
  font-size: 4.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
  animation: fadeInUp 1s ease;
}

.hero-subtitle {
  font-size: 1.5rem;
  font-weight: 300;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
  animation: fadeInUp 1s ease 0.2s both;
}

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

/* Introduction Section */
.intro-section {
  padding: 80px 0;
  background: var(--bg-white);
}

.intro-content {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.intro-content h2 {
  font-size: 2.5rem;
  margin-bottom: 2rem;
  color: var(--primary-color);
  font-family: 'Playfair Display', Georgia, serif;
}

.intro-content .lead {
  font-size: 1.25rem;
  color: var(--text-light);
  margin-bottom: 1.5rem;
  font-weight: 300;
}

.intro-content p {
  font-size: 1.1rem;
  line-height: 1.8;
  color: var(--text-light);
}

/* Section Titles */
.section-title {
  font-size: 2.5rem;
  text-align: center;
  margin-bottom: 3rem;
  color: var(--primary-color);
  font-weight: 600;
  font-family: 'Playfair Display', Georgia, serif;
}

/* Gallery Section */
.gallery-section {
  padding: 80px 0;
  background: var(--bg-light);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
  grid-auto-rows: 300px;
}

.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  box-shadow: var(--shadow);
  transition: var(--transition);
  cursor: pointer;
}

.gallery-note {
  text-align: center;
  margin-top: 2rem;
  color: var(--text-light);
  font-size: 1rem;
  font-style: italic;
}

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

.gallery-item:hover {
  box-shadow: var(--shadow-lg);
}

.lightbox-image {
  cursor: pointer;
}

.gallery-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
  color: white;
  padding: 20px;
  transform: translateY(100%);
  transition: var(--transition);
}

.gallery-item:hover .gallery-overlay {
  transform: translateY(0);
}

.gallery-overlay span {
  font-size: 1.2rem;
  font-weight: 600;
}

/* Features Section */
.features-section {
  padding: 80px 0;
  background: var(--bg-white);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 30px;
}

.feature-card {
  background: var(--bg-light);
  border-radius: 18px;
  padding: 32px 28px;
  border: 1px solid rgba(80, 57, 42, 0.12);
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.feature-card::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(80, 57, 42, 0.05), rgba(48, 34, 25, 0.08));
  opacity: 0;
  transition: var(--transition);
  pointer-events: none;
}

.feature-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(80, 57, 42, 0.25);
}

.feature-card:hover::after {
  opacity: 1;
}

.feature-icon {
  width: 70px;
  height: 70px;
  border-radius: 18px;
  background: rgba(80, 57, 42, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-color);
  margin-bottom: 0.5rem;
}

.feature-icon svg {
  width: 60%;
  height: 60%;
  stroke: var(--primary-color);
  transition: var(--transition);
}

.feature-card:hover .feature-icon svg {
  stroke: rgba(80, 57, 42, 0.9);
  transform: scale(1.05);
}

.feature-card h3 {
  font-size: 1.5rem;
  color: var(--primary-color);
  font-family: 'Playfair Display', Georgia, serif;
  font-weight: 600;
  margin: 0;
}

.feature-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.4rem;
}

.feature-list li {
  position: relative;
  padding-left: 24px;
  color: var(--text-light);
  line-height: 1.6;
  font-size: 1rem;
}

.feature-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55rem;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(80, 57, 42, 0.6);
  box-shadow: 0 0 0 3px rgba(80, 57, 42, 0.15);
}

/* Environment Section */
.environment-section {
  padding: 80px 0;
  background: var(--bg-light);
}

.environment-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
  grid-auto-rows: 300px;
}

.environment-item {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: var(--transition);
  cursor: pointer;
}

.environment-item:hover {
  box-shadow: var(--shadow-lg);
}

.environment-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: var(--transition);
  cursor: pointer;
}

/* Floor Plan Section */
.floorplan-section {
  padding: 80px 0;
  background: var(--bg-white);
}

.floorplan-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  grid-auto-rows: 400px;
}

.floorplan-item {
  border-radius: 12px;
  box-shadow: var(--shadow);
  transition: var(--transition);
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 0;
}

.floorplan-item:hover {
  box-shadow: var(--shadow-lg);
}

.floorplan-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  cursor: pointer;
  border-radius: 12px;
}

/* Location Section */
.location-section {
  padding: 80px 0;
  background: var(--bg-light);
}

.location-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}

.location-info h3 {
  font-size: 1.8rem;
  margin-bottom: 2rem;
  color: var(--primary-color);
  font-family: 'Playfair Display', Georgia, serif;
  font-weight: 600;
}

.location-list {
  list-style: none;
  margin-bottom: 2rem;
}

.location-list li {
  font-size: 1.2rem;
  padding: 15px 0;
  color: var(--text-color);
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  gap: 12px;
  transition: var(--transition);
}

.location-list li:hover {
  color: var(--primary-color);
  padding-left: 5px;
}

.location-icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  color: var(--primary-color);
  stroke: var(--primary-color);
}

.location-images {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

.location-image-item {
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow);
  aspect-ratio: 16 / 9;
  transition: var(--transition);
}

.location-image-item:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}

.location-image-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

/* Pricing & Booking Section */
.pricing-booking-section {
  padding: 80px 0;
  background: var(--bg-white);
}

.pricing-card {
  max-width: 500px;
  margin: 0 auto 60px;
  text-align: center;
  padding: 40px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(80, 57, 42, 0.85) 0%, rgba(48, 34, 25, 0.9) 100%);
  color: white;
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(80, 57, 42, 0.3);
}

.pricing-amount {
  font-size: 3.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  font-family: 'Playfair Display', Georgia, serif;
}

.pricing-note {
  font-size: 1.2rem;
  margin-bottom: 1rem;
  opacity: 0.9;
}

.pricing-info {
  font-size: 1rem;
  opacity: 0.8;
}

.booking-section {
  text-align: center;
}

.booking-text {
  font-size: 1.2rem;
  margin-bottom: 2rem;
  color: var(--text-light);
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.booking-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
  margin-bottom: 2rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.booking-buttons .btn {
  flex: 1;
  min-width: 250px;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 600;
  transition: var(--transition);
  border: 2px solid transparent;
  cursor: pointer;
}

.btn-primary {
  background: #50392a;
  color: white;
}

.btn-primary:hover {
  background: #402e20;
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.btn-secondary {
  background: #302219;
  color: white;
}

.btn-secondary:hover {
  background: #251a14;
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.btn-outline {
  background: transparent;
  color: var(--primary-color);
  border-color: var(--primary-color);
}

.btn-outline:hover {
  background: var(--primary-color);
  color: white;
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.btn-light {
  background: rgba(255, 255, 255, 0.95);
  color: var(--primary-color);
  border: 2px solid rgba(255, 255, 255, 0.5);
}

.btn-light:hover {
  background: white;
  color: var(--primary-color);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
  border-color: white;
}

.contact-info {
  margin-top: 2rem;
  color: var(--text-light);
  font-size: 1.1rem;
}

.lomarengas-link-note {
  margin-top: 1.5rem;
  color: var(--text-light);
  font-size: 0.95rem;
  font-style: italic;
}

.lomarengas-link-note .link-text {
  color: #50392a;
  text-decoration: underline;
  font-weight: 500;
}

.lomarengas-link-note .link-text:hover {
  color: #302219;
}

.map-link {
  margin-top: 2rem;
}

/* Footer */
.footer {
  background: linear-gradient(135deg, rgba(80, 57, 42, 0.95) 0%, rgba(48, 34, 25, 0.98) 100%);
  color: white;
  padding: 40px 0;
  text-align: center;
}

.footer p {
  margin: 5px 0;
}

.footer-link {
  margin-top: 15px;
  padding-top: 15px;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.footer-link a {
  color: rgba(255, 255, 255, 0.9);
  text-decoration: underline;
  transition: var(--transition);
}

.footer-link a:hover {
  color: white;
}

/* Responsive Design */
@media (max-width: 768px) {
  .hero-title {
    font-size: 3rem;
  }

  .hero-subtitle {
    font-size: 1.2rem;
  }

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

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

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

  .location-images {
    order: -1;
  }

  .intro-content h2 {
    font-size: 2rem;
  }

  .pricing-amount {
    font-size: 2.5rem;
  }

  .booking-buttons {
    flex-direction: column;
    align-items: center;
  }

  .btn {
    width: 100%;
    max-width: 300px;
  }
}

@media (max-width: 480px) {
  .hero {
    min-height: 500px;
  }

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

  .intro-section,
  .gallery-section,
  .features-section,
  .environment-section,
  .floorplan-section,
  .location-section,
  .pricing-booking-section {
    padding: 40px 0;
  }

  .gallery-grid {
    grid-template-columns: 1fr;
    grid-auto-rows: 250px;
  }

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

  .environment-grid {
    grid-template-columns: 1fr;
    grid-auto-rows: 250px;
  }
  
  .location-images {
    order: -1;
  }
}

/* Smooth Scrolling */
html {
  scroll-behavior: smooth;
}

/* Loading Animation */
@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.gallery-item,
.feature-card,
.environment-item,
.floorplan-item {
  animation: fadeIn 0.6s ease;
}

/* Lightbox Modal */
.lightbox-modal {
  display: none;
  position: fixed;
  z-index: 9999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.95);
  animation: fadeIn 0.3s ease;
}

.lightbox-content {
  margin: auto;
  display: block;
  width: auto;
  max-width: 90%;
  max-height: 90vh;
  margin-top: 5vh;
  animation: zoomIn 0.3s ease;
}

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

.lightbox-caption {
  margin: auto;
  display: block;
  width: 80%;
  max-width: 700px;
  text-align: center;
  color: #ccc;
  padding: 10px 0;
  height: 150px;
  font-size: 1.1rem;
}

.lightbox-close {
  position: absolute;
  top: 15px;
  right: 35px;
  color: #f1f1f1;
  font-size: 40px;
  font-weight: bold;
  transition: 0.3s;
  cursor: pointer;
  z-index: 10000;
}

.lightbox-close:hover,
.lightbox-close:focus {
  color: #bbb;
  text-decoration: none;
  cursor: pointer;
}

.lightbox-prev,
.lightbox-next {
  cursor: pointer;
  position: absolute;
  top: 50%;
  width: auto;
  padding: 16px;
  margin-top: -50px;
  color: white;
  font-weight: bold;
  font-size: 20px;
  transition: 0.3s;
  border-radius: 0 3px 3px 0;
  user-select: none;
  background-color: rgba(0, 0, 0, 0.5);
}

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

.lightbox-prev:hover,
.lightbox-next:hover {
  background-color: rgba(0, 0, 0, 0.8);
}

/* Hide navigation arrows when only one image in group */
.lightbox-prev.hidden,
.lightbox-next.hidden {
  display: none;
}

