:root {
  --circle-radius: 1.25rem;
}

/* ── UI/UX ENHANCEMENTS ── */
::selection {
  background: rgba(19, 127, 236, 0.15);
  color: #137fec;
}

/* Modern Minimalist Scrollbar */
::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: rgba(0, 0, 0, 0.08);
  border-radius: 20px;
  border: 3px solid transparent;
  background-clip: content-box;
}

.dark ::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.08);
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(19, 127, 236, 0.3);
  border: 3px solid transparent;
  background-clip: content-box;
}

/* Tactile Feedback */
button:active:not(.gallery-nav-btn),
.nav-link:active,
.location-card:active,
.amenity-card:active {
  transform: scale(0.97) !important;
  transition: transform 0.1s ease;
}

/* Focus States */
button:focus-visible,
a:focus-visible,
input:focus-visible {
  outline: 2px solid #137fec;
  outline-offset: 3px;
  box-shadow: 0 0 0 6px rgba(19, 127, 236, 0.18);
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -3rem;
  z-index: 200;
  padding: 0.75rem 1rem;
  border-radius: 9999px;
  background: #137fec;
  color: #fff;
  font-size: 0.875rem;
  font-weight: 700;
  box-shadow: 0 12px 30px rgba(19, 127, 236, 0.28);
  transition: top 0.2s ease;
}

.skip-link:focus-visible {
  top: 1rem;
  outline-color: #fff;
  box-shadow: 0 0 0 6px rgba(255, 255, 255, 0.18), 0 12px 30px rgba(19, 127, 236, 0.28);
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 100px;
}

body {
  font-family: 'Plus Jakarta Sans', sans-serif;
}

/* Amenity and Location cards */
.amenity-card,
.location-card,
.glass-card {
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 1);
  box-shadow: 0 10px 30px -5px rgba(0, 0, 0, 0.05),
    0 4px 10px -4px rgba(0, 0, 0, 0.05);
  transition: all 0.35s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.dark .amenity-card,
.dark .location-card,
.dark .glass-card {
  background: rgba(15, 23, 42, 0.45);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

/* Global Gradients */
html {
  background: linear-gradient(225deg, #ffffff 0%, #ffffff 32%, #eff6ff 62%, #dbeafe 100%) fixed !important;
  min-height: 100vh;
}

.dark {
  background: linear-gradient(135deg, #020617 0%, #071935 50%, #0c2b5c 100%) fixed !important;
}

body {
  background-color: transparent !important;
}

.amenity-card:hover,
.location-card:hover {
  transform: translateY(-5px);
  border-color: rgba(19, 127, 236, 0.35);
  box-shadow: 0 20px 48px rgba(19, 127, 236, 0.12);
}

/* Masonry */
.masonry {
  columns: 1;
  column-gap: 1rem;
}

@media(min-width:640px) {
  .masonry {
    columns: 2;
  }
}

@media(min-width:1024px) {
  .masonry {
    columns: 3;
  }
}

.masonry-item {
  break-inside: avoid;
  margin-bottom: 1rem;
}



/* Nav active */
.nav-link {
  position: relative;
  padding: 0.5rem 0;
  font-size: 0.95rem;
  border-radius: 0.5rem;
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  margin: 0 !important;
  white-space: nowrap;
}

.nav-link:hover {
  color: #137fec !important;
}

.nav-link.active {
  color: #137fec !important;
  font-weight: 700;
}

/* Booking modal */
#bookingModal {
  display: none;
}

#bookingModal.open {
  display: flex;
}

.no-scrollbar {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

/* Mobile Drawer */
#mobileDrawer {
  position: fixed;
  inset: 0;
  z-index: 100;
  visibility: hidden;
  transition: opacity 0.4s, visibility 0.4s;
}

#mobileDrawer.open {
  visibility: visible;
}

#mobileDrawer .drawer-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(4px);
  opacity: 0;
  transition: opacity 0.4s;
}

#mobileDrawer.open .drawer-overlay {
  opacity: 1;
}

#mobileDrawer .drawer-content {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(300px, 85vw);
  background: white;
  box-shadow: -10px 0 30px rgba(0, 0, 0, 0.1);
  transform: translateX(100%);
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
  display: flex;
  flex-direction: column;
  padding: 1.5rem;
}

.dark #mobileDrawer .drawer-content {
  background: #070e1e;
}

#mobileDrawer.open .drawer-content {
  transform: translateX(0);
}

.drawer-link {
  height: 48px;
  display: flex;
  align-items: center;
  padding: 0 1rem;
  border-radius: 0.75rem;
  font-weight: 600;
  transition: all 0.2s;
}

.drawer-link:active {
  background: rgba(19, 127, 236, 0.1);
  color: #137fec;
}

#mobileMenuBtn {
  min-height: 44px;
  min-width: 44px;
}

/* Scroll reveal */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .65s ease, transform .65s ease;
}

.reveal.visible {
  opacity: 1;
  transform: none;
}

/* Hero fade-in */
.hero-text {
  animation: fadeUp 0.8s 0.3s ease both;
}

/* Dark mode toggle */
#darkToggle {
  cursor: pointer;
}

/* Infinite Review Scroll */
.reviews-container {
  overflow: hidden;
  padding: 2rem 0;
  position: relative;
}

@keyframes scroll {
  0% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(calc(-50% - 0.75rem));
  }
}

.reviews-track {
  display: flex;
  gap: 1.5rem;
  width: max-content;
  animation: scroll 40s linear infinite;
}

.reviews-track:hover {
  animation-play-state: paused;
}

.review-card {
  width: 400px;
  flex-shrink: 0;
}

@media (max-width: 640px) {
  .review-card {
    width: 280px;
  }
}

/* Floating Navbar */
#header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  margin-left: auto;
  margin-right: auto;
  width: auto;
  border-radius: 0;
  transition: left 650ms cubic-bezier(0.22, 1, 0.36, 1),
    right 650ms cubic-bezier(0.22, 1, 0.36, 1),
    top 650ms cubic-bezier(0.22, 1, 0.36, 1),
    border-radius 650ms cubic-bezier(0.22, 1, 0.36, 1),
    background 500ms cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 650ms cubic-bezier(0.22, 1, 0.36, 1),
    border-color 500ms cubic-bezier(0.22, 1, 0.36, 1);
  background: rgba(255, 255, 255, 0.78);
}

.dark #header {
  background: rgba(2, 6, 23, 0.78);
}

.book-btn {
  white-space: nowrap;
  transition: all 650ms cubic-bezier(0.22, 1, 0.36, 1);
}

/* Adjust button padding when scrolled */
#header.scrolled .book-btn {
  padding-left: 1.25rem;
  padding-right: 1.25rem;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: nowrap;
  transition: padding 650ms cubic-bezier(0.22, 1, 0.36, 1);
}

@media (min-width: 1024px) {
  .header-inner {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
  }
}

#header nav {
  display: none;
}

@media (min-width: 1024px) {
  #header nav {
    display: flex;
    justify-content: center;
  }
}

#header.scrolled nav {
  gap: 1.5rem;
}

#header .actions-container {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 1rem;
}

#header.scrolled {
  left: max(0.75rem, calc(50% - 480px));
  right: max(0.75rem, calc(50% - 480px));
  width: auto;
  top: 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 20px 40px -12px rgba(0, 0, 0, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.6);
  overflow: hidden;
}

.dark #header.scrolled {
  background: rgba(15, 23, 42, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 20px 40px -12px rgba(0, 0, 0, 0.5);
}

#header.scrolled .header-inner {
  padding: 0.4rem 1rem;
  max-width: 100% !important;
  width: 100%;
}

/* Reset the side container widths in floating mode */
#header.scrolled .flex-1 {
  min-width: 0 !important;
}

@media (min-width: 1024px) {
  #header.scrolled .header-inner {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 1.5rem;
    align-items: center;
    padding: 0.5rem 1.5rem;
  }
}

/* No longer hiding elements in scrolled header */

#header.scrolled .logo-container {
  white-space: nowrap;
}

#header.scrolled .logo-icon {
  font-size: 1.15rem;
}

#header.scrolled .logo-text {
  font-size: 0.95rem;
}

@media (max-width: 480px) {

  #header.scrolled .logo-text,
  #header:not(.scrolled) .logo-text {
    display: none;
  }

  .actions-container {
    gap: 0.5rem !important;
  }
}

#header.scrolled .book-btn {
  height: 36px;
  font-size: 0.7rem;
  width: auto !important;
  min-width: 80px;
  padding: 0 1rem;
  border-radius: 999px;
  flex-shrink: 0;
}

#header.scrolled nav {
  gap: 1.5rem;
  justify-self: center;
}

#header.scrolled .actions-container {
  width: auto;
  justify-content: flex-end;
  padding: 0 !important;
  gap: 0.5rem;
}

/* Booking Platform Icons */
.booking-icons {
  display: flex;
  gap: 1.5rem;
  align-items: center;
  margin-top: 0.75rem;
}

.booking-link {
  display: flex;
  transition: transform 0.3s ease;
}

.booking-link img {
  width: 40px;
  height: 40px;
  object-fit: contain;
  border-radius: 8px;
  filter: grayscale(100%) brightness(0.5);
  transition: filter 0.3s ease;
}

.booking-link:hover {
  transform: scale(1.1);
}

.booking-link:hover img {
  filter: none;
}

/* ── Calendar Grid System ── */
.cal-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 0;
  row-gap: 8px;
}

@media (max-width: 400px) {
  :root {
    --circle-radius: 1.05rem;
  }

  .cal-grid {
    padding-left: 0.5rem !important;
    padding-right: 0.5rem !important;
  }
}

.cal-header-cell {
  text-align: center;
  font-size: 0.7rem;
  font-weight: 800;
  opacity: 0.4;
  text-transform: uppercase;
  padding: 8px 0;
  letter-spacing: 0.05em;
}

/* Band wrapper — creates Airbnb-style range band */
.cal-cell-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  position: relative;
}

.cal-cell-wrapper::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  transition: background 250ms ease;
}

.cal-cell-wrapper:has(> .cal-day:hover)::before {
  -webkit-mask-image: radial-gradient(circle at center, transparent var(--circle-radius), black calc(var(--circle-radius) + 0.5px));
  mask-image: radial-gradient(circle at center, transparent var(--circle-radius), black calc(var(--circle-radius) + 0.5px));
}

.cal-cell-wrapper.in-range::before {
  background: rgba(19, 127, 236, 0.12);
}

.cal-cell-wrapper.is-checkin::before {
  background: linear-gradient(to right, transparent 50%, rgba(19, 127, 236, 0.12) 50%);
}

.cal-cell-wrapper.is-checkout::before {
  background: linear-gradient(to left, transparent 50%, rgba(19, 127, 236, 0.12) 50%);
}

.cal-cell-wrapper.is-checkin.is-checkout::before {
  background: transparent !important;
}

.cal-cell-wrapper.in-hover::before {
  background: rgba(19, 127, 236, 0.06);
}

.cal-cell-wrapper.hover-start::before {
  background: linear-gradient(to right, transparent 50%, rgba(19, 127, 236, 0.06) 50%);
}

.cal-cell-wrapper.hover-end::before {
  background: linear-gradient(to left, transparent 50%, rgba(19, 127, 236, 0.06) 50%);
}

/* Overrides for bidirectional hover when a checkin date is already selected */
.cal-cell-wrapper.is-checkin.hover-start::before {
  background: linear-gradient(to right, transparent 50%, rgba(19, 127, 236, 0.06) 50%) !important;
}

.cal-cell-wrapper.is-checkin.hover-end::before {
  background: linear-gradient(to left, transparent 50%, rgba(19, 127, 236, 0.06) 50%) !important;
}

/* The actual day circle */
.cal-day {
  width: 2.5rem;
  height: 2.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  font-size: 0.875rem;
  font-weight: 600;
  color: #1e293b;
  /* slate-800 — always visible in light mode */
  transition: all 250ms cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
  position: relative;
  z-index: 2;
  user-select: none;
}

.dark .cal-day {
  color: #e2e8f0;
  /* slate-200 — always visible in dark mode */
}

@media (max-width: 400px) {
  .cal-day {
    width: 2.1rem;
    height: 2.1rem;
    font-size: 0.75rem;
  }
}

.cal-day:hover:not(.is-past):not(.is-blocked) {
  background: rgba(19, 127, 236, 0.15);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  color: #137fec;
}

.dark .cal-day:hover:not(.is-past):not(.is-blocked) {
  background: rgba(19, 127, 236, 0.2);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  color: #137fec;
}

.cal-day.is-past {
  opacity: 0.2;
  cursor: not-allowed;
  pointer-events: none;
}

.cal-day.is-blocked {
  opacity: 0.35;
  cursor: not-allowed;
  pointer-events: none;
  background: repeating-linear-gradient(45deg, transparent, transparent 2px, rgba(0, 0, 0, 0.08) 2px, rgba(0, 0, 0, 0.08) 4px);
}

.dark .cal-day.is-blocked {
  background: repeating-linear-gradient(45deg, transparent, transparent 2px, rgba(255, 255, 255, 0.06) 2px, rgba(255, 255, 255, 0.06) 4px);
}

.cal-day.is-blocked-checkout {
  cursor: pointer;
  position: relative;
  font-weight: 400;
  color: #ef4444;
}

.cal-day.is-blocked-checkout::after {
  content: 'logout';
  font-family: 'Material Symbols Rounded';
  font-size: 10px;
  position: absolute;
  top: 4px;
  right: 4px;
  opacity: 0.6;
}

.cal-day.is-today {
  color: #137fec;
  font-weight: 800;
  box-shadow: inset 0 0 0 2px #137fec;
}

.cal-day.is-checkin,
.cal-day.is-checkout {
  background: #137fec !important;
  color: white !important;
  font-weight: 800;
  box-shadow: 0 8px 16px rgba(19, 127, 236, 0.4);
}

.cal-day.in-range {
  color: #137fec;
  font-weight: 700;
}

.cal-day.in-hover {
  color: #137fec;
  opacity: 0.7;
}

/* ── Animations ── */
@keyframes calPop {
  0% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.15);
  }

  100% {
    transform: scale(1);
  }
}

.cal-pop {
  animation: calPop 300ms ease-out forwards;
}

@keyframes themePop {
  0% {
    transform: scale(1) rotate(0deg);
  }

  50% {
    transform: scale(0.7) rotate(180deg);
  }

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

.theme-animate {
  animation: themePop 400ms cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes calShake {

  0%,
  100% {
    transform: translateX(0);
  }

  20% {
    transform: translateX(-6px);
  }

  40% {
    transform: translateX(6px);
  }

  60% {
    transform: translateX(-4px);
  }

  80% {
    transform: translateX(4px);
  }
}

.cal-shake {
  animation: calShake 400ms ease-in-out;
}

@keyframes calPop {
  0% {
    transform: scale(1);
  }

  40% {
    transform: scale(1.15);
  }

  100% {
    transform: scale(1);
  }
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(6px);
  }

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

@keyframes countUp {
  from {
    opacity: 0.3;
  }

  to {
    opacity: 1;
  }
}

@keyframes glowPulse {

  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(19, 127, 236, 0);
  }

  50% {
    box-shadow: 0 0 0 8px rgba(19, 127, 236, 0.25);
  }
}

.cal-shake {
  animation: calShake 400ms ease;
}

.cal-pop {
  animation: calPop 200ms ease;
}

.whatsapp-active {
  animation: glowPulse 2.5s ease-in-out infinite;
}

#calendar-grid {
  transition: opacity 250ms ease, transform 250ms ease;
}

.gallery-card {
  scroll-snap-stop: always;
}

.rating-stars {
  display: inline-flex;
  align-items: center;
  gap: 0.18rem;
  line-height: 1;
}

.rating-star {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1rem;
  height: 1rem;
  line-height: 1;
  color: rgba(148, 163, 184, 0.34);
}

.rating-star::before {
  content: "\2605";
  font-size: 1rem;
  font-weight: 700;
  line-height: 1;
  color: currentColor;
}

.rating-star.is-full {
  color: #137fec;
  filter: drop-shadow(0 3px 8px rgba(19, 127, 236, 0.22));
}

.rating-star.is-half::before {
  background: linear-gradient(to right, #137fec 50%, rgba(148, 163, 184, 0.34) 50%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 3px 8px rgba(19, 127, 236, 0.16));
}

.gallery-nav-btn {
  position: absolute;
  top: 50%;
  z-index: 10;
  display: inline-grid;
  place-items: center;
  width: 3.25rem;
  height: 3.25rem;
  border-radius: 9999px;
  border: 1px solid rgba(255, 255, 255, 0.58);
  background: rgba(255, 255, 255, 0.58);
  color: rgba(15, 23, 42, 0.92);
  backdrop-filter: blur(22px) saturate(160%);
  box-shadow:
    0 14px 30px rgba(15, 23, 42, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.45);
  opacity: 0.88;
  transform: translateY(-50%);
  transition:
    transform 220ms cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 220ms ease,
    background-color 220ms ease,
    border-color 220ms ease,
    color 220ms ease,
    opacity 220ms ease;
}

.gallery-nav-btn::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 9999px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  opacity: 0;
  transition: opacity 220ms ease, border-color 220ms ease;
}

.gallery-nav-btn:hover:not(:disabled),
.gallery-nav-btn:focus-visible:not(:disabled) {
  color: #ffffff;
  border-color: rgba(11, 94, 194, 0.72);
  background-color: #137fec;
  box-shadow:
    0 18px 36px rgba(19, 127, 236, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.18);
  transform: translateY(-50%) scale(1.03);
  opacity: 1;
}

.gallery-nav-btn:hover:not(:disabled)::before,
.gallery-nav-btn:focus-visible:not(:disabled)::before {
  opacity: 1;
  border-color: rgba(255, 255, 255, 0.24);
}

.gallery-nav-btn:disabled {
  opacity: 0.3;
  cursor: not-allowed;
  box-shadow:
    0 10px 20px rgba(15, 23, 42, 0.06),
    inset 0 1px 0 rgba(255, 255, 255, 0.32);
}

.gallery-nav-btn:disabled::before {
  opacity: 0;
}

.gallery-nav-icon {
  position: relative;
  z-index: 1;
  font-size: 1.45rem;
  line-height: 1;
  width: 1.45rem;
  height: 1.45rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 220ms cubic-bezier(0.22, 1, 0.36, 1);
}

.gallery-nav-btn:hover:not(:disabled) .gallery-nav-icon,
.gallery-nav-btn:focus-visible:not(:disabled) .gallery-nav-icon {
  transform: scale(1.08);
}

@media (min-width: 768px) {

  .group:hover .gallery-nav-btn,
  .group:focus-within .gallery-nav-btn {
    opacity: 1;
  }

  .gallery-nav-btn {
    opacity: 0.62;
  }
}
