/*
 * This is a manifest file that'll be compiled into application.css.
 */

/* Nav scroll-state transition — driven by data-scrolled attribute set by navbar_controller.js */
[data-controller="navbar"] {
  transition: background-color 0.35s ease, border-color 0.35s ease, backdrop-filter 0.35s ease;
}

[data-controller="navbar"][data-scrolled="true"] {
  background-color: rgba(10, 10, 10, 0.92);
  border-bottom: 1px solid #2A2A2A;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

/* Scrollbar */
::-webkit-scrollbar       { width: 5px; }
::-webkit-scrollbar-track { background: #0a0a0a; }
::-webkit-scrollbar-thumb { background: #2A2A2A; border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: #C9A84C; }

/* Text selection */
::selection { background: rgba(201, 168, 76, 0.25); color: #F0EDE6; }

/* Gold shimmer — used on the packages price display */
.price-shimmer {
  background-image: linear-gradient(90deg, #C9A84C 0%, #E8D5A3 30%, #F0EDE6 50%, #E8D5A3 70%, #C9A84C 100%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: shimmer 4s linear infinite;
}

/* Flatpickr calendar — hand-written, themed to match the site's black/gold
   aesthetic. No flatpickr CSS file is imported: Flatpickr does NOT set its
   own layout (position/display/flex sizing) via inline JS styles — that only
   comes from its own stylesheet — so the *structural* rules below (not just
   colors) are required for the calendar to render as a positioned popover
   instead of a full-width block in the document flow. Trimmed to what this
   controller actually uses: mode "range", no time picker, no week numbers,
   single month. */
.flatpickr-calendar {
  background: #141414;
  opacity: 0;
  display: none;
  text-align: center;
  visibility: hidden;
  padding: 0;
  animation: none;
  border: 1px solid #2A2A2A;
  font-size: 14px;
  line-height: 24px;
  border-radius: 0;
  position: absolute;
  width: 307.875px;
  box-sizing: border-box;
  touch-action: manipulation;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
  font-family: "DM Mono", ui-monospace, monospace;
}

.flatpickr-calendar.open,
.flatpickr-calendar.inline {
  opacity: 1;
  max-height: 640px;
  visibility: visible;
}

.flatpickr-calendar.open {
  display: inline-block;
  z-index: 99999;
}

.flatpickr-calendar:before,
.flatpickr-calendar:after {
  display: none;
}

.flatpickr-wrapper {
  position: relative;
  display: inline-block;
}

.flatpickr-months {
  display: flex;
  background: #141414;
  border-bottom: 1px solid #2A2A2A;
}

.flatpickr-month {
  color: #F0EDE6;
  fill: #F0EDE6;
  height: 34px;
  line-height: 1;
  text-align: center;
  position: relative;
  user-select: none;
  overflow: hidden;
  flex: 1;
}

.flatpickr-prev-month,
.flatpickr-next-month {
  text-decoration: none;
  cursor: pointer;
  position: absolute;
  top: 0;
  height: 34px;
  padding: 10px;
  z-index: 3;
  color: #C9A84C;
  fill: #C9A84C;
}

.flatpickr-prev-month.flatpickr-prev-month { left: 0; }
.flatpickr-next-month.flatpickr-next-month { right: 0; }

.flatpickr-prev-month svg,
.flatpickr-next-month svg {
  width: 14px;
  height: 14px;
  fill: #C9A84C;
}

.flatpickr-current-month {
  font-size: 135%;
  font-weight: 300;
  color: #F0EDE6;
  position: absolute;
  width: 75%;
  left: 12.5%;
  padding: 7.48px 0 0 0;
  line-height: 1;
  height: 34px;
  display: inline-block;
  text-align: center;
  transform: translate3d(0, 0, 0);
}

.flatpickr-current-month span.cur-month {
  font-weight: 700;
  color: inherit;
  display: inline-block;
  margin-left: 0.5ch;
  padding: 0;
}

.flatpickr-current-month .flatpickr-monthDropdown-months,
.flatpickr-current-month input.cur-year {
  background: transparent;
  color: #F0EDE6;
  border: 0;
  font-size: inherit;
  font-family: inherit;
}

.flatpickr-current-month .flatpickr-monthDropdown-months option {
  background: #141414;
  color: #F0EDE6;
}

.flatpickr-weekdays {
  background: #141414;
  text-align: center;
  overflow: hidden;
  width: 100%;
  display: flex;
  align-items: center;
  height: 28px;
}

.flatpickr-weekdaycontainer { display: flex; flex: 1; }

span.flatpickr-weekday {
  cursor: default;
  background: #141414;
  color: #6B6B6B;
  line-height: 1;
  margin: 0;
  text-align: center;
  display: block;
  flex: 1;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: bolder;
}

.dayContainer {
  padding: 1px 0 0 0;
  outline: 0;
  text-align: left;
  width: 307.875px;
  min-width: 307.875px;
  max-width: 307.875px;
  box-sizing: border-box;
  display: flex;
  flex-wrap: wrap;
  transform: translate3d(0, 0, 0);
  opacity: 1;
}

.flatpickr-days {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: flex-start;
  width: 307.875px;
}

.flatpickr-day {
  background: none;
  border: 1px solid transparent;
  border-radius: 0;
  box-sizing: border-box;
  color: #F0EDE6;
  cursor: pointer;
  font-weight: 400;
  width: 14.2857143%;
  flex-basis: 14.2857143%;
  max-width: 39px;
  height: 39px;
  line-height: 39px;
  margin: 0;
  display: inline-block;
  position: relative;
  justify-content: center;
  text-align: center;
}

.flatpickr-day.today {
  border-color: #C9A84C;
}

.flatpickr-day.flatpickr-disabled,
.flatpickr-day.flatpickr-disabled:hover,
.flatpickr-day.prevMonthDay,
.flatpickr-day.nextMonthDay {
  color: #6B6B6B;
  background: transparent;
  border-color: transparent;
  cursor: default;
}

.flatpickr-day.flatpickr-disabled,
.flatpickr-day.flatpickr-disabled:hover {
  cursor: not-allowed;
}

.flatpickr-day:hover {
  background: #2A2A2A;
  border-color: #2A2A2A;
}

.flatpickr-day.selected,
.flatpickr-day.startRange,
.flatpickr-day.endRange {
  background: #C9A84C;
  border-color: #C9A84C;
  color: #0a0a0a;
  box-shadow: none;
}

.flatpickr-day.inRange {
  border-radius: 0;
  background: rgba(201, 168, 76, 0.25);
  border-color: rgba(201, 168, 76, 0.25);
  box-shadow: -5px 0 0 rgba(201, 168, 76, 0.25), 5px 0 0 rgba(201, 168, 76, 0.25);
}

.flatpickr-innerContainer {
  display: flex;
  box-sizing: border-box;
  overflow: hidden;
}

.flatpickr-rContainer {
  display: inline-block;
  padding: 0;
  box-sizing: border-box;
}

.flatpickr-input[readonly] {
  cursor: pointer;
}

/* Tailwind's Preflight resets `margin` to 0 on every element, which silently
   defeats the native <dialog>'s UA-stylesheet `margin: auto` centering — so
   centering is done explicitly via Tailwind utilities on the dialog element
   itself (fixed inset-0 m-auto h-fit + an explicit width), not left to the
   browser default. Only the ::backdrop pseudo-element needs a rule here —
   it can't be reached with Tailwind utility classes. */
dialog[data-hotel-booking-target="dialog"]::backdrop {
  background: rgba(0, 0, 0, 0.75);
}
