/* =========================================
   Animations (uses .visible from JS trigger)
   ========================================= */
.fade-in, .slide-up, .zoom-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.8s cubic-bezier(.43,.13,.23,1), 
              transform 0.8s cubic-bezier(.43,.13,.23,1);
}
.fade-in.visible,
.slide-up.visible,
.zoom-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Delay Utilities */
.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }
.delay-4 { transition-delay: 0.4s; }
.delay-5 { transition-delay: 0.5s; }

/* ==================
   Hero Section (Modernized)
   ================== */
.hero-section {
  position: relative;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  padding: 5.5rem 1rem 5rem;
  text-align: center;
  color: var(--text);
}

.hero-overlay {
  background: rgba(0, 0, 0, 0.45);
  padding: 3rem 1.5rem;
  max-width: 680px;
  margin: 0 auto;
  border-radius: var(--radius);
  box-shadow: var(--shadow-main);
  text-align: left;
}

.hero-section h1 {
  font-size: 2.8rem;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 0.6rem;
  letter-spacing: -0.5px;
}

.hero-section .tagline {
  font-size: 1.25rem;
  font-weight: 500;
  color: var(--muted);
  margin-bottom: 2rem;
  line-height: 1.6;
}

.cta-button {
  display: inline-block;
  background: var(--primary);
  color: #fff;
  padding: 0.85rem 2rem;
  border-radius: 0.6rem;
  font-weight: 700;
  font-size: 1.15rem;
  box-shadow: 0 4px 18px rgba(255,87,34,0.15);
  transition: var(--transition-fast), box-shadow 0.2s;
  letter-spacing: 0.03em;
  outline: none;
  border: none;
  text-decoration: none;
}
.cta-button:hover,
.cta-button:focus {
  background: var(--primary-dark);
  box-shadow: 0 8px 28px rgba(255,87,34,0.2);
}
.cta-button:active {
  transform: scale(0.97);
}


/* ==================
   Section Heading Accent
   ================== */
.section h2 {
  display: block;
  text-align: center;
  /* keep decorative line */
  position: relative;
  font-size: 1.42rem;
  margin-bottom: 0.6rem;
  font-weight: 700;
  color: var(--primary);
  letter-spacing: -0.5px;
  padding-bottom: 0.12em;
}
.section h2::after {
  content: '';
  display: block;
  width: 2.5em;
  height: 3px;
  background: var(--primary);
  margin: 0.35em auto 0;
  border-radius: 2px;
  opacity: 0.17;
}
.section .tagline {
  line-height: 1.6;
  max-width: 680px;
  margin-left: auto;
  margin-right: auto;
}


/* ==================
   Rooms
   ================== */
.room-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}
.room-card {
   background: var(--surface);
  color: var(--text);
  padding: 1rem 1.2rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow-main);
  text-align: center;
  transition: box-shadow 0.19s, transform 0.17s;
  cursor: pointer;
}
.room-card:hover, .room-card:focus-within {
  box-shadow: 0 8px 28px rgba(255,87,34,0.13);
  transform: translateY(-5px) scale(1.035);
  z-index: 2;
}
.room-card h3 {
  color: var(--primary);
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 0.3em;
}

.room-card p {
  color: var(--muted);
  font-size: 0.95rem;
}
.room-card:hover picture img {
  transform: scale(1.05);
   box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
}
/* ==================
   Dining Section
   ================== */
.dining-photo {
  width: 100%;
  max-width: 700px;
  margin: 2rem auto 0;
  display: block;
  border-radius: var(--radius);
  box-shadow: 0 2px 16px rgba(255,87,34,0.06);
}

/* ==================
   Amenities
   ================== */
.icon-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 1.2rem;
  margin-top: 2rem;
  text-align: center;
}

.icon-grid > div {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center; /* ⬅ ensures vertical centering */
  transition: transform .16s cubic-bezier(.53,.16,.23,1);
  border-radius: 0.7rem;
  padding: 1rem 0.5rem 0.5rem 0.5rem;
  background: var(--surface);
  color: var(--text);
  box-shadow: 0 2px 8px rgba(255,87,34,0.04);
  text-align: center;
  min-height: 120px;
}

.icon-grid > div:hover, .icon-grid > div:focus-within {
  transform: scale(1.08);
  background: #fff9f4;
}
.icon-grid img {
  width: 32px;
  height: 32px;
  margin-bottom: 0.4rem; /* less spacing for tighter layout */
}


/* ==================
   Contact Section
   ================== */
.contact img {
  width: 20px;
  margin-right: 0.5rem;
  vertical-align: middle;
}
.contact a {
  color: var(--accent);
  transition: color 0.16s;
}
.contact a:hover, .contact a:focus {
  color: var(--primary-dark);
  text-decoration: underline;
}

/* ==================
   Responsive Tweaks
   ================== */
@media (max-width: 700px) {
  .hero {
    padding: 2.5rem 0.5rem 1.2rem;
  }
  .hero-logo {
    width: 72px;
  }
  .cta-button {
    font-size: 1rem;
    padding: 0.63rem 1.1rem;
  }
  .section h2 {
    font-size: 1.13rem;
  }
  .room-card {
    font-size: 0.98rem;
  }
  .icon-grid {
    gap: 0.8rem;
  }
  .dining-photo {
    margin-top: 1rem;
  }
}

.contact-list {
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
  margin-top: 2rem;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  font-size: 1rem;
  color: var(--text);
  line-height: 1.5;
  max-width: 100%;
  flex-wrap: wrap;
}

.contact-item img {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  margin-top: 1px;
}

.contact-item a {
  color: var(--accent);
  text-decoration: none;
  transition: color 0.2s ease;
  word-break: break-word;
}

.contact-item a:hover,
.contact-item a:focus {
  color: var(--primary-dark);
  text-decoration: underline;
}


@media (max-width: 400px) {
  .hero-section h1 {
    font-size: 2rem;
  }
  .cta-button {
    font-size: 0.95rem;
    padding: 0.6rem 1.2rem;
  }
}

/* ==================
   Dining Section
   ================== */

.dining-photo {
  width: 100%;
  max-width: 700px;
  margin: 2.5rem auto 3rem;
  display: block;
  border-radius: var(--radius);
  box-shadow: 0 3px 18px rgba(0, 0, 0, 0.06);
}


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

.section.dining h2 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 0.4rem;
}

.section.dining .tagline {
  font-size: 1rem;
  color: var(--muted);
  margin-bottom: 2rem;
  line-height: 1.5;
}


.room-card picture {
  display: block;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: var(--radius);
  margin-bottom: 0.8rem;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}
.room-card picture img {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
   z-index: 1; /* <-- Optional but can reinforce layer priority */
  position: relative;
}

.room-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.room-card:hover .badge-popular {
  transform: translateY(-2px) scale(1.05);
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  background: var(--primary-dark);
  transition: all 0.2s ease;
}


/* ==================
   Room Card Enhancements
   ================== */

/* Better spacing for text */
.room-card h3 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--primary);
  margin: 0.4rem 0 0.25rem;
}

.room-card p {
  font-size: 0.95rem;
  color: var(--muted);
  margin-bottom: 0.4rem;
}

/* Optional: Tag under price (e.g., Good for 2) */
.room-card .room-meta {
  font-size: 0.82rem;
   color: var(--muted);
  margin-top: -0.2rem;
  display: block;
}

/* Optional: Badge (e.g., Popular) */
.room-card .badge-popular {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  background: var(--primary);
  color: white;
  font-size: 0.7rem;
  padding: 0.25rem 0.6rem;
  border-radius: 1rem;
  font-weight: 600;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  z-index: 2;
  pointer-events: none;
}

/* Make sure picture wraps correctly inside anchor */
.room-card {
  position: relative;
  overflow: hidden;
  padding-bottom: 1rem; /* consistent spacing */
}

.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
/* etc */

.section.rooms,
.section.amenities,
.section.dining {
  background: var(--bg);
}



@media (max-width: 400px) {
  .room-grid {
    gap: 1rem;
  }
  .room-card h3 {
    font-size: 1rem;
  }
  .room-card p {
    font-size: 0.88rem;
  }
}


.cta-button:hover,
.cta-button:focus {
  background: var(--primary-dark);
  color: #fff !important;
  box-shadow: 0 8px 28px rgba(255,87,34,0.2);
}

.contact-text p {
  margin: 0.25rem 0;
}

.contact-text {
  flex: 1;
  min-width: 0;
}

.contact-text p {
  margin: 0.25rem 0;
  word-break: break-word;
  line-height: 1.4;
}

.laundry-note {
  font-size: 0.85rem;
  color: var(--muted);
  margin-top: 0.5rem;
  margin-left: 1rem;
  font-style: italic;
}

.icon-grid a.amenity-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transition: transform .16s cubic-bezier(.53,.16,.23,1);
  border-radius: 0.7rem;
  padding: 1rem 0.5rem 0.5rem;
  background: var(--surface);
  box-shadow: 0 2px 8px rgba(255,87,34,0.04);
  min-height: 120px;
  color: inherit;
  text-decoration: none;
   border: 1px solid #f0e6e1;
}

.icon-grid a.amenity-link:hover {
  transform: scale(1.08);
  background: #fff9f4; /* Matches div:hover */
}

/* Fix for hero text contrast */
.hero-section .hero-overlay h1,
.hero-section .hero-overlay .tagline {
  color: #fff;
}


/* Ensure anchor jumps don't hide content under the sticky header */
#rooms { scroll-margin-top: 84px; }


@supports (content-visibility: auto) {
  .section.rooms,
  .section.amenities,
  .section.dining,
  .section.contact {
    content-visibility: auto;
    contain-intrinsic-size: 800px; /* rough height placeholder to avoid jumps */
  }
}

/* Slightly stronger overlay on small screens for better contrast */
@media (max-width: 600px){
  .hero-overlay{ background: rgba(0,0,0,0.55); }
}


/* Ensure anchor jumps aren’t hidden under the sticky header */
#rooms,
#amenities-title,
#dining-title,
#contact-title { scroll-margin-top: 84px; }
