/* Availability calendar (shared by index.html and the-penthouse.html) */
#stay { scroll-margin-top: 64px; }
.cal { max-width: 760px; margin: 0 auto 1.75rem; background: var(--shell); color: var(--ink); padding: clamp(1rem, 3vw, 1.75rem); text-align: left; position: relative; }
.cal__head { position: absolute; top: clamp(1rem, 3vw, 1.75rem); left: clamp(1rem, 3vw, 1.75rem); right: clamp(1rem, 3vw, 1.75rem); display: flex; justify-content: space-between; pointer-events: none; }
.cal__nav { pointer-events: auto; width: 2.1rem; height: 2.1rem; border: 1px solid var(--brass-line); background: transparent; color: var(--sapphire); font-size: 1.3rem; line-height: 1; cursor: pointer; }
.cal__nav:hover:not(:disabled) { border-color: var(--brass); }
.cal__nav:disabled { opacity: 0.3; cursor: default; }
.cal__months { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; }
.cal__title { font-family: var(--font-display); color: var(--sapphire); font-size: 1.15rem; text-align: center; height: 2.1rem; line-height: 2.1rem; margin: 0 0 0.6rem; }
.cal__grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px; }
.cal__dow { font-size: 0.66rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-55); text-align: center; padding-bottom: 0.35rem; }
.cal__day { aspect-ratio: 1; border: 0; background: #fff; color: var(--ink); font: inherit; font-size: 0.88rem; cursor: pointer; position: relative; padding: 0; }
.cal__day:hover:not(:disabled) { outline: 1px solid var(--brass); outline-offset: -1px; }
.cal__day:disabled { cursor: default; }
.cal__day--past { background: transparent; color: var(--ink-55); opacity: 0.45; }
.cal__day--booked { background: var(--sand); color: var(--ink-55); text-decoration: line-through; text-decoration-color: rgba(38,42,49,0.35); }
.cal__day--short { color: var(--ink-55); }
.cal__day--in, .cal__day--range { background: var(--sapphire); color: var(--shell); text-decoration: none; }
.cal__day--range { background: rgba(22,52,94,0.72); }
.cal__day--out { background: var(--sapphire); color: var(--shell); text-decoration: none; }
.cal__day--co { text-decoration: none; }
.cal__blank { aspect-ratio: 1; }
.cal__legend { display: flex; flex-wrap: wrap; gap: 1.1rem; margin-top: 1rem; font-size: 0.78rem; color: var(--ink-70); }
.cal__legend span { display: inline-flex; align-items: center; gap: 0.4rem; }
.cal__key { width: 0.85rem; height: 0.85rem; background: #fff; border: 1px solid var(--brass-line); display: inline-block; }
.cal__key--booked { background: var(--sand); }
.cal__key--sel { background: var(--sapphire); border-color: var(--sapphire); }
.cal__bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.75rem 1.5rem; margin-top: 1.1rem; padding-top: 1rem; border-top: 1px solid var(--brass-line); }
.cal__sel { margin: 0; font-family: var(--font-display); color: var(--sapphire); font-size: 1.05rem; }
.cal__guests { font-size: 0.85rem; color: var(--ink-70); display: inline-flex; align-items: center; gap: 0.5rem; }
.cal__guests select { font: inherit; color: var(--ink); background: #fff; border: 1px solid var(--brass-line); padding: 0.35rem 0.6rem; }
.cal__note { margin: 0.9rem 0 0; font-size: 0.76rem; color: var(--ink-55); }
@media (max-width: 640px) { .cal__months { grid-template-columns: 1fr; } .cal__month + .cal__month { display: none; } }

/* ---- hero date bar ---- */
.hero__cta { flex-direction: column; align-items: flex-start; gap: 1rem; }
.datebar { position: relative; width: 100%; max-width: 820px; }
.datebar__row > * { min-width: 0; }
.datebar__row { display: grid; grid-template-columns: 1fr 1fr 0.8fr auto; align-items: stretch; background: rgba(251, 249, 243, 0.92); color: var(--ink); }
.datebar__field { display: flex; flex-direction: column; justify-content: center; gap: 0.2rem; padding: 0.7rem 1.1rem; text-decoration: none; color: var(--ink); border-right: 1px solid var(--brass-line); cursor: pointer; min-width: 0; }
.datebar__field:hover .datebar__val { color: var(--sapphire); }
.datebar__label { font-size: 0.64rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-55); }
.datebar__val { font-family: var(--font-display); font-size: 1.05rem; color: var(--ink); white-space: nowrap; }
.datebar__field--guests select { font: inherit; font-family: var(--font-display); font-size: 1.05rem; color: var(--ink); background: transparent; border: 0; padding: 0; cursor: pointer; }
.datebar__go { display: flex; align-items: center; justify-content: center; margin: 0; white-space: nowrap; line-height: 1.2; }
.datebar__pop { position: absolute; left: 0; bottom: calc(100% + 0.6rem); width: min(680px, 100%); background: var(--shell); color: var(--ink); padding: clamp(1rem, 3vw, 1.5rem); z-index: 20; border: 1px solid var(--brass-line); text-align: left; }
.datebar__pop[hidden] { display: none; }
.datebar__pop .cal__head { top: clamp(1rem, 3vw, 1.5rem); left: clamp(1rem, 3vw, 1.5rem); right: clamp(1rem, 3vw, 1.5rem); }
.datebar__foot { display: flex; justify-content: space-between; align-items: center; gap: 1rem; margin-top: 0.9rem; padding-top: 0.8rem; border-top: 1px solid var(--brass-line); }
.datebar__msg { margin: 0; font-size: 0.85rem; color: var(--ink-70); }
.datebar__close { font: inherit; font-size: 0.72rem; letter-spacing: 0.16em; text-transform: uppercase; background: none; border: 0; color: var(--sapphire); cursor: pointer; padding: 0.3rem 0; text-decoration: underline; text-underline-offset: 4px; text-decoration-color: var(--brass); }
@media (max-width: 640px) {
  .datebar__row { grid-template-columns: 1fr 1fr; }
  .datebar__field:nth-child(2) { border-right: 0; }
  .datebar__field--guests { border-top: 1px solid var(--brass-line); }
  .datebar__go { border-radius: 0; white-space: normal; text-align: center; letter-spacing: 0.12em; padding: 0.8rem 0.6rem; }
  .datebar__val { font-size: 0.98rem; }
}
