html {
  scroll-behavior: smooth;
}

:root {
  --primary-color: #ad8b3a;
}

::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: #cfcfcf;
  border-radius: 6px;
}

::-webkit-scrollbar-thumb:hover {
  background: #a8a8a8;
}

/* Browser autoselct theme off  */
input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus {
  -webkit-box-shadow: 0 0 0px 1000px transparent inset !important;
  box-shadow: 0 0 0px 1000px transparent inset !important;
  -webkit-text-fill-color: #1f2937 !important;
  transition: background-color 5000s ease-in-out 0s;
}
a {
  cursor: pointer;
}

input[type="date"] {
  appearance: auto !important;
  -webkit-appearance: auto !important;
  display: block;
}

input[type="date"]::-webkit-calendar-picker-indicator {
  opacity: 1;
  display: block;
  cursor: pointer;
}

.scrollbar-none::-webkit-scrollbar {
  display: none;
}

body {
  font-family: "Inter", sans-serif;
  margin: 0;
  padding: 0;
}

h2,
h1,
.logo-text,
.font-cinzel {
  font-family: "Cinzel", serif;
}

.nav-scrolled {
  background-color: white !important;
  border-bottom: 1px solid #e5e7eb !important;
}

.nav-unscrolled {
  background: linear-gradient(
    180deg,
    rgb(0 0 0 / 20%) 0%,
    rgba(95, 95, 95, 0) 100%
  );
  border-bottom: 1px solid none;
}

.text-primary {
  color: var(--primary-color) !important;
}

.bg-primary {
  background-color: var(--primary-color);
}

#mobile-menu {
  transition: transform 0.4s ease-in-out;
  transform: translateY(-100%);
}

#mobile-menu.active {
  transform: translateY(0);
}

.text-premium {
  color: #45443f;
}

/* Date select */
.date-range-selected {
  background-color: var(--primary-color) !important;
  color: white !important;
}

.date-in-range {
  background-color: #f3f0e7 !important;
}

.calendar-day:hover {
  border: 1px solid var(--primary-color);
}

#calendar-left,
#calendar-right {
  min-height: 200px;
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  align-content: start;
}

.calendar-day {
  height: 40px;
  display: flex;
  font-size: small;
  align-items: center;
  justify-content: center;
}

/* Layout Plan */
.left-shadow {
  position: absolute;
  left: 0px;
  top: 0px;
  display: flex;
  -webkit-box-align: center;
  align-items: center;
  -webkit-box-pack: start;
  justify-content: flex-start;
  height: 100%;
  width: 56px;
  z-index: 10;
  background: linear-gradient(
    90deg,
    rgb(255, 255, 255) 0%,
    rgba(255, 255, 255, 0) 100%
  );
}

.right-shadow {
  position: absolute;
  right: 0px;
  top: 0px;
  display: flex;
  -webkit-box-align: center;
  align-items: center;
  -webkit-box-pack: end;
  justify-content: flex-end;
  height: 100%;
  width: 56px;
  z-index: 10;
  background: linear-gradient(
    270deg,
    rgb(255, 255, 255) 0%,
    rgba(255, 255, 255, 0) 100%
  );
}

section[id],
h1[id] {
  scroll-margin-top: 130px;
}

#rooms {
  scroll-margin-top: 140px;
}

#reviews,
#general-sm {
  scroll-margin-top: 200px;
}

#about-section,
#hotel-information,
#facilities,
#location-directions,
#faq {
  scroll-margin-top: 60px;
}

.room-details-container[id] {
  scroll-margin-top: 210px;
}

@media (max-width: 768px) {
  .left-shadow,
  .right-shadow {
    display: none;
  }

  .left-shadow {
    right: 0px;
  }
}

.btn {
  padding-top: 0.625rem;
  padding-bottom: 0.625rem;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
  font-size: 0.875rem;
  line-height: 1.25rem;
  font-weight: 700;
  text-align: center;
  color: #ffffff;
  transition-property:
    color, background-color, border-color, text-decoration-color, fill, stroke;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
  transition-duration: 300ms;
  background: var(--primary-color);
}

.btn:hover {
  background-color: rgb(142 114 48 / var(--tw-bg-opacity, 1));
}

.slide-in {
  transform: translateX(100%);
}

.slide-active {
  transform: translateX(0);
  transition: transform 0.2s ease;
}

#slider-track div {
  min-width: 100%;
  height: 100%;
}

#slider-track img {
  object-fit: cover;
  width: 100%;
  height: 100%;
  display: block;
}

/* Start Image Gallery Modal */
.modal-slide-img {
  user-select: none;
  -webkit-user-drag: none;
}

.img-slide {
  flex: 0 0 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
}

#sliderImageTrack {
  display: flex;
  transition: transform 0.5s cubic-bezier(0.25, 1, 0.5, 1);
  will-change: transform;
}

/* End Image Gallery Modal */

.calendar-day {
  padding: 10px 0;
  border-radius: 6px;
}

.date-range-selected {
  background: #b08d45;
  color: white;
  border-radius: 6px;
}

.date-in-range {
  background: #f3f0e8;
}

.amenity {
  display: flex;
  gap: 10px;
  align-items: center;
  color: #9ca3af;
}

.amenity span {
  font-weight: 400;
  color: #374151;
}
.amenity img {
  width: 28px;
}

/* select Room */
.bg-layout-gray {
  background-color: #f3f3f3;
}

.roomCard {
  transition: all 0.2s ease-in-out;
}

.disabled-room {
  opacity: 0.2;
  cursor: not-allowed !important;
  pointer-events: none;
}

.booked-room {
  cursor: not-allowed !important;
  pointer-events: none;
}

.empty-slot {
  opacity: 0.3;
}

.pillar-room-size {
  width: 3.5rem;
  height: 2.42rem;
}

.room-size {
  width: 3.5rem;
  height: 3.5rem;
}

/* =========================
   Mobile Responsive Media Query
========================= */
@media only screen and (max-width: 480px) {
  .pillar-room-size {
    width: 2.5rem;
    height: 2.5rem;
  }

  .room-size {
    width: 2.5rem;
    height: 2.5rem;
  }
}
