/* ==========================================================================
   Hotel Detail Page Styles
   An editorial portrait layout for individual hotel pages
   ========================================================================== */

/* --------------------------------------------------------------------------
   Hotel Hero
   -------------------------------------------------------------------------- */
.hotel-hero {
  position: relative;
  height: 85vh;
  min-height: 600px;
  overflow: hidden;
}

.hotel-hero-image {
  position: absolute;
  inset: 0;
}

.hotel-hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  animation: heroZoom 1.5s ease-out forwards;
}

@keyframes heroZoom {
  from {
    transform: scale(1.1);
  }
  to {
    transform: scale(1);
  }
}

.hotel-hero-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    var(--color-background) 0%,
    rgba(250, 249, 246, 0.3) 40%,
    transparent 100%
  );
}

.hotel-hero-content {
  position: relative;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding-bottom: 4rem;
}

@media (min-width: 768px) {
  .hotel-hero-content {
    padding-bottom: 6rem;
  }
}

.hotel-type-badge {
  display: inline-block;
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: 1rem;
  opacity: 0;
  animation: fadeUp 0.8s ease-out 0.5s forwards;
}

.hotel-name {
  font-family: var(--font-serif);
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 400;
  color: var(--color-foreground);
  line-height: 1.1;
  margin-bottom: 1.5rem;
  max-width: 48rem;
  opacity: 0;
  animation: fadeUp 0.8s ease-out 0.6s forwards;
}

.hotel-tagline {
  font-family: var(--font-serif);
  font-size: clamp(1.25rem, 2.5vw, 1.5rem);
  font-style: italic;
  color: rgba(45, 40, 35, 0.8);
  line-height: 1.5;
  max-width: 36rem;
  opacity: 0;
  animation: fadeUp 0.8s ease-out 0.7s forwards;
}

.scroll-indicator {
  display: inline-block;
  margin-top: 3rem;
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-muted);
  opacity: 0;
  animation: fadeIn 0.6s ease-out 1.2s forwards;
}

/* --------------------------------------------------------------------------
   Narrative Section
   -------------------------------------------------------------------------- */
.hotel-narrative {
  padding: 5rem 0;
  background-color: var(--color-background);
}

@media (min-width: 768px) {
  .hotel-narrative {
    padding: 8rem 0;
  }
}

.narrative-content {
  max-width: 48rem;
  margin: 0 auto;
}

.narrative-intro {
  font-size: 1.125rem;
  line-height: 1.8;
  color: var(--color-foreground);
  margin-bottom: 2.5rem;
}

@media (min-width: 768px) {
  .narrative-intro {
    font-size: 1.25rem;
  }
}

.narrative-divider {
  width: 3rem;
  height: 1px;
  background-color: var(--color-accent);
  margin-bottom: 2.5rem;
}

.narrative-body {
  font-size: 1.125rem;
  line-height: 1.8;
  color: var(--color-muted);
}

/* --------------------------------------------------------------------------
   Photo Gallery
   -------------------------------------------------------------------------- */
.hotel-gallery {
  padding: 3rem 0 5rem;
  background-color: rgba(240, 236, 228, 0.3);
}

@media (min-width: 768px) {
  .hotel-gallery {
    padding: 5rem 0;
  }
}

.gallery-layout {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

@media (min-width: 768px) {
  .gallery-layout {
    flex-direction: row;
    gap: 2rem;
  }
}

.gallery-primary {
  flex: 0 0 60%;
}

.gallery-primary img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  aspect-ratio: 4/3;
  transition: transform 0.7s ease;
}

.gallery-primary:hover img {
  transform: scale(1.05);
}

.gallery-secondary {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

@media (min-width: 768px) {
  .gallery-secondary {
    gap: 2rem;
  }
}

.gallery-secondary img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  aspect-ratio: 3/2;
  transition: transform 0.7s ease;
}

.gallery-secondary img:hover {
  transform: scale(1.05);
}

/* Overflow hidden containers */
.gallery-primary,
.gallery-secondary img {
  overflow: hidden;
}

/* --------------------------------------------------------------------------
   Atmosphere & Experience
   -------------------------------------------------------------------------- */
.hotel-atmosphere {
  padding: 5rem 0;
  background-color: var(--color-background);
}

@media (min-width: 768px) {
  .hotel-atmosphere {
    padding: 8rem 0;
  }
}

.atmosphere-grid {
  display: grid;
  gap: 4rem;
}

@media (min-width: 768px) {
  .atmosphere-grid {
    grid-template-columns: 1fr 1fr;
    gap: 6rem;
  }
}

.atmosphere-block .section-label {
  display: block;
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: 1rem;
}

.atmosphere-block .section-title {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 400;
  color: var(--color-foreground);
  margin-bottom: 1.5rem;
}

@media (min-width: 768px) {
  .atmosphere-block .section-title {
    font-size: 1.875rem;
  }
}

.atmosphere-block .section-divider {
  width: 3rem;
  height: 1px;
  background-color: var(--color-accent);
  margin-bottom: 1.5rem;
}

.atmosphere-block p {
  color: var(--color-muted);
  line-height: 1.8;
}

/* --------------------------------------------------------------------------
   Accommodations / Rooms
   -------------------------------------------------------------------------- */
.hotel-rooms {
  padding: 5rem 0;
  background-color: rgba(240, 236, 228, 0.5);
}

@media (min-width: 768px) {
  .hotel-rooms {
    padding: 8rem 0;
  }
}

.rooms-header {
  max-width: 36rem;
  margin-bottom: 4rem;
}

.rooms-header .section-label {
  display: block;
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: 1rem;
}

.rooms-header .section-title {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 400;
  color: var(--color-foreground);
  margin-bottom: 1rem;
}

@media (min-width: 768px) {
  .rooms-header .section-title {
    font-size: 1.875rem;
  }
}

.rooms-header .section-divider {
  width: 3rem;
  height: 1px;
  background-color: var(--color-accent);
}

.rooms-list {
  max-width: 48rem;
}

.room-item {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1.5rem;
  padding-bottom: 2rem;
  margin-bottom: 2rem;
  border-bottom: 1px solid var(--color-border);
  cursor: pointer;
  transition: opacity 0.3s ease;
}

.room-item:last-child {
  border-bottom: none;
}

.room-item:hover {
  opacity: 0.85;
}

.room-item:hover .room-name {
  color: var(--color-accent);
}

.room-item:hover .room-arrow {
  opacity: 1;
}

.room-content {
  flex: 1;
}

.room-name {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: 400;
  color: var(--color-foreground);
  margin-bottom: 0.5rem;
  transition: color 0.3s ease;
}

.room-description {
  color: var(--color-muted);
  line-height: 1.7;
}

.room-arrow {
  color: var(--color-accent);
  opacity: 0;
  transition: opacity 0.3s ease;
  margin-top: 0.25rem;
}

.rooms-note {
  margin-top: 3rem;
  font-size: 0.875rem;
  color: var(--color-muted);
  max-width: 36rem;
}

/* --------------------------------------------------------------------------
   Availability CTA
   -------------------------------------------------------------------------- */
.hotel-availability {
  padding: 6rem 0;
  background-color: var(--color-background);
}

@media (min-width: 768px) {
  .hotel-availability {
    padding: 8rem 0;
  }
}

.availability-content {
  max-width: 40rem;
  margin: 0 auto;
  text-align: center;
}

.availability-content .section-label {
  display: block;
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: 1rem;
}

.availability-content .section-title {
  font-family: var(--font-serif);
  font-size: 1.875rem;
  font-weight: 400;
  color: var(--color-foreground);
  margin-bottom: 1.5rem;
}

@media (min-width: 768px) {
  .availability-content .section-title {
    font-size: 2.25rem;
  }
}

.availability-content .section-divider {
  width: 3rem;
  height: 1px;
  background-color: var(--color-accent);
  margin: 0 auto 1.5rem;
}

.availability-content p {
  color: var(--color-muted);
  line-height: 1.8;
  margin-bottom: 2.5rem;
}

.availability-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.875rem;
  letter-spacing: 0.1em;
  color: var(--color-foreground);
  background: transparent;
  border: none;
  cursor: pointer;
  transition: color 0.3s ease;
}

.availability-cta:hover {
  color: var(--color-accent);
}

.availability-cta .cta-arrow {
  color: var(--color-accent);
}

/* --------------------------------------------------------------------------
   Type-specific closing text variations (via data attribute)
   These provide visual cues but main text is in HTML
   -------------------------------------------------------------------------- */
[data-hotel-type="palace"] .availability-content {
  /* Palace: dignified, historical */
}

[data-hotel-type="haveli"] .availability-content {
  /* Haveli: warm, personal */
}

[data-hotel-type="boutique"] .availability-content {
  /* Boutique: contemporary, confident */
}

[data-hotel-type="resort"] .availability-content {
  /* Resort: expansive, panoramic */
}

[data-hotel-type="business"] .availability-content {
  /* Business: clear, practical */
}

/* --------------------------------------------------------------------------
   Animations
   -------------------------------------------------------------------------- */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

/* Scroll-triggered animations */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.animate-on-scroll.is-visible {
  opacity: 1;
  transform: translateY(0);
}