@import url('styles.css');

/* Hero Section */
.hero-section {
  position: relative;
  height: 80vh;
  max-height: 600px;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  margin-top: var(--header-height);
  overflow: hidden;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(45deg, rgba(43, 78, 114, 0.3), rgba(212, 163, 115, 0.3));
  z-index: 0;
}

.hero-content {
  position: relative;
  z-index: 1;
  color: #fff;
  padding: 40px;
  background: rgba(0, 0, 0, 0.3);
  border-radius: 12px;
  max-width: 800px;
  width: 90%;
  transform: translateY(20px);
  opacity: 0;
  animation: fadeIn 0.5s ease forwards 0.5s;
}

.hero-content h1 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2.5rem, 4vw, 3.5rem);
  margin-bottom: 15px;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8);
}

.hero-content p {
  font-family: 'Lora', serif;
  font-size: clamp(1.1rem, 1.8vw, 1.3rem);
  margin-bottom: 20px;
}

.hero-content .btn-primary {
  padding: 12px 30px;
  font-size: 1.1rem;
  transition: transform 0.3s, background 0.3s;
}

.hero-content .btn-primary:hover {
  transform: scale(1.1);
  background: var(--accent-color);
}

/* Overview Section */
.overview-section {
  padding: 60px 20px;
  background-color: #f0f4f8;
  text-align: center;
}

.overview-container {
  max-width: 800px;
  margin: 0 auto;
}

.overview-divider {
  width: 100px;
  height: 2px;
  background: var(--accent-color);
  margin: 20px auto;
  border-radius: 2px;
  position: relative;
  overflow: hidden;
}

.overview-divider::before {
  content: '';
  position: absolute;
  width: 20px;
  height: 20px;
  background: var(--primary-color);
  clip-path: polygon(50% 0%, 100% 50%, 50% 100%, 0% 50%);
  animation: rotate 3s infinite linear;
}

@keyframes rotate {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.overview-container p[data-animate] {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.overview-container p[data-animate].visible {
  opacity: 1;
  transform: translateY(0);
}

/* Section Labels */
.section-label {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--primary-color);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 1rem;
}

/* Rooms Section */
.rooms-section {
  padding: 60px 20px;
  text-align: center;
}

.rooms-filter {
  max-width: 800px;
  margin: 0 auto 20px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

.filter-btn {
  background: #fff;
  border: 1px solid var(--primary-color);
  padding: 10px 20px;
  border-radius: 6px;
  cursor: pointer;
  font-family: 'Montserrat', sans-serif;
  font-size: 1rem;
  transition: background 0.3s, color 0.3s;
}

.filter-btn.active, .filter-btn:hover {
  background: var(--accent-color);
  color: #fff;
}

.rooms-container {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
}

.room-card {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  padding: 20px;
  transition: transform 0.3s, opacity 0.3s;
}

.room-card.hidden {
  display: none;
}

.room-card:hover {
  transform: translateY(-10px);
}

.room-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 15px;
}

.room-card h3 {
  font-family: 'Playfair Display', serif;
  color: var(--primary-color);
  font-size: 1.5rem;
  margin-bottom: 10px;
}

.room-card p {
  font-family: 'Lora', serif;
  font-size: 1rem;
  color: var(--dark-color);
  margin-bottom: 15px;
}

.room-card .details-btn {
  padding: 8px 16px;
  background: var(--accent-color);
  color: #fff;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-family: 'Montserrat', sans-serif;
  font-size: 1rem;
  transition: transform 0.2s;
}

.room-card .details-btn:hover {
  transform: scale(1.05);
}

.seasonal-note {
  font-family: 'Lora', serif;
  font-size: 0.95rem;
  font-style: italic;
  color: var(--dark-color);
  margin: 1.5rem auto;
  max-width: 800px;
}

/* Modal */
.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  align-items: center;
  justify-content: center;
  z-index: 1000;
}

.modal.active {
  display: flex;
}

.modal-content {
  background: #fff;
  padding: 30px;
  border-radius: 12px;
  text-align: center;
  max-width: 500px;
  width: 90%;
  animation: fadeIn 0.5s ease;
}

.modal-content h3 {
  font-family: 'Playfair Display', serif;
  color: var(--primary-color);
  font-size: 1.8rem;
  margin-bottom: 15px;
}

.modal-content div {
  font-family: 'Lora', serif;
  font-size: 1rem;
  color: var(--dark-color);
  line-height: 1.6;
  margin-bottom: 20px;
}

.modal-content .btn-primary {
  padding: 10px 20px;
  font-size: 1rem;
}

.modal-close {
  position: absolute;
  top: 10px;
  right: 15px;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--primary-color);
}

/* CTA Section */
.cta-section {
  padding: 40px 20px;
  background: var(--primary-color);
  color: #fff;
  text-align: center;
}

.cta-container {
  max-width: 800px;
  margin: 0 auto;
}

.cta-container h2 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2rem, 3vw, 2.5rem);
  margin-bottom: 15px;
}

.cta-container p {
  font-family: 'Lora', serif;
  font-size: 1.2rem;
  margin-bottom: 20px;
}

.cta-container a {
  color: #fff;
  text-decoration: none;
}

.cta-container .btn-primary {
  padding: 12px 30px;
  font-size: 1.1rem;
  transition: transform 0.3s;
}

.cta-container .btn-primary:hover {
  transform: scale(1.1);
}

@keyframes fadeIn {
  from { opacity: 0; transform: scale(0.9); }
  to { opacity: 1; transform: scale(1); }
}

/* Responsive Styles */
@media (max-width: 768px) {
  .hero-section {
    height: 60vh;
  }

  .hero-content {
    padding: 20px;
  }

  .hero-content h1 {
    font-size: clamp(2rem, 3vw, 2.5rem);
  }

  .hero-content p {
    font-size: clamp(1rem, 1.5vw, 1.1rem);
  }

  .overview-section {
    padding: 40px 15px;
  }

  .rooms-section {
    padding: 40px 15px;
  }

  .rooms-filter {
    flex-direction: column;
    gap: 5px;
  }

  .rooms-container {
    grid-template-columns: 1fr;
  }

  .room-card img {
    height: 180px;
  }

  .cta-section {
    padding: 30px 15px;
  }
}

@media (max-width: 600px) {
  .modal-content {
    padding: 20px;
  }

  .cta-container .btn-primary {
    padding: 10px 20px;
    font-size: 1rem;
  }
}