html {
  scroll-behavior: smooth;
}

/* Remove horizontal scrollbar globally */
body,
html {
  overflow-x: hidden;
}

/* Optional: make cards responsive */
.room-card,
.booking-card {
  max-width: 100%;
  box-sizing: border-box;
}

.booking-card {
  overflow: visible;
  /* ensure nothing in card gets cut off */
  display: flex;
  flex-direction: column;
}

.booking-card .card-body {
  display: flex;
  flex-direction: column;
}

#confirmBookingBtn {
  /* space kutoka inputs */
  margin-bottom: 1rem;
  /* avoid extra pushing */
}

.dates-horizontal {
  display: flex;
  gap: 0.5rem;
  /* space between date inputs */
  flex-wrap: wrap;
  /* small screens, inputs go vertical */
}

.dates-horizontal .yt-input-group {
  flex: 1;
  min-width: 0;
  /* prevent inputs from overflowing */
}



.room-card img {
  max-width: 100%;
  height: auto;
  display: block;
}

.rooms-hero {
  background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)),
    url('https://images.unsplash.com/photo-1542314831-068cd1dbfeeb') center/cover no-repeat;

  height: 60vh;
  /* reduce from 90vh -> 60vh */
  min-height: 400px;
  /* ensures hero is not too short on small screens */
  display: flex;
  align-items: center;
  text-align: center;
}

.top-bar {
  /* background: rgb(0, 0, 0); */
  backdrop-filter: blur(6px);
  background: linear-gradient(135deg, #b8860b, #ffd700, #ffec8b);
  /* box-shadow: 0 4px 10px rgba(0, 0, 0, 0.4); */
  /* box-shadow: 0 2px 6px rgba(0,0,0,0.3); */
  z-index: 18000;
}

.main-navbar {
  margin-top: 32px; /* height ya top bar */
}


/* Navbar default (before scroll) */
.navbar-custom {
  background:  rgba(0, 0, 0, 0.281);;
  padding: 20px 0;
  transition: all 0.4s ease;
  margin-top: 42.5px;
}

/* Navbar after scroll */
.navbar-scrolled {
  background: rgb(0, 0, 0);
  backdrop-filter: blur(6px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.267);
  padding: 10px 0;
}

/* Nav links hover effect */
.navbar-custom .nav-link {
  color: #fff;
  margin-left: 15px;
  position: relative;
}

.navbar-custom .nav-link::after {
  content: "";
  position: absolute;
  width: 0%;
  height: 2px;
  background: #ffc107;
  left: 0;
  bottom: -5px;
  transition: 0.3s;
}

.navbar-custom .nav-link:hover::after {
  width: 100%;
}


.active-link {
  color: #ffc107 !important;
}

.active-link::after {
  width: 100% !important;
}

/* Mobile nav animation */
@media (max-width: 991px) {
  .navbar-collapse {
    background: rgba(0, 0, 0, 0.95);


    padding: 15px;
    border-radius: 10px;
    animation: slideDown 0.4s ease;
  }

  @keyframes slideDown {
    from {
      opacity: 0;
      transform: translateY(-10px);
    }

    to {
      opacity: 1;
      transform: translateY(0);
    }
  }
}





.room-card {
  border-radius: 15px;
  overflow: hidden;
  transition: transform 0.3s, box-shadow 0.3s;
  height: 100%;
  /* ensures uniform height within column */
}

/* Card image height */
.room-card img {
  height: 300px;
  /* slightly taller */
  object-fit: cover;
}

/* Card body styling */
.room-card .card-body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

/* Buttons */
.room-card .btn {
  margin-top: 10px;
}

/* Hover effect */
.room-card:hover {
  transform: translateY(-10px) scale(1.02);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.25);
}



/* Services Parallax Section */
.services-section {
  min-height: 80vh;
  background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)),
    url('https://images.unsplash.com/photo-1522708323590-d24dbb6b0267') center/cover no-repeat fixed;
  padding: 100px 0;
}

.service-box {
  background: rgba(0, 0, 0, 0.6);
  padding: 30px;
  border-radius: 12px;
  transition: transform 0.3s ease, background 0.3s ease;
}

.service-box:hover {
  transform: translateY(-10px);
  background: rgba(201, 162, 77, 0.85);
  /* luxe gold */
  color: #000;
}

.services-section {
  padding: 80px 0;
  background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)),
    url('https://images.unsplash.com/photo-1505691938895-1758d7feb511') center/cover no-repeat fixed;
}

.services-section {
  background-color: #1a1a1a;
  /* dark background for contrast */
  padding: 5rem 0;
  /* vertical spacing */
}

.services-section .service-box {
  background-color: #334d369c;
  /* non-transparent, white background */
  color: #774343;
  /* text dark to contrast with white bg */
  border-radius: 12px;
  padding: 2rem;
  /* slightly bigger */
  min-height: 250px;
  /* makes cards taller */
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.12);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: center;
}

/* Card hover effect */
.services-section .service-box:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.18);
}

/* Service title */
.services-section .service-box h5 {
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 0.7rem;
}

/* Service description */
.services-section .service-box p {
  font-size: 0.95rem;
  color: #e0d9d9;
}


.services-section h2 {
  font-size: 2.5rem;
}

.service-box {
  background: rgba(255, 255, 255, 0.05);
  /* semi-transparent white overlay */
  border-radius: 15px;
  padding: 30px 20px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  height: 100%;
  /* fill parent column height */
  transition: transform 0.3s, box-shadow 0.3s;
}

/* Uniform card height with Bootstrap columns */
.row.g-4>.col-md-4 {
  display: flex;
}

/* Hover effect */
.service-box:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 25px rgba(0, 0, 0, 0.2);
}

/* Title and text styling */
.service-box h5 {
  font-size: 1.4rem;
  margin-bottom: 15px;
  color: #ffc107;
}

.service-box p {
  color: #fff;
  flex: 1;
  /* ensures all boxes stretch equally */
}




/* Default hidden */
.animate {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s ease-out;
}

/* Active class triggers animation */
.animate.active {
  opacity: 1;
  transform: translateY(0);
}


.rooms-hero .animate {
  opacity: 0;
  transform: scale(0.95);
  transition: all 1s ease-out;
}

.rooms-hero .animate.active {
  opacity: 1;
  transform: scale(1);
}

/* Preloader full screen */
#preloader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #000;
  /* background color while loading */
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

/* Spinner */
#preloader .spinner {
  border: 6px solid #f3f3f3;
  /* light grey */
  border-top: 6px solid #ffc107;
  /* gold */
  border-radius: 50%;
  width: 60px;
  height: 60px;
  animation: spin 1s linear infinite;
}

/* Spin animation */
@keyframes spin {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}


body.loading {
  overflow: hidden;
}




/* Horizontal container */
.dates-horizontal {
  display: flex;
  gap: 0.8rem;
}

/* Inputs slim + YouTube-style underline */
.yt-input-group {
  position: relative;
  flex: 1;
}

.yt-input-group input {
  width: 100%;
  border: none;
  border-bottom: 1.5px solid #ccc;
  padding: 7px 4px;
  font-size: 0.88rem;
  background: transparent;
  outline: none;
  border-radius: 0;
}

/* Animated underline */
.yt-input-group input:focus {
  border-color: #ffc107;
}

/* Optional placeholder color */
.yt-input-group input::placeholder {
  color: #aaa;
  font-size: 0.85rem;
}

/* Hover effect */
.yt-input-group input:hover {
  border-bottom-color: #999;
}

.footer {
  background-color: #1a1a1a;
  color: #fff;
  font-family: 'Poppins', sans-serif;
}

.footer a:hover {
  color: #ffc107;
}

.footer input.form-control {
  border-radius: 20px;
  padding: 6px 12px;
  font-size: 0.85rem;
}

.footer button {
  border-radius: 20px;
  font-size: 0.85rem;
}

.footer i {
  transition: transform 0.2s ease;
}

.footer i:hover {
  transform: scale(1.2);
  color: #ffc107;
}


.agents-section {
  background-color: #f8f9fa;
}

.agent-stack {
  position: relative;
  width: 100%;
}

/* Top card: image only */
.agent-top-card {
  overflow: hidden;
  border-radius: 12px;
}

.agent-top-card img {
  width: 100%;
  height: 400px;
  /* tall image */
  object-fit: cover;
  display: block;
}

/* Bottom card: overlapping details */
.agent-bottom-card {
  background-color: #fff;
  position: absolute;
  left: 10px;
  /* small left shift */
  bottom: -50px;
  /* overlap top card */
  width: calc(100% - 20px);
  padding: 1rem;
  border-radius: 12px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-direction: column;
  text-align: center;
}

/* Name and role */
.agent-bottom-card .agent-name {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.2rem;
}

.agent-bottom-card .agent-role {
  font-size: 0.85rem;
  color: #555;
  margin-bottom: 0.5rem;
}

/* Social links */
.agent-bottom-card .social-links a {
  margin: 0 5px;
  transition: transform 0.2s ease;
}

.agent-bottom-card .social-links a:hover {
  transform: scale(1.2);
  color: #0d6efd;
}

/* Hover effect: lift entire stack slightly */
.agent-stack:hover .agent-top-card img {
  transform: scale(1.05);
  transition: transform 0.3s ease;
}


/* ===== Loader ===== */
#page-loader {
  position: fixed;
  inset: 0;
  background: rgba(255, 255, 255, 0.85);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

.spinner {
  width: 60px;
  height: 60px;
  border: 6px solid #ddd;
  border-top: 6px solid #28a745;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

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

/* ===== Success Toast ===== */
#success-toast {
  position: fixed;
  top: 20px;
  right: -400px;
  background: #28a745;
  color: #fff;
  padding: 15px 22px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  gap: 10px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.25);
  z-index: 10000;
  font-weight: 500;
}

/* check icon */
#success-toast .check {
  background: #fff;
  color: #28a745;
  border-radius: 50%;
  width: 26px;
  height: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
}

/* show animation */
#success-toast.show {
  animation: slideIn 0.5s ease forwards,
    slideOut 0.5s ease forwards 4s;
}

@keyframes slideIn {
  from {
    right: -400px;
  }

  to {
    right: 20px;
  }
}

@keyframes slideOut {
  from {
    right: 20px;
  }

  to {
    right: -400px;
  }
}