/* Hotel Bhakti - Custom CSS3 Styling */
:root {
  --hb-dark-bg: #070d18;
  --hb-card-bg: #0d1728;
  --hb-card-inner: #111e34;
  --hb-border: #1e2d48;
  --hb-border-focus: #f59e0b;
  --hb-amber: #f59e0b;
  --hb-amber-hover: #d97706;
  --hb-amber-light: #fef3c7;
  --hb-text-primary: #ffffff;
  --hb-text-secondary: #cbd5e1;
  --hb-text-muted: #94a3b8;
  --hb-emerald: #10b981;
  /* Change this single value to safely adjust all card and box corner spaces across the website instantly */
  --hb-card-padding: 1.25rem;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: auto;
}

body {
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  background-color: var(--hb-dark-bg);
  color: #f1f5f9;
  line-height: 1.6;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6, .brand-title {
  font-family: 'Outfit', sans-serif;
  letter-spacing: -0.015em;
  color: #ffffff !important;
}

p {
  color: #cbd5e1;
  line-height: 1.65;
}

/* Global High-Visibility Text Overrides */
.text-secondary {
  color: #cbd5e1 !important;
}

.text-muted {
  color: #94a3b8 !important;
}

/* Universal Icon-to-Text Spacing */
.bi {
  margin-right: 0.5rem !important;
  display: inline-block;
  vertical-align: -0.12em;
}

/* Keep right margin 0 only when explicitly intended or trailing */
.bi.me-0,
.navbar-toggler-icon,
.btn-close,
.gallery-overlay .bi,
.rating-stars-interactive .bi {
  margin-right: 0 !important;
}

.bi.ms-1,
.bi.ms-2,
.bi.ms-3 {
  margin-right: 0 !important;
  margin-left: 0.5rem !important;
}

/* Spacing and gap utility enhancements */
.gap-1 { gap: 0.25rem !important; }
.gap-1\.5 { gap: 0.5rem !important; }
.gap-2 { gap: 0.65rem !important; }
.gap-2\.5 { gap: 0.85rem !important; }
.gap-3 { gap: 1rem !important; }
.gap-4 { gap: 1.5rem !important; }

.mb-1\.5 { margin-bottom: 0.5rem !important; }
.mb-2\.5 { margin-bottom: 0.75rem !important; }
.mb-3\.5 { margin-bottom: 1.15rem !important; }

/* Filter pills & buttons wrapping spacing */
.btn-dark-pill {
  margin: 4px 4px !important;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
}

/* Quick Inquiry form inputs and button spacing */
#footerInquiryForm input.form-control {
  margin-bottom: 0.75rem !important;
}
#footerInquiryForm button {
  margin-top: 0.35rem !important;
}

/* Flex items with gap should maintain gap cleanly */
.d-flex.gap-2 > .bi,
.d-flex.gap-2\.5 > .bi,
.d-flex.gap-3 > .bi,
.d-inline-flex.gap-2 > .bi,
.d-inline-flex.gap-2\.5 > .bi,
.d-inline-flex.gap-3 > .bi {
  margin-right: 0 !important;
}

/* Lucide React icons spacing when directly next to inline text */
button > svg.lucide,
a > svg.lucide,
label > svg.lucide,
span > svg.lucide {
  margin-right: 0.45rem;
  display: inline-block;
  vertical-align: -0.15em;
}

.flex > svg.lucide,
.inline-flex > svg.lucide {
  margin-right: 0;
}

small, .small {
  font-size: 0.85rem !important;
  line-height: 1.5;
}

.form-label, label {
  color: #e2e8f0 !important;
  font-weight: 600;
  font-size: 0.85rem;
}

::selection {
  background-color: var(--hb-amber);
  color: #0b1120;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: #070d18;
}
::-webkit-scrollbar-thumb {
  background: #1e2d48;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #f59e0b;
}

/* Navbar Styling */
.navbar-bhakti {
  background-color: rgba(7, 13, 24, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--hb-border);
  transition: all 0.3s ease;
  padding: 0.5rem 0;
}

.navbar-bhakti.scrolled {
  background-color: rgba(5, 9, 17, 0.98);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  border-bottom-color: rgba(245, 158, 11, 0.2);
}

.navbar-logo-large {
  height: 52px;
  width: auto;
  max-width: 260px;
  object-fit: contain;
  border-radius: 6px;
  border: 1.5px solid #f59e0b;
  box-shadow: 0 0 16px rgba(245, 158, 11, 0.35);
  background-color: #0c0f14;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.navbar-logo-large:hover {
  transform: scale(1.02);
  box-shadow: 0 0 24px rgba(245, 158, 11, 0.45);
}

@media (max-width: 768px) {
  .navbar-logo-large {
    height: 42px;
    max-width: 190px;
  }
}

.brand-badge {
  width: 38px;
  height: 38px;
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: #0b1120;
  font-weight: 800;
  font-size: 1.1rem;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(245, 158, 11, 0.3);
}

.nav-link-custom {
  color: #cbd5e1 !important;
  font-size: 0.875rem;
  font-weight: 500;
  padding: 0.5rem 0.85rem !important;
  border-radius: 8px;
  transition: all 0.2s ease;
}

.nav-link-custom:hover {
  color: var(--hb-amber) !important;
  background-color: rgba(245, 158, 11, 0.08);
}

/* Badge Glow & Styling */
.badge-amber-glow {
  background-color: rgba(245, 158, 11, 0.15);
  color: #fcd34d;
  border: 1px solid rgba(245, 158, 11, 0.35);
  font-weight: 600;
  padding: 0.35rem 0.75rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.badge-emerald-soft {
  background-color: rgba(16, 185, 129, 0.15);
  color: #6ee7b7;
  border: 1px solid rgba(16, 185, 129, 0.3);
  font-size: 0.75rem;
  font-weight: 600;
  border-radius: 6px;
  padding: 0.25rem 0.6rem;
}

/* Cards & Containers */
.hb-card {
  background-color: var(--hb-card-bg);
  border: 1px solid var(--hb-border);
  border-radius: 16px;
  overflow: hidden;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
  padding: var(--hb-card-padding) !important; /* Connected to central card padding */
}

.hb-card:hover {
  border-color: rgba(245, 158, 11, 0.4);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.45);
}

.hb-card-inner {
  background-color: var(--hb-card-inner);
  border: 1px solid var(--hb-border);
  border-radius: 12px;
  padding: var(--hb-card-padding) !important; /* Connected to central card padding */
}

/* Hero Section */
.hero-section {
  position: relative;
  padding-top: 120px;
  padding-bottom: 70px;
  overflow: hidden;
  background: radial-gradient(circle at 50% 20%, rgba(245, 158, 11, 0.08) 0%, transparent 60%);
}

.hero-image-frame {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid var(--hb-border);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6);
}

.hero-image-frame img {
  width: 100%;
  height: 440px;
  object-fit: cover;
  transition: transform 0.5s ease;
}

/* Booking Search Bar */
.booking-search-bar {
  background: rgba(13, 23, 40, 0.95);
  border: 1px solid rgba(245, 158, 11, 0.3);
  border-radius: 18px;
  padding: var(--hb-card-padding) !important; /* Connected to central card padding */
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5), 0 0 25px rgba(245, 158, 11, 0.1);
}

.search-field-box {
  background-color: #070d18;
  border: 1px solid var(--hb-border);
  border-radius: 10px;
  padding: 0.6rem 0.85rem;
  transition: border-color 0.2s ease;
}

.search-field-box:focus-within {
  border-color: var(--hb-amber);
}

.search-field-box label {
  display: block;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 700;
  color: #cbd5e1;
  margin-bottom: 3px;
}

.search-field-box input,
.search-field-box select {
  background: transparent;
  border: none;
  color: #ffffff;
  font-size: 0.95rem;
  font-weight: 600;
  width: 100%;
  padding: 0;
  outline: none;
}

.search-field-box select option {
  background-color: #0d1728;
  color: #ffffff;
}

/* Buttons */
.btn-amber-primary {
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: #0b1120 !important;
  font-weight: 700;
  border: none;
  border-radius: 12px;
  padding: 0.7rem 1.5rem;
  font-size: 0.9rem;
  box-shadow: 0 4px 15px rgba(245, 158, 11, 0.3);
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.btn-amber-primary:hover {
  background: linear-gradient(135deg, #fbbf24, #f59e0b);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(245, 158, 11, 0.4);
}

.btn-outline-amber {
  background: transparent;
  border: 1px solid rgba(245, 158, 11, 0.6);
  color: #fcd34d !important;
  font-weight: 600;
  border-radius: 10px;
  padding: 0.55rem 1.1rem;
  font-size: 0.875rem;
  transition: all 0.2s ease;
}

.btn-outline-amber:hover {
  background: rgba(245, 158, 11, 0.15);
  border-color: #f59e0b;
}

.btn-dark-pill {
  background-color: #111e34;
  border: 1px solid #223555;
  color: #e2e8f0;
  font-weight: 600;
  font-size: 0.875rem;
  border-radius: 9999px;
  padding: 0.45rem 1.1rem;
  transition: all 0.2s ease;
}

.btn-dark-pill:hover,
.btn-dark-pill.active {
  background-color: var(--hb-amber);
  color: #0b1120 !important;
  border-color: var(--hb-amber);
  font-weight: 700;
}

/* Gallery Grid & Lightbox */
.gallery-item {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  height: 250px;
  cursor: pointer;
  border: 1px solid var(--hb-border);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.gallery-item:hover img {
  transform: scale(1.06);
}

.gallery-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(7, 13, 24, 0.9) 0%, rgba(7, 13, 24, 0.2) 60%, transparent 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1rem;
  transition: opacity 0.2s ease;
}

/* Reviews Progress Bar */
.rating-progress-bar {
  background-color: #1a2742;
  height: 8px;
  border-radius: 9999px;
  overflow: hidden;
}

.rating-progress-fill {
  background-color: var(--hb-amber);
  height: 100%;
  border-radius: 9999px;
}

/* Quick Badges - High Visibility */
.hero-feature-badge {
  display: inline-flex;
  align-items: center;
  background-color: #0f1c32 !important;
  color: #ffffff !important;
  border: 1px solid #223758 !important;
  padding: 0.45rem 0.85rem;
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: 600;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.35);
}

.hero-feature-badge span {
  color: #ffffff !important;
  font-weight: 600;
}

/* Real Map View Wrapper */
.real-map-wrapper {
  position: relative;
  background: #070d18;
  border: 1px solid var(--hb-border);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

.real-map-wrapper iframe {
  display: block;
  width: 100%;
  border: 0;
}

/* Map Simulation Canvas */
.map-canvas-container {
  position: relative;
  height: 280px;
  background: #081122 radial-gradient(#d97706 1px, transparent 1px);
  background-size: 20px 20px;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--hb-border);
  display: flex;
  align-items: center;
  justify-content: center;
}

.pin-bounce {
  animation: mapPinBounce 2s infinite ease-in-out;
}

@keyframes mapPinBounce {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

/* Floating Action Bar */
.floating-action-bar {
  position: fixed;
  bottom: 1.25rem;
  right: 1.25rem;
  z-index: 1040;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

@media (max-width: 576px) {
  .floating-action-bar {
    left: 1rem;
    right: 1rem;
    bottom: 1rem;
  }
}

/* Modals */
.modal-content-bhakti {
  background-color: #0c1527;
  border: 1px solid #1e2d48;
  border-radius: 20px;
  color: #f8fafc;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.7);
  padding: var(--hb-card-padding) !important; /* Connected to central card padding */
}

.modal-header-bhakti {
  background-color: #070e1b;
  border-bottom: 1px solid #1e2d48;
  padding: 1.25rem 1.5rem;
}

.modal-body-bhakti {
  padding: 1.5rem;
}

.form-control-bhakti {
  background-color: #070d18;
  border: 1px solid #223758;
  color: #ffffff;
  border-radius: 10px;
  padding: 0.7rem 1rem;
  font-size: 0.95rem;
  font-weight: 500;
}

.form-control-bhakti::placeholder {
  color: #94a3b8;
  opacity: 1;
}

.form-control-bhakti:focus {
  background-color: #070d18;
  border-color: #f59e0b;
  color: #ffffff;
  box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.2);
}

/* Accordion High Visibility */
.accordion-item {
  background-color: #0c1626;
  border: 1px solid var(--hb-border) !important;
  border-radius: 12px !important;
  overflow: hidden;
  margin-bottom: 0.75rem;
}

.accordion-button {
  background-color: #0c1626 !important;
  color: #ffffff !important;
  font-weight: 600;
  font-size: 0.95rem;
}

.accordion-button:not(.collapsed) {
  background-color: #112038 !important;
  color: #fcd34d !important;
  box-shadow: none;
}

.accordion-button::after {
  filter: invert(1) brightness(1.5);
}

.accordion-body {
  background-color: #0c1626;
  color: #cbd5e1 !important;
  font-size: 0.9rem;
  line-height: 1.65;
  padding: var(--hb-card-padding) !important; /* Connected to central card padding */
}

/* Review text & quotes */
.review-quote {
  color: #e2e8f0 !important;
  font-size: 0.92rem;
  line-height: 1.65;
}

/* Feature item text in cards */
.hb-card ul li {
  color: #e2e8f0 !important;
  font-size: 0.875rem;
}

/* Toast Notification System */
.toast-notification-container {
  position: fixed;
  top: 78px;
  right: 20px;
  z-index: 999999;
  display: flex;
  flex-direction: column;
  gap: 10px;
  pointer-events: none;
  max-width: 400px;
  width: calc(100% - 32px);
}

.hb-toast {
  pointer-events: auto;
  background: #0b1528;
  border: 1px solid rgba(245, 158, 11, 0.35);
  border-left: 4px solid #f59e0b;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.75), 0 0 15px rgba(245, 158, 11, 0.15);
  border-radius: 10px;
  padding: 14px 16px;
  color: #ffffff;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  transform: translateX(120%);
  opacity: 0;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.35s ease;
  position: relative;
  overflow: hidden;
}

.hb-toast.show {
  transform: translateX(0);
  opacity: 1;
}

.hb-toast-success {
  border-left-color: #10b981;
}

.hb-toast-success .toast-icon {
  color: #10b981;
}

.hb-toast-info {
  border-left-color: #f59e0b;
}

.hb-toast-info .toast-icon {
  color: #f59e0b;
}

.hb-toast-warning {
  border-left-color: #f97316;
}

.hb-toast-warning .toast-icon {
  color: #f97316;
}

.hb-toast-content {
  flex-grow: 1;
}

.hb-toast-title {
  font-size: 0.92rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 2px;
}

.hb-toast-message {
  font-size: 0.82rem;
  color: #cbd5e1;
  line-height: 1.45;
  margin: 0;
}

.hb-toast-close {
  background: transparent;
  border: none;
  color: #94a3b8;
  font-size: 1.1rem;
  cursor: pointer;
  padding: 0;
  margin-left: 6px;
  line-height: 1;
}

.hb-toast-close:hover {
  color: #ffffff;
}

.hb-toast-progress {
  position: absolute;
  bottom: 0;
  left: 0;
  height: 3px;
  background: linear-gradient(to right, #f59e0b, #10b981);
  width: 100%;
}

/* Navbar View Switcher (Separate Section vs All Sections) */
.btn-view-mode {
  font-size: 0.75rem;
  font-weight: 600;
  color: #94a3b8;
  padding: 4px 10px;
  border-radius: 9999px;
  border: none;
  background: transparent;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.btn-view-mode:hover {
  color: #ffffff;
}

.btn-view-mode.active {
  background-color: #f59e0b;
  color: #070d18 !important;
  box-shadow: 0 2px 8px rgba(245, 158, 11, 0.4);
}

/* Active section highlight in navbar */
.nav-link-custom.active {
  color: #f59e0b !important;
  font-weight: 700;
  position: relative;
  background-color: rgba(245, 158, 11, 0.12);
}

.nav-link-custom.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 24px;
  height: 2.5px;
  background-color: #f59e0b;
  border-radius: 2px;
  box-shadow: 0 0 8px rgba(245, 158, 11, 0.8);
}

/* Multi-Page Architecture with Shared Navigation Bar & Independent Detail Views */
html {
  scroll-behavior: auto;
}

main > section {
  display: none !important;
  position: relative;
  min-height: calc(100vh - 120px);
  padding-top: 120px !important;
  padding-bottom: 75px !important;
}

/* Explicit high-specificity IDs to completely prevent Bootstrap py-5 from overriding padding-top */
#hero,
#about,
#rooms,
#amenities,
#gallery,
#reviews,
#location,
main > section.py-5,
section.detail-page-section {
  padding-top: 120px !important;
  padding-bottom: 75px !important;
}

main > section.active {
  display: block !important;
  animation: pageViewEnter 0.22s ease-out forwards;
}

@keyframes pageViewEnter {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-section {
  padding-top: 115px !important;
  padding-bottom: 60px !important;
}

.page-detail-header {
  margin-top: 0.75rem !important;
  margin-bottom: 2rem !important;
  padding: 0;
  background: transparent;
  border: none;
}

/* Payment Option Cards in Direct Booking Modal (Identical Dark Background Color) */
.payment-method-card,
#payMethodHotel,
#payMethodUpi {
  background-color: #0d1728 !important;
  border: 1.5px solid #1e2d48 !important;
  border-radius: 10px;
  padding: var(--hb-card-padding) !important; /* Connected to central card padding */
  cursor: pointer;
  transition: all 0.2s ease;
  position: relative;
}

.payment-method-card:hover,
#payMethodHotel:hover,
#payMethodUpi:hover {
  border-color: rgba(245, 158, 11, 0.4) !important;
  background-color: #111e34 !important;
}

.payment-method-card.active-payment,
.payment-method-card.border-warning,
#payMethodHotel.active-payment,
#payMethodUpi.active-payment,
#payMethodHotel.border-warning,
#payMethodUpi.border-warning {
  background-color: #0d1728 !important;
  border: 2px solid #f59e0b !important;
  box-shadow: 0 0 0 1px rgba(245, 158, 11, 0.3), 0 4px 12px rgba(0, 0, 0, 0.4) !important;
}

/* Hard override against Bootstrap light bg-warning-subtle */
.bg-warning-subtle,
#payMethodHotel.bg-warning-subtle,
#payMethodUpi.bg-warning-subtle {
  background-color: #0d1728 !important;
  color: inherit !important;
}

.breadcrumb-item + .breadcrumb-item::before {
  color: #64748b;
  content: "/";
}

/* Subtle focus flash when jumping to a section from navbar or directory */
.section-focused-glow {
  animation: sectionGlowPulse 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes sectionGlowPulse {
  0% {
    box-shadow: inset 0 0 0 2px rgba(245, 158, 11, 0.7), 0 0 24px rgba(245, 158, 11, 0.2);
  }
  100% {
    box-shadow: inset 0 0 0 0 transparent, 0 0 0 transparent;
  }
}

/* Print Voucher */
@media print {
  body * {
    visibility: hidden;
  }
  #printableVoucher, #printableVoucher * {
    visibility: visible;
  }
  #printableVoucher {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    color: #000 !important;
    background: #fff !important;
  }
}