/* Christmas opening hours — local fonts, full-bleed scene, editorial data panel. */

/* Foundation and native dialog visibility ---------------------------------- */
.holiday-dialog,
.holiday-widget {
  box-sizing: border-box;
  font-family: 'DM Sans', Arial, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  overflow-wrap: anywhere;
}

.holiday-dialog *,
.holiday-dialog *::before,
.holiday-dialog *::after {
  box-sizing: border-box;
}

.holiday-dialog[hidden],
.holiday-dialog [hidden],
.holiday-widget[hidden] {
  display: none !important;
}

/* Do not set display on the dialog: the browser owns its closed/open state. */
.holiday-dialog {
  --holiday-paper: #fffbf2;
  --holiday-ink: #242c32;
  --holiday-muted: #5d5650;
  --holiday-cranberry: #801f35;
  --holiday-gold: #c5ab78;
  --holiday-gutter: 30px;
  width: min(1040px, calc(100vw - 32px));
  min-width: 0;
  max-width: calc(100vw - 32px);
  max-height: calc(100vh - 32px);
  max-height: calc(100dvh - 32px);
  margin: auto;
  padding: 0;
  overflow: hidden;
  color: var(--holiday-ink);
  background: var(--holiday-paper);
  border: 1px solid var(--holiday-gold);
  border-radius: 3px;
  box-shadow: 0 28px 90px rgb(7 19 36 / 36%);
}

.holiday-dialog::backdrop {
  background: rgb(5 18 35 / 74%);
}

body.holiday-dialog-open {
  overflow: hidden;
}

/* One continuous scene beside one independently scrollable text panel ------ */
.holiday-layout {
  display: grid;
  grid-template-columns: 34% minmax(0, 1fr);
  min-width: 0;
  min-height: 0;
  max-height: calc(100vh - 34px);
  max-height: calc(100dvh - 34px);
}

.holiday-scene {
  position: relative;
  min-width: 0;
  min-height: 0;
  overflow: hidden;
  background: linear-gradient(160deg, #102849, #10352f);
  border-right: 1px solid var(--holiday-gold);
}

.holiday-scene picture {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
}

.holiday-scene .holiday-scene-image {
  display: block;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: center center;
}

.holiday-content {
  min-width: 0;
  min-height: 0;
  max-height: calc(100vh - 34px);
  max-height: calc(100dvh - 34px);
  padding: 0 var(--holiday-gutter) 28px;
  overflow: auto;
  overscroll-behavior: contain;
  scroll-padding-top: 180px;
  scrollbar-width: thin;
  scrollbar-color: var(--holiday-gold) var(--holiday-paper);
  background: var(--holiday-paper);
}

/* The close control remains in view while the opening hours scroll. */
.holiday-header {
  position: sticky;
  z-index: 2;
  top: 0;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin: 0 calc(-1 * var(--holiday-gutter));
  padding: 26px var(--holiday-gutter) 22px;
  background: var(--holiday-paper);
}

.holiday-header h2 {
  flex: 1 1 auto;
  min-width: 0;
  margin: 0;
  color: var(--holiday-cranberry);
  font-family: 'Oswald', 'Arial Narrow', Arial, sans-serif;
  font-size: clamp(32px, 4.1vw, 44px);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -.025em;
}

/* Store information: ruled columns, never separate SaaS-style cards -------- */
.holiday-locations {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
  gap: 24px 28px;
  min-width: 0;
}

.holiday-location {
  min-width: 0;
  margin: 0;
  padding: 17px 0 0;
  background: transparent;
  border: 0;
  border-top: 1px solid var(--holiday-gold);
  border-radius: 0;
}

.holiday-location h3 {
  margin: 0;
  color: var(--holiday-ink);
  font-family: 'Oswald', 'Arial Narrow', Arial, sans-serif;
  font-size: 30px;
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: -.015em;
}

.holiday-location .holiday-period {
  margin: 5px 0 16px;
  color: var(--holiday-muted);
  font-size: 16px;
  line-height: 1.6;
}

.holiday-hours-row {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 3px 12px;
  min-width: 0;
  font-size: 17px;
  line-height: 1.6;
  font-variant-numeric: tabular-nums;
}

.holiday-hours-row > span,
.holiday-hours-row > time,
.holiday-hours-row > strong {
  min-width: 0;
  max-width: 100%;
}

.holiday-hours-row > strong {
  margin-left: auto;
  color: var(--holiday-ink);
  font-size: 22px;
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: -.025em;
  font-variant-numeric: tabular-nums;
}

.holiday-sundays {
  margin-top: 21px;
  padding-top: 16px;
  border-top: 1px solid var(--holiday-gold);
}

.holiday-sundays > p {
  margin: 0 0 12px;
  color: var(--holiday-cranberry);
  font-size: 16px;
  font-weight: 600;
  line-height: 1.5;
}

.holiday-sundays ul {
  display: grid;
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.holiday-sundays .holiday-hours-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  justify-content: start;
  gap: 1px;
}

.holiday-sundays .holiday-hours-row > time {
  color: var(--holiday-muted);
  font-size: 16px;
}

.holiday-sundays .holiday-hours-row > strong {
  margin-left: 0;
}

.holiday-dialog .holiday-note {
  margin: 24px 0 0;
  padding-top: 16px;
  color: var(--holiday-muted);
  border-top: 1px solid var(--holiday-gold);
  font-size: 16px;
  line-height: 1.6;
}

.holiday-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 19px;
}

/* Text-only controls and accessible focus --------------------------------- */
.holiday-close,
.holiday-dialog .holiday-stores-link,
.holiday-widget {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 48px;
  min-height: 48px;
  max-width: 100%;
  margin: 0;
  padding: 11px 16px;
  border: 1px solid transparent;
  border-radius: 3px;
  font-family: 'DM Sans', Arial, sans-serif;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.5;
  text-align: center;
  text-decoration: none;
  white-space: normal;
  overflow-wrap: anywhere;
  appearance: none;
  cursor: pointer;
  transition: background-color 150ms ease, border-color 150ms ease;
}

.holiday-close {
  flex: 0 0 auto;
  color: var(--holiday-cranberry);
  background: var(--holiday-paper);
  border-color: var(--holiday-cranberry);
}

.holiday-close:hover {
  color: var(--holiday-cranberry);
  background: #f3e6dd;
  border-color: var(--holiday-cranberry);
  transform: none;
}

.holiday-dialog .holiday-stores-link {
  padding-inline: 21px;
  color: #fff;
  background: var(--blue, #4e5cb1);
  border-color: var(--blue, #4e5cb1);
}

.holiday-dialog .holiday-stores-link:hover {
  color: #fff;
  background: #3f4b98;
  border-color: #3f4b98;
  transform: none;
}

.holiday-close:focus-visible,
.holiday-dialog .holiday-stores-link:focus-visible,
.holiday-widget:focus-visible {
  outline: 3px solid #142f54;
  outline-offset: 3px;
  box-shadow: 0 0 0 2px #fffbf2;
}

.holiday-header h2:focus-visible {
  outline: none;
}

/* Independent recall widget: left, leaving the right-hand back-to-top free. */
.holiday-widget {
  position: fixed;
  z-index: 40;
  left: calc(24px + env(safe-area-inset-left, 0px));
  bottom: calc(24px + env(safe-area-inset-bottom, 0px));
  max-width: calc(100vw - 96px - env(safe-area-inset-left, 0px) - env(safe-area-inset-right, 0px));
  color: #fff;
  background: var(--blue, #4e5cb1);
  border-color: var(--blue, #4e5cb1);
  box-shadow: 0 4px 16px rgb(15 28 57 / 22%);
}

.holiday-widget:hover {
  color: #fff;
  background: #3f4b98;
  border-color: #3f4b98;
  transform: none;
}

/* Existing store banner: only its seasonal note is styled here. */
.stores-banner .store-season {
  margin: 8px 0 0;
  color: #fff;
  font-family: 'DM Sans', Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  overflow-wrap: anywhere;
}

/* Compact desktop: the auto-fit data grid stacks inside the right panel. */
@media (min-width: 761px) and (max-width: 960px) {
  .holiday-dialog {
    --holiday-gutter: 24px;
  }

  .holiday-header {
    gap: 12px;
  }

  .holiday-header h2 {
    font-size: 34px;
  }
}

/* Mobile: panoramic scene above a constrained, independently scrolling panel. */
@media (max-width: 760px) {
  .holiday-dialog {
    --holiday-gutter: 22px;
    --holiday-banner-height: clamp(140px, 24vw, 180px);
  }

  .holiday-layout {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: var(--holiday-banner-height) minmax(0, 1fr);
  }

  .holiday-scene {
    border-right: 0;
    border-bottom: 1px solid var(--holiday-gold);
  }

  .holiday-content {
    max-height: calc(100vh - 34px - var(--holiday-banner-height));
    max-height: calc(100dvh - 34px - var(--holiday-banner-height));
    padding-bottom: 22px;
    scroll-padding-top: 190px;
  }

  .holiday-header {
    padding-top: 20px;
    padding-bottom: 18px;
  }

  .holiday-header h2 {
    font-size: clamp(32px, 5.7vw, 40px);
  }

  .holiday-locations {
    grid-template-columns: minmax(0, 1fr);
    gap: 22px;
  }

  .holiday-location h3 {
    font-size: 29px;
  }

  .holiday-hours-row {
    font-size: 17px;
  }

  .holiday-hours-row > strong {
    font-size: 23px;
  }

  .holiday-actions,
  .holiday-dialog .holiday-stores-link {
    width: 100%;
  }

  .holiday-widget {
    left: calc(16px + env(safe-area-inset-left, 0px));
    bottom: calc(18px + env(safe-area-inset-bottom, 0px));
  }
}

/* Small phones: no squeezed heading, cropped controls, or narrow time columns. */
@media (max-width: 480px) {
  .holiday-dialog {
    --holiday-gutter: 16px;
  }

  .holiday-header {
    flex-wrap: wrap;
    gap: 10px;
    padding-top: 16px;
    padding-bottom: 16px;
  }

  .holiday-header h2 {
    flex-basis: 100%;
    font-size: 32px;
  }

  .holiday-close {
    margin-left: auto;
  }

  .holiday-hours-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    justify-content: start;
    gap: 2px;
  }

  .holiday-hours-row > strong {
    margin-left: 0;
  }
}

/* Respect motion preferences without affecting dialog visibility. */
@media (prefers-reduced-motion: reduce) {
  .holiday-content {
    scroll-behavior: auto;
  }

  .holiday-close,
  .holiday-dialog .holiday-stores-link,
  .holiday-widget {
    transition: none;
    animation: none;
  }
}

@media (max-width: 760px) and (max-height: 540px) {
  .holiday-dialog { --holiday-banner-height: 90px; }
}

@media (max-width: 760px) and (max-height: 380px) {
  .holiday-dialog { --holiday-banner-height: 60px; }
  .holiday-header { position: static; }
}
