/* Snowytrees seasonal pricing — backend-powered editorial layout */

#dates-and-prices,
.st-price {
  scroll-margin-top: 5.5rem;
}

.st-price {
  --st-price-ink: #10221f;
  --st-price-muted: #66736f;
  --st-price-green: #006459;
  --st-price-green-deep: #003f38;
  --st-price-mist: #edf5f2;
  --st-price-cream: #f5f0e8;
  --st-price-line: rgba(16, 34, 31, 0.12);
  position: relative;
  overflow: hidden;
  padding: clamp(4rem, 8vw, 7rem) 0;
  color: var(--st-price-ink);
  background:
    radial-gradient(760px 360px at 100% 0%, rgba(0, 100, 89, 0.09), transparent 62%),
    linear-gradient(180deg, #f8faf9 0%, #f2f6f4 100%);
  font-family: "Libre Franklin", system-ui, sans-serif;
}

.st-price[data-season="summer"] {
  background:
    radial-gradient(800px 400px at 100% 0%, rgba(202, 151, 70, 0.13), transparent 60%),
    linear-gradient(180deg, #fbfaf6 0%, #f4f1e9 100%);
}

.st-price__inner {
  width: min(78rem, calc(100% - 2.5rem));
  margin: 0 auto;
}

.st-price__intro {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(17rem, 0.65fr);
  gap: clamp(2rem, 6vw, 5rem);
  align-items: end;
}

.st-price__title {
  max-width: 13ch;
  margin: 0;
  font-family: Prata, Georgia, serif;
  font-size: clamp(2.4rem, 5vw, 4.5rem);
  font-weight: 400;
  letter-spacing: -0.035em;
  line-height: 1.04;
}

.st-price__lede {
  max-width: 42rem;
  margin: 1.15rem 0 0;
  color: var(--st-price-muted);
  font-size: clamp(1rem, 1.5vw, 1.12rem);
  line-height: 1.7;
}

.st-price__season-switch {
  display: grid;
  gap: 0.75rem;
  padding: 1.15rem;
  border: 1px solid var(--st-price-line);
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.76);
  box-shadow: 0 22px 45px -36px rgba(0, 38, 34, 0.45);
}

.st-price__season-switch p {
  margin: 0;
  color: var(--st-price-muted);
  font-size: 0.78rem;
  line-height: 1.45;
}

.st-price__season-switch a {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  color: var(--st-price-green);
  font-size: 0.88rem;
  font-weight: 700;
  text-decoration: none;
}

.st-price__assurances {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin: 2rem 0 0;
  padding: 0;
  list-style: none;
}

.st-price__assurances li {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.55rem 0.8rem;
  border: 1px solid var(--st-price-line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.62);
  color: #475652;
  font-size: 0.76rem;
  font-weight: 600;
}

.st-price__assurances li::before {
  content: "✓";
  color: var(--st-price-green);
  font-weight: 800;
}

.st-price__packages {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin: clamp(2.5rem, 6vw, 4.5rem) 0;
}

.st-price__package {
  position: relative;
  overflow: hidden;
  padding: clamp(1.25rem, 3vw, 1.8rem);
  border: 1px solid var(--st-price-line);
  border-radius: 1.1rem;
  background: rgba(255, 255, 255, 0.82);
}

.st-price__package:first-child {
  background: linear-gradient(135deg, #fff 0%, #edf7f4 100%);
}

.st-price__package-label {
  margin: 0 0 0.45rem;
  color: var(--st-price-green);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.st-price__package h3 {
  margin: 0;
  font-family: Prata, Georgia, serif;
  font-size: clamp(1.35rem, 2.5vw, 1.8rem);
  font-weight: 400;
}

.st-price__package > p:last-of-type {
  margin: 0.65rem 0 0;
  color: var(--st-price-muted);
  font-size: 0.88rem;
  line-height: 1.55;
}

.st-price__package ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem 1rem;
  margin: 1rem 0 0;
  padding: 0;
  list-style: none;
}

.st-price__package li {
  color: #475652;
  font-size: 0.76rem;
}

.st-price__package li::before {
  content: "— ";
  color: var(--st-price-green);
}

.st-price__availability {
  margin-top: 1rem;
  scroll-margin-top: 5.5rem;
}

.st-price__toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.25rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--st-price-line);
}

.st-price__toolbar-title {
  margin: 0;
  font-family: Prata, Georgia, serif;
  font-size: clamp(1.65rem, 3vw, 2.25rem);
  font-weight: 400;
}

.st-price__count {
  margin: 0.3rem 0 0;
  color: var(--st-price-muted);
  font-size: 0.82rem;
}

.st-price__toolbar-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 0.6rem;
}

.st-price__view {
  display: inline-flex;
  padding: 0.2rem;
  border: 1px solid var(--st-price-line);
  border-radius: 999px;
  background: #fff;
}

.st-price__view-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  min-height: 2.15rem;
  padding: 0.4rem 0.75rem;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--st-price-muted);
  font: inherit;
  font-size: 0.74rem;
  font-weight: 700;
  cursor: pointer;
}

.st-price__view-btn svg {
  width: 0.95rem;
  height: 0.95rem;
  fill: currentColor;
}

.st-price__view-btn[aria-pressed="true"] {
  background: var(--st-price-green);
  color: #fff;
}

.st-price__filter {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.55rem 0.8rem;
  border: 1px solid var(--st-price-line);
  border-radius: 999px;
  background: #fff;
  color: var(--st-price-ink);
  font: inherit;
  font-size: 0.78rem;
  font-weight: 650;
  cursor: pointer;
}

.st-price__filter[aria-pressed="true"] {
  border-color: var(--st-price-green);
  background: var(--st-price-green);
  color: #fff;
}

.st-price__filter-dot {
  width: 0.48rem;
  height: 0.48rem;
  border-radius: 50%;
  background: #20a66a;
}

.st-price__filter[aria-pressed="true"] .st-price__filter-dot {
  background: #bff1dc;
}

.st-price__months {
  display: grid;
  gap: 2.5rem;
}

.st-price__month[hidden],
.st-price__week[hidden] {
  display: none !important;
}

.st-price__month-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin: 0 0 0.85rem;
}

.st-price__month-head h3 {
  margin: 0;
  color: var(--st-price-ink);
  font-size: 0.78rem;
  font-weight: 750;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.st-price__month-head span {
  color: var(--st-price-muted);
  font-size: 0.74rem;
}

.st-price__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.9rem;
}

.st-price__months[data-view="list"] .st-price__grid {
  grid-template-columns: 1fr;
  gap: 0.65rem;
}

.st-price__week {
  position: relative;
  display: flex;
  min-height: 20rem;
  flex-direction: column;
  padding: 1.15rem;
  overflow: hidden;
  border: 1px solid var(--st-price-line);
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 18px 42px -36px rgba(0, 38, 34, 0.48);
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.st-price__week-main {
  display: contents;
}

.st-price__week-action-short {
  display: none;
}

.st-price__months[data-view="list"] .st-price__week {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1.5rem;
  min-height: 0;
  padding: 1rem 1.15rem;
}

.st-price__months[data-view="list"] .st-price__week-main {
  display: contents;
}

.st-price__months[data-view="list"] .st-price__week-top {
  flex: 1 1 14rem;
  min-width: min(100%, 14rem);
  align-items: flex-start;
}

.st-price__months[data-view="list"] .st-price__event {
  margin-bottom: 0.35rem;
}

.st-price__months[data-view="list"] .st-price__dates {
  margin: 0.15rem 0 0;
  font-size: 1.15rem;
}

.st-price__months[data-view="list"] .st-price__whole-chalet {
  flex: 1 0 100%;
  order: 4;
  margin: -0.25rem 0 0;
}

.st-price__months[data-view="list"] .st-price__prices {
  display: flex;
  flex: 1 1 15rem;
  flex-wrap: wrap;
  gap: 0.65rem 1.4rem;
  margin: 0;
}

.st-price__months[data-view="list"] .st-price__rate {
  min-width: 8.5rem;
  padding-top: 0;
  border-top: 0;
}

.st-price__months[data-view="list"] .st-price__week-action {
  flex: 0 0 auto;
  width: max-content;
  min-width: 9.5rem;
  margin-top: 0;
  margin-inline-start: auto;
}

.st-price__week:hover {
  transform: translateY(-3px);
  border-color: rgba(0, 100, 89, 0.28);
  box-shadow: 0 25px 45px -34px rgba(0, 38, 34, 0.5);
}

.st-price__week.is-unavailable {
  background: rgba(246, 247, 246, 0.76);
  box-shadow: none;
}

.st-price__week-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
}

.st-price__event {
  display: inline-flex;
  width: fit-content;
  margin-bottom: 0.65rem;
  padding: 0.3rem 0.55rem;
  border-radius: 999px;
  background: var(--st-price-cream);
  color: #69583d;
  font-size: 0.63rem;
  font-weight: 750;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.st-price__status {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  flex: 0 0 auto;
  color: #18734e;
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
}

.st-price__status::before {
  content: "";
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 50%;
  background: #20a66a;
}

.is-unavailable .st-price__status {
  color: #7a817f;
}

.is-unavailable .st-price__status::before {
  background: #9aa19f;
}

.st-price__dates {
  margin: 0.7rem 0 0;
  font-family: Prata, Georgia, serif;
  font-size: 1.25rem;
  font-weight: 400;
  line-height: 1.3;
}

.st-price__whole-chalet {
  margin: 0.35rem 0 1rem;
  color: var(--st-price-muted);
  font-size: 0.72rem;
}

.st-price__prices {
  display: grid;
  gap: 0.55rem;
  margin-top: 0.4rem;
}

.st-price__rate {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.1rem 0.8rem;
  align-items: baseline;
  padding-top: 0.55rem;
  border-top: 1px solid rgba(16, 34, 31, 0.08);
}

.st-price__rate-label {
  color: var(--st-price-muted);
  font-size: 0.72rem;
}

.st-price__rate-value {
  color: var(--st-price-ink);
  font-size: 1rem;
  font-weight: 750;
}

.st-price__rate-basis {
  grid-column: 2;
  justify-self: end;
  color: var(--st-price-muted);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.01em;
}

.st-price__rate-note {
  grid-column: 1 / -1;
  color: #7a8582;
  font-size: 0.66rem;
  line-height: 1.4;
}

.st-price__week-action {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  min-height: 2.75rem;
  margin-top: auto;
  padding: 0.7rem 0.9rem;
  border-radius: 0.65rem;
  background: var(--st-price-green);
  color: #fff !important;
  font-size: 0.78rem;
  font-weight: 700;
  text-decoration: none;
}

.st-price__week-action:hover {
  background: var(--st-price-green-deep);
}

.st-price__week-action.is-disabled {
  justify-content: center;
  background: #e4e8e6;
  color: #79827f !important;
  cursor: default;
}

.st-price__empty,
.st-price__error {
  padding: 2.5rem 1.25rem;
  border: 1px dashed var(--st-price-line);
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.75);
  color: var(--st-price-muted);
  text-align: center;
}

.st-price__error a,
.st-price__empty a {
  color: var(--st-price-green);
  font-weight: 700;
}

.st-price__loading {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.9rem;
}

.st-price__skeleton {
  min-height: 19rem;
  border-radius: 1rem;
  background: linear-gradient(100deg, #e9eeec 25%, #f8faf9 45%, #e9eeec 65%);
  background-size: 220% 100%;
  animation: st-price-shimmer 1.3s infinite linear;
}

@keyframes st-price-shimmer {
  to { background-position-x: -220%; }
}

.st-price__details {
  margin-top: clamp(2.5rem, 5vw, 4rem);
  border: 1px solid var(--st-price-line);
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.76);
}

.st-price__details summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.15rem;
  color: var(--st-price-ink);
  font-size: 0.86rem;
  font-weight: 700;
  cursor: pointer;
  list-style: none;
}

.st-price__details summary::-webkit-details-marker {
  display: none;
}

.st-price__details summary::after {
  content: "+";
  color: var(--st-price-green);
  font-size: 1.25rem;
  font-weight: 400;
}

.st-price__details[open] summary::after {
  content: "−";
}

.st-price__details-body {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.5rem;
  padding: 0 1.15rem 1.25rem;
  border-top: 1px solid var(--st-price-line);
}

.st-price__details-body section {
  padding-top: 1.15rem;
}

.st-price__details-body h3 {
  margin: 0 0 0.5rem;
  font-family: Prata, Georgia, serif;
  font-size: 1.15rem;
  font-weight: 400;
}

.st-price__details-body ul {
  margin: 0;
  padding-left: 1.1rem;
  color: var(--st-price-muted);
  font-size: 0.78rem;
  line-height: 1.7;
}

.st-price__deposit {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  margin-top: 0.85rem;
  padding: 0.9rem 1rem;
  border: 1px solid rgba(122, 98, 57, 0.17);
  border-radius: 0.8rem;
  background: rgba(245, 240, 232, 0.72);
  color: #635b4d;
  font-size: 0.75rem;
  line-height: 1.5;
}

.st-price__deposit strong {
  color: #443d32;
}

.st-price__deposit-icon {
  display: grid;
  width: 2rem;
  height: 2rem;
  flex: 0 0 2rem;
  place-items: center;
  border-radius: 50%;
  background: #fff;
  color: #806b46;
  font-weight: 750;
}

@media (max-width: 991px) {
  .st-price__intro {
    grid-template-columns: 1fr;
  }

  .st-price__season-switch {
    max-width: 30rem;
  }

  .st-price__grid,
  .st-price__loading {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .st-price__inner {
    width: min(100% - 1.25rem, 78rem);
  }

  .st-price {
    padding: 2.75rem 0 3.5rem;
  }

  .st-price__packages,
  .st-price__grid,
  .st-price__loading,
  .st-price__details-body {
    grid-template-columns: 1fr;
  }

  .st-price__toolbar {
    align-items: flex-start;
    flex-direction: column;
    gap: 0.85rem;
  }

  .st-price__toolbar-actions {
    width: 100%;
    justify-content: stretch;
  }

  .st-price__view {
    flex: 1 1 auto;
    width: 100%;
  }

  .st-price__view-btn {
    flex: 1 1 0;
    justify-content: center;
  }

  .st-price__filter {
    width: 100%;
    justify-content: center;
  }

  .st-price__week {
    min-height: 0;
  }

  .st-price__week:hover {
    transform: none;
  }

  /* True mobile list: dense divider rows, not stacked cards */
  .st-price__months[data-view="list"] .st-price__grid {
    gap: 0;
    border: 1px solid var(--st-price-line);
    border-radius: 0.85rem;
    background: rgba(255, 255, 255, 0.92);
    overflow: hidden;
  }

  .st-price__months[data-view="list"] .st-price__week {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas:
      "main action";
    align-items: center;
    column-gap: 0.65rem;
    row-gap: 0;
    min-height: 0;
    margin: 0;
    padding: 0.8rem 0.85rem;
    border: 0;
    border-bottom: 1px solid var(--st-price-line);
    border-radius: 0;
    background: transparent;
    box-shadow: none;
  }

  .st-price__months[data-view="list"] .st-price__week:last-child {
    border-bottom: 0;
  }

  .st-price__months[data-view="list"] .st-price__week:hover {
    transform: none;
    border-color: transparent;
    border-bottom-color: var(--st-price-line);
    box-shadow: none;
    background: rgba(0, 100, 89, 0.04);
  }

  .st-price__months[data-view="list"] .st-price__week.is-unavailable {
    background: rgba(246, 247, 246, 0.55);
  }

  .st-price__months[data-view="list"] .st-price__week-main {
    grid-area: main;
    display: grid;
    gap: 0.28rem;
    min-width: 0;
  }

  .st-price__months[data-view="list"] .st-price__week-top,
  .st-price__months[data-view="list"] .st-price__whole-chalet,
  .st-price__months[data-view="list"] .st-price__prices,
  .st-price__months[data-view="list"] .st-price__week-action {
    flex: none !important;
    width: auto !important;
    min-width: 0 !important;
    max-width: none !important;
    margin: 0;
    order: initial;
  }

  .st-price__months[data-view="list"] .st-price__week-top {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
  }

  .st-price__months[data-view="list"] .st-price__week-top > div {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.35rem 0.5rem;
    min-width: 0;
  }

  .st-price__months[data-view="list"] .st-price__event {
    margin: 0;
    padding: 0.18rem 0.4rem;
    font-size: 0.58rem;
  }

  .st-price__months[data-view="list"] .st-price__dates {
    margin: 0;
    font-size: 0.95rem;
    line-height: 1.2;
    overflow-wrap: anywhere;
  }

  .st-price__months[data-view="list"] .st-price__status {
    margin: 0;
    font-size: 0.62rem;
    letter-spacing: 0.04em;
    white-space: nowrap;
  }

  .st-price__months[data-view="list"] .st-price__whole-chalet {
    display: none;
  }

  .st-price__months[data-view="list"] .st-price__prices {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 0.15rem 0.65rem;
  }

  .st-price__months[data-view="list"] .st-price__rate {
    display: inline-flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 0.25rem;
    min-width: 0;
    min-height: 0;
    height: auto;
    padding: 0;
    border: 0;
  }

  .st-price__months[data-view="list"] .st-price__rate + .st-price__rate::before {
    content: "·";
    margin-right: 0.15rem;
    color: #9aa5a1;
    font-weight: 500;
  }

  .st-price__months[data-view="list"] .st-price__rate-label {
    font-size: 0.68rem;
  }

  .st-price__months[data-view="list"] .st-price__rate-value {
    font-size: 0.84rem;
    font-weight: 750;
  }

  .st-price__months[data-view="list"] .st-price__rate-basis {
    font-size: 0.62rem;
    margin-left: 0.2rem;
  }

  .st-price__months[data-view="list"] .st-price__rate-note {
    display: none;
  }

  .st-price__months[data-view="list"] .st-price__week-action {
    grid-area: action;
    align-self: center;
    width: auto;
    min-width: 0;
    min-height: 2.35rem;
    margin: 0;
    padding: 0.45rem 0.7rem;
    border-radius: 999px;
    justify-content: center;
    gap: 0.25rem;
    font-size: 0.72rem;
  }

  .st-price__months[data-view="list"] .st-price__week-action-label {
    display: none;
  }

  .st-price__months[data-view="list"] .st-price__week-action-short {
    display: inline;
  }

  .st-price__months[data-view="list"] .st-price__week-action.is-disabled {
    min-width: 3.25rem;
    padding: 0.4rem 0.55rem;
    font-size: 0.68rem;
  }

  .st-price__assurances {
    gap: 0.45rem;
  }

  .st-price__assurances li {
    font-size: 0.7rem;
    padding: 0.45rem 0.65rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .st-price__week,
  .st-price__skeleton {
    transition: none;
    animation: none;
  }
}
