/* Rate calendar + glass select — shared by the full and mobile builds.
   Rides each build's .glass treatment; everything here is layout plus the
   day-cell states. */
.cal {
  position: absolute;
  top: calc(100% + 12px);
  left: 0;
  z-index: 40;
  width: min(400px, calc(100vw - 32px));
  padding: 18px 18px 12px;
  border-radius: 20px;
  background: rgba(18, 21, 28, 0.94);
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  text-align: left;
  cursor: default;
}
.cal.cal-double { width: min(720px, calc(100vw - 32px)); }
.cal-months { display: flex; gap: 22px; }
.cal-month { flex: 1 1 0; min-width: 0; }
.cal-title {
  text-align: center;
  font-size: 15px;
  letter-spacing: 0.05em;
  color: var(--paper, #f2ede4);
  margin-bottom: 10px;
}
.cal-nav {
  position: absolute;
  top: 14px;
  width: 34px; height: 34px; border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: transparent; color: var(--paper, #f2ede4);
  font-size: 18px; line-height: 1; cursor: pointer;
  z-index: 1;
  transition: background 0.15s, border-color 0.15s;
}
.cal-prev { left: 14px; }
.cal-next { right: 14px; }
.cal-nav:hover:not(:disabled) { background: rgba(255, 255, 255, 0.1); }
.cal-nav:disabled { opacity: 0.3; cursor: default; }
.cal-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 3px;
}
.cal-dow {
  text-align: center;
  font-size: 10.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--paper-dim, #b9b2a6);
  padding: 4px 0 7px;
}
.cal-day {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 7px 0 6px;
  border: 0;
  border-radius: 11px;
  background: transparent;
  color: var(--paper, #f2ede4);
  cursor: pointer;
  transition: background 0.12s, transform 0.12s;
}
.cal-day:hover:not(:disabled) { background: rgba(255, 255, 255, 0.1); transform: translateY(-1px); }
.cal-day:active:not(:disabled) { transform: scale(0.95); }
.cal-day.today { outline: 1px dashed rgba(201, 168, 106, 0.55); }
.cal-day.picked { background: rgba(201, 168, 106, 0.22); outline: 1px solid var(--gold, #c9a86a); }
.cal-day.in-range { background: rgba(201, 168, 106, 0.1); }
/* The 5-night suggestion's marker on the 5th night. */
.cal-free5 {
  position: absolute;
  left: 50%;
  bottom: -8px;
  transform: translateX(-50%);
  white-space: nowrap;
  font-size: 8.5px;
  letter-spacing: 0.04em;
  background: var(--gold, #c9a86a);
  color: #1f1a10;
  padding: 2px 7px;
  border-radius: 999px;
  pointer-events: none;
  z-index: 2;
}
.cal-day.past { opacity: 0.28; cursor: default; }
.cal-day.full { opacity: 0.45; }
.cal-day.full .cal-num { text-decoration: line-through; text-decoration-color: rgba(255,255,255,0.4); }
.cal-num { font-size: 15px; line-height: 1.2; }
.cal-rate {
  font-size: 10.5px;
  line-height: 1.1;
  min-height: 12px;
  color: var(--gold, #c9a86a);
  letter-spacing: 0.02em;
}
.cal-note {
  margin-top: 10px;
  font-size: 11px;
  color: var(--paper-dim, #b9b2a6);
  font-style: italic;
  text-align: center;
}

/* ------------------------------------------------ glass-dressed <select> */
/* The native select stays as the value holder but never renders; the .gsel
   trigger + .gsel-pop list carry the site's look (a native popup cannot). */
.gsel-native { display: none !important; }
.gsel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
}
.gsel-chev { font-size: 10px; color: var(--paper-dim, #b9b2a6); }
.gsel-pop {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  z-index: 41;
  min-width: 132px;
  max-height: 320px;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(201, 168, 106, 0.5) transparent;
  padding: 8px;
  border-radius: 16px;
  background: rgba(18, 21, 28, 0.94);
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}
.gsel-opt {
  display: block;
  width: 100%;
  padding: 9px 14px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--paper, #f2ede4);
  font: 500 14.5px/1.2 inherit;
  font-family: inherit;
  text-align: left;
  cursor: pointer;
  transition: background 0.12s;
}
.gsel-opt:hover { background: rgba(255, 255, 255, 0.1); }
.gsel-opt.on { color: var(--gold, #c9a86a); background: rgba(201, 168, 106, 0.14); }
/* The list's scrollbar in the site's own language (WebKit side). */
.gsel-pop::-webkit-scrollbar { width: 6px; }
.gsel-pop::-webkit-scrollbar-track { background: transparent; }
.gsel-pop::-webkit-scrollbar-thumb { background: rgba(201, 168, 106, 0.45); border-radius: 999px; }
.gsel-pop::-webkit-scrollbar-thumb:hover { background: rgba(201, 168, 106, 0.7); }

/* Inline (lightbox) variant: the surrounding panel provides the glass. */
.cal.cal-inline {
  position: relative;
  top: auto; left: auto;
  width: 100%;
  background: transparent;
  border: 0;
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  padding: 6px 0 0;
  margin-top: 14px;
}
.cal-inline .cal-nav { top: 0; }
.cal-day.cal-view { cursor: default; }
.cal-day.cal-view:hover:not(:disabled) { background: transparent; transform: none; }
.cal-day.cal-view:active:not(:disabled) { transform: none; }

/* Loading veil while a month's rates are still being fetched. */
.cal-month { position: relative; }
.cal-loading {
  position: absolute; inset: 26px 0 0; z-index: 2;
  display: flex; align-items: center; justify-content: center;
  background: rgba(18, 21, 28, 0.45); border-radius: 12px;
}
.cal-spin {
  width: 26px; height: 26px; border-radius: 50%;
  border: 2px solid rgba(201, 168, 106, 0.25);
  border-top-color: var(--gold, #c9a86a);
  animation: cal-spin 0.8s linear infinite;
}
@keyframes cal-spin { to { transform: rotate(360deg); } }

/* Restrictions (engine 2026-09-02): closed to arrivals wears a gold bar on
   its left edge, closed to departures on its right; a refused click shakes
   the cell once so the guest sees WHERE the answer is. */
.cal-day.cta { box-shadow: inset 3px 0 0 rgba(201, 168, 106, 0.85); }
.cal-day.ctd { box-shadow: inset -3px 0 0 rgba(201, 168, 106, 0.85); }
.cal-day.cta.ctd { box-shadow: inset 3px 0 0 rgba(201, 168, 106, 0.85), inset -3px 0 0 rgba(201, 168, 106, 0.85); }
.cal-day.refused { animation: cal-refuse 0.4s ease; }
@keyframes cal-refuse { 0%, 100% { transform: translateX(0); } 25% { transform: translateX(-4px); } 75% { transform: translateX(4px); } }
@media (prefers-reduced-motion: reduce) { .cal-day.refused { animation: none; } }
