/* Musundi Luxury Homes – Custom Styles */

/* =============================================
   HERO SLIDESHOW  – "lighting changes only" look
   ============================================= */
#hero-slideshow {
  position: relative;
  width: 100%;
  height: 600px;
  overflow: hidden;
}

/* Both slides share the SAME background-position so the
   framing never shifts – it truly looks like time passing */
.hero-bg {
  position: absolute;
  inset: 0;
  /* Anchored at the gate sign – tweak % if your photos need it */
  background-position: 50% 55%;
  background-size: cover;
  background-repeat: no-repeat;
  /* Very slow drift (Ken-Burns) applied equally to both slides
     so the composition always matches */
  animation: hero-drift 30s ease-in-out infinite alternate;
  will-change: transform;
}

/* Tiny, matching slow-zoom on both slides – keeps them
   perfectly overlaid so the crossfade never "jumps" */
@keyframes hero-drift {
  from { transform: scale(1.00); }
  to   { transform: scale(1.06); }
}

/* Day slide: base layer */
.slide-day {
  z-index: 1;
  opacity: 1;
}

/* Night slide: fades in over the top.
   Transition is 3 s so the light seems to gradually change */
.slide-night {
  z-index: 2;
  opacity: 0;
  transition: opacity 3s cubic-bezier(0.45, 0, 0.55, 1);
}

/* Overlay: also transitions so the mood shifts with the light.
   Day = soft blue tint, Night = deep dark vignette.
   JS swaps the class .hero-overlay--night */
.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 3;
  /* Day default */
  background: linear-gradient(
    160deg,
    rgba(10, 40, 90, 0.10) 0%,
    rgba(5,  20, 50, 0.40) 70%,
    rgba(0,  10, 30, 0.55) 100%
  );
  transition: background 3s ease-in-out;
}

/* Night overlay – deeper, warmer at the bottom (mimics the
   warm light spilling from the building windows) */
.hero-overlay--night {
  background: linear-gradient(
    160deg,
    rgba(0,  5,  20, 0.20) 0%,
    rgba(0,  5,  20, 0.55) 65%,
    rgba(10, 5,   0, 0.70) 100%
  );
}

/* Centred text block */
.hero-content {
  position: absolute;
  z-index: 4;
  width: 100%;
  top: 50%;
  transform: translateY(-50%);
  text-align: center;
  padding: 0 20px;
}

/* Title & subtitle: smooth colour + shadow transitions */
.hero-title {
  font-family: 'Playfair Display', serif;
  font-size: 3rem;
  font-weight: 700;
  color: #ffffff;
  text-shadow: 0 2px 22px rgba(0, 0, 0, 0.80);
  margin: 0 0 12px;
  transition: color 2.5s ease, text-shadow 2.5s ease;
}

.hero-subtitle {
  font-size: 1.25rem;
  color: #e8eaf0;
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.80);
  margin: 0 0 28px;
  letter-spacing: 0.6px;
  transition: color 2.5s ease, text-shadow 2.5s ease;
}

.hero-cta {
  background-color: #FFD700 !important;
  color: #111 !important;
  border-radius: 6px !important;
  font-weight: 700;
  letter-spacing: 1px;
  padding: 0 32px;
  height: 46px;
  line-height: 46px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.35);
  transition: background-color 0.3s ease, box-shadow 0.3s ease !important;
}
.hero-cta:hover {
  background-color: #FFC200 !important;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.45) !important;
}

@media (max-width: 768px) {
  #hero-slideshow { height: 420px; }
  .hero-title     { font-size: 1.9rem; }
  .hero-subtitle  { font-size: 1rem; }
}
@media (max-width: 480px) {
  #hero-slideshow { height: 340px; }
  .hero-title     { font-size: 1.5rem; }
  .hero-subtitle  { font-size: 0.9rem; }
}

/* =============================================
   BOOKING BAR – slightly rounded, not sharp
   ============================================= */
.booking-header--rounded {
  border-radius: 12px !important;
  /* overflow:hidden removed — it clips Materialize select dropdown lists */
}

/* Slightly round the BOOK NOW button */
.booking-header .btn {
  border-radius: 8px !important;
}

/* Make dropdown text visible inside dark booking bar */
.booking-header .select-wrapper input.select-dropdown {
  color: #ffffff !important;
  border-bottom-color: rgba(255,255,255,0.5) !important;
}

/* Caret arrow: target only the arrow path, NOT the SVG element.
   Setting fill on <svg> itself overrides fill="none" on the bounding-box
   path and produces a solid white square instead of an arrow. */
.booking-header .select-wrapper svg.caret {
  display: block !important;
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-20%);
  width: 24px;
  height: 24px;
}
.booking-header .select-wrapper svg.caret path:first-child {
  fill: #ffffff !important;
}

/* Label & date-input colours */
.booking-header label {
  color: rgba(255,255,255,0.8) !important;
  font-size: 0.75rem;
}
.booking-header input[type="text"] {
  color: #ffffff !important;
  border-bottom-color: rgba(255,255,255,0.4) !important;
}

/* =============================================
   BRAND
   ============================================= */
.brand-logo {
  font-family: 'Playfair Display', serif !important;
  font-size: 1.6rem !important;
  letter-spacing: 1px;
  color: #1a5c38 !important;
}

/* Accent colour – deep green */
.green-text { color: #1a5c38 !important; }
.green.lighten-1, .menu.green.lighten-1 { background-color: #1a5c38 !important; }
.lime.lighten-5 { background-color: #f1faf5 !important; }

/* Nav */
nav { box-shadow: 0 2px 8px rgba(0,0,0,0.12); }

/* Legacy hero header text (other pages) */
.header-container h1 {
  text-shadow: 0 2px 12px rgba(0,0,0,0.7);
  font-size: 2.8rem;
  color: #fff;
}

/* Booking bar mobile fix */
@media (max-width: 768px) {
  .booking-header {
    flex-direction: column;
    align-items: center;
    width: 100%;
    padding: 3% 4%;
  }
  .booking-title,
  .arrival-date,
  .departure-date,
  .room, .adult, .child {
    width: 100% !important;
    border-right: none !important;
    border-bottom: 1px solid rgba(255,255,255,0.25);
    padding-bottom: 8px;
    margin-bottom: 6px;
  }
  .flex-container { width: 100% !important; }
  .accomodation, .menu, .facilities, .services { width: 100% !important; }
}

/* About section quick-links grid */
.flex-container { flex-wrap: wrap; }

/* Gallery grid */
.gallery-section {
  padding: 20px 3%;
  width: 100%;
}
.gallery-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  padding: 10px 0 30px;
}
.gallery-item {
  flex: 1 1 280px;
  max-width: 340px;
  overflow: hidden;
  border-radius: 4px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.15);
}
.gallery-item img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}
.gallery-item img:hover { transform: scale(1.04); }
.gallery-category-title {
  padding: 28px 4% 10px;
  font-family: 'Playfair Display', serif;
  font-size: 1.5rem;
  color: #1a5c38;
  border-bottom: 2px solid #1a5c38;
  margin-bottom: 16px;
}

/* Facilities list in services page */
.facility-check-list {
  display: flex;
  flex-wrap: wrap;
  list-style: none;
  padding: 0;
  margin: 0 0 10px;
}
.facility-check-list li {
  width: 50%;
  padding: 4px 0;
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.95rem;
}
@media (max-width: 600px) {
  .facility-check-list li { width: 100%; }
}

/* Booking.com badge */
.rating-badge {
  display: inline-block;
  background: #1a5c38;
  color: #fff;
  padding: 5px 12px;
  border-radius: 4px;
  font-size: 1.15rem;
  font-weight: 700;
  margin-right: 8px;
  vertical-align: middle;
}
.rating-label { vertical-align: middle; font-size: 1rem; }

/* House rules table */
.rules-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 12px;
}
.rules-table td {
  padding: 12px 16px;
  border-bottom: 1px solid #e0e0e0;
  vertical-align: top;
  font-size: 0.95rem;
}
.rules-table td:first-child {
  font-weight: 600;
  width: 220px;
  color: #333;
}

/* Testimonial avatar fallback */
.author-icon {
  font-size: 120px !important;
  color: #bdc3c7;
  display: block;
  margin: 10px auto;
}

/* Room card image height fix */
.card.single-room .card-image img {
  height: 200px;
  object-fit: cover;
  width: 100%;
}

/* Room container images */
.room-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Near-by / Our Spaces image fix */
.nearby-firstImage img,
.nearby-secondRow img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Footer */
#footer {
  background-color: #1a2035;
  color: #ecf0f1;
  padding: 40px 0 20px;
}
#footer h5 { color: #f0f0f0; }
#footer a { color: #b2bec3 !important; }
#footer a:hover { color: #fff !important; }

/* Social icons */
.social li { display: inline-block; margin: 0 8px; }
.social a { font-size: 1.4rem; color: #b2bec3 !important; }
.social a:hover { color: #fff !important; }

/* Smooth section spacing */
section { padding: 20px 0; }

/* Details buttons on apartment cards — replace solid blue with brand-green ghost */
.card .btn.blue,
.price-book .btn.blue {
  background-color: transparent !important;
  color: #1a5c38 !important;
  border: 2px solid #1a5c38 !important;
  border-radius: 4px !important;
  box-shadow: none !important;
  font-weight: 600;
  letter-spacing: 0.5px;
  line-height: 32px;
  height: 36px;
  transition: background-color 0.25s ease, color 0.25s ease, box-shadow 0.25s ease;
}
.card .btn.blue:hover,
.price-book .btn.blue:hover {
  background-color: #1a5c38 !important;
  color: #ffffff !important;
  box-shadow: 0 2px 10px rgba(26,92,56,0.30) !important;
}
