/* ================= GENERAL ================= */
:root {
  --royal-blue: #0f1b33;
  --gold: #C5A059;
}

body {
  padding-top: 66px;
  /* Adjusted for taller header if needed */
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background-color: #f8f9fa;
  /* Light background for contrast */
}

/* Custom Backgrounds */
.bg-royal-blue {
  background-color: var(--royal-blue) !important;
}

.bg-hero-gradient {
  background: linear-gradient(135deg, #0f1b33 0%, #203a60 100%) !important;
}

.bg-section-alt {
  background-color: #eef2f6 !important;
}

/* Custom Text Colors */
.text-gold {
  color: var(--gold) !important;
}

section {
  scroll-margin-top: 90px;
}

/* ================= LOGO ================= */
.logo-img {
  height: 3.5rem;
  width: auto;
}

/* Ensure Logo is always on top for absolute positioning */
.navbar-brand {
  z-index: 1030;
  /* Above navbar-toggler and collapse content */
}


/* ================= NAVBAR IMPROVEMENTS ================= */
.navbar {
  transition: all 0.3s ease;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.navbar-brand {
  /* position: relative;  <-- Removed to let brand-centered handle absolute positioning context if needed, 
     though usually .navbar sets the context. We'll use .brand-centered for the heavy lifting. */
  z-index: 1030;
}

/* Custom Centering Logic */
.brand-centered {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  top: 0;
  /* Sticks to top on mobile */
  padding-top: 5px;
  /* Slight adjustment for mobile vertical alignment */
}

/* Desktop: Center Vertically and Horizontally */
@media (min-width: 992px) {
  .brand-centered {
    top: 50%;
    transform: translate(-50%, -50%);
    padding-top: 0;
  }
}


.navbar-brand img {
  transition: transform 0.2s ease;
}

.navbar-brand:hover img {
  transform: scale(1.05);
}

.nav-link {
  position: relative;
  transition: color 0.2s ease;
}


/* Override Bootstrap Nav Link Colors */
.navbar-dark .navbar-nav .nav-link {
  color: var(--gold);
  font-weight: 500;
}

.navbar-dark .navbar-nav .nav-link:hover,
.navbar-dark .navbar-nav .nav-link:focus {
  color: #fff;
}

.navbar-dark .navbar-nav .nav-link.active {
  color: var(--gold);
}

/* Underline for Desktop Only - GOLD */
@media (min-width: 992px) {
  .nav-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    /* Pull it down slightly */
    left: 50%;
    width: 0;
    height: 1px;
    background-color: var(--gold);
    transition: all 0.3s ease;
    transform: translateX(-50%);
  }

  .nav-link:hover::after,
  .nav-link.active::after {
    width: 100%;
  }
}

/* Mobile Active State */
@media (max-width: 991px) {
  .nav-link.active {
    color: var(--gold) !important;
    font-weight: 600;
    border-bottom: 1px solid var(--gold);
    display: inline-block;
  }
}


/* ================= HERO SECTION IMPROVEMENTS ================= */
#hotelCarousel .carousel-item {
  transition: transform 0.6s ease-in-out;
}

#hotelCarousel .carousel-inner {
  border-radius: 0;
}

#hotelCarousel h1 {
  text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.3);
  animation: fadeInUp 0.8s ease-out;
}

#hotelCarousel p {
  text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.3);
  animation: fadeInUp 1s ease-out;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

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

/* ================= BUTTONS ================= */
.btn {
  transition: all 0.3s ease;
  border-radius: 8px;
  /* Slightly rounded */
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-size: 0.9rem;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Custom Gold Outline Button */
.btn-outline-gold {
  color: var(--gold);
  border: 1px solid var(--gold);
  background-color: transparent;
}

.btn-outline-gold:hover {
  background-color: var(--gold);
  color: var(--royal-blue);
  /* High contrast on hover */
  border-color: var(--gold);
}


.btn-warning {
  background: var(--gold);
  border: 1px solid var(--gold);
  color: white;
}

.btn-warning:hover {
  background-color: #b08d4a;
  /* Slightly darker gold */
  border-color: #b08d4a;
  color: white;
}

.btn-primary {
  background-color: var(--royal-blue);
  border-color: var(--royal-blue);
  color: white;
}

.btn-primary:hover {
  background-color: #0a1222;
  /* Darker royal blue */
  border-color: #0a1222;
}

.btn-outline-primary {
  color: var(--royal-blue);
  border-color: var(--royal-blue);
}

.btn-outline-primary:hover {
  background-color: var(--royal-blue);
  color: white;
}

/* Custom Text Utility */
.text-royal-blue {
  color: var(--royal-blue) !important;
}

/* ================= CARDS ================= */
.card {
  border: none;
  border-radius: 12px;
  transition: all 0.3s ease;
  overflow: hidden;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.card-img-top {
  transition: transform 0.3s ease;
  height: 250px;
  object-fit: cover;
}

.card:hover .card-img-top {
  transform: scale(1.05);
}

/* ================= ROOMS CAROUSEL ARROWS ================= */

/* Base arrow style */
.rooms-arrow {
  width: 44px;
  height: 44px;
  top: 50%;
  transform: translateY(-50%);
  border-radius: 50%;
  opacity: 0.9;
  z-index: 2;
}

/* ---------- DESKTOP & TABLET ---------- */
@media (min-width: 768px) {
  .rooms-arrow {
    background-color: rgba(108, 117, 125, 0.85);
    /* Bootstrap secondary */
  }

  .carousel-control-prev.rooms-arrow {
    left: -60px;
  }

  .carousel-control-next.rooms-arrow {
    right: -60px;
  }
}

/* ---------- MOBILE (MATCH HERO CAROUSEL) ---------- */
@media (max-width: 767px) {
  .rooms-arrow {
    background-color: transparent;
    width: 15%;
  }

  .carousel-control-prev.rooms-arrow {
    left: 0;
  }

  .carousel-control-next.rooms-arrow {
    right: 0;
  }
}

/* ================= iOS SCROLL & TOUCH FIX ================= */

/* Prevent rubber-band + fake refresh */
html,
body {
  height: 100%;
  overflow-x: hidden;
  overscroll-behavior-y: contain;
}

/* iOS-specific touch handling */
@supports (-webkit-touch-callout: none) {
  body {
    position: relative;
    touch-action: pan-y;
  }
}

/* Prevent carousel from hijacking vertical scroll */
.carousel {
  touch-action: pan-y;
}

/* ================= ABOUT SECTION ================= */

#about h2 {
  color: #2c3e50;
}

#aboutCarousel {
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
  border-radius: 16px !important;
}

.about-carousel-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
}

.about-carousel-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 0.3s ease;
}

#aboutCarousel:hover .about-carousel-wrapper img {
  transform: scale(1.02);
}

/* ================= ABOUT TEXT TYPOGRAPHY (FINAL) ================= */

.about-text {
  max-width: 40rem;
  /* ideal reading width */
  line-height: 1.75;
  color: #555;
}

/* Modern browsers: smoother wrapping */
@supports (text-wrap: pretty) {
  .about-text {
    text-wrap: pretty;
  }
}

/* Mobile fine-tuning */
@media (max-width: 576px) {
  .about-text {
    line-height: 1.7;
  }
}

/* ================= HIGHLIGHTS SECTION ================= */

.highlight-card {
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.highlight-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
  border-color: #667eea !important;
}

.highlight-icon {
  font-size: 3rem;
  transition: transform 0.3s ease;
}

.highlight-card:hover .highlight-icon {
  transform: scale(1.1);
}


/* ================= WHATSAPP FLOATING FAB ================= */

.whatsapp-fab {
  position: fixed;
  bottom: 1.25rem;
  right: 1.25rem;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background-color: #25D366;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
  z-index: 1050;
}

.whatsapp-fab img {
  width: 28px;
  height: 28px;
}

/* Slightly smaller on very small phones */
@media (max-width: 360px) {
  .whatsapp-fab {
    width: 48px;
    height: 48px;
  }
}

/* ================= FOOTER ================= */

.footer {
  background: linear-gradient(135deg, #0f1b33 0%, #203a60 100%);
  color: #fff;
  padding: 3rem 0 1.5rem;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
}

.footer-logo {
  height: 50px;
  filter: brightness(0) invert(1);
}

.footer-title {
  margin: 0;
  font-size: 1.4rem;
  font-weight: 600;
}

.footer-text {
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.6;
  max-width: 320px;
}

.footer-heading {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

.footer-links,
.footer-contact {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li,
.footer-contact li {
  margin-bottom: 0.75rem;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
}

.footer-links a:hover {
  color: #fff;
}

.footer-contact {
  color: rgba(255, 255, 255, 0.85);
}

/* MAP */
.footer-map {
  margin-top: 1rem;
  border-radius: 8px;
  overflow: hidden;
}

.footer-map iframe {
  width: 100%;
  height: 180px;
  border: 0;
  pointer-events: none;
}

/* FOOTER BOTTOM */
.footer-bottom {
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-bottom p {
  margin: 0;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.7);
}

.footer-social {
  display: flex;
  gap: 0.75rem;
}

.footer-social a {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

.footer-social a:hover {
  background: rgba(255, 255, 255, 0.25);
}

/* MOBILE FOOTER */
@media (max-width: 768px) {
  .footer {
    text-align: center;
    padding: 2.5rem 0 1.5rem;
  }

  .footer-brand {
    justify-content: center;
    flex-direction: column;
  }

  .footer-text {
    max-width: 100%;
    margin: auto;
  }

  .footer-bottom {
    flex-direction: column;
  }
}