/* Room Detail Page Styles */
:root {
  --primary-color: #D4A017; /* Luxurious Gold */
  --secondary-color: #0F1A2C; /* Deep Navy */
  --text-dark: #2A2A2A; /* Darker for better contrast */
  --text-medium: #5A5A5A; /* Softer medium gray */
  --text-light: #8A8A8A; /* Light gray for subtle text */
  --bg-light: #F8F7F4; /* Warm off-white background */
  --white: #FFFFFF;
  --shadow-soft: 0 8px 24px rgba(0, 0, 0, 0.08); /* Softer shadow */
  --shadow-medium: 0 12px 32px rgba(0, 0, 0, 0.12); /* Medium shadow */
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1); /* Smooth easing */
  --border-radius: 12px; /* Consistent border radius */
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif; /* Modern font stack */
}

body {
  background-color: var(--bg-light);
  color: var(--text-dark);
  line-height: 1.7;
  font-size: 16px; /* Base font size */
}

/* Utility Classes */
.container {
  width: 90%;
  max-width: 1440px; /* Wider for modern screens */
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Header */
.detail-header {
  background-color: var(--white);
  padding: 4.5rem 0 2.5rem;
  text-align: center;
  box-shadow: var(--shadow-soft);
  position: relative;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.back-btn {
  position: absolute;
  top: 2rem;
  left: 2rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--primary-color);
  text-decoration: none;
  font-weight: 500;
  font-size: 1rem;
  transition: var(--transition);
}

.back-btn i {
  font-size: 1.2rem;
}

.back-btn:hover {
  color: var(--secondary-color);
  transform: translateX(-3px);
}

.section__subheader {
  color: var(--text-light);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 0.75rem;
  font-weight: 500;
}

.section__header {
  font-size: 2.75rem;
  margin-bottom: 1.25rem;
  color: var(--text-dark);
  font-weight: 700;
  line-height: 1.2;
}

/* Main Content */
.room-detail {
  padding: 5rem 0;
}

/* Hero Section */
.room-hero {
  display: grid;
  grid-template-columns: 58% 42%; /* Slightly adjusted for balance */
  gap: 2.5rem;
  margin-bottom: 5rem;
  border-radius: var(--border-radius);
  background-color: var(--white);
  box-shadow: var(--shadow-soft);
  overflow: hidden;
}

.hero-image {
  height: 520px; /* Slightly taller for impact */
  overflow: hidden;
}

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

.hero-image:hover img {
  transform: scale(1.03); /* Subtle zoom */
}

.hero-content {
  padding: 3.5rem 2.5rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.hero-text {
  margin-bottom: 2.5rem;
}

.room-description {
  color: var(--text-medium);
  line-height: 1.9;
  font-size: 1.05rem;
  font-weight: 400;
}

.room-pricing {
  background-color: var(--bg-light);
  padding: 2.25rem;
  border-radius: var(--border-radius);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.room-pricing h4 {
  margin-bottom: 1.25rem;
  font-size: 1.3rem;
  color: var(--text-dark);
  font-weight: 600;
}

.price-tag {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 1.75rem;
  line-height: 1.2;
}

.price-tag span {
  font-size: 1rem;
  font-weight: 400;
  color: var(--text-medium);
}

.room-pricing p {
  margin-bottom: 1rem;
  color: var(--text-medium);
  font-size: 1rem;
}

.room-pricing p i {
  width: 24px;
  margin-right: 12px;
  color: var(--primary-color);
}

.booking-btn {
  width: 100%;
  padding: 1.1rem;
  margin-top: 2rem;
  background-color: var(--primary-color);
  color: var(--white);
  border: none;
  border-radius: 10px;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.booking-btn:before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    to right,
    rgba(255, 255, 255, 0.25),
    rgba(255, 255, 255, 0)
  );
  transition: left 0.4s ease;
}

.booking-btn:hover {
  background-color: var(--secondary-color);
  transform: translateY(-3px);
  box-shadow: 0 8px 16px rgba(15, 26, 44, 0.2);
}

.booking-btn:hover:before {
  left: 100%;
}

/* Room Details Section */
.room-details-section {
  margin-bottom: 5rem;
  padding: 3.5rem;
  background-color: var(--white);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-soft);
}

.content-header {
  font-size: 2rem;
  margin-bottom: 1.75rem;
  color: var(--text-dark);
  position: relative;
  padding-bottom: 1.25rem;
  font-weight: 600;
}

.content-header:after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 80px;
  height: 4px;
  background-color: var(--primary-color);
  border-radius: 2px;
}

.description-text {
  color: var(--text-medium);
  line-height: 1.9;
  font-size: 1.05rem;
  margin-bottom: 3rem;
  font-weight: 400;
}

.amenities-header {
  margin-top: 3.5rem;
}

.amenities-list {
  display: grid;
  gap: 1.75rem;
}

.amenities-list.deluxe-amenities {
  grid-template-columns: repeat(4, 1fr); /* 4 items per row for Deluxe */
}

.amenities-list.superior-amenities {
  grid-template-columns: repeat(5, 1fr); /* 5 items per row for Superior */
}

.amenity-item {
  display: flex;
  align-items DIY align-items: center;
  gap: 1rem;
  padding: 1.25rem;
  background-color: var(--bg-light);
  border-radius: 10px;
  transition: var(--transition);
  font-size: 1rem;
  font-weight: 500;
}

.amenity-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.1);
}

.amenity-item i {
  font-size: 1.3rem;
  color: var(--primary-color);
}
/* Gallery Section */
.room-gallery-section {
  padding: 3.5rem;
  background-color: var(--white);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-soft);
}

.gallery-title {
  font-size: 2rem;
  margin-bottom: 2.25rem;
  color: var(--text-dark);
  position: relative;
  padding-bottom: 1.25rem;
  font-weight: 600;
}

.gallery-title:after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 80px;
  height: 4px;
  background-color: var(--primary-color);
  border-radius: 2px;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.75rem;
}

.gallery-item {
  height: 240px;
  overflow: hidden;
  border-radius: var(--border-radius);
  position: relative;
  cursor: pointer;
}

.gallery-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(15, 26, 44, 0.3);
  opacity: 0;
  transition: var(--transition);
  z-index: 1;
}

.gallery-item:hover::before {
  opacity: 1;
}

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

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

/* Modal Styles */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(15, 26, 44, 0.85);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.modal-content {
  background-color: var(--white);
  border-radius: var(--border-radius);
  max-width: 640px;
  width: 90%;
  max-height: 90vh;
  overflow-y: auto;
  transform: translateY(40px);
  opacity: 0;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.modal-overlay.active .modal-content {
  transform: translateY(0);
  opacity: 1;
}

.modal-header {
  padding: 1.75rem;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.modal-header h3 {
  font-size: 1.6rem;
  color: var(--text-dark);
  font-weight: 600;
}

.close-modal {
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--text-medium);
  cursor: pointer;
  transition: var(--transition);
}

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

.modal-body {
  padding: 2.5rem;
}

.form-group {
  margin-bottom: 1.75rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.6rem;
  color: var(--text-dark);
  font-weight: 500;
  font-size: 0.95rem;
}

.form-group input,
.form-group select {
  width: 100%;
  padding: 0.9rem 1.2rem;
  border: 1px solid rgba(0, 0, 0, 0.15);
  border-radius: 8px;
  font-size: 1rem;
  transition: var(--transition);
  background-color: var(--white);
}

.form-group input:focus,
.form-group select:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(212, 160, 23, 0.15);
  outline: none;
}

.price-summary {
  margin-top: 2.5rem;
  padding: 1.5rem;
  background-color: var(--bg-light);
  border-radius: 10px;
}

.summary-row {
  display: flex;
  justify-content: space-between;
  padding: 0.6rem 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  font-size: 0.95rem;
}

.summary-row.total {
  border-bottom: none;
  font-weight: 700;
  font-size: 1.3rem;
  margin-top: 0.75rem;
  color: var(--primary-color);
}

/* Gallery Modal */
.gallery-modal-content {
  max-width: 95%;
  width: 1280px;
  background-color: transparent;
  box-shadow: none;
  position: relative;
}

.gallery-modal-content .close-modal {
  position: absolute;
  top: 20px;
  right: 20px;
  color: var(--white);
  background-color: rgba(15, 26, 44, 0.6);
  border-radius: 50%;
  width: 48px;
  height: 48px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.gallery-modal-body {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.gallery-modal-image {
  height: 75vh;
  display: flex;
  justify-content: center;
  align-items: center;
}

.gallery-modal-image img {
  max-height: 100%;
  max-width: 100%;
  border-radius: 10px;
  box-shadow: var(--shadow-medium);
}

.gallery-nav {
  background: rgba(15, 26, 44, 0.6);
  color: var(--white);
  border: none;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 1.8rem;
  cursor: pointer;
  transition: var(--transition);
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
}

.prev-btn {
  left: 30px;
}

.next-btn {
  right: 30px;
}

.gallery-nav:hover {
  background: var(--primary-color);
}

.gallery-modal-thumbnails {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 25px;
}

.gallery-thumbnail {
  width: 90px;
  height: 68px;
  object-fit: cover;
  border-radius: 6px;
  cursor: pointer;
  opacity: 0.7;
  transition: var(--transition);
}

.gallery-thumbnail:hover,
.gallery-thumbnail.active {
  opacity: 1;
  transform: scale(1.05);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

/* Footer */
.detail-footer {
  text-align: center;
  padding: 2.5rem 0;
  background-color: var(--white);
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.05);
  margin-top: 4rem;
  border-top: 1px solid rgba(0, 0, 0, 0.05);
}

.detail-footer p {
  color: var(--text-medium);
  font-size: 0.95rem;
}

.footer-links {
  margin-top: 1rem;
  display: flex;
  justify-content: center;
  gap: 1.5rem;
}

.footer-links a {
  color: var(--text-medium);
  text-decoration: none;
  font-size: 0.95rem;
  transition: var(--transition);
}

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

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

@keyframes slideIn {
  from {
    transform: translateX(-40px);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

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

.slide-in {
  animation: slideIn 0.5s ease forwards;
}

/* Responsive Design */
@media (max-width: 1200px) {
  .container {
    width: 92%;
  }

  .room-hero {
    grid-template-columns: 1fr;
  }

  .hero-image {
    height: 450px;
  }
}

@media (max-width: 992px) {
  .hero-image {
    height: 400px;
  }

  .room-details-section,
  .room-gallery-section {
    padding: 2.5rem;
  }

  .amenities-list {
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  }
}

@media (max-width: 768px) {
  .container {
    padding: 0 1.25rem;
  }

  .back-btn {
    top: 1.5rem;
    left: 1.5rem;
  }

  .section__header {
    font-size: 2.25rem;
  }

  .room-details-section,
  .room-gallery-section {
    padding: 2rem;
  }

  .gallery-grid {
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  }

  .gallery-item {
    height: 200px;
  }

  .modal-content {
    width: 95%;
  }
}

@media (max-width: 576px) {
  .section__header {
    font-size: 1.75rem;
  }

  .hero-image {
    height: 320px;
  }

  .content-header,
  .gallery-title {
    font-size: 1.6rem;
  }

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

  .gallery-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .gallery-item {
    height: 180px;
  }

  .gallery-modal-image {
    height: 60vh;
  }

  .gallery-nav {
    width: 48px;
    height: 48px;
    font-size: 1.5rem;
  }
}